/* ============================================================
   Admission module — public form (mobile-first, centered column)
   ============================================================ */

.adm-fullwrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 100px;
    box-sizing: border-box;
}
@media (min-width: 720px) {
    .adm-fullwrap { padding: 0 24px 60px; }
}

/* ---------- Hero ---------- */
.adm-hero { padding: 24px 0 20px; margin-bottom: 12px; }
.adm-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.adm-hero-logo {
    width: 64px; height: 64px; border-radius: 14px; object-fit: contain;
    background: #fff; border: 1px solid var(--border); padding: 4px;
}
.adm-hero-logo-ph {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff; font-size: 28px; font-weight: 700;
}
.adm-hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 24px; margin: 0 0 4px; color: var(--text-strong);
}
.adm-hero-text p { font-size: 13px; color: var(--text-muted); margin: 0; }
.adm-hero-text p strong { color: var(--primary); font-weight: 700; }

.adm-hero-status-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, .08);
    border: 1px solid rgba(99, 102, 241, .25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all .15s;
}
.adm-hero-status-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, .3);
}

/* ---------- Flash / banners ---------- */
.adm-flash-error {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .3);
    color: #dc2626;
    padding: 12px 16px; border-radius: 10px;
    font-size: 13px; margin-bottom: 16px;
}

.adm-draft-banner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px; padding: 12px 16px; margin-bottom: 12px;
    background: rgba(99, 102, 241, .08);
    border: 1px solid rgba(99, 102, 241, .3);
    border-radius: 10px; color: var(--primary);
    font-size: 13px; font-weight: 600;
}
.adm-draft-actions { display: flex; gap: 8px; }
.adm-draft-actions button {
    padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: inherit; border: none;
}
.adm-draft-restore { background: var(--primary); color: #fff; }
.adm-draft-discard { background: #fff; color: var(--text); border: 1px solid var(--border); }

/* ---------- Closed ---------- */
.adm-closed {
    text-align: center; padding: 64px 24px; background: #fff;
    border: 1px solid var(--border); border-radius: 16px;
    max-width: 500px; margin: 40px auto;
}
.adm-closed-icon { font-size: 48px; color: var(--warning); margin-bottom: 12px; }
.adm-closed h2 { margin: 0 0 8px; }
.adm-closed p { color: var(--text-muted); margin: 0; }

/* ---------- Public form sections ---------- */
.adm-grid-wrap { display: flex; flex-direction: column; gap: 16px; }
.adm-left { display: flex; flex-direction: column; gap: 16px; }

.adm-section {
    background: #fff; border: 1px solid var(--border);
    border-radius: 14px; padding: 22px 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
@media (min-width: 720px) { .adm-section { padding: 24px; } }

.adm-section-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.adm-section-emoji { font-size: 20px; line-height: 1; }
.adm-section-head h2 { font-size: 15px; font-weight: 700; margin: 0; color: var(--text-strong); flex: 1; }

.adm-optional-tag {
    font-size: 10px; font-weight: 600; color: var(--text-muted);
    background: var(--bg-hover); padding: 3px 8px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .04em;
}
.adm-hint { font-size: 12px; color: var(--text-muted); margin: 0 0 12px; }

/* ---------- Fields ---------- */
.adm-fields { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; position: relative; }
.form-field-wide { width: 100%; }

.form-field label {
    font-size: 12px; font-weight: 600; color: var(--text);
}
.form-field input,
.form-field select,
.form-field textarea {
    padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px; width: 100%;
    background: #fff; color: var(--text);
    box-sizing: border-box; font-family: inherit;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ---------- Error states ---------- */
.field-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12) !important;
}
.form-error-msg {
    font-size: 11px; color: #dc2626; font-weight: 600; margin: 4px 0 0;
}
.field-valid {
    border-color: #10b981 !important;
}
.field-status-icon {
    transition: color .15s;
}

/* ---------- Toggle switch ---------- */
.toggle-field { }
.toggle-row {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 4px;
}
.toggle-label-no, .toggle-label-yes {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    user-select: none;
}
.toggle-label-yes { color: var(--text-strong); }

.fee-toggle {
    display: inline-block;
    position: relative;
    width: 46px;
    height: 26px;
    cursor: pointer;
    flex-shrink: 0;
}
.fee-toggle input { opacity: 0; width: 0; height: 0; }
.fee-toggle-slider {
    position: absolute; inset: 0;
    background: #cbd5e1;
    border-radius: 26px;
    transition: background .2s;
}
.fee-toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
}
.fee-toggle input:checked + .fee-toggle-slider {
    background: var(--primary);
}
.fee-toggle input:checked + .fee-toggle-slider::before {
    transform: translateX(20px);
}
.fee-toggle input:focus-visible + .fee-toggle-slider {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .25);
}
.fee-toggle input:disabled + .fee-toggle-slider {
    opacity: .5; cursor: not-allowed;
}

/* ---------- Guardian segmented control ---------- */
.adm-guardian-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; margin-bottom: 14px;
}
@media (min-width: 600px) {
    .adm-guardian-choice { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.adm-choice {
    background: #fff; border: 2px solid var(--border);
    border-radius: 10px; padding: 12px 8px;
    font-size: 13px; font-weight: 600;
    cursor: pointer; color: var(--text);
    transition: all .15s; font-family: inherit;
    text-align: center;
}
.adm-choice:hover { border-color: var(--primary); color: var(--primary); }
.adm-choice.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.adm-guardian-block {
    padding: 16px; background: var(--bg-page);
    border: 1px solid var(--border); border-radius: 10px;
    margin-top: 8px;
}

/* ---------- Conditional blocks ---------- */
.adm-conditional {
    margin-top: 10px;
    padding: 14px;
    background: rgba(99, 102, 241, .05);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}
.adm-conditional .adm-fields { gap: 12px; }

/* ---------- Payment sidebar ---------- */
.adm-right { display: block; }

.adm-side-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 14px; padding: 22px 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
}
.adm-side-total {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 14px; margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.adm-side-total span { font-size: 13px; color: var(--text-muted); }
.adm-side-total strong { font-size: 22px; font-weight: 800; color: var(--success); }

.adm-side-qr { text-align: center; margin-bottom: 14px; }
.adm-qr {
    width: 180px; height: 180px; margin: 0 auto;
    background: #fff; border: 1px solid var(--border);
    border-radius: 10px; padding: 6px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.adm-qr canvas, .adm-qr img { max-width: 100%; height: auto; display: block; }
.adm-side-vpa {
    font-family: ui-monospace, monospace;
    font-size: 11px; color: var(--text-muted);
    margin: 8px 0; word-break: break-all;
}
.adm-copy-btn {
    background: var(--bg-page); border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 6px;
    font-size: 11px; font-weight: 600; color: var(--text);
    cursor: pointer; font-family: inherit;
}
.adm-copy-btn:hover { background: var(--bg-hover); }
.adm-side-scan-hint {
    font-size: 12px; color: var(--text-muted);
    text-align: center; margin: 10px 0 0; line-height: 1.5;
}
.adm-side-scan-hint strong { color: var(--text-strong); }

.adm-side-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.adm-side-field label { font-size: 12px; font-weight: 600; color: var(--text); }
.adm-side-field input {
    padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 13px; width: 100%;
    box-sizing: border-box; font-family: inherit;
}
.adm-side-field input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.adm-side-captcha {
    display: flex; flex-direction: column; gap: 4px;
    margin-bottom: 16px; padding-top: 12px;
    border-top: 1px dashed var(--border);
}
.adm-side-captcha label { font-size: 12px; font-weight: 600; color: var(--text); }
.adm-side-captcha input {
    padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 15px; letter-spacing: .05em;
    width: 100%; box-sizing: border-box;
}

.adm-submit-btn {
    width: 100%; padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff; font-weight: 700; font-size: 15px;
    border: none; border-radius: 10px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .35);
    transition: all .15s; font-family: inherit;
}
.adm-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(99, 102, 241, .45); }
.adm-submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.adm-side-fineprint {
    font-size: 11px; color: var(--text-muted);
    text-align: center; margin: 12px 0 0; line-height: 1.5;
}

/* ---------- Fill-remaining indicator ---------- */
.adm-fill-remaining-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 10px 20px;
    background: rgba(15, 23, 42, .92);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    z-index: 50;
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,.1);
}
.adm-fill-remaining-bar.all-done { background: rgba(16, 185, 129, .95); }
#fillRemainingText { display: inline-block; }

@media (min-width: 720px) {
    .adm-fill-remaining-bar {
        position: sticky;
        bottom: 12px;
        left: auto; right: auto;
        max-width: 400px;
        margin: 12px auto 0;
        padding: 10px 20px;
        border-radius: 24px;
        box-shadow: 0 4px 20px rgba(15, 23, 42, .25);
        border-top: none;
    }
}

/* ============================================================
   Modals (shared)
   ============================================================ */
.modal-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(15, 23, 42, .6); z-index: 9999;
    align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
.modal-backdrop:not([hidden]) { display: flex; }
.modal-panel {
    background: #fff; border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
    width: 100%; max-width: 520px; max-height: 90vh;
    overflow-y: auto; padding: 20px; box-sizing: border-box;
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text-strong); }
.modal-close {
    background: none; border: none; font-size: 20px; line-height: 1;
    cursor: pointer; color: var(--text-muted);
    padding: 4px 8px; border-radius: 6px; font-family: inherit;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text); }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-actions {
    display: flex; gap: 8px; justify-content: flex-end;
    margin-top: 8px; padding-top: 14px;
    border-top: 1px solid var(--border);
}

.fee-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(15, 23, 42, .6); z-index: 9999;
    align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
.fee-modal.show { display: flex; }
.fee-modal-panel {
    background: #fff; border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
    width: 100%; max-width: 640px; max-height: 90vh;
    overflow-y: auto; display: flex; flex-direction: column;
}
.fee-modal-sm { max-width: 520px; }
.fee-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    border-radius: 14px 14px 0 0; background: #fff; flex-shrink: 0;
}
.fee-modal-title {
    margin: 0; font-size: 16px; font-weight: 700; color: var(--text-strong);
    display: flex; align-items: center; gap: 8px;
}
.fee-modal-close {
    background: none; border: none; font-size: 22px; line-height: 1;
    cursor: pointer; color: var(--text-muted);
    padding: 2px 8px; border-radius: 6px; font-family: inherit;
}
.fee-modal-close:hover { background: var(--bg-hover); color: var(--text); }
.fee-modal-body { padding: 20px; }
.fee-modal-actions {
    display: flex; gap: 8px; justify-content: flex-end;
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--border);
}

.fee-form-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.fee-form-group label { font-size: 12px; font-weight: 600; color: var(--text); }
.fee-form-group input,
.fee-form-group select,
.fee-form-group textarea {
    padding: 9px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px; width: 100%;
    background: #fff; color: var(--text);
    box-sizing: border-box; font-family: inherit;
}
.fee-form-group input:focus,
.fee-form-group select:focus,
.fee-form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}
.fee-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px; margin-bottom: 12px;
}
.fee-hint { font-size: 11px; color: var(--text-muted); margin: 2px 0 0; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid var(--border);
    border-radius: 20px; font-size: 12px; font-weight: 500;
    background: #fff; color: var(--text);
    cursor: pointer; user-select: none; transition: all .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chip input { display: none; }

.fee-toast-container {
    position: fixed; bottom: 24px; right: 24px;
    display: flex; flex-direction: column; gap: 8px;
    z-index: 10000; pointer-events: none;
}
.fee-toast {
    display: flex; align-items: center; gap: 10px;
    background: #10b981; color: #fff;
    padding: 12px 20px; border-radius: 10px;
    font-size: 13px; font-weight: 600;
    box-shadow: 0 8px 24px rgba(16, 185, 129, .35);
    animation: feeToastIn .25s ease-out;
    pointer-events: auto; min-width: 180px;
}
.fee-toast.error {
    background: #dc2626;
    box-shadow: 0 8px 24px rgba(220, 38, 38, .35);
}
.fee-toast i { font-size: 15px; }

@keyframes feeToastIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

[hidden] { display: none !important; }

/* ============================================================
   Success page — animated
   ============================================================ */
.adm-success-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    box-sizing: border-box;
    animation: admSuccessIn .5s ease-out;
}

@keyframes admSuccessIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.adm-success-hero {
    text-align: center;
    padding: 8px 0 28px;
}

.adm-success-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 12px 32px rgba(16, 185, 129, .35);
    animation: admSuccessPop .55s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes admSuccessPop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

.adm-success-check {
    width: 52px;
    height: 52px;
    stroke: #fff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.adm-success-check circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: admSuccessStroke 1s .15s cubic-bezier(.65, 0, .45, 1) forwards;
}

.adm-success-check path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: admSuccessStroke .5s .55s cubic-bezier(.65, 0, .45, 1) forwards;
}

@keyframes admSuccessStroke {
    to { stroke-dashoffset: 0; }
}

.adm-success-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 8px;
}

.adm-success-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}
.adm-success-subtitle strong { color: var(--text-strong); }

.adm-success-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, .06), rgba(139, 92, 246, .06));
    border: 2px dashed rgba(99, 102, 241, .35);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.adm-success-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.adm-success-appno {
    font-family: ui-monospace, 'SF Mono', Monaco, monospace;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--primary);
    margin-bottom: 14px;
    word-break: break-all;
}

.adm-copy-appno {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.adm-copy-appno:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, .35);
}

.adm-success-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 14px 0 0;
    line-height: 1.5;
}
.adm-success-hint strong { color: var(--text-strong); }

.adm-success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.adm-success-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    text-decoration: none;
    transition: all .15s;
    border: none;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.adm-success-btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    box-shadow: 0 6px 20px rgba(99, 102, 241, .35);
}
.adm-success-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, .45);
    color: #fff;
}

.adm-success-btn-secondary {
    background: #fff;
    color: var(--text-strong);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.adm-success-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .1);
}

.adm-success-btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 12px 18px;
}
.adm-success-btn-ghost:hover {
    background: var(--bg-page);
    color: var(--text-strong);
}

.adm-success-btn-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.adm-success-btn > span:nth-child(2) {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adm-success-btn strong {
    font-size: 14px;
    font-weight: 700;
    display: block;
}

.adm-success-btn small {
    font-size: 12px;
    opacity: .8;
    font-weight: 400;
}

.adm-success-btn-arrow {
    font-size: 22px;
    line-height: 1;
    opacity: .6;
    flex-shrink: 0;
}

.adm-success-timeline {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 22px;
    margin-bottom: 20px;
}

.adm-success-timeline h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-success-timeline ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.adm-success-timeline li {
    display: flex;
    gap: 14px;
    position: relative;
}

.adm-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .15);
    position: relative;
    z-index: 1;
}

.adm-success-timeline li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    bottom: -20px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(99, 102, 241, .3), rgba(99, 102, 241, .1));
}

.adm-step-body strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 2px;
}

.adm-step-body p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.adm-success-fineprint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 480px) {
    .adm-success-appno { font-size: 22px; }
    .adm-success-title { font-size: 22px; }
    .adm-success-badge { width: 72px; height: 72px; }
    .adm-success-check { width: 44px; height: 44px; }
}

/* ============================================================
   ADMIN — Cards, tabs, toolbar, bulk
   ============================================================ */

.adm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: var(--bg-page);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.adm-tabs::-webkit-scrollbar { display: none; }

.adm-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s;
}
.adm-tab:hover { border-color: var(--primary); color: var(--primary); }
.adm-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, .3);
}
.adm-tab .count {
    background: rgba(0,0,0,.06);
    padding: 0 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}
.adm-tab.active .count { background: rgba(255,255,255,.25); }
.adm-tab-warning.active { background: #f59e0b; border-color: #f59e0b; }
.adm-tab-info.active    { background: #3b82f6; border-color: #3b82f6; }
.adm-tab-violet.active  { background: #8b5cf6; border-color: #8b5cf6; }
.adm-tab-success.active { background: #10b981; border-color: #10b981; }
.adm-tab-danger.active  { background: #ef4444; border-color: #ef4444; }
.adm-tab-ghost.active   { background: #64748b; border-color: #64748b; }

.adm-toolbar { padding: 10px 12px; margin-bottom: 12px; }
.adm-search-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-search-box { position: relative; flex: 1 1 240px; min-width: 180px; }
.adm-search-box input {
    width: 100%;
    padding: 9px 36px 9px 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}
.adm-search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}
.adm-search-icon {
    position: absolute;
    left: 11px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}
.adm-search-clear {
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.adm-search-clear:hover { background: var(--bg-hover); color: var(--text); }
.adm-filter-select select {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    min-width: 140px;
}

/* Export buttons */
.adm-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all .15s;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    border: none;
}
.adm-export-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); color: #fff; }
.adm-export-csv { background: #16a34a; }
.adm-export-csv:hover { background: #15803d; }
.adm-export-pdf { background: #dc2626; }
.adm-export-pdf:hover { background: #b91c1c; }

.adm-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .35);
    position: sticky;
    top: 10px;
    z-index: 50;
    animation: admBulkIn .2s ease-out;
}
@keyframes admBulkIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.adm-bulk-selectall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255,255,255,.15);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.adm-bulk-selectall input {
    width: 16px; height: 16px;
    cursor: pointer;
    accent-color: #fff;
}
.adm-bulk-count {
    font-size: 13px;
    font-weight: 500;
    opacity: .95;
}
.adm-bulk-count strong {
    font-weight: 800;
    font-size: 15px;
}
.adm-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}
.adm-bulk-actions .adm-btn {
    background: #fff;
    color: var(--text-strong);
    border: none;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.adm-bulk-actions .adm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.adm-bulk-actions .adm-btn-danger { color: #dc2626; }
.adm-bulk-actions .adm-btn-success { color: #059669; }
.adm-bulk-actions .adm-btn-violet { color: #7c3aed; }

.adm-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 720px) {
    .adm-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
    .adm-cards-grid { grid-template-columns: 1fr; }
}

.adm-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    transition: box-shadow .2s, transform .2s;
    border-left: 4px solid var(--border);
    display: flex;
    flex-direction: column;
}
.adm-card:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}
.adm-card-warning { border-left-color: #f59e0b; }
.adm-card-info    { border-left-color: #3b82f6; }
.adm-card-violet  { border-left-color: #8b5cf6; }
.adm-card-success { border-left-color: #10b981; }
.adm-card-danger  { border-left-color: #ef4444; }
.adm-card-ghost   { border-left-color: #64748b; }

.adm-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.adm-card-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.adm-card-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}
.adm-card-head-info { min-width: 0; }
.adm-card-appno {
    font-family: ui-monospace, monospace;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-strong);
    letter-spacing: .02em;
}
.adm-card-submitted {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.adm-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.adm-pill-warning { background: #fef3c7; color: #92400e; }
.adm-pill-info    { background: #dbeafe; color: #1e40af; }
.adm-pill-violet  { background: #ede9fe; color: #5b21b6; }
.adm-pill-success { background: #d1fae5; color: #065f46; }
.adm-pill-danger  { background: #fee2e2; color: #991b1b; }
.adm-pill-ghost   { background: #f1f5f9; color: #475569; }

.adm-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
@media (min-width: 1200px) {
    .adm-card-body {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
    .adm-card-main { flex: 1; min-width: 0; }
    .adm-card-payment { flex-shrink: 0; width: 260px; }
}
.adm-card-main { display: flex; flex-direction: column; gap: 8px; }
.adm-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0;
    line-height: 1.3;
}
.adm-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text);
}
.adm-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.adm-card-meta em { font-style: normal; color: var(--text-muted); font-size: 12px; }

.adm-card-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--text);
}
.adm-contact-line { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-contact-line a { color: var(--text-strong); text-decoration: none; }
.adm-contact-line a:hover { color: var(--primary); text-decoration: underline; }

.adm-reason-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 11px;
    color: #991b1b;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-self: flex-start;
}
.adm-card-ghost .adm-reason-badge {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}
.adm-call-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    font-size: 12px;
    color: #3730a3;
    align-self: flex-start;
    max-width: 100%;
}

.adm-card-payment {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: var(--bg-page);
    border-radius: 10px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}
@media (min-width: 1200px) {
    .adm-card-payment {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}

.adm-utr-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.adm-utr-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.adm-utr-value {
    font-family: ui-monospace, monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-strong);
    word-break: break-all;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.adm-utr-empty .adm-utr-value { color: var(--text-muted); font-style: italic; font-weight: 500; }

.adm-view-screenshot-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(99, 102, 241, .25);
}
.adm-view-screenshot-btn:hover { background: #4f46e5; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99, 102, 241, .35); }
.adm-view-screenshot-btn i { font-size: 13px; }
.adm-view-screenshot-btn.adm-noscreenshot { background: #e2e8f0; color: var(--text-muted); cursor: default; box-shadow: none; }
.adm-view-screenshot-btn.adm-noscreenshot:hover { background: #e2e8f0; transform: none; box-shadow: none; }

.adm-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-page);
    border-top: 1px solid var(--border);
}
.adm-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    font-family: inherit;
    white-space: nowrap;
}
.adm-btn i { font-size: 11px; }
.adm-btn:hover { transform: translateY(-1px); }
.adm-btn:active { transform: translateY(0); }

.adm-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 6px rgba(99, 102, 241, .25); }
.adm-btn-primary:hover { background: #4f46e5; color: #fff; }
.adm-btn-success { background: #10b981; color: #fff; box-shadow: 0 2px 6px rgba(16, 185, 129, .25); }
.adm-btn-success:hover { background: #059669; color: #fff; }
.adm-btn-danger { background: #ef4444; color: #fff; box-shadow: 0 2px 6px rgba(239, 68, 68, .25); }
.adm-btn-danger:hover { background: #dc2626; color: #fff; }
.adm-btn-violet { background: #8b5cf6; color: #fff; box-shadow: 0 2px 6px rgba(139, 92, 246, .25); }
.adm-btn-violet:hover { background: #7c3aed; color: #fff; }
.adm-btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.adm-btn-ghost:hover { background: var(--bg-hover); color: var(--text-strong); }
.adm-btn-disabled { background: #f1f5f9; color: var(--text-muted); cursor: not-allowed; opacity: .7; }

.adm-modal-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 12px;
    line-height: 1.5;
}

.adm-reason-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}
.adm-reason-btn {
    padding: 8px 14px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    text-align: left;
}
.adm-reason-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, .04);
}
.adm-reason-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.adm-empty-state { text-align: center; padding: 48px 24px; }
.adm-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.adm-empty-state h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text-strong);
}
.adm-empty-state p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.adm-go-top {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: 2px solid #0f172a;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .4);
    cursor: pointer;
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .25s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 0;
    line-height: 1;
}
.adm-go-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.adm-go-top:hover {
    transform: translateY(-3px);
    background: #4f46e5;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .55);
}
.adm-go-top i { font-size: 18px; color: #fff; }

/* Admin mobile tweaks */
@media (max-width: 640px) {
    .adm-card-head { padding: 8px 10px; }
    .adm-card-appno { font-size: 12px; }
    .adm-card-body { padding: 10px; }
    .adm-card-name { font-size: 14px; }
    .adm-card-meta { font-size: 12px; gap: 8px; }
    .adm-card-contacts { font-size: 12px; }
    .adm-card-actions { padding: 8px 10px; gap: 4px; }
    .adm-btn { font-size: 10px; padding: 5px 10px; }
    .adm-btn i { font-size: 10px; }
    .adm-view-screenshot-btn { font-size: 11px; padding: 6px 12px; }
    .adm-go-top { right: 12px; bottom: 80px; width: 44px; height: 44px; font-size: 16px; }
    .adm-go-top i { font-size: 16px; }
    .adm-tab { font-size: 11px; padding: 5px 10px; }
    .adm-bulk-bar { gap: 8px; padding: 8px 10px; }
    .adm-bulk-actions { margin-left: 0; width: 100%; }
    .adm-bulk-actions .adm-btn { font-size: 10px; padding: 5px 10px; }
    .adm-export-btn { font-size: 11px; padding: 6px 12px; }
}

/* ============================================================
   BATCH C — Final Admission Page (approve.php)
   ============================================================ */

.adm-approve-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .05), rgba(139, 92, 246, .05));
    border: 1px solid rgba(99, 102, 241, .2);
    border-radius: 12px;
    margin-bottom: 16px;
}
.adm-approve-summary-main { flex: 1; min-width: 200px; }
.adm-approve-summary-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 6px 0;
}
.adm-approve-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
}
.adm-approve-summary-meta em {
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
}
.adm-approve-summary-side {
    text-align: right;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}
.adm-approve-summary-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}
.adm-approve-summary-value {
    font-size: 13px;
    color: var(--text-strong);
    font-weight: 600;
    margin-top: 2px;
}
@media (max-width: 640px) {
    .adm-approve-summary-side {
        text-align: left;
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 12px 0 0 0;
        width: 100%;
    }
}

.adm-approve-form { display: flex; flex-direction: column; gap: 16px; }
.adm-approve-form .adm-fields-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.adm-approve-form .adm-fields-3col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.adm-approve-form .form-field input,
.adm-approve-form .form-field select,
.adm-approve-form .form-field textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    background: #fff;
    color: var(--text);
    box-sizing: border-box;
    font-family: inherit;
}
.adm-approve-form .form-field input:focus,
.adm-approve-form .form-field select:focus,
.adm-approve-form .form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}
.adm-step-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-left: auto;
}

.adm-roll-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.adm-roll-row .form-field { flex: 1 1 200px; min-width: 140px; }
.adm-roll-actions { flex-shrink: 0; }
.adm-roll-status {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.adm-roll-status.adm-roll-ok {
    background: rgba(16, 185, 129, .08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, .3);
}
.adm-roll-status.adm-roll-error {
    background: rgba(239, 68, 68, .08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, .3);
}

.adm-guardian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.adm-guardian-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
}
.adm-guardian-card:hover { border-color: var(--primary); }
.adm-guardian-card-noemail {
    opacity: .65;
    background: var(--bg-page);
    cursor: not-allowed;
}
.adm-guardian-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.adm-guardian-checkbox:disabled { cursor: not-allowed; }
.adm-guardian-card-body { flex: 1; min-width: 0; }
.adm-guardian-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.adm-guardian-rel {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: .04em;
}
.adm-guardian-portal-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(16, 185, 129, .1);
    color: #059669;
    border-radius: 999px;
}
.adm-guardian-portal-tag.adm-tag-warn {
    background: rgba(245, 158, 11, .1);
    color: #d97706;
}
.adm-guardian-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 4px;
}
.adm-guardian-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: var(--text-muted);
}
.adm-guardian-card-hint {
    margin-top: 6px;
    font-size: 11px;
    color: var(--warning);
}

.adm-warning-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    background: rgba(245, 158, 11, .08);
    border: 1px solid rgba(245, 158, 11, .35);
    border-radius: 8px;
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}
.adm-warning-banner i { color: #f59e0b; font-size: 18px; margin-top: 1px; flex-shrink: 0; }

.adm-empty-inline {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-page);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.adm-fee-preview {
    margin-top: 14px;
    padding: 16px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.adm-fee-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.adm-fee-preview-head h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0;
}
.adm-fee-preview-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--success);
}
.adm-fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.adm-fee-table th {
    text-align: left;
    padding: 6px 8px;
    background: rgba(99, 102, 241, .04);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid var(--border);
}
.adm-fee-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(226, 232, 240, .5);
}
.adm-fee-table tr:last-child td { border-bottom: none; }
.adm-fee-amount-col {
    text-align: right;
    font-family: ui-monospace, monospace;
    font-weight: 600;
    color: var(--text-strong);
    width: 100px;
}
.adm-fee-input {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    width: 100px;
    color: var(--text-strong);
    box-sizing: border-box;
}
.adm-fee-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.adm-approve-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}
.adm-approve-actions .btn-lg {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
}

.adm-confirm-summary {
    background: var(--bg-page);
    border-radius: 10px;
    padding: 16px;
    margin: 16px 0;
}
.adm-confirm-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(226, 232, 240, .6);
    font-size: 13px;
}
.adm-confirm-row:last-child { border-bottom: none; }
.adm-confirm-label {
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}
.adm-confirm-value {
    color: var(--text-strong);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}
.adm-confirm-highlight {
    color: var(--success);
    font-size: 15px;
    font-weight: 800;
}

.adm-progress-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.adm-progress-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .3);
    animation: admProgressIn .3s ease-out;
}
@keyframes admProgressIn {
    from { transform: scale(.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.adm-progress-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border: 4px solid rgba(99, 102, 241, .2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: admSpin 1s linear infinite;
}
@keyframes admSpin {
    to { transform: rotate(360deg); }
}
.adm-progress-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 6px 0;
}
.adm-progress-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    min-height: 18px;
}
.adm-progress-bar-wrap {
    height: 8px;
    background: var(--bg-page);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}
.adm-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    border-radius: 999px;
    transition: width .3s ease;
    box-shadow: 0 0 12px rgba(99, 102, 241, .5);
}
.adm-progress-percent {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}
.adm-progress-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

@media (max-width: 640px) {
    .adm-approve-summary { padding: 12px 14px; }
    .adm-approve-summary-name { font-size: 16px; }
    .adm-guardian-grid { grid-template-columns: 1fr; }
    .adm-progress-card { padding: 24px 20px; }
    .adm-progress-title { font-size: 16px; }
    .adm-approve-actions { flex-direction: column-reverse; }
    .adm-approve-actions .btn { width: 100%; justify-content: center; }
    .adm-fee-amount-col { width: 90px; }
    .adm-fee-input { width: 80px; }
    .adm-parent-block { padding: 12px; }
}

/* ============================================================
   BATCH C.1 — Approve page additions (sibling search, email check)
   ============================================================ */

.adm-sibling-search { margin-bottom: 12px; }
.adm-sibling-search-input {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}
.adm-sibling-search-input i { color: var(--text-muted); font-size: 13px; }
.adm-sibling-search-input input {
    flex: 1; border: none; outline: none;
    font-size: 13px; background: transparent;
    font-family: inherit; color: var(--text);
}
.adm-sibling-results { margin-top: 12px; }
.adm-sibling-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; margin-bottom: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all .15s;
}
.adm-sibling-card:hover { border-color: var(--primary); }
.adm-sibling-card-info {
    flex: 1; display: flex; flex-direction: column;
    gap: 2px; font-size: 12px; color: var(--text-muted);
}
.adm-sibling-card-info strong { font-size: 13px; color: var(--text-strong); }

.adm-linked-sibling {
    padding: 12px; margin-top: 12px;
    background: rgba(16, 185, 129, .08);
    border: 1px solid rgba(16, 185, 129, .3);
    border-radius: 10px;
}
.adm-linked-sibling-inner {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: #065f46;
}
.adm-linked-sibling-inner i { font-size: 18px; }
.adm-unlink-btn {
    margin-left: 8px; padding: 3px 10px;
    background: transparent; color: #dc2626;
    border: 1px solid currentColor; border-radius: 4px;
    font-size: 11px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.adm-unlink-btn:hover { background: rgba(239, 68, 68, .08); }

.adm-parent-block {
    padding: 16px; margin-bottom: 14px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.adm-parent-block-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.adm-parent-block-head h3 {
    margin: 0; font-size: 14px; font-weight: 700; color: var(--text-strong);
}
.adm-parent-portal-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--text);
    cursor: pointer; user-select: none;
}
.adm-parent-portal-toggle input {
    accent-color: var(--primary); width: 16px; height: 16px;
}

.adm-email-status { margin-top: 4px; }
.adm-email-siblings {
    margin-top: 6px; padding: 10px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
}
.adm-email-siblings-head {
    font-size: 12px; font-weight: 700; color: #92400e; margin-bottom: 8px;
}
.adm-email-sibling-item {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 6px 0; font-size: 12px; color: #78350f;
    border-top: 1px dashed rgba(146, 64, 14, .2);
}
.adm-email-sibling-item:first-child {
    border-top: none; padding-top: 0;
}
.adm-link-sibling-btn {
    margin-left: auto; padding: 4px 10px;
    background: var(--primary); color: #fff;
    border: none; border-radius: 4px;
    font-size: 11px; font-weight: 700;
    cursor: pointer; font-family: inherit;
}
.adm-link-sibling-btn:hover { background: #4f46e5; }