/* ==========================================================================
   STYLESHEET MAP
   Foundation: tokens, base elements, typography, layout, shared components
   index.html: welcome screen, hero search, homepage motion
   services.html / results.html: service cards, results lists, shared catalog UI
   packages.html / about.html / policies.html: package cards, profile, contact blocks
   intake.html / login.html / signup.html: intake and standalone form styling
   bookmarks.html: auth modal, social login, password helpers
   Shared endcaps: footer, toast notifications, mobile overrides
   ========================================================================== */

/* ==========================================================================
   01. FOUNDATION: DESIGN TOKENS
   ========================================================================== */
:root {
    /* Existing Neumorphism */
    --neu-bg: #e6e7ee;
    --neu-light: #ffffff;

    --neu-dark: #c8c9d0;
    --neu-accent: #d1d9e6;

    /* Theme Palette */
    --bg-white: #ffffff;
    --off-white: #f8fafc;
    --deep-charcoal: #0f172a;
    --electric-blue: #7f1d1d;
    --brand-red: #b91c1c;
    --border-light: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.3s ease;
    --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.35);
    
    /* Functional Colors */
    --input-focus-ring: rgba(185, 28, 28, 0.2);
}

/* ==========================================================================
   02. FOUNDATION: BASE DOCUMENT
   ========================================================================== */
html {
    scroll-behavior:smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    /* High-performance layered background */
    background:
        url('https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&q=80&w=2000') center/cover fixed,
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(15, 23, 42, 0.95) 100%);
    background-blend-mode: overlay;
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ==========================================================================
   03. FOUNDATION: GLOBAL NAVIGATION
   ========================================================================== */
.navbar, .main-nav {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.3fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: 10px;
    column-gap: 18px;
    padding: 0 2.5%; 
    height: 85px;  
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: navSlideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand { 
    display: flex; 
    align-items: center; 
    gap: 12px;
    flex-shrink: 0; 
    width: auto; 
    justify-self: start;
}

.nav-logo { 
    height: 38px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-name { 
    font-weight: 800; 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    white-space: nowrap;
    letter-spacing: -0.5px;
    color: #fff;
}

/* ==========================================================================
   04. FOUNDATION: CENTERED SEARCH & INTERACTIVE DROPDOWN
   ========================================================================== */
.nav-center {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin: 0;
    min-width: 160px;
}

.home-nav .nav-center,
.index-page .nav-center {
    display: none;
}

.home-nav .nav-cta,
.index-page .nav-cta,
.home-nav-cta-btn {
    margin-left: 0;
}

/* Centered Wrapper for Home Page */
.hero-search-wrapper {
    position: relative;
    z-index: 100 !important; 
    width: 100%;
    max-width: 700px;
    margin: 40px auto; /* Centers the search bar horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 50px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    outline: none;
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.28),
        inset -2px -2px 6px rgba(255, 255, 255, 0.03);
}

.nav-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--electric-blue);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Improved Dropdown with Hover Button Logic */
.suggestions-dropdown {
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98); 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 9999 !important; 
    max-height: 380px;
    overflow-y: auto;
    display: none;
    margin-top: -5px; 
    padding: 10px 0;
}

/* Individual Suggestion Item */
.suggestion-item {
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between; /* Pushes button to far right */
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:hover {
    background: rgba(185, 28, 28, 0.1);
    padding-left: 35px; /* Architectural shift on hover */
}

.suggestion-item.is-active {
    background: rgba(185, 28, 28, 0.1);
    padding-left: 35px;
}

/* Hover Button: Hidden by default, slides in on hover */
.suggestion-btn {
    opacity: 0;
    transform: translateX(10px);
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    pointer-events: none; /* Prevents button from stealing click from parent div */
}

.suggestion-item:hover .suggestion-btn {
    opacity: 1;
    transform: translateX(0);
}

.suggestion-item.is-active .suggestion-btn {
    opacity: 1;
    transform: translateX(0);
}

/* Lower z-index for buttons below search */
.hero-actions {
    position: relative;
    z-index: 1; 
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ==========================================================================
   05. FOUNDATION: NAV LINKS
   ========================================================================== */
.nav-links { 
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: grid; 
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center; 
    justify-content: center;
    list-style: none;
    gap: clamp(10px, 1vw, 16px); 
    margin: 0;
    padding: 0;
    min-width: 0;
    overflow: visible;
}

body.auth-ready.is-signed-out .nav-links {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: auto;
    padding: 0 10px;
    text-decoration: none; 
    color: rgba(255, 255, 255, 0.85); 
    font-weight: 700; 
    font-size: clamp(0.67rem, 0.62rem + 0.25vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--brand-red);
}

.nav-links li.active a {
    color: var(--brand-red);
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 4px;
}

.nav-links li {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

/* Keep Login/Signup hidden until auth state is known to avoid first-paint jitter. */
.nav-links .nav-login-item {
    visibility: hidden;
    pointer-events: none;
}

body.auth-ready.is-signed-out .nav-links .nav-login-item {
    visibility: visible;
    pointer-events: auto;
}

.nav-cta {
    background: var(--brand-red) !important;
    color: white !important;
    padding: 10px 18px !important;
    min-height: 40px;
    width: auto;
    border-radius: 4px;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-left: 0;
    text-decoration: none;
    display: inline-flex;
}

.nav-cta:hover { 
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(185, 28, 28, 0.4);
    background: var(--electric-blue) !important;
    color: #fff !important;
}
/* ==========================================================================
   06. SHARED HERO LAYOUT (Centered & Interactive)
   ========================================================================== */

/* HOME PAGE HERO: Large, Cinematic, and Centered */
.hero-section {
    min-height: 480px; 
    height: auto; 
    display: flex !important;
    flex-direction: column !important;
    justify-content: center; 
    align-items: center !important;    
    padding: 100px 8% 60px; 
    text-align: center;
    position: relative;
    background:
        radial-gradient(circle at 20% 15%, rgba(185, 28, 28, 0.2), transparent 35%),
        radial-gradient(circle at 80% 25%, rgba(185, 28, 28, 0.15), transparent 30%),
        linear-gradient(135deg, #05070c 0%, #0b1018 45%, #16181f 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: visible; 
    isolation: isolate;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            112deg,
            transparent 0 74px,
            rgba(255, 130, 130, 0.05) 74px 78px,
            rgba(185, 28, 28, 0.2) 78px 80px,
            transparent 80px 148px
        );
    mix-blend-mode: screen;
    opacity: 0.42;
    filter: blur(0.4px);
    animation: lightningSweep 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 90, 90, 0.22), transparent 24%),
        radial-gradient(circle at 76% 26%, rgba(255, 110, 110, 0.18), transparent 28%),
        radial-gradient(circle at 48% 72%, rgba(185, 28, 28, 0.1), transparent 40%);
    filter: blur(24px);
    animation: lightningPulse 5.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   SUB-PAGE HEROES: COMPACT & EFFICIENT
   ========================================================================== */

/* --- 1. SERVICES & PACKAGES HERO (Medium) --- */
.hero-section.hero-sub {
    min-height: 220px; /* Significantly smaller than Home */
    height: auto;
    padding: 60px 8% 40px; /* Reduced vertical padding */
    background-attachment: scroll; /* Better performance on content-heavy pages */
}

.hero-sub h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Slightly smaller header */
    margin-bottom: 5px;
    letter-spacing: -1.5px;
}

/* --- 2. LOGIN / SIGNUP / POLICIES HERO (Extra Small) --- */
.hero-section.hero-mini {
    min-height: 140px;
    height: auto;
    padding: 40px 8% 20px;
}

.hero-mini h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* ==========================================================================
   SEARCH & ACTIONS (Shared Logic)
   ========================================================================== */

/* Search bar on Home remains centered and long */
.hero-search-wrapper {
    position: relative;
    z-index: 100 !important; 
    width: 100%;
    max-width: 850px;
    margin: 30px auto !important; 
    display: flex;
    justify-content: center;
}

/* Search bar in Navbar (for sub-pages) */
.nav-center .search-input {
    padding: 8px 15px 8px 35px;
    font-size: 0.85rem;
}

/* Hero Actions adjustment for smaller heroes */
.hero-sub .hero-actions, 
.hero-mini .hero-actions {
    margin-top: 15px;
}

.hero-sub .btn-pop, 
.hero-sub .btn-secondary {
    padding: 12px 25px; /* Smaller buttons for smaller heroes */
    min-width: 160px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section.hero-sub {
        min-height: 180px;
        padding: 50px 5% 30px;
    }
    
    .hero-section.hero-mini {
        min-height: 120px;
    }
}

.location-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--brand-red);
    color: white;
    padding: 8px 24px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 2.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(185, 28, 28, 0.3);
    position: relative;
    z-index: 10;
    animation: 
        tagEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) both,
        pulseGlow 3s ease-in-out infinite,
        magneticFloat 5s ease-in-out infinite;
}

h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 1.5rem;
    color: white;
    animation: 
        heroTextReveal 1s cubic-bezier(0.77, 0, 0.175, 1) both,
        architecturalDrift 8s ease-in-out infinite 1s;
}

/* ==========================================================================
   RESULTS PAGE: Header & Found Infrastructure Fix
   ========================================================================== */

/* This targets the "Found Infrastructure" text specifically */
.results-header .infrastructure-label {
    font-size: 0.75rem !important; /* Forces it to stay small and tag-like */
    padding: 6px 16px !important;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

/* This fixes the massive search term title */
.results-header h1 {
    font-size: 1.6rem !important; /* Scaled down significantly */
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-top: 0;
}

/* The actual word being searched (the blue/red text) */
#query-display {
    color: var(--brand-red); 
    text-transform: uppercase;
}

/* ==========================================================================
   RESULTS GRID: Equal Ratios & Layout
   ========================================================================== */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    align-items: stretch; /* Forces equal height for all cards in a row */
    padding: 20px 0;
}

.result-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes the button to the absolute bottom */
    background: rgba(15, 20, 30, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

/* Keeps card titles aligned even if text length varies */
.result-card h2 {
    font-size: 1.25rem;
    margin: 10px 0;
    min-height: 3rem; 
    display: flex;
    align-items: center;
}

/* ==========================================================================
   DROPDOWN SYSTEM: Only for Navbar/Sub-pages
   ========================================================================== */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px); 
    left: 0;
    right: 0;
    background: rgba(10, 12, 18, 0.98); 
    border: 1px solid var(--brand-red); 
    border-radius: 8px;
    max-height: 350px;
    z-index: 9999;
    display: none; /* Controlled by JS */
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.search-result-item {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}
/* ==========================================================================
   07. SHARED MOTION KEYFRAMES
   ========================================================================== */

/* 1. Magnetic Float: Vertical bobbing + slight rotation */
@keyframes magneticFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(1deg); }
    66% { transform: translateY(4px) rotate(-1deg); }
}

/* 2. Architectural Drift: Slow, heavy vertical movement for large text */
@keyframes architecturalDrift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 3. Soft Sway: Subtle horizontal "floating in water" feel */
@keyframes softSway {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* 4. Pulse Glow: Intensity shifts */
@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(185, 28, 28, 0.3), inset 0 0 10px rgba(185, 28, 28, 0.2);
        border-color: var(--brand-red);
    }
    50% { 
        box-shadow: 0 0 30px rgba(185, 28, 28, 0.7), inset 0 0 15px rgba(185, 28, 28, 0.4);
        border-color: #ff3333;
    }
}
/* ==========================================================================
   08. INDEX.HTML: WELCOME SCREEN
   ========================================================================== */
.welcome-screen {
    position: fixed;
    inset: 0; /* Shorthand for top/left/width/height */
    background: radial-gradient(circle at 20% 20%, rgba(248, 113, 113, 0.28), transparent 18%),
                radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.06), transparent 22%),
                linear-gradient(135deg, #090505 0%, #1d0508 35%, #4c0202 55%, #120406 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1.2s ease-out, visibility 1.2s ease-out;
    overflow: hidden;
}

.welcome-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(248, 113, 113, 0.14), transparent 28%),
                radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.06), transparent 18%);
    filter: blur(16px);
    animation: pulseRed 6s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity; /* Improves animation performance */
}

.welcome-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Content Container */
.welcome-content {
    position: relative;
    text-align: center;
    color: white;
    animation: welcomeFadeIn 1s ease-out;
    z-index: 10000;
}

/* Logo Styling */
.welcome-logo {
    margin-bottom: 2rem;
    animation: logoFloat 3s ease-in-out infinite; /* Slowed slightly for more elegance */
}

.welcome-logo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.35), rgba(15, 23, 42, 0.7));
    backdrop-filter: blur(14px);
    padding: 1.5rem;
    box-shadow:
        12px 12px 28px rgba(0, 0, 0, 0.45),
        -12px -12px 28px rgba(255, 255, 255, 0.08),
        inset 2px 2px 10px rgba(255, 255, 255, 0.14),
        inset -2px -2px 10px rgba(0, 0, 0, 0.4);
}

/* Typography Sequence */
.welcome-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: textFadeIn 1s ease-out 0.3s forwards;
}

.welcome-subtitle {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    opacity: 0;
    animation: textFadeIn 1s ease-out 0.6s forwards;
    letter-spacing: -1px;
}

.welcome-subtitle .blue-text {
    color: var(--electric-blue);
}

.welcome-tagline {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0;
    animation: textFadeIn 1s ease-out 0.9s forwards;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

/* Loading Bar */
.welcome-loader {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
    opacity: 0;
    animation: textFadeIn 1s ease-out 1.2s forwards;
}

.loader-bar {
    height: 100%;
    background: linear-gradient(90deg, #f43f5e, var(--brand-red));
    width: 0%;
    animation: loadProgress 3s ease-out 1.5s forwards;
}

/* ==========================================================================
   09. INDEX.HTML: WELCOME ANIMATIONS
   ========================================================================== */
@keyframes pulseRed {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.04); opacity: 1; }
}

@keyframes welcomeFadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes textFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loadProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* ==========================================================================
   10. INDEX.HTML: HERO SEARCH AND COPY
   ========================================================================== */
.hero-search-wrapper {
    margin: 3.5rem 0; /* Creates the breathing room you asked for */
    position: relative;
    z-index: 10;
    animation: descriptionFadeIn 1s ease-out 0.5s both;
}

.hero-search-container {
    position: relative;
    max-width: 600px;
}

/* Fixes the search icon placement */
.hero-search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%); /* Perfectly centered vertically */
    color: var(--electric-blue);
    font-size: 1.4rem;
    z-index: 5;
    pointer-events: none;
}

.hero-search-input {
    width: 100%;
    padding: 22px 30px 22px 70px; /* 70px left padding keeps text off the icon */
    border-radius: 50px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    box-shadow: 
        15px 15px 30px rgba(0, 0, 0, 0.28), 
        -10px -10px 24px rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.hero-search-input:focus {
    box-shadow: 
        18px 18px 40px rgba(0, 0, 0, 0.34), 
        -12px -12px 28px rgba(255, 255, 255, 0.06);
    border-color: var(--brand-red);
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.hero-description {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    z-index: 10;
    position: relative;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    z-index: 10;
    position: relative;
}

/* ==========================================================================
   11. INDEX.HTML: HERO MOTION
   ========================================================================== */
@keyframes descriptionFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulseTag {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(0, 243, 255, 0); }
}

@keyframes lightningSweep {
    0% {
        transform: translateX(-1.5%) translateY(-1.5%);
        opacity: 0.28;
    }
    47% {
        opacity: 0.55;
    }
    50% {
        opacity: 0.82;
    }
    53% {
        opacity: 0.4;
    }
    100% {
        transform: translateX(1.5%) translateY(1.5%);
        opacity: 0.28;
    }
}

@keyframes lightningPulse {
    0%, 100% {
        opacity: 0.75;
        transform: scale(1);
    }
    32% {
        opacity: 0.92;
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
    68% {
        opacity: 0.78;
    }
}

/* ==========================================================================
   12. FOUNDATION: TYPOGRAPHY
   ========================================================================== */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: white;
}

h1 {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

h2, h3 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   13. FOUNDATION: BUTTONS
   ========================================================================== */
/* Shared Button Base to reduce 2000+ line bulk */
.btn-pop, .btn-select, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer !important;
}

/* Specific Glass Styles for Pop/Select */
.btn-pop, .btn-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.3),
        -8px -8px 16px rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hover Effects */
.btn-pop:hover, .btn-select:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-pop:hover, .btn-select:hover {
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.4),
        -12px -12px 24px rgba(255, 255, 255, 0.1),
        inset 4px 4px 8px rgba(255, 255, 255, 0.1);
}

/* Shine Animation Fix */
.btn-pop::before, .btn-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* Fixed: Uses your brand-red for the shine highlight */
    background: linear-gradient(90deg, transparent, rgba(185, 28, 28, 0.2), transparent);
    transition: left 0.6s ease-in-out;
}

.btn-pop:hover::before, .btn-select:hover::before {
    left: 100%;
}

/* ==========================================================================
   14. FOUNDATION: CONTENT SECTIONS
   ========================================================================== */
.content-section {
    padding: 80px 8%;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95)),
        radial-gradient(circle at 25% 25%, rgba(185, 28, 28, 0.08) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

/* Background Texture Layer */
.content-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1557683316-973673baf926?auto=format&fit=crop&q=80&w=1000') center/cover;
    background-blend-mode: overlay;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   15. FOUNDATION: GRID SYSTEM
   ========================================================================== */
.grid {
    display: grid;
    /* Responsive grid: items will never be smaller than 320px */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

/* ==========================================================================
   16. FOUNDATION: GLASS CARDS
   ========================================================================== */
.card-glass {
    position: relative;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    overflow: hidden;
    /* Standard Neumorphic Shadow */
    box-shadow: 
        20px 20px 40px rgba(0, 0, 0, 0.3),
        -20px -20px 40px rgba(255, 255, 255, 0.05);
}

/* Top Accent Bar */
.card-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--electric-blue), var(--brand-red));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-glass:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-red);
    box-shadow: 0 20px 40px rgba(185, 28, 28, 0.15);
}

.card-glass:hover::after { opacity: 1; }

/* Card Components */
.card-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-glass:hover .card-image img { transform: scale(1.08); }

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--electric-blue), var(--brand-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(185, 28, 28, 0.2);
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-red);
    margin-top: auto; /* Pushes price to the bottom of the card */
    padding-top: 1.5rem;
}

/* ==========================================================================
   17. FOUNDATION: SCROLL REVEAL
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   18. FOUNDATION: CORE RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 768px) {
    .content-section { padding: 60px 5%; }
    
    .grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 1.5rem;
    }

    .navbar {
        padding: 1rem 5%;
        flex-direction: column;
    }

    .nav-center { width: 100%; margin: 1rem 0; }
    .nav-links { display: none; } /* Standard Mobile behavior */

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-pop, .btn-secondary, .btn-select {
        width: 100%;
    }
}

/* ==========================================================================
   19. SERVICES.HTML: SERVICE CARDS
   ========================================================================== */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden; /* Keeps images contained */
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    height: 100%;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.4);
}

/* Image Handling */
.service-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ==========================================================================
   20. SERVICES.HTML / BOOKMARKS.HTML: BOOKMARK ACTIONS
   ========================================================================== */
.bookmark-btn {
    position: absolute;
    top: 20px; /* Increased padding from edge */
    right: 20px;
    width: 42px;
    height: 42px;
    background: rgba(15, 23, 42, 0.6); /* Darker base for better contrast */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer !important;
    z-index: 50; /* Ensures it's above all card overlays */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Fixed Hover Logic: No more "falling out of frame" */
.service-card:hover .bookmark-btn {
    transform: scale(1.1); /* Removed translateY to keep it in frame */
    background: rgba(15, 23, 42, 0.8);
}

.bookmark-btn:hover {
    background: var(--brand-red) !important;
    border-color: var(--brand-red);
    transform: scale(1.2) rotate(5deg) !important;
}

.bookmark-btn.active {
    background: var(--brand-red);
    box-shadow: 0 0 15px var(--brand-red);
}

/* ==========================================================================
   21. SERVICES.HTML: SERVICE DETAILS
   ========================================================================== */
.service-info { 
    padding: 2rem; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column;
}

.service-info h3 { 
    font-size: 1.4rem; 
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-info h3 {
    color: var(--brand-red);
}

.service-meta { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Secondary Actions */
.btn-select {
    margin-top: auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    text-align: center;
    transition: var(--transition-smooth);
}

.btn-select:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    transform: translateY(-2px);
}

/* ==========================================================================
   22. SHARED CATALOG: LOADING STATE
   ========================================================================== */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.loading {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

/* ==========================================================================
   23. SERVICES.HTML / ABOUT.HTML / RESULTS.HTML: SECTION HEADERS
   ========================================================================== */
.subscription-section { 
    margin-top: 100px; 
    text-align: center; 
}

.section-title { 
    font-size: clamp(2rem, 5vw, 2.5rem); 
    margin-bottom: 50px; 
    font-weight: 800; 
    letter-spacing: -1px; 
}

.results-page {
    padding: 140px 8% 80px;
}

.results-title {
    margin-bottom: 50px;
}

.results-empty-state {
    display: none;
    text-align: center;
    padding: 50px;
}

.results-empty-state h3 {
    color: white;
}

.result-card {
    min-height: 360px;
    padding: 2.5rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.96), rgba(12, 17, 30, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    isolation: isolate;
}

.result-card-top {
    display: grid;
    align-content: start;
    gap: 1rem;
    min-height: 128px;
}

.result-card-pill {
    display: inline-flex;
    align-items: center;
    min-height: 72px;
    padding: 0.95rem 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(185, 28, 28, 0.4);
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.18), rgba(127, 29, 29, 0.08));
    color: white;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-transform: uppercase;
}

.result-card-category {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.result-card-body {
    display: grid;
    gap: 0.55rem;
    margin: 2rem 0;
    min-height: 88px;
    align-content: center;
}

.result-card-kicker {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
}

.result-card-price {
    color: white;
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.result-card-link {
    width: 100%;
    min-height: 54px;
    padding: 0.95rem 1.5rem;
    text-align: center;
}

/* ==========================================================================
   24. PACKAGES.HTML: GRID & CARDS
   ========================================================================== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px; 
    align-items: stretch; 
    padding: 20px 0;
}

.package-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(15, 20, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    padding: 0 !important; 
}

.package-card:hover {
    transform: translateY(-8px);
    border-color: var(--electric-blue); /* Updated for brand consistency */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 115, 255, 0.1);
    background: rgba(20, 25, 45, 0.6);
}

/* Internal Card Sections for Alignment */
.package-content {
    padding: 40px 30px 10px;
    flex-grow: 1; 
    position: relative; /* Essential for absolute bookmark positioning */
}

.package-footer {
    padding: 20px 30px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   24.1 BOOKMARK COMPONENT (NEW)
   ========================================================================== */
.bookmark-btn-package {
    position: absolute;
    top: 35px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--electric-blue);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 5px;
}

.bookmark-btn-package:hover {
    transform: scale(1.2);
    color: white;
    filter: drop-shadow(0 0 8px var(--electric-blue));
}

/* ==========================================================================
   25. PACKAGES.HTML: DETAILS & LISTS
   ========================================================================== */
.package-header {
    margin-bottom: 20px;
    padding-right: 40px; /* Prevents text from hitting the bookmark button */
}

.package-header h3 {
    font-size: 1.6rem;
    margin: 0;
    letter-spacing: -0.5px;
    color: white;
    text-transform: uppercase;
}

.package-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.package-list li {
    padding: 12px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.package-list li i {
    color: var(--electric-blue);
    font-size: 0.9rem;
    filter: drop-shadow(0 0 5px rgba(0, 115, 255, 0.4));
}

/* ==========================================================================
   26. PACKAGES.HTML: PRICING & CTA
   ========================================================================== */
.savings {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 255, 115, 0.1);
    border: 1px solid rgba(0, 255, 115, 0.2);
    border-radius: 50px;
}

.price-tag {
    margin: 0.5rem 0 1.5rem;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.small-cta {
    display: block;
    width: 100%;
    padding: 14px 0 !important;
    background: var(--electric-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 115, 255, 0.2);
}

.small-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 115, 255, 0.4);
    filter: brightness(1.1);
}
/* ==========================================================================
   27. ABOUT.HTML: PROFILE MEDIA & CAPABILITIES
   ========================================================================== */
.about-capabilities-section {
    background:
        linear-gradient(135deg, rgba(10, 16, 28, 0.98), rgba(17, 26, 43, 0.96)),
        radial-gradient(circle at top left, rgba(185, 28, 28, 0.12), transparent 32%);
    padding: 100px 0; /* Giving section vertical space */
}

/* HERO SECTION (PRESERVED AS REQUESTED) */
.about-hero {
    min-height: 60vh;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
    gap: 50px;
}

.profile-frame {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.about-profile-image {
    filter: grayscale(100%);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.profile-frame:hover {
    box-shadow: 0 25px 50px rgba(185, 28, 28, 0.1);
    border-color: var(--electric-blue);
    transform: translateY(-5px);
}

.profile-frame:hover img {
    transform: scale(1.03);
}

/* FIX: EQUAL RATIO FOR CAPABILITIES CARDS */
.about-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 equal columns */
    gap: 30px;
    align-items: stretch; /* Forces all cards to match the height of the tallest one */
}

.about-capability-card {
    display: flex;
    flex-direction: column;
    height: 100%; 
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.about-capability-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--electric-blue);
}

/* ==========================================================================
   28. ABOUT.HTML: CONTACT & QUICK LAUNCH (CTA BUTTON FIX)
   ========================================================================== */
.about-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    align-items: start;
    gap: 50px;
}

.about-quick-launch {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(10, 16, 28, 0.96)) !important;
    color: white;
    padding: 50px 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* FIX: Prevents shadows and right-side from being clipped */
    overflow: visible !important; 
}

/* CTA BUTTON FIX: Ensures right side doesn't disappear */
.about-quick-launch-link {
    display: inline-block;
    width: 100%;
    max-width: 280px; /* Constrains width within the card */
    margin: 0 auto;
    padding: 18px 25px;
    background: var(--electric-blue) !important;
    color: white !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    text-decoration: none;
    /* CRITICAL FIX: Ensures padding doesn't push the width beyond its container */
    box-sizing: border-box; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.about-quick-launch-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
}

/* CONTACT PANEL (PRESERVED) */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.contact-item:hover {
    border-color: var(--electric-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(185, 28, 28, 0.12);
    transform: translateX(8px);
}

.contact-item i {
    font-size: 1.6rem;
    color: var(--electric-blue);
    width: 30px;
    text-align: center;
}

.contact-item strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 4px;
}

.contact-item p {
    margin: 0;
    font-weight: 700;
    color: white;
    font-size: 1.05rem;
    line-height: 1.45;
}

/* ==========================================================================
   29. MOBILE POLISH (ADAPTED)
   ========================================================================== */
@media (max-width: 992px) {
    .about-capabilities-grid {
        grid-template-columns: 1fr; /* Stacks cards on smaller screens */
    }
}

@media (max-width: 768px) {
    .hero-section .container { 
        display: flex;
        flex-direction: column;
        text-align: center; 
        height: auto; 
        padding-top: 100px; 
    }

    .about-hero-grid,
    .about-contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .grid { 
        grid-template-columns: 1fr !important; 
        gap: 2rem;
    }

    .contact-item:hover {
        transform: none;
    }
}
/* ==========================================================================
   30. INTAKE.HTML / LOGIN.HTML / SIGNUP.HTML: FORM SHELLS
   ========================================================================== */
.intake-section {
    background: 
        radial-gradient(circle at 10% 10%, rgba(0, 102, 255, 0.05), transparent 40%),
        linear-gradient(135deg, #090e18 0%, #121b2d 100%);
    padding: 80px 0 120px 0;
    min-height: 100vh;
}

/* SIDE HUD TRACKER */
.price-sticky {
    position: fixed;
    top: 200px;
    right: 5%;
    width: 160px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

/* CENTERED INTAKE PANEL */
.intake-form-panel {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 16, 28, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 60px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    counter-reset: section;
}

/* ==========================================================================
   31. AUTH CARDS & SOCIAL LOGIN (LOGIN/SIGNUP)
   ========================================================================== */
.auth-card {
    max-width: 440px;
    margin: 60px auto;
    padding: 40px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    text-align: center;
}

.social-auth-provider {
    margin-bottom: 25px;
}

.google-btn {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    color: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.google-btn:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span { padding: 0 15px; }

/* ==========================================================================
   32. COMPACT SERVICE BUTTONS (Smaller Tiles)
   ========================================================================== */
.selection-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); 
    gap: 12px;
}

.selection-item input { display: none; }

.selection-box {
    padding: 15px 10px; /* Reduced padding for smaller footprint */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: row; /* Horizontal layout for space efficiency */
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.selection-box i {
    font-size: 1rem; /* Smaller icons */
    color: rgba(255, 255, 255, 0.2);
}

.selection-box span {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.selection-item input:checked + .selection-box {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--electric-blue);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
}

.selection-item input:checked + .selection-box i {
    color: var(--electric-blue);
}

/* ==========================================================================
   33. INPUTS & UTILITIES
   ========================================================================== */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.intake-form-panel select {
    background: linear-gradient(135deg, rgba(10, 14, 22, 0.96), rgba(37, 14, 18, 0.94));
    border: 1px solid rgba(185, 28, 28, 0.34);
    color: rgba(255, 243, 243, 0.96);
}

.intake-form-panel select:focus {
    outline: none;
    border-color: rgba(255, 112, 112, 0.9);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.2);
}

.intake-form-panel select option {
    background: #130f14;
    color: rgba(255, 241, 241, 0.98);
}

input:focus {
    outline: none;
    border-color: var(--electric-blue);
}

.intake-submit {
    width: 100%;
    background: var(--brand-red);
    padding: 18px;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .intake-form-panel { padding: 30px 20px; }
    .input-grid { grid-template-columns: 1fr; }
    .selection-grid-modern { grid-template-columns: 1fr 1fr; }
}
/* ==========================================================================
   34. AUTH MODAL SHELL (Renamed to match your script.js logic)
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 25, 0.65); /* Deep midnight overlay */
    backdrop-filter: blur(14px); /* High-end focus effect */
    -webkit-backdrop-filter: blur(14px);
    display: none; /* Controlled by openModal() */
    place-items: center;
    padding: 1.5rem;
    z-index: 2000; /* Above Navbar */
    overflow-y: auto;
    transition: opacity 0.3s ease;
}

/* When script.js sets display: flex, this ensures it centers correctly */
.modal[style*="display: flex"] {
    display: grid !important; 
}

/* ==========================================================================
   35. MODAL CARD (The Glass Neumorphic Container)
   ========================================================================== */
.modal-content.card-glass {
    max-width: 480px;
    width: 100%;
    background: var(--neu-bg);
    border-radius: 32px;
    position: relative;
    padding: 3.5rem 2.5rem;
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Dual-layer shadow for "Deep" Neumorphism */
    box-shadow:
        25px 25px 50px var(--neu-dark),
        -25px -25px 50px var(--neu-light),
        inset 1px 1px 2px rgba(255, 255, 255, 0.1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button (Pressed Button Look) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--neu-bg);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow:
        6px 6px 12px var(--neu-dark),
        -6px -6px 12px var(--neu-light);
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--brand-red);
    box-shadow:
        inset 3px 3px 6px var(--neu-dark),
        inset -3px -3px 6px var(--neu-light);
}

/* ==========================================================================
   36. AUTH CONTENT STYLING
   ========================================================================== */
.modal-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.6;
}

/* Red Prompt for unauthorized bookmarks */
.auth-prompt-alert {
    margin-bottom: 2rem;
    padding: 1.2rem;
    border-radius: 18px;
    background: rgba(185, 28, 28, 0.1);
    border: 1px solid rgba(185, 28, 28, 0.25);
    color: var(--brand-red);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* Auth View Transitions */
.auth-view {
    animation: authFade 0.4s ease-out;
}

@keyframes authFade {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Division Line */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.auth-divider span { padding: 0 10px; }

/* Neumorphic Input Styling */
.neu-input {
    width: 100%;
    padding: 1rem;
    background: var(--neu-bg);
    border: none;
    border-radius: 12px;
    color: white;
    margin-bottom: 1rem;
    box-shadow: inset 4px 4px 8px var(--neu-dark), inset -4px -4px 8px var(--neu-light);
}

.text-link {
    background: none;
    border: none;
    color: var(--brand-red); /* Or your brand blue */
    text-decoration: underline;
    cursor: pointer;
    font-weight: 700;
}

.full-width { width: 100%; margin-top: 10px; }

.password-wrapper { position: relative; }
.view-pass {
    position: absolute;
    right: 15px;
    top: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* GOOGLE BUTTON ALIGNMENT */
#googleBtn {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.google-auth-note {
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(12, 16, 24, 0.92), rgba(38, 13, 18, 0.88));
    border: 1px solid rgba(185, 28, 28, 0.22);
    color: var(--brand-red);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
}

#googleBtn iframe {
    border-radius: 12px !important;
}

.btn-google-popup {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-google-popup:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

/* NAV ACCOUNT SLOT */
#nav-account-slot {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    min-width: 170px;
}

.nav-account-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 2px 7px 2px 5px;
    white-space: nowrap;
}

.nav-account-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.nav-account-avatar {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: rgba(185, 28, 28, 0.2);
    border: 1px solid rgba(185, 28, 28, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    font-size: 0.66rem;
    flex-shrink: 0;
}

.nav-account-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.nav-account-caret {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.56rem;
    line-height: 1;
}

.nav-account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 16, 24, 0.98);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
    z-index: 1200;
}

.nav-account-pill.menu-open .nav-account-menu {
    display: flex;
}

.nav-account-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 10px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-align: left;
}

.nav-account-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.nav-account-menu-item.danger {
    color: #ffb3b3;
}

.nav-account-menu-item.danger:hover {
    background: rgba(185, 28, 28, 0.2);
    border-color: rgba(185, 28, 28, 0.5);
}

.nav-signout-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid rgba(185, 28, 28, 0.5);
    color: var(--brand-red);
    padding: 2px 7px;
    border-radius: 50px;
    font-size: 0.56rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

@media (min-width: 1101px) {
    .navbar,
    .main-nav {
        height: auto;
        min-height: 102px;
        padding: 8px 2.5% 12px;
    }

    .nav-links {
        padding-bottom: 6px;
    }

    .nav-links a:not(.nav-cta) {
        transform: translateY(4px);
    }

    #nav-account-slot {
        justify-self: end;
        align-self: start;
        margin-top: 2px;
    }
}

.nav-signout-btn:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

.profile-manager-modal {
    max-width: 480px;
}

.profile-manager-fields {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.profile-manager-fields label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.profile-manager-fields input {
    margin-bottom: 6px;
}

.profile-manager-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.profile-manager-actions .btn-pop,
.profile-manager-actions .btn-secondary {
    margin: 0;
    width: 100%;
}

/* ==========================================================================
   37. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 600px) {
    .modal-content.card-glass {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
        width: 90%;
    }

    .close-btn {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================================
   38. FOUNDATION: FOOTER
   ========================================================================== */
footer {
    padding: 80px 8% 40px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
    color: white;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Subtle brand-colored divider line */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), var(--brand-red), transparent);
}

footer p:first-child {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: var(--electric-blue);
}

footer p:last-child {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 400;
}

/* ==========================================================================
   39. FOUNDATION: TOAST NOTIFICATIONS (Adjusted for Size)
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 30px; 
    right: 30px; /* Moved to corner for better visibility */
    transform: translateY(150%); /* Start off-screen */
    background: rgba(10, 15, 28, 0.98); /* Slightly darker for contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; /* Tighter corners for tech feel */
    padding: 0.75rem 1.25rem; /* Reduced padding */
    width: auto;
    max-width: 300px; /* Hard limit on width */
    z-index: 9999;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    opacity: 0;
}

/* State when visible */
.toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f1f5f9;
    font-weight: 500; /* Medium weight is cleaner */
    font-size: 0.85rem; /* Smaller font */
    line-height: 1.4;
}

/* Contextual Variants (Glow effect) */
.toast-success { border-color: #10b981; box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }
.toast-error { border-color: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
.toast-info { border-color: #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }

.toast-action {
    color: #3b82f6;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-weight: 700;
    margin-left: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.toast-action:hover { color: #ef4444; }

/* notification-area container should be in your HTML body */
.notification-area {
    position: fixed;
    bottom: 30px; /* Moved to bottom for better mobile visibility */
    right: 20px;
    z-index: 10000;
}

.toast-error {
    border-left-color: #ff4d4d;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   40. BOOKMARKS.HTML: SAVED ITEM ACTIONS
   ========================================================================== */
.btn-remove-bookmark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.btn-remove-bookmark:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   41. FOUNDATION: FOOTER AND TOAST RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    footer { padding: 50px 5% 30px; }
    
    .toast {
        width: 90%;
        min-width: unset;
        bottom: 20px;
    }
}

/* ==========================================================================
   42. BOOKMARKS.HTML: SOCIAL AUTHENTICATION
   ========================================================================== */
.social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 1.8rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn i { font-size: 1.2rem; }

/* Contextual Brand Tints */
.social-btn.google-btn:hover {
    background: rgba(219, 39, 119, 0.15);
    border-color: #db2777;
    box-shadow: 0 0 15px rgba(219, 39, 119, 0.3);
}

.social-btn.facebook-btn:hover {
    background: rgba(59, 89, 152, 0.15);
    border-color: #3b5998;
    box-shadow: 0 0 15px rgba(59, 89, 152, 0.3);
}

.social-btn.apple-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   43. BOOKMARKS.HTML: PASSWORD HELPERS
   ========================================================================== */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 50px !important; /* Prevents text from overlapping icon */
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.password-toggle:hover {
    color: var(--electric-blue);
    transform: scale(1.1);
}

/* Strength Meter Engine */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

/* Bar Filling logic - use these classes via JS */
.strength-bar-fill {
    height: 100%;
    width: 0;
    transition: width 0.4s ease, background 0.4s ease;
}

.strength-bar-fill.weak { width: 25%; background: #ef4444; }
.strength-bar-fill.fair { width: 50%; background: #f97316; }
.strength-bar-fill.good { width: 75%; background: #eab308; }
.strength-bar-fill.strong { width: 100%; background: #10b981; }

.strength-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   44. LOGIN.HTML / SIGNUP.HTML / BOOKMARKS.HTML: ACCOUNT HELPERS
   ========================================================================== */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.forgot-password-btn {
    background: transparent;
    border: none;
    color: var(--electric-blue);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.forgot-password-btn:hover {
    color: var(--brand-red);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.input-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    font-style: italic;
}

/* ==========================================================================
   45. BOOKMARKS.HTML: AUTH DIVIDER
   ========================================================================== */
.divider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 2rem 0;
}

.divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.divider-text {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
/* ==========================================================================
   46. SIGNUP.HTML / BOOKMARKS.HTML: TERMS AND CONSENT
   ========================================================================== */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 1.8rem 0;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.terms-checkbox:hover {
    color: white;
}

.terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--electric-blue);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.terms-checkbox a {
    color: var(--electric-blue);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.terms-checkbox a:hover {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

/* ==========================================================================
   47. BOOKMARKS.HTML: MODAL REFINEMENTS
   ========================================================================== */
.modal-card {
    max-width: 520px;
    width: 100%;
    background: var(--neu-bg);
    border-radius: 28px;
    padding: 3rem;
    /* Advanced shadow stacking for elevation */
    box-shadow:
        30px 30px 60px var(--neu-dark),
        -20px -20px 50px var(--neu-light);
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--electric-blue) transparent;
}

/* Chrome/Safari Scrollbar for Modal */
.modal-card::-webkit-scrollbar {
    width: 4px;
}
.modal-card::-webkit-scrollbar-thumb {
    background: var(--electric-blue);
    border-radius: 10px;
}

.auth-form h2 {
    margin-bottom: 0.75rem;
    font-size: 2.2rem;
    font-weight: 900;
    
    /* 1. Define the background gradient first */
    background: linear-gradient(135deg, #ffffff, var(--electric-blue));
    
    /* 2. The standard property (for Firefox/future-proofing) */
    background-clip: text;
    
    /* 3. The vendor-specific property (for Chrome, Safari, Edge) */
    -webkit-background-clip: text;
    
    /* 4. Make the actual text transparent so the background shows through */
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for transparency */
}

/* ==========================================================================
   48. LOGIN.HTML / SIGNUP.HTML / BOOKMARKS.HTML: SUBMIT ACTIONS
   ========================================================================== */
.btn-submit {
    width: 100%;
    margin-top: 1.5rem;
    padding: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.back-to-login:hover {
    color: var(--electric-blue);
    transform: translateX(-5px); /* Subtle directional hint */
}

/* ==========================================================================
   49. BOOKMARKS.HTML: MOBILE COMPACTNESS
   ========================================================================== */
@media (max-width: 480px) {
    .modal-card {
        padding: 2rem 1.5rem;
        max-height: 95vh;
    }

    .auth-form h2 {
        font-size: 1.8rem;
    }

    /* Stack small links on mobile for better tap targets */
    .remember-forgot {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
}

/* ...existing code... */

.blue-text {
    color: #60a5fa !important;
}

.brand-red-text {
    color: var(--brand-red) !important;
}

.hidden {
    display: none !important;
}

.category-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.infrastructure-label {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(185, 28, 28, 0.45);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(185, 28, 28, 0.12);
}

.hero-section .infrastructure-label {
    box-shadow: 0 0 15px rgba(185, 28, 28, 0.3);
    position: relative;
    z-index: 10;
    margin-bottom: 2.5rem;
    animation:
        tagEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) both,
        pulseGlow 3s ease-in-out infinite,
        magneticFloat 5s ease-in-out infinite;
}

.suggestion-category {
    padding: 10px 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.suggestion-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.suggestion-content .res-title {
    display: block;
    font-weight: 700;
    color: #fff;
}

.suggestion-content .res-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.bookmark-btn-package.active,
.bookmark-btn.active {
    color: #fff;
    background: var(--brand-red);
    box-shadow: 0 0 15px rgba(185, 28, 28, 0.35);
}

#strengthBarContainer {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0 14px;
}

#strengthBar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

#strengthBar.strength-bar-fill.weak {
    width: 25%;
    background: #ef4444;
}

#strengthBar.strength-bar-fill.good {
    width: 75%;
    background: #eab308;
}

#strengthBar.strength-bar-fill.strong {
    width: 100%;
    background: #10b981;
}

/* ==========================================================================
   Bookmarks Page UX Improvements
   ========================================================================== */
.bookmarks-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.bookmark-card {
    position: relative;
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 260px;
    padding-top: 52px;
}

.bookmark-icon {
    font-size: 2rem;
}

.bookmark-card .btn-pop {
    margin-top: auto;
}

.empty-bookmarks-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-remove-bookmark {
    position: absolute;
    top: 14px;
    right: 14px;
}

/* ─── Bookmark card checkbox ─────────────────────────────────────────────── */
.bm-select-wrap {
    position: absolute;
    top: 14px;
    left: 14px;
    cursor: pointer;
    z-index: 2;
}

.bm-select-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bm-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: transparent;
    font-size: 0.65rem;
    transition: all 0.2s ease;
}

.bm-select-wrap input:checked ~ .bm-checkmark {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

.bookmark-card.bm-selected {
    border-color: rgba(185, 28, 28, 0.5);
    box-shadow: 0 0 0 1.5px rgba(185, 28, 28, 0.3);
}

/* ─── Bulk action bar ────────────────────────────────────────────────────── */
.bookmarks-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
}

.bulk-count-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    font-weight: 600;
    min-width: 90px;
}

.bulk-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-select-all-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.75);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.bulk-select-all-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.bulk-remove-btn {
    background: none;
    border: 1px solid rgba(185, 28, 28, 0.5);
    color: var(--brand-red);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.bulk-remove-btn:hover:not(:disabled) {
    background: var(--brand-red);
    color: #fff;
}

.bulk-remove-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ─── Bookmark confirm dialog ────────────────────────────────────────────── */
.bm-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    padding: 20px;
}

.bm-confirm-dialog {
    width: 100%;
    max-width: 400px;
    padding: 36px 32px;
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: fadeInUp 0.25s ease;
}

.bm-confirm-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(185, 28, 28, 0.15);
    border: 1.5px solid rgba(185, 28, 28, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--brand-red);
    margin-bottom: 4px;
}

.bm-confirm-dialog h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.bm-confirm-dialog p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.5;
}

.bm-confirm-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
}

.bm-confirm-actions .btn-secondary,
.bm-confirm-remove-btn {
    flex: 1;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bm-confirm-remove-btn {
    background: var(--brand-red);
    border: 1px solid var(--brand-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.bm-confirm-remove-btn:hover {
    background: #991b1b;
    border-color: #991b1b;
}

@media (max-width: 768px) {
    .empty-bookmarks-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }

    .empty-bookmarks-actions .btn-pop,
    .empty-bookmarks-actions .btn-secondary {
        width: 100%;
    }
}

/* ==========================================================================
   Search Dropdown Reliability and Results Title Polish
   ========================================================================== */

/* Keep the hero search stacking context above cards in the next section. */
.hero-section {
    position: relative;
    z-index: 20;
    overflow: visible;
}

.content-section {
    position: relative;
    z-index: 1;
}

.hero-search-wrapper,
.hero-search-container,
.hero-search-wrapper .search-container {
    position: relative;
    z-index: 30;
    overflow: visible;
}

/* Shared dropdown shell for all live search boxes. */
.suggestions-dropdown {
    top: calc(100% + 10px);
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 8px 0;
    z-index: 4000 !important;
}

/* Home dropdown must float above all cards/effects. */
.hero-search-wrapper .suggestions-dropdown,
.hero-search-container .suggestions-dropdown,
#suggestionsBox {
    z-index: 12000 !important;
}

/* Make nav quick-search results less cramped. */
.nav-search-wrapper .suggestions-dropdown {
    min-width: 360px;
}

.suggestion-category {
    padding: 12px 18px 10px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
}

.suggestion-item {
    gap: 16px;
    padding: 14px 18px;
}

.suggestion-content {
    min-width: 0;
    flex: 1;
    gap: 5px;
}

.suggestion-content .res-title {
    font-size: 0.92rem;
    line-height: 1.3;
}

.suggestion-content .res-meta {
    font-size: 0.76rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.72);
}

.suggestion-btn {
    flex-shrink: 0;
    letter-spacing: 0.06em;
}

/* Results page heading: smaller and tidier. */
.results-page .results-title {
    font-size: clamp(1.35rem, 2.6vw, 1.95rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 28px;
    max-width: 850px;
}

.results-page #query-display {
    display: inline-block;
    margin-left: 0.15em;
}

@media (max-width: 768px) {
    .nav-search-wrapper .suggestions-dropdown {
        min-width: 100%;
    }

    .suggestion-item {
        padding: 12px 14px;
        gap: 12px;
    }

    .results-page .results-title {
        margin-bottom: 22px;
    }
}

/* ==========================================================================
   Global Lightning Background (No Human Subject)
   ========================================================================== */
body {
    background: linear-gradient(135deg, #05070c 0%, #0b1018 45%, #16181f 100%);
    position: relative;
    isolation: isolate;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(185, 28, 28, 0.2), transparent 35%),
        radial-gradient(circle at 80% 25%, rgba(185, 28, 28, 0.15), transparent 30%),
        repeating-linear-gradient(
            112deg,
            transparent 0 74px,
            rgba(255, 130, 130, 0.05) 74px 78px,
            rgba(185, 28, 28, 0.2) 78px 80px,
            transparent 80px 148px
        );
    mix-blend-mode: screen;
    opacity: 0.4;
    filter: blur(0.4px);
    animation: lightningSweep 10s linear infinite;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 90, 90, 0.22), transparent 24%),
        radial-gradient(circle at 76% 26%, rgba(255, 110, 110, 0.18), transparent 28%),
        radial-gradient(circle at 48% 72%, rgba(185, 28, 28, 0.1), transparent 40%);
    filter: blur(24px);
    animation: lightningPulse 5.2s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Use the global background instead of a hero-only background. */
.hero-section {
    background: transparent;
}

.hero-section::before,
.hero-section::after {
    content: none;
}

/* Let global background show through sections while preserving readability. */
.content-section {
    background: linear-gradient(135deg, rgba(7, 10, 16, 0.62), rgba(10, 12, 19, 0.52));
}

.content-section::before {
    content: none;
}

/* Keep footer independent from page background. */
footer {
    background: linear-gradient(135deg, rgba(12, 14, 20, 0.98), rgba(36, 13, 16, 0.96));
    position: relative;
    z-index: 3;
}

/* Match nav/footer palette to lightning theme without animated effects. */
.navbar,
.main-nav {
    background: linear-gradient(135deg, rgba(12, 14, 20, 0.96), rgba(36, 13, 16, 0.94));
    border-bottom-color: rgba(185, 28, 28, 0.24);
}

footer::before {
    background: linear-gradient(90deg, transparent, rgba(255, 121, 121, 0.85), rgba(185, 28, 28, 0.85), transparent);
}

/* Match all search bars/dropdowns to lightning palette. */
.search-input,
.hero-search-input {
    background: linear-gradient(135deg, rgba(9, 11, 16, 0.9), rgba(30, 12, 16, 0.84));
    border: 1px solid rgba(185, 28, 28, 0.3);
    color: rgba(255, 245, 245, 0.95);
    box-shadow:
        inset 3px 3px 10px rgba(0, 0, 0, 0.38),
        inset -2px -2px 8px rgba(255, 255, 255, 0.03),
        0 0 0 1px rgba(185, 28, 28, 0.08);
}

.search-input::placeholder,
.hero-search-input::placeholder {
    color: rgba(255, 212, 212, 0.68);
}

.search-input:focus,
.hero-search-input:focus {
    border-color: rgba(255, 102, 102, 0.8);
    box-shadow:
        0 0 0 3px rgba(185, 28, 28, 0.22),
        0 0 24px rgba(185, 28, 28, 0.24),
        inset 2px 2px 8px rgba(0, 0, 0, 0.28);
}

.nav-search-icon,
.hero-search-icon {
    color: rgba(255, 131, 131, 0.95);
}

.suggestions-dropdown {
    background: linear-gradient(180deg, rgba(8, 10, 16, 0.97), rgba(23, 11, 15, 0.96));
    border-color: rgba(185, 28, 28, 0.35);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.6), 0 0 22px rgba(185, 28, 28, 0.2);
}

.suggestion-category {
    color: rgba(255, 189, 189, 0.72);
}

.suggestion-item {
    border-bottom-color: rgba(255, 123, 123, 0.12);
}

.suggestion-item:hover,
.suggestion-item.is-active {
    background: linear-gradient(90deg, rgba(185, 28, 28, 0.16), rgba(120, 16, 16, 0.2));
}

.suggestion-content .res-meta {
    color: rgba(255, 218, 218, 0.72);
}

.suggestion-btn {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
}

/* ==========================================================================
   Lightning Theme: Auth, Intake, About CTA
   ========================================================================== */

/* Login / Signup page cards */
.auth-card {
    background: linear-gradient(160deg, rgba(9, 11, 17, 0.94), rgba(33, 12, 16, 0.9));
    border: 1px solid rgba(185, 28, 28, 0.3);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 28px rgba(185, 28, 28, 0.14);
}

/* Pop-up auth modal cards */
.modal-content.card-glass {
    background: linear-gradient(160deg, rgba(8, 10, 16, 0.97), rgba(34, 12, 18, 0.95));
    border: 1px solid rgba(185, 28, 28, 0.34);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.58),
        0 0 30px rgba(185, 28, 28, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.modal-content p,
.modal-content .auth-switch,
.modal-content .security-protocol {
    color: rgba(255, 221, 221, 0.78);
}

.close-btn {
    background: linear-gradient(135deg, rgba(17, 21, 31, 0.95), rgba(53, 16, 24, 0.9));
    border: 1px solid rgba(185, 28, 28, 0.35);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.close-btn:hover {
    box-shadow: 0 10px 22px rgba(185, 28, 28, 0.28);
}

/* Inputs for Login/Signup/Intake + modal forms */
.intake-form-panel input,
.intake-form-panel select,
.intake-form-panel textarea,
.auth-card input,
.auth-card select,
.auth-card textarea,
.modal-content .neu-input {
    background: linear-gradient(145deg, rgba(8, 10, 16, 0.92), rgba(28, 10, 14, 0.88));
    border: 1px solid rgba(185, 28, 28, 0.24);
    color: rgba(255, 245, 245, 0.96);
    box-shadow:
        inset 3px 3px 10px rgba(0, 0, 0, 0.36),
        inset -2px -2px 8px rgba(255, 255, 255, 0.02);
}

.intake-form-panel input::placeholder,
.intake-form-panel select,
.intake-form-panel textarea::placeholder,
.auth-card input::placeholder,
.modal-content .neu-input::placeholder {
    color: rgba(255, 208, 208, 0.66);
}

.intake-form-panel input:focus,
.intake-form-panel select:focus,
.intake-form-panel textarea:focus,
.auth-card input:focus,
.modal-content .neu-input:focus {
    outline: none;
    border-color: rgba(255, 114, 114, 0.85);
    box-shadow:
        0 0 0 3px rgba(185, 28, 28, 0.22),
        0 0 22px rgba(185, 28, 28, 0.22),
        inset 2px 2px 8px rgba(0, 0, 0, 0.24);
}

.view-pass {
    color: rgba(255, 190, 190, 0.78);
}

.view-pass:hover {
    color: rgba(255, 125, 125, 0.96);
}

.password-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 16000;
    padding: 7px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(10, 12, 18, 0.96), rgba(40, 12, 18, 0.94));
    border: 1px solid rgba(185, 28, 28, 0.34);
    color: rgba(255, 238, 238, 0.96);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36), 0 0 14px rgba(185, 28, 28, 0.18);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.password-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.auth-card input[type="checkbox"],
.intake-form-panel input[type="checkbox"] {
    accent-color: var(--brand-red);
}

/* Intake form and service-selection controls */
.intake-section {
    background:
        radial-gradient(circle at 12% 8%, rgba(185, 28, 28, 0.12), transparent 38%),
        linear-gradient(135deg, rgba(6, 8, 13, 0.92), rgba(24, 9, 14, 0.82));
}

.intake-form-panel {
    background: linear-gradient(165deg, rgba(8, 10, 16, 0.82), rgba(26, 10, 16, 0.72)) !important;
    border: 1px solid rgba(185, 28, 28, 0.22);
}

.selection-box {
    background: linear-gradient(145deg, rgba(11, 13, 19, 0.84), rgba(30, 12, 17, 0.75));
    border-color: rgba(185, 28, 28, 0.22);
}

.selection-item input:checked + .selection-box {
    background: linear-gradient(145deg, rgba(185, 28, 28, 0.18), rgba(127, 29, 29, 0.16));
    border-color: rgba(255, 120, 120, 0.7);
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.22);
}

.launch-date-field {
    position: relative;
}

.launch-date-field input {
    padding-right: 50px;
}

.launch-date-field input::-webkit-calendar-picker-indicator {
    opacity: 0;
}

.launch-date-picker {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(185, 28, 28, 0.3);
    background: linear-gradient(135deg, rgba(17, 21, 31, 0.95), rgba(53, 16, 24, 0.9));
    color: rgba(255, 190, 190, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.launch-date-picker:hover {
    color: rgba(255, 125, 125, 0.98);
    border-color: rgba(255, 125, 125, 0.55);
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.18);
}

/* About page CTA card section */
.about-quick-launch {
    background: linear-gradient(165deg, rgba(9, 11, 17, 0.94), rgba(36, 12, 17, 0.9)) !important;
    border: 1px solid rgba(185, 28, 28, 0.3);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.46), 0 0 24px rgba(185, 28, 28, 0.16);
}

.about-quick-launch-link {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d) !important;
    border: 1px solid rgba(255, 150, 150, 0.3);
    box-shadow: 0 12px 24px rgba(185, 28, 28, 0.24);
}

.about-quick-launch-link:hover {
    box-shadow: 0 16px 30px rgba(185, 28, 28, 0.34);
}

/* ==========================================================================
   Split Layout: Login / Signup Pages
   ========================================================================== */
.auth-split-main {
    min-height: calc(100vh - 170px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

.auth-split-main .hero-section {
    min-height: 100%;
    margin: 0;
    padding: clamp(40px, 7vh, 72px) clamp(5%, 7vw, 9%);
    display: flex !important;
    align-items: center !important;
}

.auth-split-main .content-section {
    min-height: 100%;
    margin: 0;
    padding: clamp(34px, 6vh, 66px) clamp(5%, 6vw, 8%);
    display: flex;
    align-items: center;
}

.auth-split-main .content-section > .container {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.auth-split-main .auth-card {
    margin: 0;
}

/* Disable scroll reveal effect on split pages so intro motion is consistent. */
.auth-split-main .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Intro motion: headline appears center, then shifts left as form enters right. */
.auth-split-main .hero-section .container {
    animation: authHeroSlideToLeft 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-split-main .auth-card {
    opacity: 0;
    animation: authFormSlideToRight 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

.unified-auth-card .auth-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    margin: 18px 0 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(185, 28, 28, 0.22);
}

.unified-auth-card .auth-switcher-btn {
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 224, 224, 0.82);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.unified-auth-card .auth-switcher-btn.active {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.26), rgba(127, 29, 29, 0.2));
    border-color: rgba(255, 139, 139, 0.4);
    color: #fff;
    box-shadow: 0 6px 14px rgba(185, 28, 28, 0.24);
}

.unified-auth-card .auth-view-stack {
    position: relative;
    overflow: hidden;
}

.unified-auth-card .page-auth-pane {
    display: none;
    opacity: 0;
    transform: translateX(18px);
}

.unified-auth-card .page-auth-pane.active {
    display: block;
    animation: authPaneFadeSlide 0.35s ease both;
}

.unified-auth-card[data-auth-view="signup"] .page-auth-pane.active {
    animation-name: authPaneFadeSlideReverse;
}

.auth-hero-copy.is-switching {
    animation: authHeroCopySwap 0.42s ease;
}

/* Signup page is mirrored: form on left, hero on right. */
.auth-signup-page .auth-split-hero {
    order: 2;
}

.auth-signup-page .auth-split-form-panel {
    order: 1;
}

.auth-signup-page .hero-section .container {
    animation: authHeroSlideToRight 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-signup-page .auth-card {
    animation: authFormSlideToLeft 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

@keyframes authHeroSlideToLeft {
    0% {
        transform: translateX(58%);
    }
    34% {
        transform: translateX(58%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes authFormSlideToRight {
    0% {
        opacity: 0;
        transform: translateX(-44%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes authHeroSlideToRight {
    0% {
        transform: translateX(-58%);
    }
    34% {
        transform: translateX(-58%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes authFormSlideToLeft {
    0% {
        opacity: 0;
        transform: translateX(44%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes authPaneFadeSlide {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes authPaneFadeSlideReverse {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes authHeroCopySwap {
    0% {
        opacity: 0.3;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .auth-split-main {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .auth-split-main .hero-section,
    .auth-split-main .content-section {
        min-height: auto;
    }

    .auth-split-main .hero-section .container,
    .auth-split-main .auth-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Global Mobile Hardening Overrides
   ========================================================================== */
@media (max-width: 1100px) {
    .navbar,
    .main-nav {
        display: flex;
        justify-content: space-between;
        height: auto;
        min-height: 78px;
        flex-wrap: wrap;
        align-items: center;
        row-gap: 8px;
        padding: 10px 3.5%;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav-center {
        order: 3;
        flex: 1 1 100%;
        margin: 4px 0 2px;
        min-width: 0;
    }

    .nav-links,
    .home-nav .nav-links,
    .index-page .nav-links {
        display: flex;
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        grid-template-columns: none;
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
        gap: 12px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    body.auth-ready.is-signed-out .nav-links .nav-login-item {
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        width: auto;
        min-height: 36px;
    }

    .nav-links a {
        font-size: 0.69rem;
        letter-spacing: 0.06em;
    }

    .nav-cta {
        margin-left: 0;
        padding: 8px 12px !important;
        width: auto;
    }

    #nav-account-slot {
        min-width: 0;
        margin-left: auto;
    }
}

@media (min-width: 1101px) and (max-width: 1320px) {
    .navbar,
    .main-nav {
        column-gap: 12px;
        padding: 8px 1.8% 12px;
    }

    .nav-links { gap: 10px; }

    .nav-cta {
        padding: 8px 12px !important;
        margin-left: 0;
    }

    #nav-account-slot {
        margin-left: 6px;
    }

    .home-nav .nav-links,
    .index-page .nav-links { gap: 10px; }
}

@media (max-width: 1024px) {
    .price-sticky {
        display: none;
    }

    .results-page {
        padding: 90px 5% 56px;
    }

    .packages-grid,
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .about-hero-grid,
    .about-contact-grid,
    .about-capabilities-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .profile-frame img {
        min-height: 280px;
    }

    .hero-section {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .navbar,
    .main-nav {
        height: auto;
        min-height: 74px;
        padding: 10px 4%;
        gap: 8px;
        align-items: flex-start;
    }

    .brand {
        width: 100%;
        justify-content: space-between;
    }

    .brand-name {
        font-size: 0.92rem;
    }

    .nav-center {
        width: 100%;
        margin: 6px 0 8px;
    }

    .nav-links {
        display: flex !important;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .nav-links a {
        font-size: 0.7rem;
    }

    .nav-cta {
        margin-left: 0;
        padding: 8px 12px !important;
    }

    .hero-section {
        min-height: 360px;
        padding: 76px 5% 44px;
    }

    h1 {
        font-size: clamp(2.1rem, 8vw, 3.1rem);
        letter-spacing: -1.4px;
        line-height: 0.98;
    }

    .location-tag {
        margin-bottom: 1.4rem;
        padding: 7px 14px;
        letter-spacing: 1.4px;
        font-size: 0.66rem;
    }

    .hero-search-input {
        padding: 16px 20px 16px 54px;
        font-size: 0.96rem;
    }

    .hero-search-icon {
        left: 19px;
        font-size: 1.05rem;
    }

    .hero-actions {
        gap: 12px;
    }

    .card-glass,
    .result-card,
    .package-card,
    .auth-card,
    .intake-form-panel {
        padding: 22px !important;
        border-radius: 18px;
    }

    .service-image {
        height: 220px;
    }

    .service-meta {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .result-card {
        min-height: auto;
    }

    .result-card-pill {
        min-height: auto;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .auth-split-main .hero-section,
    .auth-split-main .content-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .auth-split-main .auth-card {
        max-width: 100%;
    }

    .input-grid {
        grid-template-columns: 1fr !important;
    }

    .selection-grid-modern {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 320px;
        padding-top: 64px;
    }

    h1 {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }

    .btn-pop,
    .btn-secondary,
    .btn-select,
    .small-cta {
        font-size: 0.8rem !important;
        padding: 11px 16px !important;
    }

    .selection-grid-modern {
        grid-template-columns: 1fr;
    }

    .launch-date-picker {
        right: 8px;
        width: 30px;
        height: 30px;
    }

    footer {
        padding: 40px 5% 24px;
    }
}

/* ==========================================================================
   Final Mobile Edge-Case Safeguards
   ========================================================================== */
img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

.card-glass,
.service-card,
.package-card,
.result-card,
.auth-card,
.intake-form-panel,
.modal-card,
.modal-content.card-glass {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .welcome-content {
        padding: 0 6%;
    }

    .welcome-title {
        font-size: 1.7rem;
    }

    .welcome-subtitle {
        font-size: clamp(2rem, 10vw, 2.8rem);
        line-height: 1.05;
    }

    .welcome-tagline {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .welcome-loader {
        width: min(300px, 88vw);
    }

    .social-login {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .toast,
    .notification-area {
        right: 5%;
        left: 5%;
    }

    .toast {
        max-width: none;
        width: auto;
    }
}

@media (max-width: 480px) {
    .social-login {
        grid-template-columns: 1fr;
    }

    .hero-search-wrapper {
        margin: 20px auto !important;
    }

    .hero-search-input {
        font-size: 0.92rem;
    }

    .suggestions-dropdown {
        max-height: 300px;
    }

    .result-card,
    .package-card,
    .service-card,
    .card-glass,
    .modal-card,
    .modal-content.card-glass,
    .auth-card,
    .intake-form-panel {
        border-radius: 16px;
    }

    .results-grid,
    .packages-grid,
    .bookmarks-grid,
    .grid {
        grid-template-columns: 1fr !important;
    }
}

    /* ==========================================================================
       Accessibility: Focus Visibility and Reduced Motion
       ========================================================================== */
    :where(a, button, input, select, textarea, [tabindex]):focus {
        outline: none;
    }

    :where(a, button, input, select, textarea, [tabindex]):focus-visible {
        outline: 3px solid rgba(255, 170, 170, 0.95);
        outline-offset: 2px;
        box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.28);
        border-radius: 8px;
    }

    .nav-links a:focus-visible,
    .btn-pop:focus-visible,
    .btn-select:focus-visible,
    .btn-secondary:focus-visible,
    .nav-cta:focus-visible,
    .small-cta:focus-visible,
    .result-card-link:focus-visible,
    .view-pass:focus-visible,
    .launch-date-picker:focus-visible,
    .bookmark-btn:focus-visible,
    .bookmark-btn-package:focus-visible {
        transform: none !important;
    }

    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        .reveal {
            opacity: 1 !important;
            transform: none !important;
        }

        .welcome-screen {
            transition: none !important;
        }
    }

/* ==========================================================================
   Production Mobile Polish
   ========================================================================== */
@media (max-width: 900px) {
    p,
    li,
    .hero-description,
    .result-card-kicker,
    .suggestion-content .res-meta {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    h2 {
        font-size: clamp(1.35rem, 5.2vw, 1.85rem);
        line-height: 1.18;
    }

    h3,
    .service-info h3,
    .package-header h3 {
        font-size: clamp(1.1rem, 4.6vw, 1.45rem);
        line-height: 1.2;
    }

    .content-section {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .btn-pop,
    .btn-secondary,
    .btn-select,
    .small-cta,
    .intake-submit,
    .btn-submit,
    .result-card-link,
    .nav-links a,
    .nav-cta {
        min-height: 44px;
    }

    .nav-links a {
        display: inline-flex;
        align-items: center;
        padding: 8px 10px;
    }

    .suggestion-item {
        padding-top: 13px;
        padding-bottom: 13px;
    }
}

@media (max-width: 768px) {
    .hero-description {
        max-width: 54ch;
        margin-bottom: 1.6rem;
    }

    .service-info,
    .package-content,
    .package-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .result-card-body {
        margin: 1.2rem 0;
    }

    .policies-section .card-glass {
        max-width: 760px;
        margin-inline: auto;
    }

    .policies-section .card-glass h1 {
        margin-bottom: 1.1rem;
    }

    .policies-section .card-glass p {
        font-size: 0.96rem;
        line-height: 1.65;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .section-title {
        margin-bottom: 22px;
    }

    p,
    li {
        font-size: 0.92rem;
    }

    .policies-section .card-glass p {
        font-size: 0.92rem;
        line-height: 1.6;
    }
}

/* ==========================================================================
   Mobile Centering Lock
   ========================================================================== */
@media (max-width: 980px) {
    .hero-section .container,
    .content-section > .container,
    .auth-split-main .content-section > .container,
    .about-hero-grid,
    .about-contact-grid,
    .about-capabilities-grid,
    .results-page .container {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .auth-split-main .content-section > .container {
        display: flex;
        justify-content: center;
    }

    .auth-split-main .auth-card,
    .auth-card,
    .intake-form-panel,
    .policies-section .card-glass,
    .about-quick-launch,
    .modal-card,
    .modal-content.card-glass {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .auth-split-main .auth-card {
        width: min(100%, 460px);
    }

}

@media (max-width: 768px) {
    .hero-section .container,
    .content-section > .container,
    .about-contact-copy,
    .about-quick-launch,
    .about-capability-card,
    .result-card,
    .service-info,
    .package-content,
    .package-footer,
    .bookmark-card,
    .results-empty-state {
        text-align: center;
    }

    .hero-actions,
    .empty-bookmarks-actions,
    .about-contact-grid,
    .about-hero-grid,
    .about-capabilities-grid {
        justify-items: center;
    }

    .contact-item {
        justify-content: center;
        text-align: left;
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
    }

    .service-meta,
    .remember-forgot {
        align-items: center;
    }

    .home-feature-grid > .card-glass:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(100%, 420px);
    }

}

/* ==========================================================================
   PRIVACY.HTML: LEGAL PAGE STYLING
   ========================================================================== */

.policies-section {
    background: linear-gradient(135deg, rgba(10, 12, 18, 0.92), rgba(23, 11, 15, 0.89));
    padding: 100px 8%;
    min-height: calc(100vh - 340px);
    position: relative;
}

.policies-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(160deg, rgba(8, 10, 16, 0.88), rgba(26, 10, 15, 0.86));
    border: 1px solid rgba(185, 28, 28, 0.2);
    border-radius: 28px;
    padding: 60px 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(185, 28, 28, 0.12);
}

.policies-container h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    margin-top: 0;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, rgba(255, 150, 150, 0.95));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.policies-container h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: rgba(255, 220, 220, 0.98);
    border-bottom: 2px solid rgba(185, 28, 28, 0.35);
    padding-bottom: 12px;
}

.policies-container h3 {
    font-size: 1.4rem;
    margin-top: 36px;
    margin-bottom: 14px;
    font-weight: 700;
    color: rgba(255, 200, 200, 0.95);
}

.policies-container p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 230, 230, 0.88);
    margin-bottom: 16px;
    text-align: justify;
}

.policies-container ul,
.policies-container ol {
    margin: 20px 0;
    padding-left: 28px;
}

.policies-container li {
    font-size: 0.98rem;
    line-height: 1.75;
    color: rgba(255, 225, 225, 0.85);
    margin-bottom: 12px;
}

.policies-container li strong {
    color: rgba(255, 180, 180, 0.95);
    font-weight: 700;
}

.policy-section {
    margin-bottom: 40px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid rgba(185, 28, 28, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.policy-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(255, 120, 120, 0.7);
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.15);
}

.policy-section h3 {
    color: rgba(255, 160, 160, 0.98);
    margin-top: 0;
}

.policy-section p:last-child {
    margin-bottom: 0;
}

.privacy-effective-date {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(185, 28, 28, 0.15);
    border: 1px solid rgba(185, 28, 28, 0.35);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 180, 180, 0.95);
    margin: 20px 0;
}

.contact-section {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.08), rgba(127, 29, 29, 0.06));
    border: 1px solid rgba(185, 28, 28, 0.3);
    border-radius: 18px;
    text-align: center;
}

.contact-section h3 {
    margin-top: 0;
    color: rgba(255, 200, 200, 0.98);
}

.contact-section p {
    margin: 12px 0;
}

.contact-section a {
    color: rgba(255, 150, 150, 0.95);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 150, 150, 0.5);
    transition: all 0.3s ease;
}

.contact-section a:hover {
    color: #ff7070;
    border-bottom-color: #ff7070;
}

/* Table Styling for Privacy/Terms Content */
.policies-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
}

.policies-container table th {
    background: rgba(185, 28, 28, 0.2);
    padding: 14px;
    text-align: left;
    font-weight: 800;
    color: rgba(255, 190, 190, 0.98);
    border: 1px solid rgba(185, 28, 28, 0.3);
    font-size: 0.95rem;
}

.policies-container table td {
    padding: 12px 14px;
    border: 1px solid rgba(185, 28, 28, 0.18);
    color: rgba(255, 220, 220, 0.88);
    font-size: 0.92rem;
}

.policies-container table tr:hover {
    background: rgba(185, 28, 28, 0.08);
}

/* Code/Examples Block */
.policies-container code,
.policies-container pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(185, 28, 28, 0.25);
    border-radius: 8px;
    padding: 6px 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    color: rgba(255, 200, 200, 0.9);
}

.policies-container pre {
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    line-height: 1.5;
}

/* Responsive Adjustments for Privacy Page */
@media (max-width: 1024px) {
    .policies-container {
        padding: 44px 36px;
    }

    .policies-container h1 {
        font-size: 2.2rem;
    }

    .policies-container h2 {
        font-size: 1.55rem;
    }

    .policies-container h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .policies-section {
        padding: 60px 5%;
    }

    .policies-container {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .policies-container h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .policies-container h2 {
        font-size: 1.4rem;
        margin-top: 36px;
    }

    .policies-container p,
    .policies-container li {
        font-size: 0.95rem;
        text-align: left;
    }

    .policy-section {
        padding: 20px;
        margin-bottom: 28px;
    }

    .contact-section {
        margin-top: 36px;
        padding: 24px;
    }

    .policies-container table {
        font-size: 0.88rem;
    }

    .policies-container table th,
    .policies-container table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .policies-section {
        padding: 44px 4%;
        min-height: auto;
    }

    .policies-container {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .policies-container h1 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .policies-container h2 {
        font-size: 1.2rem;
        margin-top: 28px;
    }

    .policies-container h3 {
        font-size: 1.05rem;
    }

    .policies-container p {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .policies-container ul,
    .policies-container ol {
        padding-left: 20px;
    }

    .policies-container li {
        font-size: 0.9rem;
    }

    .policy-section {
        padding: 16px;
    }

    .privacy-effective-date {
        font-size: 0.82rem;
        padding: 8px 14px;
    }

    .contact-section {
        padding: 18px;
    }

    .policies-container table {
        font-size: 0.8rem;
    }

    .policies-container table th,
    .policies-container table td {
        padding: 8px;
    }

    .policies-container code,
    .policies-container pre {
        font-size: 0.8rem;
    }

    .policies-container pre {
        padding: 12px;
    }
}
