/*
Theme Name: TradingView Connector
Theme URI: https://tradingviewconnector.com
Description: Landing page theme cho TradingView Connector - TradingView Alerts to MT4/MT5
Version: 1.0.0
Author: TradingView Connector
Author URI: https://tradingviewconnector.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tradingview-connector
*/

/* ==================== RESET & BASE ==================== */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #10B981;
    --dark: #0F172A;
    --dark-light: #1E293B;
    --gray: #64748B;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --gradient-dark: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header .logo-container { display: flex; align-items: center; gap: 12px; }
.header .logo-container img { height: 32px; }

.header nav { display: flex; gap: 32px; }

.header nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header nav a:hover { color: var(--white); }

.header .actions { display: flex; gap: 16px; align-items: center; }

.header .btn-login {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.header .btn-download {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.header .btn-download i {
    font-size: 13px;
}

/* ==================== HERO ==================== */
.hero {
    padding: 140px 40px 100px;
    text-align: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 30px;
    font-size: 14px;
    color: #818CF8;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero > p {
    font-size: 20px;
    color: rgba(255,255,255,0.7);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat { text-align: center; }

.hero-stat .label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.hero-stat .value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}

.hero-stat .value span { color: #10B981; }

/* ==================== LOGOS ==================== */
.logos-section {
    padding: 60px 0;
    background: var(--dark);
    text-align: center;
    overflow: hidden;
}

.logos-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 32px;
    padding: 0 40px;
}

.logos-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.logos-track:hover { animation-play-state: paused; }

.logos-wrapper {
    display: flex;
    gap: 60px;
    align-items: center;
    padding: 0 30px;
}

.logos-wrapper img {
    height: 40px;
    filter: grayscale(100%) brightness(1.8);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logos-wrapper img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== SECTIONS ==================== */
.section { padding: 100px 40px; }
.section-dark { background: var(--dark); }
.section-darker { background: var(--dark-light); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #818CF8;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== FEATURES ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-5px);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card .icon i { font-size: 20px; color: white; }

.feature-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

/* ==================== COMPARISON ==================== */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 40px;
}

.comparison-card.negative { border-color: rgba(239, 68, 68, 0.2); }

.comparison-card.positive {
    border-color: rgba(16, 185, 129, 0.2);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.comparison-header .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.negative .comparison-header .icon { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.positive .comparison-header .icon { background: rgba(16, 185, 129, 0.1); color: #10B981; }

.comparison-header h4 { font-size: 18px; font-weight: 600; }

.comparison-list { list-style: none; }

.comparison-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: rgba(255,255,255,0.7);
}

.comparison-list li i { font-size: 16px; }
.negative .comparison-list li i { color: #EF4444; }
.positive .comparison-list li i { color: #10B981; }

/* ==================== PRICING ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.3);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.1) 0%, rgba(79, 70, 229, 0.02) 100%);
    border-color: rgba(79, 70, 229, 0.3);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.pricing-icon i { font-size: 24px; color: white; }
.pricing-name { font-size: 24px; font-weight: 700; margin-bottom: 8px; }

.pricing-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
    min-height: 60px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 24px;
}

.pricing-price .currency { font-size: 24px; font-weight: 600; color: rgba(255,255,255,0.5); }

.pricing-price .amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
}

.pricing-price .period { font-size: 16px; color: rgba(255,255,255,0.5); }

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pricing-features li i { color: #10B981; font-size: 14px; }

.pricing-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

/* ==================== STEPS ==================== */
.steps-container { max-width: 900px; margin: 0 auto; }

.step-item {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    padding: 32px;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(79, 70, 229, 0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }

.step-content p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

/* ==================== FAQ ==================== */
.faq-container { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-question i { color: #818CF8; transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer-content {
    padding: 0 24px 20px;
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

/* ==================== CTA ==================== */
.cta-section {
    padding: 120px 40px;
    background: linear-gradient(180deg, var(--dark-light) 0%, var(--dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.cta-section > p {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    padding: 80px 40px 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin-top: 20px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    letter-spacing: -0.3px;
}

.footer-links h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .features-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero { padding: 120px 20px 80px; }
    .features-grid, .pricing-grid, .comparison { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .header nav { display: none; }
    .header { padding: 14px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .step-item { flex-direction: column; gap: 16px; }
    .section { padding: 60px 20px; }
    .section-title { font-size: 32px; }
    .cta-section h2 { font-size: 32px; }
    .cta-section { padding: 80px 20px; }
}

/* ==================== WP OVERRIDES ==================== */
.wp-admin-bar .header {
    top: 32px;
}

@media (max-width: 782px) {
    .wp-admin-bar .header {
        top: 46px;
    }
}

/* ══════════════════════════════════════════════
   AUTH PAGES (Login / Register)
══════════════════════════════════════════════ */
.tvc-auth-wrap {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
}
.tvc-auth-box {
    background: rgba(22,27,34,.95);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    backdrop-filter: blur(20px);
}
.tvc-auth-box--wide { max-width: 560px; }

.tvc-auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}
.tvc-auth-logo img { height: 36px; }
.tvc-auth-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}
.tvc-auth-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    text-align: center;
}
.tvc-auth-sub {
    color: #8b949e;
    font-size: 14px;
    text-align: center;
    margin: 0 0 28px;
}

/* Alerts */
.tvc-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tvc-alert-error   { background: rgba(220,53,69,.15); border: 1px solid rgba(220,53,69,.3); color: #ff6b7a; }
.tvc-alert-success { background: rgba(0,163,42,.15);  border: 1px solid rgba(0,163,42,.3);  color: #3ddc84; }
.tvc-alert-warning { background: rgba(255,193,7,.12); border: 1px solid rgba(255,193,7,.3); color: #ffc107; }

/* Form */
.tvc-auth-form { display: flex; flex-direction: column; gap: 18px; }
.tvc-form-group { display: flex; flex-direction: column; gap: 6px; }
.tvc-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #c9d1d9;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tvc-form-group label i { color: #58a6ff; font-size: 12px; }
.tvc-form-group label .req { color: #ff6b7a; }
.tvc-form-group input[type="text"],
.tvc-form-group input[type="email"],
.tvc-form-group input[type="password"],
.tvc-form-group input[type="tel"] {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    transition: all .2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.tvc-form-group input:focus {
    border-color: #58a6ff;
    background: rgba(88,166,255,.06);
    box-shadow: 0 0 0 3px rgba(88,166,255,.12);
}
.tvc-form-group input::placeholder { color: #484f58; }

/* Password toggle */
.tvc-input-pw { position: relative; }
.tvc-input-pw input { padding-right: 48px; }
.tvc-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8b949e;
    cursor: pointer;
    padding: 4px;
    font-size: 13px;
}
.tvc-toggle-pw:hover { color: #58a6ff; }

.tvc-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.tvc-checkbox {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    font-size: 13px !important;
    color: #8b949e !important;
    cursor: pointer;
}
.tvc-checkbox input { width: auto !important; cursor: pointer; }
.tvc-checkbox a { color: #58a6ff; }
.tvc-forgot { color: #58a6ff; font-size: 13px; text-decoration: none; }
.tvc-forgot:hover { text-decoration: underline; }

.tvc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .tvc-form-grid { grid-template-columns: 1fr; } }

.tvc-recaptcha { align-items: center; }

.tvc-btn-submit {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
    transition: all .2s;
    font-family: 'Inter', sans-serif;
}
.tvc-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37,99,235,.35);
    color: #fff;
}
.tvc-auth-switch {
    text-align: center;
    margin: 20px 0 0;
    font-size: 14px;
    color: #8b949e;
}
.tvc-auth-switch a { color: #58a6ff; text-decoration: none; font-weight: 600; }

/* ══════════════════════════════════════════════
   CUSTOMER DASHBOARD
══════════════════════════════════════════════ */
.tvc-dash-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 80px);
    background: #0d1117;
}
@media (max-width: 768px) {
    .tvc-dash-wrap { grid-template-columns: 1fr; }
}

.tvc-dash-sidebar {
    background: rgba(22,27,34,.98);
    border-right: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
}
.tvc-dash-user {
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    gap: 12px;
    align-items: center;
}
.tvc-dash-avatar img { border-radius: 50%; border: 2px solid #58a6ff; }
.tvc-dash-user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}
.tvc-dash-user-info strong { color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvc-dash-user-info span  { color: #8b949e; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tvc-dash-nav { padding: 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tvc-dash-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #8b949e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}
.tvc-dash-nav-link:hover { background: rgba(88,166,255,.08); color: #58a6ff; }
.tvc-dash-nav-link.active { background: rgba(88,166,255,.12); color: #58a6ff; font-weight: 600; }
.tvc-dash-nav-link i { width: 16px; text-align: center; }

.tvc-dash-logout { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.06); }
.tvc-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff6b7a;
    font-size: 13px;
    text-decoration: none;
}
.tvc-logout-btn:hover { color: #ff4d5e; }

.tvc-dash-main { padding: 32px; overflow-y: auto; }
.tvc-dash-main h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    color: #fff;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tvc-dash-main h2 i { color: #58a6ff; }

.tvc-dash-panel { display: none; }
.tvc-dash-panel.active { display: block; }

/* Cards */
.tvc-dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.tvc-card {
    background: rgba(22,27,34,.8);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.tvc-card-icon { font-size: 24px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.tvc-card--primary .tvc-card-icon { background: rgba(37,99,235,.15); color: #3b82f6; }
.tvc-card--green   .tvc-card-icon { background: rgba(0,163,42,.12);  color: #3ddc84; }
.tvc-card--blue    .tvc-card-icon { background: rgba(88,166,255,.12); color: #58a6ff; }
.tvc-card--purple  .tvc-card-icon { background: rgba(124,58,237,.15); color: #a78bfa; }
.tvc-card--danger  .tvc-card-icon { background: rgba(220,53,69,.12);  color: #ff6b7a; }
.tvc-card--warning .tvc-card-icon { background: rgba(255,193,7,.12);  color: #ffc107; }
.tvc-card-body { display: flex; flex-direction: column; gap: 4px; }
.tvc-card-label { color: #8b949e; font-size: 12px; }
.tvc-card-value { color: #fff; font-size: 17px; font-weight: 700; }

/* Info box */
.tvc-info-box {
    background: rgba(22,27,34,.8);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 24px;
}
.tvc-info-box h4 { color: #c9d1d9; font-size: 15px; margin: 0 0 12px; }
.tvc-info-table { width: 100%; border-collapse: collapse; }
.tvc-info-table th { color: #8b949e; font-size: 13px; font-weight: 500; padding: 10px 16px 10px 0; width: 140px; vertical-align: top; }
.tvc-info-table td { color: #c9d1d9; font-size: 14px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.05); }
.tvc-info-table tr:first-child td { border-top: none; }

/* CTA box */
.tvc-cta-box {
    background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.12));
    border: 1px solid rgba(88,166,255,.15);
    border-radius: 14px;
    padding: 24px;
    margin-top: 20px;
    text-align: center;
}
.tvc-cta-box h4 { color: #fff; margin: 0 0 8px; font-size: 16px; }
.tvc-cta-box p  { color: #8b949e; font-size: 14px; margin: 0 0 16px; }

/* Badges */
.badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; display: inline-block; }
.badge-trial    { background: rgba(255,193,7,.15);   color: #ffc107; border: 1px solid rgba(255,193,7,.3); }
.badge-monthly  { background: rgba(88,166,255,.15);  color: #58a6ff; border: 1px solid rgba(88,166,255,.3); }
.badge-yearly   { background: rgba(0,163,42,.12);    color: #3ddc84; border: 1px solid rgba(0,163,42,.3); }
.badge-lifetime { background: rgba(124,58,237,.15);  color: #a78bfa; border: 1px solid rgba(124,58,237,.3); }
.badge-expired  { background: rgba(220,53,69,.12);   color: #ff6b7a; border: 1px solid rgba(220,53,69,.3); }

/* Download */
.tvc-download-box {
    background: rgba(22,27,34,.8);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.tvc-download-icon { font-size: 40px; color: #58a6ff; }
.tvc-download-info h4 { color: #fff; margin: 0 0 4px; font-size: 16px; }
.tvc-download-info p  { color: #8b949e; font-size: 13px; margin: 0; }
.tvc-download-box .tvc-btn-submit { width: auto; margin-left: auto; flex-shrink: 0; }

.tvc-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8b949e;
}
.tvc-empty-state i { font-size: 48px; margin-bottom: 16px; display: block; }

.tvc-btn-sm {
    background: rgba(255,255,255,.1);
    color: #fff;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    margin-left: 10px;
    display: inline-block;
}
