/* ═══════════════════════════════════════════════════════
   MASARI — Global Design System  (style-global.css)
   Blue Edition · RTL · Tajawal · v1.0
   ═══════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Primary */
  --blue:        #1A91F0;
  --blue-dark:   #1270C0;
  --blue-light:  #E8F4FD;
  --blue-mid:    #D0E8FA;
  --blue-rgba:   rgba(26,145,240,0.12);

  /* Text */
  --text:        #3D2B1A;
  --text2:       #7A5C42;
  --text3:       #A68B6E;

  /* Surfaces */
  --bg:          #FAF6EF;
  --white:       #FDF8F2;
  --surface:     #FDF8F2;
  --surface-2:   #F2EAD8;
  --surface-3:   #E8DECE;

  /* Borders */
  --border:      #DDD0B8;
  --border-2:    #C8B89A;

  /* Status — golden accent (green kept only for success alerts) */
  --green:       #C49A3C;
  --green-light: #F5EDD6;
  --green-dark:  #8B6914;
  --green-rgba:  rgba(139,105,20,0.10);
  --danger:      #EF4444;
  --danger-light:#FEE2E2;
  --warning:     #F59E0B;
  --warning-light:#FEF3C7;

  /* Shape */
  --radius:      10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow:      0 4px 16px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 28px rgba(0,0,0,0.09);
  --shadow-blue: 0 8px 24px rgba(26,145,240,0.25);
  --shadow-glow: 0 0 0 3px rgba(26,145,240,0.18);

  /* Transitions */
  --trans:       all 0.22s ease;
}

/* ── 2. RESET & BASE ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Tajawal', 'Cairo', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure RTL inputs also use Tajawal */
input, textarea, select, button {
  font-family: 'Tajawal', 'Cairo', 'Inter', sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── 3. TYPOGRAPHY ────────────────────────────────────── */
h1 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text);
}
h2 {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
}
h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
h4 { font-size: 17px; font-weight: 700; color: var(--text); }
h5, h6 { font-size: 14px; font-weight: 600; color: var(--text); }

p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text2);
}
p.small { font-size: 13px; color: var(--text3); }

.text-long { max-width: 65ch; }

/* Stat numbers */
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Section label (small uppercase) */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ── 4. LAYOUT ────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 580px) {
  .container { padding: 0 20px; }
}

.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }

.g-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.g-col-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.g-col-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.g-col-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 960px) {
  .g-col-4 { grid-template-columns: repeat(2, 1fr); }
  .g-col-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .g-col-4, .g-col-3, .g-col-2 { grid-template-columns: 1fr; }
}

/* ── 5. NAVBAR ────────────────────────────────────────── */
.g-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.g-navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.g-navbar-inner {
  display: flex;
  align-items: center;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 16px;
}
.g-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.g-brand-sq {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #fff;
  font-family: 'Tajawal', sans-serif;
  flex-shrink: 0;
}
.g-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #6B4F0F;
  font-family: 'Tajawal', sans-serif;
}
.g-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.g-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 8px;
  transition: var(--trans);
  white-space: nowrap;
}
.g-nav-link:hover,
.g-nav-link.active {
  color: var(--blue);
  background: var(--blue-light);
  text-decoration: none;
}
.g-nav-link.ats-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
}
.g-nav-link.ats-link:hover {
  background: var(--blue-mid);
}
.g-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.g-nav-login {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  transition: var(--trans);
}
.g-nav-login:hover {
  background: var(--blue-light);
  text-decoration: none;
}
.g-nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--trans);
}
.g-nav-user:hover { background: var(--surface-2); text-decoration: none; }
.g-nav-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* Mobile hamburger */
.g-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-right: auto;
}
.g-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.g-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.g-hamburger.open span:nth-child(2) { opacity: 0; }
.g-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .g-nav-links {
    display: none;
    position: absolute;
    top: 64px; right: 0; left: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 16px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    border-top: 1px solid var(--border);
    z-index: 9998;
  }
  .g-nav-links.open { display: flex; }
  .g-hamburger { display: flex; }
  .g-navbar-inner { padding: 0 20px; }
  .g-nav-actions .g-nav-login { display: none; }
}
@media (max-width: 580px) {
  .g-brand-name { display: none; }
}

/* ── 6. BUTTONS ──────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Tajawal', 'Cairo', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--trans);
  white-space: nowrap;
  line-height: 1.4;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
  color: #fff;
  text-decoration: none;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-primary.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--blue-light);
  color: var(--blue);
  border: 1.5px solid var(--blue-mid);
  border-radius: var(--radius);
  font-family: 'Tajawal', 'Cairo', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--trans);
  white-space: nowrap;
  line-height: 1.4;
}
.btn-secondary:hover {
  background: var(--blue-mid);
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary.btn-sm { padding: 9px 18px; font-size: 13px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  font-family: 'Tajawal', 'Cairo', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--trans);
  white-space: nowrap;
  line-height: 1.4;
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
  text-decoration: none;
}
.btn-outline.btn-sm { padding: 9px 18px; font-size: 13px; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Tajawal', 'Cairo', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--trans);
}
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }

/* Loading spinner inside button */
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
  flex-shrink: 0;
}
.btn-spinner.active { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 7. CARDS ─────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--blue-mid);
}
.card-flat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-blue {
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-featured {
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 8px 40px rgba(26,145,240,0.14);
}

/* ── 8. FORMS ─────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Tajawal', 'Cairo', 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,145,240,0.12);
}
.form-input.invalid { border-color: var(--danger); }
.form-input.valid   { border-color: var(--green); }

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}
.form-select { cursor: pointer; }

.form-error {
  font-size: 11px;
  color: var(--danger);
  margin-top: 5px;
  display: none;
}
.form-error.visible { display: block; }

.form-hint {
  font-size: 11px;
  color: var(--text3);
  margin-top: 5px;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.form-check-label {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  cursor: pointer;
}

/* ── 9. BADGES ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.badge-blue    { background: var(--blue-light); color: var(--blue); border: 1px solid var(--blue-mid); }
.badge-green   { background: var(--green-light); color: var(--green-dark); border: 1px solid rgba(139,105,20,0.25); }
.badge-gray    { background: var(--surface-2); color: var(--text3); border: 1px solid var(--border); }
.badge-danger  { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(239,68,68,0.25); }
.badge-warning { background: var(--warning-light); color: #92400E; border: 1px solid rgba(245,158,11,0.25); }
.badge-purple  { background: #F3E8FF; color: #7C3AED; border: 1px solid rgba(124,58,237,0.25); }
.badge-dark    { background: var(--text); color: #fff; }

/* ── 10. ALERTS / TOASTS ─────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  animation: alertIn 0.25s ease;
}
@keyframes alertIn { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: none; } }
.alert-success { background: #D1FAE5; color: #065f46; border: 1px solid rgba(34,197,94,0.30); }
.alert-error   { background: var(--danger-light); color: #991b1b; border: 1px solid rgba(239,68,68,0.30); }
.alert-info    { background: var(--blue-light);   color: var(--blue-dark); border: 1px solid var(--blue-mid); }
.alert-warning { background: var(--warning-light); color: #92400E; border: 1px solid rgba(245,158,11,0.30); }

/* ── 11. SECTION HEADERS ─────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header .section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.section-header .section-sub {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto;
}

/* ── 12. PROGRESS BAR ─────────────────────────────────── */
.progress-track {
  height: 8px;
  background: var(--surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--blue);
  transition: width 0.6s cubic-bezier(0.22,1,0.36,1);
}
.progress-fill.green { background: var(--green); }
.progress-fill.danger { background: var(--danger); }
.progress-fill.warning { background: var(--warning); }

/* ── 13. SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-mid); }

/* ── 14. SELECTION ───────────────────────────────────── */
::selection { background: rgba(26,145,240,0.15); color: var(--text); }

/* ── 15. SCROLL ANIMATIONS ───────────────────────────── */
.g-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.g-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
.g-delay-1 { transition-delay: 0.08s; }
.g-delay-2 { transition-delay: 0.16s; }
.g-delay-3 { transition-delay: 0.24s; }
.g-delay-4 { transition-delay: 0.32s; }

/* ── 16. RTL UTILITIES ───────────────────────────────── */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
[dir="rtl"] .ml-auto { margin-left: unset; margin-right: auto; }
[dir="rtl"] .mr-auto { margin-right: unset; margin-left: auto; }

/* ── 17. DIVIDER ──────────────────────────────────────── */
.g-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text3);
  font-size: 12px;
  margin: 20px 0;
}
.g-divider::before, .g-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── 18. CHIPS ────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text2);
}
.chip-blue   { background: var(--blue-light); border-color: var(--blue-mid); color: var(--blue); }
.chip-green  { background: var(--green-light); border-color: rgba(139,105,20,0.25); color: var(--green-dark); }
.chip-red    { background: var(--danger-light); border-color: rgba(239,68,68,0.25); color: var(--danger); }
.chip-gray   { background: var(--surface-2); border-color: var(--border); color: var(--text3); }

/* ── 19. ACCORDION ────────────────────────────────────── */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.accordion-item.open { border-color: var(--blue-mid); }
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--white);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  border: none;
  width: 100%;
  text-align: right;
  font-family: 'Tajawal', 'Cairo', 'Inter', sans-serif;
  transition: background 0.2s;
}
.accordion-trigger:hover { background: var(--blue-light); color: var(--blue); }
.accordion-item.open .accordion-trigger { color: var(--blue); background: var(--blue-light); }
.accordion-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s;
}
.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  background: var(--blue);
  color: #fff;
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1);
  background: var(--white);
}
.accordion-body.open { max-height: 600px; }
.accordion-body-inner {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
}

/* ── 20. FOOTER ───────────────────────────────────────── */
.g-footer {
  background: #1A1A2E;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 0 0;
}
.g-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.g-footer-brand {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  text-decoration: none;
}
.g-footer-brand-sq {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.g-footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
}
.g-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.g-footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.g-footer-col a:hover { color: rgba(255,255,255,0.8); text-decoration: none; }
.g-footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 960px) {
  .g-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 580px) {
  .g-footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 0 20px; }
  .g-footer-bottom { padding: 20px; flex-direction: column; text-align: center; }
}

/* ── 21. MISC UTILITIES ──────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.text-blue   { color: var(--blue) !important; }
.text-green  { color: var(--green-dark) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted  { color: var(--text3) !important; }
.text-bold   { font-weight: 700 !important; }
.text-heavy  { font-weight: 800 !important; }
.bg-white    { background: var(--white) !important; }
.bg-light    { background: var(--bg) !important; }
.bg-blue     { background: var(--blue) !important; color: #fff !important; }
.d-none   { display: none !important; }
.d-flex   { display: flex !important; }
.d-grid   { display: grid !important; }
.d-block  { display: block !important; }
.gap-8    { gap: 8px; }
.gap-12   { gap: 12px; }
.gap-16   { gap: 16px; }
.gap-24   { gap: 24px; }
.mt-8     { margin-top: 8px; }
.mt-16    { margin-top: 16px; }
.mt-24    { margin-top: 24px; }
.mt-32    { margin-top: 32px; }
.mb-8     { margin-bottom: 8px; }
.mb-16    { margin-bottom: 16px; }
.mb-24    { margin-bottom: 24px; }
.mb-32    { margin-bottom: 32px; }
.w-full   { width: 100%; }

/* Centered flex helpers */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* ── 22. PAGE PADDING (for fixed navbar) ────────────────── */
.page-body {
  padding-top: 64px;
}
