/* CSS Design System for What's Inside Landing Page */

/* CSS Variables */
:root {
    --bg-primary: #000000;
    --bg-secondary: #08080a;
    --bg-card: rgba(10, 10, 12, 0.55);
    --bg-card-hover: rgba(18, 18, 22, 0.8);
    --border-color: rgba(255, 255, 255, 0.05);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    --orange-primary: #ff5c00;
    --orange-gradient: linear-gradient(135deg, #ff8a48 0%, #ff5c00 60%, #c83b00 100%);
    --orange-glow: rgba(255, 92, 0, 0.2);
    
    --green-primary: #10b981;
    --green-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
    --green-glow: rgba(16, 185, 129, 0.15);
    
    --yellow-primary: #eab308;
    --red-primary: #ef4444;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 9999;
}


/* Multi-language styling helpers */
html[lang="it"] .lang-en { display: none !important; }
html[lang="en"] .lang-it { display: none !important; }

/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h1 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.22;
}

h2 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #18181b;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #27272a;
}

/* Glowing Background Orbs */
.glow-orb {
    position: absolute;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    animation: pulse 12s infinite alternate ease-in-out;
}

.orb-1 {
    top: -100px;
    left: -100px;
    background: var(--orange-primary);
}

.orb-2 {
    top: 40%;
    right: -200px;
    background: #8b5cf6;
    animation-delay: -3s;
}

.orb-3 {
    bottom: 10%;
    left: -200px;
    background: var(--green-primary);
    animation-delay: -6s;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    100% { transform: scale(1.2) translate(5%, 5%); opacity: 0.22; }
}

/* Reusable Components: Buttons & Badges */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    gap: 8px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 0.98rem;
    border-radius: 9px;
}

.btn-wide {
    width: 100%;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #f4f4f5;
    border-color: #f4f4f5;
    transform: translateY(-1px);
    box-shadow: 0 0 25px var(--orange-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 55%
    );
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.btn-glow:hover::after {
    left: 150%;
    opacity: 1;
    transition: 0.8s ease-in-out;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(243, 131, 18, 0.12);
    border: 1px solid rgba(243, 131, 18, 0.25);
    color: var(--orange-primary);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--orange-primary);
    box-shadow: 0 0 8px var(--orange-primary);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.text-gradient {
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-top: 0.05em;
    padding-bottom: 0.12em;
    margin-top: -0.05em;
    margin-bottom: -0.12em;
    display: inline-block;
}

.text-green-gradient {
    background: var(--green-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-top: 0.05em;
    padding-bottom: 0.12em;
    margin-top: -0.05em;
    margin-bottom: -0.12em;
    display: inline-block;
}

/* Scan Brackets System */
.has-brackets {
    position: relative;
}

.scan-brackets-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

.sb-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(255, 92, 0, 0.35);
    border-style: solid;
    border-width: 0;
    opacity: 0.5;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn.has-brackets .sb-corner {
    width: 6px;
    height: 6px;
}

.sb-corner.tl {
    top: 0;
    left: 0;
    border-top-width: 1.5px;
    border-left-width: 1.5px;
}

.sb-corner.tr {
    top: 0;
    right: 0;
    border-top-width: 1.5px;
    border-right-width: 1.5px;
}

.sb-corner.bl {
    bottom: 0;
    left: 0;
    border-bottom-width: 1.5px;
    border-left-width: 1.5px;
}

.sb-corner.br {
    bottom: 0;
    right: 0;
    border-bottom-width: 1.5px;
    border-right-width: 1.5px;
}

.has-brackets:hover .sb-corner {
    opacity: 1;
    border-color: var(--orange-primary);
}

.has-brackets:hover .sb-corner.tl {
    transform: translate(-5px, -5px);
}

.has-brackets:hover .sb-corner.tr {
    transform: translate(5px, -5px);
}

.has-brackets:hover .sb-corner.bl {
    transform: translate(-5px, 5px);
}

.has-brackets:hover .sb-corner.br {
    transform: translate(5px, 5px);
}

.btn.has-brackets:hover .sb-corner.tl {
    transform: translate(-3px, -3px);
}

.btn.has-brackets:hover .sb-corner.tr {
    transform: translate(3px, -3px);
}

.btn.has-brackets:hover .sb-corner.bl {
    transform: translate(-3px, 3px);
}

.btn.has-brackets:hover .sb-corner.br {
    transform: translate(3px, 3px);
}

@keyframes float-animation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: 92%;
    z-index: 1000;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    background: rgba(8, 8, 10, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.main-header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    top: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-container {
    height: 52px;
    width: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px; /* Spazio costante tra logo e blocco categorie */
    padding: 0 28px 0 24px;
    overflow: visible;
}

.logo-area {
    display: flex;
    align-items: center;
    position: static;
    transform: none;
}

.main-nav {
    display: block;
}

.header-logo {
    height: 28px;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px; /* Spazio costante tra le categorie (circa 30-40px) */
    align-items: center;
    position: relative;
}

/* The single sliding pill indicator */
.nav-active-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    height: 32px;
    border-radius: 9999px;
    background: var(--orange-primary);
    border: none;
    box-shadow:
        0 0 14px rgba(255, 92, 0, 0.45),
        0 2px 10px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transform: translateY(-50%) translateX(0px) scaleX(1);
    transform-origin: center center;
    transition:
        transform 0.55s cubic-bezier(0.65, 0, 0.35, 1),
        width 0.55s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.3s ease,
        box-shadow 0.3s ease;
    opacity: 0;
    will-change: transform, width;
    z-index: 0;
}

.nav-active-indicator.visible {
    opacity: 1;
}

/* When the pill is in motion, intensify the glow slightly */
.nav-active-indicator.sliding {
    box-shadow:
        0 0 22px rgba(255, 92, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.4);
}

.main-nav a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.88rem;
    letter-spacing: -0.01em;
    padding: 6px 14px;
    border-radius: 9999px;
    position: relative;
    z-index: 1;
    /* Match pill slide easing so text color changes in perfect sync */
    transition: color 0.55s cubic-bezier(0.65, 0, 0.35, 1),
                font-weight 0.55s cubic-bezier(0.65, 0, 0.35, 1);
    white-space: nowrap;
}

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

.main-nav a.nav-link-active {
    color: #000000;
    font-weight: 600;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding-top: 80px;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.mobile-nav .btn {
    font-size: 1.2rem;
    padding: 12px 40px;
}

/* iOS simulated Notification Banner */
.ios-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, -150%);
    width: 90%;
    max-width: 420px;
    background: rgba(25, 25, 25, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.ios-notification.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.ios-notification.error {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.25), 0 0 20px rgba(239, 68, 68, 0.05);
}

.ios-notification.error .notif-title {
    color: #ef4444;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.notif-app-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.notif-app-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}

.notification-body {
    color: var(--text-primary);
}

.notif-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.notif-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Hero Section Styles */
.hero-section {
    padding-top: 150px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% -20%, rgba(255, 92, 0, 0.08) 0%, transparent 60%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 840px;
    margin: 0 auto;
    z-index: 10;
}

.hero-title {
    font-size: 4.6rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 30%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    justify-content: center;
}

.hero-actions .btn {
    min-width: 180px;
}

.hero-stats {
    display: flex;
    gap: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 36px;
    margin-bottom: 60px;
    width: 100%;
    justify-content: center;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-accent);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* iPhone Mockup Component */
.hero-visual-content {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    margin-top: 20px;
    perspective: 1500px;
    z-index: 10;
}

@media (min-width: 1025px) {
    .iphone-mockup-wrapper {
        transform: rotateX(12deg) rotateY(-8deg) rotateZ(3deg);
        transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .iphone-mockup-wrapper:hover {
        transform: rotateX(4deg) rotateY(-2deg) rotateZ(1deg) scale(1.02);
    }
}

.iphone-mockup-wrapper {
    position: relative;
    z-index: 10;
    animation: float-animation 6s ease-in-out infinite;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 60%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.iphone-device {
    position: relative;
    width: 310px;
    height: 650px;
    border-radius: 46px;
    background: #000;
    box-shadow: 
        0px 30px 70px -15px rgba(0,0,0,0.9),
        0px 0px 0px 1px rgba(255,255,255,0.05),
        0px 0px 0px 4px #1c1c1e,
        0px 0px 0px 8px #2d2d30,
        0px 0px 0px 9px rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    overflow: visible;
    border: 4px solid #000;
}

/* Side Buttons positioning and styling */
.iphone-button {
    position: absolute;
    background: linear-gradient(to bottom, #3a3a3c, #1c1c1e);
    border-radius: 3px;
    z-index: -1;
    width: 3px;
}

.iphone-button.vol-up {
    top: 130px;
    left: -11px;
    height: 45px;
    box-shadow: -1px 0 2px rgba(255,255,255,0.1), inset 1px 0 1px rgba(0,0,0,0.5);
}

.iphone-button.vol-down {
    top: 190px;
    left: -11px;
    height: 45px;
    box-shadow: -1px 0 2px rgba(255,255,255,0.1), inset 1px 0 1px rgba(0,0,0,0.5);
}

.iphone-button.power-btn {
    top: 160px;
    right: -11px;
    height: 65px;
    box-shadow: 1px 0 2px rgba(255,255,255,0.1), inset -1px 0 1px rgba(0,0,0,0.5);
}

/* Glass Glare Overlay */
.phone-glass-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 30%, transparent 60%);
    pointer-events: none;
    z-index: 150;
    border-radius: 36px;
}

/* Interactive Simulator Screen */
.iphone-simulator-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0a0a0c; /* Matches Vercel darkbg */
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

/* iOS status bar inside simulator */
.sim-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    z-index: 90;
    background: transparent;
}

.sim-status-icons {
    display: flex;
    gap: 5px;
    font-size: 0.65rem;
}

/* Dynamic Island */
.sim-dynamic-island {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 20px;
    background: #000;
    border-radius: 10px;
    z-index: 100;
}

/* Screen Contents */
.sim-screen-content {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Tab Panels */
.sim-tab-panel {
    display: none;
    flex-direction: column;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 24px 16px 65px; /* bottom padding accounts for tab-bar */
    background: #121212;
}

.sim-tab-panel.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
    position: relative;
}

/* Panel Header styling */
.sim-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sim-app-header-sub {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 14px;
}

.sim-header-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sim-logo-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-app-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.sim-app-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: #fff;
}

.sim-header-icons {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sim-bell-icon {
    position: relative;
    cursor: pointer;
}

.sim-badge-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--orange-primary);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Home Panel Scrollable content */
.sim-home-scroll {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 2px;
}

.sim-home-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbars in mockup */
}

/* Welcome Card */
.sim-welcome-card {
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sim-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5d0a9;
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.sim-user-text {
    display: flex;
    flex-direction: column;
}

.sim-greeting {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--orange-primary);
}

.sim-subgreeting {
    font-size: 0.58rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Remaining Scans meter card */
.sim-meter-card {
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.sim-meter-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.sim-orange-circle-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 0 8px var(--orange-glow);
}

.sim-meter-text {
    display: flex;
    flex-direction: column;
}

.sim-meter-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.sim-meter-lbl {
    font-size: 0.58rem;
    line-height: 1.2;
    color: var(--text-secondary);
}

.sim-meter-bar-container {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin-bottom: 6px;
    overflow: hidden;
}

.sim-meter-bar {
    height: 100%;
    background: var(--orange-gradient);
    border-radius: 3px;
}

.sim-meter-level {
    font-size: 0.58rem;
    color: var(--text-muted);
}

/* Grid Links */
.sim-grid-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sim-grid-link-card {
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sim-grid-link-card:hover {
    background: rgba(255,255,255,0.06);
}

.sim-grid-link-card i {
    font-size: 1.05rem;
}

/* Wizi Card inside simulator */
.sim-wizi-promo-card {
    background: var(--orange-gradient);
    border-radius: 18px;
    padding: 14px;
    color: #fff;
    box-shadow: 0 4px 12px var(--orange-glow);
}

.sim-wizi-promo-card h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-weight: 800;
}

.sim-wizi-promo-card p {
    font-size: 0.68rem;
    line-height: 1.3;
    opacity: 0.95;
}

/* Titles for sub panels */
.sim-panel-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    text-align: center;
}

/* Scanner Simulator Screen */
.sim-scanner-viewport {
    position: relative;
    flex-grow: 1;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
}

.sim-scan-beam {
    position: absolute;
    left: 0;
    top: 10%;
    width: 100%;
    height: 2px;
    background: var(--red-primary);
    box-shadow: 0 0 6px var(--red-primary);
    z-index: 30;
    opacity: 0;
}

.iphone-device.scanning .sim-scan-beam {
    opacity: 1;
    animation: sim-scan-move 1.8s infinite ease-in-out;
}

@keyframes sim-scan-move {
    0%, 100% { top: 10%; }
    50% { top: 90%; }
}

.sim-scan-brackets {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    z-index: 20;
}

.sim-scan-brackets.tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.sim-scan-brackets.tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.sim-scan-brackets.bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.sim-scan-brackets.br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.sim-scan-barcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    transform: scale(0.8);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.sim-barcode-lines {
    width: 100px;
    height: 35px;
    background-image: repeating-linear-gradient(
        90deg,
        #000 0px, #000 2px,
        #fff 2px, #fff 5px,
        #000 5px, #000 8px
    );
}

.sim-barcode-text {
    font-family: monospace;
    font-size: 0.55rem;
    color: #000;
    margin-top: 3px;
}

.sim-scan-controls {
    display: flex;
    justify-content: center;
}

.sim-btn {
    width: 100%;
    padding: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: var(--orange-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-fast);
}

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

/* Wizi Chat Panel */
.sim-chat-box {
    flex-grow: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    height: 120px;
}

.sim-chat-box::-webkit-scrollbar { display: none; }

.sim-chat-message {
    max-width: 85%;
    font-size: 0.72rem;
    line-height: 1.5;
    word-wrap: break-word;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.sim-chat-message.sim-received {
    background: rgba(27, 27, 29, 0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 92, 0, 0.15) !important;
    align-self: flex-start;
    border-top-left-radius: 4px !important;
    color: #ffffff !important;
    padding: 12px 14px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 0 0 10px rgba(255, 92, 0, 0.03);
    margin-bottom: 8px;
}

.sim-chat-message.sim-sent {
    background: linear-gradient(135deg, #ff7a00, #ff5c00) !important;
    align-self: flex-end;
    border-top-right-radius: 4px !important;
    border-radius: 16px;
    color: #000000 !important;
    font-weight: 600 !important;
    padding: 10px 12px !important;
    box-shadow: 0 4px 12px rgba(255, 92, 0, 0.25), 0 2px 4px rgba(0,0,0,0.15) !important;
    margin-bottom: 8px;
}

/* Custom Typing Indicator with status text */
.sim-typing-container {
    background: rgba(27, 27, 29, 0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 92, 0, 0.15) !important;
    align-self: flex-start;
    border-top-left-radius: 4px !important;
    border-radius: 16px;
    padding: 10px 14px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 92, 0, 0.03);
    animation: simMessageAppear 0.3s ease forwards;
    margin-bottom: 8px;
}

.sim-typing-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-typing-text {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.sim-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 10px;
}

.typing-dot {
    width: 3.5px;
    height: 3.5px;
    background: var(--orange-primary);
    border-radius: 50%;
    animation: sim-typing-bounce 1s infinite alternate;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes sim-typing-bounce {
    0% { transform: translateY(1px); opacity: 0.4; }
    100% { transform: translateY(-3px); opacity: 1; }
}

/* Avatar header inside chat bubbles */
.wizi-avatar-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizi-avatar-img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--orange-primary);
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wizi-avatar-name {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.wizi-avatar-badge {
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--orange-primary);
    background: rgba(255, 92, 0, 0.1);
    padding: 1px 5px;
    border-radius: 8px;
    border: 1px solid rgba(255, 92, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizi-message-text {
    display: block;
    word-break: break-word;
}

.sim-chat-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.sim-checkbox-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sim-checkbox-label input {
    display: none;
}

.sim-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 92, 0, 0.45) !important;
    box-shadow: 0 0 10px rgba(255, 92, 0, 0.25);
    color: #fff !important;
    transform: translateY(-1px) scale(1.03);
}

.sim-checkbox-label:has(input:checked), .sim-checkbox-label.checked {
    background: rgba(255, 92, 0, 0.2) !important;
    border-color: var(--orange-primary) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(255, 92, 0, 0.45) !important;
    transform: scale(1.06) !important;
    filter: brightness(1.15);
}

.sim-checkbox-label:active {
    transform: scale(0.92) !important;
}

.sim-chat-controls {
    display: flex;
}

/* Impatto Simulator screen */
.sim-impact-scroll {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sim-impact-scroll::-webkit-scrollbar { display: none; }

.sim-impact-hero-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sim-leaf-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(52, 199, 89, 0.1);
    color: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.sim-impact-sub {
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-weight: 700;
}

.sim-impact-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green-primary);
    margin: 2px 0 4px;
}

.sim-co2-saved-badge {
    background: rgba(52, 199, 89, 0.12);
    border: 1px solid rgba(52, 199, 89, 0.2);
    color: var(--green-primary);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.sim-impact-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sim-impact-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.sim-impact-mini-card i {
    font-size: 0.8rem;
    color: var(--orange-primary);
}

.sim-impact-mini-card strong {
    font-size: 0.55rem;
    color: var(--text-secondary);
}

.sim-impact-mini-card span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.sim-impact-milestone-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.sim-milestone-title {
    display: flex;
    justify-content: space-between;
    font-size: 0.55rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.sim-milestone-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}

.sim-milestone-bar {
    height: 100%;
    background: var(--green-gradient);
    border-radius: 2px;
}

/* Tab Panel Profile styling */
.sim-profile-scroll {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sim-profile-scroll::-webkit-scrollbar { display: none; }

.sim-profile-avatar-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}

.sim-profile-avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--orange-primary);
    box-shadow: 0 0 15px var(--orange-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    position: relative;
    margin-bottom: 8px;
}

.sim-profile-camera-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--orange-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    border: 1px solid #000;
}

.sim-profile-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.sim-profile-badge {
    background: linear-gradient(135deg, #ffe066 0%, #f5b041 100%);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.5rem;
    padding: 2px 8px;
    border-radius: 8px;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

.sim-profile-section-title {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 8px;
    margin-bottom: 4px;
}

.sim-profile-item {
    background: #1c1c1e;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
}

.sim-profile-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sim-profile-item-left i {
    font-size: 0.9rem;
    color: var(--orange-primary);
}

.sim-profile-item-left div {
    display: flex;
    flex-direction: column;
}

.sim-profile-item-left strong {
    font-size: 0.65rem;
    color: #fff;
}

.sim-profile-item-left span {
    font-size: 0.5rem;
    color: var(--text-secondary);
}

.sim-profile-toggle {
    width: 32px;
    height: 18px;
    border-radius: 9px;
    background: rgba(255,255,255,0.1);
    position: relative;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sim-profile-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: var(--transition-fast);
}

.sim-profile-toggle.active {
    background: var(--orange-primary);
}

.sim-profile-toggle.active::before {
    left: 16px;
}

.sim-upgrade-badge {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--orange-primary);
    background: rgba(243, 131, 18, 0.12);
    border: 1px solid rgba(243, 131, 18, 0.2);
    padding: 2px 6px;
    border-radius: 8px;
}

/* Bottom Tab Bar inside phone screen */
.sim-tab-bar {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 52px;
    background: rgba(22, 22, 26, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    z-index: 120;
    backdrop-filter: blur(10px);
}

.sim-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 4px 10px;
}

.sim-tab-btn i {
    font-size: 0.95rem;
}

.sim-tab-btn span {
    font-size: 0.52rem;
    font-weight: 500;
}

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

.sim-tab-btn.active {
    color: var(--orange-primary);
}



/* Home Indicator Line */
.sim-home-indicator {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    z-index: 130;
}

/* ==========================================================================
   3D Screenshots Gallery Section Styling (Interactive HUD Dashboard Grid)
   ========================================================================== */
.gallery-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.02) 0%, transparent 60%);
}

.gallery-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 80px; /* added space for staggered layout */
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

/* Glassmorphism HUD Card */
.hud-card {
    position: relative;
    background: rgba(10, 10, 12, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1025px) {
    .gallery-dashboard-grid {
        perspective: 2000px;
        gap: 32px;
    }
    
    .hud-card.pantry-card {
        transform: translateY(-30px) rotateY(6deg) rotateX(2deg);
        z-index: 2;
    }
    
    .hud-card.chef-card {
        transform: translateY(0) rotateY(0deg) scale(1.02);
        z-index: 3;
    }
    
    .hud-card.analytics-card {
        transform: translateY(30px) rotateY(-6deg) rotateX(2deg);
        z-index: 2;
    }
    
    .hud-card.pantry-card:hover {
        transform: translateY(-40px) rotateY(2deg) rotateX(0deg) scale(1.04);
        z-index: 5;
        border-color: rgba(255, 92, 0, 0.3);
        box-shadow: 0 35px 70px rgba(255, 92, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .hud-card.chef-card:hover {
        transform: translateY(-10px) rotateY(0deg) rotateX(0deg) scale(1.06);
        z-index: 5;
        border-color: rgba(139, 92, 246, 0.35);
        box-shadow: 0 35px 70px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .hud-card.analytics-card:hover {
        transform: translateY(20px) rotateY(-2deg) rotateX(0deg) scale(1.04);
        z-index: 5;
        border-color: rgba(16, 185, 129, 0.3);
        box-shadow: 0 35px 70px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.hud-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Mouse spotlight hover tracker */
.hud-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hud-card:hover .hud-spotlight {
    opacity: 1;
}

/* Glowing border highlights for cards */
.hud-card-border-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
    box-shadow: inset 0 0 20px rgba(255, 92, 0, 0.0);
}

.pantry-card:hover .hud-card-border-glow { opacity: 0.15; box-shadow: inset 0 0 20px var(--orange-primary); }
.chef-card:hover .hud-card-border-glow { opacity: 0.15; box-shadow: inset 0 0 20px #8b5cf6; }
.analytics-card:hover .hud-card-border-glow { opacity: 0.15; box-shadow: inset 0 0 20px var(--green-primary); }

.hud-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header elements */
.hud-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.hud-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hud-header-icon.orange {
    background: rgba(255, 92, 0, 0.1);
    color: var(--orange-primary);
    border: 1px solid rgba(255, 92, 0, 0.2);
}

.hud-header-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.hud-header-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green-primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hud-header-info h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hud-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 4px;
}

.hud-status-pill.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green-primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hud-status-pill.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Pulsing indicators */
.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--green-primary);
    box-shadow: 0 0 8px var(--green-primary);
    animation: blink 1.5s infinite;
}

.pulse-dot-purple {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #a78bfa;
    box-shadow: 0 0 8px #a78bfa;
    animation: blink 1.5s infinite;
}

.pulse-dot-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--green-primary);
    box-shadow: 0 0 8px var(--green-primary);
    animation: blink 1.5s infinite;
}

/* Buttons */
.hud-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.hud-btn.orange-btn {
    background: var(--orange-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 92, 0, 0.2);
}

.hud-btn.orange-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(255, 92, 0, 0.35);
}

/* --------------------------------------------------------------------------
   Card 1: Smart Pantry UI
   -------------------------------------------------------------------------- */
.hud-pantry-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-grow: 1;
}

/* Radial Progress Ring Component */
.hud-radial-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 12px 16px;
}

.hud-radial-svg-box {
    position: relative;
    width: 85px;
    height: 85px;
    flex-shrink: 0;
}

.hud-radial-svg-box svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.hud-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 7;
}

.hud-progress-fg {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-progress-fg.orange-path {
    stroke: var(--orange-primary);
    filter: drop-shadow(0 0 4px rgba(255, 92, 0, 0.4));
}

.hud-radial-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.hud-radial-number {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
}

.hud-radial-label {
    font-size: 0.58rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.hud-mini-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.hud-stat-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding-bottom: 4px;
}

.hud-stat-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hud-stat-box .stat-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
}

.hud-stat-box .stat-num.text-orange { color: var(--orange-primary); }
.hud-stat-box .stat-num.text-green { color: var(--green-primary); }
.hud-stat-box .stat-lbl { color: var(--text-secondary); }

/* Pantry Item List styling */
.hud-pantry-list {
    height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 2px;
}

.hud-pantry-list::-webkit-scrollbar {
    width: 3px;
}
.hud-pantry-list::-webkit-scrollbar-track {
    background: transparent;
}
.hud-pantry-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.hud-pantry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.hud-pantry-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.hud-pantry-item.red-alert { border-left: 2px solid var(--red-primary); }
.hud-pantry-item.yellow-alert { border-left: 2px solid var(--yellow-primary); }
.hud-pantry-item.green-alert { border-left: 2px solid var(--green-primary); }

.hud-pantry-item .item-icon {
    font-size: 0.95rem;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.hud-pantry-item.red-alert .item-icon { color: var(--red-primary); background: rgba(239, 68, 68, 0.05); }
.hud-pantry-item.yellow-alert .item-icon { color: var(--yellow-primary); background: rgba(234, 179, 8, 0.05); }
.hud-pantry-item.green-alert .item-icon { color: var(--green-primary); background: rgba(16, 185, 129, 0.05); }

.hud-pantry-item .item-details {
    flex-grow: 1;
}

.hud-pantry-item .item-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.hud-pantry-item .item-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.hud-pantry-item .item-time {
    font-size: 0.65rem;
    font-weight: 600;
}

.hud-pantry-item .item-time.text-red { color: var(--red-primary); }
.hud-pantry-item .item-time.text-yellow { color: var(--yellow-primary); }
.hud-pantry-item .item-time.text-green { color: var(--green-primary); }

.hud-pantry-item .item-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}

.hud-pantry-item .bar-fill {
    height: 100%;
    border-radius: 2px;
}

.hud-pantry-item .bar-fill.red { background-color: var(--red-primary); }
.hud-pantry-item .bar-fill.yellow { background-color: var(--yellow-primary); }
.hud-pantry-item .bar-fill.green { background-color: var(--green-primary); }

/* AI radar wave beam overlay */
.hud-analysis-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.hud-analysis-beam {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 92, 0, 0.03) 50%, rgba(139, 92, 246, 0.1) 85%, rgba(139, 92, 246, 0.25) 100%);
    border-bottom: 2px solid #8b5cf6;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
    top: 0;
    opacity: 0;
    transform: translateY(-100%);
}

.hud-card.scanning .hud-analysis-beam {
    opacity: 1;
    animation: radar-sweep 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes radar-sweep {
    0% { transform: translateY(-100%); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* AI status dot orange */
.hud-status-pill.orange {
    background: rgba(255, 92, 0, 0.1);
    color: var(--orange-primary);
    border: 1px solid rgba(255, 92, 0, 0.2);
}

.pulse-dot-orange {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--orange-primary);
    box-shadow: 0 0 8px var(--orange-primary);
    animation: blink 1.5s infinite;
}

/* Glassmorphic AI suggestion box */
.hud-ai-tip-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--text-secondary);
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    margin-top: 4px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.8);
}

.hud-ai-tip-box.active {
    background: rgba(255, 92, 0, 0.03);
    border-color: rgba(255, 92, 0, 0.18);
    box-shadow: 0 0 15px rgba(255, 92, 0, 0.05), inset 0 1px 3px rgba(255, 92, 0, 0.05);
}

.hud-ai-tip-box .tip-placeholder {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-ai-tip-box .tip-placeholder i {
    color: var(--orange-primary);
    font-size: 0.85rem;
}

.hud-ai-tip-box .tip-tag {
    display: inline-block;
    background: rgba(255, 92, 0, 0.15);
    color: var(--orange-primary);
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hud-ai-tip-box .tip-text {
    margin-bottom: 8px;
    color: #e4e4e7;
}

.hud-ai-tip-box .btn-mini-cook {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c084fc;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hud-ai-tip-box .btn-mini-cook:hover {
    background: #8b5cf6;
    color: #fff;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.hud-pantry-item.highlight {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.12);
    background: rgba(139, 92, 246, 0.02);
}

.animate-item {
    animation: item-insert-fade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes item-insert-fade {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --------------------------------------------------------------------------
   Card 2: Wizi AI Chef Cognitive Graph
   -------------------------------------------------------------------------- */
.hud-chef-graph-container {
    position: relative;
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 4px;
}

.hud-chef-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.graph-connection-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 2.5px;
    transition: stroke 0.4s ease, stroke-width 0.4s ease, filter 0.4s ease;
}

.graph-connection-line.active {
    stroke: var(--orange-primary);
    stroke-width: 3.5px;
    stroke-dasharray: 6, 4;
    animation: chef-dash-pulse 1.2s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 92, 0, 0.5));
}

@keyframes chef-dash-pulse {
    to { stroke-dashoffset: -20; }
}

.hud-node {
    position: absolute;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hud-node.ingredient-node {
    cursor: pointer;
}

.hud-node .node-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(18, 18, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.hud-node .node-emoji {
    font-size: 1.15rem;
    transition: transform 0.3s ease;
}

.hud-node .node-label {
    font-size: 0.52rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 1px;
}

/* Active states for nodes */
.hud-node.ingredient-node.active .node-wrapper {
    background: rgba(255, 92, 0, 0.08);
    border-color: var(--orange-primary);
    box-shadow: 0 0 15px rgba(255, 92, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hud-node.ingredient-node.active .node-emoji {
    transform: scale(1.15);
}

.hud-node.ingredient-node.active .node-label {
    color: #fff;
}

.hud-node.ingredient-node:hover .node-wrapper {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Central Brain Node (Wizi Assistant) */
.hud-node.central-node {
    z-index: 10;
}

.hud-node.central-node .node-wrapper {
    width: 66px;
    height: 66px;
    background: linear-gradient(135deg, #180c30 0%, #0a0414 100%);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 8px 24px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #a78bfa;
}

.hud-node.central-node i {
    font-size: 1.35rem;
    filter: drop-shadow(0 0 6px #8b5cf6);
    animation: brain-pulse 3s infinite ease-in-out;
}

.hud-node.central-node .central-label {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    color: #c084fc;
    margin-top: 2px;
}

@keyframes brain-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px #8b5cf6); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 10px #c084fc); }
}

.node-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 1px solid var(--orange-primary);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
}

.hud-node.ingredient-node.active .node-pulse {
    animation: node-ripple 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes node-ripple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Dev terminal screen */
.hud-terminal-container {
    background: #060608;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--text-secondary);
    height: 120px;
    overflow-y: auto;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.8);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 6px;
}

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

.terminal-dot.red { background: var(--red-primary); }
.terminal-dot.yellow { background: var(--yellow-primary); }
.terminal-dot.green { background: var(--green-primary); }

.terminal-title {
    font-size: 0.58rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-left: 4px;
}

.terminal-prompt {
    color: var(--orange-primary);
    font-weight: bold;
    margin-right: 4px;
}

/* --------------------------------------------------------------------------
   Card 3: Report & Analisi Impatto UI
   -------------------------------------------------------------------------- */
.hud-tabs-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 20px;
}

.hud-tab-selector-btn {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 7px 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hud-tab-selector-btn:hover {
    color: #fff;
}

.hud-tab-selector-btn.active {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hud-tab-selector-btn[data-tab="co2"].active { color: var(--green-primary); }
.hud-tab-selector-btn[data-tab="money"].active { color: var(--orange-primary); }

/* KPI elements */
.hud-kpi-container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hud-kpi-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.hud-kpi-value {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hud-kpi-unit {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.hud-kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.hud-kpi-trend.green {
    background: rgba(16, 185, 129, 0.08);
    color: var(--green-primary);
}

.hud-kpi-trend.orange {
    background: rgba(255, 92, 0, 0.08);
    color: var(--orange-primary);
}

/* Sparkline graph styling */
.hud-chart-wrapper {
    position: relative;
    margin-bottom: 22px;
}

.hud-svg-chart {
    width: 100%;
    height: 110px;
    display: block;
    overflow: visible;
}

.chart-grid-line {
    stroke: rgba(255, 255, 255, 0.018);
    stroke-dasharray: 4, 4;
}

.chart-line-path {
    fill: none;
    stroke-width: 2.5px;
    stroke-linecap: round;
    transition: opacity 0.4s ease-in-out;
    opacity: 0;
}

.chart-area-path {
    stroke: none;
    transition: opacity 0.4s ease-in-out;
    opacity: 0;
}

/* Active states for curves */
.chart-line-path.co2-path { stroke: var(--green-primary); filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.4)); }
.chart-area-path.co2-path { fill: url(#chart-area-grad-co2); }

.chart-line-path.money-path { stroke: var(--orange-primary); filter: drop-shadow(0 0 3px rgba(255, 92, 0, 0.4)); }
.chart-area-path.money-path { fill: url(#chart-area-grad-money); }

.chart-line-path.active, .chart-area-path.active {
    opacity: 1;
}

.hud-chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.58rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 6px;
    padding: 0 4px;
}

.hud-bottom-stats-row {
    display: flex;
    gap: 12px;
}

.hud-stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.hud-stat-card-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hud-stat-card-value {
    font-size: 0.95rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.hud-stat-card-value.text-green { color: var(--green-primary); }
.hud-stat-card-value.text-orange { color: var(--orange-primary); }

/* --------------------------------------------------------------------------
   Responsive Rules
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .gallery-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .gallery-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .hud-card {
        padding: 20px;
    }
}

/* Section Common Styles */
.section-header {
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

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

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    background-image: radial-gradient(rgba(255, 92, 0, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(10, 10, 12, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 28px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.4s ease, 
                border-color 0.4s ease, 
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5), 
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feature-card:hover {
    background: rgba(18, 18, 22, 0.85);
    border-color: rgba(255, 92, 0, 0.3);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 40px rgba(255, 92, 0, 0.1);
}

@media (min-width: 1025px) {
    .features-grid .feature-card:nth-child(1):hover {
        transform: translateY(-8px) rotate(-0.5deg) scale(1.01);
    }
    .features-grid .feature-card:nth-child(2):hover {
        transform: translateY(-8px) rotate(0.8deg) scale(1.02);
    }
    .features-grid .feature-card:nth-child(3):hover {
        transform: translateY(-8px) rotate(-0.8deg) scale(1.02);
    }
    .features-grid .feature-card:nth-child(4):hover {
        transform: translateY(-8px) rotate(0.5deg) scale(1.01);
    }
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(243, 131, 18, 0.1);
    color: var(--orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
    border: 1px solid rgba(243, 131, 18, 0.15);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--orange-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(243, 131, 18, 0.3);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Bento Grid Layout & Styles */
.bento-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.bento-visual-mockup {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    transition: var(--transition-smooth);
}

.feature-card:hover .bento-visual-mockup {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(340px, auto);
        gap: 24px;
    }
    
    .bento-card-wide {
        grid-column: span 2;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between;
        gap: 30px;
    }
    
    .bento-card-wide .bento-card-content {
        max-width: 50%;
    }
    
    .bento-card-standard {
        grid-column: span 1;
    }
    
    .bento-card-wide .bento-visual-mockup {
        width: 45%;
        margin-top: 0;
        height: 100%;
        min-height: 200px;
        align-self: stretch;
    }
    
    .bento-card-standard .bento-visual-mockup {
        height: 140px;
        min-height: 140px;
    }
}

/* Specific Bento Visual Mockup Styles */

/* Barcode bento visual */
.barcode-bento-visual .mini-scanner-window {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.barcode-bento-visual .mini-viewfinder {
    height: 100px;
    border: 1px dashed rgba(255, 92, 0, 0.3);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.barcode-bento-visual .mini-laser {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--orange-primary);
    box-shadow: 0 0 10px var(--orange-primary);
    left: 0;
    top: 50%;
    animation: laserScan 2.5s infinite ease-in-out;
}

@keyframes laserScan {
    0%, 100% { top: 15%; }
    50% { top: 85%; }
}

.barcode-bento-visual .mini-barcode {
    display: flex;
    gap: 2px;
    height: 50px;
    align-items: center;
    opacity: 0.75;
}

.barcode-bento-visual .barcode-line {
    background: #fff;
    width: 2px;
    height: 100%;
}
.barcode-bento-visual .barcode-line:nth-child(even) {
    width: 3px;
}
.barcode-bento-visual .barcode-line:nth-child(3n) {
    width: 1px;
}
.barcode-bento-visual .barcode-line:nth-child(5n) {
    width: 4px;
}
.barcode-bento-visual .barcode-line:nth-child(7n) {
    width: 2px;
    margin-right: 3px; /* create realistic empty space segments */
}

.barcode-bento-visual .mini-scanner-result {
    display: flex;
    flex-direction: column;
    background: rgba(255, 92, 0, 0.1);
    border: 1px solid rgba(255, 92, 0, 0.25);
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 10px;
}
.barcode-bento-visual .result-label {
    font-size: 0.62rem;
    color: var(--orange-primary);
    font-family: var(--font-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.barcode-bento-visual .result-name {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Expiry Bento visual */
.expiry-bento-visual {
    gap: 10px;
}
.mini-expiry-notif {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    width: 100%;
}
.mini-expiry-notif i {
    font-size: 1rem;
}
.mini-expiry-notif.warning i {
    color: var(--yellow-primary);
}
.mini-expiry-notif.danger i {
    color: var(--red-primary);
}
.mini-expiry-notif div {
    display: flex;
    flex-direction: column;
}
.mini-expiry-notif .notif-product {
    font-size: 0.8rem;
    font-weight: 600;
}
.mini-expiry-notif .notif-days {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Wizi Chat Bento */
.wizi-bento-visual {
    gap: 10px;
    align-items: stretch !important;
}
.mini-chat-bubble {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 10px;
    max-width: 85%;
    line-height: 1.3;
}
.mini-chat-bubble.user {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.mini-chat-bubble.assistant {
    background: rgba(255, 92, 0, 0.08);
    border: 1px solid rgba(255, 92, 0, 0.18);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    color: #fff;
}
.mini-chat-bubble.assistant i {
    color: var(--orange-primary);
    margin-right: 4px;
}

/* Planner Bento */
.planner-bento-visual .mini-calendar {
    display: flex;
    gap: 8px;
    width: 100%;
    height: 100%;
}
.planner-bento-visual .mini-cal-day {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.planner-bento-visual .day-name {
    font-size: 0.65rem;
    font-family: var(--font-accent);
    color: var(--text-secondary);
    font-weight: 700;
    text-align: center;
}
.planner-bento-visual .cal-meal {
    font-size: 0.68rem;
    padding: 4px 6px;
    border-radius: 4px;
    font-weight: 500;
}
.planner-bento-visual .cal-meal.lunch {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #34d399;
}
.planner-bento-visual .cal-meal.dinner {
    background: rgba(255, 92, 0, 0.08);
    border: 1px solid rgba(255, 92, 0, 0.15);
    color: #ff8a48;
}

/* Demo Section Layout */
.demo-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.demo-grid.reverse {
    direction: ltr;
}

.demo-grid.reverse > .demo-info {
    order: 1;
}

.demo-grid.reverse > .demo-visual {
    order: 2;
}

.demo-tag {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--orange-primary);
    display: block;
    margin-bottom: 16px;
}

.demo-tag.text-green {
    color: var(--green-primary);
}

.demo-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.demo-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

/* Barcode Scanner Visual Sandbox */
.scanner-window-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1025px) {
    .scanner-window-card {
        transform: scale(1.05) rotate(-1.5deg) translateY(-10px);
        box-shadow: 
            0 35px 70px rgba(0, 0, 0, 0.8), 
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 50px rgba(255, 92, 0, 0.03);
    }
    
    .scanner-window-card:hover {
        transform: scale(1.07) rotate(-0.5deg) translateY(-15px);
        border-color: rgba(255, 92, 0, 0.3);
        box-shadow: 
            0 45px 80px rgba(0, 0, 0, 0.9), 
            inset 0 1px 0 rgba(255, 255, 255, 0.16),
            0 0 60px rgba(255, 92, 0, 0.12);
    }
}

.scanner-window-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.scanner-header {
    background: var(--bg-secondary);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.scanner-dot.red { background: var(--red-primary); }
.scanner-dot.yellow { background: var(--yellow-primary); }
.scanner-dot.green { background: var(--green-primary); }

.scanner-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

.scanner-viewfinder {
    position: relative;
    height: 250px;
    background: #0a0a0c;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-laser {
    position: absolute;
    left: 0;
    top: 10%;
    width: 100%;
    height: 3px;
    background: var(--red-primary);
    box-shadow: 0 0 10px var(--red-primary), 0 0 20px var(--red-primary);
    z-index: 50;
    opacity: 0;
}

.scanner-window-card.scanning .scanner-laser {
    opacity: 1;
    animation: scan-move 2.2s infinite ease-in-out;
}

@keyframes scan-move {
    0%, 100% { top: 10%; }
    50% { top: 90%; }
}

.scanner-guide {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    z-index: 40;
}

.scanner-guide.tl { top: 30px; left: 50px; border-right: none; border-bottom: none; }
.scanner-guide.tr { top: 30px; right: 50px; border-left: none; border-bottom: none; }
.scanner-guide.bl { bottom: 30px; left: 50px; border-right: none; border-top: none; }
.scanner-guide.br { bottom: 30px; right: 50px; border-left: none; border-top: none; }

.simulated-product-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.scanner-window-card.scanning .simulated-product-container {
    transform: scale(1.05);
}

.simulated-barcode-label {
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.barcode-lines {
    width: 160px;
    height: 60px;
    background-image: repeating-linear-gradient(
        90deg,
        #000 0px, #000 3px,
        #fff 3px, #fff 7px,
        #000 7px, #000 12px,
        #fff 12px, #fff 14px,
        #000 14px, #000 16px,
        #fff 16px, #fff 20px
    );
}

.barcode-number {
    font-family: monospace;
    color: #000;
    font-size: 0.8rem;
    margin-top: 6px;
    letter-spacing: 0.1em;
}

.scanner-controls {
    padding: 24px;
    background: #1c1c1e;
    display: flex;
    justify-content: center;
}

/* Shelf Virtual Dispensa */
.shelf-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-top: 24px;
    backdrop-filter: blur(10px);
}

.shelf-title {
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.virtual-shelf {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 170px;
    overflow-y: auto;
    padding-right: 4px;
}

.shelf-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.shelf-item.animate-in {
    animation: fade-slide-in 0.4s forwards;
}

@keyframes fade-slide-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.shelf-item-details {
    display: flex;
    flex-direction: column;
}

.shelf-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.shelf-item-expiry {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.expiry-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-green {
    background: rgba(52, 199, 89, 0.15);
    color: var(--green-primary);
}

.status-yellow {
    background: rgba(255, 204, 0, 0.15);
    color: var(--yellow-primary);
}

.status-red {
    background: rgba(255, 69, 58, 0.15);
    color: var(--red-primary);
}

/* Interactive Expiry Timeline Layout */
.expiry-timeline-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 32px 28px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transition: var(--transition-smooth);
}

.expiry-timeline-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.expiry-timeline-wrapper h3 {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
    font-family: var(--font-heading);
}

.expiry-timeline-container {
    position: relative;
    padding: 20px 0;
    min-height: 380px;
}

.expiry-timeline-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.expiry-timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, var(--green-primary), var(--orange-primary));
    box-shadow: 0 0 10px rgba(255, 92, 0, 0.3);
    border-radius: 2px;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Timeline Markers */
.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.timeline-marker.marker-day-0 { top: 0%; }
.timeline-marker.marker-day-4 { top: 40%; }
.timeline-marker.marker-day-10 { top: 100%; }

.timeline-marker .marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #18181b;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
    position: relative;
}

.timeline-marker.active .marker-dot {
    background: var(--orange-primary);
    border-color: #fff;
    box-shadow: 0 0 10px var(--orange-primary);
    transform: scale(1.25);
}

.timeline-marker.active .marker-dot::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid var(--orange-primary);
    animation: markerRipple 2s infinite ease-out;
}

.timeline-marker.passed .marker-dot {
    background: var(--green-primary);
    box-shadow: 0 0 10px var(--green-primary);
}

.timeline-marker.passed .marker-dot::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid var(--green-primary);
    animation: markerRipple 2s infinite ease-out;
}

@keyframes markerRipple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

.timeline-marker .marker-label {
    font-size: 0.65rem;
    font-family: var(--font-accent);
    color: var(--text-secondary);
    font-weight: 700;
    margin-top: 4px;
    white-space: nowrap;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-marker.active .marker-label {
    color: #fff;
    border-color: rgba(255, 92, 0, 0.3);
}

/* Timeline Card Placement */
.timeline-staggered-cards {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 30px;
    height: 100%;
}

.timeline-card-wrapper {
    width: 44%;
    position: absolute;
    transition: var(--transition-smooth);
}

.timeline-card-wrapper.left {
    left: 0;
    top: 15%;
}

.timeline-card-wrapper.right {
    right: 0;
    top: 55%;
}

.timeline-card-wrapper .expiry-product-card:hover {
    background: rgba(255, 255, 255, 0.035);
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.timeline-card-wrapper .product-info-row {
    gap: 10px;
    margin-bottom: 8px;
}

.timeline-card-wrapper .product-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.timeline-card-wrapper .product-name {
    font-size: 0.8rem;
}

.timeline-card-wrapper .expiry-countdown {
    font-size: 0.72rem;
}

.timeline-card-wrapper .progress-bar-container {
    height: 4px;
}

@media (max-width: 576px) {
    .expiry-timeline-track {
        left: 20px;
    }
    .timeline-marker {
        left: 20px;
    }
    .timeline-card-wrapper {
        width: calc(100% - 45px);
        position: relative;
        left: 45px !important;
        right: auto !important;
        top: auto !important;
        margin-bottom: 20px;
    }
    .timeline-staggered-cards {
        padding-top: 20px;
        min-height: auto;
    }
    .expiry-timeline-container {
        min-height: auto;
    }
}

.expiry-product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    transition: border-color 0.4s ease;
}

.product-info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.product-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--orange-primary);
}

.product-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.expiry-countdown {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.4s ease;
}

.progress-bar.green { background-color: var(--green-primary); }
.progress-bar.yellow { background-color: var(--yellow-primary); }
.progress-bar.orange { background-color: #ff9500; }
.progress-bar.red { background-color: var(--red-primary); }

/* Slider Control Card */
.slider-control-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
}

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

.custom-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    margin-bottom: 10px;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}

.custom-slider::-webkit-slider-thumb:hover {
    background: var(--orange-primary);
    transform: scale(1.1);
}

.custom-slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
    background: var(--orange-primary);
}

.custom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}

.custom-slider::-moz-range-thumb:hover {
    background: var(--orange-primary);
    transform: scale(1.1);
}

.custom-slider:active::-moz-range-thumb {
    transform: scale(1.2);
    background: var(--orange-primary);
}

.slider-markers {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Wizi AI Recipe Sandbox Styles */
.wizi-sandbox-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 1025px) {
    .wizi-sandbox-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 20px;
        perspective: 1200px;
    }
}

.wizi-ingredients-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

@media (min-width: 1025px) {
    .wizi-ingredients-card {
        transform: rotateY(5deg) translateZ(0);
        z-index: 1;
        position: relative;
    }
}

.wizi-ingredients-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

@media (min-width: 1025px) {
    .wizi-ingredients-card:hover {
        transform: rotateY(0deg) translateZ(30px) scale(1.02);
        z-index: 5;
    }
}

.wizi-ingredients-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.card-instruction {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.ingredient-checkbox-btn {
    cursor: pointer;
}

.ingredient-checkbox-btn input {
    display: none;
}
.checkbox-custom-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.ingredient-checkbox-btn input:checked + .checkbox-custom-label {
    background: rgba(255, 92, 0, 0.08);
    border-color: var(--orange-primary);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 92, 0, 0.1);
}

.ingredient-checkbox-btn:hover .checkbox-custom-label {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* Wizi Chat Area */
.wizi-chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 400px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

@media (min-width: 1025px) {
    .wizi-chat-container {
        transform: rotateY(-5deg) translateZ(15px) translateX(-30px);
        z-index: 2;
        position: relative;
    }
}

.wizi-chat-container:hover,
.wizi-chat-container:focus-within {
    border-color: rgba(255, 92, 0, 0.25);
    box-shadow: 0 25px 60px rgba(255, 92, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

@media (min-width: 1025px) {
    .wizi-chat-container:hover,
    .wizi-chat-container:focus-within {
        transform: rotateY(0deg) translateZ(35px) scale(1.02) translateX(-15px);
        z-index: 5;
    }
}

.chat-header {
    background: var(--bg-secondary);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-color);
}

.wizi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange-gradient);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 10px var(--orange-glow);
}

.wizi-chat-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.wizi-status-dot {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wizi-status-dot::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--green-primary);
    box-shadow: 0 0 6px var(--green-primary);
}

.wizi-status-dot.thinking::before {
    background-color: var(--orange-primary);
    box-shadow: 0 0 6px var(--orange-primary);
    animation: blink 1s infinite;
}

.chat-messages {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-message.received {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.chat-message.sent {
    background: var(--orange-gradient);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(243, 131, 18, 0.15);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 8px 12px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: type-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes type-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* Environmental & Financial Impact section */
.impact-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

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

.impact-section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.impact-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.impact-badges {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(52, 199, 89, 0.1);
    color: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.badge-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.badge-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.impact-counters-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 36px 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.impact-counters-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.counter-card-header {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.counters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.counter-box {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.counter-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--green-primary);
}

.counter-symbol {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--green-primary);
    margin-left: 2px;
}

.counter-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.counter-card-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 32px;
    text-align: center;
}

.counter-card-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 32px;
    text-align: center;
}

/* ============================================================
   IMPACT SECTION V2 — Premium Redesign
   ============================================================ */

.impact-section {
    position: relative;
    padding: 130px 0 120px;
    overflow: hidden;
}

.impact-ambient-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(255, 92, 0, 0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.impact-v2-container {
    position: relative;
    z-index: 1;
}

/* Header */
.impact-v2-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.impact-v2-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange-primary);
    background: rgba(255, 92, 0, 0.1);
    border: 1px solid rgba(255, 92, 0, 0.25);
    border-radius: 9999px;
    padding: 6px 16px;
    margin-bottom: 20px;
}

.impact-v2-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.1;
}

.impact-v2-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* Main row: hero card + side stats */
.impact-v2-main-row {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

/* Hero card */
.impact-hero-card {
    background: rgba(18, 18, 22, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 28px;
    padding: 44px 40px 36px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: box-shadow 0.4s ease;
}

.impact-hero-card:hover {
    box-shadow: 0 0 60px rgba(255, 92, 0, 0.12);
}

.impact-hero-card-glow {
    position: absolute;
    top: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 92, 0, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.impact-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 92, 0, 0.25), rgba(255, 92, 0, 0.08));
    border: 1px solid rgba(255, 92, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--orange-primary);
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(255, 92, 0, 0.2);
}

.impact-hero-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.impact-hero-amount {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
}

.impact-hero-currency {
    font-family: var(--font-accent);
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange-primary);
    margin-top: 8px;
    line-height: 1;
}

.impact-hero-number {
    font-family: var(--font-accent);
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
}

.impact-hero-label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.impact-hero-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--orange-primary);
    background: rgba(255, 92, 0, 0.1);
    border-radius: 9999px;
    padding: 5px 12px;
    margin-bottom: 28px;
}

/* Mini area chart */
.impact-mini-chart {
    height: 60px;
    margin-top: 4px;
}

.impact-chart-svg {
    width: 100%;
    height: 100%;
}

.impact-chart-area {
    opacity: 0;
    animation: chartFadeIn 1.2s ease 0.5s forwards;
}

.impact-chart-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: chartDraw 1.4s ease 0.4s forwards;
}

@keyframes chartDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes chartFadeIn {
    to { opacity: 1; }
}

/* Side stats */
.impact-side-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.impact-stat-card {
    background: rgba(18, 18, 22, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    animation-delay: var(--delay, 0s);
}

.impact-stat-card:hover {
    border-color: rgba(255, 92, 0, 0.25);
    box-shadow: 0 0 24px rgba(255, 92, 0, 0.08);
}

.impact-stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 11px;
    background: rgba(255, 92, 0, 0.1);
    border: 1px solid rgba(255, 92, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--orange-primary);
}

.impact-stat-body {
    display: flex;
    flex-direction: column;
}

.impact-stat-value {
    font-family: var(--font-accent);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1;
}

.impact-stat-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2px;
}

.impact-stat-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Bottom stats grid */
.impact-v2-bottom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.impact-bottom-stat {
    background: rgba(18, 18, 22, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.3s ease, transform 0.3s ease;
    animation-delay: var(--delay, 0s);
}

.impact-bottom-stat:hover {
    border-color: rgba(255, 92, 0, 0.2);
    transform: translateY(-3px);
}

.impact-bottom-icon {
    font-size: 1.2rem;
    color: var(--orange-primary);
    margin-bottom: 10px;
    opacity: 0.85;
}

.impact-bottom-val {
    font-family: var(--font-accent);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
    display: inline;
}

.impact-bottom-unit {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--orange-primary);
    display: inline;
    margin-left: 3px;
}

.impact-bottom-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 500;
}

/* Bottom row: milestone + community */
.impact-v2-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Milestone card */
.impact-milestone-card {
    background: rgba(18, 18, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: box-shadow 0.4s ease;
}

.impact-milestone-card:hover {
    box-shadow: 0 0 40px rgba(255, 92, 0, 0.10);
}

.impact-milestone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.impact-milestone-trophy {
    color: var(--orange-primary);
    font-size: 1.1rem;
}

.impact-milestone-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.impact-milestone-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.impact-milestone-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.5;
}

.impact-milestone-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.impact-milestone-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    overflow: hidden;
}

.impact-milestone-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #ff5c00, #ff8c00);
    box-shadow: 0 0 10px rgba(255, 92, 0, 0.5);
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.impact-milestone-pct {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--orange-primary);
    min-width: 36px;
    text-align: right;
}

/* Badge row */
.impact-milestone-badges-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.impact-prev-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.65rem;
    color: var(--text-muted);
    flex: 1;
    min-width: 60px;
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
}

.impact-prev-badge i {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.impact-prev-badge.unlocked {
    border-color: rgba(255, 92, 0, 0.3);
    background: rgba(255, 92, 0, 0.08);
    color: var(--orange-primary);
}

.impact-prev-badge.unlocked i {
    color: var(--orange-primary);
}

/* Community card */
.impact-community-card {
    background: rgba(18, 18, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.impact-community-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.impact-community-header i {
    color: var(--orange-primary);
}

.impact-community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.impact-comm-item {
    text-align: center;
    padding: 14px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.impact-comm-val {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.impact-comm-sym {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--orange-primary);
    margin-left: 2px;
}

.impact-comm-lbl {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* Horizontal bar chart */
.impact-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.impact-bar-row {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 10px;
}

.impact-bar-lbl {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: right;
    font-weight: 500;
}

.impact-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
}

.impact-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #ff5c00, #ff8c00);
    box-shadow: 0 0 6px rgba(255, 92, 0, 0.4);
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.impact-community-footer {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ---- Simulator Impact Panel CSS ---- */
/* ---- Simulator Impact Panel — App-faithful redesign ---- */

/* Panel scroll container */
.sim-impact-scroll {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}
.sim-impact-scroll::-webkit-scrollbar { display: none; }

/* Header row */
.sim-impact-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px 8px;
    position: relative;
}

.sim-impact-back-btn {
    position: absolute;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 130, 0, 0.15);
    border: none;
    color: var(--orange-primary);
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sim-impact-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange-primary);
}

/* Hero card — warm amber style */
.sim-impact-hero-card {
    background: rgba(180, 80, 0, 0.22);
    border: 1px solid rgba(255, 130, 0, 0.28);
    border-radius: 20px;
    padding: 22px 16px 18px;
    margin: 8px 12px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Big circular leaf icon */
.sim-impact-leaf-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 130, 0, 0.18);
    border: 1.5px solid rgba(255, 130, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.3rem;
    color: var(--orange-primary);
    box-shadow: 0 0 18px rgba(255, 100, 0, 0.3);
}

/* "RISPARMIO TOTALE" label — orange */
.sim-impact-hero-lbl {
    display: block;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange-primary);
    margin-bottom: 6px;
}

/* "€ 48,70" — big orange */
.sim-impact-hero-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--orange-primary);
    margin-bottom: 12px;
    line-height: 1;
}

/* CO₂ pill below the value */
.sim-impact-co2-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 5px 12px;
    font-size: 0.56rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.sim-impact-co2-pill i {
    color: var(--orange-primary);
    font-size: 0.52rem;
}

/* Section label "DETTAGLI RISPARMIO" */
.sim-impact-section-lbl {
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    padding: 0 12px;
    margin: 4px 0 8px;
}

/* 2-column detail cards */
.sim-impact-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 12px;
    margin-bottom: 10px;
}

.sim-impact-detail-card {
    background: rgba(180, 80, 0, 0.18);
    border: 1px solid rgba(255, 130, 0, 0.22);
    border-radius: 16px;
    padding: 14px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Orange icon square (like app) */
.sim-impact-detail-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 130, 0, 0.2);
    border: 1px solid rgba(255, 130, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--orange-primary);
}

.sim-impact-detail-name {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.sim-impact-detail-val {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.sim-impact-detail-unit {
    font-size: 0.58rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

/* Milestone card — darker bg */
.sim-impact-milestone-card {
    margin: 0 12px 12px;
    background: rgba(10, 8, 5, 0.7);
    border: 1px solid rgba(255, 130, 0, 0.15);
    border-radius: 16px;
    padding: 14px 12px 0;
    overflow: hidden;
}

/* Milestone row: trophy | info | badge */
.sim-impact-milestone-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

/* Trophy box — orange square */
.sim-impact-trophy-box {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(255, 130, 0, 0.2);
    border: 1px solid rgba(255, 130, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--orange-primary);
}

.sim-impact-milestone-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sim-impact-milestone-eyebrow {
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange-primary);
}

.sim-impact-milestone-name {
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

/* Percentage pill — solid orange */
.sim-impact-milestone-badge {
    background: var(--orange-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Progress bar — flush at bottom of card */
.sim-impact-milestone-bar-bg {
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.sim-impact-milestone-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff5c00, #ff9a00);
    box-shadow: 0 0 8px rgba(255, 92, 0, 0.6);
    border-radius: 0 3px 3px 0;
}


/* ============================================================
   IMPACT V2 — RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .impact-v2-main-row {
        grid-template-columns: 1fr;
    }
    .impact-side-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .impact-v2-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .impact-v2-bottom-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .impact-side-stats {
        grid-template-columns: 1fr;
    }
    .impact-v2-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .impact-community-grid {
        grid-template-columns: 1fr;
    }
    .impact-hero-number {
        font-size: 3.2rem;
    }
    .impact-milestone-badges-row {
        gap: 6px;
    }
}


.download-section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
    background: radial-gradient(circle at 50% 50%, rgba(255, 92, 0, 0.03) 0%, transparent 60%);
}

.download-box {
    background: rgba(8, 8, 10, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.85), 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 100px rgba(255, 92, 0, 0.04);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}



.download-box:hover {
    border-color: rgba(255, 92, 0, 0.25);
    box-shadow: 
        0 40px 90px rgba(0, 0, 0, 0.9), 
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 120px rgba(255, 92, 0, 0.15);
}

.download-orb {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 100px rgba(255, 92, 0, 0.55);
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

.download-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.download-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.download-stores {
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-badge img {
    height: 72px;
    display: block;
    transition: var(--transition-smooth);
}

.store-badge:hover img {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.download-divider-v {
    width: 1px;
    height: 70px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.18), transparent);
    flex-shrink: 0;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mock-qr-code {
    background: #fff;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(255,92,0,0.25),
                0 8px 32px rgba(255,92,0,0.35),
                0 20px 48px rgba(255,92,0,0.15);
}

.qr-box {
    width: 96px;
    height: 96px;
    position: relative;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: 
        radial-gradient(#000 70%, transparent 70%),
        repeating-linear-gradient(45deg, #000, #000 6px, #fff 6px, #fff 12px);
    background-size: 100% 100%;
}

.qr-dot-cluster {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #000;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #000;
}

.qr-dot-cluster.top-left { top: 0; left: 0; }
.qr-dot-cluster.top-right { top: 0; right: 0; }
.qr-dot-cluster.bottom-left { bottom: 0; left: 0; }

.qr-logo {
    width: 24px;
    height: 24px;
    z-index: 20;
    background: #fff;
    border-radius: 5px;
    padding: 2px;
}

.qr-caption {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Footer Section */
.footer-area {
    background: #040405;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 20px;
    max-width: 420px;
}

.footer-logo {
    height: 34px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--orange-primary);
}

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

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

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
    background: rgba(255, 92, 0, 0.1);
    border-color: rgba(255, 92, 0, 0.6);
    color: #ffffff;
    transform: scale(1.08) translateY(-1px);
    box-shadow: 0 0 16px rgba(255, 92, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-socials a:active {
    transform: scale(0.92) translateY(0);
    box-shadow: 0 0 8px rgba(255, 92, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.08s ease; /* Fast click compression */
}

/* Animations Scroll Triggers */
.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity, filter;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Default fade-up if no specific reveal class is used */
.animate-on-scroll:not(.reveal-left):not(.reveal-right):not(.reveal-scale):not(.reveal-blur) {
    transform: translateY(30px);
}

.animate-on-scroll:not(.reveal-left):not(.reveal-right):not(.reveal-scale):not(.reveal-blur).active {
    opacity: 1;
    transform: translateY(0);
}

/* Slide and fade from Left */
.animate-on-scroll.reveal-left {
    transform: translateX(-40px);
}

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

/* Slide and fade from Right */
.animate-on-scroll.reveal-right {
    transform: translateX(40px);
}

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

/* Scale and fade up */
.animate-on-scroll.reveal-scale {
    transform: scale(0.94);
}

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

/* Unblur and fade up */
.animate-on-scroll.reveal-blur {
    transform: translateY(15px);
    filter: blur(8px);
}

.animate-on-scroll.reveal-blur.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Page Load Entrance Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: supportFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-delayed {
    opacity: 0;
    transform: translateY(20px);
    animation: supportFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.15s;
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-container {
        gap: 40px;
    }
    .demo-grid {
        gap: 40px;
    }
    .impact-grid {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 40px;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .main-header {
        width: 92%;
    }
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .logo-area {
        position: static;
        transform: none;
    }
    .main-nav {
        display: none;
    }
    .header-cta {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .demo-grid {
        grid-template-columns: 1fr;
    }
    .demo-grid.reverse > .demo-info {
        order: 2;
    }
    .demo-grid.reverse > .demo-visual {
        order: 1;
    }
    .wizi-sandbox-grid {
        grid-template-columns: 1fr;
    }
    .wizi-chat-container {
        height: 350px;
    }
    .impact-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .gallery-perspective-container {
        gap: 30px;
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 20px 20px 40px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .gallery-perspective-container::-webkit-scrollbar {
        display: none;
    }
    .gallery-phone-card {
        flex-shrink: 0;
        scroll-snap-align: center;
        width: 240px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    .hero-stats {
        gap: 20px;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .demo-title {
        font-size: 1.8rem;
    }
    .counter-number {
        font-size: 2.5rem;
    }
    .counter-symbol {
        font-size: 1.8rem;
    }
    .download-title {
        font-size: 2rem;
    }
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ==========================================================================
   Simulator Pantry & Wallet UI Extension
   ========================================================================== */
.sim-header-back-btn {
    position: absolute;
    left: 10px;
    background: none;
    border: none;
    color: var(--orange-primary);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.sim-header-back-btn:hover {
    color: #fff;
}

/* Pantry Search inside Simulator */
.sim-pantry-search {
    position: relative;
    margin-bottom: 12px;
    width: 100%;
}

.sim-pantry-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
}

.sim-pantry-search input {
    width: 100%;
    padding: 8px 12px 8px 30px;
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #fff;
    font-size: 0.72rem;
    font-family: var(--font-body);
}

.sim-pantry-search input:focus {
    outline: none;
    border-color: rgba(255, 92, 0, 0.3);
}

/* Pantry list items */
.sim-pantry-scroll {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sim-pantry-scroll::-webkit-scrollbar {
    display: none;
}

.sim-pantry-item {
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition-fast);
}

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

.sim-pantry-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sim-pantry-item-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--orange-primary);
}

.sim-pantry-item-info {
    display: flex;
    flex-direction: column;
}

.sim-pantry-item-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
}

.sim-pantry-item-expiry {
    font-size: 0.55rem;
    color: var(--text-secondary);
}

.sim-pantry-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.7rem;
    transition: var(--transition-fast);
}

.sim-pantry-delete-btn:hover {
    color: var(--red-primary);
}

.sim-pantry-progress-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.sim-pantry-progress-bar {
    height: 100%;
    border-radius: 2px;
}

.sim-pantry-progress-bar.green { background: var(--green-primary); }
.sim-pantry-progress-bar.yellow { background: var(--yellow-primary); }
.sim-pantry-progress-bar.orange { background: #ff9500; }
.sim-pantry-progress-bar.red { background: var(--red-primary); }

/* Wallet panel classes */
.sim-wallet-scroll {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sim-wallet-scroll::-webkit-scrollbar {
    display: none;
}

.sim-wallet-balance-card {
    background: var(--orange-gradient);
    border-radius: 18px;
    padding: 16px;
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px var(--orange-glow);
}

.sim-wallet-balance-lbl {
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.sim-wallet-balance-val {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 2px 0;
}

.sim-wallet-balance-cash {
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.95;
}

.sim-wallet-section-title {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 8px;
}

.sim-wallet-coupon-card {
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sim-coupon-details {
    display: flex;
    flex-direction: column;
}

.sim-coupon-details strong {
    font-size: 0.72rem;
    color: #fff;
}

.sim-coupon-details span {
    font-size: 0.55rem;
    color: var(--text-secondary);
}

.sim-coupon-use-btn {
    background: var(--orange-gradient);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.sim-coupon-use-btn:hover {
    filter: brightness(1.1);
}

.sim-wallet-level-card {
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sim-level-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
}

.sim-level-progress-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.sim-level-progress-bar {
    height: 100%;
    background: var(--orange-gradient);
    border-radius: 3px;
}

/* Notification dropdown inside simulator screen */
.sim-notification-center {
    position: absolute;
    top: -300px;
    left: 12px;
    right: 12px;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 10px 12px;
    z-index: 200;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-notification-center.show {
    top: 48px;
}

.sim-notif-center-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.sim-notif-center-header span {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.sim-notif-clear-btn {
    background: none;
    border: none;
    color: var(--orange-primary);
    font-size: 0.55rem;
    font-weight: 700;
    cursor: pointer;
}

.sim-notif-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
}

.sim-notif-list::-webkit-scrollbar {
    display: none;
}

.sim-notif-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sim-notif-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.sim-notif-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.48rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.sim-notif-item-title {
    font-size: 0.58rem;
    font-weight: 600;
    color: #fff;
}

.sim-notif-item-body {
    font-size: 0.52rem;
    color: var(--text-secondary);
    line-height: 1.2;
    margin-top: 1px;
}

/* ==========================================================================
   Simulator App High-Fidelity Additions
   ========================================================================== */

/* iOS Lock Screen */
.sim-lock-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 190;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 20px 40px;
    color: #fff;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    pointer-events: auto;
}

.sim-lock-screen.unlocked {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.sim-lock-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.93) 0%, rgba(4, 4, 6, 0.97) 100%);
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sim-lock-wallpaper-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    opacity: 0.16;
    filter: brightness(1.5) blur(0.3px);
    pointer-events: none;
    user-select: none;
}

.sim-lock-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 50% 42%, rgba(255, 92, 0, 0.16) 0%, transparent 65%);
    z-index: 1;
}

.sim-lock-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.sim-lock-clock {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.sim-lock-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.sim-lock-notif-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: auto;
    margin-top: 25px;
    max-height: 220px;
    overflow-y: auto;
    width: 100%;
    padding: 0 4px;
}

.sim-lock-notif-container::-webkit-scrollbar {
    display: none;
}

.sim-lock-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    color: var(--text-secondary);
    animation: sim-pulse-glow 2s infinite ease-in-out;
    cursor: pointer;
    padding: 10px;
}

@keyframes sim-pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.sim-lock-icon {
    font-size: 0.85rem;
    color: var(--orange-primary);
}

/* Floating Add Button in Pantry */
.sim-pantry-add-btn {
    position: absolute;
    bottom: 70px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--orange-gradient);
    border: none;
    color: #fff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--orange-glow);
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sim-pantry-add-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Slidable Modal - Glassmorphic Premium App Look */
.sim-slide-modal {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 92, 0, 0.15);
    border-bottom: none;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 150;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(255, 92, 0, 0.08), 0 -8px 25px rgba(0, 0, 0, 0.6);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.sim-slide-modal.show {
    bottom: 52px; /* sits right above tab-bar */
}

.sim-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.sim-modal-header span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.sim-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sim-modal-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.sim-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.sim-form-group label {
    font-size: 0.52rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Icon prefix styling for product input */
.sim-input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sim-input-icon-wrapper .input-icon {
    position: absolute;
    left: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.sim-input-icon-wrapper input[type="text"] {
    width: 100%;
    padding: 8px 10px 8px 28px; /* space for left icon */
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 0.68rem;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sim-input-icon-wrapper input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--orange-primary);
    box-shadow: 0 0 10px rgba(255, 92, 0, 0.2);
}

.sim-input-icon-wrapper input[type="text"]:focus + .input-icon {
    color: var(--orange-primary);
}

/* Custom Dropdown / Select Menu (Dispensa Modal) */
.sim-custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.sim-custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.68rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sim-custom-select-trigger:hover, .sim-custom-select-wrapper.open .sim-custom-select-trigger {
    border-color: rgba(255, 92, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.sim-custom-select-wrapper.open .sim-custom-select-trigger {
    border-color: var(--orange-primary);
    box-shadow: 0 0 10px rgba(255, 92, 0, 0.2);
}

.sim-custom-select-trigger i {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sim-custom-select-wrapper.open .sim-custom-select-trigger i {
    transform: rotate(180deg);
    color: var(--orange-primary);
}

.sim-custom-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #0a0a0c;
    border: 1.5px solid var(--orange-primary);
    border-radius: 10px;
    z-index: 200;
    max-height: 140px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 92, 0, 0.15);
}

.sim-custom-select-wrapper.open .sim-custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sim-custom-option {
    padding: 8px 12px;
    font-size: 0.68rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-custom-option:hover {
    background: var(--orange-primary);
    color: #fff;
}

.sim-custom-option.selected {
    background: rgba(255, 92, 0, 0.15);
    color: var(--orange-primary);
    font-weight: 600;
}

/* Custom Scrollbar for Options Dropdown */
.sim-custom-options::-webkit-scrollbar {
    width: 4px;
}
.sim-custom-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.sim-custom-options::-webkit-scrollbar-thumb {
    background: var(--orange-primary);
    border-radius: 10px;
}

.sim-days-slider-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Premium Gradient Save Button */
.sim-btn-add-pantry {
    margin-top: 14px;
    background: var(--orange-gradient);
    border: none;
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.7rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 92, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.sim-btn-add-pantry::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.sim-btn-add-pantry:hover::after {
    left: 100%;
}

.sim-btn-add-pantry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 92, 0, 0.45), 0 0 10px rgba(255, 92, 0, 0.3);
}

.sim-btn-add-pantry:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 2px 10px rgba(255, 92, 0, 0.2);
}

/* Pantry Item entrance animation */
@keyframes simPantryItemAppear {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sim-pantry-item.new-item-added {
    animation: simPantryItemAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Wizi Chat Input Bar - Deeply integrated premium style (ChatGPT/Claude Look) */
.sim-chat-input-bar {
    display: flex;
    align-items: center;
    background: #1B1B1D !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    padding: 6px 8px 6px 14px !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    height: 40px !important;
    box-sizing: border-box !important;
}

.sim-chat-input-bar:focus-within {
    border-color: rgba(255, 92, 0, 0.5) !important;
    box-shadow: 0 0 10px rgba(255, 92, 0, 0.25), 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.sim-chat-text-input {
    flex-grow: 1 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 0.72rem !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    height: 28px !important;
    line-height: 28px !important;
    vertical-align: middle !important;
}

.sim-chat-text-input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.72rem !important;
    opacity: 1 !important;
}

.sim-chat-mic-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.45) !important;
    cursor: pointer !important;
    font-size: 0.72rem !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.02) !important;
    box-sizing: border-box !important;
}

.sim-chat-mic-btn:hover {
    color: #ff7a00 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 92, 0, 0.2) !important;
    box-shadow: 0 0 8px rgba(255, 92, 0, 0.15) !important;
    transform: scale(1.08) !important;
}

.sim-chat-mic-btn:active {
    transform: scale(0.92) !important;
    background: rgba(255, 92, 0, 0.1) !important;
    border-color: rgba(255, 92, 0, 0.3) !important;
}

.sim-chat-mic-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff453a, #ff3b30) !important;
    border-color: transparent !important;
    animation: sim-mic-pulse 1s infinite alternate !important;
    box-shadow: 0 0 12px rgba(255, 59, 48, 0.5) !important;
}

.sim-chat-send-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: pointer !important;
    font-size: 0.72rem !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    box-sizing: border-box !important;
}

.sim-chat-send-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.05) !important;
}

.sim-chat-send-btn.has-content {
    background: linear-gradient(135deg, #ff7a00, #ff5c00) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 92, 0, 0.35), 0 2px 6px rgba(255, 92, 0, 0.2) !important;
}

.sim-chat-send-btn.has-content:hover {
    box-shadow: 0 0 15px rgba(255, 92, 0, 0.6), 0 4px 10px rgba(255, 92, 0, 0.3) !important;
    transform: scale(1.1) !important;
}

.sim-chat-send-btn:active {
    transform: scale(0.92) !important;
}

/* Dynamic ripple element inside send button */
.sim-chat-send-btn .sim-ripple {
    position: absolute !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.6) !important;
    transform: scale(0) !important;
    animation: simRippleEffect 0.5s ease-out !important;
    pointer-events: none !important;
}

@keyframes simRippleEffect {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}

@keyframes sim-mic-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4); }
    100% { transform: scale(1.1); box-shadow: 0 0 10px 4px rgba(255, 59, 48, 0.6); }
}

/* Chat Message Entrance Animations */
@keyframes simMessageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sim-chat-message {
    animation: simMessageAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.sim-recipe-card {
    animation: simMessageAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

/* Ingredient chips bounce pop animation on click */
@keyframes chipPop {
    0% { transform: scale(1); }
    50% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

.sim-checkbox-label.pop-bounce {
    animation: chipPop 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.sim-chat-speak-btn {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer !important;
    font-size: 0.6rem !important;
    margin-left: 6px !important;
    transition: all 0.2s ease !important;
}

.sim-chat-speak-btn:hover {
    color: var(--orange-primary) !important;
}

/* 3D Flippable Loyalty Card */
.sim-loyalty-card-wrapper {
    perspective: 1000px;
    width: 100%;
    height: 120px;
    margin: 8px 0 14px;
    cursor: pointer;
}

.sim-loyalty-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.sim-loyalty-card-wrapper.flipped .sim-loyalty-card-inner {
    transform: rotateY(180deg);
}

.sim-loyalty-card-front, .sim-loyalty-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 15px rgba(0,0,0,0.35);
}

.sim-loyalty-card-front {
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
}

.sim-loyalty-card-front::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(255, 92, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.card-chip {
    font-size: 0.95rem;
    color: #e5c158;
}

.card-wifi {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 0.52rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.card-holder {
    font-size: 0.58rem;
    font-weight: 600;
    color: #fff;
}

.card-points {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--orange-primary);
}

.sim-loyalty-card-back {
    background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%);
    transform: rotateY(180deg);
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sim-loyalty-card-back span {
    font-size: 0.48rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.card-barcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 6px;
    border-radius: 4px;
    width: 90%;
}

.barcode-stripe {
    width: 100%;
    height: 30px;
    background-image: repeating-linear-gradient(
        90deg,
        #000 0px, #000 1.5px,
        #fff 1.5px, #fff 4px,
        #000 4px, #000 6px
    );
}

.barcode-num {
    font-family: monospace;
    font-size: 0.48rem;
    color: #000;
    margin-top: 2px;
}

/* Locked Coupon Styling */
.sim-wallet-coupon-card.locked {
    opacity: 0.6;
    background: rgba(255,255,255,0.02);
    border-color: rgba(255, 255, 255, 0.03);
    cursor: not-allowed;
}

.sim-wallet-coupon-card.locked .sim-coupon-use-btn {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
}

.sim-wallet-coupons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Activity history list */
.sim-wallet-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sim-history-item {
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.55rem;
}

.sim-history-item span {
    color: var(--text-secondary);
}

.sim-history-item .xp-val {
    color: var(--green-primary);
    font-weight: 700;
}

/* Pantry Item Detail Panel */
.sim-detail-scroll {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sim-detail-hero-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sim-detail-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 92, 0, 0.1);
    color: var(--orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.sim-detail-hero-card h3 {
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.sim-detail-category {
    font-size: 0.58rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sim-detail-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sim-detail-info-item {
    background: #1c1c1e;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
}

.sim-detail-info-item .info-lbl {
    color: var(--text-secondary);
}

.sim-detail-info-item strong {
    color: #fff;
}

.sim-detail-tips-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 10px 12px;
}

.sim-detail-tips-card h4 {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sim-detail-tips-card p {
    font-size: 0.58rem;
    line-height: 1.35;
    color: var(--text-secondary);
}

/* Cooking Assistant styles */
.sim-cooking-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
}

.sim-cooking-progress-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sim-cooking-progress-row span {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.sim-cooking-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.sim-cooking-bar {
    height: 100%;
    background: var(--orange-gradient);
    width: 0%;
    transition: width 0.3s ease;
}

.sim-cooking-step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 16px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 10px 0;
}

.sim-cooking-step-card p {
    font-size: 0.85rem;
    line-height: 1.45;
    color: #fff;
    font-weight: 500;
}

.sim-cooking-controls-row {
    display: flex;
    gap: 10px;
}

.sim-btn-cooking-nav {
    width: 44px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.sim-btn-cooking-nav:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
}

.sim-btn-cooking-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dynamic Island expanding animation */
.sim-dynamic-island.expanding {
    animation: sim-island-expand-bounce 4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes sim-island-expand-bounce {
    0% { width: 85px; height: 20px; border-radius: 10px; }
    5% { width: 180px; height: 35px; border-radius: 18px; }
    90% { width: 180px; height: 35px; border-radius: 18px; }
    100% { width: 85px; height: 20px; border-radius: 10px; }
}

/* Dynamic Island Content showing under transition */
.sim-island-inner-content {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sim-dynamic-island.expanding .sim-island-inner-content {
    display: flex;
    opacity: 1;
}

.sim-island-icon {
    font-size: 0.68rem;
    color: var(--orange-primary);
}

.sim-island-text {
    font-size: 0.48rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Desktop-to-Phone Sync Beam animation overlay */
.sync-beam-beam {
    position: fixed;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ff5c00 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 15px 4px #ff5c00;
    z-index: 10000;
    pointer-events: none;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

/* Recipe Card inside chat */
.sim-recipe-card {
    background: rgba(255, 92, 0, 0.05);
    border: 1px solid rgba(255, 92, 0, 0.15);
    border-radius: 12px;
    padding: 10px;
    margin: 4px 0;
    align-self: flex-start;
    max-width: 85%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sim-recipe-card-title {
    font-weight: 700;
    font-size: 0.68rem;
    color: #fff;
}

.sim-recipe-card-meta {
    display: flex;
    gap: 10px;
    font-size: 0.52rem;
    color: var(--text-secondary);
}

.sim-recipe-card-btn {
    width: 100%;
    padding: 6px 8px;
    background: var(--orange-gradient);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.55rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.sim-recipe-card-btn:hover {
    filter: brightness(1.1);
}

/* ==========================================================================
   Pricing & Subscriptions Section Styles
   ========================================================================== */
.pricing-section {
    padding: 120px 0;
    position: relative;
    background: #040406;
    overflow: hidden;
}

.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 860px;
    margin: 60px auto 0;
    position: relative;
    z-index: 10;
}

.pricing-card {
    position: relative;
    background: rgba(13, 13, 17, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 2px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.75),
        0 0 50px rgba(255, 255, 255, 0.02);
    transform: translateY(-8px);
}

/* Featured (Recommended) card - Standout look */
.pricing-card.featured {
    transform: scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.65),
        0 0 45px rgba(255, 92, 0, 0.08);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    margin-left: -125%;
    margin-top: -125%;
    background: conic-gradient(
        from 0deg,
        transparent 30%,
        rgba(255, 92, 0, 0.4) 45%,
        #ff9500 50%,
        rgba(255, 92, 0, 0.4) 55%,
        transparent 70%
    );
    animation: rotateConic 8s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 
        0 40px 90px rgba(0, 0, 0, 0.85),
        0 0 80px rgba(255, 92, 0, 0.22);
}

@keyframes rotateConic {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pricing-card-content {
    background: rgba(8, 8, 11, 0.94);
    border-radius: 30px;
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 1fr 1px 1.4fr;
    gap: 48px;
    position: relative;
    z-index: 2;
}

/* Inner columns */
.pricing-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.pricing-divider-v {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.07), transparent);
    width: 1px;
}

.pricing-right-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Badges */
.plan-badge {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.popular-badge {
    background: var(--orange-gradient);
    color: #fff;
    font-family: var(--font-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    box-shadow: 0 0 15px rgba(255, 92, 0, 0.45);
    margin-bottom: 20px;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(255, 92, 0, 0.3); }
    100% { box-shadow: 0 0 22px rgba(255, 92, 0, 0.65); }
}

.plan-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 16px;
}

.plan-price .currency {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-right: 2px;
}

.plan-price .amount {
    font-family: var(--font-accent);
    font-size: 4.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 6px;
    font-weight: 500;
}

.plan-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.pricing-footer {
    width: 100%;
}

/* Buttons style */
.pricing-footer .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-footer .btn-secondary {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.pricing-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.3);
}

.pricing-footer .btn-primary {
    background: var(--orange-gradient);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 92, 0, 0.3);
}

.pricing-footer .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(255, 92, 0, 0.55);
}

.pricing-footer .btn:active {
    transform: scale(0.96);
}

/* Features detailed layout */
.features-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--orange-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.detailed-features {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.25s ease;
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 92, 0, 0.08);
    border: 1px solid rgba(255, 92, 0, 0.18);
    color: var(--orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.25s ease;
}

.feature-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Feature Item Hover interactions */
.feature-item:hover {
    transform: translateX(4px);
}

.feature-item:hover .feature-icon {
    background: var(--orange-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(255, 92, 0, 0.45);
    transform: scale(1.15) rotate(5deg);
}

.feature-item:hover .feature-name {
    color: var(--orange-primary);
}

/* Unsupported features (Plus plan) */
.feature-item.unsupported {
    opacity: 0.5;
}

.feature-item.unsupported .feature-icon {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.feature-item.unsupported:hover {
    transform: none;
}

.feature-item.unsupported:hover .feature-icon {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform: none;
}

.feature-item.unsupported:hover .feature-name {
    color: #fff;
}

/* Pricing Card Glow Border Overlay */
.pricing-card-border-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.pricing-card:hover .pricing-card-border-glow {
    opacity: 0.15;
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.4);
}

.pricing-card.featured:hover .pricing-card-border-glow {
    opacity: 0.15;
    box-shadow: inset 0 0 24px var(--orange-primary);
}

/* Pricing spotlight mouse track */
.pricing-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.05), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.pricing-card.featured .pricing-spotlight {
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 92, 0, 0.07), transparent 40%);
}

/* Active pricing states */
.pricing-card.active-plan {
    border: 1px solid var(--orange-primary);
}

.pricing-card.active-plan .plan-action-btn {
    background: rgba(255, 92, 0, 0.08) !important;
    color: var(--orange-primary) !important;
    border: 1px solid rgba(255, 92, 0, 0.35) !important;
    cursor: default;
    box-shadow: none !important;
}

.pricing-card.active-plan .plan-action-btn:hover {
    filter: none !important;
    transform: none !important;
}

/* Responsive Pricing */
@media (max-width: 900px) {
    .pricing-card-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 32px;
    }
    
    .pricing-divider-v {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.07), transparent);
    }
}

@media (max-width: 600px) {
    .plan-price .amount {
        font-size: 3.6rem;
    }
    
    .pricing-card-content {
        padding: 32px 20px;
    }
}


/* ==========================================================================
   Modals Styles (Checkout & Subscription Management)
   ========================================================================== */
.sub-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 6, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: flex-start; /* Fixes top-cutoff scrolling bug */
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.sub-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.sub-modal-container {
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    width: 100%;
    max-width: 450px; /* Slim, elegant, centered floating card */
    position: relative;
    padding: 42px 24px 24px 24px; /* More compact padding with top breathing space */
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.85),
        0 0 40px rgba(255, 92, 0, 0.03);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    overflow: visible; /* Prevent internal scrollbars or element clipping */
    max-height: none;
    margin: auto; /* Vertically centers when content is small */
}

/* Modal Inner Area without internal scrollbars */
.sub-modal-scroll-area {
    overflow: visible;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sub-modal-overlay.open .sub-modal-container {
    transform: scale(1) translateY(0);
}

.sub-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 100; /* Always accessible */
}

.sub-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

/* Flow Screens & Steps */
.sub-modal-flow-screen {
    display: none;
}

.sub-modal-flow-screen.active {
    display: block;
    animation: fadeInModalScreen 0.4s ease forwards;
}

.checkout-step-content {
    display: none;
}

.checkout-step-content.active {
    display: block;
}

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

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem; /* Resized to fit viewport nicely */
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Stepper */
.checkout-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px; /* Reduced margin */
    padding: 0 10px;
}

.checkout-stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.checkout-stepper .step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.checkout-stepper .step-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.checkout-stepper .step-line {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 16px;
    margin-top: -24px; /* Aligns with step circles */
    transition: all 0.3s ease;
}

.checkout-stepper .step.active .step-num {
    background: var(--orange-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 92, 0, 0.45);
}

.checkout-stepper .step.active .step-lbl {
    color: var(--orange-primary);
}

.checkout-stepper .step.completed .step-num {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
    font-size: 0.75rem;
}

.checkout-stepper .step.completed .step-lbl {
    color: #10b981;
}

.checkout-stepper .step-line.completed {
    background: #10b981;
}

/* Split Layout */
.checkout-split-layout {
    display: grid;
    grid-template-columns: 1fr 1px 1.1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 10px;
}

.checkout-column-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-column-title i {
    color: var(--orange-primary);
}

.checkout-layout-divider {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.07), transparent);
    width: 1px;
    align-self: stretch;
}

/* Step Content summary */
.summary-plan-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.summary-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-plan-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    font-size: 1.05rem;
}

.summary-plan-price {
    font-family: var(--font-accent);
    font-weight: 800;
    color: var(--orange-primary);
    font-size: 1.05rem;
}

.summary-plan-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.subscription-details-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.detail-row strong {
    color: #fff;
    font-weight: 600;
}

.detail-row.total {
    border-top: 1.5px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    margin-top: 4px;
    font-size: 1.0rem;
    color: #fff;
    font-weight: 800;
}

.detail-row.total span:last-child {
    font-family: var(--font-accent);
    color: var(--orange-primary);
}

/* Payment Form */
.sim-payment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.form-group-row label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.form-group-row input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
    color: #fff;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.25s ease;
}

.form-group-row input:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 12px rgba(255, 92, 0, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.form-group-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.input-icon-wrapper input {
    width: 100%;
    padding-left: 38px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
}

.payment-security-badge {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.7rem;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.payment-security-badge i {
    font-size: 1.0rem;
    color: #34d399;
    flex-shrink: 0;
}

.payment-buttons {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 12px;
    margin-top: 4px;
}

.payment-buttons .btn {
    padding: 10px 18px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

.payment-buttons .btn-secondary {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.payment-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.25);
}

.payment-buttons .btn-primary {
    background: var(--orange-gradient);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 92, 0, 0.3);
}

.payment-buttons .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 92, 0, 0.5);
}

.payment-buttons .btn:active {
    transform: scale(0.96);
}

/* Success Animation */
.success-animation-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 10px auto 16px;
}

.success-ring {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    animation: successRingGlow 2s infinite alternate;
}

.success-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    transform: scale(0.9);
    animation: scaleCheckmark 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes successRingGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
    100% { transform: scale(1.05); box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
}

@keyframes scaleCheckmark {
    from { transform: scale(0); }
    to { transform: scale(0.9); }
}

.success-plan-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px;
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.success-plan-info span:first-child {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
}

.success-plan-info .renewal-info {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Manage Subscription styles */
.current-plan-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    overflow: hidden;
}

.card-glow-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--orange-gradient);
    box-shadow: 0 0 15px var(--orange-primary);
}

.card-glow-indicator.plus {
    background: #a855f7;
    box-shadow: 0 0 15px #a855f7;
}

.current-plan-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-plan-details .lbl {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.current-plan-details .val {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.current-plan-details .price {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.current-plan-status .status-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subscription-info-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.info-row strong {
    color: #fff;
}

.manage-actions-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-text-danger {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
    padding: 6px;
}

.btn-text-danger:hover {
    color: #ef4444;
}

/* Cancel warnings */
.cancel-warning-box {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.cancel-warning-box p {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 12px;
}

.cancel-warning-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cancel-warning-box li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.cancel-warning-box li i {
    color: #ef4444;
    margin-top: 3px;
    font-size: 0.75rem;
}

.cancel-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Loading spinner in buttons */
.btn-loading {
    color: transparent !important;
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Media Queries for Pricing & Modals
   ========================================================================== */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        gap: 24px;
    }
    
    .pricing-section {
        padding: 60px 0;
    }
    
    .sub-modal-container {
        padding: 36px 20px 24px 20px;
        max-width: 440px;
    }
    
    .payment-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .payment-buttons .btn {
        width: 100%;
    }
    
    .payment-buttons .btn-secondary {
        order: 2;
    }
}

/* ==========================================================================
   FAQ Section Styles
   ========================================================================== */
.faq-section {
    padding: 100px 0;
    position: relative;
    background: #08080a;
    overflow: hidden;
}

.faq-accordion-container {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 10;
}

.faq-card {
    background: rgba(10, 10, 12, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 30px;
    cursor: pointer;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.faq-card:hover {
    background: rgba(18, 18, 22, 0.8);
    border-color: rgba(255, 92, 0, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: scale(1.01) translateY(-2px);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    user-select: none;
}

.faq-header h3 {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.faq-toggle-icon {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.faq-body p {
    margin: 0;
    padding-top: 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: -0.01em;
    transform: translateY(8px);
    transition: transform 0.3s ease;
}

/* Open state FAQ card */
.faq-card.open {
    border-color: rgba(255, 92, 0, 0.45);
    background: rgba(16, 16, 20, 0.9);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.75), 
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 40px rgba(255, 92, 0, 0.06);
    transform: scale(1.025) translateY(-4px);
    z-index: 12;
}

.faq-card.open .faq-header h3 {
    color: var(--orange-primary);
}

.faq-card.open .faq-toggle-icon {
    transform: rotate(180deg);
    color: var(--orange-primary);
}

.faq-card.open .faq-body {
    opacity: 1;
}

.faq-card.open .faq-body p {
    transform: translateY(0);
}

.faq-footer-cta {
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.faq-footer-cta p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* FAQ Corner brackets scan glow overlay (syncs with has-brackets) */
.faq-card:hover::after {
    opacity: 0.05;
}

@media (max-width: 768px) {
    .faq-card {
        padding: 20px 24px;
    }
    
    .faq-header h3 {
        font-size: 0.98rem;
    }
    
    .faq-section {
        padding: 60px 0;
    }
}

/* ==========================================================================
   Help Center & Support Form Styles
   ========================================================================== */

.support-section {
    padding: 140px 0 80px 0;
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 350px);
}

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

.support-breadcrumb {
    margin-bottom: 30px;
}

.back-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--orange-primary);
    transform: translateX(-4px);
}

.support-header {
    margin-bottom: 45px;
}

.support-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    padding-top: 0.05em;
    padding-bottom: 0.12em;
    margin-top: -0.05em;
    margin-bottom: -0.12em;
    display: inline-block;
}

.support-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.support-icon-wrapper-glow {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-icon {
    font-size: 2.8rem;
    color: #ffffff;
    z-index: 2;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
    animation: pulseIcon 3s ease-in-out infinite;
}

.support-glow-orb {
    position: absolute;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 92, 0, 0.45) 0%, rgba(255, 92, 0, 0) 70%);
    filter: blur(8px);
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.support-desc-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 15px auto 0 auto;
    line-height: 1.6;
}

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

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

.support-form-wrapper {
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
}

.support-form-card {
    background: rgba(18, 18, 24, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 45px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 92, 0, 0.02);
    position: relative;
    transition: var(--transition-smooth);
}

.support-form-card:hover {
    border-color: rgba(255, 92, 0, 0.15);
}

.required-star {
    color: var(--orange-primary);
    margin-left: 2px;
}

/* Custom Select Dropdown Styling */
.custom-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 20px 14px 45px;
    font-family: inherit;
    color: var(--text-secondary);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-user-select: none;
}

.custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.custom-select-trigger.active {
    border-color: var(--orange-primary);
    box-shadow: 0 0 10px rgba(255, 92, 0, 0.2);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.custom-select-trigger.has-value {
    color: #ffffff;
}

.custom-select-trigger.has-error {
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15) !important;
    background: rgba(239, 68, 68, 0.02) !important;
}

.custom-select-trigger.is-valid {
    border-color: rgba(16, 185, 129, 0.4) !important;
    background: rgba(16, 185, 129, 0.01) !important;
}

.trigger-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.custom-select-trigger.active .trigger-arrow {
    transform: rotate(180deg);
    color: var(--orange-primary);
}

/* Custom Options Menu */
.custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(18, 18, 24, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6), 
        0 0 20px rgba(255, 92, 0, 0.02);
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: 
        opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    padding: 6px 0;
}

.custom-select-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.custom-option {
    padding: 12px 20px 12px 45px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

.custom-option:hover {
    background: rgba(255, 92, 0, 0.08);
    color: #ffffff;
}

.custom-option.selected {
    background: rgba(255, 92, 0, 0.15);
    color: var(--orange-primary);
    font-weight: 600;
}

.custom-option.selected::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange-primary);
}

.textarea-wrapper {
    align-items: start;
}

.textarea-icon {
    top: 20px !important;
    transform: none !important;
}

.support-form-card textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 14px 14px 45px;
    font-family: inherit;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
    resize: vertical;
    min-height: 120px;
}

.support-form-card textarea:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 10px rgba(255, 92, 0, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.error-message {
    font-size: 0.78rem;
    color: var(--red-primary);
    margin-top: 4px;
    display: block;
    min-height: 18px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.error-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.support-form-card input.has-error,
.support-form-card select.has-error,
.support-form-card textarea.has-error {
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15) !important;
    background: rgba(239, 68, 68, 0.02) !important;
}

.support-form-card input.is-valid,
.support-form-card select.is-valid,
.support-form-card textarea.is-valid {
    border-color: rgba(16, 185, 129, 0.4) !important;
    background: rgba(16, 185, 129, 0.01) !important;
}

.message-char-counter {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
    transition: var(--transition-fast);
}

.message-char-counter.valid-length {
    color: var(--green-primary);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.shake-effect {
    animation: shake 0.4s ease-in-out;
}

.btn-submit {
    position: relative;
    overflow: hidden;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.btn-wide {
    width: 100%;
}

.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Success Screen Styles */
.form-success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
}

.success-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.success-icon-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.success-icon-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--green-gradient);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.success-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 420px;
}

.success-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-center-success {
    margin: 0 auto;
    max-width: 250px;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .support-section {
        padding: 100px 0 60px 0;
    }
    
    .support-header {
        margin-bottom: 40px;
    }
    
    .support-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .support-section {
        padding: 90px 0 50px 0;
    }
    
    .support-form-card {
        padding: 30px 20px;
    }
    
    .support-info-card {
        padding: 24px;
    }
}

/* Premium "Scarica Ora" Button Styles */
/* Premium "Scarica Ora" Button Styles */
.header-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #141416 0%, #09090a 100%) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 9999px !important; /* Rounded pill style */
    padding: 8px 20px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.35), 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1.1) !important; /* Elastic spring-back curve */
    transform: scale(1) translateY(0);
    cursor: pointer;
}

.header-cta .btn-primary i.btn-icon-download {
    margin-right: 8px;
    font-size: 0.82rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.header-cta .btn-primary:hover {
    background: linear-gradient(180deg, #1a1a1c 0%, #0a0a0c 100%) !important;
    border-color: rgba(255, 92, 0, 0.45) !important;
    transform: scale(1.03) translateY(-0.5px) !important;
    color: var(--orange-primary) !important; /* Text becomes brand orange */
    box-shadow: 
        0 0 20px rgba(255, 92, 0, 0.35), /* Soft brand orange glow */
        0 6px 18px rgba(0, 0, 0, 0.45), 
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.header-cta .btn-primary:hover i.btn-icon-download {
    color: var(--orange-primary) !important; /* Icon becomes brand orange */
    transform: translateY(1.5px); /* micro-animation of the download arrow */
}

.header-cta .btn-primary:active {
    transform: scale(0.95) translateY(0.5px) !important; /* Click pressure effect */
    box-shadow: 
        0 0 8px rgba(255, 92, 0, 0.2), 
        0 2px 6px rgba(0, 0, 0, 0.35), 
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: all 0.08s ease !important; /* Fast compression on click */
}

/* Premium "Google Play" Hero Button Styles */
.hero-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #141416 0%, #09090a 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 9999px !important; /* Rounded pill shape to match navbar CTA */
    padding: 12px 28px !important; /* Elegant padding */
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4), 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1.1) !important; /* Spring back */
    transform: scale(1) translateY(0);
}

.hero-actions .btn-primary i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.hero-actions .btn-primary:hover {
    background: linear-gradient(180deg, #1a1a1c 0%, #0a0a0c 100%) !important;
    border-color: rgba(255, 92, 0, 0.45) !important;
    transform: scale(1.03) translateY(-1px) !important;
    color: var(--orange-primary) !important; /* Text turns orange */
    box-shadow: 
        0 0 25px rgba(255, 92, 0, 0.35), /* Soft orange glow */
        0 8px 24px rgba(0, 0, 0, 0.5), 
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.hero-actions .btn-primary:hover i {
    color: var(--orange-primary) !important; /* Icon turns orange */
    transform: scale(1.1) translateX(1px); /* micro-animation: grow & shift right */
}

.hero-actions .btn-primary:active {
    transform: scale(0.96) translateY(0.5px) !important; /* click compression */
    box-shadow: 
        0 0 10px rgba(255, 92, 0, 0.25), 
        0 4px 12px rgba(0, 0, 0, 0.4), 
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: all 0.08s ease !important; /* fast compression on click */
}

/* Premium "Contattaci" FAQ Button Styles */
#faq-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-gradient) !important; /* Premium brand orange gradient */
    color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 9999px !important; /* Rounded pill style */
    padding: 12px 28px !important; /* Elegant padding */
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    box-shadow: 
        0 6px 18px rgba(255, 92, 0, 0.25), 
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1.1) !important; /* Spring back */
    transform: scale(1) translateY(0);
}

#faq-contact-btn i {
    margin-right: 8px;
    font-size: 0.92rem;
    color: #000000;
    transition: transform 0.3s ease;
}

#faq-contact-btn:hover {
    background: linear-gradient(135deg, #ff8c22, #ff6b18) !important; /* Slightly illuminated orange */
    border-color: rgba(255, 255, 255, 0.35) !important;
    transform: scale(1.03) translateY(-1px) !important;
    box-shadow: 
        0 0 25px rgba(255, 92, 0, 0.5), /* Glowing brand orange */
        0 8px 24px rgba(255, 92, 0, 0.3), 
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

#faq-contact-btn:hover i {
    transform: rotate(-8deg) scale(1.1) translateX(1px); /* micro-animation: tilt envelope */
}

#faq-contact-btn:active {
    transform: scale(0.96) translateY(0.5px) !important; /* click compression */
    box-shadow: 
        0 0 10px rgba(255, 92, 0, 0.2), 
        0 4px 12px rgba(255, 92, 0, 0.15), 
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transition: all 0.08s ease !important; /* fast compression on click */
}

/* Centered Form Orange Submit Button */
.btn-submit-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 30px;
    background: var(--orange-gradient);
    border: none;
    border-radius: 12px;
    color: #000000;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(255, 92, 0, 0.3);
    margin-top: 15px;
    text-transform: none;
    letter-spacing: -0.01em;
}

.btn-submit-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 92, 0, 0.5);
}

.btn-submit-orange:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 8px rgba(255, 92, 0, 0.3);
}

.btn-submit-orange:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Glow Divider Line */
.glow-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 92, 0, 0.15), transparent);
    position: relative;
    z-index: 10;
}

.glow-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange-primary), transparent);
    box-shadow: 0 0 8px var(--orange-primary);
}

/* Ambient Glow Blending Backgrounds */
#features {
    background: radial-gradient(circle at 10% 20%, rgba(255, 92, 0, 0.03) 0%, transparent 50%), var(--bg-secondary);
}

#scanner-demo {
    background: radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%), var(--bg-primary);
}

#expiry-demo {
    background: radial-gradient(circle at 20% 50%, rgba(255, 92, 0, 0.03) 0%, transparent 60%), var(--bg-secondary);
}

#wizi-demo {
    background: radial-gradient(circle at 80% 30%, rgba(255, 92, 0, 0.04) 0%, transparent 50%), var(--bg-primary);
}

#impact {
    background: radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.04) 0%, transparent 50%), var(--bg-secondary);
}

#pricing {
    background: radial-gradient(circle at 50% 80%, rgba(255, 92, 0, 0.03) 0%, transparent 50%), var(--bg-primary);
}

/* ==========================================================================
   Interactive Phone Simulator - Light Mode Redesign
   ========================================================================== */
.iphone-simulator-screen.sim-light-theme {
    background: #f8f8fa !important;
    color: #18181b !important;
}

/* Tab panels inside simulator */
.iphone-simulator-screen.sim-light-theme .sim-tab-panel {
    background: #f8f8fa !important;
}

/* iOS status bar */
.iphone-simulator-screen.sim-light-theme .sim-status-bar {
    color: #18181b !important;
}

/* App Header & sub-headers */
.iphone-simulator-screen.sim-light-theme .sim-app-header,
.iphone-simulator-screen.sim-light-theme .sim-app-header-sub {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-app-name,
.iphone-simulator-screen.sim-light-theme .sim-header-title {
    color: #18181b !important;
    font-weight: 700 !important;
}
.iphone-simulator-screen.sim-light-theme .sim-header-icons i,
.iphone-simulator-screen.sim-light-theme .sim-header-back-btn {
    color: #52525b !important;
}

/* Welcome Card styling */
.iphone-simulator-screen.sim-light-theme .sim-welcome-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-user-avatar {
    background: rgba(255, 92, 0, 0.08) !important;
    color: var(--orange-primary) !important;
    font-weight: 700 !important;
}
.iphone-simulator-screen.sim-light-theme .sim-greeting {
    color: #18181b !important;
    font-weight: 700 !important;
}
.iphone-simulator-screen.sim-light-theme .sim-subgreeting {
    color: #a1a1aa !important;
    font-weight: 600 !important;
}

/* Meter Card styling */
.iphone-simulator-screen.sim-light-theme .sim-meter-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-orange-circle-num {
    background: rgba(255, 92, 0, 0.08) !important;
    color: var(--orange-primary) !important;
    font-weight: 700 !important;
}
.iphone-simulator-screen.sim-light-theme .sim-meter-num {
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-meter-lbl {
    color: #52525b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-meter-bar-container {
    background: rgba(0, 0, 0, 0.05) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-meter-bar {
    background: linear-gradient(90deg, #ff5c00, #ff8c42) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-meter-level {
    color: #71717a !important;
}

/* Grid links styling */
.iphone-simulator-screen.sim-light-theme .sim-grid-link-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    color: #18181b !important;
    font-weight: 600 !important;
}
.iphone-simulator-screen.sim-light-theme .sim-grid-link-card:hover {
    border-color: rgba(255, 92, 0, 0.3) !important;
    background: #fafafa !important;
}

/* Wizi Promo Card styling */
.iphone-simulator-screen.sim-light-theme .sim-wizi-promo-card {
    background: linear-gradient(135deg, rgba(255, 92, 0, 0.06), rgba(255, 140, 66, 0.02)) !important;
    border: 1px solid rgba(255, 92, 0, 0.12) !important;
    box-shadow: 0 4px 12px rgba(255, 92, 0, 0.03) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-wizi-promo-card h4 {
    color: #18181b !important;
    font-weight: 700 !important;
}
.iphone-simulator-screen.sim-light-theme .sim-wizi-promo-card p {
    color: #52525b !important;
}

/* Buttons styling */
.iphone-simulator-screen.sim-light-theme .sim-btn {
    background: linear-gradient(135deg, #ff5c00, #ff8c42) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(255, 92, 0, 0.25) !important;
    border: none !important;
    font-weight: 700 !important;
}
.iphone-simulator-screen.sim-light-theme .sim-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(255, 92, 0, 0.35) !important;
}

/* Scanner Viewport elements */
.iphone-simulator-screen.sim-light-theme .sim-scan-brackets {
    border-color: var(--orange-primary) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-scan-beam {
    background: linear-gradient(to bottom, transparent, var(--orange-primary)) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-scan-barcode {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #18181b !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-barcode-lines {
    background: repeating-linear-gradient(90deg, #18181b, #18181b 2px, transparent 2px, transparent 4px) !important;
}

/* Wizi Chat screen elements */
.iphone-simulator-screen.sim-light-theme .sim-chat-box {
    background: #f8f8fa !important;
}
.iphone-simulator-screen.sim-light-theme .sim-chat-message.sim-received {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #27272a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-chat-message.sim-sent {
    background: linear-gradient(135deg, #ff5c00, #ff8c42) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(255, 92, 0, 0.15) !important;
}
.iphone-simulator-screen.sim-light-theme .wizi-avatar-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}
.iphone-simulator-screen.sim-light-theme .wizi-avatar-name {
    color: #18181b !important;
    font-weight: 700 !important;
}
.iphone-simulator-screen.sim-light-theme .wizi-avatar-badge {
    background: rgba(255, 92, 0, 0.08) !important;
    color: var(--orange-primary) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-chat-input-bar {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-chat-text-input {
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-chat-text-input::placeholder {
    color: #a1a1aa !important;
}
.iphone-simulator-screen.sim-light-theme .sim-chat-send-btn {
    background: var(--orange-primary) !important;
    color: #ffffff !important;
}
.iphone-simulator-screen.sim-light-theme .sim-chat-mic-btn {
    color: #71717a !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

/* Chat ingredients tags */
.iphone-simulator-screen.sim-light-theme .sim-checkbox-label {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #52525b !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-checkbox-label input:checked + span {
    background: rgba(255, 92, 0, 0.08) !important;
    border-color: rgba(255, 92, 0, 0.3) !important;
    color: var(--orange-primary) !important;
}

/* Dispensa (Pantry) Screen elements */
.iphone-simulator-screen.sim-light-theme .sim-pantry-search {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.iphone-simulator-screen.sim-light-theme .sim-pantry-search i {
    color: #a1a1aa !important;
}
.iphone-simulator-screen.sim-light-theme .sim-pantry-search input {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #18181b !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-pantry-search input::placeholder {
    color: #a1a1aa !important;
}
.iphone-simulator-screen.sim-light-theme .sim-pantry-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-pantry-item-name {
    color: #18181b !important;
    font-weight: 700 !important;
}
.iphone-simulator-screen.sim-light-theme .sim-pantry-item-expiry {
    color: #71717a !important;
}
.iphone-simulator-screen.sim-light-theme .sim-pantry-item-icon {
    background: rgba(255, 92, 0, 0.06) !important;
    border-color: rgba(255, 92, 0, 0.12) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-pantry-delete-btn {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-pantry-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-pantry-progress-container {
    background: rgba(0, 0, 0, 0.05) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-pantry-add-btn {
    background: linear-gradient(135deg, #ff5c00, #ff8c42) !important;
    box-shadow: 0 4px 16px rgba(255, 92, 0, 0.3) !important;
}

/* Detail Pantry Item Screen elements */
.iphone-simulator-screen.sim-light-theme .sim-detail-hero-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-detail-icon-circle {
    background: rgba(255, 92, 0, 0.08) !important;
    color: var(--orange-primary) !important;
}
.iphone-simulator-screen.sim-light-theme #sim-detail-name {
    color: #18181b !important;
    font-weight: 700 !important;
}
.iphone-simulator-screen.sim-light-theme #sim-detail-category {
    color: #71717a !important;
}
.iphone-simulator-screen.sim-light-theme .sim-detail-info-list {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-detail-info-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}
.iphone-simulator-screen.sim-light-theme .info-lbl {
    color: #52525b !important;
}
.iphone-simulator-screen.sim-light-theme #sim-detail-days {
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-detail-tips-card {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.06), rgba(255, 224, 102, 0.02)) !important;
    border: 1px solid rgba(255, 149, 0, 0.15) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-detail-tips-card h4 {
    color: #18181b !important;
    font-weight: 700 !important;
}
.iphone-simulator-screen.sim-light-theme .sim-detail-tips-card p {
    color: #52525b !important;
}

/* Cooking Assistant Screen */
.iphone-simulator-screen.sim-light-theme .sim-cooking-progress-row {
    color: #71717a !important;
}
.iphone-simulator-screen.sim-light-theme .sim-cooking-bar-bg {
    background: rgba(0, 0, 0, 0.05) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-cooking-step-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}
.iphone-simulator-screen.sim-light-theme #sim-cooking-step-text {
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-btn-cooking-nav {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #52525b !important;
}

/* Modal Add Item manually */
.iphone-simulator-screen.sim-light-theme .sim-slide-modal {
    background: #ffffff !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.06) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #18181b !important;
    font-weight: 700 !important;
}
.iphone-simulator-screen.sim-light-theme .sim-form-group label {
    color: #52525b !important;
    font-weight: 600 !important;
}
.iphone-simulator-screen.sim-light-theme .sim-input-icon-wrapper {
    background: #f4f4f5 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-input-icon-wrapper input {
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-input-icon-wrapper .input-icon {
    color: #a1a1aa !important;
}
.iphone-simulator-screen.sim-light-theme .sim-custom-select-trigger {
    background: #f4f4f5 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-custom-options {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-custom-option {
    color: #52525b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-custom-option:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-custom-option.selected {
    background: rgba(255, 92, 0, 0.08) !important;
    color: var(--orange-primary) !important;
}
.iphone-simulator-screen.sim-light-theme #sim-add-days-lbl {
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-btn-add-pantry {
    background: linear-gradient(135deg, #ff5c00, #ff8c42) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(255, 92, 0, 0.25) !important;
}

/* Impact Screen elements */
.iphone-simulator-screen.sim-light-theme .sim-impact-hero-card {
    background: linear-gradient(135deg, rgba(255, 92, 0, 0.06), rgba(255, 140, 66, 0.02)) !important;
    border: 1px solid rgba(255, 92, 0, 0.12) !important;
    box-shadow: 0 6px 20px rgba(255, 92, 0, 0.03) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-leaf-circle,
.iphone-simulator-screen.sim-light-theme .sim-impact-leaf-circle {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}
.iphone-simulator-screen.sim-light-theme .sim-impact-sub,
.iphone-simulator-screen.sim-light-theme .sim-impact-hero-lbl {
    color: #71717a !important;
}
.iphone-simulator-screen.sim-light-theme .sim-impact-value,
.iphone-simulator-screen.sim-light-theme .sim-impact-hero-val {
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-co2-saved-badge,
.iphone-simulator-screen.sim-light-theme .sim-impact-co2-pill {
    background: rgba(16, 185, 129, 0.08) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.15) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-impact-mini-card,
.iphone-simulator-screen.sim-light-theme .sim-impact-detail-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-impact-detail-icon {
    background: rgba(255, 92, 0, 0.08) !important;
    color: var(--orange-primary) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-impact-detail-name {
    color: #71717a !important;
}
.iphone-simulator-screen.sim-light-theme .sim-impact-detail-val {
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-impact-milestone-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-impact-milestone-info strong {
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-impact-milestone-eyebrow {
    color: #a1a1aa !important;
}
.iphone-simulator-screen.sim-light-theme .sim-impact-milestone-badge {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}
.iphone-simulator-screen.sim-light-theme .sim-impact-milestone-bar-bg {
    background: rgba(0, 0, 0, 0.05) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-impact-milestone-bar-fill {
    background: linear-gradient(90deg, #10b981, #34d399) !important;
}

/* Profile Screen elements */
.iphone-simulator-screen.sim-light-theme .sim-profile-avatar-circle {
    background: rgba(255, 92, 0, 0.08) !important;
    color: var(--orange-primary) !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-profile-name {
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-profile-badge {
    background: rgba(255, 92, 0, 0.08) !important;
    color: var(--orange-primary) !important;
    border: 1px solid rgba(255, 92, 0, 0.2) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-profile-section-title {
    color: #a1a1aa !important;
}
.iphone-simulator-screen.sim-light-theme .sim-profile-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-profile-item-left i {
    color: var(--orange-primary) !important;
    background: rgba(255, 92, 0, 0.08) !important;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.iphone-simulator-screen.sim-light-theme .sim-profile-item-left strong {
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-profile-item-left span {
    color: #71717a !important;
}
.iphone-simulator-screen.sim-light-theme .sim-profile-toggle {
    background: rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-profile-toggle.active {
    background: var(--orange-primary) !important;
    border-color: var(--orange-primary) !important;
}

/* Bottom Tab Bar styling */
.iphone-simulator-screen.sim-light-theme .sim-tab-bar {
    background: rgba(255, 255, 255, 0.85) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.iphone-simulator-screen.sim-light-theme .sim-tab-btn {
    color: #a1a1aa !important;
}
.iphone-simulator-screen.sim-light-theme .sim-tab-btn.active {
    color: var(--orange-primary) !important;
}

/* iOS Home indicator line */
.iphone-simulator-screen.sim-light-theme .sim-home-indicator {
    background: rgba(0, 0, 0, 0.15) !important;
}

/* iOS Lock Screen */
.iphone-simulator-screen.sim-light-theme .sim-lock-screen {
    background: #ffffff !important;
}
.iphone-simulator-screen.sim-light-theme .sim-lock-bg {
    background: radial-gradient(circle at 50% 30%, rgba(255, 92, 0, 0.08) 0%, transparent 60%), #f8f8fa !important;
}
.iphone-simulator-screen.sim-light-theme .sim-lock-clock,
.iphone-simulator-screen.sim-light-theme .sim-lock-date {
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-lock-footer {
    color: #52525b !important;
}

/* iOS Notification Center in Light Mode */
.iphone-simulator-screen.sim-light-theme .sim-notification-center {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-notif-center-header span {
    color: #18181b !important;
}
.iphone-simulator-screen.sim-light-theme .sim-notif-clear-btn {
    color: var(--orange-primary) !important;
    background: rgba(255, 92, 0, 0.08) !important;
}
.iphone-simulator-screen.sim-light-theme .sim-notif-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    color: #27272a !important;
}
.iphone-simulator-screen.sim-light-theme .sim-notif-item-app {
    color: #a1a1aa !important;
}
.iphone-simulator-screen.sim-light-theme .sim-notif-item-body {
    color: #52525b !important;
}

/* ==========================================================================
   Premium Language Switcher i18n
   ========================================================================== */
.lang-switcher-wrapper {
    position: relative;
    display: inline-block;
    z-index: 9999 !important;
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 0 14px;
    height: 32px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    z-index: 99999 !important;
    pointer-events: auto !important;
}

.lang-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 92, 0, 0.35);
    box-shadow: 0 0 12px rgba(255, 92, 0, 0.1);
}

.lang-switcher-btn i {
    font-size: 0.85rem;
}

.lang-current {
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.lang-chevron {
    font-size: 0.65rem !important;
    opacity: 0.6;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switcher-wrapper.open .lang-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(12, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 6px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(255, 92, 0, 0.04);
    opacity: 0;
    transform: scale(0.95) translateY(-5px);
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
}

/* Invisible bridge overlay to prevent dropdown closing when moving mouse across the 8px gap */
.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
    pointer-events: auto !important;
}

.lang-dropdown.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.lang-option {
    background: none;
    border: none;
    text-align: left;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    width: 100%;
}

.lang-option:hover {
    background: rgba(255, 92, 0, 0.08);
    color: #ffffff;
}

.lang-option.active {
    color: var(--orange-primary) !important;
    background: rgba(255, 92, 0, 0.04);
    font-weight: 600;
}

/* Light mode specific switcher styling override */
.sim-light-theme ~ .lang-switcher-wrapper .lang-switcher-btn,
.sim-light-theme .lang-switcher-btn {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #52525b !important;
}
.sim-light-theme ~ .lang-switcher-wrapper .lang-switcher-btn:hover,
.sim-light-theme .lang-switcher-btn:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #18181b !important;
    border-color: rgba(255, 92, 0, 0.3) !important;
}

/* Fade Transitions for translation change */
.i18n-fade {
    transition: opacity 0.12s ease-out, filter 0.12s ease-out !important;
}

.i18n-fading {
    opacity: 0 !important;
    filter: blur(2px) !important;
}






