/**
 * NASplayer - Official Website Core Stylesheet
 * High-End Dark Obsidian Aesthetic · Apple & Vercel Inspired Design System
 */

:root {
    /* Color Palette - Deep Space & Obsidian */
    --bg-base: #06080d;
    --bg-surface: #0c1017;
    --bg-surface-elevated: #131924;
    --bg-surface-hover: #1a2232;
    --bg-glass: rgba(12, 16, 23, 0.75);
    --bg-glass-card: rgba(255, 255, 255, 0.03);
    --bg-glass-card-hover: rgba(255, 255, 255, 0.06);

    /* Brand Accent Colors */
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
    --primary-glow: rgba(99, 102, 241, 0.35);

    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.3);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.3);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.25);
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    /* Text Hierarchy */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #06080d;

    /* Borders & Dividers */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-highlight: rgba(255, 255, 255, 0.25);
    --border-primary: rgba(99, 102, 241, 0.4);

    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 48px -12px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 50px -10px var(--primary-glow);
    --shadow-cyan-glow: 0 0 50px -10px var(--accent-cyan-glow);

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --container-max: 1240px;
    --header-height: 76px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient Glow & Grid Background */
.bg-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-glow-1 {
    position: absolute;
    width: 650px;
    height: 650px;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
    filter: blur(80px);
}

.ambient-glow-2 {
    position: absolute;
    width: 550px;
    height: 550px;
    top: 40%;
    right: -100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
    filter: blur(90px);
}

.ambient-glow-3 {
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(16, 185, 129, 0.04) 50%, transparent 70%);
    filter: blur(100px);
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 80%);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.site-header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.brand-logo img {
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.brand-logo:hover img {
    transform: scale(1.05);
}

.brand-name {
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-badge {
    font-size: 0.7rem;
    padding: 2px 7px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.25));
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    border-radius: var(--radius-full);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 0.96rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.05);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.88rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-medium);
    padding: 24px;
    z-index: 999;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.mobile-nav-drawer.open {
    display: flex;
}

.mobile-nav-drawer a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    text-align: center;
    position: relative;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 24px;
}

.gradient-text-primary {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 40%, #6366f1 80%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 36px auto;
    line-height: 1.65;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-feature-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 24px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 50px;
}

.hero-feature-tags span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-feature-tags svg {
    color: var(--accent-emerald);
}

/* Hero Player UI Mockup Showcase */
.hero-mockup-wrapper {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    padding: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border-highlight);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.hero-mockup-window {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.mockup-window-header {
    height: 48px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}

.window-dots {
    display: flex;
    gap: 8px;
}

.window-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.window-status-pills {
    display: flex;
    gap: 8px;
}

.badge-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.tag-hdr {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag-smb {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.tag-audio {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.mockup-player-body {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 420px;
    background: linear-gradient(135deg, #090e17 0%, #111a2e 50%, #080c14 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    overflow: hidden;
}

.mockup-bg-artwork {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background: 
        radial-gradient(circle at 75% 35%, rgba(99, 102, 241, 0.35), transparent 55%),
        radial-gradient(circle at 20% 70%, rgba(6, 182, 212, 0.25), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.2), transparent 60%);
    filter: blur(40px);
}

.mockup-top-info {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.media-current-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.media-source-pill {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.media-meta-specs {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 6px;
    display: flex;
    gap: 16px;
}

.mockup-center-interactive {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

/* Vinyl / Music Preview inside player */
.vinyl-deck-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.vinyl-disc {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, #2d3748 10%, #1a202c 30%, #000 65%, #1a202c 90%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 0 4px rgba(255, 255, 255, 0.05);
    position: relative;
    animation: spinVinyl 12s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes spinVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-label {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-label svg {
    color: #fff;
}

.vinyl-lyrics-pane {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.lyric-line {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.lyric-line.active {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Live IPTV / Channel Preview on the right */
.channel-list-preview {
    background: rgba(12, 16, 23, 0.7);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-medium);
    backdrop-filter: blur(12px);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.channel-preview-item.playing {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

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

.channel-num {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 700;
    width: 24px;
}

.channel-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.channel-playing-indicator {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.channel-playing-indicator span {
    width: 3px;
    background: var(--accent-cyan);
    border-radius: 1px;
    animation: bounceBar 1.2s ease-in-out infinite alternate;
}

.channel-playing-indicator span:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.channel-playing-indicator span:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.channel-playing-indicator span:nth-child(3) { height: 40%; animation-delay: 0.2s; }

@keyframes bounceBar {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

/* Mockup Bottom Controls */
.mockup-player-controls {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.playback-scrubber {
    display: flex;
    align-items: center;
    gap: 14px;
}

.scrubber-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.scrubber-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 48%;
    height: 100%;
    background: var(--primary-gradient);
}

.time-stamp {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

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

.control-buttons-left, .control-buttons-right {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: #ffffff;
}

.control-btn.play-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: #000;
}

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

/* Stats Ribbon */
.stats-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.01);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section Header Shared */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Bento Grid System */
.features-section {
    padding: 100px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bento-col-8 {
    grid-column: span 8;
}

.bento-col-4 {
    grid-column: span 4;
}

.bento-col-6 {
    grid-column: span 6;
}

.bento-col-12 {
    grid-column: span 12;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    width: fit-content;
}

.card-badge.purple {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.card-badge.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.card-badge.emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-badge.amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Feature specific visuals */
.nas-protocol-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.protocol-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.protocol-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-medium);
}

.protocol-chip svg {
    color: var(--accent-cyan);
}

/* IPTV mini showcase */
.iptv-showcase-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iptv-format-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.iptv-format-tag {
    font-family: monospace;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* TVBox & CMS showcase */
.code-preview-window {
    background: #090c12;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: #94a3b8;
    overflow-x: auto;
}

.code-keyword { color: #f43f5e; }
.code-string { color: #34d399; }
.code-prop { color: #60a5fa; }

/* Interactive Format Detector Section */
.detector-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(12, 16, 23, 0.5) 100%);
}

.detector-container {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.detector-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 18px;
    margin-bottom: 28px;
    overflow-x: auto;
}

.detector-tab-btn {
    padding: 10px 18px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.detector-tab-btn.active {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.detector-input-display {
    background: #080a0f;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.detector-input-text {
    font-family: monospace;
    font-size: 0.92rem;
    color: #e2e8f0;
    word-break: break-all;
}

.detector-result-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.result-item-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.result-item-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Steps / Workflow */
.workflow-section {
    padding: 100px 0;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px 30px;
    position: relative;
    transition: var(--transition-smooth);
}

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

.step-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.download-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.download-card.featured {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 40px -10px var(--primary-glow);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, var(--bg-surface) 100%);
}

.download-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-lg);
}

.download-icon-box {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.download-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-card-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 44px;
}

.download-version-badge {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* FAQ Accordion */
.faq-section {
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-medium);
}

.faq-question {
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    user-select: none;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.faq-answer {
    padding: 0 28px 24px 28px;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 40px 0;
    background: #040609;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 14px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-col-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.84rem;
}

/* Toast notification */
.toast-notice {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 22px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .bento-col-8, .bento-col-4, .bento-col-6 {
        grid-column: span 12;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .download-grid {
        grid-template-columns: 1fr;
    }
    .mockup-center-interactive {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .workflow-grid {
        grid-template-columns: 1fr;
    }
    .detector-result-card {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .hero-mockup-wrapper {
        padding: 6px;
    }
    .mockup-player-body {
        padding: 18px;
        min-height: 480px;
    }
}

/* ==============================================================================
 * Light Theme Customizations & Tokens (Apple macOS & iOS Inspired)
 * ============================================================================== */

:root[data-theme="light"],
html[data-theme="light"],
[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-surface-hover: #e2e8f0;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --bg-glass-card: rgba(0, 0, 0, 0.02);
    --bg-glass-card-hover: rgba(0, 0, 0, 0.04);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);
    --border-highlight: rgba(0, 0, 0, 0.2);
    --border-primary: rgba(79, 70, 229, 0.35);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 20px 48px -12px rgba(0, 0, 0, 0.09);
    --shadow-glow: 0 0 50px -10px rgba(99, 102, 241, 0.15);
    --shadow-cyan-glow: 0 0 50px -10px rgba(6, 182, 212, 0.12);
}

/* Explicit body & base colors for Light Theme */
html[data-theme="light"],
html[data-theme="light"] body {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* Muted ambient lighting in light mode */
[data-theme="light"] .ambient-glow-1,
[data-theme="light"] .ambient-glow-2,
[data-theme="light"] .ambient-glow-3 {
    opacity: 0.15 !important;
    filter: blur(120px) !important;
}

[data-theme="light"] .ambient-grid {
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px) !important;
    opacity: 0.7 !important;
}

/* Typography & Titles */
[data-theme="light"] .brand-name {
    background: linear-gradient(180deg, #0f172a 0%, #334155 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .section-title,
[data-theme="light"] .card-title,
[data-theme="light"] .step-title,
[data-theme="light"] .download-card-title,
[data-theme="light"] .faq-question {
    color: #0f172a !important;
}

[data-theme="light"] .section-description,
[data-theme="light"] .card-desc,
[data-theme="light"] .step-desc,
[data-theme="light"] .download-card-subtitle,
[data-theme="light"] .faq-answer {
    color: #475569 !important;
}

[data-theme="light"] .gradient-text-primary {
    background: linear-gradient(135deg, #0f172a 0%, #334155 35%, #4f46e5 75%, #0891b2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .hero-subtitle {
    color: #334155 !important;
}

[data-theme="light"] .hero-pill-badge {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #475569 !important;
}

[data-theme="light"] .hero-feature-tags {
    color: #475569 !important;
}

/* Header & Navigation in Light Mode */
[data-theme="light"] .site-header.scrolled {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .nav-links a {
    color: #475569 !important;
}

[data-theme="light"] .nav-links a:hover {
    color: #0f172a !important;
}

[data-theme="light"] .mobile-toggle {
    color: #0f172a !important;
}

[data-theme="light"] .mobile-nav-drawer {
    background: #ffffff !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .mobile-nav-drawer a {
    color: #0f172a !important;
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

/* Buttons in Light Mode */
[data-theme="light"] .btn-secondary {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .btn-secondary:hover {
    background: #e2e8f0 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .btn-outline {
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05) !important;
}

/* Hero UI Mockup Window */
[data-theme="light"] .hero-mockup-wrapper {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.02) 100%) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.1), 0 0 40px -10px rgba(99, 102, 241, 0.15) !important;
}

[data-theme="light"] .hero-mockup-window {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .mockup-window-header {
    background: #f8fafc !important;
    border-bottom-color: rgba(0, 0, 0, 0.07) !important;
}

[data-theme="light"] .window-title {
    color: #64748b !important;
}

/* Stats Ribbon in Light Mode */
[data-theme="light"] .stats-section {
    background: rgba(0, 0, 0, 0.015) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .stat-label {
    color: #475569 !important;
}

/* Bento Cards in Light Mode */
[data-theme="light"] .bento-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .bento-card:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .card-badge.purple {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #7c3aed !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
}

[data-theme="light"] .card-badge.cyan {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #0891b2 !important;
    border-color: rgba(6, 182, 212, 0.25) !important;
}

[data-theme="light"] .card-badge.emerald {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

[data-theme="light"] .card-badge.amber {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #d97706 !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}

[data-theme="light"] .protocol-chip {
    background: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #1e293b !important;
}

[data-theme="light"] .protocol-chip:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .iptv-showcase-box {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .channel-preview-item {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    color: #1e293b !important;
}

[data-theme="light"] .channel-preview-item.playing {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    color: var(--primary) !important;
}

[data-theme="light"] .code-preview-window {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #334155 !important;
}

[data-theme="light"] .code-keyword { color: #e11d48 !important; }
[data-theme="light"] .code-string { color: #059669 !important; }
[data-theme="light"] .code-prop { color: #2563eb !important; }

/* Interactive Format Detector Section */
[data-theme="light"] .detector-container {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .detector-tab-btn {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

[data-theme="light"] .detector-tab-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .detector-tab-btn.active {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
}

[data-theme="light"] .detector-input-display {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .detector-input-text {
    color: #0f172a !important;
}

[data-theme="light"] .detector-result-card {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .result-item-title {
    color: #64748b !important;
}

[data-theme="light"] .result-item-val {
    color: #0f172a !important;
}

/* Workflow Step Cards in Light Mode */
[data-theme="light"] .step-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .step-card:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .step-number {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.05) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Download Cards in Light Mode */
[data-theme="light"] .download-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .download-card.featured {
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.2) !important;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.04) 0%, #ffffff 100%) !important;
}

[data-theme="light"] .download-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
}

[data-theme="light"] .download-icon-box {
    background: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .download-version-badge {
    color: #64748b !important;
}

/* FAQ Items in Light Mode */
[data-theme="light"] .faq-item {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .faq-item:hover {
    border-color: rgba(0, 0, 0, 0.14) !important;
}

[data-theme="light"] .faq-item.active {
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
}

/* Footer in Light Mode */
[data-theme="light"] .site-footer {
    background: #f1f5f9 !important;
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .footer-brand p {
    color: #64748b !important;
}

[data-theme="light"] .footer-col-title {
    color: #0f172a !important;
}

[data-theme="light"] .footer-links a {
    color: #475569 !important;
}

[data-theme="light"] .footer-links a:hover {
    color: #0f172a !important;
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.06) !important;
    color: #64748b !important;
}

/* Toast in Light Mode */
[data-theme="light"] .toast-notice {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

/* ==============================================================================
 * Header Switchers: Language & Theme
 * ============================================================================== */

.lang-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

[data-theme="light"] .lang-switch {
    background: rgba(0, 0, 0, 0.05);
}

.lang-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-highlight);
    transform: scale(1.05);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.09);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* In dark mode: show sun icon (click to switch to light) */
[data-theme="dark"] .theme-toggle .sun-icon,
:root:not([data-theme="light"]) .theme-toggle .sun-icon {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

[data-theme="dark"] .theme-toggle .moon-icon,
:root:not([data-theme="light"]) .theme-toggle .moon-icon {
    transform: rotate(90deg) scale(0);
    opacity: 0;
}

/* In light mode: show moon icon (click to switch to dark) */
[data-theme="light"] .theme-toggle .sun-icon {
    transform: rotate(-90deg) scale(0);
    opacity: 0;
}

[data-theme="light"] .theme-toggle .moon-icon {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}
