/* ============================================================
   REDEFINITION MINISTRIES — Design System
   Deep Blue + Orange + Stroke Red brand palette
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Archivo:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand Colors — dark slate + gold (matches the public-page redesign) */
  --brand-blue: #1E293B;
  /* Dark slate — primary dark neutral */
  --brand-blue-dark: #0F172A;
  /* Darkest slate variant */
  --brand-blue-mid: #334155;
  /* Mid slate variant */
  --brand-blue-light: #475569;
  /* Lighter slate accent */
  --brand-orange: #D97706;
  /* Gold — primary accent */
  --brand-orange-dark: #B45309;
  /* Deeper gold */
  --brand-orange-light: #F59E0B;
  /* Lighter amber */
  --brand-red: #C0392B;
  /* Stroke red accent, used for the red badge
                                      variant only — unrelated to brand colors */
  --brand-red-light: #E74C3C;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  /* Gradients */
  --grad-blue: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
  --grad-blue-orange: linear-gradient(135deg, #1E293B 0%, #D97706 100%);
  --grad-blue-red: linear-gradient(135deg, #1E293B 0%, #C0392B 100%);
  --grad-orange: linear-gradient(135deg, #B45309 0%, #D97706 60%, #F59E0B 100%);
  --grad-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.93) 0%, rgba(30, 41, 59, 0.78) 60%, rgba(51, 65, 85, 0.55) 100%);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.22);
  --shadow-blue: 0 8px 32px rgba(15, 23, 42, 0.35);
  --shadow-orange: 0 8px 32px rgba(217, 119, 6, 0.35);

  /* Typography */
  --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-body: 'Archivo', 'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-padding: 6rem 0;
  --section-padding-sm: 4rem 0;
  --container-width: 1200px;
  --container-xl: 1400px;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.18s;
  --dur-med: 0.32s;
  --dur-slow: 0.5s;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ── Typography Scale ──────────────────────────────────────── */
.ds-display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

.ds-h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.ds-h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
}

.ds-h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.ds-h4 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.ds-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: var(--gray-500);
}

.ds-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

/* ── Container ─────────────────────────────────────────────── */
.ds-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.ds-container-xl {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* ── Section Blocks ────────────────────────────────────────── */
.ds-section-blue {
  background: var(--grad-blue);
  color: var(--white);
  padding: var(--section-padding);
}

.ds-section-white {
  background: var(--white);
  padding: var(--section-padding);
}

.ds-section-gray {
  background: var(--gray-50);
  padding: var(--section-padding);
}

.ds-section-blue h1,
.ds-section-blue h2,
.ds-section-blue h3,
.ds-section-blue h4,
.ds-section-blue h5 {
  color: var(--white);
}

.ds-section-blue .ds-eyebrow {
  color: var(--brand-orange-light);
}

.ds-section-blue .ds-lead {
  color: rgba(255, 255, 255, 0.72);
}

.ds-section-blue p {
  color: rgba(255, 255, 255, 0.82);
}

/* Section Header */
.ds-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.ds-section-header .ds-eyebrow {
  margin-bottom: 0.75rem;
  display: block;
}

.ds-section-header h2 {
  margin-bottom: 1rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all var(--dur-med) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.ds-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--dur-fast);
  border-radius: inherit;
}

.ds-btn:hover::after {
  background: rgba(255, 255, 255, 0.08);
}

.ds-btn:active {
  transform: scale(0.97);
}

/* Primary — Orange gradient */
.ds-btn-primary {
  background: var(--grad-orange);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.4);
}

.ds-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217, 119, 6, 0.5);
}

/* Secondary — Blue outline */
.ds-btn-secondary {
  background: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

.ds-btn-secondary:hover {
  background: var(--brand-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Ghost — White outline (on dark bg) */
.ds-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.ds-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Blue solid */
.ds-btn-blue {
  background: var(--brand-blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.ds-btn-blue:hover {
  background: var(--brand-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.45);
}

/* sm / lg sizes */
.ds-btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.ds-btn-lg {
  padding: 1rem 2.4rem;
  font-size: 1.05rem;
}

/* ── Cards ─────────────────────────────────────────────────── */
.ds-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.ds-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.ds-card-body {
  padding: 1.75rem;
}

.ds-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Blue accent card */
.ds-card-accent {
  border-top: 4px solid var(--brand-orange);
}

/* Glass card (on dark bg) */
.ds-card-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  transition: background var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.ds-card-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.ds-card-glass .ds-card-body {
  padding: 1.75rem;
}

/* ── Inputs / Forms ────────────────────────────────────────── */
.ds-form-group {
  margin-bottom: 1.4rem;
}

.ds-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--gray-700);
}

.ds-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
}

.ds-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.ds-input::placeholder {
  color: var(--gray-400);
}

/* Input with icon */
.ds-input-icon-wrap {
  position: relative;
}

.ds-input-icon-wrap .ds-input {
  padding-left: 2.75rem;
}

.ds-input-icon-wrap .ds-input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

/* ── Badges ────────────────────────────────────────────────── */
.ds-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ds-badge-blue {
  background: rgba(15, 23, 42, 0.12);
  color: var(--brand-blue);
}

.ds-badge-orange {
  background: rgba(217, 119, 6, 0.12);
  color: var(--brand-orange-dark);
}

.ds-badge-green {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.ds-badge-red {
  background: rgba(192, 57, 43, 0.12);
  color: var(--brand-red);
}

/* ── Navigation (Universal) ────────────────────────────────── */
.ds-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--dur-med) var(--ease), padding var(--dur-med) var(--ease), box-shadow var(--dur-med);
}

/* .ds-navbar.transparent { background: transparent; } */
.ds-navbar.scrolled {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

/* Interior pages (not hero bg) */
.ds-navbar.solid {
  background: var(--brand-blue-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.ds-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.ds-nav-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Desktop shows uploads/ministry/Logo.png; below 768px it switches to
   uploads/ministry/Logo-mobile.png instead (see includes/header.php). */
.ds-logo-mobile {
  display: none;
}

@media (max-width: 768px) {
  .ds-logo-mobile {
    display: block;
  }

  .ds-logo-desktop {
    display: none;
  }
}

.ds-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ds-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}

.ds-nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.ds-nav-links a.active {
  color: var(--brand-orange-light);
  background: rgba(217, 119, 6, 0.12);
}

.ds-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Live pill */
.ds-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-transform: uppercase;
  transition: background var(--dur-fast);
}

.ds-live-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ds-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-400);
}

.ds-live-dot.active {
  background: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  animation: live-pulse 1.4s infinite;
}

@keyframes live-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.05);
  }
}

/* Give button in nav */
.ds-give-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--grad-orange);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
  transition: all var(--dur-med) var(--ease);
}

.ds-give-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.55);
}

/* ── Hamburger ─────────────────────────────────────────────── */
.ds-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

.ds-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--dur-med) var(--ease);
}

.ds-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ds-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.ds-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.ds-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 23, 47, 0.98);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--dur-med) var(--ease);
}

.ds-mobile-menu.open {
  display: flex;
  transform: translateX(0);
}

.ds-mobile-menu a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ds-mobile-menu a:hover {
  color: var(--white);
}

.ds-mobile-menu a.active {
  color: var(--brand-orange-light);
}

.ds-mobile-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Hero Section Base ─────────────────────────────────────── */
.ds-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-blue-dark);
}

.ds-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: 1;
}

.ds-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  padding-top: 7rem;
  padding-bottom: 4rem;
}

/* ── Stat Cards ────────────────────────────────────────────── */
.ds-stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ds-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--brand-orange-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.ds-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Feature Icon Box ──────────────────────────────────────── */
.ds-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ds-icon-box-blue {
  background: rgba(15, 23, 42, 0.1);
  color: var(--brand-blue);
}

.ds-icon-box-orange {
  background: rgba(217, 119, 6, 0.12);
  color: var(--brand-orange);
}

.ds-icon-box-white {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* ── CTA Strip ─────────────────────────────────────────────── */
.ds-cta-strip {
  background: var(--grad-blue-orange);
  padding: 4rem 0;
  text-align: center;
}

.ds-cta-strip h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.ds-cta-strip p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FAQ Accordion ─────────────────────────────────────────── */
.ds-faq-item {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--dur-med);
}

.ds-faq-item.open {
  box-shadow: var(--shadow-sm);
}

.ds-faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: color var(--dur-fast);
}

.ds-faq-trigger:hover,
.ds-faq-item.open .ds-faq-trigger {
  color: var(--brand-blue);
}

.ds-faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--brand-orange);
  transition: transform var(--dur-med) var(--ease);
}

.ds-faq-item.open .ds-faq-icon {
  transform: rotate(45deg);
}

.ds-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease);
}

.ds-faq-item.open .ds-faq-answer {
  max-height: 500px;
}

.ds-faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
}

.ds-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Auth Pages ────────────────────────────────────────────── */
.ds-auth-page {
  min-height: 100vh;
  background: var(--grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.ds-auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.ds-auth-header {
  background: var(--grad-blue);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  color: var(--white);
}

.ds-auth-header img {
  height: 48px;
  margin: 0 auto 1rem;
}

.ds-auth-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.ds-auth-header p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.ds-auth-body {
  padding: 2.25rem 2rem;
}

.ds-auth-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--gray-100);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.ds-auth-tab {
  flex: 1;
  padding: 0.6rem 0;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: all var(--dur-fast);
  text-align: center;
}

.ds-auth-tab.active {
  background: var(--white);
  color: var(--brand-blue);
  box-shadow: var(--shadow-xs);
}

.ds-auth-footer {
  text-align: center;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.875rem;
  color: var(--gray-500);
}

.ds-auth-footer a {
  color: var(--brand-blue);
  font-weight: 600;
}

.ds-auth-footer a:hover {
  color: var(--brand-orange);
}

.ds-password-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--dur-fast);
}

.ds-password-toggle:hover {
  color: var(--brand-blue);
}

/* ── Admin Sidebar ─────────────────────────────────────────── */
.ds-admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--gray-50);
}

.ds-sidebar {
  width: 260px;
  background: var(--brand-blue-dark);
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  overflow-y: auto;
  overflow-x: hidden;
}

.ds-sidebar.collapsed {
  width: 68px;
}

.ds-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
}

.ds-sidebar-logo img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.ds-sidebar-logo-text {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}

.ds-sidebar.collapsed .ds-sidebar-logo-text {
  display: none;
}

.ds-sidebar-toggle {
  position: absolute;
  top: 1.2rem;
  right: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 101;
  transition: transform var(--dur-med) var(--ease);
}

.ds-sidebar.collapsed .ds-sidebar-toggle {
  transform: rotate(180deg);
}

.ds-sidebar-nav {
  padding: 1.25rem 0.75rem;
  flex: 1;
}

.ds-sidebar-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  padding: 0.75rem 0.75rem 0.35rem;
  white-space: nowrap;
  overflow: hidden;
}

.ds-sidebar.collapsed .ds-sidebar-group-label {
  opacity: 0;
}

.ds-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--dur-fast);
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 2px;
  position: relative;
}

.ds-sidebar-link svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.ds-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.ds-sidebar-link.active {
  background: rgba(217, 119, 6, 0.18);
  color: var(--brand-orange-light);
}

.ds-sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 3px;
  background: var(--brand-orange);
  border-radius: 0 2px 2px 0;
}

.ds-sidebar.collapsed .ds-sidebar-link span {
  display: none;
}

.ds-sidebar-badge {
  margin-left: auto;
  flex-shrink: 0;
  background: #EF4444;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.ds-sidebar.collapsed .ds-sidebar-badge {
  display: none;
}

/* Admin main */
.ds-admin-main {
  flex: 1;
  margin-left: 260px;
  transition: margin-left var(--dur-med) var(--ease);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ds-sidebar.collapsed~.ds-admin-main {
  margin-left: 68px;
}

.ds-admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.ds-admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ds-admin-topbar h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

.ds-admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ds-admin-content {
  padding: clamp(1.25rem, 3vw, 2rem);
  flex: 1;
}

/* Admin stat cards */
.ds-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.ds-stat-card-admin {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow var(--dur-med);
}

.ds-stat-card-admin:hover {
  box-shadow: var(--shadow-sm);
}

.ds-stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ds-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.ds-stat-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* Admin tables */
.ds-table-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.ds-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  gap: 1rem;
  flex-wrap: wrap;
}

.ds-table-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}

table.ds-table {
  width: 100%;
  border-collapse: collapse;
}

table.ds-table th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  padding: 0.75rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}

table.ds-table td {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-50);
}

table.ds-table tr:last-child td {
  border-bottom: none;
}

table.ds-table tbody tr {
  transition: background var(--dur-fast);
}

table.ds-table tbody tr:hover {
  background: var(--gray-50);
}

/* ── Footer ────────────────────────────────────────────────── */
/* (existing footer remains, just ensure font alignment) */

/* ── Utilities ─────────────────────────────────────────────── */
.ds-text-orange {
  color: var(--brand-orange) !important;
}

.ds-text-blue {
  color: var(--brand-blue) !important;
}

.ds-text-white {
  color: var(--white) !important;
}

.ds-text-muted {
  color: var(--gray-500) !important;
}

.ds-bg-blue {
  background: var(--brand-blue);
}

.ds-bg-orange {
  background: var(--brand-orange);
}

.ds-d-flex {
  display: flex;
}

.ds-align-center {
  align-items: center;
}

.ds-justify-between {
  justify-content: space-between;
}

.ds-gap-1 {
  gap: 0.5rem;
}

.ds-gap-2 {
  gap: 1rem;
}

.ds-gap-3 {
  gap: 1.5rem;
}

.ds-gap-4 {
  gap: 2rem;
}

.ds-mt-auto {
  margin-top: auto;
}

.ds-grid {
  display: grid;
}

.ds-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 2rem;
}

.ds-grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
}

.ds-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1.5rem;
}

.ds-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Alerts ────────────────────────────────────────────────── */
.ds-alert {
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.ds-alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #B91C1C;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.ds-alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ── Divider ───────────────────────────────────────────────── */
.ds-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  margin: 0;
}

/* ── Scroll animations ─────────────────────────────────────── */
.ds-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.ds-fade-up.ds-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive Breakpoints ────────────────────────────────── */
@media (max-width: 1024px) {
  .ds-nav-links {
    gap: 0;
  }

  .ds-nav-links a {
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .ds-nav-links {
    display: none;
  }

  .ds-hamburger {
    display: flex;
  }

  .ds-admin-main {
    margin-left: 0;
  }

  .ds-sidebar {
    transform: translateX(-100%);
    width: 260px !important;
  }

  .ds-sidebar.mobile-open {
    transform: translateX(0);
  }

  .ds-admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  :root {
    --section-padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .ds-admin-stats {
    grid-template-columns: 1fr;
  }
}

/* ── Wide-screen enhancements ──────────────────────────────── */
@media (min-width: 1440px) {
  :root {
    --container-width: 1280px;
    --container-xl: 1560px;
  }

  .ds-section-header {
    margin-bottom: 4rem;
  }
}

@media (min-width: 1920px) {
  :root {
    --container-width: 1440px;
    --container-xl: 1760px;
    --section-padding: 8rem 0;
  }
}