/* =====================================================
   AlManal – Global Stylesheet
   Iraqi Digital Transformation Company
   almanal.web.app
   ===================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Poppins:wght@300;400;500;600;700;900&display=swap');

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
  /* Brand */
  --primary:        #2c88b4;
  --primary-light:  #3ca5d6;
  --primary-dark:   #1f6a8e;
  --secondary:      #5bbde0;
  --accent:         #e9d0b6;
  --accent-light:   #f3e2cc;
  --accent-dark:    #c9a882;

  /* Neutrals */
  --dark:           #545b64;
  --dark-2:         #3a4048;
  --gray-800:       #545b64;
  --gray-600:       #6e7680;
  --gray-400:       #9ba3ab;
  --gray-200:       #dde2e6;
  --gray-100:       #f0f2f4;
  --light:          #f7f8fa;
  --white:          #ffffff;

  /* Semantic */
  --text:           #3a4048;
  --text-muted:     #6e7680;
  --text-light:     #9ba3ab;
  --border:         #dde2e6;
  --success:        #22c55e;
  --error:          #ef4444;
  --warning:        #f59e0b;
  --info:           #2c88b4;

  /* Typography */
  --font-en:  'Poppins', sans-serif;
  --font-ar:  'Cairo', sans-serif;

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 20px 50px rgba(0,0,0,.16);
  --shadow-pri: 0 8px 24px rgba(44,136,180,.32);

  /* Transitions */
  --t-fast: .15s ease;
  --t-base: .3s ease;
  --t-slow: .5s ease;

  /* Z-index */
  --z-header: 300;
  --z-modal:  400;
  --z-toast:  500;

  /* Layout */
  --container: 1280px;
  --header-h:  100px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-en);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] { font-family: var(--font-ar); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--dark-2); }
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--text-muted); line-height: 1.8; }

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.section { padding: var(--sp-20) 0; }
.section-sm { padding: var(--sp-12) 0; }
.bg-light { background: var(--light); }
.bg-dark  { background: var(--dark-2); }
.bg-primary { background: var(--primary); }
.text-center { text-align: center; }

/* Section header */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.section-header h2 { margin-bottom: var(--sp-4); }
.section-header p { max-width: 580px; margin: 0 auto; }

.divider {
  width: 56px;
  height: 4px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: var(--sp-4) auto;
}
.divider-left { margin-left: 0; }

/* Grid helpers */
.grid   { display: grid; gap: var(--sp-8); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: var(--z-header);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-base);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }

/* Logo */
.logo { display: flex; align-items: center; }
.logo-img {
  height: 84px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.logo-img--footer {
  height: auto;
  width: 100%;
  max-width: 240px;
  filter: brightness(1.1);
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--sp-1);
}
.nav-link {
  padding: var(--sp-2) var(--sp-4);
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(10,36,99,.06); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  border-radius: var(--r-full);
  background: var(--primary);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-4); }

/* Language toggle */
.lang-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: var(--sp-1) var(--sp-3);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--gray-600);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  text-transform: uppercase;
}
.lang-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(10,36,99,.3);
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--t-base);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-4) var(--sp-4) var(--sp-6);
  z-index: calc(var(--z-header) - 1);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-base);
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-mobile .nav-link {
  padding: var(--sp-4);
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-100);
  border-radius: 0;
}
.nav-mobile .lang-row {
  padding: var(--sp-3) var(--sp-4) 0;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: .75rem 1.75rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .2px;
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: .4rem 1rem; font-size: .8rem; }

.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-pri); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,83,.4); }

.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); transform: translateY(-2px); }

.btn-whatsapp { background: #25D366; color: var(--white); border-color: #25D366; }
.btn-whatsapp:hover { background: #128C7E; border-color: #128C7E; transform: translateY(-2px); }

.btn-danger { background: var(--error); color: var(--white); border-color: var(--error); }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }

.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  padding: calc(var(--header-h) + var(--sp-16)) 0 var(--sp-16);
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: var(--sp-4); }
.page-hero p { color: rgba(255,255,255,.72); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: .6rem; }

/* =====================================================
   HOME HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15,26,42,.82) 0%, rgba(44,136,180,.70) 60%, rgba(26,90,122,.85) 100%),
    url('/assets/hero.png') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}

/* dot-grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
/* glow blob */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(91,189,224,.10) 0%, transparent 65%);
  animation: pulse-glow 7s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-5);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--sp-6);
  backdrop-filter: blur(8px);
  animation: fade-up .6s ease both;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: var(--sp-6);
  animation: fade-up .8s ease .15s both;
}
.hero h1 .hl {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.72);
  max-width: 540px;
  margin-bottom: var(--sp-10);
  animation: fade-up 1s ease .3s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  animation: fade-up 1s ease .45s both;
}
.hero-scroll-cue {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  animation: bounce-y 2s ease-in-out infinite;
}

/* Decorative shape right side */
.hero-deco {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero-deco-ring {
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-deco-ring::before {
  content: '';
  width: 350px; height: 350px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  position: absolute;
}
.hero-deco-ring::after {
  content: '';
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(62,146,204,.12);
  position: absolute;
  animation: pulse-glow 4s ease-in-out infinite;
}

/* =====================================================
   ABOUT-STRIP (home snippet)
   ===================================================== */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.about-strip-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  position: relative;
}
.about-strip-img img { width: 100%; height: 100%; object-fit: cover; }
.about-strip-img .badge-float {
  position: absolute;
  bottom: var(--sp-6);
  left: var(--sp-6);
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.about-strip-img .badge-float .num { font-size: 1.75rem; font-weight: 900; color: var(--primary); }
.about-strip-img .badge-float .txt { font-size: .8rem; color: var(--text-muted); line-height: 1.3; }
.about-strip-text { display: flex; flex-direction: column; gap: var(--sp-6); }
.about-strip-text p { line-height: 1.9; }
.about-strip-text .features { display: flex; flex-direction: column; gap: var(--sp-3); }
.about-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}
.about-feature i { color: var(--primary); font-size: .8rem; }

/* =====================================================
   CARDS – SERVICES
   ===================================================== */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,36,99,0) 0%, rgba(10,36,99,.03) 100%);
  opacity: 0;
  transition: opacity var(--t-base);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(10,36,99,.15); }
.service-card:hover::before { opacity: 1; }

.svc-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(10,36,99,.08), rgba(62,146,204,.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: all var(--t-base);
}
.service-card:hover .svc-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: var(--shadow-pri);
}
.service-card h3 { color: var(--dark-2); }
.service-card p { font-size: .875rem; line-height: 1.75; flex: 1; }
.service-card .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  transition: gap var(--t-fast);
}
.service-card:hover .arrow-link { gap: var(--sp-3); }

/* =====================================================
   CARDS – PROJECTS
   ===================================================== */
.project-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.project-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.project-card:hover .project-thumb img { transform: scale(1.07); }
.project-thumb .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,36,99,.85) 100%);
  opacity: 0;
  transition: opacity var(--t-base);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-5);
}
.project-card:hover .project-thumb .overlay { opacity: 1; }
.project-thumb .overlay a { color: var(--white); font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: var(--sp-2); }

.project-info { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; gap: var(--sp-3); }
.project-info h3 { color: var(--dark-2); font-size: 1.05rem; }
.project-info p  { font-size: .875rem; flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag {
  display: inline-flex;
  padding: 2px var(--sp-3);
  font-size: .7rem;
  font-weight: 700;
  border-radius: var(--r-full);
  background: rgba(10,36,99,.07);
  color: var(--primary);
  letter-spacing: .3px;
}

/* =====================================================
   CARDS – BLOG
   ===================================================== */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.blog-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }

.blog-info { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; gap: var(--sp-3); }
.blog-meta { display: flex; align-items: center; gap: var(--sp-3); font-size: .75rem; color: var(--text-light); }
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-400); flex-shrink: 0; }
.blog-category {
  display: inline-flex;
  padding: 2px var(--sp-3);
  border-radius: var(--r-full);
  background: rgba(212,168,83,.12);
  color: var(--accent-dark);
  font-size: .7rem;
  font-weight: 700;
}
.blog-info h3 { font-size: 1.05rem; line-height: 1.4; color: var(--dark-2); }
.blog-info p  { font-size: .875rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--t-fast);
  margin-top: auto;
}
.blog-card:hover .read-more { gap: var(--sp-2); }

/* =====================================================
   STATS STRIP
   ===================================================== */
.stats-strip {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  padding: var(--sp-16) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--sp-8);
  text-align: center;
}
.stat-item { padding: var(--sp-6); }
.stat-num {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-suffix { color: var(--accent); }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: 1.5px; }

/* =====================================================
   CTA BAND
   ===================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: var(--sp-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-4); }
.cta-band p  { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 580px; margin: 0 auto var(--sp-8); }
.cta-band .btn-row { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* =====================================================
   FORMS
   ===================================================== */
.form-grid { display: grid; gap: var(--sp-5); }
.form-grid-2 { grid-template-columns: 1fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label { font-size: .875rem; font-weight: 600; color: var(--text); }
.form-control {
  width: 100%;
  padding: .8rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--t-base);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,36,99,.1); }
.form-control.is-invalid { border-color: var(--error); }
textarea.form-control { resize: vertical; min-height: 140px; }

.form-err { font-size: .75rem; color: var(--error); display: none; }
.form-err.show { display: block; }

.form-note { font-size: .8rem; color: var(--text-light); }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-12);
  align-items: start;
}
.contact-info-list { display: flex; flex-direction: column; gap: var(--sp-6); }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.contact-info-item .ci-icon {
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  background: rgba(10,36,99,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-info-item .ci-body h4 { font-size: 1rem; margin-bottom: var(--sp-1); }
.contact-info-item .ci-body p  { font-size: .9rem; }
.contact-info-item .ci-body a  { color: var(--primary); font-weight: 500; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-lg);
}

.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: var(--sp-8);
  border: 1px solid var(--border);
}
.map-wrap iframe { display: block; width: 100%; height: 280px; border: 0; }

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--sp-6);
}
.mv-card {
  padding: var(--sp-8);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--white);
  text-align: center;
  transition: all var(--t-base);
}
.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mv-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(10,36,99,.08), rgba(62,146,204,.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--primary);
  margin: 0 auto var(--sp-5);
}
.mv-card h3 { margin-bottom: var(--sp-3); }

/* Values */
.value-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all var(--t-base);
}
.value-item:hover { box-shadow: var(--shadow-sm); border-color: var(--primary); }
.value-item .v-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: rgba(10,36,99,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--primary); flex-shrink: 0;
}
.value-item .v-body h4 { margin-bottom: var(--sp-1); }
.value-item .v-body p  { font-size: .875rem; }

/* Timeline */
.timeline { position: relative; padding: var(--sp-8) 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.tl-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
  align-items: center;
}
.tl-item:nth-child(even) .tl-card { order: 3; }
.tl-item:nth-child(even) .tl-spacer { order: 2; }
.tl-item:nth-child(even) .tl-empty { order: 1; }

.tl-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
  margin: auto;
  z-index: 1;
  position: relative;
}
.tl-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.tl-year { font-size: .7rem; font-weight: 700; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: var(--sp-2); }
.tl-card h4 { margin-bottom: var(--sp-2); }
.tl-card p  { font-size: .875rem; }

/* Leadership */
.leader-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  text-align: center;
  transition: all var(--t-base);
}
.leader-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.leader-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--white);
  margin: 0 auto var(--sp-5);
  font-weight: 700;
}
.leader-card .leader-role { color: var(--accent); font-size: .85rem; font-weight: 600; margin-bottom: var(--sp-3); }
.leader-card p { font-size: .875rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: var(--sp-20) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}
.footer-brand .logo-en,
.footer-brand .logo-ar { color: var(--white) !important; }
.footer-brand > p { font-size: .875rem; margin-top: var(--sp-4); line-height: 1.8; }

.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: var(--sp-6);
  position: relative;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: var(--r-full);
}
[dir="rtl"] .footer-col h4::after { left: auto; right: 0; }

.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links a {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  display: flex; align-items: center; gap: var(--sp-2);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--accent); }
.footer-links a i { width: 14px; font-size: .65rem; }

.social-row { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); }
.social-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  transition: all var(--t-base);
}
.social-btn:hover { background: var(--primary-light); border-color: var(--primary-light); color: var(--white); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .8rem; }
.footer-tagline { color: var(--accent) !important; font-weight: 600; }

/* =====================================================
   ADMIN PANEL
   ===================================================== */
.admin-page { background: var(--gray-100); min-height: 100vh; }

/* Login screen */
.admin-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  padding: var(--sp-6);
}
.admin-login-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-12);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
}
.admin-login-logo { text-align: center; margin-bottom: var(--sp-8); }

/* Admin header */
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-8);
  position: sticky; top: 0;
  z-index: var(--z-header);
  box-shadow: var(--shadow-sm);
}

/* Admin sidebar */
.admin-sidebar {
  width: 256px;
  background: var(--white);
  border-right: 1px solid var(--border);
  height: calc(100vh - 68px);
  position: fixed;
  top: 68px;
  left: 0;
  overflow-y: auto;
  padding: var(--sp-4) 0;
  transition: transform var(--t-base);
}
[dir="rtl"] .admin-sidebar { left: auto; right: 0; border-right: none; border-left: 1px solid var(--border); }

.admin-main {
  margin-left: 256px;
  padding: var(--sp-8);
  min-height: calc(100vh - 68px);
}
[dir="rtl"] .admin-main { margin-left: 0; margin-right: 256px; }

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-6);
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--t-fast);
  border-left: 3px solid transparent;
  user-select: none;
}
[dir="rtl"] .admin-nav-item { border-left: none; border-right: 3px solid transparent; }
.admin-nav-item:hover { background: rgba(10,36,99,.04); color: var(--primary); }
.admin-nav-item.active { background: rgba(10,36,99,.06); color: var(--primary); border-left-color: var(--primary); }
[dir="rtl"] .admin-nav-item.active { border-left-color: transparent; border-right-color: var(--primary); }
.admin-nav-item i { width: 20px; text-align: center; }

.admin-nav-sep {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: var(--sp-4) var(--sp-6) var(--sp-2);
}

/* Admin panel sections */
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}
.admin-panel-head h2 { font-size: 1.4rem; }

/* Table */
.data-table-wrap {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--gray-100);
  padding: var(--sp-4) var(--sp-5);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  text-align: start;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: var(--sp-4) var(--sp-5);
  font-size: .875rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-100); }

.action-btns { display: flex; gap: var(--sp-2); }
.btn-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  transition: all var(--t-fast);
  cursor: pointer;
  border: none;
}
.btn-icon.edit   { background: rgba(59,130,246,.1); color: var(--info); }
.btn-icon.edit:hover   { background: var(--info); color: var(--white); }
.btn-icon.delete { background: rgba(239,68,68,.1); color: var(--error); }
.btn-icon.delete:hover { background: var(--error); color: var(--white); }
.btn-icon.view   { background: rgba(34,197,94,.1); color: var(--success); }
.btn-icon.view:hover   { background: var(--success); color: var(--white); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--sp-2);
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 700;
}
.badge-success { background: rgba(34,197,94,.12); color: #16a34a; }
.badge-error   { background: rgba(239,68,68,.12);  color: #dc2626; }
.badge-info    { background: rgba(59,130,246,.12); color: #2563eb; }
.badge-warn    { background: rgba(245,158,11,.12); color: #d97706; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.96);
  transition: transform var(--t-base);
  box-shadow: var(--shadow-xl);
}
.modal-backdrop.open .modal-box { transform: scale(1); }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 1.25rem; }
.modal-close {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--t-fast);
  border: none; font-size: 1rem;
}
.modal-close:hover { background: var(--error); color: var(--white); }

.modal-form { display: flex; flex-direction: column; gap: var(--sp-5); }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-10);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base);
  background: var(--light);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: rgba(10,36,99,.03); }
.upload-zone i { font-size: 2.5rem; color: var(--gray-400); margin-bottom: var(--sp-3); display: block; }
.upload-zone p { font-size: .875rem; color: var(--text-muted); }
.upload-zone .pick { color: var(--primary); font-weight: 600; }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-preview { width: 100%; max-height: 160px; object-fit: cover; border-radius: var(--r-md); margin-top: var(--sp-4); display: none; }

/* Admin stats cards */
.admin-stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-5); margin-bottom: var(--sp-8); }
.admin-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.admin-stat-card .asc-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.asc-icon.blue   { background: rgba(59,130,246,.1);  color: var(--info); }
.asc-icon.green  { background: rgba(34,197,94,.1);   color: var(--success); }
.asc-icon.yellow { background: rgba(245,158,11,.1);  color: var(--warning); }
.asc-icon.red    { background: rgba(239,68,68,.1);   color: var(--error); }
.asc-body .asc-num  { font-size: 1.75rem; font-weight: 800; color: var(--dark-2); line-height: 1; }
.asc-body .asc-label{ font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* Toast */
.toast-host {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}
[dir="rtl"] .toast-host { right: auto; left: var(--sp-6); }
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 280px;
  animation: slide-right .3s ease both;
  pointer-events: all;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--error); }
.toast.info    { border-left: 4px solid var(--info); }
.toast.warn    { border-left: 4px solid var(--warning); }
.toast .t-icon { font-size: 1.2rem; }
.toast.success .t-icon { color: var(--success); }
.toast.error   .t-icon { color: var(--error); }
.toast.info    .t-icon { color: var(--info); }
.toast.warn    .t-icon { color: var(--warning); }
.toast .t-msg  { font-size: .875rem; flex: 1; }

/* Loading */
.loading-wrap { display: flex; align-items: center; justify-content: center; padding: var(--sp-20) 0; }
.spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.empty-state { text-align: center; padding: var(--sp-20) 0; }
.empty-state i { font-size: 3.5rem; color: var(--gray-400); display: block; margin-bottom: var(--sp-4); }
.empty-state h3 { color: var(--text-muted); margin-bottom: var(--sp-2); }
.empty-state p  { font-size: .875rem; color: var(--text-light); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slide-right {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-glow {
  0%,100% { opacity: .5; transform: scale(1); }
  50%      { opacity: .8; transform: scale(1.04); }
}
@keyframes bounce-y {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }
.reveal.delay-5 { transition-delay: .5s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ≥ 1024px: desktop */
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-toggle  { display: none; }
  .nav-mobile  { display: none !important; }
  .hero-deco   { display: flex; }
  .about-strip { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr 1.6fr; }
}

/* 768px – 1023px: tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats-grid       { grid-template-columns: repeat(2,1fr); }
  .mission-vision   { grid-template-columns: repeat(2,1fr); }
  .footer-grid      { grid-template-columns: repeat(2,1fr); }
  .admin-stat-cards { grid-template-columns: repeat(2,1fr); }
}

/* < 1024px: mobile/tablet nav */
@media (max-width: 1023px) {
  .nav-desktop { display: none; }
  .nav-toggle  { display: flex; }

  .admin-sidebar { transform: translateX(-260px); }
  [dir="rtl"] .admin-sidebar { transform: translateX(260px); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0 !important; margin-right: 0 !important; }

  .timeline::before { left: 20px; }
  .tl-item { grid-template-columns: 40px 1fr; }
  .tl-item:nth-child(even) .tl-card  { order: 1; }
  .tl-item:nth-child(even) .tl-spacer{ order: 0; }
  .tl-item .tl-empty { display: none; }
}

/* < 768px: small mobile */
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .mission-vision { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .admin-stat-cards { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--sp-4); }
  .contact-form-card { padding: var(--sp-6); }
  .admin-login-card { padding: var(--sp-8); }
  .modal-box { padding: var(--sp-6); }
  .admin-stat-cards { grid-template-columns: 1fr; }
}

/* =====================================================
   RTL OVERRIDES
   ===================================================== */
[dir="rtl"] .nav-link.active::after { left: auto; right: 50%; transform: translateX(50%); }
[dir="rtl"] .hero-scroll-cue { left: auto; right: 50%; transform: translateX(50%); }
[dir="rtl"] .toast.success,
[dir="rtl"] .toast.error,
[dir="rtl"] .toast.info,
[dir="rtl"] .toast.warn {
  border-left: 1px solid var(--border);
  border-right-width: 4px;
}
[dir="rtl"] .toast.success { border-right-color: var(--success); }
[dir="rtl"] .toast.error   { border-right-color: var(--error); }
[dir="rtl"] .toast.info    { border-right-color: var(--info); }
[dir="rtl"] .toast.warn    { border-right-color: var(--warning); }

/* =====================================================
   SERVICES � FULL-WIDTH STACKED CARDS
   ===================================================== */
.services-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* Card wrapper */
.svc-full-card {
  position: relative;
  width: 100%;
  min-height: 340px;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.svc-full-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Background layer (video or gradient) */
.svc-full-card .svc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.svc-full-card .svc-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-full-card .svc-bg-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
/* Dark overlay so text is always readable */
.svc-full-card .svc-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 20, 40, 0.78) 0%,
    rgba(10, 20, 40, 0.50) 60%,
    rgba(10, 20, 40, 0.30) 100%
  );
}

/* Content row */
.svc-full-card .svc-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  padding: var(--sp-12) var(--sp-12);
  width: 100%;
}

/* Icon bubble */
.svc-full-card .svc-icon-lg {
  width: 88px;
  min-width: 88px;
  height: 88px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--white);
  flex-shrink: 0;
  transition: background var(--t-base), transform var(--t-base);
}
.svc-full-card:hover .svc-icon-lg {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}

/* Text block */
.svc-full-card .svc-text {
  flex: 1;
  min-width: 0;
}
.svc-full-card .svc-text h3 {
  color: var(--white);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  margin-bottom: var(--sp-3);
  line-height: 1.25;
}
.svc-full-card .svc-text p {
  color: rgba(255, 255, 255, 0.80);
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  max-width: 680px;
  line-height: 1.8;
  margin: 0;
}

/* CTA button */
.svc-full-card .svc-cta {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.svc-full-card .svc-cta:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Responsive � tablet */
@media (max-width: 1023px) {
  .svc-full-card .svc-content {
    padding: var(--sp-8) var(--sp-8);
    gap: var(--sp-6);
  }
}

/* Responsive � mobile */
@media (max-width: 767px) {
  .svc-full-card {
    min-height: 280px;
  }
  .svc-full-card .svc-content {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-8) var(--sp-6);
    gap: var(--sp-4);
  }
  .svc-full-card .svc-icon-lg {
    width: 64px;
    min-width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }
  .svc-full-card .svc-cta {
    align-self: flex-start;
  }
}

/* =====================================================
   PROJECTS TRACKING PANEL
   ===================================================== */

/* Cards grid */
.tp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Single project card */
.tp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  cursor: pointer;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.tp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.tp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}
.tp-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-2);
  line-height: 1.3;
}
.tp-recurring-badge { font-size: .65rem; white-space: nowrap; flex-shrink: 0; }
.tp-card-client { font-size: .8rem; color: var(--text-muted); }
.tp-card-client i { margin-right: .3rem; font-size: .7rem; }

/* Progress bar (reused everywhere) */
.tp-progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: var(--r-full);
  overflow: hidden;
}
.tp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--r-full);
  transition: width .5s ease;
}
.tp-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: .35rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.tp-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.tp-card-amounts { font-size: .8rem; color: var(--text-muted); }
.tp-card-footer {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--gray-100);
  padding-top: var(--sp-3);
  margin-top: auto;
}
.tp-remaining { font-size: .75rem; color: var(--text-muted); flex: 1; }

/* Detail header */
.tp-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Info bar */
.tp-info-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--gray-100);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-6);
  flex-wrap: wrap;
}
.tp-info-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  color: var(--text);
}
.tp-info-item i { color: var(--primary); font-size: .85rem; }

/* Entry table progress */
.tp-entry-progress {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Charts grid */
.tp-charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.tp-chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.tp-chart-card h4 {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--sp-4);
}

/* Payments section */
.tp-payments-section {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  margin-top: 2rem;
}
.tp-payment-settings {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: 1.25rem;
}
.tp-payment-settings .form-group { margin: 0; }

/* Payments summary bar */
.tp-summary-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-6);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.tp-summary-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.tp-summary-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.tp-summary-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-2);
}
.tp-summary-progress {
  flex-direction: row;
  align-items: center;
  gap: .75rem;
  flex: 1;
  min-width: 160px;
}

/* Responsive */
@media (max-width: 1023px) {
  .tp-charts-grid { grid-template-columns: 1fr 1fr; }
  .tp-payment-settings { grid-template-columns: 1fr 1fr; }
  .tp-payment-settings > div:last-child { grid-column: 1/-1; }
}
@media (max-width: 767px) {
  .tp-cards-grid    { grid-template-columns: 1fr; }
  .tp-charts-grid   { grid-template-columns: 1fr; }
  .tp-payment-settings { grid-template-columns: 1fr; }
  .tp-summary-bar   { gap: 1rem; }
}

/* =====================================================
   RECURRING PAYMENT ALERT
   ===================================================== */
.tp-recurring-alert-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  margin: 1.25rem 0;
  border-left: 5px solid;
  flex-wrap: wrap;
}

/* Green � more than 7 days away */
.tp-alert-green {
  background: rgba(34, 197, 94, .08);
  border-left-color: #22c55e;
}
.tp-alert-green .tp-alert-icon { color: #16a34a; }

/* Yellow � due within 7 days */
.tp-alert-yellow {
  background: rgba(245, 158, 11, .10);
  border-left-color: #f59e0b;
}
.tp-alert-yellow .tp-alert-icon { color: #d97706; }

/* Red � overdue or due today */
.tp-alert-red {
  background: rgba(239, 68, 68, .08);
  border-left-color: #ef4444;
  animation: tp-pulse-red 2s ease-in-out infinite;
}
.tp-alert-red .tp-alert-icon { color: #dc2626; }

@keyframes tp-pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50%       { box-shadow: 0 0 0 6px rgba(239,68,68,.15); }
}

/* Icon */
.tp-alert-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

/* Body */
.tp-alert-body { flex: 1; min-width: 0; }
.tp-alert-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.tp-alert-due {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-2);
}
.tp-alert-countdown {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.tp-alert-meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

/* Status badge */
.tp-alert-badge {
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .9rem;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
}
.tp-alert-green .tp-alert-badge { background: #dcfce7; color: #16a34a; }
.tp-alert-yellow .tp-alert-badge { background: #fef3c7; color: #d97706; }
.tp-alert-red .tp-alert-badge { background: #fee2e2; color: #dc2626; }

/* Interval preset quick-select buttons */
.tp-interval-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .6rem;
}
.tp-interval-presets button {
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}
.tp-interval-presets button:hover,
.tp-interval-presets button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Recurring status badge (ON / OFF) */
.tp-rs-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem;
  border-radius: var(--r-full);
  font-size: .875rem;
  font-weight: 600;
  border: 1.5px solid;
}
.tp-rs-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tp-rs-on {
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.35);
  color: #16a34a;
}
.tp-rs-on .tp-rs-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.tp-rs-off {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.3);
  color: #dc2626;
}
.tp-rs-off .tp-rs-dot { background: #ef4444; }
.tp-rs-detail {
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: .25rem;
}

/* =====================================================
   FINANCIALS PANEL
   ===================================================== */

/* Card stats (ingoing / outgoing summary on list card) */
.fin-card-stats {
  display: flex;
  gap: 1rem;
  margin-top: .25rem;
}
.fin-stat {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  flex: 1;
  background: var(--gray-100);
  border-radius: var(--r-md);
  padding: .4rem .6rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.fin-stat strong { font-size: .95rem; }

/* Net pill on list card */
.fin-net-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: var(--r-full);
  margin-top: .25rem;
}
.fin-net-profit {
  background: rgba(34,197,94,.12);
  color: #16a34a;
}
.fin-net-loss {
  background: rgba(239,68,68,.1);
  color: #dc2626;
}

/* Net summary card in detail view */
.fin-net-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-8);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: var(--sp-6);
}
.fin-net-stat {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
  min-width: 120px;
}
.fin-net-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}
.fin-net-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-2);
}
.fin-net-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
.fin-net-result {
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-lg);
}
.fin-result-profit {
  background: rgba(34,197,94,.08);
}
.fin-result-profit .fin-net-value { color: #16a34a; }
.fin-result-loss {
  background: rgba(239,68,68,.08);
}
.fin-result-loss .fin-net-value { color: #dc2626; }

.fin-net-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 2;
  min-width: 160px;
}

/* Section wrapper */
.fin-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-8);
  box-shadow: var(--shadow-sm);
}

/* Total rows below each table */
.fin-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
  border-radius: var(--r-md);
  margin-top: .75rem;
  font-size: .9rem;
  font-weight: 600;
}
.fin-total-out {
  background: rgba(239,68,68,.07);
  color: #dc2626;
}
.fin-total-in {
  background: rgba(34,197,94,.07);
  color: #16a34a;
}

/* -- Financials filter bar ---------------------------------------- */
.fin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.fin-filter-btn {
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.fin-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.fin-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* -- Service sections -------------------------------------------- */
.fin-service-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.fin-service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: var(--sp-5) var(--sp-8);
  background: var(--gray-100);
  border-bottom: 1px solid var(--border);
}
.fin-service-title {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.fin-service-title h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--dark-2);
}

.fin-service-totals {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.fin-svc-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: .78rem;
}
.fin-svc-total span { color: var(--text-muted); }
.fin-svc-total strong { font-size: .95rem; }

.fin-svc-net {
  padding: .3rem .9rem;
  border-radius: var(--r-full);
  font-weight: 700;
}
.fin-svc-net-profit { background: rgba(34,197,94,.12); color: #16a34a; }
.fin-svc-net-loss   { background: rgba(239,68,68,.1);  color: #dc2626; }

.fin-proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  padding: 1.25rem var(--sp-8);
}

.fin-proj-card { cursor: pointer; }

@media (max-width: 767px) {
  .fin-service-header { flex-direction: column; align-items: flex-start; }
  .fin-service-totals { gap: 1rem; }
  .fin-svc-total      { align-items: flex-start; }
  .fin-proj-grid      { grid-template-columns: 1fr; padding: 1rem; }
}

/* Tracking search bar */
.tp-search-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}
.tp-search-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: .85rem;
  pointer-events: none;
}
.tp-search-input {
  padding-left: 2.4rem !important;
  padding-right: 2.4rem !important;
}
.tp-search-clear {
  position: absolute;
  right: .6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  color: var(--gray-600);
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.tp-search-clear:hover { background: var(--gray-400); color: var(--white); }

/* =====================================================
   ADMIN PANEL � MOBILE RESPONSIVE
   ===================================================== */

/* Hamburger menu button (hidden on desktop) */
.admin-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--gray-100);
  border: none;
  color: var(--primary);
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  flex-shrink: 0;
}
.admin-menu-btn:hover { background: var(--primary); color: var(--white); }

/* Mobile sidebar overlay */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: calc(var(--z-header) - 2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
}
.admin-sidebar-overlay.show { display: block; }

/* -- Tablet (< 1024px) -------------------------------- */
@media (max-width: 1023px) {

  /* Show hamburger */
  .admin-menu-btn { display: flex; }

  /* Compact topbar */
  .admin-topbar { padding: 0 var(--sp-4); }

  /* Hide email on tablet */
  .admin-email-badge { display: none; }

  /* Tables: horizontal scroll */
  .data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r-lg);
  }
  .data-table { min-width: 540px; }

  /* Stat cards: 2 columns */
  .admin-stat-cards { grid-template-columns: repeat(2,1fr); }

  /* Panel head: allow wrap */
  .admin-panel-head { flex-wrap: wrap; gap: var(--sp-3); }

  /* Main content: less padding */
  .admin-main { padding: var(--sp-6) var(--sp-4); }

  /* Modals: bottom sheet style */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal-box {
    max-width: 100% !important;
    max-height: 88vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0 !important;
    margin: 0;
  }

  /* Tracking / financials card grids */
  .tp-cards-grid   { grid-template-columns: repeat(2,1fr); }
  .fin-proj-grid   { grid-template-columns: repeat(2,1fr); }
  .tp-charts-grid  { grid-template-columns: 1fr 1fr; }

  /* Payment settings: stack */
  .tp-payment-settings { grid-template-columns: 1fr; }
  .tp-payment-settings > div:last-child { grid-column: 1; }
}

/* -- Phone (< 768px) --------------------------------- */
@media (max-width: 767px) {

  /* Stat cards: 2 col on phone too */
  .admin-stat-cards { grid-template-columns: 1fr 1fr; }

  /* Hide brand subtitle */
  .admin-topbar-brand-text > div:last-child { display: none; }

  /* Single-col card grids */
  .tp-cards-grid  { grid-template-columns: 1fr; }
  .fin-proj-grid  { grid-template-columns: 1fr; }
  .tp-charts-grid { grid-template-columns: 1fr; }

  /* Financials service header: stack */
  .fin-service-header { flex-direction: column; align-items: flex-start; }
  .fin-service-totals { gap: 1rem; width: 100%; }

  /* Detail header */
  .tp-detail-header { flex-wrap: wrap; }
  .tp-detail-header h2 { font-size: 1.1rem; }

  /* Modal form grids: 1 column */
  .modal-form > div[style*="grid-template-columns"],
  .modal-form [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Restore full-width items */
  .modal-form [style*="grid-column:1/-1"],
  .modal-form [style*="grid-column: 1 / -1"] {
    grid-column: 1 !important;
  }

  /* Net summary: wrap */
  .fin-net-card { flex-direction: column; gap: var(--sp-4); }
  .fin-net-divider { width: 100%; height: 1px; }

  /* View site: icon only */
  .admin-view-site-text { display: none; }
}

/* -- Small phone (< 480px) --------------------------- */
@media (max-width: 479px) {
  .admin-main { padding: var(--sp-4) var(--sp-3); }
  .admin-stat-cards { grid-template-columns: 1fr; }

  /* Full-screen topbar */
  .admin-topbar-brand-text { display: none; }
}

/* Fix: topbar above sidebar + overlay on mobile */
@media (max-width: 1023px) {
  .admin-topbar {
    z-index: calc(var(--z-header) + 2);  /* 302 � always on top */
  }
  .admin-sidebar {
    z-index: calc(var(--z-header) + 1);  /* 301 � below topbar, above overlay */
    top: 68px;                            /* start below topbar */
    height: calc(100vh - 68px);
  }
  .admin-sidebar-overlay {
    z-index: var(--z-header);             /* 300 � below sidebar */
    top: 68px;                            /* cover content only, not topbar */
  }
}

/* Guarantee hamburger is always clickable */
.admin-menu-btn {
  pointer-events: all;
  position: relative;
  z-index: calc(var(--z-header) + 10);
}

/* =====================================================
   ADMIN MOBILE CARD VIEWS
   ===================================================== */

/* Base card grid � hidden on desktop, shown on mobile */
.admin-mobile-cards {
  display: none;
  gap: 1rem;
}

@media (max-width: 767px) {
  /* Hide tables, show cards */
  .data-table-wrap { display: none !important; }
  .admin-mobile-cards { display: grid; }

  /* Services + Projects: 2 col */
  .adm-svc-cards,
  .adm-proj-cards { grid-template-columns: 1fr 1fr; }

  /* Contacts: 1 col */
  .adm-contact-cards { grid-template-columns: 1fr; }

  /* Panel head: stack vertically, button full width */
  .admin-panel-head {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-3);
  }
  .admin-panel-head h2 { text-align: center; font-size: 1.2rem; }
  .admin-panel-head > .btn,
  .admin-panel-head > button { width: 100%; justify-content: center; }
}

/* Base mobile card */
.adm-mob-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
  -webkit-tap-highlight-color: transparent;
}
.adm-mob-card:active { transform: scale(.97); }

/* -- Service card ----------------------------------- */
.adm-svc-card {
  position: relative;
  background: var(--white);
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-5) var(--sp-4);
}
.adm-card-bg-icon {
  position: absolute;
  font-size: 5rem;
  color: rgba(44,136,180,.09);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}
.adm-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.adm-card-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--dark-2);
  line-height: 1.3;
}

/* -- Project card ----------------------------------- */
.adm-proj-card {
  position: relative;
  min-height: 130px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-3);
}
.adm-proj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.68) 100%);
}
.adm-card-body--dark {
  position: relative;
  z-index: 1;
  align-items: flex-start;
}
.adm-card-body--dark .adm-card-title { color: var(--white); font-size: .8rem; }

/* -- Contact card ----------------------------------- */
.adm-contact-card {
  background: var(--white);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
}
.adm-contact-unread { border-left: 3px solid var(--primary); }
.adm-contact-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.adm-contact-email {
  font-size: .78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* -- Admin detail modal ----------------------------- */
.adm-detail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.adm-detail-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: .5rem;
}
.adm-detail-title { margin: 0; font-size: 1.1rem; }

.adm-detail-rows {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.adm-detail-row {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  background: var(--light);
  border-radius: var(--r-md);
  padding: .5rem .75rem;
}
.adm-detail-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.adm-detail-value {
  font-size: .875rem;
  color: var(--dark-2);
  word-break: break-word;
}
.adm-detail-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}
