/* Andora - Premium Website
   Warm amber theme matching the app + advanced animations */

/* Fonts are loaded in index.html for better performance */

/* ═══════════════════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Backgrounds */
    --bg-base: #0e0e11;
    --bg-primary: #131316;
    --bg-secondary: #19191e;
    --bg-elevated: #1f1f25;
    --bg-surface: #25252c;
    --bg-hover: #2a2a32;

    /* Text */
    --text-primary: #ededf0;
    --text-secondary: #a5a5b0;
    --text-muted: #6a6a76;

    /* Borders */
    --border-default: #2b2b35;
    --border-light: #363642;
    --border-strong: #434350;

    /* Accent - Warm amber */
    --accent: #d97706;
    --accent-hover: #e5900a;
    --accent-active: #c06a05;
    --accent-glow: rgba(217, 119, 6, 0.22);
    --accent-soft: rgba(217, 119, 6, 0.10);
    --accent-gradient: linear-gradient(135deg, #d97706, #b45309);
    --action-primary: #d97706;

    /* Status */
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, 0.12);
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(217, 119, 6, 0.15);
    --shadow-glow-lg: 0 0 80px rgba(217, 119, 6, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Selection */
::selection {
    background: var(--action-primary);
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes glow {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Reveal animations for scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    padding: 10px 0;
    background: rgba(14, 14, 17, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-default);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-brand:hover {
    transform: scale(1.02);
}

.nav-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    transition: all 0.3s var(--ease-out-expo);
}

.nav-brand:hover .nav-brand-icon {
    box-shadow: 0 6px 25px rgba(217, 119, 6, 0.4);
    transform: translateY(-2px);
}

.nav-brand-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

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

.nav-links a {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.25s var(--ease-out-expo);
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.25s var(--ease-out-expo);
}

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

.nav-links a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-links a span {
    position: relative;
    z-index: 1;
}

.nav-cta {
    display: flex;
    gap: 12px;
}

/* Mobile menu button */
.nav-mobile-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-mobile-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s var(--ease-out-expo);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.4);
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
    border-radius: var(--radius-xl);
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease-out-expo);
}

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

/* Magnetic button effect */
.btn-magnetic {
    transition: transform 0.2s var(--ease-out-expo);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Ambient background glow */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(217, 119, 6, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: float 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite reverse;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 1s var(--ease-out-expo) forwards;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--accent-soft);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--action-primary);
    margin-bottom: 24px;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-tag-dot {
    width: 8px;
    height: 8px;
    background: var(--action-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.text-accent {
    background: var(--accent-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.hero-stat {
    position: relative;
}

.hero-stat::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: var(--border-default);
}

.hero-stat:last-child::after {
    display: none;
}

.hero-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Hero visual */
.hero-visual {
    animation: slideInRight 1s var(--ease-out-expo) forwards;
    animation-delay: 0.2s;
    opacity: 0;
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    animation: glow 4s ease-in-out infinite;
}

.app-screenshot {
    width: 100%;
    border-radius: var(--radius-2xl);
    transition: all 0.5s var(--ease-out-expo);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.app-screenshot:hover {
    transform: scale(1.02) translateY(-5px);
}

/* Screenshot fallback if no image */
.app-preview {
    background: transparent;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.app-preview:hover {
    transform: scale(1.02) translateY(-5px);
}

.preview-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-default);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.2s var(--ease-out-back);
}

.preview-dot:hover {
    transform: scale(1.2);
}

.preview-dot.red {
    background: #ff5f57;
}

.preview-dot.yellow {
    background: #febc2e;
}

.preview-dot.green {
    background: #28c840;
}

.preview-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.preview-body {
    display: flex;
    min-height: 360px;
}

.preview-sidebar {
    width: 180px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-default);
    padding: 16px;
}

.preview-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out-expo);
}

.preview-sidebar-item:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.preview-sidebar-item.active {
    background: var(--accent-soft);
    color: var(--action-primary);
}

.preview-sidebar-icon {
    width: 18px;
    height: 18px;
    background: currentColor;
    border-radius: 4px;
    opacity: 0.6;
}

.preview-content {
    flex: 1;
    padding: 20px;
}

.preview-device {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    transition: all 0.2s var(--ease-out-expo);
}

.preview-device:hover {
    border-color: var(--border-light);
    transform: translateX(4px);
}

.preview-device-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.preview-device-info {
    flex: 1;
}

.preview-device-name {
    font-size: 14px;
    font-weight: 600;
}

.preview-device-status {
    font-size: 12px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-device-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.preview-device-battery {
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
}

.preview-progress {
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
}

.preview-progress-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.preview-progress-bar {
    height: 8px;
    background: var(--bg-surface);
    border-radius: 100px;
    overflow: hidden;
}

.preview-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 100px;
    animation: progressFill 2s var(--ease-out-expo) forwards;
    animation-delay: 1s;
}

@keyframes progressFill {
    to {
        width: 72%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

section {
    padding: 100px 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-soft);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--action-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════════════════════ */

#features {
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-primary) 50%, var(--bg-base) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
    pointer-events: none;
}

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border: 1px solid rgba(217, 119, 6, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    transition: all 0.4s var(--ease-out-expo);
}

.feature-card:hover .feature-icon {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    color: var(--action-primary);
    transition: color 0.4s var(--ease-out-expo);
}

.feature-card:hover .feature-icon svg {
    color: white;
}

.feature-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APP WINDOW SIMULATION (Interactive Demo)
   ═══════════════════════════════════════════════════════════════════════════ */

.app-window-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    gap: 12px;
}

.app-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.app-window {
    width: 950px;
    max-width: 950px;
    height: 620px;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.app-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Main Content */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

/* Sidebar */
.app-sidebar {
    width: 240px;
    background: var(--bg-base);
    border-right: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    padding: 16px;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 24px;
}

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

.sidebar-icon {
    width: 36px;
    height: 36px;
    background: var(--action-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sidebar-icon svg {
    width: 20px;
    height: 20px;
}

.sidebar-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar-title span:first-child {
    font-weight: 700;
    font-size: 15px;
}

.sidebar-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.drop-zone {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: var(--action-primary);
    background: var(--accent-soft);
}

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.drop-content svg {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.drop-sub {
    font-size: 11px;
    opacity: 0.6;
}

.sidebar-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.sidebar-btn {
    flex: 1;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.sidebar-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.sidebar-btn.primary-btn {
    background: var(--bg-elevated);
    border-color: var(--action-primary);
    color: var(--action-primary);
}

.install-btn {
    width: 100%;
    padding: 12px;
    background: var(--action-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    transition: all 0.2s;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}

.install-btn svg {
    width: 16px;
    height: 16px;
}

.sidebar-options {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.option-info {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.option-desc {
    font-size: 10px;
    color: var(--text-muted);
}

.toggle-switch {
    width: 42px;
    height: 22px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-switch::before {
    content: 'OFF';
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    font-size: 7px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 1;
    transition: opacity 0.2s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s;
}

.toggle-switch.active {
    background: var(--success-soft);
    border-color: var(--success);
}

.toggle-switch.active::before {
    content: 'ON';
    left: 6px;
    right: auto;
    color: var(--success);
}

.toggle-switch.active::after {
    left: 23px;
    background: var(--success);
}

.sidebar-configure {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
}

.sidebar-configure:hover {
    color: var(--text-secondary);
}

.sidebar-configure svg {
    opacity: 0.6;
}

/* Settings modal uses a child .toggle-knob div instead of ::after */
.toggle-switch .toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s;
}

.toggle-switch.active .toggle-knob {
    left: 16px;
    background: var(--success);
}

/* Hide ::after pseudo-element when .toggle-knob child is present */
.toggle-switch:has(.toggle-knob)::after {
    display: none;
}

/* Explicit settings toggle styling - immune to light-theme variable changes */
#setting-theme-toggle {
    background: #2a2a32;
    border-color: #363642;
}

#setting-theme-toggle::after {
    background: #6a6a76;
    left: 2px;
}

#setting-theme-toggle.active {
    background: rgba(34, 197, 94, 0.12);
    border-color: #22c55e;
}

#setting-theme-toggle.active::after {
    left: 16px;
    background: #22c55e;
}

/* Light theme: make the OFF state grey instead of dark */
.app-window.light-theme #setting-theme-toggle {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.app-window.light-theme #setting-theme-toggle::after {
    background: #94a3b8;
}

.app-window.light-theme #setting-theme-toggle.active {
    background: rgba(34, 197, 94, 0.12);
    border-color: #22c55e;
}

.app-window.light-theme #setting-theme-toggle.active::after {
    background: #22c55e;
}

.sidebar-status {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border-default);
    margin-top: auto;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
}

/* Top Bar */
.app-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-default);
    background: var(--bg-base);
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.window-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.badge-pro {
    display: inline-block;
    background: var(--action-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

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

.icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.icon-btn svg {
    width: 16px;
    height: 16px;
}

.sign-in-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--action-primary);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.sign-in-btn svg {
    width: 14px;
    height: 14px;
}

/* Main Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.app-header {
    height: 36px;
    border-bottom: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.app-nav {
    display: flex;
    gap: 16px;
    height: 100%;
}

.app-nav-item {
    background: none;
    border: none;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

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

.app-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--action-primary);
    box-shadow: 0 -2px 8px var(--accent-glow);
}

.app-nav-item svg {
    width: 14px;
    height: 14px;
}

.window-controls {
    display: flex;
    gap: 0;
    align-items: center;
}

.control {
    width: 32px;
    height: 28px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1;
}

.control:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.control.min::after {
    content: '—';
    font-size: 11px;
}

.control.max::after {
    content: '⬜';
    font-size: 8px;
}

.control.close::after {
    content: '✕';
    font-size: 12px;
}

.control.close:hover {
    background: #e81123;
    color: white;
}

/* Views */
.app-view {
    display: none;
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.app-view.active {
    display: block;
    display: flex;
    flex-direction: column;
}

/* Device View */
.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.view-header h2 {
    font-size: 15px;
    font-weight: 700;
}

.device-count-num {
    color: var(--accent);
    font-weight: 700;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
}

.refresh-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
}

.refresh-btn svg {
    width: 14px;
    height: 14px;
}

.device-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.device-card.selected {
    border-color: var(--action-primary);
    background: rgba(217, 119, 6, 0.05);
}

.device-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-strong);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
}

.device-checkbox.checked {
    background: var(--action-primary);
    border-color: var(--action-primary);
    color: white;
}

.device-checkbox svg {
    width: 14px;
    height: 14px;
}

.device-icon {
    width: 40px;
    height: 48px;
    position: relative;
    color: var(--text-secondary);
}

.device-icon svg {
    width: 100%;
    height: 100%;
}

.device-status-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--success);
    border: 2px solid var(--bg-surface);
    border-radius: 50%;
}

.device-info {
    flex: 1;
}

.device-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.device-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

.device-stats {
    display: flex;
    gap: 32px;
    text-align: right;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-val {
    font-size: 13px;
    font-weight: 600;
}

.temp-ok {
    color: var(--success);
}

.storage-bar {
    width: 80px;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.storage-fill {
    height: 100%;
    background: var(--action-primary);
    border-radius: 2px;
}

/* Device Table (matching actual app) */
.device-table {
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.device-table-header {
    display: grid;
    grid-template-columns: 36px 1.4fr 1.4fr 0.5fr 1.2fr 0.7fr;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-default);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--bg-base);
}

.device-table-body {
    flex: 1;
    overflow-y: auto;
}

.device-row {
    display: grid;
    grid-template-columns: 36px 1.4fr 1.4fr 0.5fr 1.2fr 0.7fr;
    gap: 8px;
    padding: 12px 16px;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-default);
}

.device-row:hover {
    background: var(--bg-hover);
}

.device-row:last-child {
    border-bottom: none;
}

.td-checkbox {
    display: flex;
    justify-content: center;
}

.table-checkbox {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.table-checkbox:hover {
    border-color: var(--text-muted);
}

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

.device-icon-cell {
    position: relative;
    width: 30px;
    height: 36px;
    color: var(--accent);
    flex-shrink: 0;
}

.device-icon-cell svg {
    width: 100%;
    height: 100%;
}

.device-status-dot {
    position: absolute;
    bottom: -1px;
    right: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.device-status-dot.connected {
    background: var(--success);
}

.device-name-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.device-status-text {
    font-size: 11px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.device-status-text::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

.td-serial {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.serial-badge {
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-surface);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
    display: inline-block;
    width: fit-content;
}

.connection-type {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.connection-type svg {
    opacity: 0.7;
}

.td-api {
    text-align: center;
}

.api-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.td-storage {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.storage-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.storage-info svg {
    color: var(--text-muted);
}

.storage-bar-mini {
    width: 100%;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.storage-fill-mini {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.td-temp {
    display: flex;
    align-items: center;
    gap: 6px;
}

.td-temp svg {
    color: var(--accent);
}

.temp-value {
    font-size: 13px;
    font-weight: 500;
}

.temp-value.temp-ok {
    color: var(--accent);
}

.temp-value.temp-warn {
    color: var(--warning);
}

.temp-value.temp-hot {
    color: var(--error);
}

.device-table-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-default);
}

.table-help {
    font-size: 11px;
    color: var(--text-muted);
}

/* Hide old device card when using table */
.device-list {
    display: none;
}

/* App Footer Status Bar */
.app-footer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: var(--bg-base);
    border-top: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.footer-stat {
    color: var(--text-secondary);
}

.footer-divider {
    color: var(--border-light);
}

.footer-version {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
}

/* Media View */
.media-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.dropdown {
    padding: 8px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dropdown::after {
    content: '▼';
    font-size: 8px;
    opacity: 0.5;
    margin-left: 4px;
}

.view-toggle {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.view-toggle button {
    background: none;
    border: none;
    padding: 6px 10px;
    color: var(--text-muted);
    cursor: pointer;
}

.view-toggle button.active {
    background: var(--bg-elevated);
    color: var(--action-primary);
}

.view-toggle svg {
    width: 14px;
    height: 14px;
}

.spacer {
    flex: 1;
}

.action-btn {
    padding: 8px 16px;
    background: var(--action-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    flex: 1;
}

.media-item {
    aspect-ratio: 1;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.media-item:hover {
    border-color: var(--action-primary);
    transform: translateY(-2px);
}

.media-footer {
    border-top: 1px solid var(--border-default);
    padding-top: 16px;
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
}

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

.btn-danger {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    font-size: 12px;
    cursor: pointer;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-primary-sm {
    padding: 8px 16px;
    background: var(--action-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Management View */
.management-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-surface);
    padding: 4px;
    border-radius: var(--radius-md);
    width: fit-content;
}

.mgmt-tab {
    padding: 6px 16px;
    background: transparent;
    border: none;
    border-radius: 100px;
    /* Pill shape */
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mgmt-tab:hover {
    color: var(--text-primary);
}

.mgmt-tab.active {
    background: var(--action-primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

.mgmt-content {
    display: none;
}

.mgmt-content.active {
    display: block;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    margin-bottom: 20px;
}

.info-device {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--action-primary);
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-device h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-device span {
    font-size: 13px;
    color: var(--text-muted);
}

.info-badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: var(--success-soft);
    color: var(--success);
}

.badge-info {
    background: rgba(59, 130, 246, 0.12);
    color: var(--info);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.info-card h4 {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-default);
    font-size: 13px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span:first-child {
    color: var(--text-secondary);
}

.info-row span:last-child {
    font-weight: 600;
    text-align: right;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABSTRACT SHOWCASE VISUALS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Management Placeholders */
.apps-list-placeholder,
.file-browser-placeholder {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.app-row {
    display: grid;
    grid-template-columns: 200px 1fr 80px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-default);
    font-size: 13px;
    gap: 16px;
    color: var(--text-secondary);
}

.app-row:last-child {
    border-bottom: none;
}

.app-row.header {
    background: var(--bg-surface);
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: none;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-row span:nth-child(2) {
    /* Package name */
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.file-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-default);
    font-size: 14px;
    font-weight: 500;
    gap: 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
}

.file-row:hover {
    background: var(--bg-hover);
    border-radius: 6px;
}

.file-row svg {
    width: 20px;
    height: 20px;
    color: #f59e0b;
    /* Folder yellow/orange */
    fill: rgba(245, 158, 11, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABSTRACT SHOWCASE VISUALS
   ═══════════════════════════════════════════════════════════════════════════ */

.abstract-visual {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Connection Tab Visual */
.connection-visual .phone-frame {
    width: 280px;
    height: 560px;
    background: #111;
    border-radius: 40px;
    border: 8px solid #2d2d2d;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.connection-visual .phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #111;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.connection-visual .phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.connection-status {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.record-badge {
    background: #ef4444;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.record-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.connection-loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-spinner {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(249, 115, 22, 0.2);
    border-top-color: var(--action-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Management Tab Visual */
.management-visual .mgmt-card {
    width: 100%;
    background: #1e1e1e;
    border-radius: 16px;
    border: 1px solid #333;
    padding: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.mgmt-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    color: #fff;
}

.battery-level {
    color: #aaa;
    font-size: 14px;
}

.storage-bar-container {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.storage-bar-fill {
    width: 65%;
    height: 100%;
    background: var(--action-primary);
    border-radius: 4px;
}

.storage-text {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 24px;
}

.app-row-mock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.app-row-mock:last-child {
    border-bottom: none;
}

.app-icon-mock {
    width: 36px;
    height: 36px;
    background: #333;
    border-radius: 8px;
}

.app-info-mock {
    flex: 1;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
}

.app-name-mock {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.app-pkg-mock {
    color: #666;
    font-size: 11px;
}

.btn-mock {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}

.btn-mock.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

#contact {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(to bottom, var(--bg-base), var(--bg-primary));
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--action-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-base);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 24px;
    }
}

/* Development Tab Visual */
.dev-visual .terminal-window {
    width: 100%;
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid #1e293b;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #1e293b;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.window-dots span:nth-child(1) {
    background: #ef4444;
}

.window-dots span:nth-child(2) {
    background: #f59e0b;
}

.window-dots span:nth-child(3) {
    background: #10b981;
}

.terminal-title {
    color: #94a3b8;
    font-size: 13px;
    font-family: monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.log-line {
    margin-bottom: 4px;
}

.log-line.success {
    color: #10b981;
}

.log-line.info {
    color: #3b82f6;
}

.log-line.debug {
    color: #94a3b8;
}

.log-line.warning {
    color: #f59e0b;
}

.memory-chart {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
}

.chart-label {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    display: block;
    margin-bottom: 12px;
}

.chart-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 60px;
}

.chart-bars .bar {
    flex: 1;
    background: linear-gradient(to top, #c2410c, #f97316);
    border-radius: 2px 2px 0 0;
    opacity: 0.8;
}

/* Customization Tab Visual */
.customization-visual .theme-preview-card {
    width: 100%;
    aspect-ratio: 4/3;
    background: #1e1e1e;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #333;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.preview-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.preview-accent-line {
    width: 40px;
    height: 40px;
    background: var(--action-primary);
    border-radius: 12px;
}

.preview-skeleton-title {
    width: 60%;
    height: 12px;
    background: #333;
    border-radius: 6px;
}

.preview-skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.skeleton-row {
    width: 100%;
    height: 40px;
    background: #2a2a2a;
    border-radius: 8px;
}

.preview-btn {
    width: auto;
    padding: 10px 24px;
    height: auto;
    background: var(--action-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
    transition: all 0.2s;
}

.preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
}

/* Remove hover overlay for abstract visuals */
.showcase-item .abstract-visual:hover::after,
.showcase-item .abstract-visual:hover::before {
    display: none !important;
    content: none !important;
}

.showcase-item:has(.abstract-visual)::after {
    display: none !important;
}

.showcase-item:has(.abstract-visual) {
    pointer-events: none;
    /* Disable tilt/hover effects */
}

.showcase-item:has(.abstract-visual) * {
    pointer-events: auto;
    /* Re-enable pointer events for children if needed */
}

.theme-dots {
    display: flex;
    gap: 12px;
}

.theme-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid transparent;
}

.theme-dot:hover {
    transform: scale(1.1);
    border-color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOWCASE SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

#showcase {
    padding: 100px 0;
    position: relative;
    background: var(--bg-primary);
}

#showcase .section-header {
    margin-bottom: 60px;
}

/* Tab Navigation */
.showcase-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.nav-btn.active {
    background: var(--action-primary);
    border-color: var(--action-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.nav-btn svg {
    width: 18px;
    height: 18px;
}

/* Demo Tab Special Styling */
.btn-demo-tab {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.2);
    color: var(--action-primary);
}

.btn-demo-tab:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--action-primary);
}

.btn-demo-tab.active {
    background: var(--action-primary);
    color: white;
}

/* Content Container */
.showcase-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.showcase-content.active {
    display: block;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Text Content */
.showcase-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--action-primary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* Visuals */
.showcase-visual {
    position: relative;
    padding: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APP WINDOW LIGHT THEME
   ═══════════════════════════════════════════════════════════════════════════ */

.app-window.light-theme {
    --bg-base: #f8fafc;
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-elevated: #f8fafc;
    --bg-surface: #f1f5f9;
    --bg-hover: #e2e8f0;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --border-default: #e2e8f0;
    --border-light: #cbd5e1;
    --border-strong: #cbd5e1;

    /* Shadows need to be darker/more visible on light bg */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.app-window.light-theme .app-sidebar {
    background: #f8fafc;
    /* Light sidebar background */
    border-right-color: var(--border-default);

    /* Reset sidebar variables to inherit from light theme */
    --bg-base: #f8fafc;
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-elevated: #ffffff;
    --bg-surface: #f1f5f9;
    --bg-hover: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-default: #e2e8f0;
    --border-light: #cbd5e1;
    --border-strong: #cbd5e1;
}

.app-window.light-theme .app-top-bar {
    border-bottom-color: var(--border-default);
    background: rgba(255, 255, 255, 0.9);
}

.app-window.light-theme .app-header {
    border-bottom-color: var(--border-default);
}

.app-window.light-theme .device-card {
    background: #ffffff;
    border-color: var(--border-default);
}

.app-window.light-theme .device-card.selected {
    background: #f8fafc;
    border-color: var(--action-primary);
}

.app-window.light-theme .media-item,
.app-window.light-theme .file-browser-placeholder {
    background: #ffffff;
    border-color: var(--border-default);
}

.showcase-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 10px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.showcase-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}

/* Management Placeholders (Existing Styles Modified) */
.app-row.header {
    background: var(--bg-elevated);
    font-weight: 600;
    color: var(--text-primary);
}

.app-row span:nth-child(1) {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.app-row span:nth-child(2) {
    flex: 1;
    font-family: monospace;
    font-size: 11px;
}

.app-row span:nth-child(3) {
    width: 80px;
    text-align: right;
}

.file-row svg {
    width: 18px;
    height: 18px;
    color: var(--action-primary);
    opacity: 0.8;
}

.file-row span {
    color: var(--text-primary);
    font-weight: 500;
}

.logcat-terminal {
    background: #0f0f11;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.code-line {
    line-height: 1.5;
    color: #a1a1aa;
}

.c-green {
    color: var(--success);
}

.c-blue {
    color: var(--info);
}

.c-red {
    color: var(--error);
}

/* Top Bar */
.app-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-default);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex-shrink: 0;
}

.app-header {
    border-radius: 0;
    border-top: none;
}

.top-bar-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.app-logo-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-logo-icon svg {
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(74, 222, 128, 0.2);
}

.top-bar-title-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.top-bar-status {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot-mini {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

.window-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-pro {
    background: var(--action-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 16px;
    border-right: 1px solid var(--border-default);
}

.icon-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* Specific icon adjustments */
.icon-btn svg {
    width: 15px;
    height: 15px;
}

.sign-in-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--action-primary);
    color: white;
    border: none;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sign-in-btn:hover {
    filter: brightness(1.1);
}

.sign-in-btn svg {
    width: 14px;
    height: 14px;
}

.btn-primary-sm {
    background: var(--action-primary);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-sm:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-danger-sm {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger-sm:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--action-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s var(--ease-out-expo);
    letter-spacing: 0.5px;
}

.user-avatar:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Settings Modal */
.app-settings-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.app-settings-modal.active {
    opacity: 1;
    pointer-events: all;
}

.settings-container {
    width: 800px;
    height: 500px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.95);
    transition: transform 0.3s var(--ease-out-expo);
}

.app-settings-modal.active .settings-container {
    transform: scale(1);
}

.settings-sidebar {
    width: 240px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-default);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.settings-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-left: 12px;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.settings-nav-item:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.settings-nav-item.active {
    background: var(--action-primary);
    color: white;
}

.settings-nav-item svg {
    width: 18px;
    height: 18px;
}

.settings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.settings-header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    border-bottom: 1px solid var(--border-default);
}

.settings-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.settings-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.settings-close:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.settings-body {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.settings-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-section.active {
    display: block;
}

/* Account Profile */
.account-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.profile-avatar svg {
    width: 40px;
    height: 40px;
}

.profile-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Setting Items */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-default);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-label {
    font-size: 14px;
    font-weight: 500;
}

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

/* Color Picker */
.color-picker {
    display: flex;
    gap: 12px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.color-dot:hover {
    transform: scale(1.1);
}

.color-dot.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--text-primary);
    border-radius: 50%;
}

/* Responsive App Window */
@media (max-width: 900px) {
    .app-window {
        flex-direction: column;
        height: auto;
    }

    .app-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-default);
    }

    .app-main {
        height: 600px;
    }

    /* Top Bar Mobile */
    .app-top-bar {
        padding: 10px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .top-bar-right {
        gap: 8px;
    }

    .top-icons {
        padding-right: 8px;
    }

    .window-title {
        font-size: 12px;
    }

    /* Settings Modal Mobile */
    .settings-container {
        width: 95%;
        height: 80vh;
        flex-direction: column;
    }

    .settings-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-default);
        padding: 10px;
    }

    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
        /* Scrollbar space */
    }

    .settings-nav-item {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 12px;
    }

    .settings-content {
        height: auto;
        flex: 1;
        overflow: hidden;
    }

    .settings-body {
        padding: 20px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════════════════ */

#pricing {
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-primary) 100%);
}

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

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    padding: 32px;
    position: relative;
    transition: all 0.4s var(--ease-out-expo);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--action-primary);
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.05) 0%, var(--bg-secondary) 100%);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured:hover {
    box-shadow: var(--shadow-glow-lg);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--accent-gradient);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.pricing-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-default);
    margin-bottom: 24px;
}

.pricing-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.pricing-amount {
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pricing-period {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    transition: transform 0.2s var(--ease-out-expo);
}

.pricing-features li:hover {
    transform: translateX(4px);
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: var(--action-primary);
    flex-shrink: 0;
}

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

.pricing-features li.disabled svg {
    color: var(--text-muted);
}

/* Support Banner */
.support-banner {
    margin-top: 64px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), rgba(180, 83, 9, 0.05));
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
}

.support-banner:hover {
    border-color: rgba(217, 119, 6, 0.4);
    box-shadow: var(--shadow-glow);
}

.support-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3);
    animation: float 4s ease-in-out infinite;
}

.support-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.support-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.btn-coffee {
    background: linear-gradient(135deg, #ffdd00, #ff8c00);
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-coffee:hover {
    box-shadow: 0 8px 30px rgba(255, 140, 0, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DOWNLOAD
   ═══════════════════════════════════════════════════════════════════════════ */

#download {
    position: relative;
}

#download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.download-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
}

.download-option:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

.download-option.primary {
    border-color: var(--action-primary);
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), rgba(217, 119, 6, 0.02));
}

.download-option.primary:hover {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(217, 119, 6, 0.05));
    box-shadow: var(--shadow-glow);
}

.download-option-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease-out-expo);
}

.download-option.primary .download-option-icon {
    background: var(--accent-gradient);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
}

.download-option:hover .download-option-icon {
    transform: scale(1.1);
}

.download-option-icon svg {
    width: 26px;
    height: 26px;
    color: var(--action-primary);
}

.download-option.primary .download-option-icon svg {
    color: white;
}

.download-option-info {
    flex: 1;
}

.download-option-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.download-option-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.download-option-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out-expo);
}

.download-option:hover .download-option-arrow {
    background: var(--action-primary);
    transform: translateX(4px);
}

.download-option-arrow svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: color 0.3s var(--ease-out-expo);
}

.download-option:hover .download-option-arrow svg {
    color: white;
}

.requirements {
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
}

.requirements h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.requirements li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0 6px 20px;
    position: relative;
}

.requirements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--action-primary);
    border-radius: 50%;
}

/* Version card */
.version-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    padding: 28px;
    transition: all 0.4s var(--ease-out-expo);
}

.version-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-default);
    margin-bottom: 20px;
}

.version-tag {
    padding: 6px 14px;
    background: var(--success-soft);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    text-transform: uppercase;
}

.version-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 600;
}

.version-changelog h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.version-changelog li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s var(--ease-out-expo);
}

.version-changelog li:hover {
    transform: translateX(4px);
}

.changelog-tag {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.changelog-tag.new {
    background: var(--success-soft);
    color: var(--success);
}

.changelog-tag.improved {
    background: rgba(59, 130, 246, 0.12);
    color: var(--info);
}

.changelog-tag.fixed {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.version-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-default);
    font-size: 13px;
    font-weight: 600;
    color: var(--action-primary);
    transition: gap 0.3s var(--ease-out-expo);
}

.version-link:hover {
    gap: 12px;
}

.version-link svg {
    width: 16px;
    height: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════════ */

#faq {
    background: var(--bg-primary);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-default);
    transition: all 0.3s var(--ease-out-expo);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.01);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s var(--ease-out-expo);
}

.faq-question:hover {
    color: var(--action-primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--action-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════════════════ */

.cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: glow 6s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-default);
    background: var(--bg-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-default);
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s var(--ease-out-expo);
}

.footer-column a:hover {
    color: var(--action-primary);
    transform: translateX(4px);
    display: inline-block;
}

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

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
}

.footer-social a:hover {
    background: var(--action-primary);
    border-color: var(--action-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-desc {
        max-width: 100%;
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

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

@media (max-width: 768px) {

    /* Navigation Mobile */
    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-mobile-btn {
        display: flex;
        margin-left: auto;
        /* Ensure it stays on the right */
    }

    .nav-inner {
        width: 100%;
        /* padding-right: 0; Removed to fix alignment issue */
    }

    /* Hero Section Mobile */
    .hero {
        padding: 100px 0 60px;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-stat::after {
        display: none;
    }

    /* Hero Visual Mobile */
    .hero-visual .app-screenshot {
        max-width: 100%;
        border-radius: var(--radius-lg);
    }

    /* Features Mobile */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Showcase Mobile */
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .showcase-img {
        border-radius: var(--radius-lg);
    }

    .showcase-item::after {
        display: none;
    }

    /* General Section Mobile */
    section {
        padding: 60px 0;
    }

    .support-banner {
        flex-direction: column;
        padding: 24px;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Lightbox Mobile */
    .lightbox {
        padding: 16px;
    }

    .lightbox-content img {
        border-radius: var(--radius-lg);
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .lightbox-hint {
        bottom: 16px;
        font-size: 12px;
    }

    /* Pricing Mobile */
    .pricing-grid {
        gap: 24px;
    }

    .pricing-card {
        padding: 24px;
    }

    /* Download Mobile */
    .download-option {
        padding: 16px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 14px;
    }

    /* Mobile Menu Active State */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        padding: 20px;
        border-bottom: 1px solid var(--border-default);
        box-shadow: var(--shadow-md);
        animation: slideDown 0.3s var(--ease-out-expo);
    }

    .nav-links.active a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    /* Better approach: Container for mobile menu */
    .nav.mobile-open {
        background: var(--bg-surface);
    }

    .nav.mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        padding: 20px 20px 10px;
        border-top: 1px solid var(--border-default);
        animation: menuSlide 0.3s var(--ease-out-expo);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    /* Hamburger Animation */
    .nav-mobile-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-mobile-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-mobile-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    @keyframes menuSlide {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════════════════════════════════ */

.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 48px;
}

.legal-content h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    padding-left: 28px;
    margin-bottom: 20px;
}

.legal-content ul li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
    list-style: disc;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--action-primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 40px;
    transition: gap 0.3s var(--ease-out-expo);
}

.back-link:hover {
    gap: 14px;
}

.back-link svg {
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CURSOR GLOW (Advanced effect)
   ═══════════════════════════════════════════════════════════════════════════ */

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(217, 119, 6, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PARALLAX ELEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.parallax-slow {
    transition: transform 0.1s linear;
}

.parallax-medium {
    transition: transform 0.15s linear;
}

.parallax-fast {
    transition: transform 0.2s linear;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APP ICON IMAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.nav-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHTBOX / FULLSCREEN IMAGE VIEWER
   ═══════════════════════════════════════════════════════════════════════════ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 95vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.4s var(--ease-out-expo);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.lightbox-close:hover {
    background: var(--action-primary);
    border-color: var(--action-primary);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 13px;
    opacity: 0.7;
}

/* Clickable images */
.clickable-image {
    cursor: zoom-in;
    transition: all 0.4s var(--ease-out-expo);
}

.clickable-image:hover {
    transform: scale(1.02);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO IMAGE SIZING
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.hero-visual .app-screenshot {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--radius-2xl);
    transition: all 0.5s var(--ease-out-expo);
    cursor: zoom-in;
}

.hero-visual .app-screenshot:hover {
    transform: scale(1.02) translateY(-4px);
}

/* Showcase images - larger display with click to fullscreen */
.showcase-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    cursor: zoom-in;
    transition: all 0.4s var(--ease-out-expo);
    background: var(--bg-secondary);
}

.showcase-item:hover .showcase-img {
    border-color: var(--action-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Click hint on images */
.showcase-item::after {
    display: none;
    content: '';
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s var(--ease-out-expo);
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

.showcase-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Hero image click hint */
.hero-visual::after {
    content: '🔍 Click to enlarge';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s var(--ease-out-expo);
    pointer-events: none;
    z-index: 10;
}

.hero-visual {
    position: relative;
}

.hero-visual:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Merged into the main media query above */

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-desc {
        font-size: 14px;
    }

    .feature-card {
        padding: 20px;
    }

    .pricing-card {
        padding: 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DYNAMIC SHOWCASE & ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.dynamic-showcase {
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding: 60px 0;
}

.showcase-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-feature.reverse {
    direction: rtl;
}

.showcase-feature.reverse .feature-content {
    direction: ltr;
}

.feature-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.feature-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
}

.check-icon {
    color: var(--action-primary);
    font-weight: bold;
}

/* Feature Visual Containers */
.feature-visual {
    position: relative;
    height: 400px;
    border-radius: var(--radius-2xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s var(--ease-out-expo);
}

.feature-visual:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

/* --- Simulation 1: Mirroring --- */
.sim-device {
    width: 200px;
    height: 400px;
    background: #000;
    border-radius: 30px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 4px solid #333;
    position: relative;
}

.sim-screen {
    width: 100%;
    height: 100%;
    background: url('assets/screenshots/app-main.png') center/cover;
    /* Fallback or wallpaper */
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}

.sim-status-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 10px;
    color: white;
}

.sim-icons {
    display: flex;
    gap: 4px;
}

.sim-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
    margin-top: 20px;
}

.sim-app-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sim-mirror-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeOverlay 4s infinite;
}

.sim-connection-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 12px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--action-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeOverlay {

    0%,
    40% {
        opacity: 1;
    }

    50%,
    90% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* --- Simulation 2: Logcat Terminal --- */
.sim-terminal-window {
    width: 90%;
    height: 80%;
    background: #1e1e1e;
    /* VS Code dark */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
}

.sim-terminal-header {
    background: #252526;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #333;
}

.sim-dots {
    display: flex;
    gap: 6px;
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.sim-title {
    color: #999;
    font-size: 12px;
}

.sim-terminal-body {
    padding: 12px;
    color: #d4d4d4;
    font-size: 11px;
    line-height: 1.5;
    overflow: hidden;
    position: relative;
}

.typewriter-text {
    white-space: pre-wrap;
}

.code-snippet {
    background: var(--bg-elevated);
    padding: 16px;
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    border: 1px solid var(--border-default);
}

.code-line {
    display: block;
    margin-bottom: 4px;
}

.c-green {
    color: var(--success);
}

.c-blue {
    color: var(--info);
}

.c-red {
    color: var(--error);
}

/* --- Simulation 3: File Manager --- */
.sim-file-manager {
    width: 90%;
    height: 80%;
    background: var(--bg-surface);
    border-radius: 8px;
    display: flex;
    overflow: hidden;
}

.sim-sidebar {
    width: 120px;
    background: var(--bg-elevated);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sim-item {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 6px 8px;
    border-radius: 4px;
    cursor: default;
}

.sim-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sim-file-grid {
    flex: 1;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 80px);
    /* Fixed rows */
    gap: 12px;
}

.sim-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.sim-file:hover {
    background: var(--bg-hover);
}

.sim-file-icon {
    width: 32px;
    height: 32px;
    background: #444;
    border-radius: 6px;
}

.sim-file-icon.folder {
    background: #f59e0b;
}

.sim-file-icon.apk {
    background: #22c55e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
}

.sim-file span {
    font-size: 10px;
    color: var(--text-secondary);
}

.sim-file.dropped {
    animation: dropIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes dropIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.install-progress {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--success);
    animation: loadProgress 2s ease-in-out infinite;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════════════════════════════════════════ */

.comparison-section {
    margin-bottom: 100px;
    background: var(--bg-surface);
    border-radius: var(--radius-2xl);
    padding: 40px;
    border: 1px solid var(--border-default);
}

.comparison-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover td {
    background: var(--bg-hover);
}

.col-pro {
    background: rgba(217, 119, 6, 0.05);
    border-radius: 12px 12px 0 0;
}

.th-pro-badge {
    background: var(--action-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.comparison-table .check {
    color: var(--success);
    font-weight: bold;
    font-size: 18px;
}

.comparison-table .cross {
    color: var(--text-muted);
    opacity: 0.3;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .showcase-feature {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .showcase-feature.reverse {
        direction: ltr;
    }

    .feature-content {
        margin: 0 auto;
        max-width: 500px;
    }

    .feature-list {
        align-items: center;
        /* Center list items */
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .showcase-text {
        text-align: center;
    }

    /* Live Demo Responsive */
    .app-window {
        flex-direction: column;
        height: auto;
        min-height: 600px;
        overflow: visible;
    }

    .app-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-default);
        overflow: visible;
    }

    .app-main {
        width: 100%;
        min-height: 400px;
        overflow: auto;
    }

    /* Hide some top-bar icons on mobile to prevent overflow */
    .top-icons .icon-btn:nth-child(n+3) {
        display: none;
    }

    .app-header {
        padding: 0 12px;
    }

    .app-nav {
        gap: 12px;
    }

    .app-nav-item {
        font-size: 11px;
        gap: 4px;
    }

    .app-nav-item svg {
        width: 13px;
        height: 13px;
    }

    .sign-in-btn {
        display: none;
    }

    .window-controls {
        display: none;
    }

    .app-top-bar {
        padding: 6px 10px;
    }

    .device-card {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
    }

    .device-stats {
        gap: 16px;
        width: 100%;
        justify-content: space-between;
    }

    /* Settings Modal */
    .app-settings-modal .settings-container {
        flex-direction: column;
        width: 95%;
        max-height: 80vh;
    }

    .settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-default);
    }

    .settings-nav {
        display: flex;
        flex-direction: row;
        gap: 4px;
    }

    /* Hide Live Demo on mobile - desktop app simulation doesn't fit small screens */
    .btn-demo-tab {
        display: none !important;
    }

    #tab-demo {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADVANCED SHOWCASE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tabs Navigation */
.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--action-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tab-content {
    display: none;
    animation: fadeInScale 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Simulation: Recording UI --- */
.sim-rec-ui {
    position: absolute;
    top: 36px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    /* Hidden by default */
    animation: fadeIn 0.5s 3s forwards;
    /* Appear after connection */
}

.rec-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

/* --- Simulation: Device Info --- */
.sim-info-card {
    width: 90%;
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}

.sim-info-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sim-device-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.sim-battery {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-bat-level {
    width: 20px;
    height: 10px;
    border: 1px solid var(--text-secondary);
    border-radius: 2px;
    position: relative;
    display: block;
}

.sim-bat-level::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    bottom: 1px;
    width: 80%;
    background: var(--success);
    border-radius: 1px;
}

.sim-storage-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.sim-store-used {
    height: 100%;
    background: var(--action-primary);
}

.sim-storage-text {
    font-size: 11px;
    color: var(--text-muted);
}

/* --- Simulation: App List --- */
.sim-sub-interface {
    width: 90%;
    flex: 1;
    background: var(--bg-elevated);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.sim-list-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-light);
    gap: 10px;
}

.sim-app-icon-sm {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #444, #666);
    border-radius: 6px;
}

.sim-app-details {
    flex: 1;
}

.sim-app-name {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.sim-app-pkg {
    font-size: 9px;
    color: var(--text-muted);
}

.sim-btn-xs {
    padding: 4px 8px;
    font-size: 9px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
}

.sim-btn-xs.danger {
    color: #ff5f56;
    border-color: rgba(255, 95, 86, 0.3);
}

.sim-btn-xs:hover {
    background: var(--bg-hover);
}

/* --- Simulation: Lab Graph --- */
.sim-terminal-window {
    /* Ensure flex column layout for window */
    display: flex;
    flex-direction: column;
}

.sim-terminal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Remove padding here, move to children */
    overflow: hidden;
}

.typewriter-text {
    flex: 1;
    overflow-y: auto;
    /* Scroll text only */
    padding: 12px;
}

.sim-lab-overlay {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: none;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Fix for mirrored content in reverse layout */
.showcase-feature.reverse .feature-visual {
    direction: ltr;
}

.sim-lab-title {
    font-size: 11px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.sim-graph-container {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.sim-graph-bar {
    flex: 1;
    background: var(--action-primary);
    opacity: 0.7;
    border-radius: 2px 2px 0 0;
    animation: graphGrowth 2s infinite ease-in-out alternate;
}

.sim-graph-bar.stress {
    background: linear-gradient(to top, #f59e0b, #ef4444);
    animation: stressGrowth 0.5s infinite ease-in-out alternate;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.sim-graph-bar:nth-child(even) {
    animation-delay: 0.2s;
    background: var(--secondary);
}

.sim-graph-bar.stress:nth-child(even) {
    background: linear-gradient(to top, #f59e0b, #ef4444);
    animation-delay: 0.1s;
}

.sim-graph-bar:nth-child(3n) {
    animation-delay: 0.5s;
}

@keyframes graphGrowth {
    0% {
        height: 20%;
    }

    100% {
        height: 90%;
    }
}

@keyframes stressGrowth {
    0% {
        height: 60%;
    }

    100% {
        height: 100%;
    }
}

/* --- Simulation: Theme Customization --- */
.theme-selector {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-default);
}

/* Mock UI for Theme Preview */
.sim-mock-ui {
    width: 80%;
    height: 80%;
    background: var(--bg-default);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-light);
}

.sim-mock-sidebar {
    width: 50px;
    background: var(--bg-hover);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sim-mock-nav-item {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.sim-mock-nav-item.active {
    background: var(--sim-accent, var(--action-primary));
}

.sim-mock-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sim-mock-header {
    width: 60%;
    height: 16px;
    background: var(--text-primary);
    opacity: 0.1;
    border-radius: 4px;
}

.sim-mock-card {
    width: 100%;
    height: 40px;
    background: var(--bg-hover);
    border-radius: 6px;
}

.sim-mock-btn {
    margin-top: auto;
    width: 100px;
    height: 30px;
    background: var(--sim-accent, var(--action-primary));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
}

/* ===============================================================================
   COMPREHENSIVE LIGHT THEME TEXT OVERRIDES
   Sets a base color on .app-window so ALL child elements inherit dark text.
   =============================================================================== */

/* Base: force all text inside the light-themed window to be dark */
.app-window.light-theme {
    color: #0f172a;
}

/* -- Sidebar ----------------------------------------------------------------- */
.app-window.light-theme .sidebar-title span:first-child {
    color: #0f172a;
}

.app-window.light-theme .sidebar-subtitle {
    color: #64748b;
}

.app-window.light-theme .drop-content {
    color: #64748b;
}

.app-window.light-theme .sidebar-btn {
    color: #475569;
}

.app-window.light-theme .sidebar-btn.primary-btn {
    color: var(--action-primary);
}

.app-window.light-theme .option-title {
    color: #334155;
}

.app-window.light-theme .option-desc {
    color: #64748b;
}

.app-window.light-theme .sidebar-status {
    color: #475569;
}

/* -- Top Bar ----------------------------------------------------------------- */
.app-window.light-theme .window-title {
    color: #0f172a;
}

.app-window.light-theme .sign-in-btn {
    color: #334155;
}

.app-window.light-theme .icon-btn {
    color: #475569;
}

.app-window.light-theme .icon-btn:hover {
    color: #0f172a;
}

/* -- Navigation -------------------------------------------------------------- */
.app-window.light-theme .app-nav-item {
    color: #64748b;
}

.app-window.light-theme .app-nav-item:hover,
.app-window.light-theme .app-nav-item.active {
    color: var(--action-primary);
}

/* -- View Headers ------------------------------------------------------------ */
.app-window.light-theme .view-header h2 {
    color: #0f172a;
}

.app-window.light-theme .refresh-btn {
    color: #475569;
}

/* -- Device View ------------------------------------------------------------- */
.app-window.light-theme .device-info h3 {
    color: #0f172a;
}

.app-window.light-theme .device-meta,
.app-window.light-theme .device-meta span {
    color: #64748b;
}

.app-window.light-theme .device-icon {
    color: #475569;
}

.app-window.light-theme .stat-label {
    color: #94a3b8;
}

.app-window.light-theme .stat-val {
    color: #334155;
}

/* -- Media View -------------------------------------------------------------- */
.app-window.light-theme .dropdown {
    color: #334155;
}

.app-window.light-theme .view-toggle button {
    color: #64748b;
}

.app-window.light-theme .view-toggle button.active {
    color: var(--action-primary);
}

.app-window.light-theme .btn-text {
    color: #475569;
}

/* -- Management View --------------------------------------------------------- */
.app-window.light-theme .mgmt-tab {
    color: #64748b;
}

.app-window.light-theme .mgmt-tab:hover {
    color: #0f172a;
}

.app-window.light-theme .mgmt-tab.active {
    color: white;
}

.app-window.light-theme .info-device h3 {
    color: #0f172a;
}

.app-window.light-theme .info-device span {
    color: #64748b;
}

.app-window.light-theme .info-card h4 {
    color: #64748b;
}

.app-window.light-theme .info-row span:first-child {
    color: #475569;
}

.app-window.light-theme .info-row span:last-child {
    color: #0f172a;
}

.app-window.light-theme .app-row {
    color: #334155;
}

.app-window.light-theme .app-row.header {
    color: #94a3b8;
}

.app-window.light-theme .app-row span:nth-child(2) {
    color: #64748b;
}

.app-window.light-theme .file-row {
    color: #0f172a;
}

/* -- Logcat ------------------------------------------------------------------ */
.app-window.light-theme .logcat-terminal {
    background: #f1f5f9;
}

.app-window.light-theme .code-line {
    color: #334155;
}

.app-window.light-theme .c-green {
    color: #16a34a;
}

.app-window.light-theme .c-blue {
    color: #2563eb;
}

/* -- Settings Modal ---------------------------------------------------------- */
.app-window.light-theme .settings-title {
    color: #0f172a;
}

.app-window.light-theme .settings-nav-item {
    color: #475569;
}

.app-window.light-theme .settings-nav-item.active {
    color: white !important;
    background: var(--action-primary);
}

.app-window.light-theme .setting-label {
    color: #0f172a;
}

.app-window.light-theme .setting-desc {
    color: #64748b;
}

.app-window.light-theme .settings-container {
    background: #ffffff;
    border-color: #e2e8f0;
}

.app-window.light-theme .settings-sidebar {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.app-window.light-theme .profile-info h4 {
    color: #0f172a;
}

.app-window.light-theme .profile-info p {
    color: #64748b;
}

/* -- Backgrounds for cards in light mode ------------------------------------- */
.app-window.light-theme .info-header {
    background: #ffffff;
}

.app-window.light-theme .info-card {
    background: #ffffff;
}

/* ===============================================================================
   ADDITIONAL LIGHT THEME FIXES (Install btn, sidebar icon, mgmt tabs, etc.)
   =============================================================================== */

/* 1) Sidebar icon - keep accent bg but ensure visibility */
.app-window.light-theme .sidebar-icon {
    background: var(--accent-gradient);
    color: white;
}

/* 2) Install button - keep the gradient, always white text */
.app-window.light-theme .install-btn {
    background: var(--accent-gradient);
    color: white;
}

/* 3) Management sub-tab text: inactive tabs must be dark in light mode */
.app-window.light-theme .mgmt-tab {
    color: #475569;
}

.app-window.light-theme .mgmt-tab:hover {
    color: #0f172a;
}

.app-window.light-theme .mgmt-tab.active {
    background: var(--action-primary);
    color: white;
}

/* 4) Export button (.btn-primary-sm) - must be visible in light mode */
.app-window.light-theme .btn-primary-sm {
    background: var(--action-primary);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

#contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#contact-modal.active {
    display: flex;
    animation: contactModalFadeIn 0.25s ease;
}

@keyframes contactModalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.contact-modal-container {
    max-width: 800px;
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    overflow: hidden;
    animation: contactModalSlideUp 0.3s ease;
}

@keyframes contactModalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .contact-modal-container {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }
}

.contact-modal-sidebar {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.method-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-value {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.method-value:hover {
    color: var(--action-primary);
}

.contact-modal-content {
    padding: 32px;
}

/* Reusing form styles from previous standalone section */
.contact-form-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form-modal .form-group {
    margin-bottom: 20px;
}

.contact-form-modal .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.contact-form-modal .form-group input,
.contact-form-modal .form-group textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.contact-form-modal .form-group input:focus,
.contact-form-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--action-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-base);
}

.contact-form-modal .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

@media (max-width: 768px) {
    .contact-form-modal .form-row {
        grid-template-columns: 1fr;
    }
}



/* 5) Action button (Scan) in media toolbar */
.app-window.light-theme .action-btn {
    background: var(--action-primary);
    color: white;
}

/* 6) Device checkbox - border visible in light mode */
.app-window.light-theme .device-checkbox {
    border-color: #cbd5e1;
}

.app-window.light-theme .device-checkbox.checked {
    background: var(--action-primary);
    border-color: var(--action-primary);
    color: white;
}

/* 7) PRO badge - always yellow/amber regardless of theme */
.badge-pro {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.app-window.light-theme .badge-pro {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #d97706 !important;
    border-color: rgba(245, 158, 11, 0.4);
}

/* 8) Delete button in media footer */
.app-window.light-theme .btn-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.25);
}

/* 9) Toggle switch visibility in light mode */
.app-window.light-theme .toggle-switch {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.app-window.light-theme .toggle-switch::after {
    background: #94a3b8;
}

.app-window.light-theme .toggle-switch.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
}

.app-window.light-theme .toggle-switch.active::after {
    background: #22c55e;
}

/* Fix: Management sub-tabs active state in light mode - stronger contrast */
.app-window.light-theme .mgmt-tab.active {
    background: var(--action-primary) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Fix: Management tabs container in light mode */
.app-window.light-theme .management-tabs {
    background: #e2e8f0;
}

/* Fix: Sidebar icon and install button also respond in light mode */
.app-window.light-theme .sidebar-icon {
    background: var(--action-primary);
    color: white;
}

.app-window.light-theme .install-btn {
    background: var(--action-primary);
    color: white;
}

/* 5) Action button (Scan) in media toolbar */
.app-window.light-theme .action-btn {
    background: var(--action-primary);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APK CARD (Add APK interaction)
   ═══════════════════════════════════════════════════════════════════════════ */

.drop-zone.has-apks {
    height: 140px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 8px;
    gap: 6px;
    overflow-y: auto;
}

.drop-zone.has-apks .drop-content {
    display: none;
}

.apk-cards-container {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.drop-zone.has-apks .apk-cards-container {
    display: flex;
}

.apk-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-left: 3px solid var(--success);
    border-radius: var(--radius-md);
    animation: apkSlideIn 0.35s var(--ease-out-expo);
    transition: all 0.2s ease;
    cursor: default;
    flex-shrink: 0;
}

.apk-card:hover {
    border-color: var(--border-light);
    background: var(--bg-hover);
}

.apk-card-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
}

.apk-card-icon svg {
    width: 18px;
    height: 18px;
    color: var(--action-primary);
}

.apk-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.apk-card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apk-card-meta {
    font-size: 10px;
    color: var(--text-muted);
}

.apk-card-size {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

@keyframes apkSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MIRROR – Side-by-side layout: Phone ← USB → Mirror Window
   ═══════════════════════════════════════════════════════════════════════════ */

.mirror-overlay {
    position: absolute;
    top: 0;
    left: 240px;
    /* offset for sidebar width */
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    display: none;
    /* Old overlay - not used anymore */
    align-items: center;
    justify-content: center;
    animation: mirrorFadeIn 0.3s ease;
}

@keyframes mirrorFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Horizontal layout: phone | cable | window */
.mirror-layout {
    display: flex;
    align-items: center;
    gap: 0;
    animation: mirrorSlideUp 0.4s var(--ease-out-expo);
}

@keyframes mirrorSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Physical Phone Device ── */
.mirror-device {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mirror-phone {
    width: 140px;
    background: #0a0a0a;
    border-radius: 20px;
    border: 3px solid #2a2a2a;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
}

.mirror-phone-notch {
    width: 50px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 0 0 8px 8px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mirror-phone-screen {
    display: flex;
    flex-direction: column;
}

.mirror-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
}

.mirror-time {
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.mirror-status-icons {
    display: flex;
    gap: 3px;
    color: white;
}

.mirror-status-icons svg {
    width: 9px;
    height: 9px;
}

.mirror-screen-content {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.mirror-wallpaper {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #e94560 100%);
    animation: wallpaperShift 8s ease-in-out infinite alternate;
}

@keyframes wallpaperShift {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }

    50% {
        filter: hue-rotate(20deg) brightness(1.1);
    }

    100% {
        filter: hue-rotate(-10deg) brightness(0.95);
    }
}

.mirror-clock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mirror-clock-time {
    display: block;
    font-size: 32px;
    font-weight: 200;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 4px;
}

.mirror-clock-date {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.85;
}

.mirror-nav-bar {
    display: flex;
    justify-content: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
}

.mirror-nav-pill {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 100px;
}

/* Device Label */
.mirror-device-label {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mirror-device-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.mirror-device-status {
    font-size: 9px;
    font-weight: 600;
    color: var(--success);
    letter-spacing: 0.3px;
}

/* ── Horizontal USB Cable ── */
.mirror-cable {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.cable-plug {
    width: 10px;
    height: 16px;
    background: #555;
    border: 1px solid #666;
    border-radius: 2px;
}

.cable-plug:first-child {
    border-right: none;
    border-radius: 2px 0 0 2px;
}

.cable-plug:nth-child(3) {
    border-left: none;
    border-radius: 0 2px 2px 0;
}

.cable-wire {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #555, #444, #555);
    position: relative;
}

.cable-wire::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.04), transparent);
}

.cable-label {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ── Mirror Screen Window ── */
.mirror-window {
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    width: 220px;
    overflow: hidden;
}

.mirror-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-default);
}

.mirror-title-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.mirror-title-left svg {
    color: var(--action-primary);
}

.mirror-title-controls {
    display: flex;
    gap: 5px;
}

.mirror-close {
    cursor: pointer;
    background: #ef4444 !important;
    transition: transform 0.15s ease;
}

.mirror-close:hover {
    transform: scale(1.3);
}

.mirror-window-screen {
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED MIRRORING DEMO - Monitor + External Phone + Animated Cable
   ═══════════════════════════════════════════════════════════════════════════ */

/* Main Container */
.mirror-demo-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    position: relative;
    padding: 30px 20px 80px 20px;
    min-height: 700px;
    transition: all 0.6s var(--ease-out-expo);
}

/* ── External Phone Device ── */
.external-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(-80px) scale(0.9);
    pointer-events: none;
    transition: all 0.6s var(--ease-out-expo);
    position: absolute;
    left: 60px;
    bottom: 130px;
    z-index: 10;
}

.mirror-demo-container.mirroring-active .external-phone {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    transition-delay: 0.2s;
}

/* Subtle floating animation when connected */
.mirror-demo-container.mirroring-active .external-phone-frame {
    animation: phoneFloat 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes phoneFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.external-phone-frame {
    width: 140px;
    background: linear-gradient(145deg, #1a1a1f, #0a0a0e);
    border-radius: 24px;
    border: 3px solid #2a2a32;
    overflow: hidden;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 5;
    transition: box-shadow 0.4s ease;
}

.mirror-demo-container.mirroring-active .external-phone-frame {
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 25px rgba(217, 119, 6, 0.12);
}

.external-phone-notch {
    width: 50px;
    height: 6px;
    background: #0f0f12;
    border-radius: 0 0 10px 10px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.external-phone-notch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: #1a1a1a;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.1);
}

.external-phone-screen {
    display: flex;
    flex-direction: column;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.phone-time {
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.phone-status-icons {
    display: flex;
    gap: 3px;
    color: white;
}

.phone-status-icons svg {
    width: 9px;
    height: 9px;
}

.phone-screen-content {
    position: relative;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-wallpaper {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #e94560 100%);
    animation: wallpaperShift 8s ease-in-out infinite alternate;
}

.phone-clock {
    position: relative;
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
    margin-bottom: 25px;
}

.phone-clock-time {
    display: block;
    font-size: 36px;
    font-weight: 200;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 4px;
}

.phone-clock-date {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.85;
}

/* Phone App Grid */
.phone-app-grid {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 8px;
}

.phone-app-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-app-icon:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.1);
}

.phone-app-icon.tapped {
    background: var(--accent);
    transform: scale(0.9);
    box-shadow: 0 0 12px var(--accent-glow);
}

.phone-app-icon svg {
    width: 13px;
    height: 13px;
    color: white;
}

.phone-nav-bar {
    display: flex;
    justify-content: center;
    padding: 6px;
    background: rgba(0, 0, 0, 0.4);
}

.phone-nav-pill {
    width: 35px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 100px;
}

.external-phone-label {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    z-index: 5;
}

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

.phone-device-status {
    font-size: 9px;
    font-weight: 500;
    color: var(--success);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.phone-device-status::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--success);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ── Animated USB Cable (SVG) ── */
.usb-cable-container {
    display: none !important;
}

.usb-label {
    display: none !important;
}

/* SVG Cable Styles */
.usb-cable-svg {
    position: absolute;
    left: 125px;
    bottom: 60px;
    width: 500px;
    height: 90px;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.mirror-demo-container.mirroring-active .usb-cable-svg {
    opacity: 1;
    transition-delay: 0.4s;
}

/* Cable path animation */
.cable-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1s ease-out;
}

.mirror-demo-container.mirroring-active .cable-path {
    stroke-dashoffset: 0;
    transition-delay: 0.5s;
}

/* ── Monitor Frame ── */
.monitor-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.6s var(--ease-out-expo);
    position: relative;
    z-index: 5;
}

.mirror-demo-container.mirroring-active .monitor-frame {
    transform: translateX(100px);
}

/* Hide old bezel elements */
.monitor-bezel {
    display: none;
}

.monitor-camera {
    display: none;
}

/* Monitor outer frame - the black bezel frame */
.monitor-screen {
    background: transparent;
    border-radius: 8px;
    padding: 0;
    position: relative;
    transition: all 0.4s var(--ease-out-expo);
}

.mirror-demo-container.mirroring-active .monitor-screen {
    background: linear-gradient(180deg, #2a2a30, #1a1a1f);
    padding: 12px 12px 30px 12px;
    border-radius: 14px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Monitor logo at bottom bezel */
.monitor-screen::before {
    content: 'ANDORA';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #555;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mirror-demo-container.mirroring-active .monitor-screen::before {
    opacity: 1;
    transition-delay: 0.3s;
}

/* Power LED */
.monitor-screen::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 25px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mirror-demo-container.mirroring-active .monitor-screen::after {
    opacity: 1;
    box-shadow: 0 0 8px var(--accent);
    transition-delay: 0.5s;
}

/* App window inside monitor */
.monitor-screen .app-window {
    border-radius: 6px;
    overflow: hidden;
}

.monitor-stand {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(-5px) scaleY(0);
    transform-origin: top;
    transition: all 0.4s var(--ease-out-expo);
    height: 0;
    overflow: hidden;
}

.mirror-demo-container.mirroring-active .monitor-stand {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    height: auto;
    transition-delay: 0.2s;
}

.monitor-neck {
    width: 55px;
    height: 45px;
    background: linear-gradient(180deg, #2a2a30 0%, #353540 50%, #2a2a30 100%);
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
    position: relative;
}

.monitor-neck::after {
    display: none;
}

.monitor-base {
    width: 140px;
    height: 12px;
    background: linear-gradient(180deg, #353540, #2a2a30);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ── Mirror Popup Window (inside app-main area) ── */
.mirror-popup {
    position: absolute;
    top: 90px;
    right: 25px;
    width: 220px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 30px rgba(217, 119, 6, 0.12);
    z-index: 100;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    transition: all 0.4s var(--ease-out-expo);
}

.mirroring-active .mirror-popup {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    transition-delay: 0.7s;
}

.mirror-popup-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-default);
}

.mirror-popup-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.mirror-popup-title svg {
    width: 12px;
    height: 12px;
    color: var(--accent);
}

.mirror-live-badge {
    background: #ef4444;
    color: white;
    font-size: 7px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.mirror-popup-controls {
    display: flex;
    gap: 5px;
}

.mirror-popup-close {
    cursor: pointer;
    background: var(--bg-elevated) !important;
    transition: all 0.15s ease;
}

.mirror-popup-close:hover {
    background: #e81123 !important;
    color: white !important;
    transform: scale(1.15);
}

.mirror-popup-screen {
    display: flex;
    flex-direction: column;
    background: #000;
}

.popup-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.4);
}

.popup-time {
    font-size: 9px;
    font-weight: 600;
    color: white;
}

.popup-status-icons {
    display: flex;
    gap: 3px;
    color: white;
}

.popup-status-icons svg {
    width: 8px;
    height: 8px;
}

.popup-screen-content {
    position: relative;
    height: 160px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popup-wallpaper {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #e94560 100%);
    animation: wallpaperShift 8s ease-in-out infinite alternate;
}

.popup-clock {
    position: relative;
    text-align: center;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 2;
    margin-bottom: 15px;
}

.popup-clock-time {
    display: block;
    font-size: 30px;
    font-weight: 200;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 3px;
}

.popup-clock-date {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.85;
}

/* Popup App Grid */
.popup-app-grid {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 8px;
}

.popup-app-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.popup-app-icon.tapped {
    background: var(--accent);
    transform: scale(0.9);
    box-shadow: 0 0 12px var(--accent-glow);
}

.popup-app-icon svg {
    width: 12px;
    height: 12px;
    color: white;
}

.popup-nav-bar {
    display: flex;
    justify-content: center;
    padding: 6px;
    background: rgba(0, 0, 0, 0.5);
}

.popup-nav-pill {
    width: 35px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 100px;
}

.mirror-popup-footer {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-default);
    font-size: 9px;
    color: var(--text-muted);
}

.mirror-latency,
.mirror-fps {
    display: flex;
    align-items: center;
    gap: 3px;
}

.mirror-fps {
    color: var(--success);
}

/* Touch ripple effect */
@keyframes touchRipple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.touch-ripple {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: touchRipple 0.6s ease-out forwards;
}

/* ── Mirroring Button Active State ── */
#btn-mirror {
    position: relative;
}

/* Pulsing hint animation before clicking */
#btn-mirror::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: mirrorHint 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mirrorHint {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.mirroring-active #btn-mirror::after {
    display: none;
}

#btn-mirror.active {
    background: var(--accent) !important;
    color: white !important;
}

#btn-mirror.active::after {
    display: none;
}

#btn-mirror.active svg {
    stroke: white;
}

/* ── Responsive adjustments for mirroring demo ── */
@media (max-width: 1100px) {
    .app-window {
        width: 90vw;
        max-width: 850px;
        height: 480px;
    }

    .mirror-demo-container {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .external-phone {
        position: relative;
        left: auto;
        bottom: auto;
        order: 2;
    }

    .mirror-demo-container.mirroring-active .external-phone {
        transform: translateX(0) scale(1);
    }

    .mirror-demo-container.mirroring-active .monitor-frame {
        transform: none;
    }

    .monitor-frame {
        order: 1;
    }

    /* Hide cable on smaller screens */
    .usb-cable-svg {
        display: none;
    }
}

@media (max-width: 900px) {
    .app-window {
        width: 92vw;
        max-width: 750px;
        height: 440px;
    }
}

@media (max-width: 768px) {
    .mirror-demo-container {
        padding: 15px 10px 30px;
        min-height: auto;
    }

    .app-window {
        width: 95vw;
        max-width: none;
        height: 400px;
    }

    .external-phone-frame {
        width: 130px;
    }

    .phone-screen-content {
        height: 200px;
    }

    .phone-clock-time {
        font-size: 32px;
    }

    .phone-app-icon {
        width: 28px;
        height: 28px;
    }

    .phone-app-icon svg {
        width: 13px;
        height: 13px;
    }

    .mirror-popup {
        width: 150px;
        top: 50px;
        right: 8px;
    }

    .popup-screen-content {
        height: 90px;
    }

    .popup-clock-time {
        font-size: 20px;
    }

    /* Device table responsive */
    .device-table-header {
        display: none;
    }

    .device-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .td-checkbox {
        order: 1;
    }

    .td-device {
        order: 2;
        flex: 1;
    }

    .td-serial,
    .td-api,
    .td-storage,
    .td-temp {
        display: none;
    }

    /* Footer bar responsive */
    .app-footer-bar {
        left: 0;
        font-size: 10px;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════════════════════════ */
/* Hide default cursor */
body,
a,
button,
input,
textarea,
select,
label,
.clickable {
    cursor: none !important;
}

#custom-cursor-arrow {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    /* Custom SVG Arrow */
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3L10.07 19.97L12.58 12.58L19.97 10.07L3 3Z' fill='%23F59E0B' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10000;
    /* Don't center translate the arrow, the tip is top-left */
    transform: translate(0, 0);
    will-change: transform;
}

/* Interaction States */
.interacting #custom-cursor-arrow {
    /* Optional: Scale arrow slightly on interaction */
    /* transform: scale(1.1); - logic handled in JS for smooth translation */
}

/* Hide custom cursor on mobile/touch devices */
@media (max-width: 1024px) {

    #custom-cursor-arrow {
        display: none !important;
    }

    button,
    input,
    textarea,
    select,
    label,
    .clickable {
        cursor: pointer !important;
    }

    body {
        cursor: auto !important;
    }
}