﻿/* ══════════════════════════════════════════════════════════
   KnowledgeCity Schools — Design System v4
   Font: Cairo | Theme: White Mode — Navy & Sky Blue
══════════════════════════════════════════════════════════ */
:root {
    --primary: #000c40;
    --primary-d: #000830;
    --primary-l: rgba(0,12,64,.08);
    --primary-glow: rgba(0,12,64,.18);
    --primary-border: rgba(0,12,64,.22);
    --secondary: #01b9ff;
    --secondary-d: #009fd9;
    --secondary-l: rgba(1,185,255,.10);
    --secondary-glow: rgba(1,185,255,.25);
    --indigo: #000c40;
    --violet: #01b9ff;
    --violet-l: rgba(1,185,255,.12);
    --green: #16A34A;
    --green-d: #15803D;
    --green-l: rgba(22,163,74,.10);
    --amber: #D97706;
    --amber-l: rgba(217,119,6,.10);
    --red: #DC2626;
    --red-l: rgba(220,38,38,.10);
    --teal: #0EA5E9;
    --teal-l: rgba(14,165,233,.10);
    --cyan: #0284C7;
    /* White-mode surfaces */
    --bg: #F4F6FB;
    --bg2: #FFFFFF;
    --sur: #FFFFFF;
    --sur2: #F0F4FF;
    --ink: #0D1340;
    --ink2: #2D3A6B;
    --ink3: #5A6892;
    --ink4: #9BA7C8;
    --border: #DDE3F0;
    --border2: #C8D0E8;
    --sh: 0 2px 10px rgba(0,12,64,.07),0 1px 3px rgba(0,12,64,.05);
    --sh2: 0 6px 28px rgba(0,12,64,.09);
    --sh3: 0 14px 44px rgba(0,12,64,.14);
    --r: 16px;
    --rs: 10px;
    --font: 'Cairo',sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.6
}

.wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px 56px
}

.admin-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px 56px
}

.pt {
    padding-top: 70px
}

.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 66px;
    background: #FFFFFF;
    border-bottom: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,12,64,.10)
}

.admin-topbar {
    background: linear-gradient(135deg,#000c40 0%,#001470 50%,#001c8a 100%);
    border-bottom: 2px solid var(--secondary);
    box-shadow: 0 2px 20px rgba(0,12,64,.30),0 1px 0 rgba(1,185,255,.20);
}

    .admin-topbar .topbar-brand {
        color: #fff
    }

    .admin-topbar .ibtn {
        background: rgba(1,185,255,.12);
        color: rgba(255,255,255,.85);
        border-color: rgba(1,185,255,.28);
    }

        .admin-topbar .ibtn:hover {
            background: rgba(1,185,255,.22);
            color: #fff;
            border-color: var(--secondary);
        }

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg,var(--primary),var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--primary-glow)
}

.admin-topbar .brand-logo {
    background: rgba(255,255,255,.15);
    box-shadow: none
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary)
}

.topbar-right {
    display: flex;
    gap: 8px;
    align-items: center
}

.ibtn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid var(--border2);
    background: var(--bg);
    color: var(--ink3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    text-decoration: none;
    transition: .2s
}

    .ibtn:hover {
        background: var(--secondary-l);
        color: var(--secondary-d);
        border-color: rgba(1,185,255,.45);
        box-shadow: 0 0 0 3px rgba(1,185,255,.12)
    }

.ibtn-text {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: 8px;
    border: 1.5px solid var(--border2);
    background: var(--bg2);
    color: var(--ink2);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s
}

    .ibtn-text:hover {
        background: var(--secondary-l);
        color: var(--secondary-d);
        border-color: rgba(1,185,255,.45)
    }

.steps {
    display: flex;
    align-items: center;
    margin-bottom: 24px
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .76rem;
    font-weight: 700;
    transition: .3s
}

    .step-dot.done {
        background: linear-gradient(#01b9ff,#01b9ff,#01b9ff);
        color: #fff;
        box-shadow: 0 2px 12px rgba(22,163,74,.25)
    }

    .step-dot.now {
        background: linear-gradient(135deg,var(--primary),#001c8a);
        color: #fff;
        box-shadow: 0 0 0 5px var(--primary-l),0 4px 16px var(--primary-glow)
    }

    .step-dot.next {
        background: var(--border);
        color: var(--ink4)
    }

.step-txt {
    font-size: .62rem;
    color: var(--ink4);
    font-weight: 600;
    white-space: nowrap
}

    .step-txt.now {
        color: var(--primary);
        font-weight: 800
    }

.step-line {
    height: 2px;
    background: var(--border2);
    flex: 1;
    max-width: 36px;
    margin-bottom: 18px;
    transition: .3s
}

    .step-line.done {
        background: linear-gradient(90deg,var(--green),var(--green-d))
    }

.hero {
    background: linear-gradient(135deg,#000c40 0%,#001680 40%,#000e55 100%);
    border-radius: var(--r);
    padding: 28px 24px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 44px rgba(0,12,64,.28),inset 0 1px 0 rgba(255,255,255,.08);
    border: 1px solid rgba(1,185,255,.25)
}

    .hero::before {
        content: '';
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(1,185,255,.18) 0%,transparent 70%);
        top: -70px;
        right: -70px
    }

    .hero::after {
        content: '';
        position: absolute;
        width: 160px;
        height: 160px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(1,185,255,.10) 0%,transparent 70%);
        bottom: -50px;
        left: -50px
    }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.14);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .73rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,.2)
}

.hero-h {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 8px
}

.hero-sub {
    font-size: .84rem;
    opacity: .9;
    line-height: 1.65
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 8px 14px;
    margin-top: 14px;
    font-size: .8rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.2)
}

.cd {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px
}

.cd-box {
    text-align: center;
    background: rgba(255,255,255,.13);
    border-radius: 10px;
    padding: 6px 12px;
    min-width: 50px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.2)
}

.cd-n {
    font-size: 1.35rem;
    font-weight: 900;
    display: block;
    line-height: 1.1
}

.cd-l {
    font-size: .6rem;
    opacity: .82;
    margin-top: 1px
}

.card {
    background: var(--sur);
    border-radius: var(--r);
    padding: 22px;
    box-shadow: var(--sh);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: border-color .2s
}

    .card:hover {
        border-color: rgba(1,185,255,.35)
    }

.card-t {
    font-size: .97rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--ink)
}

    .card-t i {
        color: var(--secondary-d);
        font-size: 1rem
    }

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px
}

.fg {
    margin-bottom: 16px
}

.lbl {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink2);
    margin-bottom: 7px
}

    .lbl i {
        margin-left: 5px;
        color: var(--secondary-d);
        font-size: .82rem
    }

.inp {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border2);
    border-radius: var(--rs);
    font-family: var(--font);
    font-size: .94rem;
    color: var(--ink);
    background: #fff;
    transition: .2s;
    direction: rtl;
    -webkit-appearance: none
}

    .inp:focus {
        outline: none;
        border-color: var(--secondary);
        box-shadow: 0 0 0 3px var(--secondary-glow);
        background: #fff
    }

    .inp::placeholder {
        color: var(--ink4)
    }

textarea.inp {
    resize: vertical;
    min-height: 110px;
    font-size: .85rem
}

.ferr {
    color: var(--red);
    font-size: .76rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 3px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--rs);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: .18s;
    -webkit-appearance: none;
    white-space: nowrap
}

    .btn:active {
        transform: scale(.97)
    }

.btn-primary {
    background: linear-gradient(135deg,var(--primary),#001c8a);
    color: #fff;
    box-shadow: 0 4px 18px var(--primary-glow)
}

    .btn-primary:hover {
        background: linear-gradient(135deg,#001c8a,#000c40);
        box-shadow: 0 6px 26px rgba(0,12,64,.30);
        transform: translateY(-1px)
    }

.btn-secondary {
    background: linear-gradient(135deg,var(--secondary),var(--secondary-d));
    color: #fff;
    box-shadow: 0 4px 16px var(--secondary-glow)
}

    .btn-secondary:hover {
        background: linear-gradient(135deg,var(--secondary-d),#007fb8);
        transform: translateY(-1px)
    }

.btn-green {
    background: linear-gradient(135deg,var(--green),var(--green-d));
    color: #fff;
    box-shadow: 0 4px 16px rgba(22,163,74,.25)
}

    .btn-green:hover {
        background: linear-gradient(135deg,var(--green-d),#166534);
        transform: translateY(-1px)
    }

.btn-red {
    background: linear-gradient(135deg,var(--red),#B91C1C);
    color: #fff;
    box-shadow: 0 4px 14px rgba(220,38,38,.25)
}

    .btn-red:hover {
        background: linear-gradient(135deg,#B91C1C,#991B1B);
        transform: translateY(-1px)
    }

.btn-ghost {
    background: #fff;
    color: var(--ink2);
    border: 1.5px solid var(--border2)
}

    .btn-ghost:hover {
        background: var(--secondary-l);
        color: var(--secondary-d);
        border-color: rgba(1,185,255,.45)
    }

.btn-teal {
    background: linear-gradient(135deg,var(--teal),#0369A1);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14,165,233,.25)
}

    .btn-teal:hover {
        background: linear-gradient(135deg,#0369A1,#025B8A);
        transform: translateY(-1px)
    }

.btn-sm {
    padding: 8px 15px;
    font-size: .82rem;
    border-radius: 8px
}

.btn-xs {
    padding: 5px 11px;
    font-size: .76rem;
    border-radius: 7px
}

.btn-block {
    width: 100%
}

.btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none
}

.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin-bottom: 20px
}

.stat {
    border-radius: var(--r);
    padding: 18px 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sh2)
}

    .stat::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,rgba(255,255,255,.10) 0%,transparent 55%);
        pointer-events: none
    }

    .stat.s-blue {
        background: linear-gradient(135deg,#000c40 0%,#001680 60%,#0028cc 100%)
    }

    .stat.s-green {
        background: linear-gradient(135deg,#064E3B 0%,#065F46 60%,#16A34A 100%)
    }

    .stat.s-amber {
        background: linear-gradient(135deg,#78350F 0%,#92400E 60%,#D97706 100%)
    }

    .stat.s-purple {
        background: linear-gradient(135deg,#000c40 0%,#01b9ff 100%)
    }

.stat-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.4rem;
    opacity: .18;
    color: #fff
}

.sv {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: #fff
}

.sl {
    font-size: .72rem;
    margin-top: 4px;
    font-weight: 600;
    color: rgba(255,255,255,.85)
}

@media(max-width:680px) {
    .stats {
        grid-template-columns: 1fr 1fr
    }
}

.stu-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border-radius: var(--rs);
    background: var(--bg);
    margin-bottom: 9px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .2s;
    position: relative
}

    .stu-item:hover {
        background: var(--secondary-l);
        border-color: rgba(1,185,255,.3)
    }

    .stu-item.sel {
        background: rgba(1,185,255,.08);
        border-color: var(--secondary);
        box-shadow: 0 0 0 1px var(--secondary-l)
    }

    .stu-item input[type=checkbox] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0
    }

.stu-av {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(1,185,255,.12);
    color: var(--secondary-d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    flex-shrink: 0;
    transition: .2s
}

.stu-item.sel .stu-av {
    background: #01b9ff;
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow)
}

.stu-inf {
    flex: 1;
    min-width: 0
}

.stu-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink)
}

.stu-meta {
    font-size: .73rem;
    color: var(--ink3);
    margin-top: 2px
}

.stu-disc {
    font-size: .76rem;
    font-weight: 700;
    color: var(--green);
    margin-top: 3px
}

.stu-chk {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: .2s
}

.stu-item.sel .stu-chk {
    background: linear-gradient(135deg,var(--primary),#001c8a);
    border-color: var(--primary);
    box-shadow: 0 2px 10px var(--primary-glow)
}

.inv-box {
    background: linear-gradient(135deg,#000c40 0%,#001680 60%,#000e55 100%);
    border-radius: var(--r);
    padding: 22px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(0,12,64,.25);
    border: 1px solid rgba(1,185,255,.25)
}

    .inv-box h3 {
        font-size: 1rem;
        font-weight: 800;
        margin-bottom: 6px
    }

    .inv-box p {
        font-size: .82rem;
        opacity: .9;
        margin-bottom: 14px;
        line-height: 1.65
    }

.link-row {
    background: rgba(255,255,255,.10);
    border-radius: 10px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.18)
}

    .link-row span {
        flex: 1;
        font-size: .76rem;
        word-break: break-all;
        opacity: .9;
        font-family: monospace
    }

.copy-btn {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    color: #fff;
    padding: 7px 12px;
    cursor: pointer;
    font-family: var(--font);
    font-size: .76rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: .2s;
    flex-shrink: 0
}

    .copy-btn:hover {
        background: rgba(255,255,255,.24)
    }

    .copy-btn.copied {
        background: linear-gradient(135deg,var(--green),var(--green-d))
    }

.invite-hero {
    background: linear-gradient(135deg,#000c40 0%,#001680 45%,#000e55 100%);
    border-radius: var(--r);
    padding: 28px 22px;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 12px 44px rgba(0,12,64,.28);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(1,185,255,.25)
}

    .invite-hero::before {
        content: '';
        position: absolute;
        width: 160px;
        height: 160px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(1,185,255,.14) 0%,transparent 70%);
        top: -50px;
        right: -50px
    }

.invite-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px
}

.inv-step {
    background: var(--sur);
    border-radius: var(--rs);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--sh);
    transition: border-color .2s,transform .2s
}

    .inv-step:hover {
        border-color: rgba(1,185,255,.4);
        transform: translateY(-2px)
    }

.inv-step-ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem
}

.inv-step-n {
    font-weight: 800;
    font-size: .88rem;
    color: var(--ink);
    margin-bottom: 4px
}

.inv-step-d {
    font-size: .74rem;
    color: var(--ink3);
    line-height: 1.5
}

.share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 14px
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 16px 10px;
    border-radius: var(--rs);
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: .78rem;
    font-weight: 700;
    transition: .2s;
    text-decoration: none
}

    .share-btn:hover {
        filter: brightness(1.08);
        transform: translateY(-1px)
    }

    .share-btn:active {
        transform: scale(.96)
    }

.share-copy {
    background: rgba(1,185,255,.10);
    color: var(--secondary-d);
    border: 1.5px solid rgba(1,185,255,.28)
}

.share-whatsapp {
    background: rgba(37,211,102,.10);
    color: #1A7F3C;
    border: 1.5px solid rgba(37,211,102,.25)
}

.share-sms {
    background: rgba(217,119,6,.10);
    color: var(--amber);
    border: 1.5px solid rgba(217,119,6,.25)
}

.share-share {
    background: rgba(0,12,64,.08);
    color: var(--primary);
    border: 1.5px solid rgba(0,12,64,.18)
}

.share-btn i {
    font-size: 1.3rem
}

.disc-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border)
}

    .disc-row:last-child {
        border-bottom: none
    }

.disc-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    flex-shrink: 0
}

    .disc-ico.self {
        background: var(--secondary-l);
        color: var(--secondary-d)
    }

    .disc-ico.ref {
        background: var(--green-l);
        color: var(--green-d)
    }

.disc-inf {
    flex: 1
}

.disc-t {
    font-size: .83rem;
    font-weight: 700;
    color: var(--ink)
}

.disc-s {
    font-size: .72rem;
    color: var(--ink3);
    margin-top: 1px
}

.disc-amt {
    font-size: .94rem;
    font-weight: 800;
    color: var(--green-d)
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700
}

.bg-green {
    background: rgba(22,163,74,.12);
    color: #15803D;
    border: 1px solid rgba(22,163,74,.28)
}

.bg-amber {
    background: rgba(217,119,6,.12);
    color: #B45309;
    border: 1px solid rgba(217,119,6,.28)
}

.bg-blue {
    background: rgba(1,185,255,.12);
    color: #0077A8;
    border: 1px solid rgba(1,185,255,.32)
}

.bg-red {
    background: rgba(220,38,38,.12);
    color: #B91C1C;
    border: 1px solid rgba(220,38,38,.28)
}

.bg-gray {
    background: var(--bg);
    color: var(--ink3);
    border: 1px solid var(--border)
}

.bg-purple {
    background: rgba(0,12,64,.10);
    color: var(--primary);
    border: 1px solid rgba(0,12,64,.22)
}

.bg-teal {
    background: rgba(14,165,233,.10);
    color: #0369A1;
    border: 1px solid rgba(14,165,233,.25)
}

.ibox {
    background: rgba(1,185,255,.07);
    border-radius: var(--rs);
    padding: 13px 14px;
    display: flex;
    gap: 9px;
    font-size: .82rem;
    color: #005f80;
    margin-bottom: 14px;
    line-height: 1.55;
    border: 1px solid rgba(1,185,255,.22)
}

    .ibox i {
        flex-shrink: 0;
        margin-top: 2px;
        color: var(--secondary-d)
    }

    .ibox.ok {
        background: rgba(22,163,74,.08);
        color: #166534;
        border-color: rgba(22,163,74,.22)
    }

        .ibox.ok i {
            color: var(--green-d)
        }

    .ibox.warn {
        background: rgba(217,119,6,.08);
        color: #92400E;
        border-color: rgba(217,119,6,.22)
    }

        .ibox.warn i {
            color: var(--amber)
        }

    .ibox.err {
        background: rgba(220,38,38,.08);
        color: #991B1B;
        border-color: rgba(220,38,38,.22)
    }

        .ibox.err i {
            color: var(--red)
        }

.ref-ban {
    background: linear-gradient(135deg,#EFF6FF,#EEF2FF);
    border-radius: var(--rs);
    padding: 14px 16px;
    color: var(--ink);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .84rem;
    box-shadow: var(--sh);
    border: 1px solid rgba(1,185,255,.28)
}

    .ref-ban i {
        font-size: 1.3rem;
        flex-shrink: 0;
        color: var(--secondary-d)
    }

.toast {
    position: fixed;
    bottom: 24px;
    right: 14px;
    left: 14px;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .87rem;
    font-weight: 600;
    z-index: 500;
    box-shadow: var(--sh3);
    animation: tIn .3s ease,tOut .3s ease 4.6s forwards;
    max-width: 520px;
    margin: 0 auto
}

.toast-ok {
    background: linear-gradient(135deg,#DCFCE7,#BBF7D0);
    color: #166534;
    border: 1px solid rgba(22,163,74,.35)
}

.toast-err {
    background: linear-gradient(135deg,#FEE2E2,#FECACA);
    color: #991B1B;
    border: 1px solid rgba(220,38,38,.35)
}

@keyframes tIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes tOut {
    to {
        opacity: 0;
        transform: translateY(20px)
    }
}

.tscroll {
    overflow-x: auto;
    border-radius: var(--rs)
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    min-width: 640px
}

    .tbl th {
        background: var(--bg);
        padding: 10px 13px;
        text-align: right;
        font-weight: 700;
        color: var(--ink3);
        font-size: .73rem;
        border-bottom: 2px solid var(--border2);
        letter-spacing: .03em
    }

    .tbl td {
        padding: 12px 13px;
        border-bottom: 1px solid var(--border);
        vertical-align: middle;
        color: var(--ink)
    }

    .tbl tr:last-child td {
        border-bottom: none
    }

    .tbl tr:hover td {
        background: rgba(1,185,255,.05);
        border-bottom-color: rgba(1,185,255,.15)
    }

.anav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap
}

    .anav a {
        padding: 8px 16px;
        border-radius: 9px;
        font-size: .83rem;
        font-weight: 700;
        text-decoration: none;
        color: var(--ink3);
        background: var(--bg2);
        border: 1.5px solid var(--border2);
        transition: .2s
    }

        .anav a.act, .anav a:hover {
            background: var(--secondary-l);
            color: var(--secondary-d);
            border-color: rgba(1,185,255,.4);
            box-shadow: 0 0 0 2px rgba(1,185,255,.10)
        }

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px
}

@media(max-width:900px) {
    .admin-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:750px) {
    .admin-grid-3 {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:500px) {
    .admin-grid-3 {
        grid-template-columns: 1fr
    }
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 30% 20%,rgba(1,185,255,.10) 0%,transparent 58%), radial-gradient(ellipse at 70% 80%,rgba(0,12,64,.08) 0%,transparent 55%), linear-gradient(180deg,#F4F6FB 0%,#EBF0FF 100%);
    padding: 20px
}

.login-card {
    background: #fff;
    border-radius: 22px;
    padding: 36px 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 32px 80px rgba(0,12,64,.14),0 0 0 1px rgba(1,185,255,.12);
    border: 1px solid var(--border2)
}

.empty {
    text-align: center;
    padding: 40px 16px
}

    .empty i {
        font-size: 3rem;
        color: var(--ink4);
        opacity: .3;
        display: block;
        margin-bottom: 12px
    }

    .empty p {
        color: var(--ink3);
        font-size: .86rem
    }

.div {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 18px 0;
    color: var(--ink4);
    font-size: .8rem
}

    .div::before, .div::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border2)
    }

.deadline {
    background: rgba(217,119,6,.07);
    border: 1.5px solid rgba(217,119,6,.24);
    border-radius: var(--rs);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .8rem;
    color: #92400E;
    font-weight: 600;
    margin-bottom: 14px
}

    .deadline i {
        color: var(--amber)
    }

.pending-card {
    background: rgba(217,119,6,.05);
    border: 1.5px solid rgba(217,119,6,.18);
    border-radius: var(--rs);
    padding: 16px;
    margin-bottom: 12px
}

.prog-wrap {
    background: var(--bg);
    border-radius: 20px;
    height: 7px;
    overflow: hidden;
    margin-top: 8px
}

.prog-bar {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg,var(--primary),var(--secondary));
    transition: width .6s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 12px var(--secondary-glow)
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-track {
    background: var(--bg)
}

::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 3px
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--ink4)
    }

select.inp option {
    background: #fff;
    color: var(--ink)
}

@media(max-width:360px) {
    .hero-h {
        font-size: 1.3rem
    }

    .sv {
        font-size: 1.6rem
    }
}

/* REFERRAL REWARD */
.ref-bonus-row {
    background: linear-gradient(135deg,rgba(1,185,255,.07),rgba(0,12,64,.05));
    border: 1.5px solid rgba(1,185,255,.25);
    border-radius: var(--rs);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden
}

    .ref-bonus-row::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg,rgba(1,185,255,.03),rgba(0,12,64,.03));
        pointer-events: none
    }

.ref-bonus-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg,var(--primary),var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,12,64,.25)
}

.ref-bonus-inf {
    flex: 1
}

.ref-bonus-title {
    font-weight: 800;
    font-size: .87rem;
    color: var(--ink)
}

.ref-bonus-sub {
    font-size: .72rem;
    color: var(--ink3);
    margin-top: 2px
}

.ref-bonus-amt {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--secondary-d)
}

/* NATIONALITY */
.nat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: .72rem;
    flex-shrink: 0;
    vertical-align: middle
}

.nat-saudi {
    background: rgba(0,171,63,.10);
    color: #15803D;
    border: 1px solid rgba(0,171,63,.25)
}

.nat-foreign {
    background: rgba(1,185,255,.10);
    color: #0077A8;
    border: 1px solid rgba(1,185,255,.28)
}

.nat-kid-saudi {
    background: rgba(0,171,63,.08);
    color: #15803D;
    border: 1px solid rgba(0,171,63,.18);
    font-size: .65rem
}

.nat-kid-foreign {
    background: rgba(1,185,255,.08);
    color: #0077A8;
    border: 1px solid rgba(1,185,255,.20);
    font-size: .65rem
}

/* MODERN TABLE v2 */
.tbl-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px;
    font-size: .83rem
}

    .tbl-modern thead tr th {
        background: var(--bg);
        padding: 11px 15px;
        text-align: right;
        font-weight: 700;
        color: var(--ink4);
        font-size: .71rem;
        text-transform: uppercase;
        letter-spacing: .05em;
        border-bottom: none
    }

        .tbl-modern thead tr th:first-child {
            border-radius: 0 10px 10px 0
        }

        .tbl-modern thead tr th:last-child {
            border-radius: 10px 0 0 10px
        }

    .tbl-modern tbody tr td {
        background: var(--sur);
        padding: 13px 15px;
        vertical-align: middle;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        color: var(--ink);
        transition: .15s
    }

        .tbl-modern tbody tr td:first-child {
            border-right: 1px solid var(--border);
            border-radius: 0 10px 10px 0
        }

        .tbl-modern tbody tr td:last-child {
            border-left: 1px solid var(--border);
            border-radius: 10px 0 0 10px
        }

    .tbl-modern tbody tr:hover td {
        background: rgba(1,185,255,.05);
        border-color: rgba(1,185,255,.15)
    }

/* SEARCH */
.search-wrap {
    background: var(--sur);
    border-radius: var(--r);
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 20px
}

.search-row {
    display: flex;
    gap: 10px
}

.search-inp {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid var(--border2);
    border-radius: var(--rs);
    font-family: var(--font);
    font-size: .93rem;
    color: var(--ink);
    background: #fff;
    direction: rtl;
    transition: .2s
}

    .search-inp:focus {
        outline: none;
        border-color: var(--secondary);
        box-shadow: 0 0 0 3px var(--secondary-glow)
    }

    .search-inp::placeholder {
        color: var(--ink4)
    }

.search-result {
    margin-top: 18px
}

.sr-parent-card {
    background: linear-gradient(135deg,rgba(1,185,255,.06),rgba(0,12,64,.04));
    border: 1.5px solid rgba(1,185,255,.22);
    border-radius: var(--r);
    padding: 20px;
    margin-bottom: 14px
}

.sr-friend-card {
    background: #fff;
    border-radius: var(--rs);
    padding: 14px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px
}

    .sr-friend-card.approved {
        border-right: 3px solid var(--green-d)
    }

    .sr-friend-card.pending {
        border-right: 3px solid var(--amber)
    }

    .sr-friend-card.rejected {
        border-right: 3px solid var(--red)
    }

/* STATUS MARKERS */
.approved-row td:first-child {
    border-right: 3px solid var(--green-d) !important
}

.pending-row td:first-child {
    border-right: 3px solid var(--amber) !important
}

.rejected-row td:first-child {
    border-right: 3px solid var(--red) !important
}
/* ══════════════════════════════════════════
   Nationality Person Icons — SVG-based
══════════════════════════════════════════ */

/* Base wrapper */
.person-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

    .person-icon svg {
        display: block;
    }

/* Saudi adult — green-tinted ring */
.person-saudi {
    background: rgba(0, 150, 57, .12);
    border: 1.5px solid rgba(0, 150, 57, .35);
}

/* Foreign adult — blue-tinted ring */
.person-foreign {
    background: rgba(59, 130, 246, .12);
    border: 1.5px solid rgba(59, 130, 246, .35);
}

/* Saudi child */
.person-saudi-kid {
    background: rgba(0, 150, 57, .09);
    border: 1px solid rgba(0, 150, 57, .25);
}

/* Foreign child */
.person-foreign-kid {
    background: rgba(99, 102, 241, .1);
    border: 1px solid rgba(99, 102, 241, .28);
}

/* Sizes */
.person-icon-md {
    width: 30px;
    height: 30px;
}

.person-icon-sm {
    width: 22px;
    height: 22px;
}
