/*
Theme Name: TTF Panel Theme
Description: Custom dark theme for TheTopFame SMM Panel
Version: 3.0
Author: TheTopFame
*/

:root {
    --ttf-bg: #0b1120;
    --ttf-bg2: #0f1729;
    --ttf-card: #151f32;
    --ttf-card-hover: #1a2740;
    --ttf-primary: #6c5ce7;
    --ttf-primary-dark: #5a4bd1;
    --ttf-red: #ff4757;
    --ttf-green: #00b894;
    --ttf-blue: #3b82f6;
    --ttf-text: #e2e8f0;
    --ttf-text-muted: #8892a4;
    --ttf-border: #1e293b;
    --ttf-input-bg: #0c1322;
    --ttf-radius: 12px;
    --ttf-sidebar-w: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--ttf-bg) !important; color: var(--ttf-text) !important; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.6; }
a { color: var(--ttf-primary); text-decoration: none; }
img { max-width: 100%; }
.ttf-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* PROMO BAR */
.ttf-promo-bar { background: linear-gradient(90deg, #3b82f6, #6366f1); color: #fff; text-align: center; padding: 8px 40px 8px 20px; font-size: 0.85rem; font-weight: 500; position: relative; z-index: 1001; }
.ttf-promo-new { background: #ff4757; color: #fff; font-size: 0.7rem; font-weight: 700; padding: 2px 10px; border-radius: 4px; margin-right: 12px; text-transform: uppercase; }
.ttf-promo-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0.7; }
.ttf-promo-close:hover { opacity: 1; }

/* PUBLIC HEADER */
.ttf-pub-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(11,17,32,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ttf-border); padding: 12px 0; }
.ttf-header-inner { display: flex; align-items: center; justify-content: space-between; }
.ttf-pub-logo { font-size: 1.5rem; font-weight: 800; color: #fff !important; text-decoration: none !important; }
.ttf-pub-nav a { color: var(--ttf-text-muted); margin: 0 16px; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.ttf-pub-nav a:hover { color: #fff; }
.ttf-pub-auth { display: flex; gap: 12px; align-items: center; }

/* Buttons */
.ttf-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; text-decoration: none !important; border: none; }
.ttf-btn-signin { background: var(--ttf-red); color: #fff !important; }
.ttf-btn-signin:hover { background: #e8404f; }
.ttf-btn-signup { background: var(--ttf-blue); color: #fff !important; }
.ttf-btn-signup:hover { background: #2563eb; }
.ttf-btn-red { background: var(--ttf-red); color: #fff !important; }
.ttf-btn-red:hover { background: #e8404f; transform: translateY(-1px); }
.ttf-btn-lg { padding: 14px 36px; font-size: 1.1rem; border-radius: 10px; }

/* HERO */
.ttf-hero { padding: 140px 0 80px; position: relative; overflow: hidden; min-height: 80vh; display: flex; align-items: center; }
.ttf-hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at 30% 50%, rgba(108,92,231,0.08) 0%, transparent 60%), radial-gradient(ellipse at 70% 30%, rgba(255,71,87,0.05) 0%, transparent 50%); }
.ttf-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.ttf-brands-ticker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ttf-brand-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; background: rgba(255,255,255,0.06); color: var(--ttf-text-muted); }
.ttf-brand-tag.yt { color: #ff0000; }
.ttf-brand-tag.tt { color: #fff; }
.ttf-brand-tag.tw { color: #1da1f2; }
.ttf-brand-tag.ig { color: #e1306c; }
.ttf-brand-tag.sp { color: #1db954; }
.ttf-brand-tag.twitch { color: #9146ff; }
.ttf-brand-tag.sound { color: #ff5500; }
.ttf-brand-tag.pin { color: #e60023; }
.ttf-hero h1 { font-size: 3.2rem; font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.ttf-hero-desc { font-size: 1.1rem; color: var(--ttf-text-muted); max-width: 500px; margin-bottom: 32px; line-height: 1.7; }
.ttf-hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ttf-trustpilot-widget { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ttf-tp-header { display: flex; align-items: center; gap: 4px; }
.ttf-tp-name { color: #fff; font-weight: 700; font-size: 0.95rem; }
.ttf-tp-stars-row { display: flex; gap: 2px; }
.ttf-tp-star-box { width: 24px; height: 24px; background: #00b67a; display: flex; align-items: center; justify-content: center; }
.ttf-tp-star-box::after { content: '\2605'; color: #fff; font-size: 0.8rem; }
.ttf-tp-score { color: var(--ttf-text-muted); font-size: 0.8rem; font-weight: 600; }
.ttf-brand-logos { display: flex; align-items: center; gap: 24px; margin-top: 28px; opacity: 0.6; filter: brightness(0) invert(1); }
.ttf-brand-logos img { height: 1.6rem; }
.ttf-hero-visual { display: flex; justify-content: center; }
.ttf-phone-wrapper { position: relative; width: 380px; height: 500px; }
.ttf-phone-mockup { width: 260px; height: 440px; background: #fff; border-radius: 36px; padding: 12px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px rgba(255,255,255,0.05); z-index: 2; }
.ttf-phone-notch { width: 60px; height: 6px; background: #e0e0e0; border-radius: 4px; margin: 4px auto 8px; }
.ttf-phone-screen { background: #f8f9fa; border-radius: 24px; height: calc(100% - 20px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; position: relative; overflow: hidden; }
.ttf-phone-confetti { position: absolute; top: 0; left: 0; right: 0; height: 60px; }
.ttf-conf { position: absolute; font-size: 0.9rem; animation: confetti-fall 3s ease-in-out infinite; }
.ttf-conf.c1 { left: 20%; animation-delay: 0s; }
.ttf-conf.c2 { left: 50%; animation-delay: 0.5s; }
.ttf-conf.c3 { left: 70%; animation-delay: 1s; }
.ttf-conf.c4 { left: 35%; animation-delay: 1.5s; }
@keyframes confetti-fall { 0% { transform: translateY(-10px) rotate(0deg); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(40px) rotate(180deg); opacity: 0; } }
.ttf-phone-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 3px solid #e1306c; margin-bottom: 16px; position: relative; z-index: 1; }
.ttf-phone-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ttf-phone-bars { display: flex; flex-direction: column; gap: 6px; width: 60%; margin-bottom: 16px; }
.ttf-bar { height: 8px; background: #e0e0e0; border-radius: 4px; }
.ttf-bar.short { width: 60%; }
.ttf-phone-bubble { background: #fff; padding: 8px 14px; border-radius: 20px; font-size: 0.72rem; color: #333; font-weight: 500; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.ttf-side-bubble { position: absolute; background: #fff; padding: 8px 16px; border-radius: 20px; font-size: 0.78rem; color: #333; font-weight: 500; box-shadow: 0 4px 20px rgba(0,0,0,0.12); z-index: 3; display: flex; align-items: center; gap: 6px; animation: float 3s ease-in-out infinite; white-space: nowrap; }
.ttf-sb-icon { font-size: 1rem; }
.ttf-sb-right1 { right: -20px; top: 35%; animation-delay: 0s; }
.ttf-sb-right2 { right: -10px; bottom: 20%; animation-delay: 1.5s; }
.ttf-float-heart { position: absolute; font-size: 1rem; z-index: 3; animation: heart-float 4s ease-in-out infinite; }
.ttf-fh1 { left: 10%; top: 40%; animation-delay: 0s; }
.ttf-fh2 { right: 25%; top: 20%; animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes heart-float { 0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; } 50% { transform: translateY(-12px) scale(1.2); opacity: 1; } }
.ttf-step-icon-wrap { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,71,87,0.15), rgba(108,92,231,0.15)); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.ttf-step-icon-wrap i { font-size: 1.4rem; color: var(--ttf-red); }
.ttf-how-works { padding: 80px 0; background: var(--ttf-bg2); }
.ttf-section-title { text-align: center; font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 48px; }
.ttf-section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--ttf-blue); margin: 12px auto 0; border-radius: 2px; }
.ttf-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ttf-step-card { background: var(--ttf-card); border-radius: var(--ttf-radius); padding: 32px 24px; text-align: center; position: relative; border: 1px solid var(--ttf-border); transition: transform 0.3s; }
.ttf-step-card:hover { transform: translateY(-4px); border-color: var(--ttf-primary); }
.ttf-step-num { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--ttf-red), #ff6b81); color: #fff; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.ttf-step-icon { font-size: 2.5rem; margin-bottom: 12px; }
.ttf-step-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.ttf-step-card p { color: var(--ttf-text-muted); font-size: 0.9rem; }
.ttf-services-preview { padding: 80px 0; }
.ttf-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ttf-service-card { background: var(--ttf-card); border: 1px solid var(--ttf-border); border-radius: var(--ttf-radius); padding: 28px; transition: all 0.3s; }
.ttf-service-card:hover { border-color: var(--ttf-primary); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,92,231,0.15); }
.ttf-service-card i { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.ttf-service-card .fa-instagram { color: #e1306c; }
.ttf-service-card .fa-tiktok { color: #fff; }
.ttf-service-card .fa-youtube { color: #ff0000; }
.ttf-service-card .fa-twitter { color: #1da1f2; }
.ttf-service-card .fa-spotify { color: #1db954; }
.ttf-service-card .fa-facebook { color: #1877f2; }
.ttf-service-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.ttf-service-card p { color: var(--ttf-text-muted); font-size: 0.85rem; }
.ttf-cta { padding: 80px 0; text-align: center; background: linear-gradient(180deg, var(--ttf-bg2) 0%, var(--ttf-bg) 100%); }
.ttf-cta h2 { font-size: 2rem; color: #fff; margin-bottom: 12px; }
.ttf-cta p { color: var(--ttf-text-muted); margin-bottom: 32px; font-size: 1.1rem; }
.ttf-pub-footer { padding: 40px 0; text-align: center; border-top: 1px solid var(--ttf-border); color: var(--ttf-text-muted); font-size: 0.85rem; }

/* ===== FORM CONTROLS (PerfectPanel .pnd-head) ===== */
.pnd-head .form-group { margin-bottom: 16px; }
.pnd-head .form-group label { display: block; color: #c0c8d8; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; }
.pnd-head .form-control,
.pnd-head input[type="text"],
.pnd-head input[type="password"],
.pnd-head input[type="email"] {
    width: 100%; padding: 12px 16px;
    background: rgba(12,19,34,0.9) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 8px; color: #fff !important; font-size: 0.95rem;
    transition: border-color 0.2s; -webkit-appearance: none;
}
.pnd-head .form-control:focus, .pnd-head input:focus {
    outline: none; border-color: var(--ttf-primary) !important;
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}
.pnd-head .form-control::placeholder, .pnd-head input::placeholder { color: var(--ttf-text-muted); }
.pnd-head .btn-primary { background: #4a5cf6; border: none; color: #fff; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s; }
.pnd-head .btn-primary:hover { background: #3b4de0; transform: translateY(-1px); }
.pnd-head .btn-started { background: #ff553c; border: none; color: #fff; padding: 12px 24px; border-radius: 8px; font-weight: 600; }
.pnd-head .w-100 { width: 100%; }
.pnd-head .mb-3 { margin-bottom: 1rem; }
.pnd-head .mt-3 { margin-top: 1rem; }
.pnd-head .text-center { text-align: center; }
.pnd-head a { color: var(--ttf-primary); }

/* WP Login Form inside pnd-head */
.pnd-head #ttf-login-form p { margin-bottom: 16px; }
.pnd-head #ttf-login-form label { display: block; color: #c0c8d8; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; }
.pnd-head #ttf-login-form input[type="text"],
.pnd-head #ttf-login-form input[type="password"] {
    width: 100%; padding: 12px 16px;
    background: rgba(12,19,34,0.9) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 8px; color: #fff !important; font-size: 0.95rem;
}
.pnd-head #ttf-login-form input[type="text"]:focus,
.pnd-head #ttf-login-form input[type="password"]:focus {
    border-color: var(--ttf-primary) !important;
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15); outline: none;
}
.pnd-head #ttf-login-form input[type="submit"] {
    width: 100%; padding: 12px; background: var(--ttf-red); color: #fff;
    border: none; border-radius: 8px; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.pnd-head #ttf-login-form input[type="submit"]:hover { background: #e8404f; transform: translateY(-1px); }
.pnd-head .login-remember { margin-bottom: 16px; }
.pnd-head .login-remember label { display: inline-flex !important; align-items: center; gap: 8px; color: var(--ttf-text-muted); font-size: 0.85rem; cursor: pointer; }

/* ===== AUTH PAGES ===== */
.ttf-auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px 40px; }
.ttf-auth-card { background: var(--ttf-card); border: 1px solid var(--ttf-border); border-radius: 16px; padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.ttf-auth-card h2 { text-align: center; color: #fff; font-size: 1.6rem; margin-bottom: 28px; font-weight: 700; }
.ttf-auth-card label { display: block; color: var(--ttf-text-muted); font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; }
.ttf-auth-card input[type="text"],
.ttf-auth-card input[type="password"],
.ttf-auth-card input[type="email"] { width: 100%; padding: 12px 16px; background: var(--ttf-input-bg); border: 1px solid var(--ttf-border); border-radius: 8px; color: #fff; font-size: 0.95rem; margin-bottom: 16px; transition: border-color 0.2s; }
.ttf-auth-card input:focus { outline: none; border-color: var(--ttf-primary); }
.ttf-auth-card .login-remember { margin-bottom: 16px; }
.ttf-auth-card .login-remember label { display: inline-flex; align-items: center; gap: 8px; color: var(--ttf-text-muted); font-size: 0.85rem; cursor: pointer; }
.ttf-auth-card input[type="submit"], .ttf-auth-card .button { width: 100%; padding: 12px; background: var(--ttf-red); color: #fff; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.ttf-auth-card input[type="submit"]:hover { background: #e8404f; }
.ttf-auth-links { display: flex; justify-content: space-between; margin-top: 20px; }
.ttf-auth-links a { color: var(--ttf-text-muted); font-size: 0.85rem; transition: color 0.2s; }
.ttf-auth-links a:hover { color: var(--ttf-primary); }

/* ===== PANEL SIDEBAR ===== */
.ttf-layout { display: flex; min-height: 100vh; }
.ttf-sidebar {
    width: var(--ttf-sidebar-w); background: var(--ttf-bg2); border-right: 1px solid var(--ttf-border);
    position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 100;
    display: flex; flex-direction: column; transition: transform 0.3s ease;
}
.ttf-sidebar-header { padding: 20px; border-bottom: 1px solid var(--ttf-border); text-align: center; }
.ttf-logo-link { display: inline-block; }
.ttf-logo-img { height: 28px; }
.ttf-user-info { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ttf-border); background: rgba(108,92,231,0.04); }
.ttf-user-avatar { font-size: 2rem; color: var(--ttf-primary); line-height: 1; }
.ttf-user-details { flex: 1; min-width: 0; }
.ttf-user-name { color: #fff; font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttf-user-balance { color: var(--ttf-green); font-weight: 700; font-size: 0.85rem; margin-top: 2px; }
.ttf-user-balance i { margin-right: 4px; font-size: 0.8rem; }
.ttf-nav { list-style: none; padding: 8px 0; flex: 1; }
.ttf-nav li a {
    display: flex; align-items: center; gap: 12px; padding: 11px 20px;
    color: var(--ttf-text-muted); font-size: 0.9rem; font-weight: 500;
    transition: all 0.2s; text-decoration: none !important;
    border-left: 3px solid transparent;
}
.ttf-nav li a i { width: 20px; text-align: center; font-size: 1rem; transition: color 0.2s; }
.ttf-nav li a:hover { color: #fff; background: rgba(108,92,231,0.08); border-left-color: rgba(108,92,231,0.4); }
.ttf-nav li a.active { color: #fff; background: rgba(108,92,231,0.12); border-left-color: var(--ttf-primary); }
.ttf-nav li a.active i { color: var(--ttf-primary); }
.ttf-sidebar-footer { padding: 12px 20px; border-top: 1px solid var(--ttf-border); }
.ttf-logout-btn {
    display: flex; align-items: center; gap: 12px; padding: 10px 0;
    color: var(--ttf-text-muted); font-size: 0.9rem; font-weight: 500;
    transition: color 0.2s; text-decoration: none !important;
}
.ttf-logout-btn:hover { color: var(--ttf-red); }
.ttf-logout-btn i { width: 20px; text-align: center; }

/* ===== TOPBAR ===== */
.ttf-main-wrapper { flex: 1; margin-left: var(--ttf-sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.ttf-topbar {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 12px 32px; background: var(--ttf-bg2); border-bottom: 1px solid var(--ttf-border);
    position: sticky; top: 0; z-index: 50;
}
.ttf-mobile-toggle { display: none; background: none; border: none; color: var(--ttf-text); font-size: 1.3rem; cursor: pointer; padding: 4px 8px; margin-right: auto; }
.ttf-topbar-right { display: flex; align-items: center; gap: 16px; }
.ttf-topbar-balance { color: var(--ttf-green); font-weight: 600; font-size: 0.9rem; }
.ttf-topbar-balance i { margin-right: 4px; }
.ttf-topbar-add-funds {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px;
    background: var(--ttf-primary); color: #fff !important; border-radius: 6px;
    font-size: 0.85rem; font-weight: 600; transition: background 0.2s; text-decoration: none !important;
}
.ttf-topbar-add-funds:hover { background: var(--ttf-primary-dark); }

/* ===== MAIN CONTENT ===== */
.ttf-main { flex: 1; padding: 28px 32px; background: var(--ttf-bg); }
.ttf-main h2 { color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.ttf-main h3 { color: #fff; font-size: 1.2rem; font-weight: 600; }

/* ===== PANEL CARDS ===== */
.ttf-panel .ttf-card { background: var(--ttf-card); border: 1px solid var(--ttf-border); border-radius: var(--ttf-radius); padding: 24px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.ttf-panel .ttf-card h3 { margin: 0 0 20px; }

/* ===== STATS ===== */
.ttf-panel .ttf-stats-bar { display: flex; justify-content: space-between; align-items: center; background: var(--ttf-card); border: 1px solid var(--ttf-border); padding: 16px 24px; border-radius: var(--ttf-radius); margin-bottom: 20px; }
.ttf-panel .ttf-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.ttf-panel .ttf-stat-card { background: var(--ttf-card); border: 1px solid var(--ttf-border); border-radius: var(--ttf-radius); padding: 20px 24px; display: flex; align-items: center; gap: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); transition: border-color 0.2s; }
.ttf-panel .ttf-stat-card:hover { border-color: var(--ttf-primary); }
.ttf-panel .ttf-stat-icon { font-size: 2rem; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(108,92,231,0.1); }
.ttf-panel .ttf-stat-label { display: block; font-size: 0.85rem; color: var(--ttf-text-muted); margin-bottom: 4px; }
.ttf-panel .ttf-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--ttf-green); }

/* ===== TABLES ===== */
.ttf-panel .ttf-table-wrap { overflow-x: auto; border-radius: var(--ttf-radius); }
.ttf-panel table, .ttf-panel .ttf-table { width: 100%; border-collapse: collapse; }
.ttf-panel table th, .ttf-panel .ttf-table th {
    background: rgba(74,92,246,0.08); color: var(--ttf-text-muted);
    padding: 12px 16px; text-align: left; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--ttf-border); white-space: nowrap;
}
.ttf-panel table td, .ttf-panel .ttf-table td { padding: 12px 16px; border-bottom: 1px solid rgba(30,41,59,0.6); color: var(--ttf-text); font-size: 0.9rem; }
.ttf-panel table tr:hover td, .ttf-panel .ttf-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== FORMS ===== */
.ttf-panel .ttf-form-group { margin-bottom: 16px; }
.ttf-panel .ttf-form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: var(--ttf-text-muted); }
.ttf-panel .ttf-input, .ttf-panel .ttf-select, .ttf-panel .ttf-textarea,
.ttf-panel input[type="text"], .ttf-panel input[type="number"],
.ttf-panel input[type="url"], .ttf-panel input[type="email"],
.ttf-panel input[type="password"], .ttf-panel select, .ttf-panel textarea {
    width: 100%; padding: 11px 14px; background: var(--ttf-input-bg);
    border: 1px solid var(--ttf-border); border-radius: 8px; color: #fff;
    font-size: 0.9rem; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}
.ttf-panel .ttf-input:focus, .ttf-panel .ttf-select:focus, .ttf-panel .ttf-textarea:focus,
.ttf-panel input:focus, .ttf-panel select:focus, .ttf-panel textarea:focus {
    outline: none; border-color: var(--ttf-primary); box-shadow: 0 0 0 3px rgba(108,92,231,0.12);
}
.ttf-panel select { cursor: pointer; padding-right: 36px; }
.ttf-panel select option { background: var(--ttf-bg2); color: #fff; }
.ttf-panel textarea { resize: vertical; min-height: 80px; }
.ttf-form-row { display: flex; gap: 16px; }
.ttf-half { flex: 1; }
.ttf-help { display: block; font-size: 0.8rem; color: var(--ttf-text-muted); margin-top: 4px; }

/* ===== PANEL BUTTONS ===== */
.ttf-panel .ttf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px; border: none; border-radius: 8px; font-size: 0.9rem;
    font-weight: 600; cursor: pointer; text-decoration: none !important;
    transition: all 0.2s; text-align: center; font-family: inherit;
}
.ttf-panel .ttf-btn-primary { background: var(--ttf-primary); color: #fff !important; }
.ttf-panel .ttf-btn-primary:hover { background: var(--ttf-primary-dark); transform: translateY(-1px); }
.ttf-panel .ttf-btn-secondary { background: var(--ttf-green); color: #fff !important; }
.ttf-panel .ttf-btn-secondary:hover { background: #00a383; }
.ttf-panel .ttf-btn-outline { background: transparent; border: 1px solid var(--ttf-border); color: var(--ttf-text) !important; }
.ttf-panel .ttf-btn-outline:hover { border-color: var(--ttf-primary); color: var(--ttf-primary) !important; }
.ttf-panel .ttf-btn-danger { background: var(--ttf-red); color: #fff !important; }
.ttf-panel .ttf-btn-danger:hover { background: #e8404f; }
.ttf-panel .ttf-btn-lg { padding: 14px 32px; font-size: 1rem; width: 100%; }
.ttf-panel .ttf-btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.ttf-panel .ttf-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== STATUS BADGES ===== */
.ttf-panel .ttf-status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; text-transform: capitalize; }
.ttf-status-pending { background: rgba(243,156,18,0.12); color: #f39c12; }
.ttf-status-processing, .ttf-status-in_progress { background: rgba(59,130,246,0.12); color: #3b82f6; }
.ttf-status-completed { background: rgba(0,184,148,0.12); color: var(--ttf-green); }
.ttf-status-partial { background: rgba(241,196,15,0.12); color: #f1c40f; }
.ttf-status-cancelled, .ttf-status-refunded { background: rgba(231,76,60,0.12); color: #e74c3c; }
.ttf-status-open { background: rgba(59,130,246,0.12); color: #3b82f6; }
.ttf-status-answered { background: rgba(0,184,148,0.12); color: var(--ttf-green); }
.ttf-status-closed { background: rgba(149,165,166,0.12); color: #95a5a6; }
.ttf-status-active { background: rgba(0,184,148,0.12); color: var(--ttf-green); }
.ttf-panel .ttf-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.ttf-panel .ttf-badge-success { background: rgba(0,184,148,0.15); color: var(--ttf-green); }
.ttf-panel .ttf-badge-warning { background: rgba(243,156,18,0.15); color: #f39c12; }
.ttf-panel .ttf-badge-danger { background: rgba(231,76,60,0.15); color: #e74c3c; }
.ttf-panel .ttf-badge-info { background: rgba(74,92,246,0.15); color: #4a5cf6; }

/* ===== MISC PANEL ===== */
.ttf-panel .ttf-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.ttf-panel .ttf-page-header h2 { margin: 0; }
.ttf-panel .ttf-filters { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.ttf-panel .ttf-quick-links { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.ttf-link-truncate { color: var(--ttf-primary) !important; text-decoration: none; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.ttf-empty { text-align: center; color: var(--ttf-text-muted); padding: 40px !important; }
.ttf-mt-2 { margin-top: 16px; }
.ttf-positive { color: var(--ttf-green) !important; }
.ttf-negative { color: var(--ttf-red) !important; }
.ttf-balance-large { font-size: 1.8rem !important; }
.ttf-charge-display { font-size: 1.5rem; font-weight: 700; color: var(--ttf-green); padding: 8px 0; }
.ttf-description { background: var(--ttf-input-bg); padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; line-height: 1.6; border-left: 3px solid var(--ttf-primary); }
.ttf-checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* Steps in order form */
.ttf-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.ttf-step { text-align: center; padding: 20px; }
.ttf-instructions .ttf-step-num { width: 40px; height: 40px; line-height: 40px; border-radius: 50%; background: var(--ttf-primary); color: #fff; font-weight: 700; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.ttf-instructions .ttf-step h4 { margin: 0 0 8px; color: #fff; }
.ttf-instructions .ttf-step p { margin: 0; font-size: 0.85rem; color: var(--ttf-text-muted); }

/* Tickets */
.ttf-ticket-messages { margin-bottom: 24px; }
.ttf-message { padding: 16px; border-radius: var(--ttf-radius); margin-bottom: 12px; }
.ttf-message-user { background: var(--ttf-input-bg); border-left: 3px solid var(--ttf-primary); }
.ttf-message-admin { background: rgba(0,184,148,0.06); border-left: 3px solid var(--ttf-green); }
.ttf-message-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.85rem; }
.ttf-message-time { color: var(--ttf-text-muted); }

/* Payment */
.ttf-payment-grid { display: grid; gap: 10px; }
.ttf-payment-option {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px;
    background: var(--ttf-input-bg); border: 1px solid var(--ttf-border);
    border-radius: 8px; cursor: pointer; transition: border-color 0.2s;
}
.ttf-payment-option:hover { border-color: rgba(108,92,231,0.4); }
.ttf-payment-option input[type="radio"] { accent-color: var(--ttf-primary); }
.ttf-payment-option:has(input:checked) { border-color: var(--ttf-primary); background: rgba(108,92,231,0.06); }

/* Referral */
.ttf-referral-link-wrap { display: flex; gap: 10px; margin-bottom: 8px; }
.ttf-referral-link-wrap .ttf-input { flex: 1; }

/* Services list */
.ttf-services-list h2 { margin-bottom: 20px; }
.ttf-services-table .ttf-category-row td { background: rgba(108,92,231,0.12) !important; color: #fff !important; font-weight: 700; font-size: 0.9rem; padding: 10px 16px; border: none; }

/* Toast */
.ttf-toast { position: fixed; top: 20px; right: 20px; padding: 14px 24px; border-radius: 8px; color: #fff; font-weight: 600; z-index: 99999; animation: ttf-slide-in 0.3s ease; }
.ttf-toast-success { background: var(--ttf-green); }
.ttf-toast-error { background: var(--ttf-red); }
@keyframes ttf-slide-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Login required */
.ttf-login-required { text-align: center; padding: 60px 20px; color: var(--ttf-text-muted); font-size: 1.1rem; }
.ttf-login-required a { color: var(--ttf-primary); font-weight: 600; }

/* Loading */
.ttf-loading { opacity: 0.5; pointer-events: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ttf-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .ttf-hero h1 { font-size: 2.2rem; }
    .ttf-hero-desc { margin: 0 auto 32px; }
    .ttf-hero-actions { justify-content: center; }
    .ttf-hero-visual { display: none; }
    .ttf-steps-grid { grid-template-columns: 1fr; }
    .ttf-services-grid { grid-template-columns: 1fr 1fr; }
    .ttf-pub-nav { display: none; }
    .ttf-sidebar { transform: translateX(-100%); width: 260px; box-shadow: none; }
    .ttf-sidebar.open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,0.5); }
    .ttf-main-wrapper { margin-left: 0; }
    .ttf-mobile-toggle { display: block; }
    .ttf-main { padding: 20px 16px; }
    .ttf-topbar { padding: 12px 16px; }
    .ttf-panel .ttf-stats-bar { flex-direction: column; gap: 12px; text-align: center; }
    .ttf-form-row { flex-direction: column; }
    .ttf-panel .ttf-page-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .ttf-panel .ttf-quick-links { flex-direction: column; }
    .ttf-panel .ttf-quick-links .ttf-btn { width: 100%; }
    .ttf-panel .ttf-filters { flex-direction: column; }
    .ttf-panel .ttf-filters .ttf-select-sm,
    .ttf-panel .ttf-filters .ttf-input-sm { width: 100%; }
    .ttf-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .ttf-services-grid { grid-template-columns: 1fr; } .ttf-steps { grid-template-columns: 1fr; } }

/* Brand ticker animation */
.pnd-brands b { display: none; font-size: 58px; font-weight: 700; line-height: 79px; }
.pnd-brands b.is-visible { display: inline-block; position: relative; opacity: 1; animation: fadein .5s; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Promo bar */
.ttf-promo-bar { background: linear-gradient(90deg, #3b82f6, #6366f1); color: #fff; text-align: center; padding: 8px 40px 8px 20px; font-size: 0.85rem; font-weight: 500; position: relative; z-index: 1001; }
.ttf-promo-new { background: #ff4757; color: #fff; font-size: 0.7rem; font-weight: 700; padding: 2px 10px; border-radius: 4px; margin-right: 12px; text-transform: uppercase; }
.ttf-promo-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0.7; }
.ttf-promo-close:hover { opacity: 1; }

/* Login page - PerfectPanel style */
.pnd-login-page { min-height: 80vh; display: flex; align-items: center; padding: 120px 0 60px; }
.pnd-login { background: #151f32; border-radius: 16px; padding: 40px; border: 1px solid #1e293b; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.pnd-lbox { }
.pnd-inp { position: relative; margin-bottom: 20px; }
.pnd-inp .inputText { width: 100%; padding: 16px 16px 6px; background: #0c1322; border: 1px solid #2d3748; border-radius: 10px; color: #fff; font-size: 1rem; outline: none; transition: border-color 0.3s; }
.pnd-inp .inputText:focus { border-color: #4a5cf6; }
.pnd-inp .pnd-label { position: absolute; top: 12px; left: 16px; color: #8892a4; font-size: 0.85rem; pointer-events: none; transition: all 0.2s; }
.pnd-inp .inputText:focus + .pnd-label,
.pnd-inp .inputText:not(:placeholder-shown) + .pnd-label,
.pnd-inp .inputText.has-value + .pnd-label { top: 4px; font-size: 0.7rem; color: #4a5cf6; }
.pnd-ltext { color: #8892a4; font-size: 0.85rem; }
.pnd-ltext:hover { color: #4a5cf6; }
.pnd-new { display: block; text-align: center; margin-top: 20px; }
.pnd-mregister { color: #8892a4; font-size: 0.9rem; }
.pnd-mregister:hover { color: #4a5cf6; }
.pnd-login .btn-primary { background: #4a5cf6; border: none; color: #fff; padding: 14px; border-radius: 10px; font-weight: 600; font-size: 1.05rem; width: 100%; }
.pnd-login .btn-primary:hover { background: #3b4de0; }
.pnd-login .form-check-input { margin-right: 6px; }
.pnd-login .form-row { display: flex; }
.pnd-login .col-6 { flex: 0 0 50%; max-width: 50%; }
.pnd-login .text-right { text-align: right; }
.pnd-login .text-center { text-align: center; }
.pnd-login .mt-3 { margin-top: 1rem; }
.pnd-login .mb-3 { margin-bottom: 1rem; }
.pnd-login .mb-4 { margin-bottom: 1.5rem; }
.pnd-login .mt-4 { margin-top: 1.5rem; }
.pnd-login .btn-block { display: block; width: 100%; }
.pnd-login .btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.google-login-wrapper { margin-top: 16px; }

/* Packages page placeholder */
.ttf-packages-coming { text-align: center; padding: 80px 20px; color: #8892a4; }
.ttf-packages-coming h2 { color: #fff; margin-bottom: 16px; }
