:root {
    --color-primary: #FF0033;

    @keyframes neon-speed {
        0% {
            transform: scale(1) rotate(0deg);
            opacity: 0.5;
        }

        50% {
            opacity: 1;
        }

        100% {
            transform: scale(1.5) rotate(360deg);
            opacity: 0.5;
        }
    }

    .neon-speed-bg {
        position: absolute;
        inset: -50%;
        background: conic-gradient(from 0deg,
                transparent 0deg,
                rgba(255, 0, 51, 0.2) 60deg,
                rgba(0, 240, 255, 0.2) 120deg,
                transparent 180deg,
                rgba(255, 0, 51, 0.2) 240deg,
                rgba(0, 240, 255, 0.2) 300deg,
                transparent 360deg);
        animation: neon-speed 4s linear infinite;
        z-index: -1;
        filter: blur(20px);
    }

    .intro-active {
        overflow: hidden;
        /* Prevent scroll during intro */
    }

    /* Neon Red */
    --color-primary-dark: #cc0029;
    --color-secondary: #00f0ff;
    /* Electric Blue Accent */
    --color-bg-dark: #020617;
    /* Deep Slate/Black */
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.85);
    /* Dark Glass */
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 10px rgba(255, 0, 51, 0.5),
    0 0 20px rgba(255, 0, 51, 0.3);
    --shadow-strong: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.font-eurostile {
    font-family: 'Eurostile', 'Microgramma', 'Orbitron', 'Bai Jamjuree', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
html {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    margin: 0;
}

body.modal-open {
    overflow: hidden;
}

.min-h-screen {
    min-height: 100vh;
}

/* Removing destructive user overrides */

img,
video {
    max-width: 47%;
    height: auto;
    margin: 0 auto;
}

.app-shell {
    width: 100dvw;
    margin: 0 auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .app-shell {
        max-width: 100dvw;
    }
}

@media (min-width: 1024px) {
    .app-shell {
        max-width: 100dvw;
    }
}

.app-shell::before {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    filter: blur(120px);
    opacity: 0.3;
    background: radial-gradient(circle, rgba(255, 0, 51, 0.2) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
}

.app-shell::after {
    content: "";
    position: fixed;
    width: 460px;
    height: 460px;
    filter: blur(140px);
    opacity: 0.2;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    pointer-events: none;
    z-index: 0;
}

.app-header {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0));
    padding: 1.75rem 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.app-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.35), transparent 55%);
    opacity: 0.75;
    pointer-events: none;
    animation: shimmer 7s linear infinite;
}

.header-primary {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.header-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.18);
    object-fit: contain;
    box-shadow: 0 22px 46px -28px rgba(15, 23, 42, 0.7);
}

.header-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.header-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.header-subtitle {
    margin: 0;
    font-size: 0.92rem;
    opacity: 0.9;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.8rem;
    background: rgba(15, 23, 42, 0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-pill__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse 2.1s ease-out infinite;
}

.header-help {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: inline-flex;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    cursor: pointer;
    transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.header-help:hover,
.header-help:focus-visible {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.32);
    box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.55);
    outline: none;
}

.header-help i {
    font-size: 1.1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

main {
    flex-grow: 1;
    padding: clamp(1.5rem, 5vw, 2.2rem) clamp(1.2rem, 5vw, 2rem) clamp(7.5rem, 18vh, 8.5rem);
    background: transparent;
    position: relative;
    z-index: 1;
}

.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/nissan/img4.jpg') no-repeat center center;
    background-size: cover;
    padding: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: clamp(1.6rem, 4vw, 2.2rem);
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section__glow {
    position: absolute;
    width: clamp(220px, 40vw, 320px);
    height: clamp(220px, 40vw, 320px);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: heroGlowShift 12s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-section__glow--primary {
    top: -120px;
    right: -140px;
    background: rgba(195, 0, 47, 0.7);
}

.hero-section__glow--secondary {
    bottom: -140px;
    left: -120px;
    background: rgba(200, 200, 200, 0.4);
    animation-delay: 3s;
}

.hero-section__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    z-index: 1;
    max-width: 520px;
}

.hero-section__logo {
    width: clamp(180px, 40vw, 240px);
    height: auto;
    filter: drop-shadow(0 18px 32px rgba(15, 23, 42, 0.4));
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-section__title {
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
}

.hero-section__subtitle {
    margin: 0;
    font-size: clamp(0.92rem, 2.8vw, 1.02rem);
    color: rgba(248, 250, 252, 0.86);
    line-height: 1.6;
}

.hero-section__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.hero-section__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-section__pill:hover,
.hero-section__pill:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    outline: none;
}

.welcome-card {
    background: var(--glass-bg);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.welcome-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(195, 0, 47, 0.15), transparent 60%);
}

.welcome-card__icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1.2rem;
    background: rgba(195, 0, 47, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.welcome-card__content {
    position: relative;
    z-index: 1;
}

.welcome-card__content h2 {
    margin: 0 0 0.35rem;
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
}

.welcome-card__content p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.guidance-card {
    position: relative;
    border-radius: 20px;
    padding: 1.45rem 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.9rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.guidance-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(195, 0, 47, 0.4), rgba(0, 0, 0, 0.25));
    opacity: 0.7;
    mix-blend-mode: screen;
}

.guidance-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guidance-card__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.75);
}

.guidance-card__steps {
    display: grid;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.guidance-card__steps span {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.88);
}

.guidance-card__badge {
    width: 30px;
    height: 30px;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 600;
}

.menu-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.32s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.32s ease, border-color 0.32s ease;
    text-align: left;
    width: 100%;
    cursor: pointer;
    backdrop-filter: blur(18px);
}

.menu-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(195, 0, 47, 0.1), rgba(0, 0, 0, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-card:hover::after,
.menu-card:focus-visible::after {
    opacity: 1;
}

.menu-card:hover,
.menu-card:focus-visible {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(195, 0, 47, 0.45);
    box-shadow: 0 34px 70px -40px rgba(15, 23, 42, 0.6);
    outline: none;
}

.menu-card__icon {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 51, 0.1);
    color: var(--color-primary);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    border: 1px solid rgba(255, 0, 51, 0.2);
}

.menu-card:hover .menu-card__icon,
.menu-card:focus-visible .menu-card__icon {
    background: rgba(255, 0, 51, 0.2);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.4);
}

.menu-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-main);
    display: block;
}

.menu-card__subtitle {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.media-section {
    margin-top: 2.2rem;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    padding: 1.55rem 1.6rem;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: var(--shadow-soft);
}

.media-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.media-header h3 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
    color: #0f172a;
}

.media-header p {
    margin: 0.4rem 0 0;
    font-size: 0.84rem;
    color: #475569;
}

.media-cta {
    border: 1px solid rgba(195, 0, 47, 0.45);
    border-radius: 12px;
    padding: 0.55rem 0.95rem;
    background: rgba(195, 0, 47, 0.08);
    color: var(--color-primary);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.media-cta:hover,
.media-cta:focus-visible {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 22px 40px -28px rgba(195, 0, 47, 0.7);
    outline: none;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.photo-card {
    position: relative;
    border: none;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.65);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    background: transparent;
}

.photo-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.photo-card::after {
    content: "Ver más";
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.65rem;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.7));
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.photo-card:hover,
.photo-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 28px 65px -32px rgba(195, 0, 47, 0.55);
    outline: none;
}

.photo-card:hover::after,
.photo-card:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.timeline-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
}

.timeline-step::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.3), rgba(195, 0, 47, 0.45));
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-bullet {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 1.1rem;
    background: rgba(195, 0, 47, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-primary-dark);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(195, 0, 47, 0.18);
}

.timeline-content {
    background: var(--glass-bg);
    border-radius: 18px;
    padding: 0.95rem 1.1rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    flex: 1;
    backdrop-filter: blur(12px);
}

.timeline-content h4 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    color: var(--color-text-main);
}

.timeline-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.helper-toast {
    margin-top: 2rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    padding: 1.05rem 1.25rem;
    box-shadow: 0 30px 60px -38px rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    z-index: 2;
}

.helper-toast__icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.9rem;
    background: rgba(195, 0, 47, 0.12);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.helper-toast__content h3 {
    margin: 0 0 0.35rem;
    font-size: 0.96rem;
    font-weight: 600;
    color: #0f172a;
}

.helper-toast__content p {
    margin: 0 0 0.7rem;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
}

.helper-toast button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    color: #fff;
    padding: 0.55rem 0.92rem;
    border-radius: 12px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.helper-toast button:hover,
.helper-toast button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -30px rgba(15, 23, 42, 0.6);
    outline: none;
}

footer {
    position: sticky;
    bottom: 0;
    background: rgba(2, 6, 23, 0.95);
    /* Dark footer */
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -20px 40px -38px rgba(0, 0, 0, 0.6);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    backdrop-filter: blur(12px);
}

.footer-utility {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: inherit;
    gap: 0.75rem;
    padding: 0.7rem 1.6rem 0.6rem;
    border-bottom: 1px solid var(--glass-border);
    background: transparent;
}

.footer-countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    color: var(--color-text-main);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-countdown i {
    color: var(--color-primary);
    font-size: 0.88rem;
    text-shadow: 0 0 10px rgba(255, 0, 51, 0.6);
}

.footer-countdown__timer {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--color-primary);
}

.footer-countdown__timer.is-live {
    color: var(--color-accent);
}

.footer-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(195, 0, 47, 0.28);
    background: rgba(195, 0, 47, 0.1);
    color: #990024;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.footer-calendar-btn i {
    font-size: 0.85rem;
}

.footer-calendar-btn:hover,
.footer-calendar-btn:focus-visible {
    transform: translateY(-1px);
    background: rgba(195, 0, 47, 0.18);
    box-shadow: 0 12px 22px -20px rgba(195, 0, 47, 0.55);
    color: #0f172a;
    outline: none;
}

.hero-section .hero-section__pill::before {
    content: "•";
    font-size: 0.75rem;
    opacity: 0.65;
}

.bottom-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    height: 90px;
}

.nav-indicator {
    position: absolute;
    bottom: 18px;
    height: 44px;
    background: rgba(195, 0, 47, 0.14);
    border-radius: 14px;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

.nav-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 0;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
    transition: color 0.2s ease;
}

.nav-item i {
    font-size: 1.35rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-item.active {
    color: var(--color-primary);
}

.nav-item.active i {
    color: var(--color-primary);
    transform: translateY(-3px);
}

.nav-item:focus-visible {
    outline: none;
    color: var(--color-primary);
}

.nav-item__label {
    font-size: 0.75rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

#appSecondaryModalOverlay {
    z-index: 2000 !important;
}

.modal-content {
    background: #0f172a;
    /* Solid dark background for readability */
    padding: 2rem 1.75rem;
    border-radius: 22px;
    max-width: 90%;
    max-height: 78%;
    overflow-y: auto;
    position: relative;
    transform: translateY(24px) scale(0.98);
    opacity: 0;
    transition: transform 0.32s ease, opacity 0.32s ease;
    box-shadow: 0 35px 80px -45px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--color-primary);
    color: var(--color-text-main);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close-button {
    position: sticky;
    top: 0.5rem;
    float: right;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.modal-close-button:hover,
.modal-close-button:focus-visible {
    background: rgba(255, 0, 51, 0.18);
    color: #fff;
    transform: translateY(-2px);
    outline: none;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(195, 0, 47, 0.35);
    border-radius: 999px;
}

.animate-fade-in-down {
    opacity: 0;
    transform: translateY(-18px);
    animation: fadeInDown 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pop-in {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

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

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(25%);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes orbFloat {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(28px, -24px, 0);
    }
}

@keyframes heroGlowShift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(-16px, 24px, 0) scale(1.08);
    }
}

@keyframes heroFloat {

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

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

@media (max-width: 540px) {
    .app-header {
        padding: 1.45rem 1.5rem 1.25rem;
    }

    main {
        padding: 1.6rem 1.35rem 7.2rem;
    }

    .guidance-card {
        padding: 1.25rem 1.3rem;
    }

    .hero-section {
        padding: 1.9rem 1.6rem 2.1rem;
    }

    .hero-section__content {
        align-items: center;
        text-align: center;
    }

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

    .footer-utility {
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 1.25rem 0.55rem;
    }

}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

@supports (backdrop-filter: blur(1rem)) {
    .menu-card {
        background: var(--glass-bg);
    }

    .modal-content {
        background: rgba(15, 23, 42, 0.96);
    }
}

.app-body {
    width: 100%;
}

/* ... existing code ... */
.bg-tech-grid {
    background-color: var(--color-bg-dark);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0, 240, 255, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
    position: relative;
}

/* Carousel Animations */
.carousel-slide {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
    opacity: 1;
}

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;

    .check-icon {
        width: 80px;
        height: 80px;
        position: relative;
        border-radius: 50%;
        box-sizing: content-box;
        border: 4px solid #4CAF50;

        &::before {
            top: 3px;
            left: -2px;
            width: 30px;
            transform-origin: 100% 50%;
            border-radius: 100px 0 0 100px;
        }

        &::after {
            top: 0;
            left: 30px;
            width: 60px;
            transform-origin: 0 50%;
            border-radius: 0 100px 100px 0;
            animation: rotate-circle 4.25s ease-in;
        }

        &::before,
        &::after {
            content: '';
            height: 100px;
            position: absolute;
            background: transparent;
            transform: rotate(-45deg);
        }

        .icon-line {
            height: 5px;
            background-color: #4CAF50;
            display: block;
            border-radius: 2px;
            position: absolute;
            z-index: 10;

            &.line-tip {
                top: 46px;
                left: 14px;
                width: 25px;
                transform: rotate(45deg);
                animation: icon-line-tip 0.75s;
            }

            &.line-long {
                top: 38px;
                right: 8px;
                width: 47px;
                transform: rotate(-45deg);
                animation: icon-line-long 0.75s;
            }
        }

        .icon-circle {
            top: -4px;
            left: -4px;
            z-index: 10;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            position: absolute;
            box-sizing: content-box;
            border: 4px solid rgba(76, 175, 80, .5);
        }

        .icon-fix {
            top: 8px;
            width: 5px;
            left: 26px;
            z-index: 1;
            height: 85px;
            position: absolute;
            transform: rotate(-45deg);
            background-color: transparent;
        }
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }

    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }

    100% {
        width: 25px;
        left: 14px;
        top: 46px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }

    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

.bg-tech-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.8) 100%);
    pointer-events: none;
}

/* Neon Button Updates */
.btn-neon-primary {
    background: linear-gradient(135deg, #C3002F 0%, #990024 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(195, 0, 47, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-neon-primary:hover {
    background: linear-gradient(135deg, #E6003A 0%, #B3002D 100%);
    box-shadow: 0 0 30px rgba(195, 0, 47, 0.6);
}

.btn-neon-secondary {
    background: rgba(15, 23, 42, 0.6);
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.btn-neon-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

/* Guest Card Update */
.guest-card {
    background: rgba(15, 23, 42, 0.85);
    /* Deep dark blue */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    /* Electric blue border */
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
}

.guest-card h2 {
    color: #fff;
}

.guest-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.guest-divider-text {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   RESPONSIVE HERO OVERRIDES (CRITICAL)
   ========================================= */

/* Force full width for carousel images, overriding global rules */
.carousel-slide img {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
}

/* Desktop: Optimized for 1.79 Aspect Ratio (1905x1063) */
@media (min-width: 768px) {
    .hero-section {
        min-height: 580px !important;
        aspect-ratio: 16/9;
    }
}

/* Mobile: Taller to ensure impact, sacrificing some width cropping */
@media (max-width: 767px) {
    .hero-section {
        min-height: 27vh !important;
        max-height: 600px;
    }
}

.text-slate-800 {
    --tw-text-opacity: 1;
    color: rgb(255, 255, 255) !important;
}

.min-h-screen {
    min-width: 100dvw !important;
}