/* ==========================================================================
   NOIRVOX // AI Video Narrative Engine Stylesheet
   Dark Luxury Brutalist & High-Retention Cyberpunk
   ========================================================================== */

:root {
    --bg-deep: #07080b;
    --bg-surface: #0e1017;
    --bg-card: #131620;
    --bg-card-hover: #191d2b;
    --border-color: #202434;
    --border-highlight: #2f364d;
    
    --neon-cyan: #00f0ff;
    --neon-cyan-dim: rgba(0, 240, 255, 0.15);
    --neon-purple: #a855f7;
    --neon-purple-dim: rgba(168, 85, 247, 0.2);
    --neon-gold: #f59e0b;
    --neon-green: #10b981;
    --neon-rose: #f43f5e;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.2);
    --shadow-glow-purple: 0 0 30px rgba(168, 85, 247, 0.25);
}

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

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background Canvas */
.ambient-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
}

.orb-primary {
    top: -10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--neon-cyan), transparent 70%);
}

.orb-secondary {
    bottom: -15%;
    left: -5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--neon-purple), transparent 70%);
}

.cyber-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(7, 8, 11, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 24px;
    height: 24px;
    color: var(--neon-cyan);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
}

.brand-name span {
    color: var(--neon-cyan);
}

.brand-pill {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--neon-purple);
    background: var(--neon-purple-dim);
    border: 1px solid rgba(168, 85, 247, 0.4);
    padding: 3px 8px;
    border-radius: 6px;
}

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

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.2s;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tier-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tier-badge-pill:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan-dim);
}

.tier-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.credits-count {
    color: var(--neon-gold);
    background: rgba(245, 158, 11, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
}

.btn-auth {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auth:hover {
    background: var(--bg-card-hover);
    border-color: var(--neon-purple);
}

.auth-icon {
    width: 14px;
    height: 14px;
}

/* Studio Layout (Two-Column Architecture) */
.studio-layout {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: start;
}

/* Left Panel */
.control-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.panel-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--neon-cyan);
    display: block;
    margin-bottom: 6px;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.panel-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* Forms */
.form-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.label-hint {
    color: var(--neon-purple);
    font-size: 10px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-wrapper textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    resize: none;
    transition: all 0.2s;
}

.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-dim);
}

.preset-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.preset-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s;
}

.preset-chip:hover {
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

.preset-chip.active {
    background: var(--neon-cyan-dim);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    font-weight: 600;
}

/* Toggle Group for Format */
.toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--neon-purple);
    color: var(--text-primary);
}

.toggle-icon {
    width: 14px;
    height: 14px;
}

.custom-select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-select:focus {
    outline: none;
    border-color: var(--neon-cyan);
}

/* Voice Selection Cards */
.voice-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.voice-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.voice-card:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
}

.voice-card.active {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-dim);
}

.voice-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--neon-cyan);
    flex-shrink: 0;
}

.voice-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.voice-name {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
}

.voice-tone {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-preview-voice {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.btn-preview-voice:hover {
    text-decoration: underline;
}

.sliders-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-top: 4px;
}

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

.slider-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
}

.slider-label strong {
    color: var(--text-primary);
}

input[type="range"] {
    accent-color: var(--neon-cyan);
    cursor: pointer;
}

/* Submit Action Button */
.action-submit-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.btn-generate-narrative {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--neon-cyan), #0099ff 60%, var(--neon-purple));
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 16px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-generate-narrative:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 45px rgba(0, 240, 255, 0.55);
}

.btn-generate-narrative:active {
    transform: translateY(0);
}

.btn-spark-icon {
    width: 18px;
    height: 18px;
}

.generate-status-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* Right Panel: Video Viewport */
.preview-panel {
    position: sticky;
    top: 90px;
}

.preview-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.traffic-lights {
    display: flex;
    gap: 6px;
}

.light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.light.red { background: #ef4444; }
.light.yellow { background: #f59e0b; }
.light.green { background: #10b981; }

.preview-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.fps-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--neon-green);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Device Viewport Stage */
.viewport-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-color);
    min-height: 440px;
}

.device-mockup {
    position: relative;
    width: 250px;
    height: 444px;
    background: #050608;
    border: 2px solid var(--border-highlight);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.device-mockup.horizontal {
    width: 444px;
    height: 250px;
}

#video-canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Subtitles Overlay Layer */
.canvas-subtitles-overlay {
    position: absolute;
    bottom: 24%;
    left: 12px;
    right: 12px;
    text-align: center;
    pointer-events: none;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sub-word {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.5px;
}

.sub-word.highlight {
    background: #ffe600;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.6);
    transform: scale(1.08);
}

.sub-sentence {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* Equalizer Bars */
.audio-equalizer-bar {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 3px;
    height: 16px;
    align-items: flex-end;
}

.eq-col {
    width: 3px;
    background: var(--neon-cyan);
    border-radius: 2px;
    height: 4px;
    transition: height 0.1s ease;
}

/* Watermark */
.watermark-badge {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* Player Controls */
.player-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-card);
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
}

.timeline-progress {
    height: 100%;
    background: var(--neon-cyan);
    border-radius: 999px;
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: width 0.1s linear;
}

.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-play-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--neon-cyan);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s;
}

.btn-play-toggle:hover {
    transform: scale(1.08);
}

.play-icon {
    width: 16px;
    height: 16px;
}

.time-readout {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
}

.btn-control-tool {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-control-tool:hover {
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

/* Script Breakdown Tabs */
.script-tabs-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

.tab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
    border-bottom: 2px solid var(--neon-cyan);
}

.tab-content {
    padding: 14px;
    max-height: 220px;
    overflow-y: auto;
}

.tab-content.hidden {
    display: none;
}

/* Script Nodes */
.script-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.script-node {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border-left: 3px solid var(--neon-cyan);
}

.script-node.hook { border-left-color: #ef4444; }
.script-node.climax { border-left-color: var(--neon-purple); }
.script-node.cta { border-left-color: var(--neon-gold); }

.node-time {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    display: inline-block;
    margin-right: 8px;
}

.node-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--neon-cyan);
}

.node-text {
    font-size: 12px;
    color: var(--text-primary);
    margin-top: 4px;
    line-height: 1.4;
}

/* Export Grid */
.export-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-export-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-export-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--neon-cyan);
}

/* ==========================================================================
   Pricing Section (Tiers)
   ========================================================================== */
.pricing-section {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 24px;
}

.section-title-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-purple);
    display: block;
    margin-bottom: 8px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 14px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.pricing-card.featured {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 35px var(--neon-cyan-dim);
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.04), var(--bg-surface) 60%);
}

.badge-recommended {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-cyan);
    color: #000;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.card-tier-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.card-tier-tag.highlight {
    color: var(--neon-cyan);
}

.tier-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 8px 0;
}

.tier-price .currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
}

.tier-price .amount {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.tier-price .period {
    color: var(--text-muted);
    font-size: 13px;
}

.tier-description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.tier-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.tier-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-primary);
}

.tier-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

.tier-features li span {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    font-size: 12px;
}

.tier-features li.disabled span {
    color: var(--text-muted);
}

.btn-tier-select {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-tier-select:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
}

.btn-tier-select.highlight {
    background: var(--neon-cyan);
    border: none;
    color: #000;
    box-shadow: 0 0 25px var(--neon-cyan-dim);
}

.btn-tier-select.highlight:hover {
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.5);
}

/* ==========================================================================
   Modals & Checkout
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.btn-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.15s;
}

.btn-modal-close:hover {
    color: #fff;
}

.checkout-header {
    margin-bottom: 20px;
}

.checkout-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 1.5px;
}

.checkout-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-top: 4px;
}

.checkout-subtitle {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 4px;
}

.order-summary-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.summary-line.tax {
    font-size: 11px;
    color: var(--text-muted);
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.summary-line.total {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.total-highlight {
    color: var(--neon-cyan);
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.custom-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    transition: border-color 0.2s;
}

.custom-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
}

.card-input-wrapper {
    position: relative;
}

.card-brand-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-confirm-payment {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
    transition: transform 0.15s;
}

.btn-confirm-payment:hover {
    transform: translateY(-2px);
}

.secure-notice {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

/* Auth Modal Specifics */
.btn-google-sso {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-google-sso:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
}

.google-svg {
    width: 18px;
    height: 18px;
}

.or-separator {
    text-align: center;
    position: relative;
    margin: 16px 0;
}

.or-separator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.or-separator span {
    position: relative;
    background: var(--bg-surface);
    padding: 0 12px;
    font-size: 11px;
    color: var(--text-muted);
}

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

.auth-toggle-link {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-text-link {
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    font-weight: 600;
    cursor: pointer;
    margin-left: 4px;
}

/* Toast Notification */
.notification-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--neon-cyan-dim);
    animation: slideUp 0.25s ease-out;
}

.notification-toast.hidden {
    display: none;
}

.toast-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .studio-layout {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        position: relative;
        top: 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner {
        padding: 10px 16px;
    }

    .nav-links {
        display: none;
    }

    .control-panel {
        padding: 20px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .voice-cards-grid {
        grid-template-columns: 1fr;
    }

    .export-actions-grid {
        grid-template-columns: 1fr;
    }
}
