:root {
    color-scheme: dark;
    --bg: transparent;
    --surface: rgba(255, 255, 255, 0.05);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* =====================================================
   PRE-LOGIN PAGE STYLES (GitHub-style violet sparkle background)
   These styles only apply to pages using FullPageLayout
   ===================================================== */

/* Pre-login page container with dark background and sparkle effect */
.prelogin-page {
    min-height: 100vh;
    position: relative;
    background: #0d1117;
    color: var(--text);
}

    /* GitHub-style violet/purple glow background - only for pre-login pages */
    /* Clean design: violet glow only in upper-middle area */
    .prelogin-page::before {
        content: '';
        position: fixed;
        inset: 0;
        background:
        /* Main top-center glow - violet */
        radial-gradient(ellipse 100% 60% at 50% -10%, rgba(139, 92, 246, 0.45) 0%, transparent 55%),
        /* Secondary top glow - slightly wider */
        radial-gradient(ellipse 80% 45% at 50% 5%, rgba(124, 58, 237, 0.35) 0%, transparent 50%),
        /* Soft accent for depth */
        radial-gradient(ellipse 60% 35% at 50% 0%, rgba(167, 139, 250, 0.3) 0%, transparent 45%);
        z-index: 0;
        pointer-events: none;
    }

    /* GitHub-style star/sparkle field - only for pre-login pages */
    .prelogin-page::after {
        content: '';
        position: fixed;
        inset: 0;
        background-image:
        /* Bright stars */
        radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.9), transparent), radial-gradient(1.5px 1.5px at 20% 25%, rgba(255, 255, 255, 0.8), transparent), radial-gradient(1px 1px at 30% 5%, rgba(255, 255, 255, 0.7), transparent), radial-gradient(1.5px 1.5px at 40% 15%, rgba(255, 255, 255, 0.85), transparent), radial-gradient(1px 1px at 50% 8%, rgba(255, 255, 255, 0.6), transparent), radial-gradient(2px 2px at 60% 20%, rgba(255, 255, 255, 0.95), transparent), radial-gradient(1px 1px at 70% 12%, rgba(255, 255, 255, 0.7), transparent), radial-gradient(1.5px 1.5px at 80% 18%, rgba(255, 255, 255, 0.8), transparent), radial-gradient(1px 1px at 90% 5%, rgba(255, 255, 255, 0.6), transparent), radial-gradient(1px 1px at 5% 30%, rgba(255, 255, 255, 0.7), transparent), radial-gradient(1.5px 1.5px at 15% 40%, rgba(255, 255, 255, 0.8), transparent), radial-gradient(1px 1px at 25% 35%, rgba(255, 255, 255, 0.65), transparent), radial-gradient(2px 2px at 35% 45%, rgba(255, 255, 255, 1), transparent), radial-gradient(1px 1px at 45% 38%, rgba(255, 255, 255, 0.7), transparent), radial-gradient(1.5px 1.5px at 55% 42%, rgba(255, 255, 255, 0.75), transparent), radial-gradient(1px 1px at 65% 32%, rgba(255, 255, 255, 0.6), transparent), radial-gradient(1px 1px at 75% 48%, rgba(255, 255, 255, 0.7), transparent), radial-gradient(1.5px 1.5px at 85% 35%, rgba(255, 255, 255, 0.8), transparent), radial-gradient(1px 1px at 95% 42%, rgba(255, 255, 255, 0.65), transparent), radial-gradient(1px 1px at 8% 55%, rgba(255, 255, 255, 0.7), transparent), radial-gradient(1.5px 1.5px at 18% 62%, rgba(255, 255, 255, 0.75), transparent), radial-gradient(1px 1px at 28% 58%, rgba(255, 255, 255, 0.6), transparent), radial-gradient(1px 1px at 38% 65%, rgba(255, 255, 255, 0.7), transparent), radial-gradient(2px 2px at 48% 52%, rgba(255, 255, 255, 0.9), transparent), radial-gradient(1px 1px at 58% 68%, rgba(255, 255, 255, 0.65), transparent), radial-gradient(1.5px 1.5px at 68% 55%, rgba(255, 255, 255, 0.8), transparent), radial-gradient(1px 1px at 78% 62%, rgba(255, 255, 255, 0.7), transparent), radial-gradient(1px 1px at 88% 58%, rgba(255, 255, 255, 0.6), transparent), radial-gradient(1.5px 1.5px at 98% 65%, rgba(255, 255, 255, 0.75), transparent), radial-gradient(1px 1px at 12% 75%, rgba(255, 255, 255, 0.7), transparent), radial-gradient(1px 1px at 22% 82%, rgba(255, 255, 255, 0.6), transparent), radial-gradient(1.5px 1.5px at 32% 78%, rgba(255, 255, 255, 0.8), transparent), radial-gradient(1px 1px at 42% 85%, rgba(255, 255, 255, 0.65), transparent), radial-gradient(2px 2px at 52% 72%, rgba(255, 255, 255, 0.95), transparent), radial-gradient(1px 1px at 62% 88%, rgba(255, 255, 255, 0.7), transparent), radial-gradient(1px 1px at 72% 75%, rgba(255, 255, 255, 0.6), transparent), radial-gradient(1.5px 1.5px at 82% 82%, rgba(255, 255, 255, 0.75), transparent), radial-gradient(1px 1px at 92% 78%, rgba(255, 255, 255, 0.7), transparent), radial-gradient(1px 1px at 3% 92%, rgba(255, 255, 255, 0.65), transparent), radial-gradient(1.5px 1.5px at 17% 95%, rgba(255, 255, 255, 0.7), transparent), radial-gradient(1px 1px at 33% 90%, rgba(255, 255, 255, 0.6), transparent), radial-gradient(1px 1px at 47% 97%, rgba(255, 255, 255, 0.7), transparent), radial-gradient(1.5px 1.5px at 63% 92%, rgba(255, 255, 255, 0.8), transparent), radial-gradient(1px 1px at 77% 98%, rgba(255, 255, 255, 0.65), transparent), radial-gradient(2px 2px at 93% 90%, rgba(255, 255, 255, 0.9), transparent);
        background-size: 200% 200%;
        z-index: 0;
        pointer-events: none;
        animation: starfield 120s linear infinite;
    }

/* Ensure content appears above the background effects */
.prelogin-page > * {
    position: relative;
    z-index: 1;
}

@keyframes starfield {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Additional floating sparkles */
.sparkle-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 4s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

body.dark {
    color-scheme: light;
    --bg: #6b7280;
    --surface: #d8d4e8;
    --text: #1a1a1a;
    --muted: #666666;
    --border: #c4b5fd;
    --shadow: none;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    z-index: 1000;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(167, 139, 250, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark .site-header {
    background: rgba(167, 139, 250, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
}

.brand small {
    display: block;
    font-weight: 500;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: url('/assets/Hotelbuddy.png') no-repeat center center;
    background-size: contain;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 6px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.4));
    border: 2px solid rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.5), inset 0 0 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a.nav-login {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.9), rgba(139, 92, 246, 0.9));
    color: #ffffff;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
    transition: all 0.3s ease;
}

.nav-links a.nav-login:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(139, 92, 246, 1));
    box-shadow: 0 6px 16px rgba(167, 139, 250, 0.5);
    transform: translateY(-1px);
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.btn {
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.1);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.btn:hover {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(167, 139, 250, 0.2);
    color: #ffffff;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.9), rgba(139, 92, 246, 0.9));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(139, 92, 246, 1));
    color: #fff;
    box-shadow: 0 6px 20px rgba(167, 139, 250, 0.4);
}

.btn-link {
    border: none;
    background: transparent;
    color: rgba(167, 139, 250, 0.9);
}

.btn-link:hover {
    color: #a78bfa;
}

.icon-btn {
    padding: 8px 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.icon-btn:hover {
    color: #ffffff;
    background: rgba(167, 139, 250, 0.2);
}

.menu-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.menu-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Hamburger icon styling */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 20px;
    justify-content: center;
    align-items: center;
}

.hamburger-icon .line {
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-btn[aria-expanded="true"] .hamburger-icon .line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.menu-btn[aria-expanded="true"] .hamburger-icon .line:nth-child(2) {
    opacity: 0;
}

.menu-btn[aria-expanded="true"] .hamburger-icon .line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Mobile panel - initially hidden */
.mobile-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-top: 10px;
    padding: 20px;
    flex-direction: column;
    gap: 12px;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-panel.open {
    display: flex;
    animation: slideDown 0.3s ease-out forwards;
}

.mobile-panel a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    font-size: 15px;
    cursor: pointer;
}

.mobile-panel a:last-child {
    border-bottom: none;
}

.mobile-panel a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.mobile-panel .btn {
    margin-top: 8px;
    align-self: flex-start;
}

.mobile-panel a.nav-login {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.9), rgba(139, 92, 246, 0.9));
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
    padding: 16px 24px;
    border-bottom: none;
    margin-bottom: 12px;
}

.mobile-panel a.nav-login:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(139, 92, 246, 1));
    box-shadow: 0 6px 16px rgba(167, 139, 250, 0.5);
    transform: translateY(-2px) translateX(4px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    position: relative;
    padding: 80px 0 40px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -20%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 30% 20%, rgba(88, 28, 135, 0.2) 0%, transparent 40%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: start;
}

.hero-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #60a5fa;
}

.hero h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.9);
    animation: zoomIn 0.8s ease 0.2s forwards;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-head h2 {
        font-size: 1.8rem;
    }
}

.lead {
    font-size: 18px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.9);
    animation: zoomIn 0.8s ease 0.3s forwards;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.hero-stats-inline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

.hero-stats-inline .stat {
    background: rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat {
    background: rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.stat .num {
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
}

.stat .label {
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Image Styles */
.hero-image-container {
    margin-bottom: 24px;
}

.hero-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    /* Elegant theme-matching border with subtle shadow */
    border: 2px solid rgba(96, 165, 250, 0.3);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 
        /* Subtle elevated shadow */
        0 8px 32px rgba(0, 0, 0, 0.25),
        /* Inner highlight */
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* Smooth transitions */
    transition: all 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(96, 165, 250, 0.2);
}

/* Responsive adjustments for hero image */
@media (max-width: 768px) {
    .hero-image-container {
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-image {
        max-width: 320px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .hero-image-container {
        margin-bottom: 16px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-image {
        max-width: 260px;
        border-radius: 12px;
    }
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-card {
    background: rgba(167, 139, 250, 0.15);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    box-shadow:
        0 8px 32px rgba(167, 139, 250, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-card h2 {
    margin-top: 0;
    color: #ffffff;
    font-weight: 600;
}

.login-card .muted {
    color: rgba(255, 255, 255, 0.8);
}

.login-card label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

/* Password field with toggle button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .input {
    width: 100%;
    padding-right: 48px; /* Make room for the toggle button */
    box-sizing: border-box;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
    z-index: 2;
    line-height: 1;
    /* Ensure good touch target on mobile */
    min-width: 36px;
    min-height: 36px;
}

.toggle-password-btn:hover,
.toggle-password-btn:focus {
    color: rgba(255, 255, 255, 0.9);
    outline: none;
}

.toggle-password-btn:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.8);
    outline-offset: 2px;
    border-radius: 4px;
}

.eye-icon {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #ffffff;
}

.checkbox-row input[type="checkbox"] {
    accent-color: rgba(167, 139, 250, 0.8);
}

.w-100 {
    width: 100%;
}

.divider {
    text-align: center;
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.login-links {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
}

/* Shared base for all three login-link buttons */
.login-links .forgot-link,
.login-links .register-link,
.login-links .resend-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(8px);
}

.login-links .forgot-link,
.login-links .register-link,
.login-links .resend-link {
    border: 1.5px solid transparent;
}

/* "Forgot your password?" — subtle white ghost */
.login-links .forgot-link {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
}

.login-links .forgot-link::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.75)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.login-links .forgot-link:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    text-decoration: none;
}

.login-links .forgot-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}

/* "Register as a new user" — purple outlined (most prominent) */
.login-links .register-link {
    border-color: rgba(167, 139, 250, 0.55);
    background: rgba(167, 139, 250, 0.08);
    color: #c4b5fd;
}

.login-links .register-link::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cline x1='19' y1='8' x2='19' y2='14'/%3E%3Cline x1='22' y1='11' x2='16' y2='11'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.login-links .register-link:hover {
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.85);
    color: #ede9fe;
    box-shadow: 0 4px 18px rgba(167, 139, 250, 0.2);
    text-decoration: none;
}

.login-links .register-link:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.7);
    outline-offset: 2px;
}

/* "Resend email confirmation" — muted blue ghost */
.login-links .resend-link {
    border-color: rgba(96, 165, 250, 0.25);
    background: rgba(96, 165, 250, 0.05);
    color: rgba(147, 197, 253, 0.8);
}

.login-links .resend-link::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(147,197,253,0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.login-links .resend-link:hover {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.5);
    color: #bfdbfe;
    text-decoration: none;
}

.login-links .resend-link:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.5);
    outline-offset: 2px;
}

.mock {
    background: var(--surface);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid var(--border);
}

.note {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 32px;
}

.note strong {
    color: #ffffff;
}

.section {
    padding: 60px 0;
    position: relative;
}

.section.alt {
    background: rgba(255, 255, 255, 0.02);
}

.section-head {
    text-align: center;
    margin-bottom: 32px;
    opacity: 0;
    transform: scale(0.9);
    animation: zoomIn 0.8s ease forwards;
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Login card pop-up for mobile/tablet ── */
@keyframes cardPopUpMobile {
    0% {
        opacity: 0;
        transform: scale(0.88) translateY(32px);
    }
    55% {
        opacity: 1;
        transform: scale(1.04) translateY(-5px);
    }
    75% {
        transform: scale(0.97) translateY(3px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── Section cards staggered fade-in for mobile/tablet ── */
@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.section-head h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}

.section-head .sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 960px) {
    .grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    /* Section cards staggered fade-in on tablet (960px) */
    .card,
    .card.feature {
        opacity: 0;
        animation: cardFadeInUp 0.48s ease forwards;
    }

    .grid.cols-3 .card:nth-child(1),
    .grid.cols-3 .card.feature:nth-child(1) { animation-delay: 0.05s; }
    .grid.cols-3 .card:nth-child(2),
    .grid.cols-3 .card.feature:nth-child(2) { animation-delay: 0.13s; }
    .grid.cols-3 .card:nth-child(3),
    .grid.cols-3 .card.feature:nth-child(3) { animation-delay: 0.21s; }
    .grid.cols-3 .card:nth-child(4),
    .grid.cols-3 .card.feature:nth-child(4) { animation-delay: 0.29s; }
    .grid.cols-3 .card:nth-child(5),
    .grid.cols-3 .card.feature:nth-child(5) { animation-delay: 0.37s; }
    .grid.cols-3 .card:nth-child(6),
    .grid.cols-3 .card.feature:nth-child(6) { animation-delay: 0.45s; }

    .section {
        padding: 48px 0;
    }

    .section-head {
        margin-bottom: 28px;
    }

    .section-head h2 {
        font-size: 2rem;
    }

    .section-head .sub {
        font-size: 1rem;
    }

    .ai-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid.cols-3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ai-timeline {
        grid-template-columns: 1fr;
    }
}

.ai-timeline {
    position: relative;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.ai-timeline::before {
    display: none;
}

.ai-timeline-card {
    position: relative;
    padding: 20px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.35);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-timeline-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.ai-timeline-card p {
    color: rgba(255, 255, 255, 0.9);
}

.ai-timeline-card .muted {
    color: rgba(255, 255, 255, 0.85);
}

.ai-timeline-card .list {
    color: #ffffff;
}

.ai-timeline-card .list li {
    color: #ffffff;
}

.ai-timeline-card:nth-child(1) {
    animation-delay: 0.1s;
}

.ai-timeline-card:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-timeline-card:nth-child(3) {
    animation-delay: 0.3s;
}

.ai-timeline-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow:
        0 20px 40px rgba(96, 165, 250, 0.3),
        0 0 30px rgba(96, 165, 250, 0.2);
}

.card {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(10, 15, 35, 0.70) 100%
    );
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

/* Glass sheen highlight at top-left (matches image style) */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 100%
    );
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:nth-child(6) {
    animation-delay: 0.6s;
}

.card:hover {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(167, 139, 250, 0.10) 40%,
        rgba(10, 15, 35, 0.80) 100%
    );
    border-color: rgba(167, 139, 250, 0.35);
    transform: translateY(-6px) scale(1.015);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(167, 139, 250, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.card h3 {
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.card:hover h3 {
    color: #e0d7ff;
}

.card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.7;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.card.feature {
    position: relative;
    overflow: hidden;
}

.card.feature::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card.feature:hover::before {
    opacity: 1;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-grid > div {
    min-width: 0;
}

.footer-grid > div:first-child .muted {
    word-break: break-word;
    overflow-wrap: break-word;
}

.footer-grid h4 {
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

/* Pre-login page footer with darker blue background */
.prelogin-page .site-footer,
.site-footer {
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.95) 0%, #0a0f1a 50%, #070b14 100%);
    padding: 48px 0 24px;
    margin-top: 60px;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
    z-index: 2;
}

/* Ensure footer content is visible */
.site-footer .container {
    position: relative;
    z-index: 1;
}

.pill {
    display: inline-flex;
    padding: 6px 12px;
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 8px;
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.muted {
    color: rgba(255, 255, 255, 0.6);
}

/* Enhanced heading visibility */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff;
}

.section h2,
.section h3 {
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Scroll animation initial state */
.section-head,
.cta,
.card,
.ai-timeline-card,
.ai-journey-card {
    scroll-margin-top: 100px;
}

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.15);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.list {
    padding-left: 24px;
    color: #ffffff;
    margin: 12px 0;
    line-height: 1.8;
}

.list li {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 15px;
}

.list li::marker {
    color: #a78bfa;
    font-weight: bold;
}

.card .list {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.card .list li {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.card:hover .list li {
    color: #ffffff;
}

.card .badge {
    position: relative;
    z-index: 1;
}

.ai-timeline-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.ai-timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.8);
    flex-shrink: 0;
}

.ai-timeline-step {
    margin-left: auto;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.ai-timeline-label {
    color: #ffffff;
    font-weight: 600;
}

.ai-journey-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ai-journey-card {
    position: relative;
    border: 1px solid rgba(167, 139, 250, 0.18);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.35);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 18px;
    padding: 24px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.ai-journey-card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.ai-journey-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    flex-grow: 1;
}

.ai-journey-card .list {
    color: #ffffff;
    margin-top: auto;
}

.ai-journey-card .list li {
    color: #ffffff;
}

.ai-journey-card:nth-child(1) {
    animation-delay: 0.1s;
}

.ai-journey-card:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-journey-card:nth-child(3) {
    animation-delay: 0.3s;
}

.ai-journey-card:nth-child(4) {
    animation-delay: 0.4s;
}

.ai-journey-card:nth-child(5) {
    animation-delay: 0.5s;
}

.ai-journey-card:nth-child(6) {
    animation-delay: 0.6s;
}

.ai-journey-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow:
        0 20px 40px rgba(167, 139, 250, 0.3),
        0 0 30px rgba(167, 139, 250, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.ai-journey-card::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.7), rgba(167, 139, 250, 0.1));
    opacity: 0.7;
    transition: all 0.4s ease;
}

.ai-journey-card:hover::before {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.6);
}

@media (max-width: 960px) {
    .ai-journey-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ai-journey-grid {
        grid-template-columns: 1fr;
    }

    .ai-timeline {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   Panel Contrast Improvements
   Ensures text inside light panels/cards/drawers is readable
   ============================== */

.cancel-panel,
.card,
.details-drawer,
.details-drawer .drawer-header,
.details-drawer .drawer-content,
.task-drawer,
.task-drawer * {
    color: #1f2937 !important; /* dark slate for high contrast on light panels */
}

/* Slightly muted but readable secondary text inside panels */
.cancel-panel .text-muted,
.card .text-muted,
.details-drawer .text-muted,
.task-drawer .text-muted {
    color: #4b5563 !important;
}

/* Form labels and small helper text should be clearly visible */
.cancel-panel label,
.card label,
.details-drawer label,
.cancel-panel .form-label,
.card .form-label,
.details-drawer .form-label {
    color: #111827 !important;
    font-weight: 600;
}

/* Inputs and Radzen components inside panels */
.details-drawer .rz-dropdown .rz-inputtext,
.details-drawer .rz-dropdown .rz-dropdown-label,
.details-drawer .rz-inputtext,
.cancel-panel .rz-dropdown .rz-inputtext,
.cancel-panel .rz-dropdown .rz-dropdown-label,
.cancel-panel input,
.cancel-panel textarea,
.card input,
.card textarea,
.task-drawer input,
.task-drawer textarea {
    color: #1f2937 !important;
}

/* Small helper text (counts, hints) */
.cancel-panel small,
.card small,
.details-drawer small {
    color: #475569 !important;
}

/* Buttons inside panels keep existing styles but ensure text contrast */
.cancel-panel .btn,
.card .btn,
.details-drawer .btn {
    color: inherit !important;
}

/* Ensure Radzen dropdown panels show readable text when inside drawers */
.details-drawer .rz-dropdown-panel,
.cancel-panel .rz-dropdown-panel,
.task-drawer .rz-dropdown-panel {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

/* End panel contrast improvements */

/* ==============================
   RESPONSIVE NAVIGATION & MOBILE MENU
   ============================== */

/* Navigation container */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    position: relative;
}

/* Navigation links - show on desktop, hide on mobile */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Navigation actions (hamburger menu) - hide on desktop, show on mobile */
.nav-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.menu-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.menu-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Mobile panel - initially hidden */
.mobile-panel {
    display: none;
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 999;
    padding: 20px;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.mobile-panel.open {
    display: flex;
    animation: slideDown 0.3s ease-out forwards;
}

.mobile-panel a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    font-size: 15px;
    cursor: pointer;
}

.mobile-panel a:last-child {
    border-bottom: none;
}

.mobile-panel a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.mobile-panel .btn {
    margin-top: 8px;
    align-self: flex-start;
}

.mobile-panel a.nav-login {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.9), rgba(139, 92, 246, 0.9));
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
    padding: 16px 24px;
    border-bottom: none;
    margin-bottom: 12px;
}

.mobile-panel a.nav-login:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(139, 92, 246, 1));
    box-shadow: 0 6px 16px rgba(167, 139, 250, 0.5);
    transform: translateY(-2px) translateX(4px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   CTA (Call to Action) SECTIONS  
   ============================== */

.cta {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    border: 1px solid rgba(167, 139, 250, 0.2);
    backdrop-filter: blur(10px);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.8s ease;
}

.cta:hover::before {
    left: 100%;
}

.cta-inner {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .hero-actions {
    justify-content: center;
    margin: 30px 0 0 0;
}

/* Center utility */
.center {
    text-align: center;
}

/* ==============================
   RESPONSIVE BREAKPOINTS
   ============================== */

/* Large tablets and small desktops - 1024px and up */
@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    
    .nav-actions {
        display: none;
    }
    
    .mobile-panel {
        display: none;
    }
}

/* Tablets - 768px to 1023px */
@media (max-width: 1023px) {
    .nav-links {
        display: none;
    }
    
    .nav-actions {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Login card pop-up animation on tablet — slides up from below */
    .login-card {
        margin-top: 20px;
        animation: cardPopUpMobile 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
        animation-delay: 0.15s;
    }

    /* ── Contact page hero-left: left-aligned on tablet ── */
    .hero-left {
        text-align: left;
    }

    .hero-left .note {
        text-align: left;
        margin-top: 24px;
    }

    .hero-left .list {
        text-align: left;
        padding-left: 22px;
    }

    .hero-left .list li {
        text-align: left;
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-left .hero-stats-inline .stat {
        text-align: left;
    }

    .hero-left .muted {
        text-align: left;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-head h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    /* Section cards staggered fade-in on tablet */
    .card,
    .card.feature {
        opacity: 0;
        animation: cardFadeInUp 0.5s ease forwards;
    }

    .grid.cols-3 .card:nth-child(1),
    .grid.cols-3 .card.feature:nth-child(1) { animation-delay: 0.05s; }
    .grid.cols-3 .card:nth-child(2),
    .grid.cols-3 .card.feature:nth-child(2) { animation-delay: 0.12s; }
    .grid.cols-3 .card:nth-child(3),
    .grid.cols-3 .card.feature:nth-child(3) { animation-delay: 0.19s; }
    .grid.cols-3 .card:nth-child(4),
    .grid.cols-3 .card.feature:nth-child(4) { animation-delay: 0.26s; }
    .grid.cols-3 .card:nth-child(5),
    .grid.cols-3 .card.feature:nth-child(5) { animation-delay: 0.33s; }
    .grid.cols-3 .card:nth-child(6),
    .grid.cols-3 .card.feature:nth-child(6) { animation-delay: 0.40s; }
}

/* Mobile devices - 768px and below */
@media (max-width: 768px) {
    /* Navigation adjustments */
    .container {
        padding: 0 16px;
    }
    
    .nav {
        padding: 16px 0;
        gap: 16px;
    }
    
    .brand {
        font-size: 16px;
    }
    
    .brand small {
        font-size: 11px;
    }
    
    /* Hero section mobile layout */
    .hero {
        padding: 40px 0 20px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .lead {
        font-size: 16px;
    }
    
    .hero-actions {
        justify-content: center;
        gap: 10px;
    }
    
    .hero-actions .btn {
        flex: 1;
        min-width: 140px;
        max-width: 200px;
    }
    
    /* Stats grid mobile */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Center stats in hero-stats (login page), but NOT in hero-stats-inline (contact page) */
    .hero-stats .stat {
        padding: 12px;
        text-align: center;
    }
    
    /* ── Contact page hero-left: force left-aligned readable layout on mobile ── */
    .hero-left {
        text-align: left;
    }

    .hero-left .note {
        text-align: left;
        padding: 16px;
        margin-top: 20px;
        border-radius: 14px;
    }

    .hero-left .note strong {
        display: block;
        font-size: 1rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .hero-left .list {
        padding-left: 20px;
        text-align: left;
    }

    .hero-left .list li {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 6px;
        text-align: left;
    }

    .hero-left .hero-stats-inline {
        margin-top: 16px;
    }

    .hero-left .hero-stats-inline .stat {
        text-align: left;
        padding: 14px 16px;
        border-radius: 14px;
    }

    .hero-left .hero-stats-inline .stat .num {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
    }

    .hero-left .hero-stats-inline .stat > div:nth-child(2) {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 10px;
    }

    .hero-left .pill {
        font-size: 11px;
        padding: 5px 10px;
        border-radius: 999px;
        white-space: nowrap;
    }

    .hero-left .muted {
        text-align: left;
        font-size: 13px;
        line-height: 1.5;
    }

    /* Login card mobile adjustments */
    .login-card {
        padding: 20px;
        border-radius: 16px;
        margin-top: 16px;
        text-align: left; /* Override hero-grid center alignment */
        animation: cardPopUpMobile 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
        animation-delay: 0.2s;
    }
    
    .login-card h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
        text-align: left;
    }

    .login-card label,
    .login-card .muted,
    .login-card .field,
    .login-card .checkbox-row,
    .login-card .login-links,
    .login-card .divider {
        text-align: left;
    }
    
    .field {
        margin-bottom: 16px;
    }
    
    .input {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 16px;
    }

    .login-links .forgot-link,
    .login-links .register-link,
    .login-links .resend-link {
        padding: 14px 20px;
        font-size: 16px;
    }

    /* Section adjustments */
    .section {
        padding: 30px 0;
    }
    
    .section-head {
        margin-bottom: 24px;
    }
    
    .section-head h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .section-head .sub {
        font-size: 14px;
    }
    
    /* Grid adjustments */
    .grid.cols-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Section cards staggered fade-in on mobile */
    .card,
    .card.feature {
        opacity: 0;
        animation: cardFadeInUp 0.45s ease forwards;
    }

    .grid.cols-3 .card:nth-child(1),
    .grid.cols-3 .card.feature:nth-child(1) { animation-delay: 0.05s; }
    .grid.cols-3 .card:nth-child(2),
    .grid.cols-3 .card.feature:nth-child(2) { animation-delay: 0.13s; }
    .grid.cols-3 .card:nth-child(3),
    .grid.cols-3 .card.feature:nth-child(3) { animation-delay: 0.21s; }
    .grid.cols-3 .card:nth-child(4),
    .grid.cols-3 .card.feature:nth-child(4) { animation-delay: 0.29s; }
    .grid.cols-3 .card:nth-child(5),
    .grid.cols-3 .card.feature:nth-child(5) { animation-delay: 0.37s; }
    .grid.cols-3 .card:nth-child(6),
    .grid.cols-3 .card.feature:nth-child(6) { animation-delay: 0.45s; }

    .card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .card p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Footer adjustments — 4 columns on tablet, compact */
    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
        gap: 16px;
        text-align: left;
    }

    .footer-grid > div:first-child .muted {
        font-size: 11px;
        line-height: 1.5;
    }

    .footer-grid h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .footer-link {
        font-size: 12px;
    }

    .footer-grid .pill {
        font-size: 10px;
        padding: 4px 8px;
        margin-bottom: 5px;
        display: block;
        width: fit-content;
    }

    .site-footer {
        padding: 28px 0 18px;
        margin-top: 40px;
    }
    
    /* CTA responsive */
    .cta {
        padding: 40px 20px;
        margin: 30px 0;
        border-radius: 16px;
    }
    
    .cta h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .cta p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
}

/* Small mobile devices - 480px and below */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .nav {
        padding: 12px 0;
    }
    
    .brand {
        font-size: 15px;
    }
    
    .brand-mark {
        width: 32px;
        height: 32px;
    }
    
    .hero {
        padding: 30px 0 15px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .lead {
        font-size: 14px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: none;
    }
    
    .login-card {
        padding: 16px;
        border-radius: 12px;
        text-align: left;
        animation: cardPopUpMobile 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
        animation-delay: 0.2s;
    }
    
    .login-card h2 {
        font-size: 1.3rem;
        text-align: left;
    }

    .login-links .forgot-link,
    .login-links .register-link,
    .login-links .resend-link {
        padding: 13px 18px;
        font-size: 15px;
    }

    .section {
        padding: 20px 0;
    }
    
    .section-head h2 {
        font-size: 1.4rem;
    }
    
    .card {
        padding: 16px;
    }
    
    .note {
        padding: 12px;
        font-size: 14px;
    }

    /* ── Contact page: small mobile (480px) ── */
    .hero-left .note {
        padding: 14px;
        margin-top: 16px;
        border-radius: 12px;
    }

    .hero-left .note strong {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .hero-left .list li {
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 5px;
    }

    .hero-left .hero-stats-inline .stat .num {
        font-size: 14px;
    }

    .hero-left .pill {
        font-size: 10px;
        padding: 4px 9px;
    }

    .hero-left .muted {
        font-size: 12px;
    }
    
    /* Mobile panel adjustments for small screens */
    .mobile-panel {
        padding: 16px;
        margin-top: 8px;
        border-radius: 8px;
    }
    
    .mobile-panel a {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Footer — 4 columns on small phones, ultra-compact */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 10px;
        text-align: left;
    }

    .footer-grid > div:first-child .brand {
        font-size: 12px;
    }

    .footer-grid > div:first-child .brand small {
        display: none;
    }

    .footer-grid > div:first-child .muted {
        display: none;
    }

    .footer-grid h4 {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .footer-link {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .footer-grid .pill {
        font-size: 10px;
        padding: 3px 7px;
        margin-bottom: 4px;
        display: block;
        width: fit-content;
    }

    .footer-bottom {
        font-size: 11px;
        margin-top: 14px;
    }
    
    /* CTA responsive */
    .cta {
        padding: 30px 16px;
        border-radius: 12px;
    }
    
    .cta h2 {
        font-size: 1.5rem;
    }
    
    .cta p {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Very small screens - 360px and below */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .login-card {
        padding: 12px;
        text-align: left;
        animation: cardPopUpMobile 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
        animation-delay: 0.2s;
    }
    
    .login-card h2 {
        font-size: 1.2rem;
        text-align: left;
    }
    
    .input {
        padding: 12px 14px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 15px;
    }

    .login-links .forgot-link,
    .login-links .register-link,
    .login-links .resend-link {
        padding: 12px 16px;
        font-size: 15px;
    }

    /* ── Contact page: very small screens (360px) ── */
    .hero-left .note {
        padding: 12px;
        margin-top: 14px;
    }

    .hero-left .note strong {
        font-size: 0.9rem;
    }

    .hero-left .list {
        padding-left: 16px;
    }

    .hero-left .list li {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 4px;
    }

    .hero-left .hero-stats-inline .stat {
        padding: 10px 12px;
    }

    .hero-left .pill {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 20px 0 10px;
    }
    
    .hero-grid {
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .login-card {
        padding: 15px;
    }
    
    .section {
        padding: 25px 0;
    }
    
    .mobile-panel {
        max-height: 60vh;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-mark {
        /* Ensure crisp icons on retina displays */
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .mobile-panel.open {
        animation: none;
    }
}

/* Focus improvements for keyboard navigation */
@media (hover: none) and (pointer: coarse) {
    /* Touch device improvements */
    .btn, 
    .nav-links a, 
    .mobile-panel a,
    .menu-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn,
    .nav-links a,
    .mobile-panel a,
    .menu-btn,
    .nav-arrow,
    .indicator {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
}

/* Dark theme overrides for form labels */
[style*="background: #1E2C38"] .form-label,
[style*="background: #1E2C38"] label,
[style*="background:#1E2C38"] .form-label,
[style*="background:#1E2C38"] label {
    color: #ffffff !important;
}

[style*="background: #1E2C38"] .form-check-label {
    color: #ffffff !important;
}

/* Dark theme overrides for totals summary sections */
[style*="background: #1E2C38"] small,
[style*="background:#1E2C38"] small {
    color: #ffffff !important;
}

[style*="background: #1E2C38"] h5,
[style*="background:#1E2C38"] h5,
[style*="background: #1E2C38"] h6,
[style*="background:#1E2C38"] h6 {
    color: inherit !important;
}