@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,680&family=Figtree:wght@400;500;600;700&display=swap');

:root {
    /* Palette drawn from the Future University flame mark:
       red at the crown, ember and gold through the body, umber at the root */
    --fu-red: #D9291E;
    --fu-red-dark: #AF2018;
    --fu-ember: #E97722;
    --fu-gold: #E4A63A;
    --fu-umber: #4A2A1C;
    --fu-umber-soft: #7C5C4C;

    --bg: #FBF8F5;
    --surface: #FFFFFF;
    --text: #241A14;
    --muted: #79695F;
    --border: #E9E1D8;

    --font-display: 'Fraunces', 'Iowan Old Style', serif;
    --font-body: 'Figtree', ui-sans-serif, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
}

.page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Flame watermark behind the hero — the mark's own silhouette, not a
   generic decorative blob, kept faint enough to read as texture */
.background-shape {
    position: absolute;
    width: 640px;
    height: 780px;
    top: -140px;
    left: -220px;
    pointer-events: none;
    opacity: 0.05;
    background:
        radial-gradient(closest-side at 60% 20%, var(--fu-red), transparent 70%),
        radial-gradient(closest-side at 45% 45%, var(--fu-ember), transparent 70%),
        radial-gradient(closest-side at 40% 70%, var(--fu-umber), transparent 70%);
    filter: blur(10px);
    transform: rotate(-8deg);
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: auto;
    padding: 0 24px;
}


/* =========================================================
   Header
   ========================================================= */

header {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    display: block;
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    flex: 0 0 42px;
}

.brand-text {
    min-width: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: #55483F;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: .2s;
}

.nav-link:hover {
    color: var(--fu-red);
    background: rgba(217, 41, 30, .06);
}

.login-button {
    text-decoration: none;
    background: var(--fu-red);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(217, 41, 30, .2);
    transition: .2s;
}

.login-button:hover {
    background: var(--fu-red-dark);
    transform: translateY(-1px);
}



/* =========================================================
   Hero
   ========================================================= */

.hero {
    min-height: 530px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 70px;
    padding: 65px 0 75px;
}

.hero-content {
    max-width: 620px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(217, 41, 30, .08);
    color: var(--fu-red);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: linear-gradient(135deg, var(--fu-red), var(--fu-gold));
    border-radius: 50%;
}

h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(40px, 4.8vw, 60px);
    line-height: 1.08;
    letter-spacing: -1.2px;
    font-weight: 600;
    color: var(--text);
}

h1 span {
    color: var(--fu-red);
}

.hero-text {
    margin: 22px 0 0;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    background: var(--fu-red);
    color: white;
    padding: 13px 21px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(217, 41, 30, .22);
    transition: .2s;
}

.primary-button:hover {
    background: var(--fu-red-dark);
    transform: translateY(-2px);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #4A3B31;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 12px 19px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
}

.secondary-button:hover {
    border-color: rgba(217, 41, 30, .3);
    color: var(--fu-red);
}



/* =========================================================
   Dashboard Preview
   ========================================================= */

.panel-wrapper {
    position: relative;
}

.panel-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    right: 10px;
    top: 30px;
    background: radial-gradient(circle, rgba(233, 119, 34, .18), rgba(217, 41, 30, .10) 60%, transparent 75%);
    filter: blur(60px);
    border-radius: 50%;
}

.panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow:
        0 25px 60px rgba(74, 42, 28, .10),
        0 4px 15px rgba(74, 42, 28, .04);
}

.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 17px;
    border-bottom: 1px solid #F1EAE3;
}

.panel-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fu-red), var(--fu-ember));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
}

.user-label {
    font-size: 11px;
    color: #A99A8D;
    margin-top: 2px;
}

.notification {
    width: 35px;
    height: 35px;
    border: 1px solid #EFE7DF;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.notification svg {
    width: 17px;
}

.panel-title {
    font-size: 13px;
    color: var(--muted);
    margin: 20px 0 10px;
}

.panel-student {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.panel-id {
    font-size: 12px;
    color: #A99A8D;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    margin-top: 20px;
}

.mini-card {
    border: 1px solid #F1EAE3;
    border-radius: 11px;
    padding: 14px;
    background: var(--surface);
}

.mini-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.mini-icon svg {
    width: 18px;
    height: 18px;
}

/* Each service borrows one band of the flame, top to bottom */
.mini-card:nth-child(1) .mini-icon {
    background: rgba(217, 41, 30, .1);
    color: var(--fu-red);
}

.mini-card:nth-child(2) .mini-icon {
    background: rgba(233, 119, 34, .12);
    color: var(--fu-ember);
}

.mini-card:nth-child(3) .mini-icon {
    background: rgba(228, 166, 58, .16);
    color: #B8811F;
}

.mini-card:nth-child(4) .mini-icon {
    background: rgba(74, 42, 28, .1);
    color: var(--fu-umber);
}

.mini-title {
    font-size: 12px;
    color: var(--muted);
}

.mini-value {
    font-size: 15px;
    font-weight: 700;
    margin-top: 4px;
}

.status-card {
    margin-top: 11px;
    padding: 13px 14px;
    border-radius: 11px;
    background: rgba(217, 41, 30, .05);
    border: 1px solid rgba(217, 41, 30, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-title {
    font-size: 12px;
    color: var(--muted);
}

.status-value {
    color: #167A45;
    font-size: 12px;
    font-weight: 700;
}



/* =========================================================
   App Download
   ========================================================= */

.app-download {
    padding: 10px 0 50px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 620px;
    margin: 0 auto;
}

.store-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    background: var(--fu-umber);
    border-radius: 12px;
    padding: 16px 20px;
    transition: .2s;
}

.store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(74, 42, 28, .18);
}

.store-card:nth-child(1) {
    background: linear-gradient(135deg, var(--fu-umber), #2E1A11);
}

.store-card:nth-child(2) {
    background: linear-gradient(135deg, var(--fu-red-dark), var(--fu-umber));
}

.store-icon {
    width: 34px;
    height: 34px;
    color: white;
    flex-shrink: 0;
}

.store-eyebrow {
    font-size: 11px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.3;
}

.store-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}



/* =========================================================
   Services
   ========================================================= */

.features {
    padding: 20px 0 70px;
}

.section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -.4px;
}

.section-heading p {
    margin: 9px auto 0;
    color: var(--muted);
    font-size: 14px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    border-top: 2px solid transparent;
    transition: .2s;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(74, 42, 28, .07);
}

.feature:nth-child(1) {
    border-top-color: var(--fu-red);
}

.feature:nth-child(2) {
    border-top-color: var(--fu-ember);
}

.feature:nth-child(3) {
    border-top-color: var(--fu-gold);
}

.feature:nth-child(4) {
    border-top-color: var(--fu-umber);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.feature:nth-child(1) .feature-icon {
    background: rgba(217, 41, 30, .1);
    color: var(--fu-red);
}

.feature:nth-child(2) .feature-icon {
    background: rgba(233, 119, 34, .12);
    color: var(--fu-ember);
}

.feature:nth-child(3) .feature-icon {
    background: rgba(228, 166, 58, .16);
    color: #B8811F;
}

.feature:nth-child(4) .feature-icon {
    background: rgba(74, 42, 28, .1);
    color: var(--fu-umber);
}

.feature-icon svg {
    width: 21px;
    height: 21px;
}

.feature h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.feature p {
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}



/* =========================================================
   Footer
   ========================================================= */

footer {
    border-top: 1px solid var(--border);
    padding: 25px 0;
    text-align: center;
    color: #A99A8D;
    font-size: 12px;
}

footer span {
    color: var(--fu-red);
    font-weight: 600;
}



/* =========================================================
   Visitor counter
   ========================================================= */

.visitor-counter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.visitor-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.visitor-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 119, 34, .1);
    color: var(--fu-ember);
    border-radius: 12px;
    flex-shrink: 0;
}

.visitor-stat:nth-child(2) .visitor-stat-icon {
    background: rgba(217, 41, 30, .1);
    color: var(--fu-red);
}

.visitor-stat-icon svg {
    width: 24px;
    height: 24px;
}

.visitor-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--muted);
}

.visitor-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}



/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-top: 45px;
    }

    .hero-content {
        max-width: 700px;
        margin: auto;
        text-align: center;
    }

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

    .panel-wrapper {
        max-width: 550px;
        width: 100%;
        margin: auto;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   Mobile Header & Layout
   ========================================================= */

@media (max-width: 600px) {

    .container {
        padding: 0 17px;
    }

    /* ---------------------------------------------------------
       Header
       --------------------------------------------------------- */

    header {
        height: auto;
        min-height: 64px;
        padding: 10px 0;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;

        position: relative;
        z-index: 100;
    }

    /* ---------------------------------------------------------
       Brand
       --------------------------------------------------------- */

    .brand {
        min-width: 0;
        max-width: calc(100% - 52px);
        gap: 8px;
        flex: 1;
        flex-shrink: 1;
    }

    .brand-logo {
        display: block;
        width: 34px !important;
        height: 38px !important;
        max-width: 34px !important;
        max-height: 38px !important;
        object-fit: contain;
        flex: 0 0 34px;
    }

    .brand-text {
        min-width: 0;
        overflow: hidden;
    }

    .brand-title {
        font-size: 15px !important;
        line-height: 1.1;
        letter-spacing: -.2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-subtitle {
        margin-top: 2px;
        font-size: 9px !important;
        line-height: 1.15;
        white-space: nowrap;
    }

    /* ---------------------------------------------------------
       Mobile menu button
       --------------------------------------------------------- */

    .mobile-menu-button {
        display: block;
        width: 40px;
        height: 40px;
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: var(--surface);
        cursor: pointer;
        flex: 0 0 40px;
        position: relative;
        z-index: 1002;
    }

    .mobile-menu-button span {
        display: block;
        width: 20px;
        height: 2px;
        margin: 4px auto;
        background: var(--text);
        border-radius: 2px;
        transition: transform .2s ease;
    }

    /* ---------------------------------------------------------
       Mobile navigation
       --------------------------------------------------------- */

    .header-nav {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;

        width: 100%;
        padding: 8px;

        background: rgba(255, 255, 255, .98);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 12px 35px rgba(74, 42, 28, .12);
        backdrop-filter: blur(12px);

        z-index: 1001;

    }

    .header-nav.open {
        display: flex;
    }

    .header-nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;

        width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 11px 14px;

        border-radius: 8px;
        font-size: 14px;
        white-space: nowrap;
    }

    .header-nav .nav-link:hover,
    .header-nav .nav-link.active {
        color: var(--fu-red);
        background: rgba(217, 41, 30, .08);
    }

    .header-nav .nav-link.active::after {
        display: none;
    }

    /* ---------------------------------------------------------
       Login
       --------------------------------------------------------- */

    .login-button {
        width: auto;
        text-align: center;
        margin: 0;
        padding: 8px 10px;
        font-size: 11px;
    }

    /* ---------------------------------------------------------
       Hero
       --------------------------------------------------------- */

    h1 {
        font-size: 38px;
        letter-spacing: -.8px;
    }

    .hero {
        padding: 40px 0 55px;
    }

    .hero-text {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: auto;
    }

    /* ---------------------------------------------------------
       Other sections
       --------------------------------------------------------- */

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .store-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        gap: 8px;
    }

    .visitor-counter {
        grid-template-columns: 1fr;
    }

    /* Prevent common privacy-policy wrappers from overflowing. */

    .privacy-policy,
    .privacy-container,
    .privacy-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}


/* =========================================================
   Small Phones
   ========================================================= */

@media (max-width: 380px) {

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    header {
        gap: 8px;
    }

    .brand {
        max-width: calc(100% - 48px);
        gap: 6px;
    }

    .brand-logo {
        width: 30px !important;
        height: 36px !important;
        max-width: 30px !important;
        max-height: 36px !important;
        flex-basis: 30px;
    }

    .brand-title {
        font-size: 13px !important;
    }

    .brand-subtitle {
        font-size: 8px !important;
    }

    .mobile-menu-button {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    h1 {
        font-size: 34px;
    }
}


.status-available {
    color: #2e8b57;
}

.status-unavailable {
    color: #dc3545;
}

/* =========================================================
   Flares Animation
   ========================================================= */
.flares {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.flare {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, rgba(233, 119, 34, 0.15), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: float 12s ease-in-out infinite;
}

.flare:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 30% 30%, rgba(217, 41, 30, 0.15), transparent 70%);
}

.flare:nth-child(2) {
    right: 15%;
    top: 40%;
    animation-delay: 3s;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, rgba(233, 119, 34, 0.15), transparent 70%);
}

.flare:nth-child(3) {
    left: 5%;
    bottom: 30%;
    animation-delay: 6s;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at 30% 30%, rgba(228, 166, 58, 0.15), transparent 70%);
}

.flare:nth-child(4) {
    right: 5%;
    bottom: 40%;
    animation-delay: 9s;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at 30% 30%, rgba(74, 42, 28, 0.15), transparent 70%);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-20px) rotate(18deg);
        opacity: 0.6;
    }
}

/* =========================================================
   Cards Animation
   ========================================================= */
.cards .mini-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.cards .mini-card:nth-child(1) {
    animation-delay: 0.1s;
}

.cards .mini-card:nth-child(2) {
    animation-delay: 0.2s;
}

.cards .mini-card:nth-child(3) {
    animation-delay: 0.3s;
}

.cards .mini-card:nth-child(4) {
    animation-delay: 0.4s;
}

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

/* ============================================================
   LANDING PAGE BACKGROUND
============================================================ */

.page {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background:
        linear-gradient(180deg,
            #fffdfb 0%,
            #ffffff 48%,
            #fbfdff 100%);
}


/* ============================================================
   FLARE SYSTEM
============================================================ */

.flares {
    position: absolute;
    inset: 0;

    z-index: -1;

    overflow: hidden;

    pointer-events: none;
}


/*
|--------------------------------------------------------------------------
| Base flare
|--------------------------------------------------------------------------
*/

.flare {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    pointer-events: none;

    opacity: .65;

    filter: blur(55px);

    will-change: transform, opacity;

    mix-blend-mode: multiply;

    background:
        radial-gradient(circle,
            rgba(245, 116, 80, .15) 0%,
            rgba(247, 148, 116, .09) 30%,
            rgba(255, 210, 190, .04) 48%,
            transparent 72%);
}


/* ============================================================
   FLARE 1
   Warm glow around upper-left hero area
============================================================ */

.flare-1 {

    width: 480px;
    height: 480px;

    top: -220px;
    left: -100px;

    animation:
        flareMoveOne 18s ease-in-out infinite;
}


/* ============================================================
   FLARE 2
   Main hero coral glow
============================================================ */

.flare-2 {

    width: 620px;
    height: 620px;

    top: 100px;
    left: 32%;

    opacity: .48;

    background:
        radial-gradient(circle,
            rgba(238, 78, 53, .14) 0%,
            rgba(245, 119, 92, .08) 28%,
            rgba(255, 190, 170, .04) 48%,
            transparent 72%);

    animation:
        flareMoveTwo 24s ease-in-out infinite;
}


/* ============================================================
   FLARE 3
   Cool blue contrast
============================================================ */

.flare-3 {

    width: 520px;
    height: 520px;

    right: -170px;
    top: 40px;

    opacity: .42;

    background:
        radial-gradient(circle,
            rgba(71, 143, 230, .13) 0%,
            rgba(102, 166, 239, .07) 32%,
            transparent 70%);

    animation:
        flareMoveThree 21s ease-in-out infinite;
}


/* ============================================================
   FLARE 4
   Lower warm glow
============================================================ */

.flare-4 {

    width: 560px;
    height: 560px;

    left: 18%;
    bottom: -330px;

    opacity: .40;

    animation:
        flareMoveFour 26s ease-in-out infinite;
}


/* ============================================================
   FLARE 5
   Small moving blue highlight
============================================================ */

.flare-5 {

    width: 280px;
    height: 280px;

    right: 30%;
    bottom: 5%;

    opacity: .22;

    filter: blur(45px);

    background:
        radial-gradient(circle,
            rgba(84, 155, 239, .13),
            transparent 70%);

    animation:
        flareMoveFive 17s ease-in-out infinite;
}


/* ============================================================
   FLARE 6
   Very subtle background warmth
============================================================ */

.flare-6 {

    width: 350px;
    height: 350px;

    right: 5%;
    bottom: -160px;

    opacity: .28;

    filter: blur(50px);

    animation:
        flareMoveSix 23s ease-in-out infinite;
}


/* ============================================================
   CONTINUOUS FLARE ANIMATIONS
============================================================ */

@keyframes flareMoveOne {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0) scale(1);
        opacity: .48;
    }

    25% {
        transform:
            translate3d(80px, 35px, 0) scale(1.08);
        opacity: .68;
    }

    50% {
        transform:
            translate3d(150px, 5px, 0) scale(.94);
        opacity: .52;
    }

    75% {
        transform:
            translate3d(70px, -35px, 0) scale(1.05);
        opacity: .64;
    }
}


@keyframes flareMoveTwo {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0) scale(.95);
        opacity: .35;
    }

    25% {
        transform:
            translate3d(-80px, 35px, 0) scale(1.08);
        opacity: .52;
    }

    50% {
        transform:
            translate3d(70px, 80px, 0) scale(1.02);
        opacity: .40;
    }

    75% {
        transform:
            translate3d(120px, -20px, 0) scale(1.10);
        opacity: .50;
    }
}


@keyframes flareMoveThree {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0) scale(1);
        opacity: .32;
    }

    30% {
        transform:
            translate3d(-70px, 50px, 0) scale(1.10);
        opacity: .48;
    }

    60% {
        transform:
            translate3d(-120px, -30px, 0) scale(.94);
        opacity: .35;
    }

    80% {
        transform:
            translate3d(-40px, -60px, 0) scale(1.06);
        opacity: .45;
    }
}


@keyframes flareMoveFour {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0) scale(1);
        opacity: .28;
    }

    35% {
        transform:
            translate3d(100px, -70px, 0) scale(1.12);
        opacity: .42;
    }

    70% {
        transform:
            translate3d(-50px, -100px, 0) scale(.92);
        opacity: .34;
    }
}


@keyframes flareMoveFive {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0) scale(1);
        opacity: .16;
    }

    50% {
        transform:
            translate3d(-100px, -50px, 0) scale(1.25);
        opacity: .30;
    }
}


@keyframes flareMoveSix {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0) scale(.95);
        opacity: .20;
    }

    50% {
        transform:
            translate3d(-90px, -60px, 0) scale(1.12);
        opacity: .34;
    }
}


/* ============================================================
   HERO DEPTH
============================================================ */

.hero {
    position: relative;
    z-index: 1;
}


/*
|--------------------------------------------------------------------------
| Soft radial atmosphere behind hero
|--------------------------------------------------------------------------
*/

.hero::before {
    content: "";

    position: absolute;

    width: 900px;
    height: 600px;

    left: 5%;
    top: -150px;

    background:
        radial-gradient(ellipse,
            rgba(248, 118, 86, .055),
            transparent 68%);

    filter: blur(20px);

    pointer-events: none;

    z-index: -1;
}


/*
|--------------------------------------------------------------------------
| Blue atmosphere around dashboard
|--------------------------------------------------------------------------
*/

.hero::after {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    right: -180px;
    top: 0;

    background:
        radial-gradient(circle,
            rgba(64, 142, 229, .065),
            transparent 68%);

    filter: blur(20px);

    pointer-events: none;

    z-index: -1;
}


/* ============================================================
   PANEL GLOW
============================================================ */

.panel-glow {
    position: absolute;

    width: 90%;
    height: 90%;

    left: 5%;
    top: 5%;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(72, 143, 232, .14),
            transparent 68%);

    filter: blur(45px);

    opacity: .75;

    animation:
        panelGlowPulse 7s ease-in-out infinite;

    pointer-events: none;
}


@keyframes panelGlowPulse {

    0%,
    100% {
        transform: scale(.94);
        opacity: .50;
    }

    50% {
        transform: scale(1.08);
        opacity: .85;
    }

}


/* ============================================================
   DASHBOARD FLOAT
============================================================ */

.panel {
    animation:
        dashboardFloat 8s ease-in-out infinite;
}


@keyframes dashboardFloat {

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

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

}


/* ============================================================
   STATUS PULSE
============================================================ */

.status-pulse {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin-right: 6px;

    border-radius: 50%;

    background: #2eae72;

    box-shadow:
        0 0 0 0 rgba(46, 174, 114, .35);

    animation:
        statusPulse 2s ease-out infinite;
}


@keyframes statusPulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(46, 174, 114, .35);
    }

    70% {
        box-shadow:
            0 0 0 8px rgba(46, 174, 114, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(46, 174, 114, 0);
    }

}


/* ============================================================
   REDUCED MOTION
============================================================ */

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

    .flare,
    .panel,
    .panel-glow,
    .status-pulse {

        animation: none !important;

    }

}

.timetable-grid {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.timetable-grid th,
.timetable-grid td {
    border: 1px solid #d9dee5;
    vertical-align: top;
}

.timetable-grid .time-slot-header {
    min-width: 130px;
    white-space: nowrap;
}

.timetable-grid .day-header {
    min-width: 150px;
    text-align: center;
    font-weight: 600;
}

.timetable-grid .time-slot {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    background: #f8f9fa;
}

.timetable-grid .timetable-cell {
    min-width: 150px;
    min-height: 120px;
    padding: 8px;
}

.timetable-class {
    padding: 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    background: #f5f7fa;
    border-left: 4px solid #6c757d;
}

.timetable-class:last-child {
    margin-bottom: 0;
}

.timetable-course {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}

.timetable-course-name {
    font-size: 13px;
    margin-bottom: 7px;
    line-height: 1.3;
}

.timetable-detail {
    font-size: 12px;
    line-height: 1.5;
}

.empty-slot {
    color: #adb5bd;
    font-size: 18px;
}

.nav-link.active {
    color: var(--fu-red);
    background: rgba(217, 41, 30, .06);
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    color: var(--fu-red);
    background: rgba(217, 41, 30, .06);
    border-radius: 2px;
}

/* Mobile menu button - hidden on desktop */
.mobile-menu-button {
    display: none;
}

/* Show only on mobile */
@media (max-width: 600px) {

    .mobile-menu-button {
        display: block;
        width: 40px;
        height: 40px;
        padding: 8px;

        border: 1px solid var(--border);
        border-radius: 9px;

        background: var(--surface);

        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-menu-button span {
        display: block;
        width: 20px;
        height: 2px;
        margin: 4px auto;

        background: var(--text);
        border-radius: 2px;
    }

}

/*Privacy & Policy*/

.privacy-container {
    width: min(100% - 32px, 900px);
    margin: 40px auto;
}

.privacy-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 40px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06);
}

.privacy-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.privacy-header h1 {
    margin: 0 0 8px;
    font-size: 32px;
    color: #111827;
}

.privacy-header p {
    margin: 0;
    color: #6b7280;
}

.privacy-section {
    margin-bottom: 30px;
}

.privacy-section h2 {
    margin: 0 0 12px;
    font-size: 21px;
    color: #111827;
}

.privacy-section h3 {
    margin: 20px 0 8px;
    font-size: 17px;
    color: #374151;
}

.privacy-section p {
    margin: 0 0 12px;
}

.privacy-section ul {
    margin: 8px 0 15px;
    padding-left: 25px;
}

.privacy-section li {
    margin-bottom: 7px;
}

.privacy-highlight {
    background: #f3f4f6;
    border-left: 4px solid #2563eb;
    padding: 15px 18px;
    margin: 15px 0;
    border-radius: 4px;
}

.privacy-footer {
    border-top: 1px solid #e5e7eb;
    margin-top: 35px;
    padding-top: 20px;
    color: #6b7280;
    font-size: 14px;
}

a {
    color: #2563eb;
}

@media (max-width: 600px) {

    .privacy-container {
        width: min(100% - 20px, 900px);
        margin: 20px auto;
    }

    .privacy-card {
        padding: 24px 20px;
    }

    .privacy-header h1 {
        font-size: 26px;
    }

    .privacy-section h2 {
        font-size: 19px;
    }
}

/* ============================================================
   STUDENTS SEARCH STYLING
   ============================================================ */

.students-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.students-search {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.students-search-icon {
    font-size: 18px;
    color: var(--muted);
}

.students-search .form-control {
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    transition: all 0.2s ease;
    background-color: var(--surface);
}

.students-search .form-control:focus {
    outline: none;
    border-color: var(--fu-red);
    box-shadow: 0 0 0 3px rgba(217, 41, 30, .1);
}

.students-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: var(--muted);
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.students-search-clear:hover {
    color: var(--fu-red);
}

.students-search-info {
    font-size: 14px;
    color: var(--muted);
    min-width: 100px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .students-table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .students-search {
        width: 100%;
        max-width: 100%;
    }

    .students-search .form-control {
        width: 100%;
    }

    .students-search-info {
        margin-top: 12px;
        width: 100%;
        text-align: left;
    }
}

/* ============================================================
   VIEW MODE ONLY
   ============================================================ */

.timetable-view-entry {
    position: relative;
    margin: 4px 0 10px;
    padding: 10px 11px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eadfe0;
    box-shadow: 0 2px 7px rgba(90, 16, 24, 0.06);

    font-size: 12px;
    line-height: 1.45;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* ============================================================
   HOVER
   ============================================================ */

.timetable-view-entry:hover {
    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(90, 16, 24, 0.10);
}


/* ============================================================
   COURSE
   ============================================================ */

.timetable-view-course {
    margin-bottom: 8px;

    font-size: 14px;
    line-height: 1.35;

    color: #5a1018;
}


.timetable-view-course-code {
    font-weight: 800;
    color: #5a1018;
}


.timetable-view-course-name {
    font-weight: 500;
    color: #4f4f4f;
}


/* ============================================================
   INFORMATION ROW
   ============================================================ */

.timetable-view-row {
    display: flex;

    align-items: flex-start;

    gap: 5px;

    margin-top: 4px;

    color: #4f4f4f;
}


.timetable-view-label {
    flex: 0 0 auto;

    font-weight: 700;

    color: #5a1018;
}


.timetable-view-label::after {
    content: ':';
}


.timetable-view-value {
    min-width: 0;

    color: #4f4f4f;

    overflow-wrap: anywhere;
}


/* ============================================================
   TYPE
   ============================================================ */

.timetable-view-type {
    display: inline-flex;

    align-items: center;

    padding: 2px 7px;

    border-radius: 999px;

    background: #f8e9e9;

    color: #8b2029;

    font-size: 11px;

    font-weight: 700;
}


/* ============================================================
   TIMETABLE VIEW CELL
   ============================================================ */

.timetable-cell {
    min-height: 70px;
}


.timetable-cell:has(.timetable-view-entry) {
    padding: 7px;
    vertical-align: top;
}


/* ============================================================
   VIEW MODE TABLE
   ============================================================ */

.timetable-editor .timetable-entries {
    width: 100%;
}


.timetable-editor .timetable-view-entry {
    width: 100%;
    box-sizing: border-box;
}


/* ============================================================
   DAY COLUMN
   ============================================================ */

.timetable-editor .timetable-day {
    vertical-align: middle;
    text-align: center;
    font-weight: 700;
    color: #5a1018;
}


/* ============================================================
   PERIOD HEADER
   ============================================================ */

.timetable-editor thead th {
    white-space: nowrap;
}


/* ============================================================
   REMOVE EDIT CONTROLS IN VIEW MODE
   ============================================================ */

.timetable-view-entry .timetable-remove-btn {
    display: none !important;
}


.timetable-view-entry select,
.timetable-view-entry input,
.timetable-view-entry button {
    display: none !important;
}


/* ============================================================
   ADD BUTTON
   ============================================================ */

.timetable-cell .timetable-add-btn {
    display: none;
}


/* ============================================================
   VIEW MODE - EMPTY CELL
   ============================================================ */

.timetable-cell:empty {
    min-height: 40px;
}


/* ============================================================
   MULTIPLE ENTRIES IN SAME PERIOD
   ============================================================ */

.timetable-entries .timetable-view-entry+.timetable-view-entry {
    margin-top: 8px;
}


/* ============================================================
   RESPONSIVE VIEW
   ============================================================ */

@media (max-width: 1100px) {

    .timetable-view-entry {
        padding: 8px;
        font-size: 11px;
    }

    .timetable-view-course {
        font-size: 13px;
    }

}


@media (max-width: 768px) {

    .timetable-view-entry {
        padding: 7px;
        margin-bottom: 6px;

        border-radius: 7px;
    }

    .timetable-view-course {
        font-size: 12px;
    }

    .timetable-view-row {
        display: block;
        margin-top: 3px;
    }

    .timetable-view-label {
        margin-right: 3px;
    }

    .timetable-view-value {
        display: inline;
    }

    .timetable-view-type {
        margin-top: 2px;
    }

}


@media (max-width: 600px) {

    .timetable-view-entry {
        padding: 7px 6px;
        box-shadow: none;
    }

    .timetable-view-course {
        font-size: 12px;
        line-height: 1.3;
    }

    .timetable-view-course-name {
        display: inline;
    }

    .timetable-view-row {
        font-size: 11px;
    }
}

/* ========================================================================
   FINAL MOBILE HEADER / NAVIGATION FIX
   ------------------------------------------------------------------------
   This block intentionally comes last so it overrides older/duplicate
   mobile-header rules elsewhere in this stylesheet.
   ======================================================================== */

.mobile-menu-button {
    display: none;
}

@media (max-width: 600px) {

    /* Header must establish the positioning context for the dropdown. */
    header,
    .site-header {
        position: relative;
        z-index: 1000;
        width: 100%;
    }

    /* Keep the hamburger visible on mobile. */
    .mobile-menu-button {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 7px;

        border: 1px solid var(--border);
        border-radius: 9px;
        background: var(--surface);

        cursor: pointer;
        flex: 0 0 40px;
        position: relative;
        z-index: 1100;
    }

    .mobile-menu-button span {
        display: block !important;
        width: 20px;
        height: 2px;
        margin: 3px auto;
        background: var(--text);
        border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }

    /* Hide the desktop navigation completely on mobile. */
    header .header-nav,
    .site-header .header-nav {
        display: none !important;

        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;

        width: 100%;
        max-width: 100%;

        flex-direction: column;
        align-items: stretch;
        gap: 3px;

        margin: 0;
        padding: 8px;

        background: rgba(255, 255, 255, .98);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 12px 35px rgba(74, 42, 28, .14);
        backdrop-filter: blur(12px);

        z-index: 1050;
    }

    /* JavaScript adds .open when the hamburger is clicked. */
    header .header-nav.open,
    .site-header .header-nav.open {
        display: flex !important;
    }

    header .header-nav .nav-link,
    .site-header .header-nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;

        width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 11px 14px;

        border-radius: 8px;
        font-size: 14px;
        white-space: nowrap;
        text-decoration: none;
    }

    header .header-nav .nav-link:hover,
    header .header-nav .nav-link.active,
    .site-header .header-nav .nav-link:hover,
    .site-header .header-nav .nav-link.active {
        color: var(--fu-red);
        background: rgba(217, 41, 30, .08);
    }

    header .header-nav .nav-link.active::after,
    .site-header .header-nav .nav-link.active::after {
        display: none !important;
    }

    /* Prevent the privacy page/card from sitting underneath the header. */
    main {
        position: relative;
        z-index: 1;
    }

    .privacy-container {
        width: calc(100% - 20px);
        max-width: 900px;
        margin: 20px auto;
    }

    .privacy-card {
        width: 100%;
        max-width: 100%;
        padding: 24px 20px;
        box-sizing: border-box;
    }

    .privacy-header h1 {
        font-size: 26px;
        line-height: 1.1;
    }

    .privacy-section h2 {
        font-size: 19px;
    }
}

@media (max-width: 380px) {

    .mobile-menu-button {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        flex-basis: 38px;
    }

    .mobile-menu-button span {
        width: 19px;
    }
}



/* ============================================================
   MOBILE HEADER NAVIGATION - ALWAYS ABOVE PAGE CONTENT
   ============================================================ */
@media (max-width: 600px) {

    header {
        position: relative;
        z-index: 9999;
    }

    .mobile-menu-button {
        position: relative;
        z-index: 10001;
    }

    .header-nav {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
        z-index: 10000;
    }

    .header-nav.open {
        display: flex !important;
        z-index: 10000 !important;
    }

    .header-nav .nav-link {
        position: relative;
        z-index: 10001;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        padding: 11px 14px;
        border-radius: 8px;
        background: #ffffff;
        font-size: 14px;
        white-space: nowrap;
    }

    .header-nav .nav-link:hover,
    .header-nav .nav-link.active {
        color: var(--fu-red);
        background: rgba(217, 41, 30, 0.08);
    }

    .header-nav .nav-link.active::after {
        display: none;
    }

    .privacy-container,
    .privacy-card,
    .privacy-header {
        position: relative;
        z-index: 1;
    }
}