/* ============================================================
   ZainPro Medical Platform — CSS v12.0
   ULTRA PROFESSIONAL — Full Redesign All Components
   ============================================================ */

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

/* ══════════════════════════════════════════════════════════════
   iOS SAFARI AUTO-ZOOM FIX
   Prevents iOS Safari from zooming in when tapping inputs.
   iOS zooms when font-size < 16px — this fix sets minimum 16px
   for ALL input/textarea/select elements site-wide.
   ══════════════════════════════════════════════════════════════ */
input, textarea, select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
  font-size: 16px !important; /* Prevent iOS Safari auto-zoom (requires >= 16px) */
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  /* Extra specificity for Safari/Chrome on iOS */
  select:focus,
  textarea:focus,
  input:focus {
    font-size: 16px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   ROOT VARIABLES
   ══════════════════════════════════════════════════════════════ */
:root {
  --bg: #ffffff;
  --bg2: #f8fafc;
  --bg3: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --border2: #cbd5e1;
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
  --text4: #94a3b8;
  --accent: #2563eb;
  --accent2: #1d4ed8;
  --accent3: #3b82f6;
  --accent-light: rgba(37,99,235,.08);
  --accent-glow: rgba(37,99,235,.25);
  --green: #10b981;
  --green-light: rgba(16,185,129,.1);
  --red: #ef4444;
  --red-light: rgba(239,68,68,.1);
  --purple: #8b5cf6;
  --purple-light: rgba(139,92,246,.1);
  --gold: #f59e0b;
  --gold-light: rgba(245,158,11,.1);
  --teal: #0891b2;
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08),0 2px 8px rgba(0,0,0,.05);
  --shadow-md: 0 8px 32px rgba(0,0,0,.1),0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12),0 8px 24px rgba(0,0,0,.08);
  --shadow-glow: 0 0 40px rgba(37,99,235,.3);
  --r: 12px;
  --r-sm: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --tr: all .25s cubic-bezier(.4,0,.2,1);
  --grad-primary: linear-gradient(135deg,#2563eb 0%,#0891b2 100%);
  --grad-accent: linear-gradient(135deg,#7c3aed 0%,#2563eb 100%);
  --grad-success: linear-gradient(135deg,#059669 0%,#10b981 100%);
  --grad-gold: linear-gradient(135deg,#d97706 0%,#f59e0b 100%);
  --grad-hero: linear-gradient(135deg,#0f172a 0%,#1e3a5f 50%,#0f172a 100%);
  --r: 12px;

  /* ── Aliases for v10 compatibility (landing page uses these) ── */
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  --gradient-accent:  linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --gradient-gold:    linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --sidebar-bg:       linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  --radius:    12px;
  --radius-sm:  8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ══════════════════════════════════════════════════════════════ */
@keyframes fadeIn        { from{opacity:0} to{opacity:1} }
@keyframes fadeInUp      { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInDown    { from{opacity:0;transform:translateY(-24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInLeft    { from{opacity:0;transform:translateX(-32px)} to{opacity:1;transform:translateX(0)} }
@keyframes fadeInRight   { from{opacity:0;transform:translateX(32px)} to{opacity:1;transform:translateX(0)} }
@keyframes slideUp       { from{opacity:0;transform:translateY(40px) scale(.96)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes slideInLeft   { from{transform:translateX(-100%)} to{transform:translateX(0)} }
@keyframes pulse         { 0%,100%{opacity:1} 50%{opacity:.6} }
@keyframes spin          { to{transform:rotate(360deg)} }
@keyframes float         { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes floatSlow     { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-16px) rotate(3deg)} }
@keyframes glow          { 0%,100%{box-shadow:0 0 20px rgba(37,99,235,.3)} 50%{box-shadow:0 0 60px rgba(37,99,235,.7)} }
@keyframes shimmer       { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes orbit         { from{transform:rotate(0deg) translateX(120px) rotate(0deg)} to{transform:rotate(360deg) translateX(120px) rotate(-360deg)} }
@keyframes orbit2        { from{transform:rotate(180deg) translateX(90px) rotate(-180deg)} to{transform:rotate(540deg) translateX(90px) rotate(-540deg)} }
@keyframes progressFill  { from{width:0} }
@keyframes countup       { from{opacity:0;transform:scale(.5)} to{opacity:1;transform:scale(1)} }
@keyframes toastSlide    { from{opacity:0;transform:translateY(20px) scale(.9)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes notifPop      { 0%{transform:scale(0)} 70%{transform:scale(1.15)} 100%{transform:scale(1)} }
@keyframes ripple        { to{transform:scale(4);opacity:0} }
@keyframes marquee-rtl   { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes borderGlow    { 0%,100%{border-color:rgba(37,99,235,.3)} 50%{border-color:rgba(37,99,235,.8)} }
@keyframes gradShift     { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes blobAnim      { 0%,100%{border-radius:60% 40% 30% 70%/60% 30% 70% 40%} 50%{border-radius:30% 60% 70% 40%/50% 60% 30% 60%} }
@keyframes starPulse     { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.3);opacity:.8} }
@keyframes checkPop      { 0%{transform:scale(0) rotate(-45deg)} 60%{transform:scale(1.2) rotate(5deg)} 100%{transform:scale(1) rotate(0deg)} }
@keyframes particleRise  { 0%{opacity:0;transform:translateY(0) scale(0)} 20%{opacity:1} 80%{opacity:.6} 100%{opacity:0;transform:translateY(-100px) scale(1)} }
@keyframes scanLine      { 0%{top:-10%} 100%{top:110%} }
@keyframes typewriter    { from{width:0} to{width:100%} }

/* ══════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════ */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family:'Cairo',sans-serif;
  background:var(--bg);
  color:var(--text);
  direction:rtl;
  line-height:1.6;
  min-height:100vh;
  overflow-x:hidden;
}
a { text-decoration:none; color:inherit; }
img { max-width:100%; }

/* Custom Scrollbar */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:var(--bg2); }
::-webkit-scrollbar-thumb { background:var(--border2); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:var(--text4); }

/* ══════════════════════════════════════════════════════════════
   PAGE BACKGROUND SYSTEM
   ══════════════════════════════════════════════════════════════ */
.page-bg {
  position:fixed; inset:0; z-index:-3;
  background: radial-gradient(ellipse 80% 60% at 20% -10%, rgba(37,99,235,.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 110%, rgba(139,92,246,.1) 0%, transparent 60%),
              linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.grid-overlay {
  position:fixed; inset:0; z-index:-2; pointer-events:none;
  background-image: linear-gradient(rgba(37,99,235,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(37,99,235,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.particles {
  position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none;
}
.particles::before,.particles::after {
  content:''; position:absolute;
  width:300px; height:300px;
  border-radius:50%;
  animation: blobAnim 8s ease-in-out infinite;
  opacity:.04;
}
.particles::before {
  background:var(--accent);
  top:-100px; right:-100px;
  animation-delay: 0s;
}
.particles::after {
  background:var(--purple);
  bottom:-100px; left:-100px;
  animation-delay: -4s;
}

/* ══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════════ */
.flex          { display:flex; }
.flex-col      { flex-direction:column; }
.items-center  { align-items:center; }
.justify-center{ justify-content:center; }
.gap-2         { gap:8px; }
.gap-3         { gap:12px; }
.gap-4         { gap:16px; }
.mt-2          { margin-top:8px; }
.mt-3          { margin-top:12px; }
.mb-2          { margin-bottom:8px; }
.mb-3          { margin-bottom:12px; }
.mb-4          { margin-bottom:16px; }
.fw-bold       { font-weight:700; }
.text-sm       { font-size:13px; }
.text-center   { text-align:center; }
.text-accent   { color:var(--accent); }
.text-secondary{ color:var(--text3); }
.animate-in    { animation:fadeInUp .5s cubic-bezier(.4,0,.2,1) both; }
.fade-in       { animation:fadeIn .4s ease both; }
.slide-up      { animation:slideUp .5s cubic-bezier(.4,0,.2,1) both; }
.flex-1        { flex:1; }
.req           { color:var(--red); }

/* ══════════════════════════════════════════════════════════════
   LOADING SPINNER
   ══════════════════════════════════════════════════════════════ */
.loading-spin {
  display:inline-block; width:18px; height:18px;
  border:2px solid rgba(255,255,255,.3);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .7s linear infinite;
  vertical-align:middle;
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 20px; border-radius:var(--r-sm); border:none; cursor:pointer;
  font-family:inherit; font-size:14px; font-weight:600;
  transition:var(--tr); position:relative; overflow:hidden;
  white-space:nowrap; user-select:none;
}
.btn::after {
  content:''; position:absolute; inset:0;
  background:rgba(255,255,255,0); transition:var(--tr);
}
.btn:hover::after { background:rgba(255,255,255,.1); }
.btn:active { transform:scale(.97); }
.btn-primary {
  background:var(--grad-primary);
  color:#fff;
  box-shadow:0 4px 16px rgba(37,99,235,.35);
}
.btn-primary:hover { box-shadow:0 6px 24px rgba(37,99,235,.5); transform:translateY(-1px); }
.btn-secondary {
  background:var(--bg2); color:var(--text2);
  border:1px solid var(--border);
}
.btn-secondary:hover { background:var(--bg3); border-color:var(--border2); }
.btn-ghost {
  background:transparent; color:var(--text2);
  border:1px solid var(--border);
}
.btn-ghost:hover { background:var(--bg2); color:var(--text); }
.btn-danger {
  background:linear-gradient(135deg,#dc2626,#ef4444);
  color:#fff;
  box-shadow:0 4px 12px rgba(239,68,68,.3);
}
.btn-danger:hover { box-shadow:0 6px 20px rgba(239,68,68,.5); transform:translateY(-1px); }
.btn-success {
  background:var(--grad-success);
  color:#fff;
  box-shadow:0 4px 12px rgba(16,185,129,.3);
}
.btn-success:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(16,185,129,.5); }
.btn-outline {
  background:transparent; color:var(--accent);
  border:1.5px solid var(--accent);
}
.btn-outline:hover { background:var(--accent-light); }
.btn-full { width:100%; }
.btn-sm { padding:7px 14px; font-size:13px; }
.btn-lg { padding:14px 28px; font-size:15px; font-weight:700; }
.btn-icon { padding:8px; width:38px; height:38px; border-radius:var(--r-sm); }
.btn:disabled {
  opacity:.6; cursor:not-allowed; transform:none !important;
  box-shadow:none !important;
}

/* ══════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom:18px; }
.form-group label {
  display:flex; align-items:center; gap:7px;
  font-size:13px; font-weight:700; color:var(--text2);
  margin-bottom:8px;
}
.form-group label i { color:var(--accent); font-size:12px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field-wrap { position:relative; }
.field-wrap input,
.field-wrap select,
.field-wrap textarea {
  width:100%; padding:11px 14px;
  background:var(--bg2); border:1.5px solid var(--border);
  border-radius:var(--r-sm); color:var(--text);
  font-family:inherit; font-size:16px; /* 16px+ prevents iOS Safari auto-zoom */
  transition:var(--tr);
  outline:none;
}
/* RTL: أيقونة على اليمين → مساحة من اليمين */
.field-wrap.has-icon input,
.field-wrap.has-icon select { padding-right:42px; }
/* LTR: أيقونة على اليسار → مساحة من اليسار */
body:not([dir]) .field-wrap.has-icon input,
[dir=ltr] .field-wrap.has-icon input { padding-right:14px; padding-left:42px; }
/* حقول الأرقام: إخفاء أسهم spinner لتجنب تداخلها مع الأيقونة */
.field-wrap.has-icon input[type=number] { -moz-appearance:textfield; }
.field-wrap.has-icon input[type=number]::-webkit-outer-spin-button,
.field-wrap.has-icon input[type=number]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
/* حقل الهاتف: نص من اليسار دائماً (الأرقام والرموز) */
.field-wrap.has-icon input[type=tel],
.field-wrap.has-icon input[dir=ltr] { direction:ltr; text-align:right; }
[dir=ltr] .field-wrap.has-icon input[type=tel] { text-align:left; }
.field-wrap input:focus,
.field-wrap select:focus,
.field-wrap textarea:focus {
  border-color:var(--accent);
  background:#fff;
  box-shadow:0 0 0 3px rgba(37,99,235,.1);
}
.field-wrap input::placeholder,
.field-wrap textarea::placeholder { color:var(--text4); }
.field-icon {
  position:absolute; top:50%; transform:translateY(-50%);
  right:13px; color:var(--text4); font-size:14px; pointer-events:none;
  z-index:2; background:transparent;
}
[dir=ltr] .field-icon { right:auto; left:13px; }
.has-pass input { padding-left:80px; }
[dir=ltr] .has-pass input { padding-left:80px; padding-right:40px; }
.pass-toggle {
  position:absolute; top:50%; transform:translateY(-50%);
  left:10px; background:none; border:none; cursor:pointer;
  color:var(--text4); padding:6px; font-size:15px;
  transition:var(--tr);
}
[dir=ltr] .pass-toggle { left:auto; right:10px; }
.pass-toggle:hover { color:var(--accent); }
.form-error {
  display:none; align-items:center; gap:8px;
  padding:10px 14px; border-radius:var(--r-sm);
  background:rgba(239,68,68,.08); border:1px solid rgba(239,68,68,.2);
  color:var(--red); font-size:13px; margin-bottom:14px;
}
.form-error.show { display:flex; animation:fadeInDown .3s ease; }
.form-success {
  display:none; align-items:center; gap:8px;
  padding:10px 14px; border-radius:var(--r-sm);
  background:rgba(16,185,129,.08); border:1px solid rgba(16,185,129,.2);
  color:var(--green); font-size:13px; margin-bottom:14px;
}
.form-success.show { display:flex; animation:fadeInDown .3s ease; }
.form-error i,.form-success i { flex-shrink:0; font-size:15px; }
textarea.field-wrap { min-height:100px; resize:vertical; }
.field-wrap textarea { padding:12px 14px; min-height:90px; resize:vertical; }
select option { background:var(--card); color:var(--text); }

/* ══════════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════════ */
.badge {
  display:inline-flex; align-items:center; gap:4px;
  padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700;
}
.badge-blue    { background:rgba(37,99,235,.1); color:var(--accent); }
.badge-green   { background:var(--green-light); color:var(--green); }
.badge-red     { background:var(--red-light); color:var(--red); }
.badge-gold    { background:var(--gold-light); color:var(--gold); }
.badge-purple  { background:var(--purple-light); color:var(--purple); }
.badge-gray    { background:var(--bg3); color:var(--text3); }
.verify-badge  {
  display:inline-flex; align-items:center; gap:4px;
  padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700;
}
.verified   { background:var(--green-light); color:var(--green); }
.unverified { background:var(--red-light); color:var(--red); }

/* ══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════════ */
.toast-container {
  position:fixed; bottom:24px;
  right:24px; /* default RTL */
  z-index:9999; display:flex; flex-direction:column; gap:8px;
  pointer-events:none;
}
[dir=ltr] .toast-container { right:auto; left:24px; }
.toast {
  display:flex; align-items:center; gap:10px;
  padding:12px 18px; border-radius:var(--r);
  background:var(--card); box-shadow:var(--shadow-lg);
  border:1px solid var(--border);
  min-width:260px; max-width:360px;
  pointer-events:all; animation:toastSlide .4s cubic-bezier(.4,0,.2,1);
  font-size:13px; font-weight:600;
}
.toast.toast-success { border-right:4px solid var(--green); }
.toast.toast-error   { border-right:4px solid var(--red); }
.toast.toast-info    { border-right:4px solid var(--accent); }
[dir=ltr] .toast.toast-success { border-right:none; border-left:4px solid var(--green); }
[dir=ltr] .toast.toast-error   { border-right:none; border-left:4px solid var(--red); }
[dir=ltr] .toast.toast-info    { border-right:none; border-left:4px solid var(--accent); }

/* ══════════════════════════════════════════════════════════════
   TOP BUTTONS (lang/theme)
   ══════════════════════════════════════════════════════════════ */
.top-controls {
  display:flex; align-items:center; gap:8px;
}
.top-btn {
  display:inline-flex; align-items:center; gap:5px;
  padding:6px 12px; border-radius:var(--r-sm);
  background:rgba(255,255,255,.85); border:1px solid rgba(255,255,255,.4);
  backdrop-filter:blur(8px);
  color:var(--text2); font-size:12px; font-weight:700;
  cursor:pointer; transition:var(--tr);
  box-shadow:var(--shadow-sm);
}
.top-btn:hover { background:#fff; transform:translateY(-1px); box-shadow:var(--shadow); }
.top-btn i { font-size:12px; }

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════════════════════════ */

.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 70px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,.5);
  transition: var(--transition);
}
.landing-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  background: rgba(255,255,255,.98);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: var(--accent);
  text-decoration: none;
}
.logo i { font-size: 22px; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Language/Theme Buttons */
.lang-btn, .theme-btn {
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text2); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.lang-btn:hover, .theme-btn:hover { background: var(--bg3); color: var(--accent); }

/* Hero Section */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  padding: 90px 40px 60px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 10% -5%, rgba(37,99,235,.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 100%, rgba(8,145,178,.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(139,92,246,.05) 0%, transparent 60%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}
.hero-section::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
/* Animated blobs in hero */
.hero-section::after {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.08), transparent 70%);
  top: -150px; right: -150px; z-index: 0;
  animation: blobAnim 12s ease-in-out infinite;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero-content { animation: fadeInRight .8s ease both; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(8,145,178,.08));
  color: var(--accent);
  font-size: 13px; font-weight: 700; margin-bottom: 24px;
  border: 1px solid rgba(37,99,235,.2);
  box-shadow: 0 4px 16px rgba(37,99,235,.12);
  animation: fadeInDown .6s ease both;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(16,185,129,.6);
  animation: pulse 2s infinite;
}
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 900; line-height: 1.15;
  color: var(--text); margin-bottom: 20px;
  animation: fadeInUp .7s ease .1s both;
}
.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradShift 4s ease infinite;
}
.hero-sub {
  font-size: 17px; color: var(--text3); line-height: 1.85; margin-bottom: 36px; max-width: 500px;
  animation: fadeInUp .7s ease .2s both;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  animation: fadeInUp .7s ease .3s both;
}
.hero-cta .btn-primary {
  background: var(--gradient-primary);
  box-shadow: 0 6px 24px rgba(37,99,235,.4);
  padding: 14px 28px; font-size: 15px; font-weight: 800;
}
.hero-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(37,99,235,.5);
}
.hero-cta .btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 13px 24px; font-size: 15px;
}
.hero-cta .btn-outline:hover {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
}
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  animation: fadeInLeft .8s ease .2s both;
  position: relative;
}

/* Medical Globe Animation */
.medical-globe {
  position: relative; width: 380px; height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.globe-core {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(37,99,235,.5), 0 0 120px rgba(37,99,235,.25), 0 0 0 20px rgba(37,99,235,.08);
  animation: glow 4s ease-in-out infinite, float 6s ease-in-out infinite;
  position: relative; z-index: 2;
}
.globe-core i { font-size: 60px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.3)); }
.globe-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(37,99,235,.25);
  animation: float 8s ease-in-out infinite;
}
.globe-ring:nth-child(2) {
  inset: 25px;
  border-color: rgba(37,99,235,.35);
  border-style: solid;
  border-width: 1px;
  animation: float 10s ease-in-out infinite reverse;
}
.globe-ring:nth-child(3) {
  inset: 55px;
  border-color: rgba(8,145,178,.4);
  border-style: dashed;
  animation: float 7s ease-in-out infinite 1s;
}
.orbit-icon {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(37,99,235,.2);
  box-shadow: 0 4px 16px rgba(37,99,235,.25), 0 2px 8px rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; animation: orbit 8s linear infinite;
  transform-origin: 180px center;
}
.orbit-icon:nth-child(5) { animation-duration: 12s; animation-delay: -4s; transform-origin: 150px center; animation-name: orbit2; }
.orbit-icon:nth-child(6) { animation-duration: 10s; animation-delay: -8s; }
.orbit-icon:nth-child(7) { animation-duration: 14s; animation-delay: -2s; transform-origin: 160px center; animation-name: orbit2; }

/* Stats Bar */
.stats-bar {
  background: var(--gradient-primary);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(37,99,235,.3); padding: 4px 8px;
  display: flex; justify-content: space-around;
  max-width: 900px; margin: 0 auto; margin-top: 60px;
  animation: slideUp .8s ease .4s both;
  position: relative; overflow: hidden;
}
.stats-bar::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.15) 0%, transparent 60%),
              radial-gradient(circle at 80% 50%, rgba(255,255,255,.1) 0%, transparent 60%);
}
.stat-item {
  padding: 22px 24px; text-align: center; flex: 1;
  border-inline-start: 1px solid rgba(255,255,255,.2); position: relative; z-index: 1;
}
.stat-item:first-child { border-inline-start: none; }
.stat-num {
  font-size: 28px; font-weight: 900; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.stat-lbl { font-size: 12px; color: rgba(255,255,255,.85); font-weight: 600; margin-top: 3px; }

/* Flag Marquee */
.flags-section {
  padding: 24px 0; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  margin: 40px 0;
}
.flags-track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee-rtl 25s linear infinite;
}
.flag-badge {
  display: flex; align-items: center; gap: 8px; padding: 9px 18px;
  background: #fff; border-radius: 30px;
  border: 1px solid rgba(37,99,235,.15);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37,99,235,.1);
  transition: var(--transition);
}
.flag-badge:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(37,99,235,.2); }
.flag-badge span:first-child { font-size: 22px; }

/* Why Us Section */
.section-wrapper { padding: 80px 40px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; padding: 6px 20px; border-radius: 20px;
  background: var(--accent-light); color: var(--accent); font-size: 13px; font-weight: 700;
  margin-bottom: 16px; letter-spacing: .5px;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; color: var(--text); margin-bottom: 14px; }
.section-subtitle { font-size: 16px; color: var(--text3); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* Feature Cards */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; transition: var(--transition); position: relative; overflow: hidden;
  animation: fadeIn .5s ease both;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--gradient-primary); opacity: 0; transition: var(--transition);
}
.feature-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient-primary);
  opacity: 0; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(37,99,235,.15); border-color: rgba(37,99,235,.3); }
.feature-card:hover::before { opacity: .04; }
.feature-card:hover::after { opacity: 1; }
.fc-icon-wrap {
  width: 60px; height: 60px; border-radius: var(--radius); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  position: relative; z-index: 1;
  transition: var(--transition);
}
.feature-card:hover .fc-icon-wrap { transform: scale(1.1) rotate(5deg); }
.fc-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; position: relative; z-index: 1; }
.fc-desc { font-size: 13px; color: var(--text3); line-height: 1.7; position: relative; z-index: 1; }

/* Specialties */
.specs-section { padding: 80px 40px; background: var(--bg2); }
.specs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px;
  max-width: 1000px; margin: 0 auto;
}
.spec-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 12px; text-align: center; cursor: pointer; transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  position: relative; overflow: hidden;
}
.spec-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-primary); opacity: 0; transition: var(--transition);
}
.spec-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(37,99,235,.2); }
.spec-card:hover::before { opacity: .05; }
.spec-icon {
  font-size: 30px; margin-bottom: 10px;
  display: block; transition: var(--transition);
  position: relative; z-index: 1;
}
.spec-card:hover .spec-icon { transform: scale(1.2) rotate(-5deg); }
.spec-card .name {
  font-size: 13px; font-weight: 600; color: var(--text2);
  position: relative; z-index: 1;
}

/* Landing Footer */
.landing-footer {
  background: #0f172a; color: rgba(255,255,255,.7); text-align: center;
  padding: 36px; font-size: 14px;
}
.landing-footer .logo { color: #fff; justify-content: center; margin-bottom: 12px; }
.landing-footer a { color: rgba(255,255,255,.5); text-decoration: none; }
.landing-footer a:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════════
   AUTH PAGES (Login / Register / Verify)
   ══════════════════════════════════════════════════════════════ */
.auth-page {
  min-height:100vh; display:flex; align-items:stretch;
  position:relative; overflow:hidden;
}

/* Left Decorative Panel */
.auth-left {
  width:420px; flex-shrink:0;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 40%, #0891b2 100%);
  display:flex; flex-direction:column; justify-content:center;
  padding:48px 40px; position:relative; overflow:hidden;
}
.auth-left::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.08) 0%, transparent 50%);
  pointer-events: none;
}
.auth-left::after {
  content:''; position:absolute;
  width:400px; height:400px; border-radius:50%;
  background:rgba(255,255,255,.07);
  bottom:-150px; right:-100px;
  animation:blobAnim 10s ease-in-out infinite;
}
.auth-left .auth-left-blob2 {
  position:absolute;
  width:200px; height:200px; border-radius:50%;
  background:rgba(255,255,255,.05);
  top:-60px; left:-60px;
  animation:blobAnim 14s ease-in-out infinite reverse;
}
.auth-left.owner-mode  { background: linear-gradient(135deg, #78350f, #b45309, #d97706); }
.auth-left.staff-mode  { background: linear-gradient(135deg, #3b0764, #6d28d9, #7c3aed); }
.auth-left-inner { position:relative; z-index:1; }
.auth-left-logo {
  width:90px; height:90px; border-radius:24px; margin-bottom:28px;
  background:rgba(255,255,255,.18); border:2px solid rgba(255,255,255,.35);
  display:flex; align-items:center; justify-content:center;
  font-size:42px; color:#fff;
  box-shadow:0 12px 40px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.3);
  animation:float 6s ease-in-out infinite;
  backdrop-filter:blur(8px);
}
.auth-left h2 {
  color:#fff; font-size:28px; font-weight:900; margin-bottom:10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.auth-left p {
  color:rgba(255,255,255,.85); font-size:14px; line-height:1.8;
  margin-bottom:28px;
}
.auth-left-features { display:flex; flex-direction:column; gap:14px; }
.auth-left-feat {
  display:flex; align-items:center; gap:12px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2);
  border-radius:var(--r); padding:12px 16px;
  transition:var(--tr); backdrop-filter:blur(4px);
}
.auth-left-feat:hover {
  background:rgba(255,255,255,.2); transform:translateX(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
[dir=ltr] .auth-left-feat:hover { transform:translateX(4px); }
.alf-icon {
  width:38px; height:38px; border-radius:10px;
  background:rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:17px; flex-shrink:0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.alf-text { color:rgba(255,255,255,.95); font-size:13px; font-weight:600; }
.auth-top-controls { position:absolute; top:20px; left:20px; z-index:10; }
[dir=ltr] .auth-top-controls { left:auto; right:20px; }
.secret-hint {
  display:flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2);
  border-radius:var(--r); padding:10px 14px;
  color:rgba(255,255,255,.9); font-size:12px; font-weight:600;
  margin-top:16px;
  backdrop-filter:blur(4px);
}
.secret-hint i { font-size:13px; }

/* Right Form Panel */
.auth-right {
  flex:1; display:flex; align-items:center; justify-content:center;
  padding:48px 40px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(37,99,235,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(8,145,178,.04) 0%, transparent 60%),
    var(--bg);
  position:relative;
}
.auth-right::before {
  content:''; position:absolute; inset:0; z-index:0;
  background-image:
    linear-gradient(rgba(37,99,235,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events:none;
}
.auth-form-wrap {
  width:100%; max-width:420px; position:relative; z-index:1;
  animation:slideUp .5s cubic-bezier(.4,0,.2,1) both;
}
.auth-form-header { margin-bottom:32px; }
.auth-form-logo {
  display:flex; align-items:center; gap:10px; margin-bottom:24px;
}
.auth-form-logo-icon {
  width:44px; height:44px; border-radius:12px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 16px rgba(37,99,235,.4);
  animation: float 5s ease-in-out infinite;
}
.auth-form-logo-icon i { color:#fff; font-size:18px; }
.auth-form-logo-text { font-size:16px; font-weight:800; color:var(--text); }
.auth-form-title {
  font-size:26px; font-weight:900; color:var(--text); margin-bottom:6px;
}
.auth-form-sub { font-size:14px; color:var(--text3); }
.auth-hint {
  text-align:center; margin-top:16px;
  font-size:13px; color:var(--text3);
}
.auth-hint a { color:var(--accent); font-weight:700; }
.auth-hint a:hover { text-decoration:underline; }
.divider-text {
  text-align:center; position:relative; margin:20px 0;
  color:var(--text4); font-size:12px;
}
.divider-text::before,.divider-text::after {
  content:''; position:absolute; top:50%;
  width:calc(50% - 24px); height:1px; background:var(--border);
}
.divider-text::before { right:0; }
[dir=ltr] .divider-text::before { right:auto; left:0; }
.divider-text::after  { left:0; }
[dir=ltr] .divider-text::after  { left:auto; right:0; }

/* ── Registration Page ────────────────────────────────────── */
.reg-page {
  min-height:100vh; display:flex; flex-direction:column;
  align-items:center; justify-content:flex-start;
  padding:80px 20px 40px;
  position:relative;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37,99,235,.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(8,145,178,.05) 0%, transparent 60%),
    var(--bg2);
}
.reg-page::before {
  content:''; position:absolute; inset:0; z-index:0;
  background-image:
    linear-gradient(rgba(37,99,235,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.03) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events:none;
}
.reg-header { text-align:center; margin-bottom:32px; position:relative; z-index:1; }
.reg-logo-icon {
  width:84px; height:84px; border-radius:22px; margin:0 auto 16px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  display:flex; align-items:center; justify-content:center;
  font-size:38px; color:#fff;
  box-shadow:0 12px 40px rgba(37,99,235,.45), inset 0 1px 0 rgba(255,255,255,.3);
  animation:float 5s ease-in-out infinite;
}
.reg-header h1 { font-size:26px; font-weight:900; color:var(--text); margin-bottom:4px; }
.reg-header p  { font-size:14px; color:var(--text3); }

/* Step Indicator */
.steps-wrap {
  display:flex; align-items:center; gap:0;
  margin-bottom:32px; background:var(--card);
  border:1px solid var(--border); border-radius:var(--r-lg);
  padding:16px 24px; box-shadow:var(--shadow);
  position:relative; z-index:1;
  width:100%; max-width:540px;
}
.step-item {
  display:flex; align-items:center; gap:10px;
  flex:1; position:relative;
}
.step-item:not(:last-child)::after {
  content:''; position:absolute;
  left:0; top:50%; transform:translateY(-50%);
  width:100%; height:2px;
  background:var(--border); z-index:0;
}
[dir=ltr] .step-item:not(:last-child)::after { left:auto; right:0; }
.step-item.done::after { background:var(--green); }
.step-item.active::after { background:linear-gradient(90deg, var(--accent), var(--border)); }
.step-num {
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:800; flex-shrink:0;
  border:2px solid var(--border); background:var(--bg2);
  color:var(--text3); position:relative; z-index:1;
  transition:var(--tr);
}
.step-num i { font-size:13px; }
.step-item.active .step-num {
  border-color:var(--accent); background: linear-gradient(135deg,#2563eb,#0891b2); color:#fff;
  box-shadow:0 4px 16px rgba(37,99,235,.45);
  animation: glow 3s ease-in-out infinite;
}
.step-item.done .step-num {
  border-color:var(--green); background: linear-gradient(135deg,#059669,#10b981); color:#fff;
  box-shadow:0 4px 12px rgba(16,185,129,.35);
}
.step-label {
  font-size:12px; font-weight:700; color:var(--text4);
  transition:var(--tr);
}
.step-item.active .step-label { color:var(--accent); }
.step-item.done  .step-label { color:var(--green); }
.reg-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-xl); padding:32px;
  box-shadow: 0 16px 48px rgba(0,0,0,.08), 0 4px 16px rgba(37,99,235,.06);
  width:100%; max-width:540px;
  position:relative; z-index:1;
  animation: slideUp .5s ease both;
}
.step-desc {
  font-size:13px; color:var(--text3); margin-bottom:20px; margin-top:6px;
}
.spec-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px;
  margin-bottom:16px;
}
.spec-btn {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:14px 8px; border-radius:var(--r);
  background:var(--bg2); border:2px solid var(--border);
  cursor:pointer; transition:var(--tr);
  font-family:inherit; font-size:12px; font-weight:700; color:var(--text2);
  text-align:center;
}
.spec-btn:hover {
  border-color:var(--accent); background:var(--accent-light);
  transform:translateY(-3px); box-shadow:0 6px 16px rgba(37,99,235,.15);
}
.spec-btn.selected {
  border-color:var(--accent);
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(8,145,178,.08));
  color:var(--accent);
  box-shadow:0 0 0 3px rgba(37,99,235,.15);
}
.spec-btn .emoji { font-size:26px; display:block; transition:var(--tr); }
.spec-btn:hover .emoji { transform: scale(1.2) rotate(-5deg); }
.sub-spec-wrap { margin-top:16px; padding-top:16px; border-top:1px solid var(--border); }

/* ── Verify Page ─────────────────────────────────────────── */
.verify-page {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:24px;
  position:relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(37,99,235,.08) 0%, transparent 60%),
    var(--bg);
}
.verify-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-xl); padding:52px 44px;
  max-width:500px; width:100%; text-align:center;
  box-shadow: 0 20px 60px rgba(0,0,0,.1), 0 4px 16px rgba(37,99,235,.08);
  animation:slideUp .5s cubic-bezier(.4,0,.2,1) both;
  position:relative; overflow:hidden;
}
.verify-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, #2563eb, #0891b2, #10b981);
}
.verify-icon {
  font-size:80px; margin-bottom:24px; display:block;
  animation:float 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(37,99,235,.3));
}
.verify-icon.success { color:var(--green); filter: drop-shadow(0 8px 16px rgba(16,185,129,.4)); }
.verify-icon.pending { color:var(--accent); filter: drop-shadow(0 8px 16px rgba(37,99,235,.4)); animation: glow 3s ease-in-out infinite, float 4s ease-in-out infinite; }
.verify-icon.fail    { color:var(--red); filter: drop-shadow(0 8px 16px rgba(239,68,68,.4)); }
.verify-card h2 { font-size:26px; font-weight:900; color:var(--text); margin-bottom:10px; }
.verify-card p  { font-size:14px; color:var(--text3); line-height:1.8; margin-bottom:24px; }
.verify-email-box {
  display:flex; align-items:center; gap:8px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(8,145,178,.06));
  border:1px solid rgba(37,99,235,.2);
  border-radius:var(--r); padding:12px 16px; margin-bottom:20px;
  font-size:13px; color:var(--accent); font-weight:600;
}

/* ══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ══════════════════════════════════════════════════════════════ */
.dash-layout {
  display:flex; min-height:100vh;
  background:var(--bg2);
}

/* Sidebar */
.sidebar {
  width:var(--sidebar-w); flex-shrink:0;
  position:fixed; top:0; right:0; bottom:0; z-index:200;
  background:var(--card);
  border-left:1px solid var(--border);
  display:flex; flex-direction:column;
  overflow-y:auto; overflow-x:hidden;
  transition:transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow:var(--shadow-md);
}
[dir=ltr] .sidebar { right:auto; left:0; border-left:none; border-right:1px solid var(--border); }
.sidebar-overlay {
  display:none; position:fixed; inset:0; z-index:199;
  background:rgba(0,0,0,.5); backdrop-filter:blur(4px);
  transition:opacity .3s ease;
}
.sidebar-overlay.show { display:block; animation:fadeIn .3s ease; }

/* Sidebar Logo */
.sidebar-logo {
  display:flex; align-items:center; gap:12px;
  padding:20px 20px 16px;
  border-bottom:1px solid var(--border);
}
.sidebar-logo-icon {
  width:44px; height:44px; border-radius:12px;
  background:var(--grad-primary);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 16px rgba(37,99,235,.35);
  flex-shrink:0;
}
.sidebar-logo-icon i { color:#fff; font-size:18px; }
.sidebar-logo-text {
  font-size:15px; font-weight:900; color:var(--text); line-height:1.4;
}
.sidebar-logo-text small { font-size:11px; font-weight:500; color:var(--text3); display:block; }

/* Sidebar User Card */
.sidebar-user-card {
  display:flex; align-items:center; gap:12px;
  padding:16px 20px; margin:12px 12px 4px;
  background:linear-gradient(135deg,var(--accent-light),var(--purple-light));
  border:1px solid rgba(37,99,235,.15);
  border-radius:var(--r-lg);
}
.suc-avatar {
  width:44px; height:44px; border-radius:12px;
  background:var(--grad-primary); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; font-weight:800; flex-shrink:0;
  box-shadow:0 4px 12px rgba(37,99,235,.3);
}
.suc-name { font-size:14px; font-weight:800; color:var(--text); }
.suc-stars { font-size:13px; color:var(--gold); margin:2px 0; }

/* Sidebar Nav */
.sidebar-nav { flex:1; padding:12px 10px; }
.nav-section {
  font-size:10px; font-weight:800; color:var(--text4);
  text-transform:uppercase; letter-spacing:.1em;
  padding:8px 10px 6px; margin-top:8px;
}
.nav-item {
  display:flex; align-items:center; gap:12px;
  padding:11px 14px; border-radius:var(--r);
  cursor:pointer; transition:var(--tr);
  color:var(--text2); font-size:14px; font-weight:600;
  position:relative; margin-bottom:2px;
}
.nav-item i { width:20px; text-align:center; font-size:16px; color:var(--text4); flex-shrink:0; }
.nav-item:hover {
  background:var(--accent-light); color:var(--accent);
}
.nav-item:hover i { color:var(--accent); }
.nav-item.active {
  background:var(--grad-primary); color:#fff;
  box-shadow:0 4px 16px rgba(37,99,235,.35);
}
.nav-item.active i { color:#fff; }
.nav-badge {
  margin-right:auto; min-width:20px; height:20px; padding:0 6px;
  border-radius:10px; background:var(--red); color:#fff;
  font-size:10px; font-weight:800;
  display:flex; align-items:center; justify-content:center;
  animation:notifPop .4s cubic-bezier(.4,0,.2,1);
}
[dir=ltr] .nav-badge { margin-right:0; margin-left:auto; }
.nav-item.active .nav-badge { background:rgba(255,255,255,.25); }

/* Sidebar Footer */
.sidebar-footer {
  padding:16px 12px;
  border-top:1px solid var(--border);
  display:flex; flex-direction:column; gap:8px;
}

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  height:var(--topbar-h); padding:0 24px;
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(255,255,255,.9); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:100;
  box-shadow:var(--shadow-sm);
}
.topbar-title {
  font-size:17px; font-weight:800; color:var(--text);
}
.mob-menu-btn {
  width:38px; height:38px; border-radius:var(--r-sm);
  background:var(--bg2); border:1px solid var(--border);
  display:none; align-items:center; justify-content:center;
  cursor:pointer; font-size:16px; color:var(--text2);
  transition:var(--tr);
}
.mob-menu-btn:hover { background:var(--accent-light); color:var(--accent); }
.topbar-actions {
  display:flex; align-items:center; gap:10px;
}
.notif-btn {
  width:38px; height:38px; border-radius:var(--r-sm);
  background:var(--bg2); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:16px; color:var(--text3);
  position:relative; transition:var(--tr);
}
.notif-btn:hover { background:var(--accent-light); color:var(--accent); }
.notif-dot {
  position:absolute; top:6px; right:6px;
  width:9px; height:9px; border-radius:50%;
  background:var(--red); border:2px solid var(--card);
  animation:notifPop .4s ease;
}
[dir=ltr] .notif-dot { right:auto; left:6px; }
.topbar-avatar {
  width:38px; height:38px; border-radius:var(--r-sm);
  background:var(--grad-primary); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:800;
  box-shadow:0 4px 12px rgba(37,99,235,.3);
}

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
  flex:1; margin-right:var(--sidebar-w);
  min-height:100vh; display:flex; flex-direction:column;
}
[dir=ltr] .main-content { margin-right:0; margin-left:var(--sidebar-w); }
.page-content { padding:24px; flex:1; }

/* ══════════════════════════════════════════════════════════════
   HOME SECTION
   ══════════════════════════════════════════════════════════════ */
.home-hero {
  display:flex; justify-content:space-between; align-items:center;
  padding:24px 28px; margin-bottom:20px;
  background:var(--grad-primary); border-radius:var(--r-xl);
  box-shadow:0 8px 32px rgba(37,99,235,.3);
  position:relative; overflow:hidden;
}
.home-hero::before {
  content:''; position:absolute; inset:0;
  background: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'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.home-greeting {
  font-size:22px; font-weight:900; color:#fff; position:relative; z-index:1;
}
.home-spec-badge,.home-cat-badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 10px; border-radius:16px;
  background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25);
  color:rgba(255,255,255,.9); font-size:12px; font-weight:600;
  margin-top:8px; position:relative; z-index:1;
}

/* Stats Grid */
.stats-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
}
.stat-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:18px 16px;
  display:flex; align-items:center; gap:14px;
  box-shadow:var(--shadow-sm); transition:var(--tr);
  position:relative; overflow:hidden;
}
.stat-card::before {
  content:''; position:absolute; bottom:0; left:0; right:0;
  height:3px; opacity:0; transition:var(--tr);
}
.stat-card.clickable:hover {
  transform:translateY(-4px); box-shadow:0 12px 32px rgba(37,99,235,.15);
  border-color:rgba(37,99,235,.2);
}
.stat-card.clickable:hover::before { opacity:1; }
.stat-icon {
  width:52px; height:52px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:24px;
  transition:var(--tr);
}
.stat-card:hover .stat-icon { transform:scale(1.1) rotate(5deg); }
.stat-info .val { font-size:24px; font-weight:900; }
.stat-info .lbl { font-size:12px; color:var(--text3); font-weight:600; margin-top:2px; }

/* Services */
.services-section-title {
  display:flex; align-items:center; gap:10px;
}
.services-section-title h3 { font-size:16px; font-weight:800; color:var(--text); }
.badge-count {
  padding:3px 10px; border-radius:12px;
  background:rgba(37,99,235,.1); color:var(--accent);
  font-size:12px; font-weight:800;
}
.services-pro-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px;
}
.service-card-pro {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:20px 18px;
  display:flex; align-items:center; gap:14px;
  position:relative; cursor:pointer; transition:var(--tr);
  box-shadow:0 2px 8px rgba(0,0,0,.04);
  overflow:hidden;
}
.service-card-pro::after {
  content:''; position:absolute; bottom:0; left:0; right:0;
  height:3px; background:var(--gradient-primary);
  opacity:0; transition:var(--tr);
}
.service-card-pro:hover {
  transform:translateY(-4px); box-shadow:0 12px 32px rgba(37,99,235,.15);
  border-color:rgba(37,99,235,.25);
}
.service-card-pro:hover::after { opacity:1; }
.service-card-pro.disabled { opacity:.6; cursor:default; }
.service-card-pro.disabled:hover { transform:none; box-shadow:0 2px 8px rgba(0,0,0,.04); }
.scp-icon {
  width:54px; height:54px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:26px;
  transition:var(--tr);
}
.service-card-pro:hover .scp-icon { transform:scale(1.1) rotate(-5deg); }
.scp-body { flex:1; min-width:0; }
.scp-name { font-size:14px; font-weight:800; color:var(--text); margin-bottom:4px; }
.scp-desc { font-size:12px; color:var(--text3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.scp-badge {
  position:absolute; top:12px; left:12px;
  padding:3px 9px; border-radius:12px; font-size:10px; font-weight:800;
}
[dir=ltr] .scp-badge { left:auto; right:12px; }
.scp-badge.active { background:var(--green-light); color:var(--green); }
.scp-badge.soon   { background:var(--gold-light); color:var(--gold); }

/* Alert Banners */
.alert-banner {
  display:flex; align-items:center; gap:12px;
  padding:12px 16px; border-radius:var(--r);
  font-size:13px; font-weight:600;
  animation:fadeInUp .4s ease;
}
.alert-warning { background:rgba(245,158,11,.08); border:1px solid rgba(245,158,11,.2); color:#92400e; }
.alert-info    { background:var(--accent-light); border:1px solid rgba(37,99,235,.2); color:var(--accent); }
.alert-success { background:var(--green-light); border:1px solid rgba(16,185,129,.2); color:#065f46; }
.alert-danger  { background:var(--red-light); border:1px solid rgba(239,68,68,.2); color:#991b1b; }

/* Profile Progress Bar */
.profile-progress-bar {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:18px 20px;
  margin-bottom:16px; box-shadow:var(--shadow-sm);
}
.progress-track {
  background:var(--bg2); border-radius:8px; height:8px; overflow:hidden;
}
.progress-fill {
  height:100%; border-radius:8px;
  background:var(--grad-primary);
  animation:progressFill 1s cubic-bezier(.4,0,.2,1) both;
  transition:width .6s ease;
}

/* ══════════════════════════════════════════════════════════════
   PROFILE SECTION
   ══════════════════════════════════════════════════════════════ */
.profile-header-card {
  background:var(--grad-primary); border-radius:var(--r-xl);
  margin-bottom:16px; overflow:hidden;
  box-shadow:0 8px 32px rgba(37,99,235,.3);
  position:relative;
}
.profile-header-card::before {
  content:''; position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='40' cy='40' r='40'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.profile-header-inner {
  display:flex; align-items:center; gap:24px;
  padding:32px 28px; position:relative; z-index:1;
}
.profile-avatar-large {
  width:88px; height:88px; border-radius:22px; flex-shrink:0;
  background:rgba(255,255,255,.2); border:3px solid rgba(255,255,255,.4);
  display:flex; align-items:center; justify-content:center;
  font-size:32px; font-weight:900; color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.2);
}
.profile-name     { font-size:22px; font-weight:900; color:#fff; margin-bottom:4px; }
.profile-reg      { font-size:12px; color:rgba(255,255,255,.7); margin-bottom:8px; }
.profile-badges   { display:flex; flex-wrap:wrap; gap:6px; }
.profile-spec-badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 10px; border-radius:14px;
  background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25);
  color:rgba(255,255,255,.9); font-size:11px; font-weight:700;
}
.profile-level-badge {
  padding:4px 10px; border-radius:14px;
  background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.3);
  color:#fff; font-size:11px; font-weight:800;
}
.profile-stars-display {
  margin-right:auto; text-align:center;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2);
  border-radius:var(--r-lg); padding:16px 24px;
}
[dir=ltr] .profile-stars-display { margin-right:0; margin-left:auto; }
.profile-stars-num { font-size:36px; font-weight:900; color:#fff; }
.profile-stars-lbl { font-size:12px; color:rgba(255,255,255,.7); font-weight:600; }

/* Info Cards */
.profile-info-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:16px;
}
.info-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:var(--tr);
}
.info-card:hover { box-shadow:var(--shadow); }
.info-card-header {
  display:flex; align-items:center; gap:10px;
  padding:14px 18px; border-bottom:1px solid var(--border);
  background:var(--bg2);
}
.info-card-header i { font-size:16px; color:var(--accent); }
.info-card-header h3 { font-size:14px; font-weight:800; color:var(--text); }
.info-card-body { padding:4px 0; }
.info-row {
  display:flex; align-items:center; gap:12px;
  padding:10px 18px; border-bottom:1px solid var(--border);
  transition:var(--tr);
}
.info-row:last-child { border-bottom:none; }
.info-row:hover { background:var(--bg2); }
.info-lbl { font-size:12px; color:var(--text4); font-weight:600; min-width:100px; }
.info-val { font-size:13px; font-weight:700; color:var(--text); word-break:break-word; }
.quick-actions {
  display:flex; flex-wrap:wrap; gap:10px;
  padding:20px; background:var(--card);
  border:1px solid var(--border); border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
}

/* ══════════════════════════════════════════════════════════════
   ACHIEVEMENTS SECTION
   ══════════════════════════════════════════════════════════════ */
.ach-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px;
}
.ach-card {
  background:var(--card); border:2px solid var(--border);
  border-radius:var(--r-lg); padding:20px 16px;
  text-align:center; transition:var(--tr); position:relative;
  overflow:hidden;
}
.ach-card.earned { border-color:var(--gold); background:linear-gradient(135deg,var(--card),rgba(245,158,11,.04)); }
.ach-card.earned:hover { transform:translateY(-4px); box-shadow:0 8px 32px rgba(245,158,11,.2); }
.ach-card.locked { opacity:.6; }
.ach-icon { font-size:48px; margin-bottom:10px; display:block; animation:starPulse 3s ease infinite; }
.ach-card.locked .ach-icon { filter:grayscale(1); animation:none; }
.ach-title { font-size:14px; font-weight:800; color:var(--text); margin-bottom:6px; }
.ach-desc  { font-size:12px; color:var(--text3); line-height:1.6; }
.ach-stars { font-size:12px; color:var(--gold); font-weight:800; margin-top:8px; }
.ach-badge {
  position:absolute; top:10px; right:10px;
  width:24px; height:24px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:12px;
}
[dir=ltr] .ach-badge { right:auto; left:10px; }
.ach-badge.earned-b { background:var(--green-light); color:var(--green); }
.ach-badge.locked-b { background:var(--bg3); color:var(--text4); }
.ach-stars-header {
  background:var(--grad-gold); border-radius:var(--r-xl);
  padding:20px 24px; margin-bottom:20px;
  display:flex; align-items:center; justify-content:space-between;
  box-shadow:0 8px 32px rgba(245,158,11,.3);
}
.ach-stars-header .big-num { font-size:48px; font-weight:900; color:#fff; }
.ach-stars-header .lbl     { font-size:13px; color:rgba(255,255,255,.8); }
.ach-level-info { text-align:center; background:rgba(255,255,255,.15); border-radius:var(--r); padding:12px; }
.ach-level-info .level-name { font-size:18px; font-weight:900; color:#fff; }
.ach-level-info .level-pct  { font-size:24px; font-weight:900; color:#fff; }

/* ══════════════════════════════════════════════════════════════
   CERTIFICATES SECTION
   ══════════════════════════════════════════════════════════════ */
.cert-empty {
  text-align:center; padding:60px 24px;
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-xl); box-shadow:var(--shadow-sm);
}
.cert-empty-icon { font-size:72px; margin-bottom:16px; opacity:.5; }
.cert-empty h3  { font-size:20px; font-weight:800; color:var(--text); margin-bottom:8px; }
.cert-empty p   { font-size:14px; color:var(--text3); line-height:1.8; max-width:400px; margin:0 auto 24px; }

/* ══════════════════════════════════════════════════════════════
   NOTIFICATIONS SECTION
   ══════════════════════════════════════════════════════════════ */
.notif-list { display:flex; flex-direction:column; gap:10px; }
.notif-item {
  display:flex; gap:14px;
  padding:16px 18px; background:var(--card);
  border:1px solid var(--border); border-radius:var(--r-lg);
  transition:var(--tr); cursor:pointer;
}
.notif-item:hover { box-shadow:var(--shadow); background:var(--bg2); }
.notif-item.unread {
  border-right:3px solid var(--accent);
  background:rgba(37,99,235,.02);
}
[dir=ltr] .notif-item.unread { border-right:none; border-left:3px solid var(--accent); }
.notif-icon {
  width:44px; height:44px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:20px;
}
.notif-title { font-size:14px; font-weight:700; color:var(--text); margin-bottom:4px; }
.notif-body  { font-size:13px; color:var(--text3); line-height:1.6; }
.notif-time  { font-size:11px; color:var(--text4); margin-top:6px; }
.notif-empty {
  text-align:center; padding:48px 24px;
  color:var(--text4); font-size:14px;
}
.notif-empty i { font-size:48px; display:block; margin-bottom:12px; opacity:.4; }

/* ══════════════════════════════════════════════════════════════
   SETTINGS CARDS (Change Pwd, Email, Spec)
   ══════════════════════════════════════════════════════════════ */
.settings-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-xl); overflow:hidden;
  box-shadow:var(--shadow-sm); max-width:560px; margin:0 auto;
}
.settings-card-header {
  padding:20px 24px;
  background:var(--grad-primary);
  display:flex; align-items:center; gap:14px;
}
.settings-card-header i { font-size:24px; color:#fff; }
.settings-card-header h3 { font-size:18px; font-weight:800; color:#fff; }
.settings-card-body { padding:28px 24px; }

/* Spec Change Card */
.spec-change-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px;
  margin:16px 0;
}
.spec-change-item {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:16px 10px; border-radius:var(--r-lg);
  background:var(--bg2); border:2px solid var(--border);
  cursor:pointer; transition:var(--tr);
  font-family:inherit; font-size:12px; font-weight:700;
  color:var(--text2); text-align:center;
}
.spec-change-item:hover { border-color:var(--accent); background:var(--accent-light); transform:translateY(-2px); }
.spec-change-item.selected { border-color:var(--accent); background:var(--accent-light); color:var(--accent); box-shadow:0 0 0 3px rgba(37,99,235,.15); }
.spec-change-item .emoji { font-size:28px; }

/* ══════════════════════════════════════════════════════════════
   EDIT PROFILE SECTION
   ══════════════════════════════════════════════════════════════ */
.edit-profile-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-xl); overflow:hidden;
  box-shadow:var(--shadow); max-width:720px; margin:0 auto;
}
.edit-profile-header {
  padding:24px 28px;
  background:var(--grad-accent);
  display:flex; align-items:center; gap:14px;
}
.edit-profile-header i { font-size:24px; color:#fff; }
.edit-profile-header h3 { font-size:20px; font-weight:900; color:#fff; }
.edit-profile-body { padding:28px; }
.edit-section-title {
  font-size:14px; font-weight:800; color:var(--text3);
  text-transform:uppercase; letter-spacing:.08em;
  padding-bottom:8px; border-bottom:1px solid var(--border);
  margin-bottom:16px; margin-top:24px;
}
.edit-section-title:first-child { margin-top:0; }
.cv-item-card {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:var(--r); padding:14px 16px;
  margin-bottom:10px; display:flex; justify-content:space-between;
  align-items:flex-start; transition:var(--tr);
}
.cv-item-card:hover { border-color:var(--accent); background:var(--accent-light); }
.cv-item-title { font-size:14px; font-weight:700; color:var(--text); }
.cv-item-sub   { font-size:12px; color:var(--text3); margin-top:2px; }
.add-cv-btn {
  display:flex; align-items:center; gap:8px;
  padding:10px 16px; border-radius:var(--r);
  background:var(--bg2); border:2px dashed var(--border);
  cursor:pointer; transition:var(--tr);
  font-family:inherit; font-size:13px; font-weight:600; color:var(--text3);
  width:100%; justify-content:center;
}
.add-cv-btn:hover { border-color:var(--accent); background:var(--accent-light); color:var(--accent); }

/* ══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════════ */
.about-hero {
  padding:140px 5% 80px;
  background:var(--grad-hero);
  text-align:center; position:relative; overflow:hidden;
}
.about-hero::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 80% 60% at 50% -20%, rgba(37,99,235,.4), transparent);
}
.about-hero-content { position:relative; z-index:1; }
.about-hero h1 {
  font-size:clamp(32px,5vw,56px); font-weight:900; color:#fff;
  margin-bottom:16px; animation:fadeInDown .8s ease;
}
.about-hero h1 span {
  background:linear-gradient(90deg,#60a5fa,#a78bfa);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.about-hero p {
  font-size:18px; color:rgba(255,255,255,.7); max-width:600px;
  margin:0 auto 32px; line-height:1.8; animation:fadeInUp .8s ease .2s both;
}
.about-stats {
  display:grid; grid-template-columns:repeat(6,1fr);
  gap:16px; max-width:1200px; margin:0 auto;
  padding:0 5%; margin-top:-48px; position:relative; z-index:10;
}
.about-stat-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:20px 14px;
  text-align:center; box-shadow:var(--shadow-md);
  transition:var(--tr); animation:slideUp .5s cubic-bezier(.4,0,.2,1) both;
}
.about-stat-card:nth-child(2) { animation-delay:.1s; }
.about-stat-card:nth-child(3) { animation-delay:.2s; }
.about-stat-card:nth-child(4) { animation-delay:.3s; }
.about-stat-card:nth-child(5) { animation-delay:.4s; }
.about-stat-card:nth-child(6) { animation-delay:.5s; }
.about-stat-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.about-stat-icon {
  width:48px; height:48px; border-radius:12px;
  margin:0 auto 10px;
  display:flex; align-items:center; justify-content:center; font-size:22px;
}
.about-stat-num  { font-size:24px; font-weight:900; }
.about-stat-lbl  { font-size:11px; color:var(--text3); font-weight:600; margin-top:2px; }

/* ══════════════════════════════════════════════════════════════
   STAFF DASHBOARD CSS (inline override)
   ══════════════════════════════════════════════════════════════ */
/* Defined via STAFF_CSS constant in platform.js */

/* ══════════════════════════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════════════════════════ */
body.dark {
  --bg: #0f172a;
  --bg2: #1e293b;
  --bg3: #263348;
  --card: #1e293b;
  --border: #334155;
  --border2: #475569;
  --text: #f1f5f9;
  --text2: #cbd5e1;
  --text3: #94a3b8;
  --text4: #64748b;
  --accent-light: rgba(37,99,235,.12);
  --accent-glow: rgba(37,99,235,.3);
}
body.dark .auth-right { background:var(--bg); }
body.dark .topbar { background:rgba(30,41,59,.9); }
body.dark .landing-nav { background:rgba(15,23,42,.9); border-color:rgba(51,65,85,.4); }
body.dark .hero-bg { background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%); }
body.dark .stats-bar { background:linear-gradient(135deg,#1e3a5f,#0f172a); }
body.dark .feature-card:hover { border-color:rgba(37,99,235,.4); }
body.dark .field-wrap input,
body.dark .field-wrap select,
body.dark .field-wrap textarea {
  background:var(--bg3); border-color:var(--border); color:var(--text);
}
body.dark .field-wrap input:focus,
body.dark .field-wrap select:focus {
  background:var(--bg2); border-color:var(--accent);
}
body.dark .top-btn { background:rgba(30,41,59,.9); border-color:rgba(51,65,85,.5); color:var(--text2); }
body.dark .landing-footer { background:#020617; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Full Mobile/Tablet/iPad Support
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet Large (≤1024px) ── */
@media (max-width:1024px) {
  :root { --sidebar-w: 220px; }
  .auth-left { width:320px; padding:36px 24px; }
  .hero-content { grid-template-columns:1fr; text-align:center; gap:36px; }
  .hero-text { order:1; } .hero-visual { order:2; }
  .features-grid { grid-template-columns:repeat(2,1fr); }
  .specs-grid { grid-template-columns:repeat(3,1fr); }
  .stats-bar-inner { grid-template-columns:repeat(3,1fr); }
  .about-stats { grid-template-columns:repeat(3,1fr); }
  .sidebar { width:220px; }
  .main-content { margin-right:220px; }
  [dir=ltr] .main-content { margin-left:220px; margin-right:0; }
}

/* ── Tablet (≤768px) ── */
@media (max-width:768px) {
  :root { --sidebar-w: 0px; }

  /* Auth */
  .auth-left { display:none; }
  .auth-right { padding:28px 18px; }

  /* Sidebar: slide-in drawer */
  .sidebar {
    position:fixed; top:0; right:0; bottom:0;
    width:275px !important; z-index:1050;
    transform:translateX(110%);
    transition:transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow:-6px 0 32px rgba(0,0,0,.35);
  }
  [dir=ltr] .sidebar { right:auto; left:0; transform:translateX(-110%); }
  .sidebar.open { transform:translateX(0) !important; }
  [dir=ltr] .sidebar.open { transform:translateX(0) !important; }

  /* Overlay */
  .sidebar-overlay {
    display:none; position:fixed; inset:0;
    background:rgba(0,0,0,.5); z-index:1040;
    backdrop-filter:blur(2px);
  }
  .sidebar-overlay.show { display:block; animation:fadeIn .25s ease; }

  /* Topbar */
  .topbar { padding:0 14px; }
  .mob-menu-btn { display:flex !important; }
  .topbar-center { display:none !important; }

  /* Main content */
  .main-content { margin-right:0 !important; margin-left:0 !important; }
  .page-content { padding:14px; }

  /* Grids */
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .stats-bar-inner { grid-template-columns:repeat(2,1fr); }
  .features-grid { grid-template-columns:1fr; }
  .specs-grid { grid-template-columns:repeat(2,1fr); }
  .about-stats { grid-template-columns:repeat(2,1fr); }
  .form-row { grid-template-columns:1fr; }
  .profile-info-grid { grid-template-columns:1fr; }
  .service-cards-grid { grid-template-columns:repeat(2,1fr); }

  /* Typography */
  .hero-title { font-size:26px; line-height:1.3; }
  .home-greeting { font-size:20px; }

  /* Steps */
  .steps-wrap { gap:0; padding:10px 14px; }
  .step-label { display:none; }

  /* Globe decoration */
  .med-globe-wrap { width:220px; height:220px; }
  .med-globe { width:120px; height:120px; }
  .med-globe i { font-size:52px; }

  /* Achievements */
  .ach-grid { grid-template-columns:repeat(2,1fr); }

  /* Tables: horizontal scroll */
  .table-wrap, .data-table { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .data-table table { min-width:540px; }

  /* Modals */
  .modal-wrap, .modal-box {
    width:calc(100vw - 24px) !important;
    max-width:100% !important;
    max-height:88vh; overflow-y:auto;
    border-radius:18px !important;
    margin:0 auto;
  }

  /* Notifications dropdown */
  .notif-dropdown { width:calc(100vw - 24px); right:-8px; left:-8px; }
}

/* ── Mobile (≤480px) ── */
@media (max-width:480px) {
  .page-content { padding:12px; }
  .topbar { padding:0 12px; height:52px; }
  .auth-form-wrap { padding:0 2px; }
  .auth-right { padding:20px 14px; }
  .home-hero { padding:16px; }
  .home-greeting { font-size:18px; }
  .stats-grid { grid-template-columns:1fr 1fr; gap:10px; }
  .stat-card { padding:14px 12px; }
  .reg-card { padding:18px 14px; }
  .verify-card { padding:28px 16px; }
  .spec-grid { grid-template-columns:repeat(2,1fr); }
  .about-stats { grid-template-columns:repeat(2,1fr); }
  .ach-grid { grid-template-columns:1fr; }
  .profile-header-inner { flex-direction:column; text-align:center; }
  .profile-stars-display { margin:0 auto; }
  .sidebar { width:88vw !important; max-width:300px; }
  .hero-title { font-size:22px; }
  .service-cards-grid { grid-template-columns:1fr; }
  .modal-wrap, .modal-box { width:calc(100vw - 16px) !important; border-radius:14px !important; }
}

/* ── Very Small (≤380px) ── */
@media (max-width:380px) {
  .stats-grid { grid-template-columns:1fr; }
  .topbar { padding:0 10px; }
  .home-greeting { font-size:16px; }
  .page-content { padding:10px; }
}

/* ── iPad/Tablet Landscape (768px–1024px) ── */
@media (min-width:768px) and (max-width:1024px) {
  .service-cards-grid { grid-template-columns:repeat(3,1fr); }
  .specs-grid { grid-template-columns:repeat(3,1fr); }
  .stats-grid { grid-template-columns:repeat(3,1fr); }
}


/* ══════════════════════════════════════════════════════════════
   REGISTRATION STEP EXTRAS
   ══════════════════════════════════════════════════════════════ */
.reg-step-header {
  display:flex; align-items:center; gap:14px;
  margin-bottom:20px; padding-bottom:18px;
  border-bottom:1px solid var(--border);
}
.reg-step-header h3 { font-size:18px; font-weight:900; color:var(--text); margin-bottom:4px; }
.reg-step-header p  { font-size:13px; color:var(--text3); }
.reg-step-icon {
  width:52px; height:52px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:22px;
}
.reg-step-icon.blue   { background:rgba(37,99,235,.12); color:var(--accent); }
.reg-step-icon.purple { background:var(--purple-light); color:var(--purple); }
.reg-step-icon.green  { background:var(--green-light); color:var(--green); }
.step-connector {
  flex:1; height:3px; background:var(--border);
  border-radius:2px; overflow:hidden; min-width:20px;
}
.step-connector-fill {
  height:100%; background:var(--green); border-radius:2px; transition:.4s ease;
}

/* ══════════════════════════════════════════════════════════════
   ENHANCED STAFF DASHBOARD CSS
   ══════════════════════════════════════════════════════════════ */
/* These override the STAFF_CSS inline styles */
#staff-wrap {
  font-family:'Cairo',sans-serif !important;
}

/* ══════════════════════════════════════════════════════════════
   MODAL STYLES (shared)
   ══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position:fixed; inset:0; z-index:1000;
  background:rgba(0,0,0,.5); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center; padding:20px;
  animation:fadeIn .2s ease;
}
.modal-box {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-xl); width:100%; max-width:500px;
  max-height:90vh; overflow-y:auto;
  box-shadow:var(--shadow-lg);
  animation:slideUp .3s cubic-bezier(.4,0,.2,1);
}
.modal-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 24px; border-bottom:1px solid var(--border);
}
.modal-header h3 { font-size:17px; font-weight:800; color:var(--text); }
.modal-close {
  width:32px; height:32px; border-radius:8px;
  background:var(--bg2); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--text3); font-size:14px;
  transition:var(--tr);
}
.modal-close:hover { background:var(--red-light); color:var(--red); }
.modal-body { padding:24px; }
.modal-footer {
  display:flex; gap:10px; justify-content:flex-end;
  padding:16px 24px; border-top:1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════════
   SERVICES SECTION (detailed)
   ══════════════════════════════════════════════════════════════ */
.services-section {
  padding:0;
}
.services-section-header {
  padding:20px 24px; background:var(--grad-primary);
  border-radius:var(--r-xl) var(--r-xl) 0 0;
  display:flex; align-items:center; gap:12px;
}
.services-section-header i { font-size:20px; color:#fff; }
.services-section-header h3 { font-size:17px; font-weight:800; color:#fff; }

/* ══════════════════════════════════════════════════════════════
   CHANGE SETTINGS PAGE IMPROVEMENTS
   ══════════════════════════════════════════════════════════════ */
.page-section-title {
  font-size:20px; font-weight:900; color:var(--text);
  margin-bottom:20px; display:flex; align-items:center; gap:10px;
}
.page-section-title i { color:var(--accent); }

/* ══════════════════════════════════════════════════════════════
   OWNER DASHBOARD COMPATIBILITY
   ══════════════════════════════════════════════════════════════ */
.owner-stat-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:20px;
  box-shadow:var(--shadow-sm); transition:var(--tr);
}
.owner-stat-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }


/* ══════════════════════════════════════════════════════════════
   ████  MEGA PRO REDESIGN v14 — ALL PLATFORM PAGES  ████
   ══════════════════════════════════════════════════════════════ */

/* ────── Additional Keyframes ────── */
@keyframes slideInRight  { from{opacity:0;transform:translateX(40px)} to{opacity:1;transform:translateX(0)} }
@keyframes popIn         { 0%{opacity:0;transform:scale(.7)} 70%{transform:scale(1.05)} 100%{opacity:1;transform:scale(1)} }
@keyframes breathe       { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }
@keyframes gradFlow      { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes iconFloat     { 0%,100%{transform:translateY(0) rotate(0deg)} 33%{transform:translateY(-8px) rotate(-4deg)} 66%{transform:translateY(-4px) rotate(4deg)} }
@keyframes cardEntrance  { from{opacity:0;transform:translateY(30px) scale(.96)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes lineGrow      { from{width:0} to{width:100%} }
@keyframes numberPop     { 0%{opacity:0;transform:scale(0) rotate(-10deg)} 60%{transform:scale(1.15) rotate(3deg)} 100%{opacity:1;transform:scale(1) rotate(0)} }
@keyframes pulseGlow     { 0%,100%{box-shadow:0 0 0 0 rgba(37,99,235,.4)} 50%{box-shadow:0 0 0 12px rgba(37,99,235,0)} }
@keyframes rippleOut     { 0%{transform:scale(1);opacity:.6} 100%{transform:scale(2.5);opacity:0} }
@keyframes sidebarSlide  { from{transform:translateX(100%)} to{transform:translateX(0)} }
@keyframes topbarDrop    { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }
@keyframes badgeBounce   { 0%,100%{transform:scale(1)} 25%{transform:scale(1.2)} 75%{transform:scale(.95)} }
@keyframes notifShake    { 0%,100%{transform:rotate(0)} 20%{transform:rotate(-12deg)} 40%{transform:rotate(12deg)} 60%{transform:rotate(-8deg)} 80%{transform:rotate(8deg)} }
@keyframes spinSlow      { to{transform:rotate(360deg)} }

/* ══════════════════════════════════════════════════════════════
   ▌ DASHBOARD LAYOUT — ULTRA PRO
   ══════════════════════════════════════════════════════════════ */
.dash-layout {
  position:relative;
}
.dash-layout::before {
  content:'';
  position:fixed; inset:0; z-index:-2;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(37,99,235,.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(139,92,246,.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(8,145,178,.04) 0%, transparent 60%),
    var(--bg2);
  pointer-events:none;
}

/* ══════════════════════════════════════════════════════════════
   ▌ SIDEBAR — ULTRA PRO (Dark Gradient)
   ══════════════════════════════════════════════════════════════ */
.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1a2744 40%, #0f1e36 100%) !important;
  border-color: rgba(255,255,255,.06) !important;
  box-shadow: 4px 0 40px rgba(0,0,0,.25) !important;
}
[dir=ltr] .sidebar {
  box-shadow: -4px 0 40px rgba(0,0,0,.25) !important;
}

/* Sidebar shimmer overlay */
.sidebar::before {
  content:'';
  position:absolute; top:0; left:0; right:0; height:200px; z-index:0;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(37,99,235,.25) 0%, transparent 70%);
  pointer-events:none;
}
.sidebar > * { position:relative; z-index:1; }

.sidebar-logo {
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  padding: 22px 20px 18px !important;
}
.sidebar-logo-icon {
  background: linear-gradient(135deg, #2563eb, #0891b2) !important;
  box-shadow: 0 4px 20px rgba(37,99,235,.5), 0 0 0 1px rgba(255,255,255,.1) !important;
  animation: breathe 4s ease-in-out infinite;
}
.sidebar-logo-text {
  color: #f1f5f9 !important;
  font-weight: 900 !important;
}
.sidebar-logo-text small {
  color: rgba(148,163,184,.7) !important;
}

/* Sidebar user card - glassy */
.sidebar-user-card {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  margin: 10px 12px 6px !important;
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
  transition: var(--tr);
}
.sidebar-user-card::before {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(37,99,235,.15), rgba(139,92,246,.08));
  opacity:0; transition: var(--tr);
}
.sidebar-user-card:hover::before { opacity:1; }
.suc-avatar {
  background: linear-gradient(135deg,#2563eb,#7c3aed) !important;
  box-shadow: 0 4px 16px rgba(37,99,235,.4), 0 0 0 2px rgba(255,255,255,.15) !important;
  animation: breathe 5s ease-in-out infinite;
}
.suc-name { color: #f1f5f9 !important; }
.suc-stars { color: #fbbf24 !important; }

/* Sidebar nav section label */
.nav-section {
  color: rgba(148,163,184,.5) !important;
  font-size: 9px !important;
  letter-spacing: .15em !important;
}

/* Sidebar nav items */
.nav-item {
  color: rgba(203,213,225,.8) !important;
  border-radius: 10px !important;
  transition: all .2s cubic-bezier(.4,0,.2,1) !important;
}
.nav-item i { color: rgba(148,163,184,.7) !important; }
.nav-item:hover {
  background: rgba(37,99,235,.2) !important;
  color: #ffffff !important;
  transform: translateX(-4px) !important;
}
[dir=ltr] .nav-item:hover { transform: translateX(4px) !important; }
.nav-item:hover i { color: #60a5fa !important; }
.nav-item.active {
  background: linear-gradient(135deg, rgba(37,99,235,.85), rgba(8,145,178,.7)) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(37,99,235,.45), inset 0 1px 0 rgba(255,255,255,.15) !important;
}
.nav-item.active i { color: #fff !important; }
.nav-item.active::before {
  content:'';
  position:absolute; top:25%; bottom:25%; right:-1px; width:3px;
  background: #60a5fa; border-radius:2px;
}
[dir=ltr] .nav-item.active::before { right:auto; left:-1px; }

/* Sidebar footer */
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.08) !important;
  padding: 16px 12px !important;
}
.sidebar-footer .btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444) !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(220,38,38,.35) !important;
}

/* ══════════════════════════════════════════════════════════════
   ▌ TOPBAR — GLASS EFFECT + ANIMATION
   ══════════════════════════════════════════════════════════════ */
.topbar {
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226,232,240,.6) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.06), 0 1px 4px rgba(37,99,235,.05) !important;
  animation: topbarDrop .4s ease both;
}
body.dark .topbar {
  background: rgba(15,23,42,.85) !important;
  border-bottom: 1px solid rgba(51,65,85,.5) !important;
}
.topbar-title {
  background: linear-gradient(135deg, var(--accent), #0891b2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900 !important;
  letter-spacing: -.02em;
}
.notif-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 10px !important;
  transition: all .2s ease !important;
}
.notif-btn:hover {
  background: rgba(37,99,235,.08) !important;
  transform: scale(1.1);
  color: var(--accent) !important;
}
.notif-btn:hover i { animation: notifShake .5s ease; }
.topbar-avatar {
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(37,99,235,.35), 0 0 0 2px rgba(37,99,235,.15) !important;
  transition: all .2s ease !important;
  cursor: pointer;
}
.topbar-avatar:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 6px 24px rgba(37,99,235,.5), 0 0 0 3px rgba(37,99,235,.2) !important;
}

/* ══════════════════════════════════════════════════════════════
   ▌ HOME SECTION — ANIMATED HERO + CARDS
   ══════════════════════════════════════════════════════════════ */
.home-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 35%, #0891b2 70%, #065f46 100%) !important;
  background-size: 300% 300% !important;
  animation: gradFlow 8s ease infinite, cardEntrance .6s ease both !important;
  box-shadow: 0 12px 48px rgba(37,99,235,.35), 0 4px 16px rgba(37,99,235,.2) !important;
  border-radius: 20px !important;
}
.home-hero::after {
  content:'';
  position:absolute; inset:0; border-radius:20px;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='40' cy='40' r='1' fill='%23ffffff' fill-opacity='0.15'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events:none;
}
.home-greeting {
  font-size: 24px !important;
  animation: fadeInRight .6s ease .2s both;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.home-spec-badge, .home-cat-badge {
  animation: fadeInUp .5s ease .4s both;
  backdrop-filter: blur(8px);
}

/* Stat cards - animated entrance */
.stat-card {
  animation: cardEntrance .5s cubic-bezier(.4,0,.2,1) both;
  border-radius: 16px !important;
  overflow: hidden;
}
.stat-card:nth-child(1) { animation-delay: .05s; }
.stat-card:nth-child(2) { animation-delay: .1s; }
.stat-card:nth-child(3) { animation-delay: .15s; }
.stat-card:nth-child(4) { animation-delay: .2s; }
.stat-card.clickable:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 16px 40px rgba(37,99,235,.2) !important;
  border-color: rgba(37,99,235,.3) !important;
}
.stat-card.clickable:hover .stat-icon {
  animation: iconFloat 1.5s ease infinite;
}
.stat-info .val {
  animation: numberPop .6s cubic-bezier(.4,0,.2,1) .3s both;
}

/* Service cards pro */
.service-card-pro {
  animation: cardEntrance .5s cubic-bezier(.4,0,.2,1) both;
  border-radius: 16px !important;
  overflow: hidden;
  position: relative;
}
.service-card-pro::before {
  content:'';
  position:absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--accent), #0891b2, #10b981);
  opacity:0; transition: var(--tr);
}
.service-card-pro:hover::before { opacity:1; }
.service-card-pro:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 48px rgba(37,99,235,.18) !important;
  border-color: rgba(37,99,235,.3) !important;
}
.service-card-pro:hover .scp-icon {
  animation: iconFloat 1.5s ease infinite;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ══════════════════════════════════════════════════════════════
   ▌ PROFILE SECTION — CINEMATIC HEADER
   ══════════════════════════════════════════════════════════════ */
.profile-header-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #6d28d9 100%) !important;
  background-size: 200% 200% !important;
  animation: gradFlow 10s ease infinite, cardEntrance .6s ease both !important;
  box-shadow: 0 16px 56px rgba(37,99,235,.4) !important;
}
.profile-header-card::after {
  content:'';
  position:absolute; bottom:-40px; right:-40px;
  width:200px; height:200px; border-radius:50%;
  background: rgba(255,255,255,.05);
  pointer-events:none;
}
.profile-avatar-large {
  animation: breathe 4s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 0 4px rgba(255,255,255,.2) !important;
}
.profile-name {
  animation: fadeInLeft .5s ease .1s both;
}
.profile-badges {
  animation: fadeInUp .5s ease .2s both;
}
.profile-stars-display {
  animation: popIn .5s cubic-bezier(.4,0,.2,1) .3s both;
}
.profile-stars-num {
  animation: numberPop .6s ease .5s both;
}

/* Info cards - entrance */
.info-card {
  animation: cardEntrance .5s ease both;
  transition: all .3s cubic-bezier(.4,0,.2,1) !important;
}
.info-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(37,99,235,.12) !important;
  border-color: rgba(37,99,235,.2) !important;
}
.info-card:nth-child(1) { animation-delay: .1s; }
.info-card:nth-child(2) { animation-delay: .2s; }
.info-card-header {
  background: linear-gradient(135deg, var(--bg2), var(--bg3)) !important;
}
.info-card-header i {
  width:32px; height:32px; background:var(--accent-light);
  border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: var(--tr);
}
.info-card:hover .info-card-header i {
  background: var(--accent); color:#fff !important;
  transform: scale(1.1) rotate(5deg);
}
.info-row:hover { background: linear-gradient(90deg, var(--accent-light), transparent) !important; }

/* ══════════════════════════════════════════════════════════════
   ▌ ACHIEVEMENTS SECTION — EPIC CARDS
   ══════════════════════════════════════════════════════════════ */
.ach-stars-header {
  background: linear-gradient(135deg, #92400e 0%, #d97706 40%, #f59e0b 80%, #fbbf24 100%) !important;
  background-size: 300% 300% !important;
  animation: gradFlow 6s ease infinite, cardEntrance .6s ease both !important;
  box-shadow: 0 12px 48px rgba(245,158,11,.4) !important;
  border-radius: 20px !important;
  position: relative; overflow: hidden;
}
.ach-stars-header::before {
  content:'⭐';
  position:absolute; right:-20px; top:50%; transform:translateY(-50%);
  font-size:120px; opacity:.1; pointer-events:none;
}
.ach-stars-header .big-num {
  animation: numberPop .8s cubic-bezier(.4,0,.2,1) .2s both;
  text-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.ach-card {
  animation: cardEntrance .5s ease both;
  transition: all .3s cubic-bezier(.4,0,.2,1) !important;
  border-radius: 16px !important;
}
.ach-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
}
.ach-card.earned {
  background: linear-gradient(135deg, var(--card), rgba(245,158,11,.06)) !important;
  border-color: rgba(245,158,11,.4) !important;
  box-shadow: 0 8px 24px rgba(245,158,11,.15) !important;
}
.ach-card.earned:hover {
  box-shadow: 0 16px 40px rgba(245,158,11,.3) !important;
  border-color: var(--gold) !important;
}
.ach-icon {
  animation: iconFloat 3s ease-in-out infinite !important;
  filter: drop-shadow(0 4px 12px rgba(245,158,11,.3));
}
.ach-card.locked .ach-icon { animation: none !important; }

/* ══════════════════════════════════════════════════════════════
   ▌ CERTIFICATES SECTION
   ══════════════════════════════════════════════════════════════ */
.cert-empty {
  animation: cardEntrance .6s ease both;
  border-radius: 20px !important;
  background: linear-gradient(135deg, var(--card), var(--bg2)) !important;
}
.cert-empty-icon {
  animation: iconFloat 3s ease-in-out infinite;
  display: block;
}
.cert-card {
  animation: cardEntrance .4s ease both;
  border-radius: 16px !important;
  transition: all .3s ease !important;
  overflow: hidden;
  position: relative;
}
.cert-card::before {
  content:'';
  position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, #2563eb, #0891b2, #10b981);
}
.cert-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(37,99,235,.18) !important;
}

/* ══════════════════════════════════════════════════════════════
   ▌ EDIT PROFILE / CV SECTION
   ══════════════════════════════════════════════════════════════ */
.edit-profile-card {
  animation: cardEntrance .6s ease both !important;
  border-radius: 20px !important;
}
.edit-profile-header {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 60%, #0891b2 100%) !important;
  background-size: 200% 200% !important;
  animation: gradFlow 8s ease infinite !important;
  padding: 28px 32px !important;
  position: relative; overflow: hidden;
}
.edit-profile-header::before {
  content:'';
  position:absolute; bottom:-30px; right:-30px;
  width:150px; height:150px; border-radius:50%;
  background: rgba(255,255,255,.05); pointer-events:none;
}
.edit-profile-header i { animation: iconFloat 3s ease infinite; }
.edit-section-title {
  position:relative; padding-right:14px;
}
.edit-section-title::before {
  content:'';
  position:absolute; right:0; top:50%; transform:translateY(-50%);
  width:4px; height:70%; background:var(--accent); border-radius:2px;
}
[dir=ltr] .edit-section-title::before { right:auto; left:0; }
.cv-item-card {
  border-radius: 12px !important;
  transition: all .25s ease !important;
  border-left: 3px solid transparent !important;
}
[dir=ltr] .cv-item-card { border-left:none !important; border-right:3px solid transparent !important; }
.cv-item-card:hover {
  border-left-color: var(--accent) !important;
  transform: translateX(-3px) !important;
  box-shadow: 0 4px 16px rgba(37,99,235,.12) !important;
}
[dir=ltr] .cv-item-card:hover {
  border-right-color: var(--accent) !important;
  transform: translateX(3px) !important;
}
.add-cv-btn {
  border-radius: 12px !important;
  transition: all .25s ease !important;
}
.add-cv-btn:hover {
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(8,145,178,.04)) !important;
  border-color: var(--accent) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(37,99,235,.12) !important;
}

/* CV Section Tabs */
.tab-header button, .cv-tab-btn {
  transition: all .25s ease !important;
  border-radius: 10px !important;
}
.tab-header button.active, .cv-tab-btn.active {
  background: linear-gradient(135deg, var(--accent), #0891b2) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(37,99,235,.3) !important;
}

/* ══════════════════════════════════════════════════════════════
   ▌ NOTIFICATIONS SECTION
   ══════════════════════════════════════════════════════════════ */
.notif-item {
  animation: slideInRight .4s ease both;
  border-radius: 14px !important;
  transition: all .25s ease !important;
  border: 1px solid var(--border) !important;
}
.notif-item:nth-child(1) { animation-delay: .05s; }
.notif-item:nth-child(2) { animation-delay: .1s; }
.notif-item:nth-child(3) { animation-delay: .15s; }
.notif-item:nth-child(4) { animation-delay: .2s; }
.notif-item:nth-child(5) { animation-delay: .25s; }
.notif-item:hover {
  transform: translateX(-4px) !important;
  border-color: rgba(37,99,235,.2) !important;
  box-shadow: 0 4px 20px rgba(37,99,235,.1) !important;
}
[dir=ltr] .notif-item:hover { transform: translateX(4px) !important; }
.notif-item.unread {
  border-right: 3px solid var(--accent) !important;
  background: linear-gradient(90deg, rgba(37,99,235,.03), transparent) !important;
}
[dir=ltr] .notif-item.unread { border-right:none !important; border-left:3px solid var(--accent) !important; }
.notif-icon {
  transition: var(--tr);
}
.notif-item:hover .notif-icon { transform: scale(1.15) rotate(-5deg); }
.notif-empty i { animation: iconFloat 3s ease-in-out infinite; }

/* ══════════════════════════════════════════════════════════════
   ▌ SETTINGS CARDS (Change Pwd / Email / Spec)
   ══════════════════════════════════════════════════════════════ */
.settings-card {
  animation: cardEntrance .6s ease both !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.08), 0 2px 8px rgba(37,99,235,.06) !important;
  max-width: 580px !important;
}
.settings-card-header {
  padding: 24px 28px !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0891b2 100%) !important;
  background-size: 200% 200% !important;
  animation: gradFlow 6s ease infinite !important;
  position: relative; overflow: hidden;
}
.settings-card-header::after {
  content:'';
  position:absolute; top:-30px; left:-30px;
  width:120px; height:120px; border-radius:50%;
  background: rgba(255,255,255,.06); pointer-events:none;
}
.settings-card-header i {
  font-size:28px !important;
  animation: iconFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}
.settings-card-header h3 {
  font-size:20px !important;
  font-weight:900 !important;
  letter-spacing:-.01em;
}
.settings-card-body {
  padding: 32px 28px !important;
  background: linear-gradient(135deg, var(--card), var(--bg2)) !important;
}
/* Specialty change items */
.spec-change-item {
  border-radius: 14px !important;
  transition: all .25s cubic-bezier(.4,0,.2,1) !important;
  animation: cardEntrance .4s ease both;
}
.spec-change-item:hover {
  transform: translateY(-4px) scale(1.04) !important;
  box-shadow: 0 8px 24px rgba(37,99,235,.18) !important;
}
.spec-change-item.selected {
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(8,145,178,.08)) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.25), 0 8px 24px rgba(37,99,235,.15) !important;
}
.spec-change-item .emoji {
  transition: var(--tr);
  display: block;
  font-size:32px !important;
}
.spec-change-item:hover .emoji { transform: scale(1.3) rotate(-5deg) !important; }

/* ══════════════════════════════════════════════════════════════
   ▌ VERIFY PAGE — CINEMATIC
   ══════════════════════════════════════════════════════════════ */
.verify-page {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(139,92,246,.08) 0%, transparent 55%),
    var(--bg) !important;
}
.verify-card {
  animation: slideUp .5s cubic-bezier(.4,0,.2,1) both !important;
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0,0,0,.12), 0 4px 16px rgba(37,99,235,.1) !important;
}
.verify-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:5px;
  background: linear-gradient(90deg, #2563eb, #0891b2, #10b981, #7c3aed) !important;
  background-size: 300% 100% !important;
  animation: gradFlow 4s ease infinite !important;
}
.verify-icon {
  animation: iconFloat 3s ease-in-out infinite, glow 3s ease-in-out infinite !important;
  font-size:88px !important;
}
.verify-icon.success {
  animation: iconFloat 3s ease-in-out infinite, breathe 2s ease infinite !important;
  filter: drop-shadow(0 8px 24px rgba(16,185,129,.5)) !important;
}
.verify-icon.fail {
  filter: drop-shadow(0 8px 24px rgba(239,68,68,.4)) !important;
}

/* ══════════════════════════════════════════════════════════════
   ▌ ABOUT PAGE — CINEMATIC HERO
   ══════════════════════════════════════════════════════════════ */
.about-hero {
  background: linear-gradient(135deg, #020617 0%, #0f172a 30%, #1e3a8a 65%, #0f172a 100%) !important;
  background-size: 400% 400% !important;
  animation: gradFlow 12s ease infinite !important;
  position: relative; overflow: hidden;
}
.about-hero::after {
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(37,99,235,.4), transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(139,92,246,.2), transparent 50%);
  pointer-events:none;
}
.about-stat-card {
  border-radius: 16px !important;
  overflow: hidden;
  transition: all .3s ease !important;
}
.about-stat-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 48px rgba(37,99,235,.15) !important;
}
.about-stat-card::before {
  content:'';
  position:absolute; top:0; left:0; right:0; height:3px;
  opacity:0; transition: var(--tr);
  background: linear-gradient(90deg, var(--accent), #0891b2);
}
.about-stat-card:hover::before { opacity:1; }
.about-stat-icon { animation: iconFloat 3s ease-in-out infinite; }
.about-stat-num { animation: numberPop .6s ease both; }

/* ══════════════════════════════════════════════════════════════
   ▌ STAFF DASHBOARD — ULTRA PRO
   ══════════════════════════════════════════════════════════════ */
#staff-wrap {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(37,99,235,.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(139,92,246,.05) 0%, transparent 55%),
    var(--bg2) !important;
}

/* Staff sidebar */
#staff-wrap .sidebar,
.staff-sidebar {
  background: linear-gradient(180deg, #020617 0%, #0f172a 50%, #1a1a2e 100%) !important;
  box-shadow: 4px 0 40px rgba(0,0,0,.3) !important;
}

/* Staff topbar */
#staff-wrap .topbar,
.staff-topbar {
  background: rgba(255,255,255,.9) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.06) !important;
  animation: topbarDrop .4s ease both;
}

/* Staff nav items */
#staff-wrap .nav-item,
.staff-nav-item {
  color: rgba(203,213,225,.8) !important;
  border-radius: 10px !important;
}
#staff-wrap .nav-item:hover,
.staff-nav-item:hover {
  background: rgba(37,99,235,.2) !important;
  color: #ffffff !important;
  transform: translateX(-3px);
}
[dir=ltr] #staff-wrap .nav-item:hover { transform: translateX(3px); }
#staff-wrap .nav-item.active,
.staff-nav-item.active {
  background: linear-gradient(135deg, rgba(37,99,235,.85), rgba(8,145,178,.7)) !important;
  color: #fff !important;
}

/* Staff stat cards */
.staff-stat, .s-stat {
  animation: cardEntrance .5s ease both;
  border-radius: 16px !important;
  transition: all .3s ease !important;
  overflow: hidden;
  position: relative;
}
.staff-stat::before, .s-stat::before {
  content:'';
  position:absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--accent), #0891b2);
  opacity:0; transition:var(--tr);
}
.staff-stat:hover, .s-stat:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(37,99,235,.15) !important;
}
.staff-stat:hover::before, .s-stat:hover::before { opacity:1; }

/* Staff table */
.staff-table, #staff-wrap table {
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow) !important;
}
#staff-wrap table th {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8) !important;
  color: #fff !important;
  font-weight: 800 !important;
  padding: 14px 16px !important;
}
#staff-wrap table tr:hover {
  background: var(--accent-light) !important;
  transition: var(--tr);
}

/* Staff buttons */
#staff-wrap .btn-primary,
.staff-btn-primary {
  background: linear-gradient(135deg, #2563eb, #0891b2) !important;
  box-shadow: 0 4px 16px rgba(37,99,235,.35) !important;
  border: none !important;
  transition: all .25s ease !important;
}
#staff-wrap .btn-primary:hover,
.staff-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(37,99,235,.5) !important;
}

/* ══════════════════════════════════════════════════════════════
   ▌ MODAL SYSTEM — ENHANCED
   ══════════════════════════════════════════════════════════════ */
.modal-overlay {
  animation: fadeIn .2s ease both !important;
  background: rgba(0,0,0,.6) !important;
  backdrop-filter: blur(8px) !important;
}
.modal-box {
  animation: slideUp .3s cubic-bezier(.4,0,.2,1) both !important;
  border-radius: 20px !important;
  box-shadow: 0 32px 80px rgba(0,0,0,.25), 0 8px 32px rgba(37,99,235,.1) !important;
  overflow: hidden;
}
.modal-header {
  background: linear-gradient(135deg, #1d4ed8, #0891b2) !important;
  border-bottom: none !important;
  padding: 20px 24px !important;
}
.modal-header h3 { color: #fff !important; font-weight:900 !important; }
.modal-close {
  background: rgba(255,255,255,.15) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  color: #fff !important;
}
.modal-close:hover {
  background: rgba(239,68,68,.8) !important;
  border-color: transparent !important;
}
.modal-body { padding: 28px 24px !important; }
.modal-footer { padding: 16px 24px !important; border-top: 1px solid var(--border) !important; }

/* ══════════════════════════════════════════════════════════════
   ▌ FORM ELEMENTS — ANIMATED FOCUS
   ══════════════════════════════════════════════════════════════ */
.field-wrap { position: relative; }
.field-wrap label {
  font-weight: 700 !important;
  color: var(--text2) !important;
  font-size: 13px !important;
  transition: var(--tr);
}
.field-wrap input,
.field-wrap select,
.field-wrap textarea {
  transition: all .25s ease !important;
  border-radius: 12px !important;
}
.field-wrap input:focus,
.field-wrap select:focus,
.field-wrap textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12), 0 4px 16px rgba(37,99,235,.08) !important;
  background: var(--card) !important;
  outline: none !important;
}
.field-wrap input:hover,
.field-wrap select:hover {
  border-color: var(--border2) !important;
}

/* ══════════════════════════════════════════════════════════════
   ▌ BUTTONS — GLOBAL ENHANCEMENT
   ══════════════════════════════════════════════════════════════ */
.btn {
  transition: all .2s cubic-bezier(.4,0,.2,1) !important;
  position: relative; overflow: hidden;
}
.btn::after {
  content:'';
  position:absolute; top:50%; left:50%;
  width:0; height:0; border-radius:50%;
  background: rgba(255,255,255,.3);
  transform: translate(-50%,-50%);
  transition: width .4s ease, height .4s ease, opacity .4s ease;
  opacity:0;
}
.btn:active::after {
  width:200px; height:200px; opacity:0;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  box-shadow: 0 4px 16px rgba(37,99,235,.35) !important;
}
.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(37,99,235,.5) !important;
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
}
.btn-secondary:hover { transform: translateY(-2px) !important; }
.btn-ghost:hover { transform: translateY(-1px) !important; }
.btn-success {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  box-shadow: 0 4px 16px rgba(16,185,129,.3) !important;
}
.btn-danger:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(239,68,68,.4) !important;
}

/* ══════════════════════════════════════════════════════════════
   ▌ CARDS — GLOBAL MICRO-INTERACTIONS
   ══════════════════════════════════════════════════════════════ */
.owner-stat-card {
  animation: cardEntrance .5s ease both;
  border-radius: 16px !important;
  overflow: hidden;
}
.owner-stat-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(37,99,235,.15) !important;
}

/* Profile progress bar animation */
.profile-progress-bar {
  border-radius: 16px !important;
  transition: var(--tr) !important;
  animation: cardEntrance .5s ease .1s both;
}
.profile-progress-bar:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow) !important;
}

/* Alert banners */
.alert-banner {
  animation: slideInRight .4s ease both;
  border-radius: 14px !important;
}
.alert-warning {
  background: linear-gradient(90deg, rgba(245,158,11,.08), rgba(245,158,11,.04)) !important;
  border-right: 3px solid var(--gold) !important;
}
[dir=ltr] .alert-warning { border-right:none !important; border-left:3px solid var(--gold) !important; }

/* ══════════════════════════════════════════════════════════════
   ▌ DARK MODE ADDITIONS
   ══════════════════════════════════════════════════════════════ */
body.dark .sidebar {
  background: linear-gradient(180deg, #020617 0%, #0a1628 50%, #040d1a 100%) !important;
}
body.dark .dash-layout::before {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(37,99,235,.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(139,92,246,.07) 0%, transparent 55%),
    var(--bg2);
}
body.dark .settings-card-body {
  background: linear-gradient(135deg, var(--bg2), var(--bg3)) !important;
}
body.dark .modal-box {
  border-color: var(--border) !important;
}
body.dark #staff-wrap {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(37,99,235,.08) 0%, transparent 55%),
    var(--bg2) !important;
}

/* ══════════════════════════════════════════════════════════════
   ▌ PAGE CONTENT — ENTRANCE ANIMATION
   ══════════════════════════════════════════════════════════════ */
.page-content {
  animation: fadeInUp .4s ease both;
}
.page-content > * {
  animation: cardEntrance .5s ease both;
}
.page-content > *:nth-child(1) { animation-delay: .0s; }
.page-content > *:nth-child(2) { animation-delay: .05s; }
.page-content > *:nth-child(3) { animation-delay: .1s; }
.page-content > *:nth-child(4) { animation-delay: .15s; }
.page-content > *:nth-child(5) { animation-delay: .2s; }

/* ══════════════════════════════════════════════════════════════
   ▌ SCROLLBAR — BRANDED
   ══════════════════════════════════════════════════════════════ */
.sidebar::-webkit-scrollbar { width:4px; }
.sidebar::-webkit-scrollbar-track { background:transparent; }
.sidebar::-webkit-scrollbar-thumb { background:rgba(255,255,255,.15); border-radius:2px; }
.page-content::-webkit-scrollbar { width:6px; }
.page-content::-webkit-scrollbar-thumb { background:var(--accent-light); border-radius:3px; }
.page-content::-webkit-scrollbar-thumb:hover { background:var(--accent); }

/* ══════════════════════════════════════════════════════════════
   ▌ VERIFY BADGE — ANIMATED
   ══════════════════════════════════════════════════════════════ */
.verify-badge.verified {
  background: linear-gradient(135deg,rgba(16,185,129,.15),rgba(5,150,105,.1)) !important;
  color: var(--green) !important;
  border: 1px solid rgba(16,185,129,.25) !important;
  animation: breathe 3s ease-in-out infinite;
}
.verify-badge.unverified {
  background: linear-gradient(135deg,rgba(245,158,11,.12),rgba(217,119,6,.08)) !important;
  color: #d97706 !important;
  border: 1px solid rgba(245,158,11,.2) !important;
}

/* ══════════════════════════════════════════════════════════════
   ▌ SECTION HEADERS — ANIMATED UNDERLINE
   ══════════════════════════════════════════════════════════════ */
.page-section-title {
  position: relative;
  padding-bottom: 12px !important;
  margin-bottom: 24px !important;
}
.page-section-title::after {
  content:'';
  position:absolute; bottom:0; right:0;
  height:3px; width:60px;
  background: linear-gradient(90deg, var(--accent), #0891b2);
  border-radius:2px;
  animation: lineGrow .6s ease .2s both;
}
[dir=ltr] .page-section-title::after { right:auto; left:0; }


/* ══════════════════════════════════════════════════════════════
   ████  LANDING PAGE — MOBILE RESPONSIVE FIX v14  ████
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 900px) ─────────────────────────────────────── */
@media (max-width: 900px) {
  .landing-nav {
    padding: 0 20px;
    height: 60px;
  }
  .logo { font-size: 16px; }
  .logo i { font-size: 18px; }
  .nav-actions { gap: 6px; }
  .lang-btn, .theme-btn { padding: 5px 10px; font-size: 12px; }
  .hero-section {
    padding: 80px 24px 50px;
    min-height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-content { order: 1; }
  .hero-visual  { order: 2; justify-content: center; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .medical-globe { width: 300px; height: 300px; }
  .orbit-icon { transform-origin: 140px center !important; }
  .orbit-icon:nth-child(5) { transform-origin: 120px center !important; }
  .orbit-icon:nth-child(7) { transform-origin: 130px center !important; }
  .section-wrapper { padding: 60px 24px; }
  .specs-section { padding: 60px 24px; }
  .stats-bar { margin-top: 40px; padding: 2px 4px; }
  .stat-item { padding: 16px 12px; }
  .stat-num { font-size: 22px; }
}

/* ── Mobile (≤ 640px) ─────────────────────────────────────── */
@media (max-width: 640px) {
  /* Navbar */
  .landing-nav {
    padding: 0 14px;
    height: 56px;
  }
  .logo { font-size: 14px; gap: 7px; }
  .logo i { font-size: 16px; }
  .lang-btn { padding: 4px 8px; font-size: 11px; }
  .theme-btn { padding: 4px 8px; font-size: 12px; }
  .nav-actions .btn { padding: 7px 14px; font-size: 12px; }

  /* Hero */
  .hero-section {
    padding: 72px 16px 40px;
    min-height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .hero-badge {
    font-size: 11px;
    padding: 5px 14px;
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: clamp(1.7rem, 7vw, 2.4rem) !important;
    line-height: 1.2;
    margin-bottom: 14px;
  }
  .hero-sub {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 24px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-outline {
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14px;
  }

  /* Globe — scale down for mobile */
  .hero-visual { order: 2; }
  .medical-globe {
    width: 240px !important;
    height: 240px !important;
  }
  .globe-core {
    width: 110px !important;
    height: 110px !important;
    box-shadow: 0 0 40px rgba(37,99,235,.5), 0 0 80px rgba(37,99,235,.2), 0 0 0 14px rgba(37,99,235,.08) !important;
  }
  .globe-core i { font-size: 44px !important; }
  .globe-ring:nth-child(1) { inset: 0 !important; }
  .globe-ring:nth-child(2) { inset: 18px !important; }
  .globe-ring:nth-child(3) { inset: 38px !important; }
  .orbit-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
    animation-duration: 8s !important;
    transform-origin: 112px center !important;
  }
  .orbit-icon:nth-child(5) {
    transform-origin: 96px center !important;
    animation-duration: 12s !important;
  }
  .orbit-icon:nth-child(6) {
    transform-origin: 112px center !important;
    animation-duration: 10s !important;
  }
  .orbit-icon:nth-child(7) {
    transform-origin: 104px center !important;
    animation-duration: 14s !important;
  }

  /* Stats bar */
  .stats-bar {
    flex-wrap: wrap;
    gap: 0;
    margin-top: 32px;
    border-radius: 14px;
    padding: 0;
  }
  .stat-item {
    padding: 14px 8px;
    flex: 1 1 calc(50% - 1px);
    min-width: 0;
    border-inline-start: none !important;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }
  .stat-item:nth-child(odd) { border-inline-end: 1px solid rgba(255,255,255,.15); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-num { font-size: 20px; }
  .stat-lbl { font-size: 11px; }

  /* Flags marquee */
  .flags-section { padding: 16px 0; margin: 24px 0; }
  .flag-badge { padding: 7px 14px; font-size: 12px; }
  .flag-badge span:first-child { font-size: 18px; }

  /* Features section */
  .section-wrapper { padding: 40px 16px; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 14px; }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature-card { padding: 22px 18px; }
  .fc-icon-wrap { width: 52px; height: 52px; font-size: 24px; }
  .fc-title { font-size: 15px; }

  /* Specialties */
  .specs-section { padding: 40px 16px; }
  .specs-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
  }
  .spec-card { padding: 14px 8px; }
  .spec-icon { font-size: 24px; margin-bottom: 7px; }
  .spec-card .name { font-size: 11px; }

  /* Footer */
  .landing-footer { padding: 28px 16px; font-size: 13px; }
}

/* ── Small Mobile (≤ 400px) ───────────────────────────────── */
@media (max-width: 400px) {
  .landing-nav { padding: 0 12px; height: 52px; }
  .logo { font-size: 13px; }
  .hero-section { padding: 66px 12px 36px; }
  .hero-title { font-size: clamp(1.5rem, 8vw, 2rem) !important; }
  .medical-globe { width: 200px !important; height: 200px !important; }
  .globe-core { width: 90px !important; height: 90px !important; }
  .globe-core i { font-size: 36px !important; }
  .orbit-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
    transform-origin: 94px center !important;
  }
  .orbit-icon:nth-child(5) { transform-origin: 82px center !important; }
  .orbit-icon:nth-child(6) { transform-origin: 94px center !important; }
  .orbit-icon:nth-child(7) { transform-origin: 88px center !important; }
  .specs-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-num { font-size: 18px; }
}

