/* ===============================
   GENERAL RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* School landing: deep green, warm white/cream text, gold accents */
:root {
    --school-green-950: #022c22;
    --school-green-900: #064e3b;
    --school-green-800: #065f46;
    --school-green-600: #059669;
    --school-gold: #eab308;
    --school-gold-light: #fde047;
    --school-cream: #ecfdf5;
    --school-muted: #b4d4c4;
    --school-btn-text: #14532d;
}

body {
    color: var(--school-cream);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    background: linear-gradient(145deg, var(--school-green-950) 0%, var(--school-green-900) 42%, var(--school-green-800) 100%);
    scroll-behavior: smooth;
    padding-bottom: 80px; /* space for fixed footer */
}

/* Background gradient */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.28;
    z-index: -2;
    pointer-events: none;
    object-fit: cover;
    animation: gradientShift 15s ease infinite;
    filter: saturate(1.05) hue-rotate(75deg) brightness(0.95);
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

.layer-blur {
    position: fixed;
    top: 20%;
    right: 0;
    width: 40rem;
    height: 40rem;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.2) 0%, rgba(16, 185, 129, 0.12) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(-30deg); opacity: 0.5; }
    50% { transform: scale(1.2) rotate(-25deg); opacity: 0.7; }
}

.container{
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Film grain / texture (very subtle) */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ===============================
   HEADER
================================ */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(6, 78, 59, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(253, 224, 71, 0.2);
    transition: all 0.3s ease;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5rem;
    gap: 1rem;
}

.header-progress-track {
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.22);
}

.header-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    max-width: 100%;
    background: linear-gradient(90deg, var(--school-gold-light), var(--school-gold));
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.35);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header h2,
header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fefce8 0%, var(--school-gold-light) 45%, var(--school-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(234, 179, 8, 0.45)); }
    50% { filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.65)); }
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--school-cream);
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:not(.btn):hover {
    color: var(--school-gold-light);
    transform: translateY(-2px);
}

nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--school-gold-light), var(--school-green-600));
    transition: width 0.3s ease;
}

nav a:not(.btn):hover::after {
    width: 100%;
}

nav .btn {
    background: linear-gradient(135deg, var(--school-gold-light) 0%, var(--school-gold) 55%, #ca8a04 100%);
    color: var(--school-btn-text) !important;
    padding: 10px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.35);
    transition: all 0.3s ease;
}

nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(234, 179, 8, 0.5);
    background: linear-gradient(135deg, #fffbeb 0%, var(--school-gold-light) 50%, var(--school-gold) 100%);
}

nav .btn.btn-outline,
nav .btn-nav-login {
    background: rgba(255, 253, 248, 0.06) !important;
    color: #fefce8 !important;
    border: 1px solid rgba(253, 224, 71, 0.55) !important;
    box-shadow: none !important;
}

nav .btn.btn-outline:hover,
nav .btn-nav-login:hover {
    color: var(--school-gold-light) !important;
    border-color: var(--school-gold-light) !important;
    background: rgba(250, 204, 21, 0.14) !important;
    box-shadow: 0 0 0 1px rgba(253, 224, 71, 0.2) !important;
}

.mobile-nav .btn.btn-outline {
    background: rgba(255, 253, 248, 0.06) !important;
    color: #fefce8 !important;
    border: 1px solid rgba(253, 224, 71, 0.45) !important;
    box-shadow: none !important;
    text-align: center;
    margin-top: 0.35rem;
}

.mobile-nav .btn.btn-outline:hover {
    background: rgba(250, 204, 21, 0.12) !important;
    color: var(--school-gold-light) !important;
}

/* Hamburger: hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    z-index: 10001;
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #e7e7e7;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}
.hamburger:hover {
    border-color: rgba(250, 204, 21, 0.55);
    background: rgba(250, 204, 21, 0.1);
}
.hamburger:hover span {
    background: var(--school-gold-light);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Mobile nav: side drawer (only on mobile, overridden in media query) */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 46, 42, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    display: flex;
}
.mobile-nav a {
    color: var(--school-cream);
    font-size: 1.25rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}
.mobile-nav a:hover {
    color: var(--school-gold-light);
}

.mobile-nav-overlay {
    display: none;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.btn-outline {
    margin-left: 0;
    background: transparent !important;
    box-shadow: none !important;
    border: 1px solid rgba(253, 224, 71, 0.45) !important;
    color: #fefce8 !important;
}
.btn-outline:hover {
    border-color: var(--school-gold) !important;
    background: rgba(250, 204, 21, 0.12) !important;
}

/* ===============================
   SPLINE VIEWER (removed)
================================ */
.spline-wrap,
spline-viewer {
    display: none !important;
}

/* ===============================
   SECTIONS
================================ */
section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    padding: 120px 5rem 5rem;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
    z-index: 2;
}

section.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

section.exit-left {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
}

section.enter-left {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 2;
}

#public-calendar,
#hero,
#how-it-works,
#features,
#roles,
#faq {
    max-width: 40%;
    padding-left: 6rem; /* shift cards a bit closer to the spline */
}

/* Public calendar: slightly wider than text sections */
#public-calendar {
    max-width: 52%;
}

@media (min-width: 769px) {
    #public-calendar {
        max-width: 100%;
        padding-right: 6rem;
    }
}

.landing-calendar-video-wrap {
    position: relative;
    width: 100%;
    min-height: clamp(220px, 32vw, 360px);
    margin: 0 0 1.25rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(253, 224, 71, 0.22);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    background: rgba(6, 78, 59, 0.45);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.landing-calendar-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-calendar-video-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    max-width: min(100%, 680px);
    padding: 2rem 1.75rem 1.5rem;
    pointer-events: auto;
    background: linear-gradient(
        to top,
        rgba(4, 47, 34, 0.92) 0%,
        rgba(4, 47, 34, 0.72) 42%,
        rgba(4, 47, 34, 0.28) 72%,
        transparent 100%
    );
    border-radius: 0 0 16px 16px;
}

.landing-calendar-video-overlay h1 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.85rem, 3.8vw, 3.25rem);
    line-height: 1.12;
    text-align: left;
}

.landing-calendar-video-overlay p {
    margin-bottom: 0.85rem;
    max-width: none;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: rgba(236, 253, 245, 0.92);
    text-align: left;
    line-height: 1.45;
}

.landing-calendar-video-overlay .landing-stat-strip {
    margin-bottom: 0;
    justify-content: flex-start;
    margin-top: 1rem;
}

.landing-hero-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--school-gold-light);
}

.landing-hero-lead {
    margin-bottom: 1rem !important;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 0.15rem;
}

.landing-hero-actions .btn {
    min-width: 8.5rem;
}

.header-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: 0.25rem;
}

.btn-nav-login {
    padding: 9px 18px !important;
    font-size: 0.9rem !important;
}

nav a[data-nav-section].is-active {
    color: var(--school-gold-light);
}

nav a[data-nav-section].is-active::after {
    width: 100%;
}

.landing-events-panel {
    width: 100%;
    margin-top: 0.25rem;
}

.landing-events-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.35rem;
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.05);
    border: 1px solid rgba(253, 224, 71, 0.16);
}

.landing-events-tab {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 9px;
    padding: 0.55rem 0.85rem;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(236, 253, 245, 0.78);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.landing-events-tab i {
    font-size: 0.78rem;
    opacity: 0.85;
}

.landing-events-tab:hover {
    color: #fffdf8;
    background: rgba(255, 253, 248, 0.06);
}

.landing-events-tab.is-active {
    color: var(--school-btn-text);
    background: linear-gradient(135deg, var(--school-gold-light) 0%, var(--school-gold) 55%, #ca8a04 100%);
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.28);
}

.landing-events-tab.is-active i {
    opacity: 1;
}

.landing-tab-panel {
    display: none;
    animation: landingTabIn 0.28s ease both;
}

.landing-tab-panel.is-active {
    display: block;
}

@keyframes landingTabIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-tab-panel .public-upcoming-title {
    margin-bottom: 0.85rem;
}

.landing-tab-panel .public-calendar-card {
    margin-top: 0;
}

.public-calendar-card {
    width: 100%;
    background: rgba(6, 78, 59, 0.45);
    border: 1px solid rgba(253, 224, 71, 0.22);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.28);
    backdrop-filter: blur(10px);
}

.public-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.public-calendar-note {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.public-calendar-note .pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid rgba(253, 224, 71, 0.35);
    color: #fefce8;
    background: rgba(5, 150, 105, 0.25);
}

.public-calendar-note .muted {
    font-size: 0.85rem;
    color: var(--school-muted);
}

.calendar-month-display {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(234, 179, 8, 0.45);
    color: #422006;
    background: linear-gradient(135deg, rgba(254, 252, 232, 0.95), rgba(250, 204, 21, 0.88));
}

#publicCalendar {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 10px;
}

/* FullCalendar (landing) */
#publicCalendar .fc {
    font-family: inherit;
}
#publicCalendar .fc-toolbar {
    display: none !important;
}
#publicCalendar .fc-daygrid-day-frame {
    min-height: 120px;
}
#publicCalendar .fc-col-header-cell {
    background: transparent !important;
}
#publicCalendar .fc-col-header-cell-cushion {
    color: var(--school-muted) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}
#publicCalendar .fc-daygrid-day-number {
    color: #e5e7eb !important;
}
#publicCalendar .fc-day-today {
    background: rgba(250, 204, 21, 0.14) !important;
}
#publicCalendar .fc-event {
    border: none !important;
    border-radius: 8px !important;
    padding: 4px 6px !important;
    margin: 2px 3px !important;
    font-size: 12px !important;
    cursor: pointer !important;
}

#publicCalendar .fc-daygrid-day {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
#publicCalendar .fc-daygrid-day:hover {
    background-color: rgba(250, 204, 21, 0.07) !important;
    box-shadow: inset 0 0 0 1px rgba(253, 224, 71, 0.28);
}

/* Upcoming events list (above calendar) */
.public-upcoming-wrap {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    width: 100%;
}
.public-upcoming-title {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fefce8;
}
.public-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0.75rem;
    width: 100%;
}
.public-upcoming-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(253, 224, 71, 0.18);
    background: rgba(6, 78, 59, 0.42);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.public-upcoming-card:hover {
    transform: translateY(-2px);
    border-color: rgba(250, 204, 21, 0.45);
    background: rgba(6, 95, 70, 0.55);
}
.public-upcoming-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.25;
}
.public-upcoming-card-meta {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--school-muted);
}
.public-upcoming-card-meta .dot {
    opacity: 0.9;
}
.public-upcoming-card-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid rgba(253, 224, 71, 0.22);
    background: rgba(5, 150, 105, 0.18);
    color: #ecfdf5;
}
.chip-muted {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.18);
}
.chip-cta {
    margin-left: auto;
    background: rgba(250, 204, 21, 0.16);
    border-color: rgba(234, 179, 8, 0.4);
    color: #fef9c3;
}
.chip-ended {
    background: rgba(100, 116, 139, 0.35);
    border-color: rgba(148, 163, 184, 0.45);
    color: #e2e8f0;
}
.public-upcoming-card-ended {
    border-color: rgba(148, 163, 184, 0.35);
    opacity: 0.95;
}
.public-upcoming-more {
    margin-top: 12px;
}
.public-empty {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px dashed rgba(253, 224, 71, 0.28);
    background: rgba(6, 78, 59, 0.35);
    color: var(--school-muted);
    font-size: 0.95rem;
}

.landing-photo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-photo-subtitle {
    font-size: 0.82rem;
    color: var(--school-muted);
}

.landing-photo-rail-wrap {
    margin-top: 0.75rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(2, 6, 23, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 10px 8px;
}

@media (min-width: 769px) {
    .landing-photo-header,
    .landing-photo-rail-wrap {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

.landing-photo-rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 10px;
    width: 100%;
}

.landing-photo-rail::-webkit-scrollbar {
    display: none;
}

.landing-photo-card {
    position: relative;
    flex: 0 0 156px;
    width: 156px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(253, 224, 71, 0.22);
    background: rgba(15, 23, 42, 0.6);
    text-decoration: none;
    transform-origin: center center;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    margin-left: 8px;
}

.landing-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.45s ease;
}

.landing-photo-card.is-fading .landing-photo-img {
    opacity: 0;
}

.landing-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.06) 35%, rgba(2, 6, 23, 0.8) 100%);
}

.landing-photo-meta {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 9px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 2;
}

.landing-photo-meta strong {
    font-size: 0.78rem;
    line-height: 1.2;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-photo-meta small {
    font-size: 0.68rem;
    color: #cbd5e1;
}

.landing-photo-rank {
    position: absolute;
    left: -13px;
    bottom: 10px;
    z-index: 3;
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 0.95;
    color: rgba(2, 6, 23, 0.85);
    -webkit-text-stroke: 1.5px rgba(248, 250, 252, 0.9);
    text-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.landing-photo-card:hover {
    transform: scale(1.08);
    border-color: rgba(250, 204, 21, 0.58);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.5);
    z-index: 3;
}

.landing-rail-nav {
    width: 28px;
    height: 82px;
    flex: 0 0 28px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.62);
    color: #f8fafc;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.landing-rail-nav:hover {
    background: rgba(250, 204, 21, 0.18);
    border-color: rgba(250, 204, 21, 0.56);
}

.landing-rail-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.landing-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid rgba(253, 224, 71, 0.35);
    background: rgba(5, 150, 105, 0.22);
    color: #ecfdf5;
}

.stat-pill strong {
    font-size: 1.02rem;
    color: #fef9c3;
}

.stat-pill-label {
    font-weight: 500;
    opacity: 0.92;
}

.stat-pill-muted {
    background: rgba(6, 78, 59, 0.55);
    border-color: rgba(180, 212, 196, 0.28);
}

.stat-pill-hint {
    border-style: dashed;
    background: rgba(0, 0, 0, 0.12);
    font-size: 0.8rem;
}

.stat-pill-hint i {
    color: var(--school-gold-light);
}

.hero-lead {
    font-size: 1.08rem;
    font-weight: 600;
    color: rgba(254, 252, 232, 0.95);
    margin-bottom: 1rem;
    max-width: 560px;
    padding-left: 1rem;
    border-left: 3px solid rgba(253, 224, 71, 0.55);
    line-height: 1.45;
}

/* Scroll-in / section reveal (stagger via --reveal-d) */
.reveal-scope .reveal-item {
    animation: none !important;
}

.reveal-scope:not(.in-view) .reveal-item {
    opacity: 0;
    transform: translateY(22px);
}

.reveal-scope.in-view .reveal-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1), transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-d, 0ms);
}

.magnetic-wrap {
    display: inline-block;
    transition: transform 0.18s ease-out;
    vertical-align: middle;
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 38%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 62%,
        transparent 100%
    );
    transform: translateX(-120%);
    animation: landingShimmer 3.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes landingShimmer {
    0%, 18% { transform: translateX(-120%); }
    40%, 100% { transform: translateX(120%); }
}

.faq-accordion {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.faq-item {
    border-radius: 16px;
    border: 1px solid rgba(253, 224, 71, 0.22);
    background: rgba(6, 78, 59, 0.5);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 1rem 1.15rem;
    margin: 0;
    background: transparent;
    border: none;
    color: #fefce8;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

.faq-trigger:hover {
    background: rgba(250, 204, 21, 0.08);
}

.faq-trigger-icon {
    flex-shrink: 0;
    font-size: 0.72rem;
    transition: transform 0.28s ease;
    opacity: 0.88;
}

.faq-item.is-open .faq-trigger-icon {
    transform: rotate(180deg);
}

.faq-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.38s ease, opacity 0.28s ease;
}

.faq-item.is-open .faq-panel {
    max-height: 22rem;
    opacity: 1;
}

.faq-panel p {
    margin: 0;
    padding: 0 1.15rem 1.1rem;
    font-size: 0.95rem;
    color: var(--school-muted);
    line-height: 1.55;
    max-width: none;
    text-align: left;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-scope:not(.in-view) .reveal-item,
    .reveal-scope.in-view .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn-shimmer::after {
        animation: none;
    }
    .header-progress-fill {
        transition: none;
    }
    .magnetic-wrap {
        transition: none;
    }
}

/* ===============================
   TEXT & BUTTONS
================================ */
h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #fef9c3 55%, #d1fae5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--school-muted);
    text-align: left;
    line-height: 1.6;
    max-width: 600px;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.btn {
    background: linear-gradient(135deg, var(--school-gold-light) 0%, var(--school-gold) 50%, #ca8a04 100%);
    padding: 14px 32px;
    border-radius: 10px;
    color: var(--school-btn-text);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.38);
    transition: all 0.3s ease;
    display: inline-block;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 28px rgba(234, 179, 8, 0.55);
    background: linear-gradient(135deg, #fffbeb 0%, var(--school-gold-light) 45%, var(--school-gold) 100%);
}

.btn:active {
    transform: translateY(-1px);
}

/* ===============================
   CARDS
================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 520px; /* slightly wider cards but still not covering spline */
}

.card {
    background: rgba(6, 78, 59, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(253, 224, 71, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
}

.landing-card {
    text-align: left;
    padding: 1.35rem 1.35rem 1.35rem 1.15rem;
    border-left: 3px solid rgba(253, 224, 71, 0.35);
}

.landing-card__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(180deg, var(--school-gold-light), var(--school-gold));
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.35);
}

.landing-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(253, 224, 71, 0.22);
    color: var(--school-gold-light);
    font-size: 1rem;
}

.landing-card__title {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fffdf8;
    line-height: 1.3;
}

.landing-card__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--school-muted);
}

.landing-card:hover {
    border-color: rgba(250, 204, 21, 0.45);
    box-shadow: 0 10px 40px rgba(22, 101, 52, 0.35), 0 0 0 1px rgba(253, 224, 71, 0.12);
}

.landing-card:hover .landing-card__icon {
    background: rgba(234, 179, 8, 0.2);
    color: #fef9c3;
}

.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; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.18), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(6, 95, 70, 0.65);
    border-color: rgba(250, 204, 21, 0.45);
    box-shadow: 0 10px 40px rgba(22, 101, 52, 0.35);
}

.card {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--school-cream);
}


/* ===============================
   MODAL
================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

/* Login modal: never stretch to fill the screen — only as tall as the iframe content */
#loginModal.modal {
    align-items: center;
}

#loginModal .modal-content {
    align-self: center;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    width: min(92vw, 440px);
    padding: 52px 18px 18px;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 255, 136, 0.12);
}

.auth-modal .auth-modal-content {
    align-self: center;
    height: auto;
    min-height: 0;
    max-height: min(calc(100dvh - 2rem), calc(100vh - 2rem));
    display: flex;
    flex-direction: column;
    width: min(92vw, 420px);
    padding: 2.75rem 1.25rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(27, 74, 27, 0.97), rgba(21, 51, 19, 0.99));
    border-radius: 18px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    box-shadow:
        0 26px 64px rgba(0, 0, 0, 0.45),
        0 0 0 2px rgba(230, 197, 74, 0.35);
    border-bottom: 3px solid #e6c54a;
    gap: 0;
}

.auth-form-box {
    border: 1px solid rgba(230, 197, 74, 0.22);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.08), rgba(247, 244, 231, 0.06));
    border-radius: 16px;
    padding: 1.35rem 1.15rem 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-title {
    margin: 0 0 0.35rem;
    text-align: center;
    color: #fffdf8;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.auth-subtitle {
    margin: 0 0 1.25rem;
    text-align: center;
    color: rgba(247, 244, 231, 0.72);
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-input-wrap {
    width: 100%;
}

.auth-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    width: 100%;
}

.auth-field-hint {
    margin: 6px 0 0;
    font-size: 11.5px;
    line-height: 1.4;
    color: #94a3b8;
}

.auth-verify-top-alert {
    margin: 0 0 12px;
}

.auth-verify-hint {
    margin: 0 0 10px;
}

.auth-verify-resend-form {
    text-align: center;
}

.auth-verify-resend-btn {
    width: 100%;
    font-size: 13px;
}

.auth-consent-wrap {
    margin-top: 2px;
}

.auth-consent-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #cbd5e1;
    font-size: 12.5px;
    line-height: 1.45;
}

.auth-consent-check input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #eab308;
}

.auth-consent-check a,
.auth-consent-check .legal-doc-link {
    color: #fde68a;
    text-decoration: underline;
}

.legal-doc-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    color: #fde68a;
    text-decoration: underline;
}

.legal-doc-link:hover {
    color: #fef9c3;
}

.auth-label {
    display: block;
    color: rgba(247, 244, 231, 0.88);
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    letter-spacing: 0.02em;
}

.auth-input {
    width: 100%;
    border: 1px solid rgba(230, 197, 74, 0.28);
    background: rgba(255, 253, 248, 0.08);
    color: #fffdf8;
    border-radius: 11px;
    padding: 0.7rem 0.85rem;
    font-size: 0.9375rem;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input::placeholder {
    color: rgba(247, 244, 231, 0.45);
}

.auth-input:focus {
    outline: none;
    border-color: rgba(230, 197, 74, 0.75);
    box-shadow: 0 0 0 3px rgba(230, 197, 74, 0.18);
    background: rgba(255, 253, 248, 0.12);
}

/* Dropdown options render on the OS menu surface, so give them an explicit
   dark background + readable text (otherwise white-on-white = invisible). */
.auth-input option {
    background-color: #15331e;
    color: #fffdf8;
}
.auth-input option:checked {
    background-color: #3d8a35;
    color: #ffffff;
}

.auth-inline-message {
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    padding: 9px 10px;
    margin: 0 0 10px;
    text-align: left;
}

.auth-inline-message.error {
    background: rgba(220, 38, 38, 0.22);
    border: 1px solid rgba(248, 113, 113, 0.55);
    color: #fecaca;
}

.auth-inline-message.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: #bbf7d0;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-input-row {
    position: relative;
}

.auth-password-input-row .auth-input {
    padding-right: 2.65rem;
}

.auth-eye-btn {
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 8px;
    background: rgba(21, 51, 19, 0.55);
    color: rgba(247, 244, 231, 0.85);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-eye-btn i {
    font-size: 14px;
    pointer-events: none;
}

.auth-eye-btn:hover {
    background: rgba(61, 138, 53, 0.45);
    color: #fff;
}

.auth-eye-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(230, 197, 74, 0.35);
}

.auth-password-guide {
    margin-top: 0.45rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(247, 244, 231, 0.65);
}

.auth-password-guide.met {
    color: #86efac;
}

.auth-password-guide.unmet {
    color: #fca5a5;
}

.auth-password-match {
    margin-top: 0.45rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #fca5a5;
}

.auth-password-match.match {
    color: #86efac;
}

.auth-password-match.mismatch {
    color: #fca5a5;
}

.auth-submit-btn {
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 0.35rem;
    padding: 0.72rem 1rem !important;
    font-size: 0.9375rem !important;
    border-radius: 11px !important;
}

.auth-submit-btn--loading {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    cursor: wait;
}

.auth-submit-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(10, 60, 38, 0.18);
    border-top-color: #0A3C26;
    border-radius: 50%;
    animation: auth-submit-spin 0.72s linear infinite;
    flex-shrink: 0;
}

@keyframes auth-submit-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-submit-spinner {
        animation: none;
        border-top-color: rgba(10, 60, 38, 0.18);
        opacity: 0.65;
    }
}

.auth-back-login-btn {
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 0.15rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #0d1b2a;
    width: 390px;
    max-width: 86vw;
    max-height: calc(100vh - 56px);
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding-top: 40px; /* close button row */
    padding-bottom: 0;
    height: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal .login-modal-action-row {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    justify-content: stretch;
    align-items: stretch;
    padding: 0.95rem 0 calc(env(safe-area-inset-bottom, 0px));
    margin-top: 0.85rem;
    border-top: 1px solid rgba(230, 197, 74, 0.18);
    background: linear-gradient(180deg, transparent 0%, rgba(21, 51, 19, 0.92) 28%);
    position: sticky;
    bottom: 0;
    z-index: 2;
    flex-shrink: 0;
}

.auth-modal .login-modal-action-btn {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(230, 197, 74, 0.28);
    background: rgba(21, 51, 19, 0.72);
    color: #f7f4e7;
    border-radius: 11px;
    padding: 0.62rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    text-align: center;
}

.auth-modal .login-modal-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.auth-modal .login-modal-action-btn.primary {
    background: linear-gradient(180deg, #3d8a35 0%, #2f6f28 100%);
    color: #fff;
    border-color: rgba(230, 197, 74, 0.45);
}

.auth-modal .login-modal-action-btn.secondary {
    background: rgba(21, 51, 19, 0.9);
    color: #f7f4e7;
    border-color: rgba(230, 197, 74, 0.25);
}

.auth-modal .login-modal-action-btn.ghost {
    background: transparent;
    color: #e6c54a;
    border-color: rgba(230, 197, 74, 0.22);
    text-decoration: none;
    font-size: 0.78rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#loginModal .close,
#registerModal .close,
#verifyModal .close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.15rem;
    color: #fffdf8;
    background: rgba(21, 51, 19, 0.55);
    border: 1px solid rgba(230, 197, 74, 0.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

#loginModal .close:hover,
#registerModal .close:hover,
#verifyModal .close:hover {
    background: rgba(185, 28, 28, 0.88);
    border-color: rgba(248, 113, 113, 0.55);
    color: #fff;
    transform: scale(1.05);
}

.close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    z-index: 100000;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

/* Legal document modals (Privacy / Terms) — school theme, stacked above auth */
.legal-doc-modal {
    z-index: 100050 !important;
}

.legal-doc-modal .legal-doc-panel {
    width: min(92vw, 520px);
    max-width: 92vw;
    max-height: min(88vh, 720px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 44px;
    padding-bottom: 12px;
    border: 1px solid rgba(253, 224, 71, 0.28);
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(5, 150, 105, 0.2);
    background: linear-gradient(180deg, rgba(6, 46, 42, 0.98), rgba(4, 30, 28, 0.99));
}

.legal-doc-panel-head {
    flex-shrink: 0;
    padding: 0 16px 8px;
    border-bottom: 1px solid rgba(253, 224, 71, 0.2);
}

.legal-doc-panel-head .auth-title {
    color: #fefce8;
}

.legal-doc-sub {
    margin: 0;
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
}

.legal-doc-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 16px 10px;
    -webkit-overflow-scrolling: touch;
}

.legal-doc-body p {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.58;
    color: #cbd5e1;
}

.legal-doc-body .legal-doc-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.legal-doc-body .legal-doc-h3 {
    margin: 1.1rem 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fde68a;
    letter-spacing: 0.02em;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(250, 204, 21, 0.22);
}

.legal-doc-body .legal-doc-list {
    margin: 0 0 0.85rem;
    padding-left: 1.15rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.legal-doc-body .legal-doc-list li {
    margin-bottom: 0.35rem;
}

.legal-doc-body a {
    color: #fde68a;
    text-decoration: underline;
}

.legal-doc-actions {
    flex-shrink: 0;
    padding: 10px 16px 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.legal-doc-actions .login-modal-action-btn {
    width: 100%;
}

/* ===============================
   FOOTER
================================ */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    margin-top: 2rem;
    padding: 1.25rem 5rem;
    border-top: 1px solid rgba(253, 224, 71, 0.15);
    background: radial-gradient(circle at top, rgba(6, 78, 59, 0.92), rgba(2, 44, 34, 0.55));
    color: var(--school-muted);
    backdrop-filter: blur(8px);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.footer-brand {
    font-weight: 600;
    letter-spacing: 1px;
    color: #fefce8;
}

.footer-text {
    margin-left: 0.75rem;
}

.footer-links a {
    margin-left: 1.25rem;
    color: rgba(180, 212, 196, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--school-gold-light);
}

.footer-links .legal-footer-link {
    margin-left: 1.25rem;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 0.9rem;
    color: rgba(180, 212, 196, 0.85);
    text-decoration: underline;
    cursor: pointer;
}

.footer-links .legal-footer-link:hover {
    color: var(--school-gold-light);
}

/* ===============================
   MOBILE & TABLET
================================ */
@media (max-width: 1024px) {
    section {
        padding: 100px 2rem 2rem;
        max-width: 100%;
    }

    #public-calendar,
    #hero,
    #how-it-works,
    #features,
    #roles,
    #faq {
        max-width: 100%;
        padding-left: 2rem;
    }

    h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    p {
        text-align: center;
        max-width: 100%;
    }

    .faq-panel p {
        text-align: left;
    }

    .hero-lead {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        border-left: none;
        border-top: 3px solid rgba(253, 224, 71, 0.45);
        padding-top: 0.65rem;
    }

    .landing-stat-strip {
        justify-content: center;
    }

    .landing-calendar-video-overlay .landing-stat-strip {
        justify-content: flex-start;
    }

    .landing-calendar-video-overlay h1 {
        text-align: left;
    }

    .landing-calendar-video-overlay p {
        text-align: left;
    }
}

@media (max-width: 768px) {
    a, button {
        -webkit-tap-highlight-color: rgba(250, 204, 21, 0.18);
    }

    .layer-blur {
        width: 16rem;
        height: 16rem;
        top: 18%;
        right: -4rem;
        opacity: 0.35;
    }

    /* ----- Header: compact, clear ----- */
    .site-header .header-main {
        padding: 0.75rem 1rem;
        padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
        padding-left: calc(1rem + env(safe-area-inset-left, 0px));
        padding-right: calc(1rem + env(safe-area-inset-right, 0px));
        flex-wrap: nowrap;
        align-items: center;
    }

    .site-header h2 {
        font-size: 1.35rem;
        letter-spacing: 0.5px;
    }

    /* ----- Hero video: stack overlay so headline + CTAs are never clipped ----- */
    .landing-calendar-video-wrap {
        display: flex;
        flex-direction: column;
        min-height: 0 !important;
        height: auto !important;
        width: 100% !important;
    }

    .landing-calendar-video {
        height: clamp(160px, 42vw, 220px);
        min-height: 160px;
        flex-shrink: 0;
    }

    .landing-calendar-video-overlay {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        padding: 1rem 1rem 0.95rem;
        background: linear-gradient(180deg, rgba(4, 47, 34, 0.96) 0%, rgba(4, 47, 34, 0.92) 100%);
        border-radius: 0 0 16px 16px;
    }

    .landing-calendar-video-overlay h1 {
        font-size: clamp(1.35rem, 5.2vw, 1.75rem);
        margin-bottom: 0.4rem;
        line-height: 1.2;
        text-align: left;
        background: none;
        -webkit-text-fill-color: #fffdf8;
        color: #fffdf8;
    }

    .landing-calendar-video-overlay .landing-hero-lead {
        font-size: 0.875rem;
        margin-bottom: 0.85rem !important;
        line-height: 1.45;
    }

    .landing-hero-eyebrow {
        font-size: 0.65rem;
        margin-bottom: 0.35rem;
    }

    .landing-stat-strip {
        justify-content: flex-start;
        gap: 6px;
        margin-top: 0.75rem;
    }

    .landing-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }

    .landing-hero-actions .btn {
        min-width: 0;
        flex: none;
        width: 100%;
        min-height: 44px;
        padding: 0.65rem 0.5rem;
        font-size: 0.8125rem;
        text-align: center;
        justify-content: center;
    }

    .landing-hero-actions .btn-outline {
        color: #fefce8 !important;
        border: 1px solid rgba(253, 224, 71, 0.62) !important;
        background: rgba(255, 253, 248, 0.1) !important;
    }

    .landing-hero-actions .magnetic-wrap {
        display: block;
        width: 100%;
        transform: none !important;
    }

    .landing-hero-actions .magnetic-wrap .btn {
        width: 100%;
    }

    .landing-calendar-video-overlay .landing-stat-strip {
        justify-content: flex-start;
        gap: 6px;
    }

    .landing-calendar-video-overlay .stat-pill {
        font-size: 0.7rem;
        padding: 0.28rem 0.55rem;
    }

    .stat-pill-hint {
        width: 100%;
        justify-content: center;
        margin-top: 0.15rem;
    }

    .landing-events-tab {
        font-size: 0.75rem;
        padding: 0.5rem 0.55rem;
    }

    .landing-events-tab i {
        display: none;
    }

    .header-nav-actions {
        display: none;
    }

    .landing-photo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .landing-photo-rail-wrap {
        gap: 4px;
        padding: 8px 4px;
    }

    .landing-photo-card {
        flex-basis: 132px;
        width: 132px;
        border-radius: 12px;
        margin-left: 4px;
    }

    .landing-photo-rank {
        left: 8px;
        top: 8px;
        bottom: auto;
        z-index: 3;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1;
        color: var(--school-btn-text);
        background: linear-gradient(135deg, var(--school-gold-light), var(--school-gold));
        border: 1px solid rgba(255, 253, 248, 0.35);
        -webkit-text-stroke: 0;
        text-shadow: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }

    .landing-photo-meta {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding-right: 0;
    }

    .landing-photo-meta strong {
        font-size: 0.72rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .landing-rail-nav {
        width: 24px;
        height: 48px;
        flex-basis: 24px;
        font-size: 0.7rem;
    }

    .hero-lead {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        border-left: none;
        border-top: 3px solid rgba(253, 224, 71, 0.45);
        padding-top: 0.75rem;
    }

    .faq-panel p {
        text-align: left;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    /* Spline removed */
    /* ----- Sections: consistent rhythm ----- */
    section {
        position: static;
        top: auto;
        left: auto;
        min-height: auto;
        padding: 1.5rem 1.25rem;
        max-width: 100%;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto;
        position: relative;
        z-index: 1;
    }

    #public-calendar,
    #hero {
        padding-top: calc(4.75rem + env(safe-area-inset-top, 0px));
        padding-bottom: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .public-calendar-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    #public-calendar .btn {
        width: 100%;
        text-align: center;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 20px;
        border-radius: 10px;
    }

    #publicCalendar .fc-daygrid-day-frame {
        min-height: 92px;
    }

    .public-upcoming-grid {
        grid-template-columns: 1fr;
    }

    .chip-cta {
        margin-left: 0;
    }

    #how-it-works,
    #features,
    #roles,
    #faq {
        max-width: 100%;
        padding: 1.75rem 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* ----- Hero: cleaner CTA ----- */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        gap: 0.625rem;
        margin-top: 0.25rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 20px;
        border-radius: 10px;
    }

    /* ----- Typography: readable, calm ----- */
    h1 {
        font-size: 1.6rem;
        margin-bottom: 0.625rem;
        text-align: center;
        line-height: 1.3;
        letter-spacing: -0.02em;
    }

    p {
        font-size: 0.9375rem;
        margin-bottom: 0;
        text-align: center;
        max-width: 100%;
        line-height: 1.55;
        color: #94a3b8;
    }

    /* ----- Cards: flat, minimal on mobile ----- */
    .grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        margin-top: 1.25rem;
    }

    .card {
        padding: 1.25rem 1.25rem;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(6, 78, 59, 0.48);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: none;
    }

    .card:hover {
        transform: none;
        box-shadow: none;
    }

    .card::before {
        display: none;
    }

    .card h3 {
        margin-bottom: 0.375rem;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .landing-card {
        padding: 1.15rem 1rem 1.15rem 0.95rem;
        text-align: left;
    }

    .landing-card__title {
        font-size: 1rem;
        text-align: left;
    }

    .landing-card__text {
        font-size: 0.875rem;
        text-align: left;
    }

    .card p {
        font-size: 0.875rem;
        text-align: left;
        color: #94a3b8;
        margin-bottom: 0;
    }

    /* ----- Footer: compact, solid (no background bleed) ----- */
    footer {
        padding: 0.875rem 1rem;
        padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(253, 224, 71, 0.14);
        background: #022c22;
        box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.35);
        z-index: 50;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.65rem;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-text {
        margin-left: 0;
        margin-top: 0.2rem;
        font-size: 0.75rem;
        opacity: 0.88;
        line-height: 1.4;
        max-width: 280px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
        gap: 0.55rem 0.75rem;
        width: 100%;
        max-width: 300px;
    }

    .footer-links a,
    .footer-links .legal-footer-link {
        margin-left: 0;
        font-size: 0.8125rem;
        text-decoration: none;
        color: rgba(236, 253, 245, 0.82);
    }

    .footer-links .legal-footer-link {
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    body {
        padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
    }

    /* Mobile menu: slide-in from the right, not covering the whole page */
    .mobile-nav {
        display: flex;
        left: auto;
        right: 0;
        width: min(280px, 85vw);
        max-width: 280px;
        bottom: auto;
        height: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding-top: calc(60px + env(safe-area-inset-top, 0px));
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: 2rem;
        gap: 0.5rem;
        background: rgba(4, 47, 46, 0.98);
        backdrop-filter: blur(16px);
        border-left: 1px solid rgba(253, 224, 71, 0.12);
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        visibility: visible;
        opacity: 1;
        pointer-events: none;
    }

    .mobile-nav.open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .mobile-nav a {
        padding: 0.75rem 0.5rem;
        font-size: 1rem;
        text-align: left;
        border-radius: 8px;
    }

    .mobile-nav a:hover {
        background: rgba(250, 204, 21, 0.12);
    }

    /* Overlay: tap to close menu */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        cursor: pointer;
    }

    .mobile-nav-overlay.show {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    /* Blur the cards and all sections behind when hamburger menu is open */
    body.mobile-menu-open section,
    body.mobile-menu-open footer {
        filter: blur(6px);
        transition: filter 0.3s ease;
    }
}

@media (max-width: 480px) {
    .site-header .header-main {
        padding: 0.5rem 0.875rem;
        padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
        padding-left: calc(0.875rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.875rem + env(safe-area-inset-right, 0px));
    }

    .site-header h2 {
        font-size: 1.35rem;
    }

    .hamburger {
        width: 36px;
        height: 36px;
    }

    .hamburger span {
        width: 16px;
    }

    section {
        padding: 1.25rem 1rem;
    }

    #hero {
        padding-top: 4.75rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1.25rem;
    }

    #how-it-works,
    #features,
    #roles,
    #faq {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }

    p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .grid {
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .card {
        padding: 1rem 1.125rem;
        border-radius: 12px;
    }

    .card h3 {
        font-size: 1rem;
    }

    .hero-buttons .btn,
    .btn {
        min-height: 44px;
        padding: 11px 18px;
        font-size: 0.9rem;
    }

    footer {
        padding: 0.875rem 1rem;
        padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 0px));
    }

    .footer-inner {
        gap: 0.5rem;
    }

    .footer-text {
        font-size: 0.75rem;
    }

    .modal-content {
        width: 96%;
        max-height: calc(100vh - 24px);
        border-radius: 12px;
        padding-top: 40px;
    }

    /* Do NOT use min-height: vh here — it forces a huge empty area below the login card */
    #loginModal .modal-content {
        width: min(92vw, 400px);
        max-height: calc(100vh - 32px);
        padding: 48px 14px 14px;
        border-radius: 18px;
    }
    .auth-modal.modal {
        align-items: flex-start;
        justify-content: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding:
            max(12px, env(safe-area-inset-top, 0px))
            max(10px, env(safe-area-inset-right, 0px))
            max(16px, env(safe-area-inset-bottom, 0px))
            max(10px, env(safe-area-inset-left, 0px));
    }

    .auth-modal .auth-modal-content {
        width: min(94vw, 400px);
        max-height: none;
        min-height: 0;
        margin: 0 auto;
        padding: 2.5rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
        border-radius: 16px;
    }
    .auth-form-box {
        padding: 1.1rem 0.95rem 1rem;
    }
    .auth-title {
        font-size: 1.2rem;
    }
    .auth-subtitle {
        margin-bottom: 1rem;
    }

    #registerModal .auth-form-wrap {
        gap: 0.8rem;
    }

    #registerModal .auth-field-hint,
    #registerModal .auth-password-guide {
        font-size: 0.68rem;
        line-height: 1.35;
    }

    #registerModal .auth-consent-check {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .auth-name-row {
        grid-template-columns: 1fr;
    }

    .auth-modal .login-modal-action-row {
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding-top: 0.85rem;
    }

    .auth-modal .login-modal-action-btn {
        font-size: 0.8125rem;
        padding: 0.58rem 0.75rem;
    }


    #loginModal .close {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .close {
        top: 8px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 22px;
    }
}

/* ===============================
   LOADING SPLASH
================================ */
html.eventify-splash-pending,
html.eventify-splash-pending body {
    overflow: hidden;
}

.eventify-splash {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 70% 55% at 50% 38%, rgba(6, 78, 59, 0.55) 0%, transparent 62%),
        linear-gradient(168deg, #010f0c 0%, #022c22 42%, #011612 100%);
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.eventify-splash--hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.eventify-splash__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(72vw, 320px);
    height: min(72vw, 320px);
    transform: translate(-50%, -58%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.14) 0%, rgba(16, 185, 129, 0.1) 42%, transparent 72%);
    filter: blur(36px);
    animation: eventifySplashPulse 2.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes eventifySplashPulse {
    0%, 100% { opacity: 0.65; transform: translate(-50%, -58%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -58%) scale(1.08); }
}

.eventify-splash__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(92vw, 360px);
    text-align: center;
    padding: 1.5rem;
    animation: eventifySplashFadeUp 0.75s ease-out both;
}

@keyframes eventifySplashFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.eventify-splash__ring {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.35rem;
    border-radius: 50%;
    border: 2px solid rgba(52, 211, 153, 0.38);
    box-shadow:
        0 0 28px rgba(16, 185, 129, 0.22),
        inset 0 0 22px rgba(5, 150, 105, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    font-size: 2rem;
    animation: eventifySplashRing 2.4s ease-in-out infinite;
}

@keyframes eventifySplashRing {
    0%, 100% { box-shadow: 0 0 28px rgba(16, 185, 129, 0.22), inset 0 0 22px rgba(5, 150, 105, 0.12); }
    50% { box-shadow: 0 0 36px rgba(234, 179, 8, 0.28), inset 0 0 26px rgba(5, 150, 105, 0.18); }
}

.eventify-splash__brand {
    margin: 0 0 1.35rem;
    font-size: clamp(1.65rem, 6vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    /* letter-spacing adds trailing space after the last glyph — pull back so the word is optically centered */
    padding-left: 0.14em;
    text-align: center;
    line-height: 1.1;
}

.eventify-splash__brand-a {
    color: #34d399;
}

.eventify-splash__brand-b {
    color: #fde047;
}

.eventify-splash__bar {
    height: 3px;
    width: min(220px, 72vw);
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.eventify-splash__bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #059669 0%, #34d399 55%, #fde047 100%);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.45);
    transition: width 0.35s ease;
}

.eventify-splash__status {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: rgba(180, 212, 196, 0.92);
}

.eventify-splash__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.65);
    animation: eventifySplashDot 1.1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes eventifySplashDot {
    0%, 100% { opacity: 0.45; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1); }
}

/* ===============================
   LANDING REVEAL (after splash)
================================ */
html.eventify-landing-enter:not(.eventify-landing-enter--done) .bg-image,
html.eventify-landing-enter:not(.eventify-landing-enter--done) .layer-blur,
html.eventify-landing-enter:not(.eventify-landing-enter--done) .noise-overlay,
html.eventify-landing-enter:not(.eventify-landing-enter--done) .site-header,
html.eventify-landing-enter:not(.eventify-landing-enter--done) footer {
    opacity: 0;
    transform: translateY(14px);
}

html.eventify-landing-enter:not(.eventify-landing-enter--done) section.active {
    opacity: 0;
}

html.eventify-landing-enter:not(.eventify-landing-enter--done) #public-calendar .landing-calendar-video-wrap,
html.eventify-landing-enter:not(.eventify-landing-enter--done) #public-calendar > .public-upcoming-wrap,
html.eventify-landing-enter:not(.eventify-landing-enter--done) #public-calendar .landing-events-panel {
    opacity: 0;
    transform: translateY(14px);
}

html.eventify-landing-enter:not(.eventify-landing-enter--done) h1,
html.eventify-landing-enter:not(.eventify-landing-enter--done) section > p {
    animation: none;
}

html.eventify-landing-enter--active .bg-image,
html.eventify-landing-enter--active .layer-blur,
html.eventify-landing-enter--active .noise-overlay,
html.eventify-landing-enter--active .site-header,
html.eventify-landing-enter--active footer {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

html.eventify-landing-enter--active section.active {
    opacity: 1;
    transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 80ms;
}

html.eventify-landing-enter--active #public-calendar .landing-calendar-video-wrap,
html.eventify-landing-enter--active #public-calendar > .public-upcoming-wrap,
html.eventify-landing-enter--active #public-calendar .landing-events-panel {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

html.eventify-landing-enter--active .bg-image,
html.eventify-landing-enter--active .layer-blur,
html.eventify-landing-enter--active .noise-overlay {
    transition-delay: 0ms;
    transition-duration: 0.52s;
}

html.eventify-landing-enter--active .site-header {
    transition-delay: 40ms;
}

html.eventify-landing-enter--active #public-calendar .landing-calendar-video-wrap {
    transition-delay: 100ms;
}

html.eventify-landing-enter--active #public-calendar > .public-upcoming-wrap {
    transition-delay: 160ms;
}

html.eventify-landing-enter--active #public-calendar .landing-events-panel {
    transition-delay: 220ms;
}

html.eventify-landing-enter--active footer {
    transition-delay: 280ms;
}

@media (max-width: 768px) {
    html.eventify-landing-enter:not(.eventify-landing-enter--done) section {
        opacity: 0;
    }

    html.eventify-landing-enter--active section {
        opacity: 1;
        transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
        transition-delay: 100ms;
    }

    html.eventify-landing-enter--active #public-calendar .landing-calendar-video-wrap {
        transition-delay: 100ms;
    }

    html.eventify-landing-enter--active #public-calendar > .public-upcoming-wrap {
        transition-delay: 160ms;
    }

    html.eventify-landing-enter--active #public-calendar .landing-events-panel {
        transition-delay: 220ms;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.eventify-landing-enter:not(.eventify-landing-enter--done) .bg-image,
    html.eventify-landing-enter:not(.eventify-landing-enter--done) .layer-blur,
    html.eventify-landing-enter:not(.eventify-landing-enter--done) .noise-overlay,
    html.eventify-landing-enter:not(.eventify-landing-enter--done) .site-header,
    html.eventify-landing-enter:not(.eventify-landing-enter--done) footer,
    html.eventify-landing-enter:not(.eventify-landing-enter--done) #public-calendar .landing-calendar-video-wrap,
    html.eventify-landing-enter:not(.eventify-landing-enter--done) #public-calendar > .public-upcoming-wrap,
    html.eventify-landing-enter:not(.eventify-landing-enter--done) #public-calendar .landing-events-panel,
    html.eventify-landing-enter:not(.eventify-landing-enter--done) section {
        transform: none;
    }

    html.eventify-landing-enter--active .bg-image,
    html.eventify-landing-enter--active .layer-blur,
    html.eventify-landing-enter--active .noise-overlay,
    html.eventify-landing-enter--active .site-header,
    html.eventify-landing-enter--active footer,
    html.eventify-landing-enter--active section.active,
    html.eventify-landing-enter--active section,
    html.eventify-landing-enter--active #public-calendar .landing-calendar-video-wrap,
    html.eventify-landing-enter--active #public-calendar > .public-upcoming-wrap,
    html.eventify-landing-enter--active #public-calendar .landing-events-panel {
        transition-duration: 0.25s;
        transition-delay: 0ms !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eventify-splash__inner,
    .eventify-splash__glow,
    .eventify-splash__ring,
    .eventify-splash__status-dot {
        animation: none;
    }
}

/* ===============================
   AUTH PAGE (EVENTIFY theme)
================================ */
.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;
}

body.auth-modal-open {
    overflow: hidden;
}

body.auth-modal-open .bg-image,
body.auth-modal-open .layer-blur,
body.auth-modal-open .noise-overlay,
body.auth-modal-open .site-header,
body.auth-modal-open section,
body.auth-modal-open footer,
body.auth-modal-open .spline-wrap {
    display: none !important;
}

#loginModal.auth-modal--page,
#registerModal.auth-modal--page,
#verifyModal.auth-modal--page {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-modal--page {
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
    background: linear-gradient(145deg, var(--school-green-950) 0%, var(--school-green-900) 42%, var(--school-green-800) 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 100000;
}

.auth-modal--page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 85% 15%, rgba(250, 204, 21, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.12) 0%, transparent 45%);
    z-index: 0;
}

.auth-modal--page .auth-page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    animation: auth-page-in 0.45s ease both;
}

.auth-page__split {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    width: 100%;
}

.auth-page__aside {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(2rem + env(safe-area-inset-top, 0px)) 2.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
    background:
        linear-gradient(165deg, rgba(2, 44, 34, 0.98) 0%, rgba(21, 51, 19, 0.96) 55%, rgba(6, 78, 59, 0.88) 100%);
    border-right: 1px solid rgba(230, 197, 74, 0.12);
    position: relative;
    overflow: hidden;
}

.auth-page__aside::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(234, 179, 8, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}

.auth-page__aside-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}

.auth-page__hero {
    position: relative;
    z-index: 1;
    margin: 0 0 2rem;
    max-width: 22rem;
    color: #fffdf8;
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.auth-page__features {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.auth-page__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: rgba(236, 253, 245, 0.82);
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-page__feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(230, 197, 74, 0.22);
    color: var(--school-gold-light);
    font-size: 0.85rem;
}

.auth-page__aside-foot {
    position: relative;
    z-index: 1;
    margin: 2.5rem 0 0;
    padding: 0.55rem 0.9rem;
    align-self: flex-start;
    border-radius: 999px;
    border: 1px solid rgba(230, 197, 74, 0.18);
    background: rgba(255, 253, 248, 0.05);
    color: rgba(236, 253, 245, 0.62);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.auth-page__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
}

.auth-page__main-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-modal--wide .auth-page__main-inner {
    max-width: 520px;
}

@keyframes auth-page-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-page__top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    margin-bottom: 1.25rem;
    width: 100%;
    padding: 0;
}

.auth-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    color: rgba(236, 253, 245, 0.88);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 0.35rem 0.5rem 0.35rem 0;
    border-radius: 8px;
    transition: color 0.2s ease, transform 0.15s ease;
}

.auth-page__back:hover {
    color: var(--school-gold-light);
    transform: translateX(-2px);
}

.auth-page__back:active {
    transform: translateX(0);
}

.auth-page__back-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 253, 248, 0.06);
    border: 1px solid rgba(230, 197, 74, 0.22);
    color: var(--school-gold-light);
    font-size: 0.68rem;
    flex-shrink: 0;
}

.auth-page__back-text {
    line-height: 1;
    letter-spacing: 0.01em;
}

.auth-page__logo {
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(6, 78, 59, 0.95), rgba(21, 51, 19, 0.98));
    border: 1px solid rgba(230, 197, 74, 0.35);
    box-shadow: 0 0 22px rgba(234, 179, 8, 0.15);
    color: var(--school-gold-light);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.auth-page__wordmark {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
    background: linear-gradient(135deg, #fefce8 0%, var(--school-gold-light) 45%, var(--school-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.25));
}

.auth-card {
    background: linear-gradient(180deg, rgba(27, 74, 27, 0.97), rgba(21, 51, 19, 0.99));
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow:
        0 26px 64px rgba(0, 0, 0, 0.45),
        0 0 0 2px rgba(230, 197, 74, 0.35),
        0 0 40px rgba(234, 179, 8, 0.08);
    border-bottom: 3px solid var(--school-gold);
    animation: auth-card-in 0.5s ease 0.08s both;
}

@keyframes auth-card-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 1.25rem 1.2rem 0.85rem;
    border-bottom: 1px solid rgba(230, 197, 74, 0.14);
}

.auth-card__accent {
    width: 4px;
    min-height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--school-gold-light), var(--school-gold));
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.35);
    flex-shrink: 0;
}

.auth-card__title {
    margin: 0 0 0.2rem;
    color: #fffdf8;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: left;
}

.auth-card__subtitle {
    margin: 0;
    color: rgba(247, 244, 231, 0.72);
    font-size: 0.8125rem;
    line-height: 1.45;
    text-align: left;
}

.auth-modal--page .auth-form-wrap,
.auth-modal--page .auth-inline-message,
.auth-modal--page .auth-field-hint,
.auth-modal--page .auth-verify-hint,
.auth-modal--page .auth-verify-resend-form {
    margin-left: 1.2rem;
    margin-right: 1.2rem;
}

.auth-modal--page .auth-form-wrap {
    gap: 0.85rem;
    padding: 1rem 0 0.25rem;
}

.auth-modal--page .auth-inline-message:first-of-type,
.auth-modal--page .auth-inline-message.error,
.auth-modal--page .auth-inline-message.success {
    margin-top: 0.85rem;
}

.auth-field-icon {
    position: relative;
}

.auth-field-icon__lead {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(247, 244, 231, 0.45);
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1;
}

.auth-field-icon .auth-input {
    padding-left: 2.55rem;
    background: rgba(255, 253, 248, 0.08);
    border-color: rgba(230, 197, 74, 0.28);
    border-radius: 11px;
    min-height: 46px;
    color: #fffdf8;
}

.auth-field-icon .auth-input:focus {
    border-color: rgba(230, 197, 74, 0.75);
    box-shadow: 0 0 0 3px rgba(230, 197, 74, 0.18);
    background: rgba(255, 253, 248, 0.12);
}

.auth-field-icon--password .auth-input {
    padding-right: 2.75rem;
}

.auth-field-icon .auth-eye-btn {
    right: 0.55rem;
    background: rgba(21, 51, 19, 0.55);
    color: rgba(247, 244, 231, 0.85);
}

.auth-field-icon .auth-eye-btn:hover {
    background: rgba(61, 138, 53, 0.45);
    color: #fff;
}

.auth-form-meta {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: 0.75rem;
    margin-top: 0.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.04);
    border: 1px solid rgba(230, 197, 74, 0.1);
}

.auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.auth-remember__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.auth-remember__label {
    color: rgba(247, 244, 231, 0.92);
    font-size: 0.8125rem;
    font-weight: 600;
}

.auth-remember__hint {
    color: rgba(247, 244, 231, 0.55);
    font-size: 0.72rem;
    line-height: 1.35;
}

.auth-remember__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.auth-remember__switch {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.auth-remember__switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fffdf8;
    transition: transform 0.2s ease;
}

.auth-remember__input:checked + .auth-remember__switch {
    background: var(--school-gold);
}

.auth-remember__input:checked + .auth-remember__switch::after {
    transform: translateX(18px);
}

.auth-btn-primary,
.auth-btn-secondary {
    width: 100%;
    border: 0;
    border-radius: 11px;
    padding: 0.78rem 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-btn-primary {
    margin-top: 0.35rem;
    background: linear-gradient(135deg, var(--school-gold-light) 0%, var(--school-gold) 55%, #ca8a04 100%);
    color: var(--school-btn-text) !important;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.35);
}

.auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(234, 179, 8, 0.5);
}

.auth-btn-secondary {
    background: rgba(255, 253, 248, 0.06);
    border: 1px solid rgba(230, 197, 74, 0.28);
    color: var(--school-cream);
}

.auth-btn-secondary:hover {
    background: rgba(255, 253, 248, 0.1);
}

.auth-reactivate-otp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    width: 100%;
    color: var(--school-gold-light) !important;
    border-color: rgba(230, 197, 74, 0.55);
    text-decoration: none;
}

.auth-reactivate-otp-btn:hover {
    background: rgba(230, 197, 74, 0.16);
    border-color: var(--school-gold-light);
    color: #fef9c3 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.22);
}

.auth-card__footer {
    margin: 0;
    padding: 0.95rem 1.2rem 1.15rem;
    border-top: 1px solid rgba(230, 197, 74, 0.18);
    background: linear-gradient(180deg, transparent 0%, rgba(21, 51, 19, 0.92) 28%);
    text-align: center;
}

.auth-card__footer p {
    margin: 0 0 0.35rem;
    color: rgba(247, 244, 231, 0.72);
    font-size: 0.8125rem;
}

.auth-card__footer p:last-child {
    margin-bottom: 0;
}

.auth-link-btn {
    border: 0;
    background: none;
    padding: 0;
    color: var(--school-gold-light);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.auth-link-btn:hover {
    color: #fef9c3;
    text-decoration: underline;
}

.auth-link-btn--muted {
    color: rgba(247, 244, 231, 0.62);
    font-weight: 500;
}

.auth-modal--page .auth-label {
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    color: rgba(247, 244, 231, 0.88);
}

.auth-modal--page .auth-field-hint,
.auth-modal--page .auth-password-guide {
    color: rgba(247, 244, 231, 0.65);
}

.auth-modal--page .auth-inline-message {
    margin-bottom: 0.85rem;
}

.auth-page__mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.35rem;
}

.auth-page__mobile-brand .auth-page__logo {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
}

.auth-page__mobile-brand .auth-page__wordmark {
    font-size: clamp(1.65rem, 6vw, 2rem);
}

@media (min-width: 900px) {
    .auth-page__mobile-brand {
        display: none;
    }

    .auth-page__split {
        flex-direction: row;
    }

    .auth-page__aside {
        display: flex;
        flex: 0 0 38%;
        max-width: 38%;
        min-height: 100dvh;
    }

    .auth-page__main {
        flex: 1;
        min-width: 0;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        background: linear-gradient(180deg, rgba(4, 58, 44, 0.55) 0%, rgba(21, 51, 19, 0.35) 100%);
    }

    .auth-page__top {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 899px) {
    .auth-page__main {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .auth-page__main-inner {
        justify-content: flex-start;
        padding-top: 0.25rem;
    }

    .auth-page__top {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .auth-page__back {
        font-size: 0.78rem;
    }

    .auth-page__back-icon {
        width: 26px;
        height: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-modal--page .auth-page,
    .auth-card {
        animation: none;
    }

    .auth-page__back {
        transition: none;
    }
}

/* ===============================
   GET STARTED — flashcard guide
   =============================== */
body.guide-modal-open {
    overflow: hidden;
}

.guide-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.guide-modal[hidden] {
    display: none !important;
}

.guide-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 20, 12, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.guide-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(92vh, 680px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #0a3d1f 0%, #052e16 55%, #021a08 100%);
    border: 2px solid rgba(249, 237, 0, 0.45);
    border-radius: 22px;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(16, 185, 129, 0.12);
    overflow: hidden;
    animation: guidePanelIn 0.28s ease;
}

@keyframes guidePanelIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.guide-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem 0.65rem;
}

.guide-modal__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.guide-modal__logo {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 237, 0, 0.16);
    color: #f9ed00;
    font-size: 0.95rem;
}

.guide-modal__wordmark {
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ecfdf5;
    font-size: 0.82rem;
}

.guide-modal__close {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ecfdf5;
    cursor: pointer;
    transition: background 0.15s ease;
}

.guide-modal__close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.guide-flashcard-viewport {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0.35rem 1.15rem 0.5rem;
    touch-action: pan-y;
}

.guide-flashcard.is-active.is-dragging {
    transition: none !important;
    cursor: grabbing;
    z-index: 4;
}

.guide-flashcard.is-swipe-peek {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: none;
    z-index: 3;
}

.guide-flashcard-stage {
    position: relative;
    z-index: 1;
    min-height: 22rem;
    perspective: 900px;
}

.guide-flashcard {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(105%) scale(0.94);
    transform-origin: center center;
    will-change: transform, opacity;
}

.guide-flashcard[hidden]:not(.is-enter-right):not(.is-enter-left):not(.is-exit-left):not(.is-exit-right) {
    display: none !important;
}

.guide-flashcard.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.guide-flashcard.is-enter-right {
    visibility: visible;
    z-index: 3;
    animation: guideSlideEnterFromRight 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.guide-flashcard.is-exit-left {
    visibility: visible;
    z-index: 2;
    animation: guideSlideExitToLeft 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.guide-flashcard.is-enter-left {
    visibility: visible;
    z-index: 3;
    animation: guideSlideEnterFromLeft 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.guide-flashcard.is-exit-right {
    visibility: visible;
    z-index: 2;
    animation: guideSlideExitToRight 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes guideSlideEnterFromRight {
    from {
        opacity: 0;
        transform: translateX(105%) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes guideSlideExitToLeft {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-105%) scale(0.94);
    }
}

@keyframes guideSlideEnterFromLeft {
    from {
        opacity: 0;
        transform: translateX(-105%) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes guideSlideExitToRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(105%) scale(0.94);
    }
}

.guide-flashcard__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.guide-flashcard__icon--welcome { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.guide-flashcard__icon--student { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.guide-flashcard__icon--organizer { background: rgba(249, 237, 0, 0.14); color: #f9ed00; }
.guide-flashcard__icon--staff { background: rgba(168, 85, 247, 0.16); color: #d8b4fe; }
.guide-flashcard__icon--ready { background: rgba(249, 237, 0, 0.2); color: #fde047; }

.guide-flashcard__step {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(249, 237, 0, 0.85);
}

.guide-flashcard__title {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #f0fdf4;
}

.guide-flashcard__text {
    margin: 0 0 0.85rem;
    color: rgba(236, 253, 245, 0.82);
    line-height: 1.55;
    font-size: 0.92rem;
}

.guide-flashcard__bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.guide-flashcard__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: rgba(236, 253, 245, 0.88);
    font-size: 0.88rem;
    line-height: 1.45;
}

.guide-flashcard__bullets i {
    color: #f9ed00;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.guide-flashcard__cta {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.guide-flashcard__cta .btn {
    width: 100%;
    justify-content: center;
}

.guide-flashcard__cta-secondary {
    border-color: rgba(236, 253, 245, 0.35) !important;
    color: #ecfdf5 !important;
}

.guide-modal__foot {
    padding: 0.75rem 1.15rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-swipe-hint {
    display: none;
    margin: 0 0 0.65rem;
    text-align: center;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(236, 253, 245, 0.55);
    letter-spacing: 0.02em;
}

.guide-swipe-hint i {
    margin-right: 0.35rem;
    color: rgba(249, 237, 0, 0.75);
}

@media (max-width: 768px) {
    .guide-swipe-hint {
        display: block;
    }

    .guide-dots {
        margin-bottom: 0.5rem;
    }
}

.guide-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.guide-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: width 0.18s ease, background 0.18s ease;
}

.guide-dot.is-active {
    width: 1.35rem;
    background: #f9ed00;
}

.guide-modal__nav {
    display: none;
    gap: 0.55rem;
}

.guide-modal__nav[hidden] {
    display: none !important;
}

@media (min-width: 769px) {
    .guide-modal__nav:not([hidden]) {
        display: flex;
    }
}

.guide-nav-btn {
    flex: 1 1 0;
    border-radius: 999px;
    padding: 0.62rem 0.9rem;
    font-weight: 700;
    font-size: 0.86rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.guide-nav-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ecfdf5;
}

.guide-nav-btn--ghost:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.guide-nav-btn--primary {
    background: linear-gradient(135deg, #f9ed00, #e6c200);
    color: #0a3d1f;
}

.guide-skip-btn {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
    border: none;
    background: none;
    color: rgba(236, 253, 245, 0.55);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guide-skip-btn:hover {
    color: rgba(236, 253, 245, 0.85);
}

@media (max-width: 480px) {
    .guide-modal {
        padding: 0.65rem;
    }

    .guide-modal__panel {
        max-height: 94vh;
        border-radius: 18px;
    }

    .guide-flashcard__title {
        font-size: 1.18rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guide-modal__panel,
    .guide-flashcard.is-enter-right,
    .guide-flashcard.is-enter-left,
    .guide-flashcard.is-exit-left,
    .guide-flashcard.is-exit-right {
        animation: none !important;
    }

    .guide-flashcard.is-enter-right,
    .guide-flashcard.is-enter-left {
        opacity: 1;
        transform: none;
    }

    .guide-flashcard.is-exit-left,
    .guide-flashcard.is-exit-right {
        opacity: 0;
    }
}

/* Verify OTP — per-digit boxes */
.auth-otp-wrap {
    margin-bottom: 0.35rem;
}

.auth-otp-boxes {
    display: flex;
    justify-content: space-between;
    gap: clamp(0.35rem, 2.2vw, 0.65rem);
    margin-top: 0.35rem;
}

.auth-otp-box {
    flex: 1 1 0;
    min-width: 0;
    max-width: 3.15rem;
    aspect-ratio: 1 / 1.05;
    height: auto;
    min-height: 3rem;
    border-radius: 12px;
    border: 1.5px solid rgba(230, 197, 74, 0.38);
    background: rgba(255, 253, 248, 0.1);
    color: #fffdf8;
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    font-weight: 700;
    text-align: center;
    caret-color: #e6c54a;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}

.auth-otp-box::-webkit-outer-spin-button,
.auth-otp-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.auth-otp-box:focus {
    border-color: #e6c54a;
    background: rgba(255, 253, 248, 0.16);
    box-shadow: 0 0 0 3px rgba(230, 197, 74, 0.22);
}

.auth-otp-box.is-filled {
    border-color: rgba(230, 197, 74, 0.65);
    background: rgba(61, 138, 53, 0.22);
}

.auth-otp-hint {
    margin: 0.55rem 0 0;
    font-size: 0.72rem;
    color: rgba(247, 244, 231, 0.62);
}

@media (max-width: 380px) {
    .auth-otp-box {
        min-height: 2.65rem;
        border-radius: 10px;
        font-size: 1.1rem;
    }
}
