/* ============================================================
   بصمة التطوعية - النظام التصميمي الرئيسي
   Basmah Volunteer Platform - Main Design System
   ============================================================ */

/* ---------- 1. Google Fonts + Variables ---------- */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cairo:wght@300;400;600;700;900&display=swap');

:root {
  /* Brand Colors */
  --primary:      #1017B8;
  --primary-dark: #0a0f7a;
  --primary-light:#2d35d4;
  --accent:       #06B6D4;   /* teal / cyan */
  --accent2:      #7C3AED;   /* violet */
  --gold:         #F59E0B;
  --success:      #10B981;
  --danger:       #EF4444;
  --warning:      #F59E0B;

  /* Gradients */
  --grad-hero:    linear-gradient(135deg, #000000 0%, #0a0f7a 40%, #1017B8 70%, #06B6D4 100%);
  --grad-card:    linear-gradient(135deg, rgba(16,23,184,.08) 0%, rgba(6,182,212,.08) 100%);
  --grad-accent:  linear-gradient(135deg, #1017B8 0%, #7C3AED 100%);
  --grad-teal:    linear-gradient(135deg, #06B6D4 0%, #1017B8 100%);

  /* Neutrals */
  --bg:           #0A0B1E;
  --bg-card:      #0F1035;
  --bg-card2:     #141550;
  --border:       rgba(6,182,212,.2);
  --border2:      rgba(255,255,255,.07);
  --text:         #F0F4FF;
  --text-muted:   #94A3B8;
  --text-light:   #CBD5E1;

  /* Typography */
  --font-main:    'Tajawal', 'Cairo', sans-serif;

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(16,23,184,.15);
  --shadow-md:    0 8px 32px rgba(16,23,184,.25);
  --shadow-lg:    0 16px 48px rgba(16,23,184,.35);
  --shadow-glow:  0 0 24px rgba(6,182,212,.3);
  --shadow-card:  0 4px 24px rgba(0,0,0,.4);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Transitions */
  --trans: all .3s cubic-bezier(.4,0,.2,1);
  --trans-fast: all .15s ease;
}

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

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--trans); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; }

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

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-main); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p  { color: var(--text-light); line-height: 1.8; }

.text-gradient {
  background: linear-gradient(90deg, #fff 0%, var(--accent) 50%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-left    { text-align: left; }

/* ---------- 5. Layout ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section { padding-block: 5rem; }
.section-sm { padding-block: 3rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }

/* ---------- 6. Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  padding: .8rem 0;
  background: rgba(10,11,30,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border2);
  transition: var(--trans);
}
.navbar.scrolled {
  background: rgba(10,11,30,.97);
  box-shadow: var(--shadow-md);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.navbar-logo img { height: 44px; width: auto; border-radius: 8px; }
.navbar-logo .brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.navbar-logo .brand-sub {
  font-size: .65rem;
  color: var(--accent);
  font-weight: 400;
  display: block;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}
.navbar-nav a {
  padding: .45rem .85rem;
  border-radius: var(--r-full);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--trans);
  white-space: nowrap;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  color: #fff;
  background: rgba(16,23,184,.3);
}
.navbar-actions { display: flex; align-items: center; gap: .6rem; }
.navbar-toggle {
  display: none;
  padding: .5rem;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 1.3rem;
  background: var(--border2);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; right: 0; left: 0; bottom: 0;
  background: rgba(10,11,30,.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: .5rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: .9rem 1.2rem;
  border-radius: var(--r-md);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  gap: .8rem;
  transition: var(--trans);
}
.mobile-menu a:hover { background: var(--bg-card2); color: #fff; border-color: var(--accent); }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--r-full);
  font-size: .95rem;
  font-weight: 700;
  font-family: var(--font-main);
  transition: var(--trans);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  filter: brightness(1.1);
}
.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--border2);
  color: var(--text);
  border-color: var(--border2);
}
.btn-ghost:hover { background: var(--bg-card2); border-color: var(--border); }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-gold    { background: var(--gold); color: var(--bg); }
.btn-sm { padding: .45rem 1rem; font-size: .8rem; }
.btn-lg { padding: .9rem 2.2rem; font-size: 1.05rem; }
.btn-xl { padding: 1.1rem 2.8rem; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- 8. Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: var(--trans);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}
.card-glow:hover { box-shadow: var(--shadow-glow), var(--shadow-card); }
.card-gradient { background: var(--grad-card); }
.card-dark { background: var(--bg-card2); }

/* ---------- 9. Section Headings ---------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 1rem;
  background: rgba(6,182,212,.1);
  border: 1px solid rgba(6,182,212,.25);
  border-radius: var(--r-full);
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: .6rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-inline: auto;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-divider {
  width: 60px; height: 4px;
  background: var(--grad-teal);
  border-radius: 2px;
  margin: .8rem auto 1.5rem;
}

/* ---------- 10. Stats / Counters ---------- */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: var(--trans);
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: var(--trans);
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-glow); }
.stat-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  background: var(--grad-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: .9rem; color: var(--text-muted); margin-top: .4rem; font-weight: 500; }

/* ---------- 11. Forms ---------- */
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--text-light); }
.form-control {
  padding: .75rem 1rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-main);
  font-size: .9rem;
  transition: var(--trans);
  width: 100%;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(6,182,212,.15); }
.form-control::placeholder { color: var(--text-muted); }
.form-select { appearance: none; cursor: pointer; }
.form-check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; }
.form-check input[type=checkbox],
.form-check input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); margin-top: .2rem; flex-shrink: 0; }
.form-error { font-size: .8rem; color: var(--danger); }
.form-hint  { font-size: .78rem; color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
.input-group { position: relative; }
.input-icon {
  position: absolute;
  right: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: .95rem; pointer-events: none;
}

/* ---------- 12. Badges / Tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .75rem;
  border-radius: var(--r-full);
  font-size: .75rem;
  font-weight: 700;
}
.badge-primary  { background: rgba(16,23,184,.25); color: #a5b4fc; border: 1px solid rgba(16,23,184,.4); }
.badge-accent   { background: rgba(6,182,212,.15);  color: var(--accent); border: 1px solid rgba(6,182,212,.3); }
.badge-success  { background: rgba(16,185,129,.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,.3); }
.badge-warning  { background: rgba(245,158,11,.15); color: #fcd34d; border: 1px solid rgba(245,158,11,.3); }
.badge-danger   { background: rgba(239,68,68,.15);  color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.badge-violet   { background: rgba(124,58,237,.15); color: #c4b5fd; border: 1px solid rgba(124,58,237,.3); }

/* ---------- 13. Progress / Level ---------- */
.progress { height: 8px; background: var(--bg-card2); border-radius: 4px; overflow: hidden; }
.progress-bar {
  height: 100%;
  background: var(--grad-teal);
  border-radius: 4px;
  transition: width 1s ease;
}

/* ---------- 14. Tabs ---------- */
.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--border2); margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn {
  padding: .7rem 1.3rem;
  border-radius: var(--r-md) var(--r-md) 0 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-bottom: none;
  cursor: pointer;
  transition: var(--trans);
  background: transparent;
}
.tab-btn:hover { color: var(--text); background: var(--bg-card); }
.tab-btn.active {
  color: var(--accent);
  background: var(--bg-card);
  border-color: var(--border2);
  border-bottom-color: var(--bg-card);
  margin-bottom: -1px;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---------- 15. Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border2); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--bg-card2); }
th, td { padding: .85rem 1.1rem; text-align: right; font-size: .875rem; border-bottom: 1px solid var(--border2); }
th { font-weight: 700; color: var(--text-muted); white-space: nowrap; }
tbody tr { background: var(--bg-card); transition: var(--trans); }
tbody tr:hover { background: var(--bg-card2); }
tbody tr:last-child td { border-bottom: none; }

/* ---------- 16. Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .3s ease;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-close { font-size: 1.3rem; color: var(--text-muted); cursor: pointer; padding: .3rem; transition: var(--trans); }
.modal-close:hover { color: var(--danger); }

/* ---------- 17. Toast Notifications ---------- */
#toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: .8rem 1.4rem;
  border-radius: var(--r-full);
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  animation: toastIn .3s ease, toastOut .3s ease 2.7s forwards;
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: .6rem;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-info    { background: var(--primary); }
.toast-warning { background: var(--warning); color: #111; }

/* ---------- 18. Loader ---------- */
.page-loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.2rem;
  transition: opacity .5s, visibility .5s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 60px; height: 60px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loader-logo { font-size: 2rem; font-weight: 900; color: var(--accent); }

/* ---------- 19. Floating AI Button ---------- */
.ai-assistant-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  z-index: 800;
  cursor: pointer;
  transition: var(--trans);
  border: 2px solid rgba(6,182,212,.3);
  animation: pulse-ring 2s infinite;
}
.ai-assistant-btn:hover { transform: scale(1.1); }

/* ---------- 20. Hero Section ---------- */
.hero {
  min-height: 100vh;
  background:
    var(--grad-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
}
/* Hero background photo — Jeddah skyline */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Dark blue overlay — keeps text legible while city shows through */
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(124,58,237,.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6,182,212,.15) 0%, transparent 50%);
  z-index: 1;
}
.hero-particles {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.hero-content { position: relative; z-index: 3; }

/* ---------- 21. Opportunity Card ---------- */
.opp-card {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}
.opp-card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: var(--shadow-card); }
.opp-card-img { height: 180px; background: var(--grad-card); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.opp-card-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.opp-card-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.opp-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.opp-card-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.opp-card-footer { padding: 1rem 1.3rem; border-top: 1px solid var(--border2); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.opp-seats { font-size: .8rem; color: var(--text-muted); }
.opp-seats .filled { color: var(--accent); font-weight: 700; }

/* ---------- 22. Dashboard ---------- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  padding-top: 70px;
}
.sidebar {
  background: var(--bg-card);
  border-left: 1px solid var(--border2);
  padding: 1.5rem 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}
.sidebar-menu { display: flex; flex-direction: column; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.5rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--trans);
  border-right: 3px solid transparent;
}
.sidebar-item:hover { color: var(--text); background: var(--bg-card2); }
.sidebar-item.active { color: var(--accent); background: rgba(6,182,212,.08); border-right-color: var(--accent); }
.sidebar-item .icon { font-size: 1.1rem; width: 22px; flex-shrink: 0; }
.sidebar-section { padding: .5rem 1.5rem; margin-top: .5rem; }
.sidebar-section-title { font-size: .7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.dashboard-main { padding: 2rem; overflow: auto; }

/* ---------- 23. KPI Cards ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: var(--trans);
}
.kpi-card:hover { border-color: var(--border); transform: translateY(-2px); }
.kpi-icon { font-size: 1.6rem; }
.kpi-value { font-size: 1.8rem; font-weight: 900; color: var(--accent); line-height: 1; }
.kpi-label { font-size: .8rem; color: var(--text-muted); }
.kpi-change { font-size: .75rem; font-weight: 600; }
.kpi-change.up { color: var(--success); }
.kpi-change.down { color: var(--danger); }

/* ---------- 24. Branch Map ---------- */
.map-container { position: relative; background: var(--bg-card); border-radius: var(--r-xl); overflow: hidden; }
.map-svg-wrap { width: 100%; }
.branch-pin {
  cursor: pointer;
  transition: var(--trans);
}
.branch-pin circle { transition: var(--trans); }
.branch-pin:hover circle { filter: drop-shadow(0 0 8px var(--accent)); }
.branch-tooltip {
  position: absolute;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: .8rem 1rem;
  min-width: 200px;
  pointer-events: none;
  opacity: 0;
  transition: var(--trans);
  z-index: 10;
}
.branch-tooltip.show { opacity: 1; }

/* ---------- 25. Journey Timeline ---------- */
.journey {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.journey::before {
  content: '';
  position: absolute;
  right: 20px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}
.journey-step {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem 0;
  position: relative;
}
.journey-dot {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: var(--trans);
}
.journey-step.active .journey-dot { background: var(--accent); color: var(--bg); }
.journey-content { flex: 1; }
.journey-title { font-weight: 700; font-size: 1rem; margin-bottom: .2rem; }
.journey-desc { font-size: .85rem; color: var(--text-muted); }
.journey-level { font-size: .75rem; color: var(--gold); font-weight: 600; }

/* ---------- 26. Partner Grid ---------- */
.partner-logo {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  min-height: 90px;
}
.partner-logo:hover { border-color: var(--accent); background: var(--bg-card2); transform: scale(1.04); }

/* ---------- 27. Animations ---------- */
@keyframes fadeIn   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn  { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(6,182,212,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(6,182,212,0); }
  100% { box-shadow: 0 0 0 0 rgba(6,182,212,0); }
}
@keyframes toastIn  { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(20px); } }
@keyframes float    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shimmer  { to { background-position: -200% center; } }
@keyframes glow-pulse { 0%,100% { opacity:.5; } 50% { opacity:1; } }

.animate-fadeIn   { animation: fadeIn   .6s ease both; }
.animate-slideUp  { animation: slideUp  .6s ease both; }
.animate-float    { animation: float 4s ease-in-out infinite; }
.animate-spin     { animation: spin .8s linear infinite; }

[data-aos] { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
[data-aos="fade-up"]   { transform: translateY(30px); }
[data-aos="fade-left"] { transform: translateX(-30px); }
[data-aos="fade-right"]{ transform: translateX(30px); }
[data-aos].aos-animate { opacity: 1; transform: none; }

/* ---------- 28. Skeleton Loader ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card2) 25%, var(--bg-card) 50%, var(--bg-card2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}

/* ---------- 29. Footer ---------- */
footer {
  background: #050612;
  border-top: 1px solid var(--border2);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand { max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.footer-logo img { height: 40px; }
.footer-logo span { font-size: 1.1rem; font-weight: 800; }
.footer-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.7; }
.footer-col h5 { font-size: .95rem; font-weight: 700; margin-bottom: 1rem; color: #fff; }
.footer-col a { display: block; font-size: .875rem; color: var(--text-muted); padding: .25rem 0; transition: var(--trans); }
.footer-col a:hover { color: var(--accent); transform: translateX(-4px); }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: var(--text-muted);
  transition: var(--trans);
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid var(--border2);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .8rem; color: var(--text-muted); }

/* ---------- 30. Search & Filter ---------- */
.filter-bar {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: .45rem 1rem;
  border-radius: var(--r-full);
  font-size: .8rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border2);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--trans);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 31. Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.mobile-open { display: block; position: fixed; top: 70px; right: 0; bottom: 0; width: 280px; z-index: 500; overflow-y: auto; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .navbar-nav  { display: none; }
  .navbar-actions .btn { display: none; }
  .navbar-toggle { display: flex; }
  .section { padding-block: 3rem; }
  .hero { min-height: 100svh; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
  .btn-xl { padding: .9rem 1.8rem; font-size: 1rem; }
}

/* ---------- 32. Utility Classes ---------- */
.hidden   { display: none !important; }
.visible  { display: block !important; }
.sr-only  { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gap-sm   { gap: .5rem; }
.gap-md   { gap: 1rem; }
.gap-lg   { gap: 2rem; }
.mt-sm    { margin-top: .5rem; }
.mt-md    { margin-top: 1rem; }
.mt-lg    { margin-top: 2rem; }
.mb-sm    { margin-bottom: .5rem; }
.mb-md    { margin-bottom: 1rem; }
.mb-lg    { margin-bottom: 2rem; }
.rounded  { border-radius: var(--r-md); }
.rounded-full { border-radius: var(--r-full); }
.w-full   { width: 100%; }
.h-full   { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.pointer  { cursor: pointer; }
.font-bold  { font-weight: 700; }
.font-black { font-weight: 900; }
.uppercase  { text-transform: uppercase; }
.letter-wide { letter-spacing: .05em; }
.border-b   { border-bottom: 1px solid var(--border2); }
.p-0 { padding: 0; }

/* ---------- 33. White FA Icons Override ---------- */
/* Make Font Awesome icons white throughout the site */
.fa, .fas, .far, .fal, .fab {
  color: #ffffff;
}
/* Keep badge icons their badge color */
.badge .fa, .badge .fas, .badge .far, .badge .fab {
  color: inherit;
}
/* Keep social buttons icons their color context */
.social-btn .fa, .social-btn .fas, .social-btn .far, .social-btn .fab {
  color: inherit;
}
/* Keep input icons muted */
.input-icon .fa, .input-icon .fas {
  color: var(--text-muted);
}
/* Keep active nav icons accent colored */
.navbar-nav a.active .fa,
.navbar-nav a.active .fas {
  color: var(--accent);
}
/* Section badge icons stay accent */
.section-badge .fa, .section-badge .fas {
  color: var(--accent);
}
/* Specific colored icon contexts */
.text-accent .fa, .text-accent .fas { color: var(--accent); }
.text-gold .fa,   .text-gold .fas   { color: var(--gold); }

/* ---------- 34. Field Icon Sizes ---------- */
/* Larger icons in field/domain sections */
.field-icon {
  font-size: 3.5rem !important;
}

.p-sm { padding: .75rem; }
.p-md { padding: 1.5rem; }
.p-lg { padding: 2rem; }
