/* --- System Design Tokens --- */
:root {
    --bg-black: #0B0B0B;
    --bg-dark-grey: #121212;
    --bg-light-grey: #F9F9F9;
    --text-white: #FFFFFF;
    --text-muted: #8E8E93;
    --text-dark: #1C1C1E;
    --brand-orange: #E75600;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-app: 'Lexend Deca', sans-serif;
}

/* --- Base Clean Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-contact-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: var(--font-app);
    transition: color 0.3s ease;
}

.nav-contact-link:hover {
    color: var(--brand-orange);
}

/* --- Navigation Dropdown --- */
.nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.nav-login-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: var(--font-app);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-login-btn:hover,
.nav-login-btn.open {
    color: var(--brand-orange);
}

.dropdown-chevron {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-login-btn.open .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 200px;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

.nav-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
align-items: center;
gap: 8px;
    padding: 10px 18px;
    color: inherit;
    text-decoration: none;
    font-family: var(--font-app);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}



.dropdown-item:hover {
    background: rgba(231, 86, 0, 0.15);
    color: var(--brand-orange);
    padding-left: 22px;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Container for top-level button */
.main-menu-wrapper {
    position: relative;
}

/* Base Master Dropdown */
.master-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
}

.master-menu.active {
    display: flex;
}

/* Item styling with flex spacing for right arrows */
.nested-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.nested-trigger .item-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Nested Submenu Wrapper positioning */
.nested-dropdown-wrapper {
    position: relative;
}

.nested-dropdown-menu {
    position: absolute;
    top: 0;
    right: 100%; 
    min-width: 160px;
    display: none;
    flex-direction: column;
    /* Updated background & blur for dark theme consistency */
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Reveal nested menu on hover or active class */
.nested-dropdown-wrapper:hover > .nested-dropdown-menu,
.nested-dropdown-menu.active {
    display: flex;
}

/* --- Utility Typography & Components --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
}

p {
font-family: var(--font-app);    
font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;             /* Increased to keep rendering sharp on OLED screens */
    letter-spacing: -0.01em;       /* Premium, slightly compressed modern editorial spacing */
    line-height: 1.5;             /* Tighter vertical coherence for clean layout grouping */
}

.text-gradient {
    color: var(--brand-orange);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
    border-radius: 30px;
    font-size: 0.85rem;
    font-family: var(--font-app);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.section-label {
    display: block;
    font-family: var(--font-app);
    color: var(--brand-orange);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

/* --- Interactive Elements --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-app);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 12px;
}

.btn-secondary:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

/* --- Navigation --- */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(11, 11, 11, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-logo span {
    font-family: var(--font-app);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 140px 60px 80px 60px;
    gap: 40px;
    max-width: 1500px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.4rem; /* Perfectly optimized to keep sentences on one line on desktop */
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.store-badge img {
    height: 56px;
    transition: transform 0.3s ease;
}

.store-badge:hover img {
    transform: scale(1.03);
}

/* Hero Devices */
.hero-visual {
    display: flex;
width: 100%;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    position: relative;
    width: 324px;  /* Width match */
    height: 576px; /* Perfect, uncropped mathematically aligned 9:16 screen dimension */
    background: #000000;
    border: 2px solid #1C1C1E;
    border-radius: 48px;
    box-shadow: 0 30px 100px rgba(231, 86, 0, 0.15), 0 20px 50px rgba(0,0,0,0.8);
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-screen-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #251013 0%, var(--bg-black) 100%);
}

.fallback-app-logo {
    width: 80px;
    height: auto;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--brand-orange);
    border-radius: 50%;
    animation: corePulse 3s infinite ease-in-out;
    opacity: 0.3;
}

/* --- Manifesto Section --- */
.manifesto {
    padding: 160px 0;
    border-top: 1px solid var(--border-color);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a premium parallax scrolling depth */
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.manifesto-sticky h2 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--text-white);
}

.manifesto-body .lead {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-white);
    letter-spacing: -0.02em;      /* Deeper letter compression on larger display fonts */
    margin-bottom: 24px;
    line-height: 1.4;
}

.manifesto-body p {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

/* --- Pillar Blocks --- */
.pillar {
    padding: 140px 0;
    background-color: var(--bg-light-grey);
    color: var(--text-dark);
}

.pillar.dark {
    background-color: var(--bg-black);
    color: var(--text-white);
}

.pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px;
}

.pillar.reverse .pillar-grid {
    direction: rtl;
}
.pillar.reverse .pillar-content {
    direction: ltr;
}

.accent-text {
    font-family: var(--font-app);
    color: var(--brand-orange);
    font-weight: 500;
    font-size: 1rem;
    display: block;
    margin-bottom: 16px;
}

.pillar-content h3 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.pillar-content p {
    color: inherit;
    opacity: 0.8;
}

/* Graphical Placeholders inside Pillars */
.pillar-visual {
    height: 480px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pillar.dark .pillar-visual {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
}

.image-overlay-card {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    font-family: var(--font-app);
    border-radius: 40px;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Loyalty System Card Visual */
.loyalty-visual {
    background: radial-gradient(circle at top right, #251013, #0b0b0b) !important;
    direction: ltr;
}

.goldies-balance-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 16px;
    width: 320px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.card-lbl {
    font-family: var(--font-app);
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.balance-num {
    font-size: 2.5rem;
    font-family: var(--font-display);
    color: var(--text-white);
    margin: 12px 0;
    font-weight: 800;
}

.g-symbol {
    color: var(--brand-orange);
}

.card-footer {
    font-size: 0.85rem;
    color: var(--brand-orange);
    display: block;
}

/* AI Elements tag clouds */
.custom-ai-visual .meta-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 40px;
    justify-content: center;
}

.meta-tag-cloud .tag {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: var(--font-app);
    font-size: 0.9rem;
}

.meta-tag-cloud .tag.active {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: var(--text-white);
}

/* --- Cycle Loop Section --- */
.cycle-section {
    padding: 160px 0;
    background-color: var(--bg-dark-grey);
    border-top: 1px solid var(--border-color);
}

.center-head {
    text-align: center;
    margin-bottom: 80px;
}

.center-head h2 {
    font-size: 3.5rem;
}

.flow-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.step {
    background: var(--bg-black);
    padding: 48px 36px;
    border-radius: 4px;
    border-left: 3px solid var(--brand-orange);
}

.step-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--brand-orange);
    margin-bottom: 20px;
}

.step h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* --- Footer Area --- */
.footer {
    background-color: var(--bg-black);
    padding: 80px 0 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.footer-logo {
    height: 48px;
    margin-bottom: 16px;
}

/* Master container managing the 3 stacked rows */
.footer-links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px; /* Spacing between the 3 lines */
}

/* Base style for each specific line */
.footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px; /* Spacing between side-by-side elements like Facebook & Instagram */
}

/* Global typography rule for all footer links */
.footer-row a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: var(--font-app);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

/* Overriding the font weight on Contact Us while keeping base link rules */
.footer-row a.footer-contact-link {
    font-weight: 500;
}

/* Global hover effect - applies to ALL links, including Contact Us */
.footer-row a:hover {
    color: var(--brand-orange);
}

/* Cleaned up inline SVG parameters into a formal CSS class */
.social-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.footer-copy p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Core Keyframe Animations --- */
@keyframes corePulse {
    0% { transform: scale(0.9); opacity: 0.2; }
    50% { opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* --- Structural Responsiveness --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 160px;
    }
    .hero-subtitle {
        margin: 0 auto 40px auto;
    }
    .hero-cta {
        justify-content: center;
    }
    .manifesto-grid, .pillar-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pillar.reverse .pillar-grid {
        direction: ltr;
    }
    .flow-timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* --- Navigation (Re-architected for Absolute Transparency) --- */
    .nav-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px !important; 
        z-index: 1000;
        background: rgba(11, 11, 11, 0.85) !important; /* Premium dark transparency safety backup */
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transform: translateY(0) !important; /* FIXED: Prevents header from hiding off-screen */
        animation: none !important; 
    }
    .nav-actions {
        display: none; 
    }
    .container {
        padding: 0 24px;
    }

.nav-contact-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: var(--font-app);
    transition: color 0.3s ease;
}

.nav-contact-link:hover {
    color: var(--brand-orange);
}
 
    /* FIXED: Viewport scaling protection layer for device */
    .device-mockup {
        width: 280px !important;
        height: 498px !important;
        margin: 0 auto !important; /* Centers video canvas nicely on stacked mobile profiles */
    }

    /* FIXED: Removed invalid justify-content parameter */
    .hero {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; 
        text-align: left !important;        
        padding-left: 24px !important;
        padding-right: 24px !important;
        gap: 32px !important;
    }

    .hero-content {
        width: 100% !important;
    }

    .hero-title {
        font-size: 2.2rem !important; 
        line-height: 1.2 !important;
        width: 100% !important;
    }

    .hero-cta {
        justify-content: flex-start !important; 
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .store-badge img {
        height: 48px !important;
        width: auto !important;
    }

    .manifesto {
        padding: 80px 0 !important; 
    }

.manifesto .container {
        padding: 0 24px !important; /* Perfect left/right padding lock matching the hero */
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .manifesto .pillar-content {
        max-width: 100% !important;
        padding: 0 !important;
        text-align: left !important; 
    }

.manifesto h3 {
        font-size: 2.5rem !important; /* Scaled down slightly so large text doesn't overflow */
        line-height: 1.15 !important;
        word-break: break-word; /* Safety break property wrapper */
    }

    .pillar {
        padding: 80px 0 !important; 
    }

    .pillar-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; 
        gap: 40px !important;
    }

    .pillar.reverse .pillar-grid {
        direction: ltr !important; 
    }

    .pillar-content h3 {
        font-size: 2.5rem !important; 
        line-height: 1.15 !important;
    }

    .pillar-visual {
        width: 100% !important;
        height: auto !important;
        padding: 24px 0 !important;
        background-color: transparent !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-start !important; 
    }

    .goldies-balance-card {
        width: 100% !important;
        max-width: 320px !important; 
        text-align: left !important; 
    }
    
    .balance-num {
        font-size: 2rem !important;
    }

    /* NEW MOBILE OPTIMIZATION: Fixes process timeline stacking limits */
    .cycle-section {
        padding: 80px 0 !important;
    }
    .center-head {
        text-align: left !important; /* Left alignment consistency rule */
        margin-bottom: 40px !important;
    }
    .center-head h2 {
        font-size: 2.6rem !important;
    }
    .flow-timeline {
        gap: 24px !important;
    }
    .step {
        padding: 32px 24px !important;
    }
}

/* --- 1. Pure Initialization Entry Points --- */
.hero-content {
    animation: luxuryRevealUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-visual {
    animation: luxuryBlurIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.mockup-video-render {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background-color: #000000; 
}

/* --- 2. Kinetic Scroll-Driven Revelations --- */
@supports (animation-timeline: view()) {
    .reveal-on-scroll {
        animation: revealOnScrollLinear both;
        animation-timeline: view();
        animation-range: entry 10% cover 40%;
    }
    
    .pillar-visual {
        animation: subtleParallax both;
        animation-timeline: view();
        animation-range: exit -20% entry 120%;
    }
}

/* Fallback for legacy browsers without scroll-timeline support */
@media not (animation-timeline: view()) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* --- 3. Premium Interactive Micro-States --- */
.btn, .store-badge, .tag {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Hover scales for structural graphics modules */
.pillar-visual:hover {
    box-shadow: 0 30px 60px rgba(231, 86, 0, 0.15);
    border-color: rgba(231, 86, 0, 0.4);
    transform: scale(1.01);
}

.goldies-balance-card {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.pillar-visual:hover .goldies-balance-card {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Staggered text entry lines on timeline cards */
.step {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.step:hover {
    transform: translateY(-8px);
    background-color: var(--bg-dark-grey);
    border-left-color: var(--text-white);
}

/* --- 4. Core Animation Keyframe Engines --- */
@keyframes luxuryRevealUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes luxuryBlurIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(30px);
        filter: blur(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes revealOnScrollLinear {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleParallax {
    from { transform: translateY(20px); }
    to { transform: translateY(-20px); }
}

/* ==========================================================================
   --- Track Order Page Specific Layer Extension ---
   ========================================================================== */

.track-wrapper {
    min-height: 100vh;
    padding-top: 160px;
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(circle at 50% 30%, rgba(231, 86, 0, 0.05) 0%, transparent 60%);
}

.track-card {
    width: 100%;
    max-width: 680px;
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 56px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.track-header {
    text-align: center;
    margin-bottom: 48px;
}

.track-header h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-top: 8px;
}

.track-timeline {
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
}

/* Structural Connecting Timeline Vector Line */
.track-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: linear-gradient(to bottom, var(--brand-orange) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.track-step {
    display: flex;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.track-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-black);
    border: 1px solid var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(231, 86, 0, 0.2);
    transition: all 0.4s ease;
}

.track-step:hover .track-node {
    background: var(--brand-orange);
    transform: scale(1.05);
}

.track-body {
    padding-top: 6px;
    flex: 1;
}

.track-body p {
    color: var(--text-white);
    opacity: 0.9;
}

/* Internal Dynamic Embedded Asset Elements */
.track-brand-embed {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 16px;
}

.embed-logo {
    height: 32px;
    width: auto;
}

.embed-wordmark {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.track-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.track-badge-row .store-badge img {
    height: 48px; /* Perfectly structured touch targeted alignment */
}

/* Mobile Structural Adaptability Patch overrides */
@media (max-width: 768px) {
    .track-wrapper {
        padding-top: 120px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .track-card {
        padding: 32px 20px;
    }

    .track-header h1 {
        font-size: 1.8rem !important;
        text-align: left;
    }
    
    .track-header .section-label {
        text-align: left;
    }

    .track-timeline::before {
        left: 16px;
    }

    .track-node {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .track-step {
        gap: 16px;
    }
}

/* ==========================================================================
   --- Contact Subpage Specific Inputs Layout Extension ---
   ========================================================================== */

.contact-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Stack the spacer and the card vertically */
    align-items: center;
    justify-content: center;
    padding-bottom: 100px;
box-sizing: border-box;
}

.desktop-header-spacer {
    display: block;
    height: 120px; /* Physically pushes the contact card down past any hidden header dimensions */
    width: 100%;
}

.contact-card {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;           /* Guarantees clean center-anchored geometry */
    background: rgba(18, 18, 18, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 60px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 48px;
}

.contact-header p {
    max-width: 600px;
    margin: 0 auto;
}

.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-row.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.luxury-form label {
    font-family: var(--font-app);
    font-size: 0.85rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

/* Master Input Element Control Reset Base arrays */
.luxury-form input[type="text"],
.luxury-form input[type="email"],
.luxury-form input[type="password"],
.luxury-form select,
.luxury-form textarea {
    width: 100%;
    background: rgba(11, 11, 11, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 14px 18px;
    font-family: var(--font-app);
    font-size: 0.95rem;
    color: var(--text-white);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.luxury-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238E8E93'><path d='M1 4l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 40px;
    cursor: pointer;
}

.luxury-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* Interactive Element Focus State glow matrix rings */
.luxury-form input:focus,
.luxury-form select:focus,
.luxury-form textarea:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 12px rgba(231, 86, 0, 0.15);
    background: #121212;
}

.char-countdown {
    font-family: var(--font-app);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.submit-btn-override {
    width: fit-content;
    padding: 16px 40px !important;
    cursor: pointer;
    border: none;
    margin-top: 12px;
}

/* Mobile Structural Form Adaptation overrides pass rules */
@media (max-width: 768px) {
    .contact-wrapper {
        padding-top: 120px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .contact-card {
        padding: 32px 20px;
    }
    .form-row.split {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .submit-btn-override {
        width: 100%;
    }
.desktop-header-spacer {
        height: 20px; /* Shrinks completely on mobile so your pristine layout stays untouched */
    }
}

/* --- Login Module & Auth Extensions --- */
.auth-card {
    max-width: 520px;
}

.auth-sso-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.sso-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 20px;
    color: var(--text-white);
    font-family: var(--font-app);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sso-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.sso-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.apple-sso-btn {
    display: none; /* Dynamic OS Check in JS */
    background: #FFFFFF;
    color: #000000;
}

.apple-sso-btn:hover {
    background: #E5E5E5;
    color: #000000;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-family: var(--font-app);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 16px;
}

.auth-views-container {
    position: relative;
}

.auth-view {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.auth-view.active {
    display: block;
    opacity: 1;
}

.auth-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.auth-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-app);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    text-decoration: underline;
}

.auth-link-btn:hover {
    color: var(--brand-orange);
}

.disclaimer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 32px;
    line-height: 1.5;
}

.disclaimer-link {
    color: var(--text-white);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.disclaimer-link:hover {
    color: var(--brand-orange);
}

/* --- High-End Terms Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 900px;
    height: 85vh;
    background: var(--bg-dark-grey);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

.modal-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 11, 11, 0.5);
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.modal-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--font-app);
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
}

.modal-body {
    flex: 1;
    width: 100%;
    background: #FFFFFF;
    border: none;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Luxury "Open App" Button Styling --- */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 38px;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
text-decoration: none;
    
    /* Dynamic Brand Orange Gradient */
    background: linear-gradient(135deg, #ff7a2d 0%, #e75600 50%, #c44700 100%);
    background-size: 200% auto;
    
    border: none;
    border-radius: 40px;
    cursor: pointer;
    overflow: hidden;
    
    /* Deep Ambient Shadow tuned to #E75600 */
    box-shadow: 0 10px 25px -5px rgba(231, 86, 0, 0.45),
                0 0 1px 1px rgba(255, 255, 255, 0.4) inset;
                
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Subtle Metallic Shimmer Reflection */
.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 55%
    );
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.8s ease;
text-decoration: none;
}

/* Hover & Active States tuned to #E75600 */
.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 18px 35px -5px rgba(231, 86, 0, 0.5),
                0 0 15px rgba(231, 86, 0, 0.3);
}

.btn-primary:hover::before {
    transform: rotate(30deg) translateX(100%);
text-decoration: none;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -4px rgba(231, 86, 0, 0.4);
text-decoration: none;
}

/* ==========================================================================
   --- Contents & Article Page Extension ---
   ========================================================================== */

.contents-wrapper {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 100px;
}

.contents-header {
    text-align: center;
    margin-bottom: 60px;
}

.contents-header h1 {
    font-size: 3rem;
    margin-top: 8px;
    margin-bottom: 16px;
}

.contents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.content-card {
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
}

.content-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-orange);
    box-shadow: 0 20px 40px rgba(231, 86, 0, 0.15);
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.content-type-badge {
    font-family: var(--font-app);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(231, 86, 0, 0.15);
    color: var(--brand-orange);
    border: 1px solid rgba(231, 86, 0, 0.3);
}

.content-date {
    font-family: var(--font-app);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.content-card h3 {
    font-size: 1.35rem;
    color: var(--text-white);
    line-height: 1.3;
    margin-bottom: 12px;
}

.content-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.card-read-more {
    font-family: var(--font-app);
    font-size: 0.85rem;
    color: var(--brand-orange);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Article View Styles --- */
.article-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 140px;
    padding-bottom: 100px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-app);
    font-size: 0.9rem;
    margin-bottom: 32px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--brand-orange);
}

.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 32px;
}

.article-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-top: 12px;
    margin-bottom: 16px;
    color: var(--text-white);
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-app);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Article Body Typography */
.article-content {
    font-family: var(--font-body);
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.88);
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--text-white);
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content h3 {
    font-size: 1.3rem;
    color: var(--brand-orange);
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    margin-bottom: 28px;
    padding-left: 24px;
}

.article-content li {
    font-family: var(--font-app);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    line-height: 1.6;
}

.article-content li strong {
    color: var(--text-white);
}

.article-content hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}

/* Luxury Table Styling */
.article-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 36px 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: var(--font-app);
    background: rgba(18, 18, 18, 0.4);
}

.article-table th {
    background: rgba(231, 86, 0, 0.1);
    color: var(--brand-orange);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.article-table tr:last-child td {
    border-bottom: none;
}

.article-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem !important;
    }
    .contents-wrapper, .article-wrapper {
        padding-top: 100px;
    }
    .article-content p {
        font-size: 1rem;
    }
}

/* --- Homescreen & Brands Component Extensions --- */
.app-screen-layout {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 140px 24px;
}

.screen-header {
    margin-bottom: 28px;
}

.screen-header h1 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 4px;
    line-height: 1.1;
}

.screen-header .subheading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-app);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.screen-header .subheading::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--brand-orange);
}

.favorite-cards-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 480px; /* Constrains max width so the 1:1 video isn't overly huge on large displays */
    margin: 0 auto;
}

.brand-card {
    background: #FAFAFA;
    border-radius: 20px;
    overflow: hidden;
    color: var(--text-dark);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    display: flex;
transition: box-shadow 0.4s ease, transform 0.4s ease;
    flex-direction: column;
}

.brand-card.in-focus {
            box-shadow: 0 18px 35px -5px rgba(231, 86, 0, 0.5),
                        0 0 15px rgba(231, 86, 0, 0.3) !important;
        }

.card-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
flex-shrink: 0;
}

.card-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.volume-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease;
}

.volume-btn:hover {
    transform: scale(1.08);
}

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.brand-meta {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.brand-ratings {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.stars-row {
    color: #FF9500;
    font-size: 1rem;
    letter-spacing: -1px;
}

.review-count {
    font-family: var(--font-app);
    font-size: 0.75rem;
    color: #666;
}

.web-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--brand-orange);
    gap: 2px;
}

.web-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-orange);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

        .web-link-icon,
        .action-circle-icon {
            transition: transform 0.2s ease !important;
        }

        .web-link-icon:hover,
        .action-circle-icon:hover {
            transform: scale(1.08) !important;
        }

.web-link span {
    font-family: var(--font-app);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dark);
}

.brand-body-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.rewards-left-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 0;
    gap: 8px;
}

.goldies-badge-logo {
    height: 22px;
    object-fit: contain;
    margin-bottom: 2px;
}

.membership-tier {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--brand-orange);
    line-height: 1.1;
}

.reward-balance {
    font-family: var(--font-app);
    font-size: 0.7rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.actions-horizontal-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
}

.action-circle-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 4px;
}

.action-circle-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-orange);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(231, 86, 0, 0.2);
}

.action-circle-link span {
    font-family: var(--font-app);
    font-size: 0.7rem;
    color: var(--text-dark);
    font-weight: 500;
}

.promo-banner-wrapper {
    height: 100%;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.promo-banner-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Fixed Bottom Floating Tab Bar */
.app-fixed-footer {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 440px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 10px 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    gap: 4px;
}

.tab-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFF;
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-item span {
    font-family: var(--font-app);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-white);
}

.nav-signout-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-app);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-signout-btn:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

@media (max-width: 480px) {
    .app-screen-layout {
        padding-top: 100px;
    }
    .brand-body-row {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

.card-video-wrapper video,
.card-video-wrapper .autoplay-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops video edges to fill the 1:1 box perfectly */
}

/* ==========================================================================
   --- Modern Dark Luxury Orders Modal ---
   ========================================================================== */
.orders-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.orders-sheet-container {
    width: 100%;
    max-width: 500px;
    height: 88vh;
    background: linear-gradient(180deg, #161618 0%, #0D0D0E 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 24px 20px 20px 20px;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.9),
                0 0 1px 1px rgba(255, 255, 255, 0.05) inset;
}

/* Subtle pull indicator bar at the top for modern touch feel */
.orders-sheet-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.orders-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.orders-close-btn:hover {
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.4);
    color: #FF453A;
    transform: scale(1.05);
}

.orders-scroll-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
    padding-bottom: 24px;
    padding-right: 4px;
}

/* Custom Sleek Scrollbar */
.orders-scroll-list::-webkit-scrollbar {
    width: 4px;
}
.orders-scroll-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Dark Luxury Card Styling */
.order-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.order-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(231, 86, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 
                0 0 15px rgba(231, 86, 0, 0.15);
}

.order-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.order-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.order-card-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-product-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.01em;
}

.order-business-name {
    font-family: var(--font-app);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--brand-orange);
}

.order-datetime {
    font-family: var(--font-app);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Status Indicators with Glowing Accents */
.order-status-center {
    text-align: center;
    font-family: var(--font-app);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
}

.status-new {
    color: #FF9F0A;
    border: 1px solid rgba(255, 159, 10, 0.25);
    background: rgba(255, 159, 10, 0.08);
}
.status-complete {
    color: #30D158;
    border: 1px solid rgba(48, 209, 88, 0.25);
    background: rgba(48, 209, 88, 0.08);
}
.status-processing {
    color: #0A84FF;
    border: 1px solid rgba(10, 132, 255, 0.25);
    background: rgba(10, 132, 255, 0.08);
}

/* Dynamic Glowing Progress Bars */
.order-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-app);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.order-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.order-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.fill-new {
    background: linear-gradient(90deg, #E75600 0%, #FF9F0A 100%);
    box-shadow: 0 0 8px rgba(255, 159, 10, 0.4);
    width: 20%;
}
.fill-complete {
    background: linear-gradient(90deg, #30D158 0%, #63E6E2 100%);
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.4);
    width: 100%;
}
.fill-processing {
    background: linear-gradient(90deg, #0A84FF 0%, #5E5CE6 100%);
    box-shadow: 0 0 8px rgba(10, 132, 255, 0.4);
    width: 35%;
}
/* Embedded page-specific styling extensions */
        .dashboard-wrapper {
            padding-top: 140px;
            padding-bottom: 100px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .dash-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .customer-count-card {
            background: rgba(18, 18, 18, 0.6);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 20px 28px;
            backdrop-filter: blur(20px);
        }

        .customer-count-card .count-label {
            font-family: var(--font-app);
            font-size: 0.85rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .customer-count-card .count-val {
            font-family: var(--font-display);
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--text-white);
            line-height: 1.1;
            margin-top: 4px;
        }

        .search-section {
            background: rgba(18, 18, 18, 0.6);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 32px;
            backdrop-filter: blur(20px);
            margin-bottom: 40px;
        }

        .search-field-wrapper {
            position: relative;
            max-width: 500px;
        }

        .search-field-wrapper input {
            width: 100%;
            background: rgba(11, 11, 11, 0.8);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            padding: 14px 18px;
            font-family: var(--font-app);
            font-size: 0.95rem;
            color: var(--text-white);
            outline: none;
            transition: all 0.3s ease;
        }

        .search-field-wrapper input:focus {
            border-color: var(--brand-orange);
            box-shadow: 0 0 12px rgba(231, 86, 0, 0.15);
        }

        .search-result-card {
            margin-top: 24px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
        }

        .result-user-info {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .result-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(231, 86, 0, 0.2);
            color: var(--brand-orange);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--font-display);
            font-weight: 700;
        }

        .membership-section {
            background: rgba(18, 18, 18, 0.6);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 32px;
            backdrop-filter: blur(20px);
        }

        .toggle-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 24px;
            border-bottom: 1px solid var(--border-color);
        }

        /* Pure CSS Toggle Switch */
        .switch {
            position: relative;
            display: inline-block;
            width: 52px;
            height: 28px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: rgba(255, 255, 255, 0.1);
            transition: .4s;
            border-radius: 34px;
            border: 1px solid var(--border-color);
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: var(--brand-orange);
        }

        input:checked + .slider:before {
            transform: translateX(24px);
        }

        .program-settings-content {
            margin-top: 32px;
        }

        .program-meta-row {
            display: flex;
            align-items: center;
            gap: 32px;
            margin-bottom: 36px;
            flex-wrap: wrap;
        }

        .logo-picker-container {
            position: relative;
            width: 80px;
            height: 80px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .logo-picker-container img {
            width: 50px;
            height: auto;
            object-fit: contain;
        }

        .edit-icon-badge {
            position: absolute;
            bottom: 4px;
            right: 4px;
            background: var(--brand-orange);
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .editable-name-group {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .editable-name-group h2 {
            font-size: 1.8rem;
        }

        .edit-btn-inline {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .edit-btn-inline:hover {
            color: var(--brand-orange);
        }

        .tiers-scroll-container {
            display: flex;
            gap: 24px;
            overflow-x: auto;
            padding-bottom: 16px;
            scroll-behavior: smooth;
        }

        .tiers-scroll-container::-webkit-scrollbar {
            height: 6px;
        }

        .tiers-scroll-container::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }

        .tier-card {
            min-width: 300px;
            max-width: 320px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 24px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .tier-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding-bottom: 12px;
        }

        .tier-card-header h4 {
            color: var(--brand-orange);
            font-size: 1.2rem;
        }

        .editable-field-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .field-label {
            font-family: var(--font-app);
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .field-value-group {
            display: flex;
            align-items: center;
            gap: 6px;
            font-family: var(--font-app);
            font-size: 0.9rem;
            color: var(--text-white);
        }

        /* Checkbox Controlled Content Toggle */
        #program-toggle:not(:checked) ~ .program-settings-content {
            display: none;
        }

/* ==========================================================================
   --- Business Home Layout & Card Menu Fixes ---
   ========================================================================== */

.business-cards-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 540px;
    margin: 0 auto;
padding: 0 16px;
}

.business-card {
    background: #FAFAFA;
    border-radius: 20px;
    overflow: visible; /* Prevents dropdown menus from being clipped */
    color: var(--text-dark);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px;
    gap: 16px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.business-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.business-brand-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.business-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
    background: #1C1C1E;
    padding: 6px;
}

/* Card 3-Dot Button Override */
.business-card-header .nav-login-btn {
    padding: 6px;
    border-radius: 50%;
    min-width: 36px;
    height: 36px;
    justify-content: center;
}

/* Positioning & Hover Bridge Fix for Dropdown Menu inside Business Card */
.business-card-header .nav-dropdown-menu {
    right: 0;
    top: calc(100% + 8px);
    width: 210px;
}

/* Creates a invisible hover bridge so mouse movement doesn't close dropdown */
.business-card-header .nav-dropdown-wrapper::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}

/* Explicit text and icon colors matching top navigation bar dark styling */
.business-card-header .nav-dropdown-menu .dropdown-item {
    color: #FFFFFF !important;
}

.business-card-header .nav-dropdown-menu .dropdown-item:hover {
    color: var(--brand-orange) !important;
}

.business-card-header .nav-dropdown-menu .nav-icon {
    stroke: currentColor;
}

.business-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

/* Orders Bar Chart Component */
.orders-chart-container {
    background: #EFEFEF;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 90px;
    padding-top: 10px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar-fill {
    width: 28px;
    background: var(--brand-orange);
    border-radius: 6px 6px 2px 2px;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-bar-fill.secondary {
    background: #1C1C1E;
}

.chart-bar-label {
    font-family: var(--font-app);
    font-size: 0.7rem;
    color: var(--text-dark);
    font-weight: 500;
}

.chart-bar-val {
    font-family: var(--font-app);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

@media screen and (max-width: 640px) {
            .business-card-body {
                grid-template-columns: 1fr; /* Switch from 2 columns to 1 column */
            }