/* ================================================================
   نظام إدارة أكاديميات كرة القدم - التصميم الرئيسي
   تصميم عصري RTL متجاوب - أخضر رياضي
   ================================================================ */

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #dcfce7;
  --primary-grad: linear-gradient(135deg, #22c55e, #15803d);
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --info: #0284c7;
  --info-light: #e0f2fe;
  --muted: #64748b;
  --muted-light: #f1f5f9;
  --ink: #0f172a;
  --ink-soft: #334155;
  --bg: #f1f5f9;
  --card: #ffffff;
  --line: #e2e8f0;
  --sidebar-bg: #0f172a;
  --sidebar-ink: #cbd5e1;
  --sidebar-active: #16a34a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 14px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .14);
  --font: "Segoe UI", "Tahoma", "Arial", "Helvetica Neue", sans-serif;
  --star: #f59e0b;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-small { font-size: 13px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s ease; white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-success { background: var(--primary); color: #fff; }
.btn-success:hover { background: var(--primary-dark); color: #fff; }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink-soft); }
.btn-light:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 26px; font-size: 16px; border-radius: 10px; }
.btn-icon { padding: 8px; border-radius: 8px; background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.btn-icon:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- التنبيهات ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: var(--primary-light); color: #166534; border-color: #bbf7d0; }
.alert-error, .alert-danger { background: var(--danger-light); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-light); color: #92400e; border-color: #fde68a; }
.alert-info { background: var(--info-light); color: #075985; border-color: #bae6fd; }

/* ---------- البطاقات ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-header h3 { font-size: 16px; }
.card-body { padding: 20px; }
.card-body.p-0 { padding: 0; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--line); }

/* بطاقات الإحصائيات */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon.green { background: var(--primary-grad); }
.stat-icon.blue { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.stat-icon.orange { background: linear-gradient(135deg, #fbbf24, #d97706); }
.stat-icon.red { background: linear-gradient(135deg, #f87171, #dc2626); }
.stat-icon.purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.stat-icon.teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.stat-value { font-size: 24px; font-weight: 800; }
.stat-label { color: var(--muted); font-size: 13px; }

/* ---------- الجداول ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: right; padding: 12px 14px; background: var(--muted-light);
  color: var(--ink-soft); font-size: 12.5px; text-transform: none; letter-spacing: 0;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: #f8fafc; }
.table .table-actions { display: flex; gap: 6px; white-space: nowrap; }
.table .table-actions a, .table .table-actions button { white-space: nowrap; }

/* الشارات */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-success { background: var(--primary-light); color: #166534; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-info { background: var(--info-light); color: #075985; }
.badge-muted { background: #e2e8f0; color: var(--muted); }
.badge-default { background: #f1f5f9; color: var(--ink-soft); }

/* ---------- النماذج ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.form-group .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; background: #fff; color: var(--ink); transition: border .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.textarea { min-height: 90px; resize: vertical; }
.checkbox, .radio { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.checkbox input, .radio input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }

/* تقييم النجوم */
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; direction: ltr; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; padding: 2px; }
.star-input label svg { width: 26px; height: 26px; color: #cbd5e1; transition: color .15s; }
.star-input input:checked ~ label svg { color: var(--star); }
.star-input label:hover svg, .star-input label:hover ~ label svg { color: var(--star); }
.stars { display: inline-flex; gap: 2px; direction: ltr; }
.stars svg { width: 16px; height: 16px; color: #cbd5e1; }
.stars svg.filled { color: var(--star); }

/* ---------- الأزرار المنبثقة (مودال) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 16px; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-start; }

/* ---------- التبويبات ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- القوائم المنسدلة ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 200px; z-index: 50;
  display: none; padding: 6px;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px;
  color: var(--ink-soft); font-size: 14px; text-decoration: none; width: 100%; text-align: right;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--muted-light); color: var(--ink); }
.dropdown-menu .danger-item { color: var(--danger); }
.dropdown-menu .danger-item:hover { background: var(--danger-light); }

/* ---------- تخطيط لوحة التحكم ---------- */
.dash { background: var(--bg); }
.dash-wrap { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; background: var(--sidebar-bg); color: var(--sidebar-ink);
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; flex-direction: column; transition: transform .25s ease; overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: #fff; font-weight: 800; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand .brand-badge { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-grad); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.sidebar-brand .brand-badge svg { width: 18px; height: 18px; }
.sidebar-academy { padding: 12px 20px; font-size: 12px; color: #94a3b8; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-academy strong { display: block; color: #e2e8f0; font-size: 13px; }
.sidebar-nav { padding: 12px 10px; flex: 1; }
.nav-section { font-size: 11px; color: #64748b; padding: 12px 12px 6px; font-weight: 700; letter-spacing: .3px; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--sidebar-ink); font-size: 14px; text-decoration: none; margin-bottom: 2px; transition: all .15s;
}
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link.active { background: var(--primary); color: #fff; }
.sidebar-footer { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #64748b; }

.dash-main { flex: 1; margin-right: 260px; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 40;
}
.topbar-title { font-size: 16px; font-weight: 800; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-user .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.topbar-user .name { font-size: 13.5px; font-weight: 700; }
.topbar-user .role { font-size: 12px; color: var(--muted); }
.notif-bell { position: relative; }
.notif-bell .count { position: absolute; top: -6px; left: -6px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }

.dash-content { padding: 24px; flex: 1; }
.dash-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.dash-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }

/* شريط الأدوات */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.search-box { position: relative; }
.search-box svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search-box .input { padding-right: 36px; width: 240px; }

/* الرسوم البيانية (CSS) */
.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 50px; align-items: center; gap: 12px; font-size: 13px; }
.bar-row .bar-label { color: var(--ink-soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { background: var(--muted-light); border-radius: 999px; height: 22px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--primary-grad); min-width: 6px; transition: width .4s ease; }
.bar-row .bar-value { font-weight: 700; text-align: left; }

/* بطاقات القائمة السريعة */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-link { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; color: var(--ink-soft); transition: all .2s; }
.quick-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-link svg { width: 26px; height: 26px; margin-bottom: 8px; color: var(--primary); }
.quick-link .q-title { font-size: 13.5px; font-weight: 700; display: block; }

/* ملف اللاعب */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-photo { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; background: var(--muted-light); display: flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; }
.profile-photo svg { width: 40px; height: 40px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.info-item { background: var(--muted-light); border-radius: 10px; padding: 12px 14px; }
.info-item .k { font-size: 12px; color: var(--muted); }
.info-item .v { font-weight: 700; font-size: 14.5px; margin-top: 2px; }

/* ---------- الموقع العام ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); }
.site-logo .brand-badge { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-grad); color: #fff; display: flex; align-items: center; justify-content: center; }
.site-logo .brand-badge svg { width: 19px; height: 19px; }
.site-menu { display: flex; gap: 4px; align-items: center; }
.site-menu a { padding: 8px 14px; border-radius: 8px; color: var(--ink-soft); font-size: 14.5px; font-weight: 600; }
.site-menu a:hover { color: var(--primary); background: var(--primary-light); }
.site-cta { display: flex; gap: 10px; }
.menu-toggle-site { display: none; }

.hero { background: linear-gradient(140deg, #0f172a 0%, #14532d 60%, #166534 100%); color: #fff; padding: 90px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(34,197,94,.35), transparent 65%); top: -160px; left: -120px; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(34,197,94,.22), transparent 65%); bottom: -140px; right: -100px; }
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 20px; }
.hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.hero h1 span { color: #4ade80; }
.hero p { font-size: 17px; color: #d1d5db; margin-bottom: 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat .num { font-size: 28px; font-weight: 800; color: #4ade80; }
.hero-stat .txt { font-size: 13px; color: #94a3b8; }

.section { padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--primary); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.section-head h2 { font-size: 30px; font-weight: 800; margin: 8px 0 10px; }
.section-head p { color: var(--muted); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: all .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.price-card .featured-tag { position: absolute; top: -12px; right: 30px; background: var(--primary); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.price-card h3 { font-size: 17px; }
.price-card .price { font-size: 38px; font-weight: 800; margin: 14px 0 2px; color: var(--ink); }
.price-card .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; margin: 20px 0; flex: 1; }
.price-card ul li { padding: 7px 0; color: var(--ink-soft); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.price-card ul li svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

.cta-band { background: linear-gradient(135deg, #14532d, #15803d); color: #fff; padding: 60px 0; }
.cta-band h2 { font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: #bbf7d0; margin-bottom: 24px; }

.site-footer { background: var(--ink); color: #94a3b8; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; padding-bottom: 30px; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 15px; }
.footer-grid a { display: block; color: #94a3b8; padding: 5px 0; font-size: 14px; }
.footer-grid a:hover { color: #4ade80; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; text-align: center; }

/* صفحات الدخول */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, #0f172a, #14532d); padding: 20px; }
.auth-card { background: #fff; border-radius: 18px; padding: 34px; width: 100%; max-width: 430px; box-shadow: var(--shadow-lg); }
.auth-card.center-card { text-align: center; }
.auth-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-bottom: 22px; color: var(--ink); }
.auth-logo .brand-badge { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-grad); color: #fff; display: flex; align-items: center; justify-content: center; }
.auth-logo .brand-badge svg { width: 20px; height: 20px; }
.auth-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-alt { text-align: center; font-size: 13.5px; margin-top: 18px; color: var(--muted); }

/* سجل الإشعارات */
.notif-item { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.notif-item.unread { background: #f0fdf4; border-radius: 10px; padding: 14px 12px; }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex-shrink: 0; }
.notif-item.unread .notif-dot { background: var(--danger); }

/* صفحات المحتوى */
.page-hero { background: linear-gradient(140deg, #0f172a, #14532d); color: #fff; padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: #cbd5e1; max-width: 640px; margin: 0 auto; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-info-item .ci-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item .ci-icon svg { width: 20px; height: 20px; }

/* الصور المصغرة */
.thumb { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: var(--muted-light); }

/* ترقيم الصفحات */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; padding: 0 10px; background: #fff; color: var(--ink-soft); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* شريط تقدم */
.progress { background: var(--muted-light); border-radius: 999px; height: 10px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary-grad); border-radius: 999px; }

/* ---------- التجاوب ---------- */
@media (max-width: 992px) {
  .grid-4, .stat-grid, .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .features-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { transform: translateX(100%); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 55; display: none; }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .dash-main { margin-right: 0; }
  .menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .grid-2, .grid-3, .grid-4, .stat-grid, .quick-grid, .features-grid, .pricing-grid, .footer-grid, .contact-grid, .info-grid, .form-grid { grid-template-columns: 1fr; }
  .dash-content { padding: 16px; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 30px; }
  .section { padding: 50px 0; }
  .topbar { padding: 10px 16px; }
  .topbar-user .name, .topbar-user .role { display: none; }
  .search-box .input { width: 150px; }
  .site-menu { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .site-menu.open { display: flex; }
  .menu-toggle-site { display: flex; }
  .table { min-width: 600px; }
}
