/* ============================================================
   admin.css — TKD System Admin Panel
   نمط مستوحى من VDP Admin Dashboard
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Tajawal', 'DM Sans', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    direction: rtl;
}

/* ── Admin Layout ── */
.admin-body  { display: flex; min-height: 100vh; flex-direction: row; }
.admin-main  { flex: 1; min-width: 0; overflow-x: hidden; }
.admin-content { padding: 0 20px 30px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.admin-sidebar {
    width: 230px;
    background: #1a2436;
    color: #b0bac9;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-logo-icon {
    width: 34px;
    height: 34px;
    background: #5e4cd8;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-nav { padding: 12px 0; flex: 1; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: #b0bac9;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
    border-right: 3px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}

.sidebar-nav a.active {
    background: rgba(94,76,216,.15);
    color: #fff;
    border-right-color: #5e4cd8;
}

.sidebar-nav a i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

.sidebar-nav hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,.08);
    margin: 8px 20px;
}

.sidebar-nav .nav-logout { color: #fc8181; }
.sidebar-nav .nav-logout:hover {
    background: rgba(252,129,129,.1);
    color: #fc8181;
    border-right-color: #fc8181;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.admin-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar h2 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-topbar h2 i { color: #5e4cd8; }

.admin-menu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #64748b;
    padding: 4px 6px;
    border-radius: 6px;
    display: none;
}

.admin-menu-toggle:hover { background: #f1f5f9; }

.btn-logout {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all .2s;
}

.btn-logout:hover {
    border-color: #fecaca;
    color: #dc2626;
    background: #fef2f2;
}

/* ============================================================
   STATS CARDS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 14px;
    transition: box-shadow .2s;
}

.stat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.07); }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.4px;
    line-height: 1;
}

.stat-info p {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 3px;
}

/* ============================================================
   CARDS
   ============================================================ */
.admin-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i { color: #5e4cd8; }

/* ============================================================
   NAV CARDS GRID (بطاقات التنقل)
   ============================================================ */
.nav-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.nav-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all .2s;
}

.nav-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    border-color: #c7d2fe;
    transform: translateY(-2px);
}

.nav-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.nav-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.nav-card-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.nav-card-bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}

.nav-card-fill {
    height: 100%;
    border-radius: 2px;
}

.nav-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-card-count {
    font-size: 12px;
    color: #94a3b8;
}

.nav-card-arrow {
    font-size: 13px;
    color: #c7d2fe;
    transition: color .18s;
}

.nav-card:hover .nav-card-arrow { color: #5e4cd8; }

/* ── Icon color variants ── */
.ni-indigo  { background: #eef2ff; color: #4338ca; }
.ni-cyan    { background: #ecfeff; color: #0e7490; }
.ni-green   { background: #f0fdf4; color: #15803d; }
.ni-red     { background: #fff1f2; color: #be123c; }
.ni-amber   { background: #fffbeb; color: #b45309; }
.ni-violet  { background: #f5f3ff; color: #6d28d9; }

/* ── Stat card bar colors ── */
.nf-indigo  { background: #5e4cd8; width: 72%; }
.nf-cyan    { background: #0891b2; width: 58%; }
.nf-green   { background: #16a34a; width: 85%; }
.nf-red     { background: #be123c; width: 45%; }
.nf-amber   { background: #d97706; width: 63%; }
.nf-violet  { background: #7c3aed; width: 78%; }

/* ── Stat icon bg colors ── */
.si-indigo { background: #5e4cd8; }
.si-green  { background: #22c55e; }
.si-amber  { background: #f59e0b; }
.si-pink   { background: #ec4899; }
.si-cyan   { background: #06b6d4; }
.si-red    { background: #ef4444; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    text-align: right;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: .04em;
    padding: 0 0 10px;
    text-transform: uppercase;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table td {
    padding: 11px 0;
    border-bottom: 1px solid #f8fafc;
    color: #0f172a;
    vertical-align: middle;
}

.admin-table tr:hover td { background: #fafbfe; }

/* ============================================================
   DATA TABLE — تصميم جديد عام (badges + أزرار ملونة)
   يُستخدم في: الجمعيات، اللاعبين، الشواهد... إلخ
   ============================================================ */

/* ── شريط الإحصائيات (badges) فوق الجدول ── */
.stats-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.badge-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.badge-pill i { color: #5e4cd8; font-size: 13px; }

/* ── شريط الإجراءات (عنوان + أزرار) ── */
.table-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* ── الجدول نفسه ── */
.data-table-wrap {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #1a2436;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 13px 12px;
    text-align: center;
    white-space: nowrap;
}

.data-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #0f172a;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbfe; }

.data-table .cell-photo img,
.data-table .cell-photo .no-photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 2px solid #eef2ff;
}

.data-table .cell-photo .no-photo {
    background: #eef2ff;
    color: #5e4cd8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.data-table .cell-name { font-weight: 700; }

/* ── أزرار الإجراءات الصغيرة الملونة ── */
.row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.act-btn {
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all .18s;
    white-space: nowrap;
}

.act-view   { background: #2563eb; color: #fff; }
.act-view:hover   { background: #1d4ed8; }

.act-edit   { background: #16a34a; color: #fff; }
.act-edit:hover   { background: #15803d; }

.act-delete { background: #dc2626; color: #fff; }
.act-delete:hover { background: #b91c1c; }

.act-info   { background: #f59e0b; color: #fff; }
.act-info:hover   { background: #d97706; }

/* زر تسجيل/إضافة جديد (أخضر بارز) */
.btn-add-new {
    background: #16a34a;
    color: #fff;
    padding: 11px 22px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(22,163,74,.25);
}

.btn-add-new:hover { background: #15803d; transform: translateY(-1px); }

/* ── checkbox عمود التحديد ── */
.data-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #5e4cd8;
    cursor: pointer;
}

/* ── زر حذف المحدد (أحمر بارز) ── */
.btn-delete-selected {
    background: #ef4444;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(239,68,68,.25);
}

.btn-delete-selected:hover { background: #dc2626; transform: translateY(-1px); }

/* ── حالة عدم وجود بيانات ── */
.no-data-row {
    text-align: center;
    color: #94a3b8;
    padding: 40px 20px;
    font-size: 14px;
}

.no-data-row i { font-size: 32px; display: block; margin-bottom: 10px; color: #cbd5e1; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .data-table-wrap { overflow-x: auto; }
    .data-table { min-width: 700px; }
    .table-actions-bar { flex-direction: column; align-items: stretch; }
    .stats-badges { justify-content: center; }
}


.btn-primary {
    background: #5e4cd8;
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s;
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 2px 8px rgba(94,76,216,.25);
    text-decoration: none;
}

.btn-primary:hover {
    background: #4939b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(94,76,216,.35);
}

.btn-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 2px 8px rgba(239,68,68,.25);
    transition: all .2s;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-danger:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-sm { padding: 8px 14px; font-size: 12px; }

/* ── متغيرات لونية موحّدة لزر btn-primary ── */
.btn-green {
    background: #16a34a !important;
    box-shadow: 0 2px 8px rgba(22,163,74,.25) !important;
}
.btn-green:hover { background: #15803d !important; }

.btn-blue {
    background: #2563eb !important;
    box-shadow: 0 2px 8px rgba(37,99,235,.25) !important;
}
.btn-blue:hover { background: #1d4ed8 !important; }

.btn-red {
    background: #dc2626 !important;
    box-shadow: 0 2px 8px rgba(220,38,38,.25) !important;
}
.btn-red:hover { background: #b91c1c !important; }

.btn-light-green {
    background: #4ade80 !important;
    box-shadow: 0 2px 8px rgba(74,222,128,.25) !important;
}
.btn-light-green:hover { background: #22c55e !important; }

.btn-full { width: 100%; }

/* ============================================================
   STAT-FILTER ROW — أزرار إحصائية ملوّنة قابلة للضغط
   ============================================================ */
.stat-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.stat-filter-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    border-radius: 5px;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    white-space: nowrap;
}

.stat-filter-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.sf-cyan   { background: #06b6d4; box-shadow: 0 2px 8px rgba(6,182,212,.3); cursor: default; }
.sf-green  { background: #16a34a; box-shadow: 0 2px 8px rgba(22,163,74,.3); }
.sf-red    { background: #dc2626; box-shadow: 0 2px 8px rgba(220,38,38,.3); }
.sf-purple { background: #7c3aed; box-shadow: 0 2px 8px rgba(124,58,237,.3); }
.sf-blue   { background: #2563eb; box-shadow: 0 2px 8px rgba(37,99,235,.3); }

.sf-cyan:hover   { background: #06b6d4; transform: none; }

.stat-filter-btn.sf-active {
    outline: 3px solid rgba(255,255,255,.5);
    outline-offset: -3px;
}

@media (max-width: 768px) {
    .stat-filter-row { flex-direction: column; }
    .stat-filter-btn { width: 100%; }
}

/* ============================================================
   CERT STATS ROW — شريط badges علوي (الكل، انتظار، مقبول...)
   ============================================================ */
.cert-stats-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.cert-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

.cert-stat-pill i { color: #5e4cd8; font-size: 12px; }

/* ── أزرار فلتر pill (الكل/انتظار/مقبول/مرفوض) ── */
.cert-filter-pill {
    padding: 9px 18px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    transition: all .2s;
    white-space: nowrap;
}

.cert-filter-pill:hover { border-color: #c7d2fe; }

.cert-filter-pill.cert-filter-active {
    border-color: #5e4cd8;
    color: #5e4cd8;
    box-shadow: 0 0 0 3px rgba(94,76,216,.12);
}

@media (max-width: 768px) {
    .cert-stats-row { justify-content: center; }
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.alert-info    { background: #eef2ff; border: 1px solid #c7d2fe; color: #4338ca; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Tajawal', sans-serif;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #5e4cd8;
    box-shadow: 0 0 0 3px rgba(94,76,216,.1);
}

/* ============================================================
   MOBILE
   ============================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
}
.sidebar-overlay.active { display: block; }

@media (max-width: 900px) {
    .stats-grid      { grid-template-columns: repeat(2, 1fr); }
    .nav-cards-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .admin-menu-toggle { display: flex; align-items: center; }

    .admin-sidebar {
        position: fixed;
        top: 0;
        right: -240px;
        width: 230px;
        height: 100vh;
        z-index: 100;
        transition: right .25s ease;
    }

    .admin-sidebar.open { right: 0; }
    .admin-main  { width: 100%; }
    .admin-content { padding: 0 10px 24px; }
    .admin-card  { padding: 14px 12px; }
    .stats-grid  { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .nav-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ── Icon fix — تأكيد ظهور الأيقونات ── */
.stat-icon i,
.nav-card-icon i,
.sidebar-logo-icon i {
    font-size: inherit;
    color: inherit;
    display: inline-block;
    line-height: 1;
}

.stat-icon {
    font-size: 22px !important;
    color: #fff !important;
}

.nav-card-icon {
    font-size: 20px;
}

/* ── Desktop: تأكيد ظهور السيدبار ── */
@media (min-width: 769px) {
    .admin-sidebar {
        display: flex !important;
        position: sticky;
        top: 0;
    }
    .sidebar-overlay { display: none !important; }
    .admin-menu-toggle { display: none !important; }
}

/* ── 7 stats cards ── */
.stats-grid-7 {
    grid-template-columns: repeat(4, 1fr);
}

/* البطاقات 5,6,7 في صف ثانٍ */
@media (min-width: 900px) {
    .stats-grid-7 .stat-card:nth-child(5),
    .stats-grid-7 .stat-card:nth-child(6),
    .stats-grid-7 .stat-card:nth-child(7) {
        /* يكملون الصف الثاني تلقائياً — 3 بطاقات في 4 أعمدة */
    }
    /* الأخيرة تأخذ عمودين لتملأ الصف */
    .stats-grid-7 .stat-card:last-child {
        grid-column: span 2;
    }
}

/* ألوان إضافية */
.si-violet { background: #7c3aed; }

/* ── 8 stats cards — صفان متساويان ── */
.stats-grid-8 {
    grid-template-columns: repeat(4, 1fr);
}

/* ألغِ امتداد span 2 من النسخة السابقة */
@media (min-width: 900px) {
    .stats-grid-8 .stat-card:last-child {
        grid-column: span 1;
    }
}

.si-teal { background: #0d9488; }

/* ============================================================
   MULTI-STEP WIZARD — نموذج متعدد الخطوات (تسجيل/تعديل)
   مستوحى من تصميم register.php الأصلي مع ألوان VDP
   ============================================================ */

.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    position: relative;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    position: relative;
    z-index: 2;
    gap: 6px;
}

.wizard-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    transition: all .3s ease;
}

.wizard-step.active .wizard-circle {
    background: #5e4cd8;
    color: #fff;
}

.wizard-step.done .wizard-circle {
    background: #16a34a;
    color: #fff;
}

.wizard-step span.wizard-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    white-space: nowrap;
}

.wizard-step.active span.wizard-label { color: #4338ca; }
.wizard-step.done span.wizard-label   { color: #15803d; }

.wizard-line {
    position: absolute;
    top: 19px;
    right: 12.5%;
    width: 75%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 2px;
}

.wizard-line-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 3px;
    background: #5e4cd8;
    transition: width .3s ease;
    border-radius: 2px;
    width: 0%;
}

/* ── خطوة المحتوى ── */
.wizard-content { display: none; }
.wizard-content.active { display: block; }

.wizard-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.wizard-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}

.wizard-error.hidden { display: none; }

/* ── أزرار التنقل ── */
.wizard-nav {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 20px;
}

.wizard-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
}

.wizard-btn-next {
    background: #5e4cd8;
    color: #fff;
    margin-right: auto;
}
.wizard-btn-next:hover { background: #4939b9; }

.wizard-btn-prev {
    background: #f1f5f9;
    color: #64748b;
}
.wizard-btn-prev:hover { background: #e2e8f0; }

.wizard-btn-submit {
    background: #16a34a;
    color: #fff;
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 15px;
}
.wizard-btn-submit:hover { background: #15803d; }

.wizard-loading {
    font-size: 13px;
    color: #5e4cd8;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}
.wizard-loading.hidden { display: none; }

/* ── radio group لنوع التسجيل ── */
.wizard-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wizard-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    transition: all .2s;
}

.wizard-radio-label:has(input:checked) {
    border-color: #5e4cd8;
    background: #eef2ff;
    color: #4338ca;
}

.wizard-radio-label input { accent-color: #5e4cd8; }

/* ── رفع الملفات ── */
.wizard-photo-preview {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px dashed #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 10px;
    background: #f8fafc;
}

.wizard-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wizard-file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.wizard-file-row input[type="file"] { flex: 1; font-size: 12px; }

.wizard-file-btn {
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    white-space: nowrap;
}

.wizard-file-add    { background: #eef2ff; color: #4338ca; }
.wizard-file-add:hover    { background: #e0e7ff; }
.wizard-file-remove { background: #fef2f2; color: #dc2626; }
.wizard-file-remove:hover { background: #fee2e2; }

@media (max-width: 768px) {
    .wizard-step span.wizard-label { display: none; }
    .wizard-nav { flex-direction: column-reverse; }
    .wizard-btn { width: 100%; justify-content: center; }
}
