/* =============================================
   Tamkeen Platform - Main Stylesheet
   Design System: Calm Wellness Aesthetic
   ============================================= */

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

/* ── CSS Variables ────────────────────────────── */
:root {
  /* Colors */
  --primary:       #4A90E2;
  --primary-dark:  #2C6FBF;
  --primary-light: #7AB3ED;
  --secondary:     #4CAF50;
  --secondary-dark:#388E3C;
  --accent:        #FF8C69;
  --bg:            #F7F9FC;
  --surface:       #FFFFFF;
  --surface-2:     #EEF2F7;
  --border:        #DDE4EE;
  --text-primary:  #2C3E50;
  --text-secondary:#5D7285;
  --text-muted:    #94A3B8;
  --shadow-sm:     0 1px 3px rgba(44,62,80,.08);
  --shadow:        0 4px 16px rgba(44,62,80,.10);
  --shadow-lg:     0 8px 32px rgba(44,62,80,.14);
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --transition:    all .25s cubic-bezier(.4,0,.2,1);

  /* Status Colors */
  --status-pending:   #F59E0B;
  --status-confirmed: #10B981;
  --status-rejected:  #EF4444;
  --status-completed: #6366F1;
  --status-cancelled: #94A3B8;
}

[data-theme="dark"] {
  --primary:       #5BA3F5;
  --primary-dark:  #4A90E2;
  --bg:            #0F1923;
  --surface:       #1A2535;
  --surface-2:     #243044;
  --border:        #2D3D55;
  --text-primary:  #E8EDF5;
  --text-secondary:#94A3B8;
  --text-muted:    #5D7285;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.3);
  --shadow:        0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.5);
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Tajawal', 'Cairo', 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}

body[dir="ltr"] { font-family: 'Poppins', sans-serif; }
body[dir="rtl"] { font-family: 'Tajawal', 'Cairo', sans-serif; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ───────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--text-primary); }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { color: var(--text-secondary); }

/* ── Layout Utilities ─────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.grid { display: grid; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-end   { text-align: end; }
.w-full { width: 100%; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.section-py { padding: 5rem 0; }
.section-py-sm { padding: 3rem 0; }

/* ── Navbar ───────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(247,249,252,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
[data-theme="dark"] .navbar {
  background: rgba(15,25,35,.92);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
.navbar-brand {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.4rem; font-weight: 800; color: var(--primary);
  text-decoration: none;
}
.navbar-brand .brand-dot { color: var(--secondary); }
.navbar-brand img { height: 38px; }

.nav-links {
  display: flex; align-items: center; gap: .3rem;
  list-style: none;
}
.nav-links a {
  padding: .5rem .9rem; border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 500; color: var(--text-primary);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { background: var(--surface-2); color: var(--primary); }

.nav-actions {
  display: flex; align-items: center; gap: .6rem;
}
.lang-switcher {
  display: flex; gap: .2rem;
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: .25rem;
}
.lang-btn {
  padding: .25rem .6rem; border: none; background: transparent;
  border-radius: 6px; font-size: .8rem; font-weight: 600;
  color: var(--text-secondary); transition: var(--transition);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--surface); color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.theme-toggle {
  width: 38px; height: 38px; border: none;
  background: var(--surface-2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 1rem;
  transition: var(--transition);
}
.theme-toggle:hover { background: var(--surface); color: var(--primary); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .4rem;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: var(--surface); padding: 5rem 2rem 2rem;
  flex-direction: column; gap: 1rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: .9rem 1.2rem; border-radius: var(--radius);
  font-size: 1.05rem; color: var(--text-primary);
  border: 1px solid var(--border);
}
.mobile-nav a:hover { background: var(--surface-2); }

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .75rem 1.6rem;
  border: none; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(74,144,226,.35);
}
.btn-primary:hover {
  background: var(--primary-dark); color: #fff;
  box-shadow: 0 6px 20px rgba(74,144,226,.45);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--secondary); color: #fff;
  box-shadow: 0 4px 14px rgba(76,175,80,.3);
}
.btn-secondary:hover {
  background: var(--secondary-dark); color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary); color: #fff;
}
.btn-ghost {
  background: var(--surface-2); color: var(--text-primary);
}
.btn-ghost:hover { background: var(--border); }
.btn-danger {
  background: #EF4444; color: #fff;
}
.btn-danger:hover { background: #DC2626; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ── Cards ────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--surface-2); }

/* ── Forms ────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; margin-bottom: .4rem;
  font-size: .9rem; font-weight: 600; color: var(--text-primary);
}
.form-label .required { color: #EF4444; margin-inline-start: .2rem; }
.form-label .optional {
  font-size: .78rem; font-weight: 400; color: var(--text-muted);
  margin-inline-start: .3rem;
}
.form-control {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text-primary);
  font-size: .95rem; font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,144,226,.12);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A90E2' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; background-size: 16px; padding-inline-start: 2.5rem; }
[dir="ltr"] select.form-control { background-position: right 12px center; padding-inline-start: 1rem; padding-inline-end: 2.5rem; }

/* ── Alert / Flash ────────────────────────────── */
.alert {
  padding: 1rem 1.25rem; border-radius: var(--radius);
  margin-bottom: 1.25rem; display: flex; align-items: center; gap: .7rem;
  font-size: .92rem; font-weight: 500;
}
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
[data-theme="dark"] .alert-success { background: #064E3B; color: #A7F3D0; border-color: #065F46; }
[data-theme="dark"] .alert-error   { background: #7F1D1D; color: #FECACA; border-color: #991B1B; }

/* ── Badge / Status ───────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .7rem; border-radius: 100px;
  font-size: .78rem; font-weight: 700;
}
.badge-pending   { background: rgba(245,158,11,.15); color: #92400E; }
.badge-confirmed { background: rgba(16,185,129,.15); color: #065F46; }
.badge-rejected  { background: rgba(239,68,68,.15);  color: #991B1B; }
.badge-completed { background: rgba(99,102,241,.15); color: #3730A3; }
.badge-cancelled { background: rgba(148,163,184,.15);color: #475569; }
.badge-active    { background: rgba(16,185,129,.15); color: #065F46; }
.badge-hidden    { background: rgba(148,163,184,.15);color: #475569; }
[data-theme="dark"] .badge-pending   { background: rgba(245,158,11,.2);  color: #FDE68A; }
[data-theme="dark"] .badge-confirmed { background: rgba(16,185,129,.2);  color: #A7F3D0; }
[data-theme="dark"] .badge-rejected  { background: rgba(239,68,68,.2);   color: #FECACA; }

/* ── Section Headers ──────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary);
  background: rgba(74,144,226,.1); padding: .3rem .9rem;
  border-radius: 100px; margin-bottom: .8rem;
}
.section-header h2 { margin-bottom: .6rem; }
.section-header p { color: var(--text-secondary); max-width: 540px; margin: 0 auto; }
.section-divider {
  width: 60px; height: 4px; margin: .8rem auto 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* ── Hero Section ─────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #EBF4FF 0%, #F0FFF4 50%, #F7F9FC 100%);
  padding: 6rem 0 5rem;
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0F2035 0%, #0F1F17 50%, #0F1923 100%);
}
.hero-bg-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: .04;
  background-image: radial-gradient(circle at 20% 50%, var(--primary) 1px, transparent 1px),
                    radial-gradient(circle at 80% 20%, var(--secondary) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px;
}
[data-theme="dark"] .hero-bg-pattern { opacity: .08; }
.hero-blob-1, .hero-blob-2 {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; animation: float 8s ease-in-out infinite;
}
.hero-blob-1 {
  width: 500px; height: 500px; top: -100px; right: -150px;
  background: rgba(74,144,226,.12);
}
.hero-blob-2 {
  width: 400px; height: 400px; bottom: -100px; left: -100px;
  background: rgba(76,175,80,.1); animation-delay: -4s;
}
.hero-content { position: relative; z-index: 1; }
.hero-text { max-width: 640px; }
.hero-text .eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary);
  background: rgba(74,144,226,.1); padding: .4rem 1rem;
  border-radius: 100px; margin-bottom: 1.2rem;
}
.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  margin-bottom: 1.2rem; line-height: 1.2;
}
.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  font-size: 1.1rem; margin-bottom: 2rem; max-width: 520px;
  color: var(--text-secondary); line-height: 1.8;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.hero-stat-value { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.hero-stat-label { font-size: .82rem; color: var(--text-muted); font-weight: 500; }

/* ── Services Grid ────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  text-decoration: none; transition: var(--transition);
  display: block; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; inset-inline-start: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: scaleY(0); transform-origin: top; transition: var(--transition);
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.service-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, rgba(74,144,226,.1), rgba(76,175,80,.1));
}
.service-card h3 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--text-primary); }
.service-card p  { font-size: .9rem; color: var(--text-secondary); line-height: 1.7; }
.service-card .arrow {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .85rem; font-weight: 600; color: var(--primary); margin-top: 1rem;
}

/* ── Video Grid ───────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.video-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-thumbnail {
  position: relative; background: #1A2535;
  aspect-ratio: 16/9; overflow: hidden; cursor: pointer;
}
.video-thumbnail video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: .8; transition: opacity .3s;
}
.video-thumbnail:hover video { opacity: 1; }
.video-play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3); transition: var(--transition);
}
.video-play-btn:hover { background: rgba(0,0,0,.15); }
.video-play-btn svg {
  width: 52px; height: 52px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
  transition: transform .25s;
}
.video-thumbnail:hover .video-play-btn svg { transform: scale(1.1); }
.video-card-body { padding: 1.2rem; }
.video-card-title { font-size: .95rem; font-weight: 600; margin-bottom: .4rem; }
.video-views { font-size: .8rem; color: var(--text-muted); }
.video-duration-badge {
  position: absolute; bottom: 8px; end: 8px;
  background: rgba(0,0,0,.7); color: #fff; font-size: .75rem;
  padding: .2rem .5rem; border-radius: 5px;
}

/* ── Booking Slots ────────────────────────────── */
.slots-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); gap: .6rem;
}
.slot-btn {
  padding: .6rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text-primary); font-size: .88rem; font-weight: 500;
  cursor: pointer; transition: var(--transition); text-align: center;
}
.slot-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(74,144,226,.06); }
.slot-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.slot-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Tables ───────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead { background: var(--surface-2); }
th { padding: .9rem 1rem; text-align: start; font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); white-space: nowrap; }
td { padding: .9rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover { background: var(--surface-2); }
.td-actions { display: flex; gap: .4rem; align-items: center; }

/* ── Pagination ───────────────────────────────── */
.pagination {
  display: flex; gap: .4rem; align-items: center; justify-content: center;
  margin-top: 2rem; flex-wrap: wrap;
}
.page-link {
  padding: .5rem .9rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: .88rem; transition: var(--transition);
}
.page-link:hover, .page-link.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ── Admin Layout ─────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--surface); border-inline-end: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-header {
  padding: 1.5rem; border-bottom: 1px solid var(--border);
}
.admin-logo {
  font-size: 1.3rem; font-weight: 800; color: var(--primary);
}
.admin-logo span { color: var(--secondary); }
.admin-nav { padding: 1rem; flex: 1; }
.admin-nav-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: .92rem; font-weight: 500;
  transition: var(--transition); margin-bottom: .2rem;
  text-decoration: none;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(74,144,226,.1); color: var(--primary);
}
.admin-nav-link .nav-icon { font-size: 1.1rem; }
.admin-nav-link .badge-count {
  margin-inline-start: auto; background: var(--primary); color: #fff;
  font-size: .72rem; padding: .15rem .5rem; border-radius: 100px;
}
.admin-main { flex: 1; overflow-x: hidden; }
.admin-topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.admin-content { padding: 2rem 1.5rem; }

/* ── Stat Cards ───────────────────────────────── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: flex; align-items: center; gap: 1.2rem;
}
.stat-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon.blue  { background: rgba(74,144,226,.12); }
.stat-icon.green { background: rgba(76,175,80,.12); }
.stat-icon.amber { background: rgba(245,158,11,.12); }
.stat-icon.purple{ background: rgba(99,102,241,.12); }
.stat-icon.red   { background: rgba(239,68,68,.12); }
.stat-value { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .82rem; color: var(--text-muted); margin-top: .2rem; }

/* ── Contact Page ─────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem; border-radius: var(--radius);
  background: var(--surface-2); margin-bottom: 1rem;
}
.contact-info-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(74,144,226,.1); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-tabs {
  display: flex; gap: .5rem; margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border); padding-bottom: .5rem;
}
.contact-tab {
  padding: .6rem 1.2rem; border: none; background: transparent;
  color: var(--text-secondary); font-size: .92rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-family: inherit;
}
.contact-tab.active { color: var(--primary); background: rgba(74,144,226,.08); }
.contact-form-panel { display: none; }
.contact-form-panel.active { display: block; }

/* ── Footer ───────────────────────────────────── */
.footer {
  background: var(--text-primary); color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
[data-theme="dark"] .footer { background: #070E16; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: .8rem; }
.footer-brand span { color: var(--secondary); }
.footer-desc { font-size: .88rem; line-height: 1.7; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); transition: var(--transition); font-size: .9rem;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .87rem; color: rgba(255,255,255,.65); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  text-align: center; padding: 1.2rem 0;
  font-size: .83rem; color: rgba(255,255,255,.4);
}

/* ── Animations ───────────────────────────────── */
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-fade-up {
  animation: fadeUp .6s ease both;
}
.animate-fade-up-delay-1 { animation-delay: .1s; }
.animate-fade-up-delay-2 { animation-delay: .2s; }
.animate-fade-up-delay-3 { animation-delay: .3s; }

/* ── Loading Spinner ──────────────────────────── */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .7s linear infinite;
}

/* ── Empty State ──────────────────────────────── */
.empty-state {
  text-align: center; padding: 4rem 1rem;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h3 { margin-bottom: .5rem; color: var(--text-secondary); }
.empty-state p  { color: var(--text-muted); font-size: .9rem; }

/* ── Modal ────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 500px; box-shadow: var(--shadow-lg);
  animation: fadeUp .3s ease;
}
.modal-header { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: .7rem; justify-content: flex-end; }
.modal-close { width: 32px; height: 32px; border: none; background: var(--surface-2); border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }

/* ── Page Header ──────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, rgba(74,144,226,.06), rgba(76,175,80,.04));
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.page-header h1 { font-size: 1.8rem; margin-bottom: .3rem; }
.page-header p  { color: var(--text-secondary); }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .admin-sidebar { width: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 4rem 0 3rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Admin sidebar hidden on mobile — replaced by drawer */
  .admin-sidebar { display: none; }
  .admin-layout { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .table-wrapper { font-size: .82rem; }
  th, td { padding: .7rem .6rem; }
  /* Admin content padding */
  .admin-content { padding: 1rem .75rem; }
  .admin-topbar { padding: .75rem 1rem; }
  /* Cards stack on mobile */
  .card-body { padding: 1rem !important; }
}

@media (max-width: 480px) {
  .btn-lg { padding: .85rem 1.5rem; font-size: .95rem; }
  .hero-text h1 { font-size: 1.8rem; }
  .stat-cards { grid-template-columns: 1fr; }
  /* CMS grid single column */
  .admin-content [style*="grid-template-columns:1fr 1fr 1fr"],
  .admin-content [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Settings cards stack */
  .admin-content [style*="grid-template-columns:repeat(auto-fill,minmax(380px"],
  .admin-content [style*="grid-template-columns: repeat(auto-fill, minmax(380px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Admin hamburger button ───────────────────── */
.admin-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.admin-hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}
@media (max-width: 768px) {
  .admin-hamburger { display: flex; }
}


/* ── RTL Fixes ────────────────────────────────── */
[dir="rtl"] .admin-sidebar { border-inline-end: 1px solid var(--border); border-inline-start: none; }
[dir="rtl"] .footer-grid { direction: rtl; }

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Print ────────────────────────────────────── */
@media print {
  .navbar, .footer, .btn, .admin-sidebar { display: none !important; }
}
