: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;
}

.msg-local {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    line-height: 1.55;
}

.msg-local a {
    font-weight: 700;
}

/* ====== 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: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1.4fr;
    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,
.footer-col a {
    cursor: pointer;
    transition: color .2s;
    color: inherit;
    text-decoration: none;
}

.footer-col span:hover,
.footer-col a: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 DASHBOARD (10/10)  =============== */
/* ====================================================== */
#adminPage {
    display: none;
    min-height: 100vh;
    background:
        radial-gradient(1200px 500px at 100% -10%, rgba(29, 78, 216, .06), transparent 60%),
        radial-gradient(1000px 500px at -10% 110%, rgba(214, 31, 60, .05), transparent 55%),
        var(--bg);
}

/* ---- Top nav ---- */
.admin-nav {
    background: rgba(8, 16, 34, .85);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    padding: .9rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.an-left {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.an-role {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-soft);
    background: rgba(224, 181, 74, .12);
    border: 1px solid rgba(224, 181, 74, .3);
    padding: .25rem .7rem;
    border-radius: 50px;
}

.admin-logout {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    padding: .55rem 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    font-family: inherit;
    transition: background .2s, transform .2s;
}

.admin-logout:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-1px);
}

/* ---- Body ---- */
.admin-body {
    padding: 1.8rem;
    max-width: 1240px;
    margin: 0 auto;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}

.admin-h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
}

.admin-sub {
    color: var(--gray);
    font-size: .92rem;
    margin-top: .3rem;
}

.admin-refresh {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--navy);
    padding: .65rem 1.1rem;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.admin-refresh:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-bright);
}

.admin-refresh.spinning svg {
    animation: spin .6s linear infinite;
}

.admin-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    justify-content: flex-end;
}

.admin-backup {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--navy);
    padding: .65rem .95rem;
    border-radius: 12px;
    font-size: .85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.admin-backup:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-bright);
}

.remote-badge {
    display: inline-block;
    margin-top: .55rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.3;
}

.remote-badge.online {
    background: #dcfce7;
    color: #166534;
}

.remote-badge.offline {
    background: #ffedd5;
    color: #9a3412;
}

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

.sum-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.sum-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gray-light);
}

.sum-total::before {
    background: var(--blue-bright);
}

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

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

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

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

.sum-ic {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: var(--light);
    flex-shrink: 0;
}

.sum-total .sum-ic {
    background: rgba(29, 78, 216, .1);
}

.sum-new .sum-ic {
    background: rgba(214, 31, 60, .1);
}

.sum-done .sum-ic {
    background: rgba(22, 163, 74, .1);
}

.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: .35rem;
}

.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);
}

/* ---- Toolbar: segmented tabs + search ---- */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.seg {
    display: inline-flex;
    background: var(--light);
    border-radius: 14px;
    padding: .35rem;
    gap: .25rem;
}

.seg-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: none;
    background: transparent;
    color: var(--gray);
    font-family: inherit;
    font-size: .86rem;
    font-weight: 600;
    padding: .6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, background .2s, box-shadow .2s;
}

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

.seg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

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

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

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

.cnt {
    font-size: .68rem;
    padding: .1rem .42rem;
    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);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 220px;
    max-width: 360px;
}

.search-box svg {
    position: absolute;
    left: .9rem;
    color: var(--gray-light);
    pointer-events: none;
}

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

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

/* ---- Table card ---- */
.table-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    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(--border);
    color: var(--gray);
    padding: .45rem 1rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}

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

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

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

thead {
    background: var(--bg);
    color: var(--gray);
}

th {
    padding: .9rem 1.1rem;
    text-align: left;
    font-weight: 700;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    border-bottom: 1px solid var(--border);
}

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

tbody tr {
    transition: background .15s;
}

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

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

.td-idx {
    color: var(--gray-light);
    font-weight: 600;
    font-size: .8rem;
}

.td-name {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.td-av {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.td-phone {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.td-phone:hover {
    color: var(--blue-bright);
}

.td-time {
    color: var(--gray);
    font-size: .8rem;
    white-space: nowrap;
}

mark {
    background: var(--gold-soft);
    color: var(--navy);
    border-radius: 3px;
    padding: 0 .1em;
}

/* status pills */
.pill {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
}

.pill-new {
    background: rgba(214, 31, 60, .1);
    color: var(--red);
}

.pill-done {
    background: var(--green-l);
    color: var(--green);
}

.pill-del {
    background: var(--light);
    color: var(--gray);
}

.badge {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 600;
}

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

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

.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;
}

/* action buttons */
.ab {
    padding: .4rem .7rem;
    border-radius: 9px;
    font-size: .78rem;
    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: .7rem;
    padding: .9rem;
}

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

.m-card:active {
    transform: scale(.98);
    border-color: var(--blue-bright);
}

.m-avatar {
    width: 50px;
    height: 50px;
    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: .96rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-sub {
    font-size: .8rem;
    color: var(--gray);
    margin-top: .15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .4rem;
}

.m-time {
    font-size: .72rem;
    color: var(--gray-light);
}

.m-arrow {
    color: #cbd5e1;
    font-size: 1.5rem;
    flex-shrink: 0;
}

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

.empty-state .ei {
    font-size: 3.2rem;
    margin-bottom: .8rem;
    opacity: .85;
}

/* ====== BOTTOM SHEET ====== */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 16, 34, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    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 calc(2rem + env(safe-area-inset-bottom, 0px));
    animation: slideUp .35s var(--ease);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Desktopda markazda modal sifatida ko'rsatamiz */
@media (min-width: 769px) {
    .sheet-overlay {
        align-items: center;
        padding: 1.5rem;
    }

    .sheet {
        border-radius: 22px;
        max-width: 560px;
        animation: popIn .35s var(--ease);
        box-shadow: var(--shadow-lg);
    }

    .sheet-handle {
        display: none;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.97);
    }

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

@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;
    padding-bottom: .5rem;
    padding-right: 1.1rem;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}

.sheet-rows::-webkit-scrollbar {
    width: 6px;
}

.sheet-rows::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 10px;
}

.sheet-rows::-webkit-scrollbar-track {
    background: transparent;
}

.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;
    overflow: hidden;
}

.login-overlay::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 181, 74, .22), transparent 65%);
    top: -200px;
    right: -150px;
    animation: float 16s ease-in-out infinite;
    pointer-events: none;
}

.login-overlay::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 78, 216, .25), transparent 65%);
    bottom: -180px;
    left: -120px;
    animation: float 18s ease-in-out infinite reverse;
    pointer-events: none;
}

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

.login-box {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, .98);
    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 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: 1rem;
    }

    .admin-head {
        align-items: flex-start;
    }

    .admin-refresh span {
        display: none;
    }

    .admin-refresh {
        padding: .6rem .7rem;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .seg {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
    }

    .seg-btn {
        flex: 1;
        justify-content: center;
        padding: .6rem .5rem;
        font-size: .8rem;
    }

    .search-box {
        max-width: none;
    }

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

    section {
        padding: 4rem 1.4rem;
    }
}

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

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

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

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

    .seg-btn {
        font-size: .74rem;
        gap: .3rem;
        padding: .55rem .4rem;
    }

    .seg-btn .seg-dot {
        display: none;
    }

    .sum-card {
        padding: 1.1rem 1.1rem;
        gap: .8rem;
    }

    .sum-ic {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .sum-num {
        font-size: 1.6rem;
    }

    .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;
    }
}


/* ====================================================== */
/* ==========  WORLD-CLASS MOBILE EXPERIENCE  =========== */
/* ====================================================== */

/* Safe-area aware floating + bars (notch telefonlar uchun) */
:root {
    --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---- Mobile sticky action bar (default: yashirin) ---- */
.mobile-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9500;
        display: flex;
        align-items: center;
        gap: .6rem;
        padding: .7rem .9rem calc(.7rem + var(--safe-b));
        background: rgba(255, 255, 255, .82);
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 30px rgba(13, 28, 56, .12);
        transform: translateY(120%);
        transition: transform .4s var(--ease);
    }

    .mobile-bar.show {
        transform: none;
    }

    .mb-cta {
        flex: 1;
        background: var(--fc-gradient-soft);
        color: #fff;
        border: none;
        border-radius: 14px;
        padding: .95rem 1rem;
        font-family: inherit;
        font-size: .98rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(29, 78, 216, .3);
        transition: transform .2s var(--ease), filter .2s;
    }

    .mb-cta:active {
        transform: scale(.97);
        filter: brightness(1.05);
    }

    .mb-icon {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        transition: transform .2s var(--ease);
    }

    .mb-icon:active {
        transform: scale(.92);
    }

    .mb-tg {
        background: linear-gradient(135deg, #2aabee, #229ed9);
        box-shadow: 0 8px 18px rgba(34, 158, 217, .35);
    }

    .mb-call {
        background: linear-gradient(135deg, var(--green), #15803d);
        box-shadow: 0 8px 18px rgba(22, 163, 74, .35);
    }

    /* Mobil panel ko'rinsa, suzuvchi tugmalarni yashiramiz (takror bo'lmasin) */
    .float-contact {
        display: none;
    }

    .back-top {
        bottom: calc(5.4rem + var(--safe-b));
        right: 1rem;
    }

    /* Sahifa oxirida panel footer ustiga tushmasin */
    footer {
        padding-bottom: 6rem;
    }
}

/* ---- Mobil tipografiya va spacing nafisligi ---- */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    section {
        padding: 3.2rem 1.15rem;
    }

    .sec-head {
        margin-bottom: 2.2rem;
    }

    .sec-sub {
        font-size: .98rem;
    }

    /* Hero: ko'proq nafas, tugmalar to'liq kenglik */
    .hero {
        padding: 4.2rem 1.2rem 6rem;
        min-height: 92vh;
        display: flex;
        align-items: center;
    }

    .hero-flags {
        font-size: 2.1rem;
    }

    .hero-badge {
        font-size: .68rem;
        padding: .45rem 1rem;
        letter-spacing: .1em;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: .8rem;
    }

    .cta-btn,
    .cta-ghost {
        width: 100%;
        padding: 1.1rem 1.5rem;
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: .5rem;
        margin-top: 2rem;
    }

    /* Stats: 2x2 panjara, ajratuvchi chiziqlar to'g'rilanadi */
    .stats {
        margin: -1.6rem 1rem 0;
        border-radius: 18px;
    }

    .stat {
        min-width: 50%;
        flex: 1 0 50%;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .stat:nth-child(2n) {
        border-right: none;
    }

    .stat:nth-last-child(-n+2) {
        border-bottom: none;
    }

    /* Kartochkalar bitta ustun, hover o'rniga active */
    .courses-grid,
    .info-grid,
    .ee-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .course-card.featured {
        transform: none;
    }

    .course-card,
    .info-card,
    .ee-card {
        padding: 1.7rem 1.4rem;
    }

    .info-card {
        padding: 1.8rem 1.5rem;
    }

    .course-card:active,
    .info-card:active,
    .ee-card:active {
        transform: scale(.985);
    }

    /* Express Entry statistikasi: 2x2 */
    .ee-years {
        grid-template-columns: repeat(2, 1fr);
        gap: .8rem;
    }

    .ee-year-num {
        font-size: 1.35rem;
    }

    .ee-year-hot {
        transform: none;
    }

    .ee-summary ul {
        grid-template-columns: 1fr;
    }

    /* Form: yagona ustun, kattaroq inputlar (iOS zoom oldini olish) */
    .form-section {
        padding: 3.2rem 1rem 4rem;
    }

    .form-wrap {
        border-radius: 20px;
        padding: 1.6rem 1.2rem;
    }

    input,
    select,
    textarea {
        font-size: 16px;
        padding: .95rem 1rem;
    }

    .consent-list {
        gap: .7rem;
    }

    /* Footer: chapga tekislangan, toza */
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.6rem 1.4rem;
        text-align: left;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-col a,
    .footer-col span {
        padding: .15rem 0;
    }
}

/* ---- Juda kichik telefonlar ---- */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 2.05rem;
    }

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

    .ee-years {
        grid-template-columns: 1fr 1fr;
    }

    .mb-cta {
        font-size: .9rem;
        padding: .9rem .6rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ---- Touch qurilmalarda tap-feedback va ortiqcha hover'ni o'chirish ---- */
@media (hover: none) {

    .course-card:hover,
    .info-card:hover,
    .ee-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .course-card::after,
    .info-card::after,
    .ee-card::after {
        display: none;
    }

    a,
    button {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ---- Gorizontal scroll yo'qligini kafolatlash ---- */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }
}

/* ---- Admin rejimida foydalanuvchi UI elementlarini yashirish ---- */
body.admin-mode .scroll-progress,
body.admin-mode .float-contact,
body.admin-mode .back-top,
body.admin-mode .mobile-bar {
    display: none !important;
}

/* ====== OMMAVIY OFERTA: LINKS ====== */

.consent-offer-link {
    color: var(--blue-bright);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-offer-link:hover {
    color: var(--red);
}

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

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

.ee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--fc-gradient-soft);
}

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

.ee-num {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--fc-gradient-soft);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.ee-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .9rem;
}

.ee-card p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: .9rem;
    line-height: 1.6;
}

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

.ee-card ul li {
    position: relative;
    padding-left: 1.7rem;
    font-size: .98rem;
    color: var(--navy);
    line-height: 1.5;
}

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

.ee-card ul li b {
    color: var(--blue);
}

.ee-tip {
    background: rgba(29, 78, 216, .06);
    border-left: 3px solid var(--blue-bright);
    border-radius: 8px;
    padding: .7rem .9rem;
    color: var(--navy) !important;
    font-weight: 600;
    margin-bottom: 0 !important;
}

/* Stats sub-block */
.ee-stats {
    margin-top: 2rem;
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
    color: #fff;
    border-radius: 26px;
    padding: 3rem 2.6rem;
}

.ee-stats-head h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: .7rem;
}

.ee-stats-head p {
    color: rgba(255, 255, 255, .8);
    font-size: 1.02rem;
    max-width: 760px;
    margin-bottom: 2rem;
}

.ee-stats-head b {
    color: var(--gold-soft);
}

.ee-years {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.ee-year {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
}

.ee-year-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .3rem;
}

.ee-year-label {
    font-size: .9rem;
    color: rgba(255, 255, 255, .65);
    letter-spacing: .05em;
}

.ee-year-hot {
    background: var(--fc-gradient-soft);
    border-color: transparent;
    transform: scale(1.04);
    box-shadow: var(--shadow-md);
}

.ee-year-hot .ee-year-num,
.ee-year-hot .ee-year-label {
    color: #fff;
}

/* Summary block */
.ee-summary {
    margin-top: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 2.4rem 2.4rem 2rem;
    box-shadow: var(--shadow-sm);
}

.ee-summary h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1.2rem;
}

.ee-summary ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: .8rem;
    margin-bottom: 1.6rem;
}

.ee-summary ul li {
    position: relative;
    padding-left: 1.8rem;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--navy);
}

.ee-summary ul li::before {
    content: '✔️';
    position: absolute;
    left: 0;
    top: 0;
    font-size: .95rem;
}

.ee-warn {
    background: rgba(214, 31, 60, .07);
    border: 1px solid rgba(214, 31, 60, .25);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    color: var(--red-deep);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .ee-years {
        grid-template-columns: repeat(2, 1fr);
    }

    .ee-stats {
        padding: 2.2rem 1.5rem;
    }

    .ee-summary {
        padding: 1.8rem 1.5rem;
    }
}

/* ====================================================== */
/* ============  UI/UX ENHANCEMENTS (10/10)  ============ */
/* ====================================================== */

/* ---- Scroll progress bar ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 10001;
    background: linear-gradient(90deg, var(--blue-bright), var(--gold), var(--red));
    box-shadow: 0 0 10px rgba(214, 31, 60, .5);
    transition: width .12s linear;
}

/* ---- Smoother global rendering ---- */
html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
}

/* ---- Staggered reveal children ---- */
[data-reveal].in .stat,
[data-reveal].in .ee-year {
    animation: riseIn .6s var(--ease) both;
}

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

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

/* ---- 3D tilt + spotlight on cards ---- */
.course-card,
.info-card,
.ee-card {
    transform-style: preserve-3d;
    transition: transform .3s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.course-card::after,
.info-card::after,
.ee-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .3s var(--ease);
    background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%),
            rgba(29, 78, 216, .12), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.course-card:hover::after,
.info-card:hover::after,
.ee-card:hover::after {
    opacity: 1;
}

.course-card.featured:hover::after {
    background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%),
            rgba(224, 181, 74, .18), transparent 60%);
}

.info-card>*,
.ee-card>*,
.course-card>* {
    position: relative;
    z-index: 2;
}

/* Absolyut joylashgan elementlarni qayta tiklash */
.course-flag {
    position: absolute;
    z-index: 3;
}

.course-card::before {
    z-index: 3;
}

/* ---- Magnetic / shimmer headings ---- */
.sec-title {
    position: relative;
}

/* gradient underline accent under sec-tag titles */
.sec-head .sec-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 1rem auto 0;
    border-radius: 4px;
    background: var(--fc-gradient-soft);
    opacity: .9;
}

/* ---- Logo subtle glow on hover ---- */
.logo {
    transition: transform .3s var(--ease);
}

nav .logo:hover {
    transform: translateY(-1px) scale(1.02);
}

/* ---- Buttons: focus-visible accessibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(29, 78, 216, .45);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---- Floating Telegram contact ---- */
.float-contact {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2aabee, #229ed9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    box-shadow: 0 12px 30px rgba(34, 158, 217, .45);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    text-decoration: none;
}

.float-contact:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 18px 40px rgba(34, 158, 217, .55);
}

.float-contact svg {
    position: relative;
    z-index: 2;
}

.float-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(34, 158, 217, .55);
    animation: pulseRing 2.4s ease-out infinite;
    z-index: 1;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: .6;
    }

    70% {
        transform: scale(1.8);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* ---- Back to top ---- */
.back-top {
    position: fixed;
    right: 1.5rem;
    bottom: 5.6rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--navy);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-top:hover {
    background: var(--navy);
    color: #fff;
}

/* ---- Hero parallax orbs feel + grain finesse ---- */
.hero h1 em {
    background-size: 200% auto;
    animation: shineText 6s linear infinite;
}

@keyframes shineText {
    to {
        background-position: 200% center;
    }
}

/* ---- Course price count pop ---- */
.course-price {
    transition: transform .3s var(--ease);
}

.course-card:hover .course-price {
    transform: scale(1.04);
    transform-origin: left;
}

/* ---- Nav link shimmer on admin btn already styled; add scrolled shadow ---- */
nav.scrolled {
    background: rgba(8, 16, 34, .9);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

/* ---- Stats card lift ---- */
.stats {
    transition: box-shadow .4s var(--ease);
}

.stats:hover {
    box-shadow: var(--shadow-lg);
}

/* ---- Reduced motion safety ---- */
@media (prefers-reduced-motion: reduce) {

    .float-pulse,
    .hero h1 em,
    .orb {
        animation: none !important;
    }

    .scroll-progress {
        transition: none;
    }
}

@media (max-width: 480px) {
    .float-contact {
        width: 52px;
        height: 52px;
        right: 1rem;
        bottom: 1rem;
    }

    .back-top {
        right: 1.1rem;
        bottom: 5rem;
        width: 42px;
        height: 42px;
    }
}