:root {
    --navy: #0a1224;
    --navy-2: #111c38;
    --blue: #0a2a6b;
    --blue-bright: #1d4ed8;
    --red: #d61f3c;
    --red-deep: #a01830;
    --gold: #e0b54a;
    --gold-soft: #f0d488;
    --cream: #f7f4ee;
    --bg: #f4f6fb;
    --white: #fff;
    --gray: #5f6b7e;
    --gray-light: #8a94a6;
    --light: #eef1f6;
    --border: #e5e9f0;
    --green: #16a34a;
    --green-l: #dcfce7;
    --fc-gradient: linear-gradient(120deg, #061a45 0%, #0a2a6b 35%, #6d1228 72%, #c41e3a 100%);
    --fc-gradient-soft: linear-gradient(120deg, #0a2a6b, #c41e3a);
    --shadow-sm: 0 2px 10px rgba(13, 28, 56, .06);
    --shadow-md: 0 12px 36px rgba(13, 28, 56, .1);
    --shadow-lg: 0 28px 70px rgba(13, 28, 56, .16);
    --radius: 18px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--navy);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

::selection {
    background: var(--gold);
    color: var(--navy);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--blue), var(--red));
    border-radius: 10px;
}

/* ====== SCROLL REVEAL ====== */
[data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    will-change: opacity, transform;
}

[data-reveal].in {
    opacity: 1;
    transform: none;
}

/* ====== NAV ====== */
nav {
    background: rgba(8, 16, 34, .72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: padding .3s var(--ease);
}

nav.scrolled {
    padding: .65rem 2rem;
}

.logo {
    font-family: 'Sora', sans-serif;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: .1rem;
}

.logo span {
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-admin {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: .5rem 1rem;
    border-radius: 50px;
    font-family: inherit;
    transition: all .25s var(--ease);
}

.nav-admin:hover {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    transform: translateY(-1px);
}

/* ====== HERO ====== */
.hero {
    position: relative;
    background:
        linear-gradient(120deg, rgba(6, 26, 69, .82) 0%, rgba(10, 42, 107, .72) 35%, rgba(109, 18, 40, .72) 72%, rgba(196, 30, 58, .78) 100%),
        url("./img/image.png") center / cover no-repeat;
    color: #fff;
    padding: 7rem 2rem 9rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-inner {
    position: relative;
    z-index: 3;
    max-width: 860px;
    margin: 0 auto;
}

/* Animated orbs */
.hero-orbs {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    animation: float 14s ease-in-out infinite;
}

.orb-blue {
    width: 420px;
    height: 420px;
    background: #1d4ed8;
    top: -120px;
    left: -90px;
}

.orb-red {
    width: 380px;
    height: 380px;
    background: #e11d48;
    bottom: -140px;
    right: -80px;
    animation-delay: -4s;
}

.orb-gold {
    width: 280px;
    height: 280px;
    background: #e0b54a;
    top: 40%;
    left: 55%;
    opacity: .3;
    animation-delay: -8s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-30px, 25px) scale(.94);
    }
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .12), transparent 55%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M30 30h-2v-2h2v2zm0-4h-2v-2h2v2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-flags {
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
    animation: dropIn .8s var(--ease) both;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(224, 181, 74, .55);
    color: var(--gold-soft);
    padding: .5rem 1.3rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    backdrop-filter: blur(6px);
    animation: dropIn .8s var(--ease) .1s both;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin-bottom: 1.4rem;
    animation: dropIn .9s var(--ease) .2s both;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 600px;
    margin: 0 auto 2.6rem;
    line-height: 1.75;
    animation: dropIn .9s var(--ease) .3s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: dropIn .9s var(--ease) .4s both;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.cta-btn {
    position: relative;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff;
    padding: 1.05rem 2.6rem;
    border-radius: 50px;
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    box-shadow: 0 12px 30px rgba(214, 31, 60, .4);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    overflow: hidden;
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--ease);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 42px rgba(214, 31, 60, .5);
}

.cta-btn:hover::after {
    left: 130%;
}

.cta-ghost {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    padding: 1.05rem 2.2rem;
    border-radius: 50px;
    font-size: 1.02rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .3);
    font-family: inherit;
    backdrop-filter: blur(6px);
    transition: all .25s var(--ease);
}

.cta-ghost:hover {
    background: rgba(255, 255, 255, .2);
    transform: translateY(-3px);
}

.hero-trust {
    display: flex;
    gap: 1.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.6rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .72);
    animation: dropIn .9s var(--ease) .5s both;
}

.hero-trust span {
    white-space: nowrap;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 110px;
    display: block;
}

.hero-wave path {
    fill: var(--bg);
}

/* ====== STATS ====== */
.stats {
    display: flex;
    flex-wrap: wrap;
    max-width: 1080px;
    margin: -2rem auto 0;
    position: relative;
    z-index: 5;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.stat {
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 140px;
    border-right: 1px solid var(--border);
    transition: background .3s var(--ease);
}

.stat:last-child {
    border-right: none;
}

.stat:hover {
    background: var(--cream);
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--fc-gradient-soft);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
    margin-bottom: .4rem;
}

.stat-label {
    font-size: .72rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 500;
}

/* ====== SECTIONS ====== */
section {
    padding: 5.5rem 2rem;
    max-width: 1240px;
    margin: 0 auto;
}

.sec-head {
    max-width: 680px;
    margin: 0 auto 3rem;
    text-align: center;
}

.sec-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--red);
    margin-bottom: .8rem;
    padding: .3rem .9rem;
    background: rgba(214, 31, 60, .08);
    border-radius: 50px;
}

.sec-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.sec-sub {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 auto;
}

/* ====== KURSLAR ====== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.course-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--fc-gradient-soft);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card.featured {
    border: none;
    background: linear-gradient(160deg, var(--navy), var(--navy-2) 60%, #1a2c52);
    color: #fff;
    box-shadow: 0 20px 50px rgba(10, 18, 36, .35);
    transform: translateY(-6px) scale(1.02);
}

.course-card.featured::before {
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    transform: scaleX(1);
}

.course-card.featured:hover {
    transform: translateY(-12px) scale(1.03);
}

.course-flag {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    color: var(--navy);
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .3rem .7rem;
    border-radius: 50px;
}

.course-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 16px;
}

.course-card.featured .course-icon {
    background: rgba(255, 255, 255, .1);
}

.course-type {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--red);
    margin-bottom: .4rem;
}

.course-card.featured .course-type {
    color: var(--gold-soft);
}

.course-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

.course-price {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--navy);
    margin-bottom: .3rem;
}

.course-card.featured .course-price {
    color: #fff;
}

.cp-unit {
    font-size: .85rem;
    font-weight: 500;
    color: var(--gray);
}

.course-card.featured .cp-unit {
    color: rgba(255, 255, 255, .6);
}

.course-tier {
    font-size: .8rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: .15rem;
}

.course-price2 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: .6rem;
}

.course-desc {
    font-size: .88rem;
    color: var(--gray);
    line-height: 1.6;
}

.course-card.featured .course-desc {
    color: rgba(255, 255, 255, .65);
}

/* ====== INFO ====== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .7rem;
}

.ic-emoji {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 12px;
    font-size: 1.3rem;
}

.info-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card ul li {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy);
    padding-left: 2rem;
    position: relative;
    line-height: 1.55;
}

.info-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: #fff;
    background: var(--fc-gradient-soft);
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
}

/* ====== TEACHER ====== */
.teacher-box {
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
    color: #fff;
    border-radius: 26px;
    padding: 3.5rem 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.teacher-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(224, 181, 74, .18), transparent 70%);
    pointer-events: none;
}

.teacher-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.teacher-emoji {
    font-size: 2.8rem;
    margin-bottom: .8rem;
    display: inline-flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
}

.teacher-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--gold-soft);
    margin-bottom: .5rem;
}

.teacher-item p {
    font-size: .92rem;
    color: rgba(255, 255, 255, .68);
    line-height: 1.6;
}

/* ====== FORM ====== */
.form-section {
    background:
        radial-gradient(circle at 15% 10%, rgba(29, 78, 216, .06), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(214, 31, 60, .06), transparent 40%),
        var(--white);
    border-top: 1px solid var(--border);
    padding: 5.5rem 2rem 6rem;
}

.form-wrap {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.form-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.reg-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.5rem;
}

.reg-form .form-group {
    margin-bottom: 0;
}

.reg-form .submit-btn,
.reg-form .form-note,
.reg-form .fg-full {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .5rem;
    letter-spacing: .01em;
}

input,
select,
textarea {
    width: 100%;
    padding: .9rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: .95rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--navy);
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue-bright);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, .1);
}

.submit-btn {
    width: 100%;
    background: var(--fc-gradient-soft);
    color: #fff;
    padding: 1.1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
    margin-top: .5rem;
    box-shadow: 0 10px 26px rgba(29, 78, 216, .28);
}

.submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 16px 34px rgba(29, 78, 216, .36);
}

.submit-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Form switcher */
.form-switch {
    display: flex;
    gap: .5rem;
    background: var(--light);
    padding: .4rem;
    border-radius: 14px;
    margin-bottom: 2rem;
}

.fs-btn {
    flex: 1;
    padding: .9rem .6rem;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: var(--gray);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s var(--ease);
    line-height: 1.3;
}

.fs-btn.active {
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.form-note {
    background: linear-gradient(120deg, rgba(10, 42, 107, .07), rgba(214, 31, 60, .07));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
    text-align: center;
}

/* ====== ROZILIK DARVOZASI ====== */
.consent-box {
    text-align: center;
}

.consent-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 24px;
}

.consent-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: .9rem;
}

.consent-text {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.8rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.consent-list {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto 2rem;
    display: grid;
    gap: .9rem;
}

.consent-list li {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 500;
    padding-left: 2rem;
    position: relative;
    line-height: 1.5;
}

.consent-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    background: var(--fc-gradient-soft);
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    text-align: left;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.6rem;
    cursor: pointer;
    font-size: .96rem;
    line-height: 1.55;
    font-weight: 500;
    color: var(--navy);
    transition: border-color .2s, background .2s;
}

.consent-check:has(input:checked) {
    border-color: var(--blue-bright);
    background: rgba(29, 78, 216, .05);
}

.consent-check input {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--red);
    cursor: pointer;
}

.consent-btn {
    width: 100%;
    background: var(--fc-gradient-soft);
    color: #fff;
    padding: 1.15rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform .25s var(--ease), filter .25s, box-shadow .25s;
    box-shadow: 0 10px 26px rgba(29, 78, 216, .28);
}

.consent-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.consent-btn:disabled {
    background: var(--gray-light);
    cursor: not-allowed;
    opacity: .7;
    box-shadow: none;
}

/* ====== MESSAGES ====== */
.msg {
    display: none;
    padding: 1.1rem;
    border-radius: 12px;
    text-align: center;
    font-size: .95rem;
    font-weight: 500;
    margin-top: 1.2rem;
    animation: dropIn .4s var(--ease);
}

.msg-ok {
    background: var(--green-l);
    border: 1px solid #86efac;
    color: #14532d;
}

.msg-err {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* ====== FOOTER ====== */
footer {
    background: linear-gradient(160deg, var(--navy), #060d1c);
    color: rgba(255, 255, 255, .6);
    padding: 4rem 2rem 0;
    font-size: .9rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    line-height: 1.7;
    max-width: 360px;
    color: rgba(255, 255, 255, .55);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.footer-col h5 {
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

.footer-col span {
    cursor: pointer;
    transition: color .2s;
}

.footer-col span:hover {
    color: var(--gold-soft);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
    padding: 1.6rem;
    font-size: .82rem;
    color: rgba(255, 255, 255, .4);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
}

/* ===== ADMIN ===== */
#adminPage {
    display: none;
    min-height: 100vh;
    background: var(--bg);
}

.admin-nav {
    background: var(--fc-gradient);
    padding: 1rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logout {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    padding: .5rem 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: .85rem;
    font-family: inherit;
    transition: background .2s;
}

.admin-logout:hover {
    background: var(--red);
}

.admin-tabs {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    padding: 0 1rem;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 50;
}

.tab-btn {
    padding: 1rem 1.3rem;
    font-size: .88rem;
    font-weight: 600;
    font-family: inherit;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: var(--gray);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: color .2s;
}

.tab-btn.active {
    color: var(--navy);
    border-bottom-color: var(--red);
}

.cnt {
    font-size: .7rem;
    padding: .12rem .45rem;
    border-radius: 50px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    color: #fff;
}

.cnt-new {
    background: var(--red);
}

.cnt-done {
    background: var(--green);
}

.cnt-del {
    background: var(--gray);
}

.admin-body {
    padding: 1.4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sum-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.sum-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease);
}

.sum-card:hover {
    transform: translateY(-3px);
}

.sum-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.sum-label {
    font-size: .72rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: .4rem;
}

.sum-total .sum-num {
    color: var(--blue-bright);
}

.sum-new .sum-num {
    color: var(--red);
}

.sum-done .sum-num {
    color: var(--green);
}

.sum-del .sum-num {
    color: var(--gray);
}

.table-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-toolbar {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
}

.tbl-title {
    font-size: 1rem;
    font-weight: 700;
}

.clear-btn {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .8rem;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}

.clear-btn:hover {
    background: var(--red);
    color: #fff;
}

.tbl-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    min-width: 680px;
}

thead {
    background: var(--navy);
    color: #fff;
}

th {
    padding: .85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--cream);
}

.badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 600;
}

.b-m {
    background: #dbeafe;
    color: #1e40af;
}

.b-f {
    background: #fce7f3;
    color: #9d174d;
}

.b-fr {
    background: #dbeafe;
    color: #1e40af;
}

.b-ca {
    background: #fee2e2;
    color: #991b1b;
}

.b-old {
    background: var(--light);
    color: var(--gray);
}

.av-m,
.av-fr {
    background: #dbeafe;
    color: #1e40af;
}

.av-f,
.av-ca {
    background: #fde2e4;
    color: #9d174d;
}

.ab {
    padding: .35rem .75rem;
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all .2s;
}

.ab-view {
    background: #e0e7ff;
    color: #3730a3;
    margin-right: .3rem;
}

.ab-view:hover {
    background: #4f46e5;
    color: #fff;
}

.ab-check {
    background: var(--green-l);
    color: var(--green);
}

.ab-check:hover {
    background: var(--green);
    color: #fff;
}

.ab-back {
    background: #fef3c7;
    color: #92400e;
}

.ab-back:hover {
    background: #f59e0b;
    color: #fff;
}

.ab-restore {
    background: var(--green-l);
    color: var(--green);
}

.ab-restore:hover {
    background: var(--green);
    color: #fff;
}

.ab-del {
    background: var(--light);
    color: var(--gray);
    margin-left: .3rem;
}

.ab-del:hover {
    background: #fee2e2;
    color: var(--red);
}

.ab-perm {
    background: #fee2e2;
    color: var(--red);
    margin-left: .3rem;
}

.ab-perm:hover {
    background: var(--red);
    color: #fff;
}

/* Mobile cards */
.cards-wrap {
    display: none;
    flex-direction: column;
    gap: .8rem;
    padding: .9rem;
}

.m-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.m-card:active {
    transform: scale(.98);
}

.m-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.m-info {
    flex: 1;
    min-width: 0;
}

.m-name {
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-sub {
    font-size: .78rem;
    color: var(--gray);
    margin-top: .15rem;
}

.m-arrow {
    color: #cbd5e1;
    font-size: 1.4rem;
}

.empty-state {
    text-align: center;
    padding: 3.5rem;
    color: var(--gray);
}

.empty-state .ei {
    font-size: 3rem;
    margin-bottom: .8rem;
}

/* ====== BOTTOM SHEET ====== */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 16, 34, .55);
    backdrop-filter: blur(4px);
    z-index: 5000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.sheet-overlay.open {
    display: flex;
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sheet {
    background: #fff;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 540px;
    padding: 1.5rem 1.6rem 2rem;
    animation: slideUp .35s var(--ease);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.sheet-handle {
    width: 44px;
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    margin: 0 auto 1.3rem;
    flex-shrink: 0;
}

.sheet-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}

.sheet-rows {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.3rem;
    max-height: 50vh;
    overflow-y: auto;
}

.sheet-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .92rem;
}

.sheet-row:last-child {
    border-bottom: none;
}

.s-lbl {
    color: var(--gray);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    flex-shrink: 0;
}

.s-val {
    font-weight: 600;
    text-align: right;
    max-width: 62%;
    word-break: break-word;
}

.sheet-btns {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex-shrink: 0;
}

.s-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--green);
    color: #fff;
    padding: .95rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    transition: filter .2s;
}

.s-call:hover {
    filter: brightness(1.08);
}

.s-btn {
    padding: .85rem;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    width: 100%;
    transition: filter .2s;
}

.s-btn:hover {
    filter: brightness(.97);
}

.s-close {
    background: var(--light);
    color: var(--gray);
}

/* ====== LOGIN ====== */
.login-overlay {
    position: fixed;
    inset: 0;
    background: var(--fc-gradient);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.login-overlay.open {
    display: flex;
    animation: fadeIn .3s ease;
}

.login-box {
    background: #fff;
    border-radius: 24px;
    padding: 2.8rem;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: dropIn .4s var(--ease);
}

.login-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: .4rem;
}

.login-box p {
    color: var(--gray);
    font-size: .88rem;
    margin-bottom: 1.6rem;
}

.login-box input {
    width: 100%;
    padding: .95rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    text-align: center;
    letter-spacing: .2em;
    margin-bottom: 1rem;
    background: var(--bg);
    transition: border-color .2s, box-shadow .2s;
}

.login-box input:focus {
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, .1);
    background: #fff;
}

.login-btn {
    width: 100%;
    background: var(--fc-gradient-soft);
    color: #fff;
    padding: .95rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: filter .2s, transform .2s;
}

.login-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.login-err {
    color: var(--red);
    font-size: .83rem;
    margin-top: .7rem;
    display: none;
}

.back-link {
    display: block;
    margin-top: 1.1rem;
    font-size: .82rem;
    color: var(--gray);
    cursor: pointer;
    transition: color .2s;
}

.back-link:hover {
    color: var(--navy);
}

/* ====== GLOBAL LOADING ====== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 16, 34, .5);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.open {
    display: flex;
    animation: fadeIn .2s ease;
}

.loading-box {
    background: #fff;
    padding: 1.8rem 2.2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid var(--light);
    border-top-color: var(--red);
    border-right-color: var(--blue-bright);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.loading-text {
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====== RESPONSIVE ====== */
@media(max-width:860px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media(max-width:700px) {
    .hero {
        padding: 5rem 1.4rem 7rem;
    }

    .teacher-box {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.8rem;
    }

    .sum-cards {
        grid-template-columns: 1fr 1fr;
    }

    .form-wrap {
        padding: 1.8rem 1.3rem;
    }

    .tbl-wrap {
        display: none !important;
    }

    .cards-wrap {
        display: flex;
    }

    .admin-body {
        padding: .9rem;
    }

    .table-card {
        border-radius: 14px;
    }

    section {
        padding: 4rem 1.4rem;
    }
}

@media(max-width:600px) {
    .reg-form {
        grid-template-columns: 1fr;
    }
}

@media(max-width:480px) {
    .stat {
        padding: 1.3rem .8rem;
        min-width: 50%;
    }

    .stat-num {
        font-size: 1.9rem;
    }

    .tab-btn {
        padding: .85rem .8rem;
        font-size: .82rem;
    }

    .hero-trust {
        gap: .8rem;
        font-size: .78rem;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}