/* === TTV ELITE — Gold & Dark Theme === */

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --bg-elevated: #161616;
    --bg-input: #0e0e0e;

    --gold-100: #FFF8E1;
    --gold-200: #F7D774;
    --gold-300: #E8C44A;
    --gold-400: #C9A84C;
    --gold-500: #A07C28;
    --gold-600: #7D5F1A;
    --gold-gradient: linear-gradient(135deg, #F7D774 0%, #C9A84C 50%, #A07C28 100%);
    --gold-glow: 0 0 30px rgba(247, 215, 116, 0.15);

    --text-primary: #f0f0f0;
    --text-secondary: #8a8a8a;
    --text-muted: #555;

    --border: #222;
    --border-gold: #3d3219;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    --transition: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video, svg { max-width: 100%; }

.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hidden { display: none !important; }

/* === Header === */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1000px; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-text {
    font-size: 18px; font-weight: 800; letter-spacing: 1px; color: var(--text-primary);
    display: flex; flex-direction: row; align-items: baseline; gap: 8px;
}

.logo-sub {
    font-size: 11px; font-weight: 500; letter-spacing: 1px;
    color: var(--text-secondary); text-transform: uppercase; line-height: 1;
}

.logo-elite {
    background: var(--gold-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.nav { display: flex; gap: 24px; align-items: center; }

.nav-link {
    color: var(--text-secondary); text-decoration: none;
    font-size: 14px; font-weight: 500; transition: color var(--transition);
}
.nav-link:hover { color: var(--gold-200); }

.nav-link-accent {
    color: #0a0a0a; background: var(--gold-gradient);
    padding: 7px 18px; border-radius: 100px; font-weight: 700;
}
.nav-link-accent:hover { color: #0a0a0a; }

/* === Burger menu === */
.burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span {
    display: block; width: 22px; height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: all 0.2s;
}

.mobile-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(10,10,10,0.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; z-index: 99;
    flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
    padding: 12px 0; font-size: 16px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu .nav-link:last-child { border-bottom: none; }
.mobile-menu .nav-link-accent {
    margin-top: 8px; text-align: center; padding: 12px;
}
.mobile-menu-title {
    font-size: 18px; font-weight: 800; letter-spacing: 0.5px;
    padding-bottom: 16px; margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu-footer {
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 16px; font-weight: 800; letter-spacing: 0.5px;
    color: var(--text-primary);
}

/* === Hero === */
.hero {
    position: relative; padding: 160px 24px 100px;
    text-align: center; overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 50% 0%, rgba(201, 168, 76, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 20% 50%, rgba(160, 124, 40, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 80% 50%, rgba(160, 124, 40, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content { position: relative; max-width: 650px; margin: 0 auto; }

.hero-badge {
    display: inline-block; padding: 6px 16px;
    border: 1px solid var(--border-gold); border-radius: 100px;
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    color: var(--gold-300); margin-bottom: 24px;
    background: rgba(201, 168, 76, 0.06);
}

.hero-title {
    font-size: 48px; font-weight: 900; line-height: 1.15;
    margin-bottom: 20px; letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 17px; color: var(--text-secondary);
    margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto;
}

.hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: var(--gold-gradient);
    color: #0a0a0a; font-size: 15px; font-weight: 700;
    text-decoration: none; border-radius: 100px;
    transition: all var(--transition); box-shadow: var(--gold-glow);
}
.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(247, 215, 116, 0.25);
}

/* === Features === */
.features { padding: 80px 24px; }

.section-title {
    text-align: center; font-size: 32px; font-weight: 800;
    margin-bottom: 48px; letter-spacing: -0.5px;
}

.features-grid {
    max-width: 800px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}

.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; transition: all var(--transition);
}
.feature-card:hover {
    border-color: var(--border-gold); background: var(--bg-card-hover);
    box-shadow: var(--gold-glow);
}

.feature-icon {
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); background: rgba(201, 168, 76, 0.08);
    color: var(--gold-300); margin-bottom: 16px;
}

.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* === Auth === */
.auth-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 100px 24px 60px;
}

.auth-card {
    width: 100%; max-width: 400px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px;
}

.auth-title {
    font-size: 24px; font-weight: 800; margin-bottom: 8px; text-align: center;
}

.auth-subtitle {
    font-size: 14px; color: var(--gold-300); text-align: center; margin-bottom: 24px;
}

.auth-error {
    background: rgba(231, 76, 60, 0.08); border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--radius-sm); padding: 10px 14px;
    color: #e74c3c; font-size: 13px; margin-bottom: 16px;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
}

.form-group input {
    padding: 12px 14px; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 14px; font-family: inherit;
    transition: border-color var(--transition);
}
.form-group input:focus {
    outline: none; border-color: var(--gold-400);
}
.form-group input::placeholder { color: var(--text-muted); }

.auth-switch {
    text-align: center; margin-top: 20px;
    font-size: 13px; color: var(--text-secondary);
}
.auth-switch a { color: var(--gold-300); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* === Dashboard === */
.dashboard { padding: 100px 24px 60px; }

.balance-card {
    background: var(--bg-card); border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg); padding: 28px 32px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 32px; box-shadow: var(--gold-glow);
}

.balance-label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 4px;
}

.balance-value {
    font-size: 36px; font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.balance-unit {
    font-size: 16px; font-weight: 600;
}

.dash-section { margin-bottom: 40px; }

.dash-section-title {
    font-size: 20px; font-weight: 700; margin-bottom: 16px;
}

/* === Speaker Selector === */
.speaker-section { margin-top: 16px; }

.speaker-label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 10px;
}

.speaker-selector { display: flex; gap: 8px; margin-bottom: 8px; }

.speaker-btn {
    width: 44px; height: 44px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-secondary);
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: all var(--transition);
}
.speaker-btn:hover {
    border-color: var(--gold-400); color: var(--text-primary);
}
.speaker-btn.active {
    background: var(--gold-gradient); color: #0a0a0a;
    border-color: transparent;
}

.speaker-hint {
    font-size: 12px; color: var(--text-muted);
}

.lang-select {
    width: 100%; padding: 10px 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 14px; font-family: inherit; cursor: pointer;
    margin-bottom: 6px;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.lang-select:focus { outline: none; border-color: var(--gold-400); }
.lang-select option { background: #1a1a1a; }

/* === Upload / Dropzone === */
.dropzone {
    border: 2px dashed var(--border); border-radius: var(--radius-lg);
    padding: 60px 24px; text-align: center; cursor: pointer;
    transition: all var(--transition); background: var(--bg-card);
}
.dropzone:hover, .dropzone.dragover {
    border-color: var(--gold-400); background: rgba(201, 168, 76, 0.04);
    box-shadow: var(--gold-glow);
}

.dropzone-icon { color: var(--gold-400); margin-bottom: 16px; }
.dropzone-text { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.dropzone-hint { font-size: 13px; color: var(--text-muted); }

.file-info {
    margin-top: 16px; padding: 16px 20px;
    background: var(--bg-card); border: 1px solid var(--border-gold);
    border-radius: var(--radius); display: flex; align-items: center;
    justify-content: space-between;
}
.file-info-row { display: flex; align-items: center; gap: 12px; }
.file-name { font-weight: 600; font-size: 14px; }
.file-size { font-size: 13px; color: var(--text-secondary); }

.btn-remove {
    background: none; border: 1px solid var(--border);
    color: var(--text-secondary); padding: 6px 14px;
    border-radius: var(--radius-sm); font-size: 12px;
    cursor: pointer; transition: all var(--transition);
}
.btn-remove:hover { border-color: #c0392b; color: #e74c3c; }

.btn-start {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; margin-top: 16px; padding: 16px;
    background: var(--gold-gradient); color: #0a0a0a;
    font-size: 15px; font-weight: 700; border: none;
    border-radius: var(--radius); cursor: pointer;
    transition: all var(--transition); box-shadow: var(--gold-glow);
}
.btn-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 40px rgba(247, 215, 116, 0.25);
}
.btn-start:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* === Progress === */
.progress-section { margin-top: 24px; }
.progress-header {
    display: flex; justify-content: space-between;
    font-size: 14px; font-weight: 600; margin-bottom: 10px;
}
#progressLabel { color: var(--text-secondary); }
#progressPercent { color: var(--gold-300); }
.progress-bar {
    height: 6px; background: var(--bg-elevated);
    border-radius: 100px; overflow: hidden;
}
.progress-fill {
    height: 100%; width: 0%; background: var(--gold-gradient);
    border-radius: 100px; transition: width 0.5s ease;
}

/* === Result === */
.result-section {
    margin-top: 32px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden;
}

.result-header {
    padding: 20px 24px; display: flex; justify-content: space-between;
    align-items: center; border-bottom: 1px solid var(--border);
}
.result-header h3 { font-size: 18px; font-weight: 700; }
.result-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-secondary); }

.result-tabs { display: flex; border-bottom: 1px solid var(--border); }

.tab-btn {
    flex: 1; padding: 12px; background: none; border: none;
    color: var(--text-secondary); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all var(--transition);
    border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--gold-300); border-bottom-color: var(--gold-400); }
.tab-btn:hover { color: var(--text-primary); }

.tab-content {
    display: none; padding: 24px; max-height: 500px; overflow-y: auto;
}
.tab-content.active { display: block; }

.result-text {
    font-size: 15px; line-height: 1.7; color: var(--text-primary); white-space: pre-wrap;
}

.segments-list { display: flex; flex-direction: column; gap: 8px; }

.segment-item {
    display: flex; gap: 12px; padding: 10px 14px;
    border-radius: var(--radius-sm); background: var(--bg-input);
    transition: background var(--transition);
}
.segment-item:hover { background: var(--bg-elevated); }

.segment-speaker {
    font-size: 12px; font-weight: 700; color: var(--gold-200);
    white-space: nowrap; min-width: 80px; padding-top: 2px;
}

.segment-time {
    font-size: 12px; font-weight: 600; color: var(--gold-400);
    white-space: nowrap; padding-top: 2px; min-width: 110px;
    font-variant-numeric: tabular-nums;
}

.segment-text { font-size: 14px; color: var(--text-primary); line-height: 1.5; }

.export-bar {
    padding: 16px 24px; border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.export-label {
    font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-right: 4px;
}

.export-btn {
    padding: 8px 18px; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all var(--transition);
}
.export-btn:hover {
    border-color: var(--gold-400); color: var(--gold-200);
    box-shadow: 0 0 12px rgba(247, 215, 116, 0.1);
}

.copy-btn {
    padding: 8px 18px; background: transparent;
    border: 1px solid var(--gold-400); border-radius: var(--radius-sm);
    color: var(--gold-300); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all var(--transition);
}
.copy-btn:hover { background: rgba(247,215,116,0.08); }
.copy-btn.copied { background: rgba(46,204,113,0.1); border-color: #2ecc71; color: #2ecc71; }

.promo-row {
    display: flex; gap: 12px; align-items: center;
}
.promo-input {
    flex: 1; padding: 12px 16px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 14px; font-family: inherit;
}
.promo-input:focus { outline: none; border-color: var(--gold-400); }

.error-section {
    margin-top: 20px; padding: 16px 20px;
    background: rgba(231, 76, 60, 0.08); border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--radius); color: #e74c3c; font-size: 14px; font-weight: 500;
}

/* === History === */
.history-list { display: flex; flex-direction: column; gap: 8px; }

.history-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: all var(--transition);
}
.history-item:hover {
    border-color: var(--border-gold); background: var(--bg-card-hover);
}

.history-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.history-icon { flex-shrink: 0; }

.history-info { display: flex; flex-direction: column; min-width: 0; }
.history-name {
    font-size: 14px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-meta { font-size: 12px; color: var(--text-secondary); }

.history-actions { display: flex; gap: 6px; flex-shrink: 0; margin-left: 12px; }

.history-empty {
    padding: 40px; text-align: center; color: var(--text-muted);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* === Plans / Pricing === */
/* === Use Cases === */
.usecases-section { padding: 80px 24px; background: #050505; }

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: -24px;
    margin-bottom: 48px;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .usecases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .usecases-grid { grid-template-columns: 1fr; }
}

.usecase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color var(--transition);
}
.usecase-card:hover { border-color: #333; }

.usecase-icon {
    width: 48px; height: 48px;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-300);
    margin-bottom: 18px;
}

.usecase-title {
    font-size: 16px; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.usecase-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.usecase-tag {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--gold-400);
    background: rgba(199,168,76,0.1);
    border: 1px solid rgba(199,168,76,0.2);
    border-radius: 20px;
    padding: 3px 12px;
}

.pricing-section { padding: 60px 24px 100px; }

.plans-grid {
    max-width: 800px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}

.plan-card {
    position: relative; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px 16px; text-align: center;
    transition: all var(--transition);
}
.plan-card:hover {
    border-color: var(--border-gold); box-shadow: var(--gold-glow);
}

.plan-featured { border-color: var(--gold-400); }

.plan-badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    padding: 3px 12px; background: var(--gold-gradient);
    color: #0a0a0a; font-size: 10px; font-weight: 700;
    border-radius: 100px; white-space: nowrap; letter-spacing: 0.5px;
}

.plan-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }

.plan-minutes {
    font-size: 28px; font-weight: 900; margin-bottom: 4px;
    background: var(--gold-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.plan-price { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }

.plan-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }

.plan-btn {
    display: block; padding: 10px; text-align: center;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 13px; font-weight: 600; text-decoration: none;
    transition: all var(--transition); cursor: pointer;
}
.plan-btn:hover {
    border-color: var(--gold-400); color: var(--gold-200);
}
.plan-btn-disabled {
    opacity: 0.5; cursor: default;
}
.plan-btn-disabled:hover {
    border-color: var(--border); color: var(--text-primary);
}

/* === Modal === */
.modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
}
.modal-overlay {
    position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}
.modal-content {
    position: relative; width: 90%; max-width: 700px; max-height: 80vh;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    display: flex; flex-direction: column;
}
.modal-header {
    padding: 20px 24px; display: flex; justify-content: space-between;
    align-items: center; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close {
    background: none; border: none; color: var(--text-secondary);
    font-size: 24px; cursor: pointer; padding: 4px 8px;
}
.modal-close:hover { color: var(--text-primary); }

/* === Footer === */
.footer {
    border-top: 1px solid var(--border); padding: 32px 24px;
}
.footer-inner {
    max-width: 1000px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { font-size: 16px; font-weight: 800; letter-spacing: 1px; }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--gold-300); }
.footer-legal {
    max-width: 1000px; margin: 12px auto 0; padding: 0 24px;
    font-size: 11px; color: var(--text-muted); text-align: center;
}

/* === Legal pages === */
.legal-section { padding: 100px 24px 60px; }
.legal-container {
    max-width: 700px; margin: 0 auto;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px;
}
.legal-container h1 {
    font-size: 24px; font-weight: 800; margin-bottom: 8px;
}
.legal-date { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.legal-container h2 {
    font-size: 16px; font-weight: 700; margin-top: 28px; margin-bottom: 10px;
    color: var(--gold-300);
}
.legal-container p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px; }
.legal-container ul {
    margin: 8px 0 12px 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}
.legal-container li { margin-bottom: 4px; }
.legal-container strong { color: var(--text-primary); }
.legal-container a { color: var(--gold-300); }

/* === Consent checkbox === */
.consent-group { margin-top: 8px; }
.consent-label {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 12px; color: var(--text-secondary); line-height: 1.5; cursor: pointer;
}
.consent-label input[type="checkbox"] {
    margin-top: 2px; accent-color: var(--gold-400); flex-shrink: 0;
    width: 16px; height: 16px;
}
.consent-label a { color: var(--gold-300); text-decoration: none; }
.consent-label a:hover { text-decoration: underline; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* === Responsive === */
@media (max-width: 768px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .usecases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    /* ---- Header & Nav ---- */
    .header-inner { padding: 0 16px; }
    .nav { display: none; }
    .burger { display: flex; }
    .logo-text { font-size: 14px; gap: 6px; }
    .logo-sub { font-size: 10px; }

    /* ---- Hero ---- */
    .hero { padding: 100px 16px 60px; }
    .hero-title { font-size: 26px; line-height: 1.2; letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 28px; }
    .hero-badge { font-size: 10px; padding: 4px 12px; }
    .hero-btn { font-size: 14px; padding: 12px 28px; }

    /* ---- Features ---- */
    .features { padding: 48px 16px; }
    .section-title { font-size: 22px; margin-bottom: 28px; }
    .features-grid { grid-template-columns: 1fr; gap: 10px; }
    .feature-card { padding: 20px 16px; }
    .feature-card h3 { font-size: 15px; }

    /* ---- Use cases ---- */
    .usecases-section { padding: 48px 16px; }
    .usecases-grid { grid-template-columns: 1fr; gap: 10px; }
    .usecase-card { padding: 20px 16px; }
    .section-subtitle { font-size: 13px; margin-bottom: 24px; }

    /* ---- Pricing ---- */
    .pricing-section { padding: 48px 16px 60px; }
    .plans-grid { grid-template-columns: 1fr; gap: 10px; }
    .plan-card { padding: 20px 16px; }

    /* ---- Dashboard ---- */
    .dashboard { padding: 80px 0 40px; }
    .container { padding: 0 16px; }
    .dash-section { padding: 20px 16px; margin-bottom: 12px; border-radius: var(--radius); }
    .dash-section-title { font-size: 17px; margin-bottom: 16px; }

    /* Balance */
    .balance-card { flex-direction: column; text-align: center; gap: 14px; padding: 20px 16px; }
    .balance-value { font-size: 32px; }

    /* Dropzone */
    .dropzone { padding: 28px 16px; }
    .dropzone-text { font-size: 14px; }
    .dropzone-icon svg { width: 36px; height: 36px; }

    /* File info */
    .file-info { flex-direction: column; align-items: flex-start; gap: 10px; }
    .file-name { font-size: 13px; word-break: break-all; white-space: normal; }

    /* Speakers */
    .speaker-selector { gap: 6px; }
    .speaker-btn { width: 38px; height: 38px; font-size: 14px; }
    .lang-select { font-size: 14px; padding: 10px 12px; }

    /* Start btn */
    .btn-start { font-size: 15px; padding: 14px; }

    /* Progress */
    .progress-header { font-size: 13px; }

    /* Result */
    .result-section { margin-top: 20px; }
    .result-header { padding: 14px 16px; }
    .result-header h3 { font-size: 16px; }
    .result-meta { display: none; }
    .tab-content { padding: 14px 16px; max-height: 400px; }
    .result-text {
        font-size: 13px; line-height: 1.7;
        white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
    }

    /* Segments */
    .segment-item { flex-direction: column; gap: 4px; padding: 10px 12px; }
    .segment-speaker { min-width: auto; font-size: 11px; }
    .segment-time { min-width: auto; font-size: 11px; }
    .segment-text { font-size: 13px; }

    /* Export bar */
    .export-bar { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
    .copy-btn { width: 100%; padding: 10px; }
    .export-label { width: 100%; font-size: 12px; margin-right: 0; }
    .export-btn { flex: 1; min-width: 0; font-size: 12px; padding: 8px 4px; text-align: center; }

    /* History */
    .history-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 12px; }
    .history-left { width: 100%; }
    .history-name { font-size: 13px; word-break: break-all; white-space: normal; overflow: visible; text-overflow: unset; }
    .history-meta { font-size: 11px; }
    .history-actions { margin-left: 0; width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
    .history-actions .export-btn { flex: 1; font-size: 12px; padding: 8px 4px; text-align: center; }

    /* Promo */
    .promo-row { flex-direction: column; gap: 10px; }
    .promo-input { width: 100%; box-sizing: border-box; }
    .promo-row .btn-start { margin-top: 0; }

    /* Auth */
    .auth-section { padding: 80px 16px 40px; align-items: flex-start; }
    .auth-card { padding: 24px 20px; }
    .auth-title { font-size: 22px; }

    /* Modal */
    .modal-content { margin: 8px; border-radius: var(--radius); max-height: calc(100vh - 16px); }
    .modal-header { padding: 14px 16px; }
    .modal-header h3 { font-size: 14px; }

    /* Legal */
    .legal-section { padding: 80px 16px 40px; }
    .legal-container h1 { font-size: 20px; }
    .legal-container h2 { font-size: 15px; }
    .legal-container p, .legal-container li { font-size: 13px; }

    /* Guide */
    .guide-section { padding: 76px 16px 40px; }
    .guide-header h1 { font-size: 22px; }
    .guide-block { padding: 18px 16px; }
    .guide-step-title { font-size: 15px; }
    .guide-step-body { padding-left: 0; margin-top: 10px; font-size: 13px; }
    .guide-step-num { width: 26px; height: 26px; font-size: 12px; margin-right: 10px; flex-shrink: 0; }
    .export-desc { gap: 8px; }
    .export-row { gap: 8px; }

    /* Updates */
    .updates-section { padding: 76px 16px 40px; }
    .updates-header h1 { font-size: 22px; }
    .update-item { flex-direction: column; gap: 8px; padding-bottom: 24px; padding-left: 0; }
    .update-item::before { display: none; }
    .update-meta { text-align: left; display: flex; gap: 10px; align-items: center; }
    .update-dot { display: none; }
    .update-title { font-size: 14px; }
    .update-list li { font-size: 12px; }

    /* Footer */
    .footer { padding: 24px 16px; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .footer-copy { font-size: 11px; }
}
