/* =====================================================================
   مركز باب العلم الخيري — نظام التصميم
   الألوان مأخوذة من شعار المركز: تركواز البوابة، ذهب الشريط، رَقّ الإطار
   الفكرة البصرية: "البوابة" — قوس الباب يتكرر بهدوء في الواجهة
   ===================================================================== */
:root {
    /* تركواز البوابة */
    --gate-900: #0F2E33;
    --gate-800: #163F46;
    --gate-700: #1E5C66;
    --gate-500: #2F7D88;
    --gate-100: #DCEBEA;
    --gate-50:  #EEF5F4;

    /* ذهب الشريط */
    --gold-700: #8E6B2A;
    --gold-600: #A9833A;
    --gold-500: #C29B4A;
    --gold-300: #E6CF96;
    --gold-100: #F6ECD3;

    /* رَقّ الإطار */
    --parchment: #F1E8D2;

    --stone: #EEF2F1;          /* خلفية شاشات العمل */
    --line: #DCE3E1;
    --ink: #142629;
    --ink-soft: #3E5155;
    --muted: #6C7C7E;

    --ok: #1F8A5B;
    --bad: #C2413A;
    --warn: #C07A12;
    --info: #2B6CB0;

    --font-display: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
    --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;

    --r-card: 18px;
    --r-ctrl: 12px;
    --arch: 999px 999px 14px 14px; /* شكل قوس البوابة */

    --bs-primary: var(--gate-700);
    --bs-primary-rgb: 30, 92, 102;
    --bs-link-color: var(--gate-700);
    --bs-link-color-rgb: 30, 92, 102;
    --bs-link-hover-color: var(--gate-900);
    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--ink);
    --bs-heading-color: var(--gate-900);
    --bs-border-color: var(--line);
    --bs-border-radius: var(--r-ctrl);
}

body { font-family: var(--font-body); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: embed; }
a { text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* =====================================================================
   الهيكل العام لشاشات العمل
   ===================================================================== */
.app-body { background: var(--stone); }
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; padding: 2rem 2.25rem; display: flex; flex-direction: column; max-width: 1480px; }
.app-footer { margin-top: auto; padding-top: 2.5rem; text-align: center; color: var(--muted); font-size: .78rem; }

.mobile-bar {
    position: sticky; top: 0; z-index: 1030;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    background: var(--gate-800); color: #fff; padding: .55rem 1rem;
    border-bottom: 2px solid var(--gold-500);
}
.mobile-bar .title { font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- القائمة الجانبية ---------- */
.sidebar { width: 268px; flex-shrink: 0; background-color: var(--gate-800) !important; color: #fff; }
.sidebar::before { /* خيط ذهبي على حافة القائمة */
    content: ''; position: absolute; inset-block: 0; inset-inline-end: 0; width: 3px;
    background: linear-gradient(var(--gold-300), var(--gold-600));
}
@media (min-width: 992px) {
    .sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
}
.sidebar.offcanvas-lg { --bs-offcanvas-width: 284px; --bs-offcanvas-bg: var(--gate-800); }
@media (max-width: 991.98px) { .sidebar { display: flex; flex-direction: column; } }

.sidebar-brand { padding: 1.5rem 1rem 1.1rem; text-align: center; position: relative; }
.sidebar-brand .medallion {
    width: 86px; height: 86px; margin: 0 auto .6rem; border-radius: 50%;
    background: var(--parchment); padding: 5px;
    box-shadow: 0 0 0 2px var(--gold-500), 0 0 0 6px rgba(194,155,74,.18);
}
.sidebar-brand .medallion img { width: 100%; height: 100%; object-fit: contain; }
.sidebar-brand .name { font-family: var(--font-display); font-size: 1.12rem; color: #fff; }
.sidebar-brand .sub { font-size: .74rem; color: var(--gold-300); }
.sidebar-brand .btn-close { position: absolute; top: 1rem; inset-inline-start: 1rem; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: .25rem .85rem 1rem; scrollbar-width: thin; scrollbar-color: var(--gate-700) transparent; }
.nav-label {
    font-size: .74rem; color: var(--gold-300); opacity: .85;
    padding: 1.1rem .7rem .4rem; display: flex; align-items: center; gap: .5rem;
}
.nav-label::after { content: ''; flex: 1; height: 1px; background: rgba(230,207,150,.22); }
.nav-item {
    position: relative; display: flex; align-items: center; gap: .8rem;
    color: rgba(255,255,255,.78); text-decoration: none;
    padding: .62rem .85rem; border-radius: var(--r-ctrl); font-weight: 500; font-size: .93rem;
    transition: background .15s, color .15s;
}
.nav-item i { font-size: 1.08rem; width: 1.25rem; text-align: center; color: rgba(230,207,150,.75); }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--gate-50); color: var(--gate-900); font-weight: 600; }
.nav-item.active i { color: var(--gold-600); }
.nav-item.active::before { /* قوس صغير يشير إلى الصفحة الحالية */
    content: ''; position: absolute; inset-inline-start: -.85rem; top: 50%; translate: 0 -50%;
    width: 7px; height: 26px; border-radius: 0 999px 999px 0; background: var(--gold-500);
}
[dir="rtl"] .nav-item.active::before { border-radius: 999px 0 0 999px; }

.sidebar-user {
    display: flex; align-items: center; gap: .55rem; margin: .5rem .85rem 1rem;
    padding: .7rem .8rem; border-radius: 14px; background: rgba(0,0,0,.18);
}
.sidebar-user .avatar {
    width: 38px; height: 38px; border-radius: var(--arch); flex-shrink: 0;
    background: var(--gold-500); color: var(--gate-900); display: grid; place-items: center; font-weight: 700;
}
.sidebar-user .btn { color: rgba(255,255,255,.75); }
.sidebar-user .btn:hover { color: var(--gold-300); background: rgba(255,255,255,.06); }

/* ---------- رأس الصفحة ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.75rem; }
.page-head h1 { font-size: 1.65rem; margin: 0; color: var(--gate-900); display: flex; align-items: center; gap: .6rem; }
.page-head h1 > i { font-size: 1.25rem; color: var(--gold-600) !important; }
.page-head p { color: var(--muted); margin: .3rem 0 0; font-size: .92rem; }
.page-head::after { /* زخرفة ذهبية رفيعة تحت العنوان */
    content: ''; flex-basis: 100%; height: 2px; margin-top: .4rem;
    background: linear-gradient(to left, var(--gold-500) 0 72px, var(--line) 72px);
}
.back-link { font-size: .85rem; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--gate-700); }

/* =====================================================================
   المكوّنات
   ===================================================================== */
.card { border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: none; background: #fff; }
.card-header {
    background: transparent; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem;
    font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: var(--gate-900);
    border-radius: var(--r-card) var(--r-card) 0 0 !important;
}
.card-header i { color: var(--gold-600) !important; }
.card-footer { border-top: 1px solid var(--line); background: var(--gate-50) !important; border-radius: 0 0 var(--r-card) var(--r-card) !important; }
.table-card { overflow: hidden; }

/* ---------- بطاقات الأرقام ---------- */
.stat-card { padding: 1.1rem 1.25rem; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; border-top: 3px solid var(--tone, var(--gate-500)); }
.stat-card .stat-label { color: var(--muted); font-size: .84rem; font-weight: 500; }
.stat-card .stat-value { font-family: var(--font-body); font-weight: 700; font-size: 1.7rem; line-height: 1.35; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-card .stat-value.fs-5 { font-size: 1.3rem !important; }
.stat-card .stat-icon {
    width: 48px; height: 54px; border-radius: var(--arch); display: grid; place-items: center;
    font-size: 1.3rem; flex-shrink: 0; background: color-mix(in srgb, var(--tone, var(--gate-500)) 12%, white); color: var(--tone, var(--gate-500));
}
.tone-brand { --tone: var(--gate-700); }
.tone-gold  { --tone: var(--gold-600); }
.tone-green { --tone: var(--ok); }
.tone-red   { --tone: var(--bad); }
.tone-blue  { --tone: var(--info); }

/* ---------- الجداول ---------- */
.table { --bs-table-hover-bg: var(--gate-50); --bs-table-bg: transparent; margin: 0; }
.table thead th {
    background: #F7F9F9; color: var(--muted); font-size: .8rem; font-weight: 600; white-space: nowrap;
    border-bottom: 1px solid var(--line); padding: .8rem 1rem;
}
.table td { padding: .85rem 1rem; vertical-align: middle; border-color: #EDF1F0; }
.table td .fw-bold, .table td a.fw-bold { color: var(--ink); }
.table td a.fw-bold:hover { color: var(--gate-700); }

/* ---------- الأزرار والحقول ---------- */
.btn { border-radius: var(--r-ctrl); font-weight: 600; }
.btn.rounded-pill { border-radius: 999px; }
.btn-brand { background: var(--gate-700); color: #fff; border: 1px solid var(--gate-700); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--gate-800); border-color: var(--gate-800); color: #fff; }
.btn-gold { background: var(--gold-500); color: var(--gate-900); border: 1px solid var(--gold-500); }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold-600); border-color: var(--gold-600); color: #fff; }
.btn-outline-primary { --bs-btn-color: var(--gate-700); --bs-btn-border-color: #B9D2D3; --bs-btn-hover-bg: var(--gate-700); --bs-btn-hover-border-color: var(--gate-700); --bs-btn-active-bg: var(--gate-800); }
.btn-light { background: #fff; border-color: var(--line); }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; }
.btn:disabled { opacity: .5; }

.form-control, .form-select { border-radius: var(--r-ctrl); padding: .6rem .9rem; border-color: #CCD7D6; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--gate-500); box-shadow: 0 0 0 .2rem rgba(47,125,136,.16); }
.form-label { font-weight: 600; font-size: .86rem; color: var(--ink-soft); margin-bottom: .35rem; }
.input-group-text { background: var(--gate-50); border-color: #CCD7D6; color: var(--gate-700); }
.btn-check:checked + .btn-outline-primary { background: var(--gate-700); border-color: var(--gate-700); color: #fff; }

/* ---------- الشارات ---------- */
.badge-soft { display: inline-block; padding: .32em .8em; border-radius: 999px; font-weight: 600; font-size: .76rem; line-height: 1.5; }
.badge-soft.success   { background: #E1F2E9; color: #17663F; }
.badge-soft.danger    { background: #F8E3E1; color: #9A2E28; }
.badge-soft.warning   { background: #FBEBD0; color: #8A560A; }
.badge-soft.info      { background: #E2ECF7; color: #20538A; }
.badge-soft.secondary { background: #EDF1F0; color: #536466; }
.badge-soft.brand     { background: var(--gate-100); color: var(--gate-800); }
.badge-soft.gold      { background: var(--gold-100); color: var(--gold-700); }

/* ---------- النوافذ والتنبيهات ---------- */
.modal-content { border: none; border-radius: 20px; overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--line); background: #fff; padding: 1.1rem 1.4rem; }
.modal-header .modal-title { font-family: var(--font-display); font-weight: 500; color: var(--gate-900); }
.modal-header .modal-title::before { content: ''; display: inline-block; width: 8px; height: 18px; border-radius: var(--arch); background: var(--gold-500); margin-inline-end: .6rem; vertical-align: -2px; }
.modal-body { padding: 1.4rem; }
.modal-footer { border-top: 1px solid var(--line); background: var(--gate-50); }
.modal-backdrop.show { opacity: .55; background: var(--gate-900); }
.modal h6 { font-family: var(--font-display); font-weight: 500; color: var(--gate-700) !important; }

.alert { border-radius: 14px; border: 1px solid transparent; }
.alert-success { background: #E6F4EC; color: #145A38; border-color: #C6E5D2; }
.alert-danger  { background: #FBE9E7; color: #8B2A24; border-color: #F1CBC7; }
.alert-warning { background: #FDF1DC; color: #7A4C08; border-color: #F3DCAF; }
.alert-info    { background: var(--gate-50); color: var(--gate-800); border-color: var(--gate-100); }

.empty-state { text-align: center; padding: 2.75rem 1rem; color: var(--muted); }
.empty-state i {
    display: inline-grid; place-items: center; width: 64px; height: 72px; margin-bottom: .75rem;
    border-radius: var(--arch); background: var(--gate-50); color: var(--gate-500); font-size: 1.7rem;
}

.list-group-item { border-color: #EDF1F0; }
.progress { background: var(--gate-100); border-radius: 99px; }
.progress-bar { background: var(--gate-700); }

/* أزرار حالة الحضور */
.att-group .btn { font-weight: 600; font-size: .82rem; padding: .36rem .75rem; }
.att-group .btn-check:checked + .btn-outline-success { background: var(--ok);   border-color: var(--ok);   color: #fff; }
.att-group .btn-check:checked + .btn-outline-danger  { background: var(--bad);  border-color: var(--bad);  color: #fff; }
.att-group .btn-check:checked + .btn-outline-warning { background: var(--warn); border-color: var(--warn); color: #fff; }
.att-group .btn-check:checked + .btn-outline-info    { background: var(--info); border-color: var(--info); color: #fff; }

/* بطاقة البطل الداكنة (تقدم الدورة في بوابة ولي الأمر) */
.hero-brand { background: var(--gate-800); color: #fff; border: none; position: relative; overflow: hidden; }
.hero-brand::after { /* أشعة الشمس الذهبية من الشعار */
    content: ''; position: absolute; inset-inline-end: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(230,207,150,.18) 0 6deg, transparent 6deg 18deg);
    mask: radial-gradient(circle, transparent 28px, #000 29px);
}
.progress-brand { height: 10px; border-radius: 6px; background: rgba(255,255,255,.18); }
.progress-brand .progress-bar { background: var(--gold-500); }

/* اختيار الأبناء في بوابة ولي الأمر */
.child-tab { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1.1rem .45rem .55rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.child-tab .dot { width: 30px; height: 34px; border-radius: var(--arch); display: grid; place-items: center; background: var(--gate-50); color: var(--gate-700); }
.child-tab.active { background: var(--gate-800); border-color: var(--gate-800); color: #fff; }
.child-tab.active .dot { background: var(--gold-500); color: var(--gate-900); }

@media (max-width: 575.98px) {
    .app-main { padding: 1.1rem; }
    .page-head h1 { font-size: 1.3rem; }
}

/* ---------- الطباعة ---------- */
@media print {
    .sidebar, .mobile-bar, .no-print, .app-footer, .alert, .page-head::after { display: none !important; }
    .app-main { padding: 0; max-width: none; }
    .app-body { background: #fff; }
    .card { border-color: #999; }
}

/* =====================================================================
   الصفحات العامة: الرئيسية وتسجيل الدخول وصفحات المعلومات
   ===================================================================== */
.public-body { background: #fff; color: var(--ink); }

.site-nav {
    position: sticky; top: 0; z-index: 50; background: rgba(15,46,51,.94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(230,207,150,.25);
}
.site-nav .inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.site-nav .brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 1.1rem; }
.site-nav .brand img { width: 44px; height: 44px; border-radius: 50%; background: var(--parchment); padding: 2px; box-shadow: 0 0 0 2px var(--gold-500); }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,.35); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- البوابة: العنصر المميز ---------- */
.gate-hero { position: relative; background: var(--gate-900); color: #fff; overflow: hidden; isolation: isolate; }
.gate-hero::before { /* أرضية من بلاط هندسي خافت */
    content: ''; position: absolute; inset: 0; z-index: -2; opacity: .05;
    background-image:
        radial-gradient(circle at 50% 0, var(--gold-300) 1.5px, transparent 2px),
        linear-gradient(45deg, transparent 47%, var(--gold-300) 48% 52%, transparent 53%);
    background-size: 36px 36px;
}
.gate-hero .container { padding-block: 4.5rem 0; }
.gate-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: end; }

.gate {
    position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 4 / 5;
    border-radius: 999px 999px 0 0; display: grid; place-items: center;
    background: linear-gradient(180deg, var(--gate-700) 0%, var(--gate-800) 100%);
    box-shadow: inset 0 0 0 10px var(--gate-900), inset 0 0 0 12px var(--gold-500);
}
.gate::before { /* أشعة الشمس خلف الشعار */
    content: ''; position: absolute; inset: 8% 4% auto; aspect-ratio: 1; border-radius: 50%; z-index: 0;
    background: repeating-conic-gradient(from -90deg at 50% 50%, rgba(230,207,150,.32) 0 5deg, transparent 5deg 15deg);
    mask: radial-gradient(circle, transparent 34%, #000 35%, #000 62%, transparent 72%);
    animation: rays 60s linear infinite;
}
.gate .emblem {
    position: relative; z-index: 1; width: 66%; aspect-ratio: 1; margin-top: -12%;
    border-radius: 50%; background: var(--parchment); padding: 4%;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.gate .emblem img { width: 100%; height: 100%; object-fit: contain; }
.gate .threshold { position: absolute; inset: auto -14% 0; height: 14px; background: var(--gold-500); border-radius: 4px 4px 0 0; }
@keyframes rays { to { rotate: 360deg; } }

.gate-copy { padding-bottom: 4.5rem; }
.gate-copy h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.2; margin: 0 0 .75rem; color: #fff; }
.gate-copy .motto { font-family: var(--font-display); color: var(--gold-300); font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 1.4rem; }
.gate-copy p { color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.95; max-width: 34em; margin-bottom: 2rem; }
.gate-copy .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.gate-copy .btn { padding: .8rem 1.6rem; font-size: 1rem; }

/* شريط الرَّقّ: يكرر إطار الشعار */
.parchment-band { background: var(--parchment); border-block: 1px solid #E2D3AE; }
.parchment-band .container { padding-block: 1.1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.5rem; color: var(--gold-700); font-weight: 600; font-size: .95rem; }
.parchment-band span { display: inline-flex; align-items: center; gap: .5rem; }
.parchment-band span::before { content: '✦'; color: var(--gold-500); font-size: .8rem; }

.section { padding-block: 5rem; }
.section-title { font-family: var(--font-display); font-weight: 600; color: var(--gate-900); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.section-lead { color: var(--muted); max-width: 40em; line-height: 1.9; }

.portal-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.portal { text-align: start; }
.portal .arch-icon {
    width: 64px; height: 76px; border-radius: var(--arch); display: grid; place-items: center; font-size: 1.6rem;
    background: var(--gate-50); color: var(--gate-700); margin-bottom: 1.1rem; border-bottom: 3px solid var(--gold-500);
}
.portal h3 { font-size: 1.25rem; color: var(--gate-900); margin-bottom: .5rem; }
.portal p { color: var(--ink-soft); line-height: 1.9; margin: 0; }

.app-band { background: var(--gate-800); color: #fff; border-radius: 28px; padding: 3rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.app-band h2 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); }
.app-band p { color: rgba(255,255,255,.75); line-height: 1.9; max-width: 36em; margin: 0; }
.app-band .phone {
    width: 150px; height: 190px; border-radius: 999px 999px 18px 18px; background: var(--gate-700);
    box-shadow: inset 0 0 0 2px var(--gold-500); display: grid; place-items: center; font-size: 3.5rem; color: var(--gold-300);
}

.site-footer { background: var(--gate-900); color: rgba(255,255,255,.6); padding-block: 2.2rem; font-size: .88rem; border-top: 3px solid var(--gold-500); }
.site-footer a { color: var(--gold-300); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }

/* ---------- صفحة الدخول ---------- */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; }
.auth-visual { background: var(--gate-900); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 3rem 2rem 0; position: relative; overflow: hidden; isolation: isolate; }
.auth-visual::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .05;
    background-image: radial-gradient(circle at 50% 0, var(--gold-300) 1.5px, transparent 2px), linear-gradient(45deg, transparent 47%, var(--gold-300) 48% 52%, transparent 53%);
    background-size: 36px 36px; }
.auth-visual .gate { width: min(330px, 80%); }
.auth-visual .caption { text-align: center; margin-bottom: 2.5rem; }
.auth-visual .caption h2 { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; margin-bottom: .3rem; color: #fff; }
.auth-visual .caption div { color: var(--gold-300); font-family: var(--font-display); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: var(--gate-50); }
.auth-form .box { width: 100%; max-width: 410px; }
.auth-form h1 { font-size: 1.7rem; color: var(--gate-900); margin-bottom: .4rem; }
.auth-form .lead { color: var(--muted); font-size: .95rem; margin-bottom: 1.8rem; }
.auth-form .form-control { padding: .75rem 1rem; background: #fff; }
.auth-form .btn-submit { padding: .8rem; font-size: 1.02rem; }

/* ---------- صفحات المعلومات (الخصوصية، حذف الحساب، التحميل) ---------- */
.info-head { background: var(--gate-900); color: #fff; padding-block: 3rem 2.5rem; text-align: center; border-bottom: 3px solid var(--gold-500); }
.info-head .arch-icon { width: 64px; height: 76px; border-radius: var(--arch); display: inline-grid; place-items: center; font-size: 1.7rem; background: rgba(230,207,150,.14); color: var(--gold-300); margin-bottom: 1rem; }
.info-head h1 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .4rem; }
.info-head p { color: rgba(255,255,255,.7); margin: 0; }
.info-body { max-width: 760px; margin: -1.5rem auto 4rem; padding-inline: 1rem; }
.info-body .card { padding: 2rem; display: block; }
.info-body h2 { font-size: 1.2rem; color: var(--gate-800); margin: 1.8rem 0 .7rem; }
.info-body h2:first-child { margin-top: 0; }
.info-body p, .info-body li { line-height: 2; color: var(--ink-soft); }

@media (max-width: 991.98px) {
    .gate-grid { grid-template-columns: 1fr; gap: 2rem; }
    .gate-copy { padding-bottom: 0; text-align: center; }
    .gate-copy p { margin-inline: auto; }
    .gate-copy .actions { justify-content: center; }
    .gate { width: min(300px, 80%); order: 2; }
    .portal-row { grid-template-columns: 1fr; gap: 2rem; }
    .app-band { grid-template-columns: 1fr; padding: 2rem; text-align: center; }
    .app-band .phone { display: none; }
    .auth-split { grid-template-columns: 1fr; }
    .auth-visual { padding-top: 2rem; }
    .auth-visual .gate { width: 200px; }
    .auth-visual .caption h2 { font-size: 1.5rem; }
}

/* الامتحان المختار في قائمة الامتحانات */
.list-group-item.exam-active { background: var(--gold-100); box-shadow: inset -4px 0 0 var(--gold-500); }
