﻿/* ============================================================
   EduDemo School — Stylesheet
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --navy: #0f2557;
    --navy-700: #1a3a7a;
    --navy-500: #2a5298;
    --gold: #f5a623;
    --gold-600: #dd8f0a;
    --ink: #0f172a;
    --body: #475569;
    --muted: #94a3b8;
    --line: #e3e9f2;
    --bg: #f5f8fd;
    --white: #fff;
    --green: #10b981;
    --red: #ef4444;
    --amber: #f59e0b;
    --blue: #3b82f6;
    --radius: 14px;
    --radius-sm: 9px;
    --sh-sm: 0 1px 2px rgba(15,37,87,.06);
    --sh: 0 6px 26px rgba(15,37,87,.08);
    --sh-lg: 0 24px 60px rgba(15,37,87,.16);
    --sidebar-w: 250px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: 'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
    color: var(--body);
    background: var(--white);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Poppins',sans-serif;
    color: var(--ink);
    margin: 0 0 .5em;
    line-height: 1.22;
    font-weight: 700
}

h1 {
    font-size: clamp(2rem,4.4vw,3.3rem)
}

h2 {
    font-size: clamp(1.5rem,2.8vw,2.2rem)
}

h3 {
    font-size: 1.15rem
}

p {
    margin: 0 0 1em
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none
}

table {
    width: 100%;
    border-collapse: collapse
}

ul {
    margin: 0;
    padding: 0;
    list-style: none
}

input, select, textarea {
    font: inherit
}

/* ---------- Layout helpers ---------- */
.wrap {
    width: min(1180px,92%);
    margin-inline: auto
}

.sec {
    padding: 78px 0
}

.sec-sm {
    padding: 46px 0
}

.sec-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 46px
}

    .sec-head p {
        color: var(--body)
    }

.eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-600);
    background: #fef6e6;
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 14px;
}

.grid {
    display: grid;
    gap: 22px
}

.g2 {
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr))
}

.g3 {
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr))
}

.g4 {
    grid-template-columns: repeat(auto-fit,minmax(210px,1fr))
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 600;
    font-size: .92rem;
    transition: .22s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 6px 18px rgba(15,37,87,.24)
}

    .btn-primary:hover {
        background: var(--navy-700);
        transform: translateY(-2px)
    }

.btn-gold {
    background: var(--gold);
    color: #40280a;
    box-shadow: 0 6px 18px rgba(245,166,35,.36)
}

    .btn-gold:hover {
        background: var(--gold-600);
        transform: translateY(-2px)
    }

.btn-ghost {
    border: 1.5px solid var(--line);
    color: var(--ink);
    background: #fff
}

    .btn-ghost:hover {
        border-color: var(--navy);
        color: var(--navy)
    }

.btn-sm {
    padding: 8px 16px;
    font-size: .83rem
}

.btn-block {
    width: 100%
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none !important
}

/* ---------- Public header ---------- */
.topbar {
    background: var(--navy);
    color: #c9d6ef;
    font-size: .8rem
}

    .topbar .wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 9px 0;
        flex-wrap: wrap
    }

    .topbar i {
        color: var(--gold);
        margin-right: 6px
    }

.topbar-links {
    display: flex;
    gap: 20px;
    align-items: center
}

.topbar a:hover {
    color: #fff
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

    .site-nav .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 14px 0
    }

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex: 0 0 auto;
    background: linear-gradient(135deg,var(--navy),var(--navy-500));
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 1.25rem;
    box-shadow: 0 6px 16px rgba(15,37,87,.28);
}

.brand-name {
    font-family: 'Poppins';
    font-weight: 700;
    color: var(--navy);
    font-size: 1.12rem;
    line-height: 1.15
}

.brand-sub {
    font-size: .68rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted)
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center
}

    .nav-links a {
        padding: 9px 14px;
        border-radius: 99px;
        font-weight: 500;
        font-size: .9rem;
        color: var(--body);
        transition: .18s
    }

        .nav-links a:hover, .nav-links a.on {
            color: var(--navy);
            background: #eef3fc
        }

.nav-toggle {
    display: none;
    font-size: 1.3rem;
    color: var(--navy);
    padding: 8px
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: radial-gradient(900px 420px at 12% 8%,rgba(42,82,152,.75),transparent 60%), radial-gradient(700px 380px at 88% 90%,rgba(245,166,35,.30),transparent 62%), linear-gradient(150deg,#0a1c44,#123065 55%,#0f2557);
}

    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        opacity: .30;
        background-image: radial-gradient(rgba(255,255,255,.15) 1px,transparent 1px);
        background-size: 26px 26px;
    }

    .hero .wrap {
        position: relative;
        z-index: 2;
        padding: 96px 0 84px;
        max-width: 900px
    }

    .hero h1 {
        color: #fff
    }

        .hero h1 em {
            color: var(--gold);
            font-style: normal
        }

.hero-lead {
    font-size: 1.06rem;
    color: #c6d5ee;
    max-width: 640px;
    margin-bottom: 30px
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.hero-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 34px
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 99px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    font-size: .82rem;
    color: #dbe6fa;
    backdrop-filter: blur(6px);
}

    .pill i {
        color: var(--gold)
    }

/* ---------- Stat strip ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--sh);
    margin-top: -52px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.stat {
    padding: 26px 20px;
    text-align: center;
    border-right: 1px solid var(--line)
}

    .stat:last-child {
        border-right: 0
    }

    .stat b {
        display: block;
        font-family: 'Poppins';
        font-size: 1.9rem;
        color: var(--navy);
        line-height: 1
    }

    .stat span {
        font-size: .78rem;
        text-transform: uppercase;
        letter-spacing: .1em;
        color: var(--muted)
    }

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--sh-sm)
}

.card-hover {
    transition: .25s
}

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: var(--sh);
        border-color: #d3e0f5
    }

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #eef3fc;
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

    .icon-box.gold {
        background: #fef6e6;
        color: var(--gold-600)
    }

/* ---------- Notices / list ---------- */
.notice {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px dashed var(--line);
}

    .notice:last-child {
        border-bottom: 0
    }

.notice-date {
    flex: 0 0 62px;
    text-align: center;
    background: #eef3fc;
    border-radius: 10px;
    padding: 9px 4px;
    color: var(--navy);
}

    .notice-date b {
        display: block;
        font-family: 'Poppins';
        font-size: 1.3rem;
        line-height: 1
    }

    .notice-date span {
        font-size: .68rem;
        text-transform: uppercase;
        letter-spacing: .08em
    }

.notice h4 {
    margin: 0 0 4px;
    font-size: .98rem
}

.notice p {
    margin: 0;
    font-size: .86rem;
    color: var(--body)
}

/* ---------- Gallery ---------- */
.gal {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
    gap: 14px
}

.gal-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg,var(--navy),var(--navy-500));
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.85);
    font-size: 1.6rem;
    transition: .3s;
}

    .gal-item:hover {
        transform: scale(1.03)
    }

    .gal-item span {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 22px 14px 12px;
        font-size: .8rem;
        color: #fff;
        background: linear-gradient(transparent,rgba(6,17,42,.85));
        text-align: left;
        font-weight: 600;
    }

/* ---------- CTA banner ---------- */
.cta {
    background: linear-gradient(130deg,var(--navy),var(--navy-500));
    border-radius: 20px;
    padding: 52px 44px;
    color: #fff;
    text-align: center;
    box-shadow: var(--sh-lg);
    position: relative;
    overflow: hidden;
}

    .cta::before {
        content: '';
        position: absolute;
        width: 340px;
        height: 340px;
        border-radius: 50%;
        background: rgba(245,166,35,.16);
        top: -140px;
        right: -90px;
    }

    .cta h2 {
        color: #fff;
        position: relative
    }

    .cta p {
        color: #c6d5ee;
        max-width: 560px;
        margin-inline: auto;
        position: relative
    }

    .cta .btn {
        position: relative;
        margin-top: 10px
    }

/* ---------- Footer ---------- */
.footer {
    background: #081735;
    color: #93a6c9;
    padding: 58px 0 0;
    font-size: .88rem
}

    .footer h4 {
        color: #fff;
        font-size: .95rem;
        margin-bottom: 16px
    }

    .footer a:hover {
        color: var(--gold)
    }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 34px;
    padding-bottom: 40px
}

.footer li {
    margin-bottom: 9px
}

.footer .brand-name {
    color: #fff
}

.footer .brand-sub {
    color: #5f7295
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .82rem;
}

.socials {
    display: flex;
    gap: 10px
}

    .socials a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: rgba(255,255,255,.07);
        color: #c9d6ef;
        transition: .2s;
    }

        .socials a:hover {
            background: var(--gold);
            color: #3a2506
        }

/* ============================================================
   PORTAL
   ============================================================ */
body.portal {
    background: var(--bg)
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: #0b1d43;
    color: #a9bcdc;
    display: flex;
    flex-direction: column;
    z-index: 70;
    overflow-y: auto;
}

    .sidebar .brand {
        padding: 20px 20px 18px;
        border-bottom: 1px solid rgba(255,255,255,.08)
    }

    .sidebar .brand-name {
        color: #fff;
        font-size: 1rem
    }

    .sidebar .brand-sub {
        color: #5f7295
    }

.side-nav {
    padding: 16px 12px;
    flex: 1
}

.side-label {
    font-size: .66rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #4d6491;
    padding: 14px 12px 8px;
    font-weight: 700
}

.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #a9bcdc;
    font-size: .9rem;
    font-weight: 500;
    transition: .18s;
    margin-bottom: 3px;
}

    .side-link i {
        width: 18px;
        text-align: center;
        font-size: .95rem
    }

    .side-link:hover {
        background: rgba(255,255,255,.07);
        color: #fff
    }

    .side-link.on {
        background: var(--gold);
        color: #3a2506;
        font-weight: 600
    }

        .side-link.on i {
            color: #3a2506
        }

.side-foot {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.08)
}

.content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

.topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 13px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

    .topnav h1 {
        font-size: 1.22rem;
        margin: 0
    }

.topnav-sub {
    font-size: .8rem;
    color: var(--muted)
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 14px
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #eef3fc;
    color: var(--navy);
    display: grid;
    place-items: center;
    position: relative;
    transition: .2s;
}

    .icon-btn:hover {
        background: var(--navy);
        color: #fff
    }

.dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid #fff
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,var(--navy),var(--navy-500));
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px
}

    .user-chip b {
        display: block;
        font-size: .86rem;
        color: var(--ink);
        line-height: 1.2
    }

    .user-chip span {
        font-size: .74rem;
        color: var(--muted)
    }

.page {
    padding: 28px 30px 60px;
    flex: 1;
    max-width: 1400px;
    width: 100%
}

/* ---------- Portal cards ---------- */
.p-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--sh-sm)
}

.p-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap
}

    .p-card-head h3 {
        margin: 0;
        font-size: 1.02rem
    }

.kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 18px;
    margin-bottom: 24px
}

.kpi-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: var(--sh-sm);
    transition: .22s;
}

    .kpi-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--sh)
    }

.kpi-ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex: 0 0 auto
}

.kpi-card b {
    display: block;
    font-family: 'Poppins';
    font-size: 1.42rem;
    color: var(--ink);
    line-height: 1.15
}

.kpi-card span {
    font-size: .78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .07em
}

.bg-blue {
    background: #e8f0fe;
    color: #1d4ed8
}

.bg-green {
    background: #e6f8f1;
    color: #047857
}

.bg-amber {
    background: #fef4e4;
    color: #b45309
}

.bg-red {
    background: #fdeaea;
    color: #b91c1c
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.badge-paid {
    background: #e6f8f1;
    color: #047857
}

.badge-pending {
    background: #fef4e4;
    color: #b45309
}

.badge-overdue {
    background: #fdeaea;
    color: #b91c1c
}

.badge-info {
    background: #e8f0fe;
    color: #1d4ed8
}

.badge-neutral {
    background: #eef2f7;
    color: #475569
}

/* ---------- Tables ---------- */
.tbl-wrap {
    overflow-x: auto;
    margin: 0 -22px;
    padding: 0 22px
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    min-width: 620px
}

    .tbl th {
        text-align: left;
        padding: 11px 14px;
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--muted);
        border-bottom: 1px solid var(--line);
        font-weight: 700;
    }

    .tbl td {
        padding: 15px 14px;
        border-bottom: 1px solid #eef2f8;
        vertical-align: middle
    }

    .tbl tr:last-child td {
        border-bottom: 0
    }

    .tbl tbody tr:hover {
        background: #fafcff
    }

    .tbl .num {
        font-variant-numeric: tabular-nums;
        font-weight: 600;
        color: var(--ink)
    }

/* ---------- Progress ---------- */
.bar {
    height: 7px;
    border-radius: 99px;
    background: #e8eef8;
    overflow: hidden
}

    .bar > i {
        display: block;
        height: 100%;
        border-radius: 99px;
        background: var(--navy);
        transition: width .6s ease
    }

    .bar.green > i {
        background: var(--green)
    }

    .bar.gold > i {
        background: var(--gold)
    }

    .bar.red > i {
        background: var(--red)
    }

/* ---------- Attendance calendar ---------- */
.cal {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 7px
}

.cal-h {
    text-align: center;
    font-size: .7rem;
    font-weight: 700;
    color: var(--muted);
    padding-bottom: 5px;
    text-transform: uppercase
}

.cal-d {
    aspect-ratio: 1;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 600;
    background: #f2f6fc;
    color: var(--body);
}

    .cal-d.p {
        background: #dcfce7;
        color: #15803d
    }

    .cal-d.a {
        background: #fee2e2;
        color: #b91c1c
    }

    .cal-d.l {
        background: #fef3c7;
        color: #b45309
    }

    .cal-d.h {
        background: #e2e8f0;
        color: #94a3b8
    }

/* ---------- Timetable ---------- */
.tt {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 6px
}

    .tt th {
        background: var(--navy);
        color: #fff;
        padding: 11px 8px;
        border-radius: 9px;
        font-size: .76rem;
        text-transform: uppercase;
        letter-spacing: .07em;
    }

    .tt td {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 9px;
        padding: 12px 10px;
        text-align: center;
        font-size: .82rem;
        vertical-align: middle;
    }

        .tt td b {
            display: block;
            color: var(--ink);
            font-size: .86rem
        }

        .tt td span {
            font-size: .72rem;
            color: var(--muted)
        }

        .tt td.empty {
            background: #f8fafd;
            border-style: dashed;
            color: #cbd5e1
        }

/* ---------- Assignment ---------- */
.asg {
    display: flex;
    gap: 16px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: .2s
}

    .asg:hover {
        border-color: #cfdff5;
        box-shadow: var(--sh-sm)
    }

.asg-ico {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: #eef3fc;
    color: var(--navy);
    font-size: 1.05rem;
}

/* ============================================================
   MODAL
   ============================================================ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(8,23,53,.62);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .overlay.open {
        display: flex;
        animation: fade .2s ease
    }

@keyframes fade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.modal {
    background: #fff;
    border-radius: 18px;
    width: min(470px,100%);
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--sh-lg);
    animation: pop .28s cubic-bezier(.2,.9,.3,1.2);
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.97)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.modal-head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-head h3 {
        margin: 0;
        font-size: 1.05rem
    }

    .modal-head .x {
        color: var(--muted);
        font-size: 1.15rem;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        transition: .2s
    }

        .modal-head .x:hover {
            background: #f1f5f9;
            color: var(--ink)
        }

.modal-body {
    padding: 24px
}

.modal-foot {
    padding: 0 24px 24px;
    display: flex;
    gap: 10px
}

    .modal-foot .btn {
        flex: 1
    }

/* Pay summary */
.pay-sum {
    background: #f6f9fe;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px
}

.pay-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: .88rem
}

    .pay-row.total {
        border-top: 1px dashed #cfdaea;
        margin-top: 8px;
        padding-top: 12px;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--ink)
    }

        .pay-row.total span:last-child {
            color: var(--navy);
            font-family: 'Poppins'
        }

.methods {
    display: grid;
    gap: 9px;
    margin-bottom: 20px
}

.method {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    cursor: pointer;
    transition: .18s;
    background: #fff;
}

    .method:hover {
        border-color: #c3d4ee;
        background: #fafcff
    }

    .method.on {
        border-color: var(--navy);
        background: #f3f7fd;
        box-shadow: 0 0 0 3px rgba(42,82,152,.09)
    }

    .method i:first-child {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        display: grid;
        place-items: center;
        background: #eef3fc;
        color: var(--navy);
        font-size: .95rem
    }

    .method b {
        display: block;
        font-size: .88rem;
        color: var(--ink);
        font-weight: 600
    }

    .method small {
        font-size: .74rem;
        color: var(--muted)
    }

    .method .radio {
        margin-left: auto;
        color: var(--navy);
        opacity: 0;
        transition: .2s
    }

    .method.on .radio {
        opacity: 1
    }

/* Processing + success */
.state {
    text-align: center;
    padding: 36px 12px
}

.spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid #e3ecf9;
    border-top-color: var(--navy);
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.tick {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    background: #e6f8f1;
    color: var(--green);
    font-size: 2rem;
    animation: pop .35s cubic-bezier(.2,.9,.3,1.4);
}

/* Receipt */
.receipt {
    border: 1px dashed #cfdaea;
    border-radius: 12px;
    padding: 18px;
    font-size: .85rem;
    background: #fcfdff
}

.receipt-top {
    text-align: center;
    border-bottom: 1px dashed #cfdaea;
    padding-bottom: 14px;
    margin-bottom: 14px
}

    .receipt-top b {
        font-family: 'Poppins';
        color: var(--navy);
        font-size: 1rem
    }

/* ============================================================
   LOGIN
   ============================================================ */
body.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: var(--bg);
}

.login-aside {
    background: radial-gradient(700px 400px at 20% 15%,rgba(42,82,152,.8),transparent 62%), linear-gradient(150deg,#0a1c44,#123065 60%,#0f2557);
    color: #fff;
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

    .login-aside::after {
        content: '';
        position: absolute;
        inset: 0;
        opacity: .28;
        background-image: radial-gradient(rgba(255,255,255,.16) 1px,transparent 1px);
        background-size: 26px 26px;
    }

    .login-aside > * {
        position: relative;
        z-index: 2
    }

    .login-aside h2 {
        color: #fff;
        font-size: 2rem;
        margin-bottom: 14px
    }

    .login-aside p {
        color: #c0d0ea;
        max-width: 420px
    }

.login-feats li {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 18px;
    font-size: .9rem;
    color: #d2dff5
}

.login-feats i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(245,166,35,.2);
    color: var(--gold);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.login-main {
    display: grid;
    place-items: center;
    padding: 40px 24px
}

.login-box {
    width: min(400px,100%)
}

    .login-box h2 {
        margin-bottom: 6px
    }

    .login-box > p {
        color: var(--muted);
        margin-bottom: 28px;
        font-size: .9rem
    }

.field {
    margin-bottom: 16px
}

    .field label {
        display: block;
        font-size: .82rem;
        font-weight: 600;
        color: var(--ink);
        margin-bottom: 7px
    }

.field-ico {
    position: relative
}

    .field-ico i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted);
        font-size: .88rem
    }

.input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    background: #fff;
    transition: .18s;
    font-size: .92rem;
    color: var(--ink);
}

    .input:focus {
        outline: 0;
        border-color: var(--navy);
        box-shadow: 0 0 0 4px rgba(42,82,152,.10)
    }

.field-ico .input {
    padding-left: 42px
}

.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    padding: 6px
}

.demo-creds {
    background: #f6f9fe;
    border: 1px dashed #cfdaea;
    border-radius: 12px;
    padding: 15px;
    margin-top: 22px;
    font-size: .82rem;
}

    .demo-creds b {
        color: var(--ink);
        display: block;
        margin-bottom: 9px;
        font-size: .8rem;
        text-transform: uppercase;
        letter-spacing: .08em
    }

.cred-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid #e6eef9;
    font-family: ui-monospace,monospace;
    font-size: .78rem;
}

    .cred-row:first-of-type {
        border-top: 0
    }

    .cred-row button {
        color: var(--navy);
        font-weight: 700;
        font-size: .76rem;
        padding: 4px 10px;
        border-radius: 7px;
        background: #e8f0fe
    }

        .cred-row button:hover {
            background: var(--navy);
            color: #fff
        }

.alert {
    padding: 11px 15px;
    border-radius: 10px;
    font-size: .85rem;
    margin-bottom: 16px;
    display: none;
    align-items: center;
    gap: 9px;
}

    .alert.err {
        background: #fdeaea;
        color: #b91c1c;
        display: flex
    }

    .alert.ok {
        background: #e6f8f1;
        color: #047857;
        display: flex
    }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 300;
    background: var(--navy);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: var(--sh-lg);
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 11px;
    opacity: 0;
    transform: translateY(20px);
    transition: .3s;
    pointer-events: none;
    max-width: 340px;
}

    .toast.show {
        opacity: 1;
        transform: none
    }

    .toast i {
        color: var(--gold)
    }

/* ---------- Mobile ---------- */
@media(max-width:1024px) {
    .login-page {
        grid-template-columns: 1fr
    }

    .login-aside {
        display: none
    }
}

@media(max-width:900px) {
    .nav-toggle {
        display: block
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 2px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--sh);
        display: none;
    }

        .nav-links.open {
            display: flex
        }

        .nav-links a {
            padding: 12px 16px
        }

    .site-nav .wrap {
        position: relative
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform .28s ease
    }

        .sidebar.open {
            transform: none
        }

    .content {
        margin-left: 0
    }

    .page {
        padding: 20px 18px 50px
    }

    .topnav {
        padding: 12px 18px
    }

    .menu-btn {
        display: grid !important
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }
}

.menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #eef3fc;
    color: var(--navy);
    place-items: center
}

@media(max-width:640px) {
    .sec {
        padding: 52px 0
    }

    .hero .wrap {
        padding: 64px 0 60px
    }

    .cta {
        padding: 38px 24px
    }

    .topbar-links {
        font-size: .75rem;
        gap: 12px
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none
    }
}
