/* ============================================================
   برنامج المساعدات — بوابة خدمة إلكترونية سعودية (RTL)

   إعادة بناء كاملة. لا Glassmorphism، لا ظلال زخرفية، لا بطاقات
   ضخمة، لا rounded-full، لا تدرجات. الهرمية البصرية تأتي من:
   Typography + Grid + Spacing + Alignment + حدود رفيعة فقط.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700&display=swap');

/* خط توكلنا: ضع ملفات الخط داخل assets/fonts/ بالأسماء التالية.
   إن لم توجد الملفات يعمل الموقع تلقائياً بخط Tajawal البديل. */
@font-face {
    font-family: "Tawakkalna";
    src: url("../fonts/Tawakkalna-Regular.woff2") format("woff2"),
         url("../fonts/Tawakkalna-Regular.woff") format("woff"),
         url("../fonts/Tawakkalna-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Tawakkalna";
    src: url("../fonts/Tawakkalna-Medium.woff2") format("woff2"),
         url("../fonts/Tawakkalna-Medium.woff") format("woff"),
         url("../fonts/Tawakkalna-Medium.ttf") format("truetype");
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Tawakkalna";
    src: url("../fonts/Tawakkalna-Bold.woff2") format("woff2"),
         url("../fonts/Tawakkalna-Bold.woff") format("woff"),
         url("../fonts/Tawakkalna-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #c3a748;
    --primary-dark: #9c7a2e;
    --text: #161616;
    --muted: #5f6b66;
    --background: #ffffff;
    --surface: #f7f9f8;
    --border: #d9e2dd;

    --danger: #a4231b;
    --danger-bg: #fbeceb;
    --warning: #7a5200;
    --warning-bg: #faf1dc;

    --gold: #9c7a2e; /* لمسة هوية دقيقة جداً فقط */

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    --transition: 140ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Tawakkalna", 'Tajawal', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    background: var(--background);
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    font-size: 15.5px;
}

h1, h2, h3, h4 { font-weight: 700; margin: 0; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
svg { display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================
   Top bar
   ============================================================ */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 12.5px;
}
.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
}
.brand-mark {
    width: 38px;
    height: 38px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-weight: 700; font-size: 15px; color: var(--text); }
.brand-tag { font-size: 11.5px; font-weight: 400; color: var(--muted); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-self: center;
}
.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 14.5px;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--primary); border-color: var(--primary); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn-ghost:hover { background: var(--surface); text-decoration: none; }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13.5px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    border-bottom: 1px solid var(--border);
}
.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    min-height: 400px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.hero-copy { text-align: right; }
.hero-copy h1 {
    font-size: clamp(26px, 3.4vw, 34px);
    color: var(--text);
    margin-bottom: 10px;
}
.hero-copy .subhead {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 16px;
}
.hero-copy .desc {
    font-size: 15px;
    color: var(--muted);
    max-width: 460px;
    margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
    position: relative;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-mark {
    width: 100%;
    max-width: 260px;
}

/* ============================================================
   Sections (open, no cards)
   ============================================================ */
.section { padding: 56px 0; }
.section-alt { background: var(--surface); }
.section-head { margin-bottom: 36px; }
.section-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.section-head p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   Process (horizontal steps, no cards)
   ============================================================ */
.process {
    display: flex;
    align-items: flex-start;
}
.process-item {
    flex: 1;
    padding: 0 28px;
    border-inline-start: 1px solid var(--border);
}
.process-item:first-child { border-inline-start: none; padding-inline-start: 0; }
.process-item:last-child { padding-inline-end: 0; }
.process-num {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}
.process-item h3 { font-size: 15.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.process-item p { font-size: 13.5px; color: var(--muted); }

/* ============================================================
   Info list (numbered, green side rule, no cards)
   ============================================================ */
.info-list { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.info-list li {
    display: flex;
    gap: 20px;
    align-items: baseline;
    padding: 18px 0 18px 18px;
    border-inline-start: 2px solid var(--primary);
    border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-num { font-size: 14px; font-weight: 700; color: var(--primary); flex-shrink: 0; width: 22px; }
.info-text { font-size: 14.5px; color: var(--text); }

/* ============================================================
   Final CTA (simple, no big block)
   ============================================================ */
.final-cta {
    border-top: 1px solid var(--border);
    padding: 48px 0;
    text-align: center;
}
.final-cta h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--text); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.82); }
.footer-top {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-col h4 { color: #fff; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.footer-col p { font-size: 13.5px; color: rgba(255,255,255,0.72); max-width: 320px; }
.footer-col a { display: block; color: rgba(255,255,255,0.72); font-size: 13.5px; margin-bottom: 9px; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
    padding: 16px 0;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
}

/* ============================================================
   Forms
   ============================================================ */
.page-container { max-width: 860px; margin: 0 auto; padding: 40px 24px 64px; }
.page-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.page-desc { font-size: 14.5px; color: var(--muted); margin-bottom: 32px; }

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.form-group { margin-bottom: 22px; }
.form-label { display: block; font-weight: 500; font-size: 13.5px; color: var(--text); margin-bottom: 8px; }
.required-mark { color: var(--danger); margin-right: 2px; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form-error { font-size: 12.5px; color: var(--danger); margin-top: 6px; display: none; }

.form-control {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}
textarea.form-control { height: auto; padding: 14px 16px; resize: vertical; }
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 108, 53, 0.12);
}
.form-control.invalid { border-color: var(--danger); }
.is-invalid ~ .form-error { display: block; }

.toggle-group { display: flex; gap: 12px; flex-wrap: wrap; }
.toggle-option {
    flex: 1;
    min-width: 160px;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text);
    background: #fff;
    transition: border-color var(--transition), background var(--transition);
}
.toggle-option input { accent-color: var(--primary); width: 16px; height: 16px; }
.toggle-option.checked { border-color: var(--primary); background: var(--surface); font-weight: 600; }

.checkbox-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.checkbox-line input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }

/* ---------------- Stepper ---------------- */
.stepper { display: flex; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.stepper-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--muted);
    font-size: 13.5px;
}
.stepper-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stepper-item.active { color: var(--text); font-weight: 600; border-color: var(--primary); }
.stepper-item.active .stepper-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.stepper-item.done { color: var(--text); border-color: var(--primary); }
.stepper-item.done .stepper-num { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.stepper-item.done .stepper-num::before { content: '\2713'; }
.stepper-item.done .stepper-num span { display: none; }

.form-step { display: none; }
.form-step.active { display: block; }

.step-actions { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); gap: 12px; }

/* ---------------- Upload ---------------- */
.upload-box {
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    cursor: pointer;
}
.upload-box.dragover { border-color: var(--primary); background: var(--surface); }
.upload-box input { display: none; }
.upload-box .icon { width: 24px; height: 24px; color: var(--muted); margin-bottom: 10px; }
.upload-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.upload-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }

.file-preview {
    display: none;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-top: 14px;
    text-align: right;
}
.file-preview img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); flex-shrink: 0; }
.file-preview .meta { flex: 1; min-width: 0; }
.file-preview .fname { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-preview .fsize { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.file-preview .remove-file {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    height: 34px;
    padding: 0 12px;
    font-size: 12.5px;
    color: var(--danger);
    cursor: pointer;
    flex-shrink: 0;
}
.file-preview .remove-file:hover { background: var(--danger-bg); }

/* ---------------- Review ---------------- */
.review-block { margin-bottom: 28px; }
.review-block h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.review-row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.review-row:last-child { border-bottom: none; }
.review-row .k { color: var(--muted); }
.review-row .v { color: var(--text); font-weight: 500; text-align: left; }
.review-doc { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.review-doc img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #ecc6c2; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: #ecdcac; }
.alert-success { background: var(--surface); color: var(--primary-dark); border-color: var(--border); }

.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-text { opacity: 0.85; }

/* ============================================================
   Success page
   ============================================================ */
.success-wrap { max-width: 480px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.success-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.success-mark .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.success-wrap h1 { font-size: 19px; margin-bottom: 8px; }
.success-wrap .desc { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.app-number-label { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.app-number-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 24px;
    direction: ltr;
}
.app-number-box button {
    height: 34px;
    padding: 0 14px;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12.5px;
    font-family: inherit;
    flex-shrink: 0;
}
.app-number-box button:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   Status badge + timeline (track page)
   ============================================================ */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 12.5px;
    border: 1px solid transparent;
}
.status-NEW { background: var(--surface); color: var(--text); border-color: var(--border); }
.status-UNDER_REVIEW { background: var(--warning-bg); color: var(--warning); border-color: #ecdcac; }
.status-NEEDS_DOCUMENTS { background: #fbeedb; color: #8a5710; border-color: #ecdcac; }
.status-APPROVED { background: #e6f2ec; color: var(--primary-dark); border-color: #c7e2d5; }
.status-REJECTED { background: var(--danger-bg); color: var(--danger); border-color: #ecc6c2; }
.status-COMPLETED { background: #e6f2ec; color: var(--primary-dark); border-color: #c7e2d5; }

.result-block { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.result-block h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }

.status-timeline { list-style: none; margin: 20px 0 0; padding: 0; }
.status-timeline li {
    position: relative;
    padding: 0 0 24px;
    padding-right: 32px;
    font-size: 14px;
    color: var(--muted);
}
.status-timeline li::before {
    content: '';
    position: absolute;
    right: 4px;
    top: 3px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border);
}
.status-timeline li::after {
    content: '';
    position: absolute;
    right: 9px;
    top: 16px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}
.status-timeline li:last-child::after { display: none; }
.status-timeline li.done { color: var(--text); font-weight: 600; }
.status-timeline li.done::before { background: var(--primary); border-color: var(--primary); }
.status-timeline li.done::after { background: var(--primary); }
.status-timeline li.rejected { color: var(--danger); font-weight: 600; }
.status-timeline li.rejected::before { background: var(--danger); border-color: var(--danger); }

/* ============================================================
   Admin
   ============================================================ */
.admin-body { background: var(--surface); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 224px;
    background: var(--primary-dark);
    color: #fff;
    padding: 20px 12px;
    flex-shrink: 0;
}
.admin-sidebar .brand-name { color: #fff; }
.admin-sidebar .brand-tag { color: rgba(255,255,255,0.6); }
.admin-sidebar .brand { margin-bottom: 24px; padding: 0 8px; }
.admin-sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    margin-bottom: 2px;
    text-decoration: none;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.12); color: #fff; }
.admin-main { flex: 1; padding: 24px 28px; max-width: 100%; overflow-x: auto; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.admin-topbar h1 { font-size: 19px; color: var(--text); }

.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; }
.stat-card .num { font-size: 21px; font-weight: 700; color: var(--text); }
.stat-card .label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th, .data-table td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.data-table th { background: var(--surface); color: var(--text); font-weight: 600; }
.data-table tr:hover td { background: var(--surface); }
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; overflow-x: auto; }

.filters-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filters-bar .form-control { width: auto; height: 42px; min-width: 160px; }

.pagination { display: flex; gap: 6px; margin-top: 16px; justify-content: center; }
.pagination a, .pagination span { padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; color: var(--text); text-decoration: none; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--surface); padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 30px; }

.badge-role { padding: 3px 9px; border-radius: var(--radius-sm); font-size: 11.5px; font-weight: 600; }
.badge-SUPER_ADMIN { background: #f3ecda; color: #7a5f13; }
.badge-REVIEWER { background: #e6f2ec; color: var(--primary-dark); }
.badge-VIEWER { background: var(--surface); color: var(--text); border: 1px solid var(--border); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text); }
.timeline li:last-child { border-bottom: none; }
.timeline .meta { color: var(--muted); font-size: 12px; }

.review-table { width: 100%; border-collapse: collapse; }
.review-table th, .review-table td { text-align: right; padding: 10px 4px; border-bottom: 1px solid var(--border); font-size: 14px; }
.review-table th { width: 36%; color: var(--muted); font-weight: 500; }

/* Plain block used for privacy/terms text and standalone admin panels */
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.panel h3 { font-size: 15px; margin: 20px 0 8px; }
.panel h3:first-child { margin-top: 0; }
.panel p { color: var(--muted); font-size: 14.5px; margin-bottom: 4px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-sidebar { position: fixed; right: -240px; top: 0; height: 100%; z-index: 100; transition: right var(--transition); }
    .admin-sidebar.open { right: 0; }
    .admin-main { padding: 18px 16px; }
    .hero .container { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; padding-bottom: 32px; }
    .hero-copy { text-align: center; }
    .hero-copy .desc { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: -1; min-height: 0; margin-bottom: 8px; }
    .hero-mark { max-width: 160px; }
    .process { flex-direction: column; gap: 24px; }
    .process-item { border-inline-start: none; padding-inline: 0; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
    .process-item:last-child { border-bottom: none; padding-bottom: 0; }
}

@media (max-width: 760px) {
    .site-header .container { grid-template-columns: auto auto; }
    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 24px 16px;
        border-bottom: 1px solid var(--border);
        z-index: 60;
    }
    .main-nav.open { display: flex; }
    .main-nav a { width: 100%; padding: 10px 0; }
    .header-actions .btn-sm { display: none; }
    .menu-toggle { display: block; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .top-bar { display: none; }
}

@media (max-width: 620px) {
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .page-container { padding: 28px 18px 48px; }
    .step-actions { flex-direction: column-reverse; }
    .step-actions .btn { width: 100%; }
    .app-number-box { flex-direction: column; align-items: flex-start; }
    .toggle-group { flex-direction: column; }
    .review-row { flex-direction: column; gap: 2px; }
    .review-row .v { text-align: right; }
}

/* ============================================================
   Home sections: about / services / requirements tabs / partners
   ============================================================ */
.about-grid, .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-copy h2, .services-copy h2 { font-size: 26px; margin-bottom: 16px; }
.about-copy p, .services-copy p { font-size: 16px; line-height: 2; color: var(--text); margin-bottom: 24px; max-width: 520px; }
.about-copy strong { color: var(--primary-dark); }

.about-visual { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.chip {
    display: flex; align-items: center; gap: 12px;
    width: 100%; max-width: 340px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 16px;
}
.chip:nth-child(2) { margin-inline-start: 40px; }
.chip-icon, .tile-icon, .req-icon {
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); color: var(--primary-dark);
    border-radius: 14px; flex-shrink: 0;
}
.chip-icon { width: 42px; height: 42px; }
.chip b { display: block; font-size: 14px; }
.chip small { display: block; font-size: 12px; color: var(--muted); }

.services-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 360px; margin-inline: auto; width: 100%; }
.tile {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    padding: 24px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 500;
}
.tile-icon { width: 60px; height: 60px; border-radius: 18px; }
.tile-icon .icon { width: 26px; height: 26px; }

.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.tab {
    height: 42px; padding: 0 22px; border: 0; border-radius: 12px;
    background: var(--surface); color: var(--text);
    font-size: 14px; cursor: pointer; transition: background var(--transition), color var(--transition);
}
.tab.active { background: var(--text); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.req { display: flex; flex-direction: column; align-items: center; }
.req-icon { width: 96px; height: 96px; border-radius: 28px; margin-bottom: 20px; }
.req-icon .icon { width: 34px; height: 34px; }
.req-num { font-size: 28px; font-weight: 500; margin-bottom: 10px; }
.req p { font-size: 14px; color: var(--text); max-width: 260px; }

.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner {
    height: 120px; background: #fff; border: 1px solid var(--border); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    color: var(--muted); font-size: 13.5px;
}
.partner img { max-height: 64px; width: auto; filter: grayscale(1); }

@media (max-width: 900px) {
    .about-grid, .services-grid { grid-template-columns: 1fr; gap: 32px; }
    .req-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .chip:nth-child(2) { margin-inline-start: 0; }
}

/* ---------------- Bank picker ---------------- */
.bank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bank-option {
    display: flex; align-items: center; gap: 12px;
    min-height: 60px; padding: 8px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: #fff; cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.bank-option:hover { border-color: var(--primary); }
.bank-option input { position: absolute; opacity: 0; pointer-events: none; }
.bank-option:has(input:checked) { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 1px var(--primary); }
.bank-option:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.bank-logo {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; overflow: hidden;
}
.bank-logo img { max-width: 34px; max-height: 34px; object-fit: contain; }
.bank-initial { font-weight: 700; color: var(--primary-dark); }
.bank-name { font-size: 14px; font-weight: 500; }
@media (max-width: 520px) { .bank-grid { grid-template-columns: 1fr; } }
