/* ============================================
   ZAKAT CALCULATOR - UPDATED STYLES
   Modern fonts, original color scheme
   ============================================ */

/* CSS Variables — Refined Modern Design System */
:root {
  --primary: #1a5f4a;
  --primary-dark: #145242;
  --primary-light: #2d8a6e;
  --secondary: #d4a500;
  --accent: #c9a227;
  --bg-cream: #f9f8f6;
  --bg-light: #f5f3ef;
  --bg-dark: #0f2e23;
  --bg-dark-lighter: #153a2d;
  --surface: #f5f3ef;
  --text: #1c1917;
  --text-dark: #1c1917;
  --text-light: #57534e;
  --text-muted: #a8a29e;
  --border: #e7e5e4;
  --border-light: #f0eeeb;
  --white: #ffffff;
  --success: #16a34a;
  --warning: #ca8a04;
  --danger: #dc2626;
  --error: #dc2626;
  
  /* Typography: Georgia for display, system sans for UI */
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Single shadow level — no escalation */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-xl: 0 2px 8px rgba(0,0,0,0.08);
  
  /* Two radius values only */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 10px;
  --radius-xl: 10px;

  /* Extended palette for dark heroes */
  --primary-deeper: #0f3d32;
  --accent-light: #d4b84a;
  --teal: #046e6d;
}

/* ============================================
   SVG ICON SYSTEM
   ============================================ */

/* Base icon styles */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Icon size variants */
.icon-xs { width: 0.75em; height: 0.75em; }
.icon-sm { width: 0.875em; height: 0.875em; }
.icon-md { width: 1.25em; height: 1.25em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2em; height: 2em; }
.icon-2xl { width: 2.5em; height: 2.5em; }
.icon-3xl { width: 3em; height: 3em; }

/* Flag icons (special - filled, not stroked) */
.icon-flag {
  width: 1.25em;
  height: 0.9375em; /* 4:3 aspect ratio */
  stroke: none;
  border-radius: 2px;
  overflow: hidden;
}

.icon-flag-lg {
  width: 2em;
  height: 1.5em;
}

/* Icon with text spacing */
.icon + span,
span + .icon,
.icon + a,
a + .icon {
  margin-left: 0.35em;
}

[dir="rtl"] .icon + span,
[dir="rtl"] span + .icon,
[dir="rtl"] .icon + a,
[dir="rtl"] a + .icon {
  margin-left: 0;
  margin-right: 0.35em;
}

/* Icon colors */
.icon-success { color: var(--success); }
.icon-warning { color: var(--warning); }
.icon-danger { color: var(--danger); }
.icon-primary { color: var(--primary); }
.icon-muted { color: var(--text-muted); }

/* Dropdown icon container */
.dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  font-size: 1em;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

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

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .section { padding: 60px 0; }
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.15s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.logo-icon {
  font-size: 2rem;
}

.logo-img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .logo-img {
    height: 48px;
    width: 48px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links li {
  white-space: nowrap;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 8px 16px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
}

/* Hide less important nav items on medium screens */
@media (max-width: 1200px) {
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 12px;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 180px;
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  display: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(26,95,74,0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--primary);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
}

.hero-card::before {
  display: none;
}

.hero-stat {
  text-align: center;
  padding: 20px;
}

.hero-stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
}

.hero-stat-label {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero-description {
    margin: 0 auto 32px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    display: none;
  }
}


/* ============================================
   SECTION 1: HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: block;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-content h1 span,
.hero-content h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-content .hero-subtitle,
.hero-content .hero-description {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-device {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-device-placeholder {
  width: 320px;
  background: var(--white);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-device-placeholder::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 3px;
  z-index: 2;
}

/* Mini app UI inside the device */
.hero-device-placeholder .mini-app-header {
  background: var(--primary-dark);
  padding: 36px 24px 16px;
  color: var(--white);
}

.hero-device-placeholder .mini-app-header .mini-logo {
  font-family: var(--font-display);
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.hero-device-placeholder .mini-app-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
}

.hero-device-placeholder .mini-app-body {
  padding: 16px 20px 24px;
}

.hero-device-placeholder .mini-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
}

.hero-device-placeholder .mini-input .mini-val {
  color: var(--text);
  font-weight: 600;
}

.hero-device-placeholder .mini-result {
  background: rgba(26,95,74,0.06);
  border: 1px solid rgba(26,95,74,0.12);
  border-radius: 8px;
  padding: 14px;
  margin-top: 12px;
  text-align: center;
}

.hero-device-placeholder .mini-result-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-device-placeholder .mini-result-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 3px;
}

.hero-device-placeholder .mini-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

/* Hero buttons within dark hero */
.hero .hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--white);
  padding: 14px 36px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero .btn-primary:hover {
  background: transparent;
  color: var(--white);
}

.hero .btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  padding: 14px 36px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-badge .icon {
  width: 16px;
  height: 16px;
}

/* ============================================
   SECTION 2: FEATURES
   ============================================ */

.features {
  padding: 100px 0;
  background: var(--white);
}

.features-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
}

.features-header h2 {
  flex-shrink: 0;
}

.features-header p {
  padding-left: 24px;
  border-left: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: stretch;
}

/* Phone preview container */
.features-phone {
  display: flex;
}

.features-phone-device {
  width: 100%;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.features-phone-device::before {
  content: '';
  display: block;
  width: 60px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.phone-preview.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.phone-preview-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Phone screen previews — only active one visible */
.phone-preview {
  display: none;
}

.phone-preview.active {
  display: block;
}

.phone-preview-header {
  background: var(--primary-dark);
  padding: 20px 18px 12px;
  color: var(--white);
}

.phone-preview-header .pp-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
}

.phone-preview-body {
  padding: 14px 16px 20px;
}

/* Preview items — generic rows */
.pp-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 7px;
  font-size: 0.7rem;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pp-row .pp-val {
  color: var(--text);
  font-weight: 600;
}

.pp-result {
  background: rgba(26,95,74,0.06);
  border: 1px solid rgba(26,95,74,0.12);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  text-align: center;
}

.pp-result-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pp-result-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

/* Language preview specific */
.pp-lang-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
}

.pp-lang-item.selected {
  border-color: var(--primary);
  background: rgba(26,95,74,0.04);
}

.pp-lang-flag { font-size: 1.1rem; }
.pp-lang-name { font-weight: 600; color: var(--text); }
.pp-lang-native { color: var(--text-muted); font-size: 0.65rem; }

/* Report preview specific */
.pp-cert-header {
  text-align: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.pp-cert-header .pp-cert-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
}

.pp-cert-header .pp-cert-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.pp-cert-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.65rem;
  color: var(--text-light);
  border-bottom: 1px dashed var(--border);
}

.pp-cert-row:last-child { border-bottom: none; }
.pp-cert-row .pp-cert-val { font-weight: 600; color: var(--text); }
.pp-cert-total {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 0;
  margin-top: 6px;
  border-top: 1px solid var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

/* Security preview */
.pp-shield {
  text-align: center;
  padding: 16px 0;
  font-size: 2rem;
  color: var(--primary);
}

.pp-security-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.7rem;
  color: var(--text-light);
}

.pp-check {
  width: 16px;
  height: 16px;
  background: rgba(26,95,74,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* Saved calcs preview */
.pp-saved-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 7px;
}

.pp-saved-date {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.pp-saved-amount {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* Feature cards */
.features-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Active tile highlight */
.feature-card.active {
  border-color: var(--primary);
  background: var(--white);
}

.feature-card {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: var(--primary-light);
}

.feature-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card-icon.green {
  background: rgba(26, 95, 74, 0.1);
}

.feature-card-icon.green svg {
  fill: var(--primary);
}

.feature-card-icon.gold {
  background: rgba(201, 162, 39, 0.12);
}

.feature-card-icon.gold svg {
  fill: var(--accent);
}

.feature-card-icon.light-green {
  background: rgba(45, 138, 110, 0.1);
}

.feature-card-icon.light-green svg {
  fill: var(--primary-light);
}

.feature-card h5 {
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-weight: 600;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Legacy feature-icon classes (backward compat) */
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon.icon-green {
  background: rgba(26, 95, 74, 0.1);
}

.feature-icon.icon-green svg {
  fill: var(--primary);
}

.feature-icon.icon-gold {
  background: rgba(201, 162, 39, 0.12);
}

.feature-icon.icon-gold svg {
  fill: var(--accent);
}

.feature-icon.icon-light-green {
  background: rgba(45, 138, 110, 0.1);
}

.feature-icon.icon-light-green svg {
  fill: var(--primary-light);
}

/* Scrollbar track indicator */
.scrollbar-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 16px;
  position: relative;
}

.scrollbar-thumb {
  height: 100%;
  width: 25%;
  background: var(--primary);
  border-radius: 2px;
}

/* Section header (shared by categories, languages) */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   SECTION: ABOUT / WELCOME
   ============================================ */

.about-welcome {
  padding: 100px 0;
  background: var(--white);
}

.about-welcome h2 {
  text-align: center;
  margin-bottom: 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}

.about-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-blurb {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-column-left .about-blurb {
  text-align: right;
}

.about-blurb-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-column-left .about-blurb-header {
  flex-direction: row-reverse;
}

.about-blurb-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-blurb-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
}

.about-blurb h5 {
  font-family: var(--font-ui);
  font-weight: 600;
}

.about-blurb p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-divider {
  height: 1px;
  background: var(--border);
  width: 60%;
}

.about-column-left .about-divider {
  margin-left: auto;
}

.about-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-circle-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-light), var(--bg-cream));
  border: 3px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
}

.about-circle-image svg {
  width: 40px;
  height: 40px;
  fill: var(--text-muted);
  opacity: 0.5;
}

.about-circle-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  animation: ring-rotate 30s linear infinite;
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.about-play-btn {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.about-play-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
  margin-left: 3px;
}

/* ============================================
   ASSET CATEGORIES — Dark section
   ============================================ */

.categories-section {
  background: var(--bg-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.categories-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 30%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,138,110,0.15) 0%, transparent 60%);
}

.categories-section .container {
  position: relative;
  z-index: 1;
}

.categories-section .section-header h2 {
  color: var(--white);
}

.categories-section .section-header h2 em {
  font-style: normal;
  color: var(--accent-light);
}

.categories-section .section-header p {
  color: rgba(255,255,255,0.7);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background: #f0ede6;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.15s ease;
}

.category-card:hover {
  border-color: var(--primary);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: rgba(26,95,74,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.category-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
}

.category-card h4 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: var(--text);
}

.category-card .text-muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.category-rate {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(26,95,74,0.08);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 10px;
}

/* ============================================
   HOW IT WORKS — Numbered step cards
   ============================================ */

.how-it-works {
  padding: 100px 0;
  background: var(--white);
}

.how-title {
  text-align: center;
  margin-bottom: 60px;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.how-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.how-blurb {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.how-column-left .how-blurb {
  text-align: right;
}

.how-blurb-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.how-column-left .how-blurb-header {
  flex-direction: row-reverse;
}

.how-blurb-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(26,95,74,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.how-blurb h5 {
  font-family: var(--font-ui);
  font-weight: 600;
}

.how-blurb p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.how-divider {
  height: 1px;
  background: var(--border);
  width: 60%;
}

.how-column-left .how-divider {
  margin-left: auto;
}

/* Center circle with logo */
.how-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-circle-image {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--teal);
  border: 1px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.how-circle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.how-circle-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 1px dashed var(--teal);
  animation: how-ring-rotate 30s linear infinite;
}

@keyframes how-ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .how-circle-ring,
  .about-circle-ring {
    animation: none;
  }
}

/* ============================================
   LANGUAGES SECTION
   ============================================ */

.languages-section {
  padding: 100px 0;
  background: var(--bg-cream);
}

.language-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.language-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 44px;
  text-align: center;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.language-card:hover,
.language-card.active {
  border-color: var(--primary);
}

.language-flag {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.language-name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.05rem;
}

.language-native {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* ============================================
   CTA SECTION — Dark with atmosphere
   ============================================ */

.cta {
  background: var(--bg-dark);
  color: var(--white);
  text-align: center;
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,138,110,0.2) 0%, transparent 60%);
}

.cta h2 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto 36px;
}

.cta .btn {
  position: relative;
  z-index: 1;
}

.cta .btn-primary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--white);
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
}

.cta .btn-primary:hover {
  background: var(--white);
  color: var(--primary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

/* ============================================
   HOMEPAGE RESPONSIVE — All sections
   ============================================ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-device-placeholder {
    width: 280px;
  }

  .about-grid {
    gap: 24px;
  }

  .about-circle-image {
    width: 220px;
    height: 220px;
  }

  .how-grid {
    gap: 24px;
  }

  .how-circle-image {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content .hero-subtitle,
  .hero-content .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .hero-buttons {
    justify-content: center;
  }

  .hero-device {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-phone {
    display: none;
  }

  .features-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .features-header p {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 12px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-column-left .about-blurb {
    text-align: center;
  }

  .about-blurb-header {
    justify-content: center;
  }

  .about-column-left .about-blurb-header {
    flex-direction: row;
  }

  .about-divider {
    margin: 0 auto;
  }

  .about-center {
    order: -1;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .how-column-left .how-blurb {
    text-align: center;
  }
  .how-blurb-header {
    justify-content: center;
  }
  .how-column-left .how-blurb-header {
    flex-direction: row;
  }
  .how-divider {
    margin: 0 auto;
  }
  .how-center {
    order: -1;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
  }
  .how-column {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
  }
  .how-column:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .features, .how-it-works, .languages-section { padding: 64px 0; }
  .categories-section { padding: 64px 0; }
  .about-welcome { padding: 64px 0; }
  .cta { padding: 64px 24px; }
  .categories-grid { grid-template-columns: 1fr; }
  .features-cards { grid-template-columns: 1fr; }
}

/* --- Hero RTL --- */
body.rtl .hero-grid {
  direction: rtl;
}

body.rtl .hero-content {
  text-align: right;
}

body.rtl .hero-content .hero-subtitle,
body.rtl .hero-content .hero-description {
  margin-left: 0;
  margin-right: 0;
}

body.rtl .features-header {
  flex-direction: row-reverse;
}
body.rtl .features-header p {
  padding-left: 0;
  padding-right: 24px;
  border-left: none;
  border-right: 1px solid var(--border);
}

body.rtl .how-column-left .how-blurb {
  text-align: left;
}
body.rtl .how-column-left .how-blurb-header {
  flex-direction: row;
}
body.rtl .how-column-right .how-blurb-header {
  flex-direction: row-reverse;
}
body.rtl .how-column-right .how-blurb {
  text-align: right;
}
body.rtl .how-column-left .how-divider {
  margin-left: 0;
  margin-right: auto;
}

body.rtl .about-column-left .about-blurb {
  text-align: left;
}

body.rtl .about-column-right .about-blurb {
  text-align: right;
}

body.rtl .about-column-left .about-blurb-header {
  flex-direction: row;
}

body.rtl .about-column-right .about-blurb-header {
  flex-direction: row-reverse;
}

body.rtl .about-column-left .about-divider {
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 768px) {
  body.rtl .hero-grid {
    text-align: center;
  }
  body.rtl .hero-content {
    text-align: center;
  }
}

/* ============================================
   DOCUMENTATION SECTION
   ============================================ */

.doc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.doc-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: block;
}

.doc-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.doc-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.doc-card h4 {
  margin-bottom: 8px;
  color: var(--text-dark);
}

.doc-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 768px) {
  .doc-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
  align-items: start;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 140px;
  width: 140px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: var(--font-ui);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.manage-cookies-link {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.manage-cookies-link:hover {
  color: rgba(255,255,255,0.8);
}

.footer-arabic {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links {
    margin-bottom: 10px;
  }
}

/* ============================================
   DOCUMENTATION PAGE
   ============================================ */

.docs-hero {
  background: var(--bg-dark);
  padding: 160px 0 48px;
}

.docs-hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.docs-hero h1 {
  font-size: 1.8rem;
  color: #fff;
  font-family: var(--font-display);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.3px;
}

.version-badge strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.version-badge span {
  color: #d4b84a;
}

.docs-main {
  background: #fff;
  padding: 60px 0 100px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
}

.docs-nav {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.nav-group {
  margin-bottom: 24px;
}

.nav-group:last-child {
  margin-bottom: 0;
}

.nav-group-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-group-label svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.nav-group ul {
  list-style: none;
}

.nav-group li {
  margin-bottom: 2px;
}

.nav-group a {
  display: block;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.nav-group a:hover {
  background: #fff;
  color: var(--primary);
}

.nav-group a.active {
  border-left-color: var(--primary);
  color: var(--primary);
  background: #fff;
  font-weight: 600;
}

.nav-group a .lock-icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 4px;
  opacity: 0.4;
  vertical-align: -1px;
}

.docs-content {
  min-width: 0;
  max-width: 100%;
}

.docs-content h1 {
  font-size: 1.55rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.docs-content h2 {
  font-size: 1.55rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.docs-content h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.docs-content h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.docs-content p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: var(--text-light);
}

.docs-content ul,
.docs-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.docs-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--text-light);
}

.docs-content li strong {
  color: var(--text);
}

.docs-content code {
  background: rgba(26, 95, 74, 0.06);
  color: #145242;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Consolas', 'Monaco', 'Menlo', monospace;
  font-size: 0.85em;
}

.docs-content pre {
  background: #1a1a2e;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 0.82rem;
  line-height: 1.7;
}

.docs-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.docs-content th,
.docs-content td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.docs-content th {
  background: var(--bg-cream);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.docs-content tbody tr:nth-child(even) {
  background: var(--bg-cream);
}

.docs-content tbody tr:last-child td {
  border-bottom: none;
}

.docs-content td code {
  background: rgba(26, 95, 74, 0.08);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.82rem;
}

.docs-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--bg-cream);
  margin: 20px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.docs-content blockquote p {
  margin: 0;
  font-style: italic;
}

.info-box {
  background: #eef7f4;
  border-left: 4px solid #046e6d;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-light);
}

.info-box strong {
  color: #046e6d;
}

.info-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.info-box li {
  margin-bottom: 4px;
}

.warning-box {
  background: #fefce8;
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-light);
}

.warning-box strong {
  color: #92400e;
}

/* Steps list */
.steps-list {
  margin: 24px 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Quote box */
.quote-box {
  background: var(--bg-cream);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
}

.quote-box .arabic-text {
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  line-height: 2;
  color: var(--text);
  margin-bottom: 8px;
  direction: rtl;
  text-align: right;
}

.quote-box .translation {
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
}

/* Feature grid (docs overview) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-cream);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-light);
}

.feature-item .check {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* Admin badge & divider */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef3c7;
  color: #92400e;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 10px;
}

.admin-divider {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 2px solid var(--border);
  position: relative;
}

.admin-divider::before {
  content: 'Administration';
  position: absolute;
  top: -11px;
  left: 0;
  background: #fff;
  padding-right: 16px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
}

/* Docs responsive */
@media (max-width: 768px) {
  .docs-hero {
    padding: 40px 0 32px;
  }

  .docs-hero .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .docs-hero h1 {
    font-size: 1.5rem;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .docs-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 32px;
  }

  .docs-nav {
    padding: 16px;
  }

  .nav-group ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .nav-group li {
    margin-bottom: 0;
  }

  .nav-group a {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .nav-group a.active {
    border-left-color: transparent;
    border-bottom-color: var(--primary);
  }

  .nav-divider {
    margin: 12px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .docs-content pre {
    padding: 16px;
    font-size: 0.75rem;
  }

  .docs-content table {
    font-size: 0.8rem;
    overflow-x: auto;
    display: block;
  }

  .docs-content th,
  .docs-content td {
    padding: 8px 10px;
  }

  .docs-content h2 {
    font-size: 1.35rem;
  }

  .admin-divider {
    margin-top: 40px;
    padding-top: 32px;
  }
}

/* ============================================
   CALCULATOR PAGE
   ============================================ */

.calculator-page {
  padding-top: 180px;
  min-height: 100vh;
  background: var(--bg-cream);
}

.calculator-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ============================================
   CALCULATOR SPECIFIC STYLES
   ============================================ */

.calc-container {
  font-family: var(--font-display);
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 80px);
  color: var(--text-dark);
}

.calc-progress-container { margin-bottom: 30px; position: relative; }

/* Standards Reopen Button */
.calc-standards-btn {
  position: absolute;
  top: -30px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--primary);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 10px;
  border: 1px solid var(--primary-light);
  cursor: pointer;
  transition: all 0.2s;
}

.calc-standards-btn:hover {
  background: var(--primary);
  color: white;
}

.calc-standards-btn .icon {
  width: 14px;
  height: 14px;
}

body.rtl .calc-standards-btn {
  left: auto;
  right: 0;
}

/* Calculation Counter for Personal tier */
.calc-counter {
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.calc-counter.warning {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
  font-weight: 500;
}

body.rtl .calc-counter {
  right: auto;
  left: 0;
}

.calc-progress-bar {
  height: 6px;
  background-color: #d4cfc4;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.calc-progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.calc-step-indicators {
  display: flex;
  justify-content: space-between;
  overflow-x: auto;
  gap: 4px;
  padding: 4px 0;
}

.calc-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  opacity: 0.35;
  transition: all 0.2s;
  min-width: 60px;
  padding: 8px 4px;
  border-radius: 8px;
}

.calc-step-indicator.active { opacity: 0.6; }
.calc-step-indicator.current { 
  opacity: 1; 
  background-color: rgba(26, 95, 74, 0.1);
}

.calc-step-icon { 
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.calc-step-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
}

.calc-step-indicator.current .calc-step-icon svg {
  stroke: var(--primary-dark);
}
.calc-step-label {
  font-size: 10px;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 500;
}

.calc-main-content {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  min-height: 450px;
  border: 1px solid var(--border);
}

.calc-welcome-icon { font-size: 72px; text-align: center; margin-bottom: 20px; }

.calc-welcome-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 600;
}

.calc-welcome-text {
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.calc-info-box {
  background-color: var(--surface);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--primary);
}

.calc-info-title { 
  margin: 0 0 12px 0; 
  font-size: 17px; 
  color: var(--primary); 
}

.calc-info-text { margin: 0; line-height: 1.7; font-size: 15px; }
.calc-info-list { margin: 0; padding-left: 20px; line-height: 2; font-size: 15px; }

.calc-step-title {
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 600;
}

.calc-step-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.7;
}

.calc-setting-group { margin-bottom: 28px; }

.calc-setting-label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.calc-setting-hint {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.6;
}

.calc-language-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.calc-lang-btn {
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background-color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  font-family: var(--font-ui);
}

.calc-lang-btn.active {
  border-color: var(--primary);
  background-color: #e8f4f0;
  font-weight: 600;
}

.calc-date-input {
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  width: 100%;
  max-width: 300px;
  font-family: var(--font-ui);
}

.calc-radio-group { display: flex; flex-direction: column; gap: 12px; }

.calc-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background-color: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.calc-radio-option.selected {
  background-color: #e8f4f0;
  border-color: var(--primary);
}

.calc-radio-option input {
  margin-top: 4px;
  accent-color: var(--primary);
  transform: scale(1.2);
}

.calc-radio-hint { font-size: 13px; color: #666; margin: 6px 0 0 0; }

.calc-price-inputs { display: flex; gap: 20px; flex-wrap: wrap; }
.calc-price-input { flex: 1; min-width: 150px; }

.calc-input-group { margin-bottom: 22px; }

.calc-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-ui);
}

/* FIXED: Tooltip styles */
.calc-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  position: relative;
  font-style: normal;
  font-family: var(--font-ui);
}

.calc-tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 100;
  max-width: 250px;
  white-space: normal;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.calc-tooltip::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bg-dark);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.calc-tooltip:hover::before,
.calc-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

.calc-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.calc-input-wrapper:focus-within {
  border-color: var(--primary);
}

.calc-currency-prefix {
  padding: 14px 0 14px 16px;
  color: #888;
  font-family: var(--font-ui);
  font-weight: 500;
}

.calc-input {
  flex: 1;
  padding: 14px 16px 14px 6px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-family: var(--font-ui);
  outline: none;
}

.calc-metal-section { margin-bottom: 28px; }
.calc-metal-title { font-size: 20px; margin-bottom: 18px; color: #333; }

.calc-note-box {
  background-color: #fef9c3;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  border-left: 4px solid var(--warning);
}

.calc-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background-color: rgba(26, 95, 74, 0.05);
  border-radius: var(--radius-sm);
  margin-top: 24px;
  font-family: var(--font-ui);
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.calc-subtotal-amount { font-size: 22px; color: var(--primary); font-weight: 700; }

.calc-toggle-group { margin-bottom: 28px; }
.calc-toggle-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.calc-toggle-btn {
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  font-family: var(--font-ui);
}

.calc-toggle-btn.active {
  border-color: var(--primary);
  background-color: #e8f4f0;
  font-weight: 600;
}

.calc-livestock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.calc-livestock-card {
  background-color: #f8f6f2;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.calc-livestock-input {
  width: 100%;
  padding: 12px;
  font-size: 20px;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: 10px;
  margin-top: 12px;
  font-family: var(--font-ui);
}

.calc-livestock-zakat {
  margin-top: 14px;
  font-size: 13px;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-nisab-details {
  margin-top: 24px;
  background-color: #f8f6f2;
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--border);
}

.calc-nisab-summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-ui);
  list-style: none;
}

.calc-nisab-summary::-webkit-details-marker {
  display: none;
}

.calc-nisab-summary::before {
  content: '▶ ';
  display: inline-block;
  transition: transform 0.2s;
}

details[open] .calc-nisab-summary::before {
  transform: rotate(90deg);
}

.calc-nisab-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.calc-nisab-table { font-size: 13px; }

.calc-nisab-table h5 {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--primary);
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
  font-family: var(--font-ui);
}

.calc-table th, .calc-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.calc-table th {
  background: #f0f7f4;
  font-weight: 600;
}

.calc-result-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 24px;
  color: var(--primary);
}

.calc-zakat-date-badge {
  text-align: center;
  padding: 10px 20px;
  background-color: #e8f4f0;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  font-family: var(--font-ui);
}

.calc-result-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.calc-result-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.calc-result-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.calc-result-section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-weight: 600;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  font-family: var(--font-ui);
}

.calc-result-row-total {
  border-top: 2px solid var(--border);
  margin-top: 10px;
  padding-top: 14px;
  font-weight: 700;
  font-size: 16px;
}

.calc-result-row-net { font-size: 20px; font-weight: 700; }

.calc-nisab-check { text-align: center; padding: 20px; }

.calc-nisab-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
  font-family: var(--font-ui);
}

.calc-nisab-value { font-size: 28px; font-weight: 700; margin-bottom: 14px; }

.calc-nisab-status {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font-ui);
  font-weight: 500;
}

.calc-nisab-status.above {
  background-color: #d4edda;
  color: #155724;
}

.calc-nisab-status.below {
  background-color: #fff3cd;
  color: #856404;
}

.calc-zakat-due-card {
  background: var(--primary);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}

.calc-zakat-due-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 20px;
  opacity: 0.9;
  font-family: var(--font-ui);
  font-weight: 600;
}

.calc-zakat-breakdown {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: 15px;
  font-family: var(--font-ui);
}

.calc-zakat-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.calc-zakat-due-amount { font-size: 42px; font-weight: 700; }

.calc-zakat-due-note {
  font-size: 16px;
  opacity: 0.9;
  margin: 16px 0 0;
  font-style: italic;
}

.calc-disclaimer {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  padding: 18px;
  background-color: #f8f6f2;
  border-radius: 10px;
  font-family: var(--font-ui);
}

.calc-action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.calc-action-btn {
  flex: 1;
  padding: 10px 18px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-ui);
  transition: background 0.15s ease, color 0.15s ease;
  min-width: 140px;
}

.calc-action-btn:hover {
  background-color: var(--primary);
  color: #fff;
}

/* ============================================
   Calculator Results - Dashboard Layout
   ============================================ */
.db-results-container {
  max-width: 100%;
}

.db-zakat-card {
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.db-zakat-main { flex: 1; }

.db-zakat-label {
  font-size: 0.85rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-family: var(--font-ui);
}

.db-zakat-amount {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  font-family: var(--font-ui);
}

.db-zakat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: var(--font-ui);
}

.db-zakat-visual {
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
}

.db-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.db-stats-row.db-stats-3 {
  grid-template-columns: repeat(3, 1fr);
}

.db-stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.db-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.db-stat-icon.wealth { background: #dbeafe; }
.db-stat-icon.nisab { background: #fef3c7; }
.db-stat-icon.rate { background: #d1fae5; }
.db-stat-icon.standard { background: #ede9fe; }

.db-stat-content { flex: 1; min-width: 0; }

.db-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  font-family: var(--font-ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
}

.db-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.db-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.db-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
}

.db-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-light);
  border-radius: 6px;
}

.db-breakdown-item.sub {
  padding: 6px 14px;
  background: transparent;
  margin-top: -4px;
}

.db-breakdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-ui);
}

.db-breakdown-value {
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-ui);
}

.db-breakdown-value.muted {
  color: var(--text-muted);
  font-weight: 500;
}

.db-breakdown-item.negative .db-breakdown-value { color: #dc2626; }

.db-breakdown-item.total {
  background: var(--primary);
  color: white;
}

.db-breakdown-item.total .db-breakdown-label { color: rgba(255,255,255,0.9); }

.db-livestock-card {
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.db-livestock-title {
  font-weight: 600;
  color: #92400e;
  margin-bottom: 16px;
  font-size: 1rem;
  font-family: var(--font-ui);
}

.db-livestock-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.db-livestock-item {
  background: rgba(255,255,255,0.7);
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 130px;
  flex: 1;
}

.db-livestock-emoji { font-size: 1.75rem; margin-bottom: 8px; }

.db-livestock-type {
  font-size: 0.7rem;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-family: var(--font-ui);
}

.db-livestock-amount {
  font-weight: 600;
  color: #78350f;
  font-size: 0.85rem;
  font-family: var(--font-ui);
}

.db-livestock-note {
  text-align: center;
  font-size: 0.8rem;
  color: #a16207;
  font-style: italic;
  margin-top: 14px;
  width: 100%;
  font-family: var(--font-ui);
}

.db-standards-card {
  margin-bottom: 20px;
}

.db-standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.db-standard-item {
  padding: 12px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.db-standard-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-family: var(--font-ui);
}

.db-standard-value {
  font-weight: 600;
  font-size: 0.8rem;
  font-family: var(--font-ui);
}

.db-blessing {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.db-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.db-btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-ui);
  transition: background 0.15s ease;
}

.db-btn-primary {
  background: var(--primary);
  color: white;
}

.db-btn-primary:hover {
  background: var(--primary-dark);
}

.db-btn-outline {
  background: white;
  color: var(--text);
  border: 2px solid var(--border);
}

.db-btn-outline:hover {
  background: var(--bg-light);
}

/* Dashboard Responsive */
@media (max-width: 900px) {
  .db-stats-row { grid-template-columns: repeat(2, 1fr); }
  .db-cards-row { grid-template-columns: 1fr; }
  .db-standards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .db-zakat-visual { display: none; }
  .db-zakat-amount { font-size: 2rem; }
  .db-stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .db-stat-card { padding: 16px; }
  .db-stat-value { font-size: 1.1rem; }
  .db-livestock-grid { flex-direction: column; }
  .db-livestock-item { min-width: auto; }
  .db-actions { flex-direction: column; }
  .db-btn { width: 100%; justify-content: center; }
}

/* RTL Support for Dashboard */
body.rtl .db-zakat-card,
body.rtl .db-stat-card,
body.rtl .db-breakdown-item { flex-direction: row-reverse; }

.calc-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.calc-nav-spacer { flex: 1; }

.calc-btn-primary {
  padding: 12px 28px;
  font-size: 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-ui);
  transition: background 0.15s ease;
}

.calc-btn-primary:hover {
  background: var(--primary-dark);
}

.calc-btn-secondary {
  padding: 12px 28px;
  font-size: 15px;
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-ui);
  transition: background 0.15s ease, color 0.15s ease;
}

.calc-btn-secondary:hover {
  background-color: var(--primary);
  color: #fff;
}

.calc-running-total {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  font-family: var(--font-ui);
  font-size: 14px;
  z-index: 100;
  display: none;
}

.calc-running-total.visible { display: flex; }

.calc-running-total-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-running-total-divider { opacity: 0.3; margin: 0 10px; }

.calc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.calc-modal {
  background-color: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: auto;
  position: relative;
}

.calc-modal-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary);
}

.calc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.calc-empty-state {
  text-align: center;
  color: #888;
  padding: 40px;
}

.calc-saved-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-saved-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: #f8f6f2;
  border-radius: 10px;
}

.calc-saved-date { font-size: 14px; color: #666; font-family: var(--font-ui); }
.calc-saved-amount { font-size: 20px; font-weight: 700; color: var(--primary); }
.calc-saved-actions { display: flex; gap: 8px; }

.calc-saved-load-btn {
  padding: 8px 16px;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-ui);
}

.calc-saved-delete-btn {
  padding: 8px 12px;
  background-color: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ============================================
   CALCULATOR SPLIT-PANEL LAYOUT (Desktop)
   ============================================ */

@media (min-width: 993px) {

  /* Full-width layout — no container padding */
  .calculator-page {
    padding-top: 80px;
    height: 100vh;
    overflow: hidden;
  }

  .calculator-container {
    max-width: none;
    padding: 0;
    height: 100%;
  }

  #calculatorRoot {
    height: 100%;
  }

  .calc-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    grid-template-rows: auto 1fr auto;
    height: 100%;
    padding: 0;
    max-width: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    position: relative;
    scroll-margin-top: 80px;
  }

  /* Dark background for left column */
  .calc-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 380px;
    background: var(--bg-dark);
    z-index: 0;
  }

  /* --- Left Panel (Sidebar / Steps) --- */
  .calc-progress-container {
    grid-column: 1;
    grid-row: 2 / -1;
    background: transparent;
    padding: 8px 28px 32px;
    border-radius: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* When running total is hidden, sidebar takes all rows with top padding */
  .calc-container:not(:has(.calc-running-total.visible)) .calc-progress-container {
    grid-row: 1 / -1;
    padding-top: 24px;
  }

  /* Standards button — reposition for sidebar */
  .calc-standards-btn {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-bottom: 20px;
    align-self: flex-start;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.15);
    font-size: 0.78rem;
  }

  .calc-standards-btn:hover {
    background: rgba(255,255,255,0.15);
    color: white;
  }

  .calc-standards-btn .icon {
    filter: brightness(0) invert(1);
    opacity: 0.7;
  }

  body.rtl .calc-standards-btn {
    left: auto;
    right: auto;
    align-self: flex-end;
  }

  /* Calculation counter — reposition for sidebar */
  .calc-counter {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    margin-bottom: 20px;
    align-self: flex-end;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    border-color: rgba(255,255,255,0.15);
  }

  .calc-counter.warning {
    background: rgba(220,38,38,0.15);
    color: #fca5a5;
    border-color: rgba(220,38,38,0.3);
  }

  body.rtl .calc-counter {
    right: auto;
    left: auto;
    align-self: flex-start;
  }

  /* Progress bar — thin, light track inside sidebar */
  .calc-progress-bar {
    height: 4px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-bottom: 20px;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1;
    flex-shrink: 0;
  }

  .calc-progress-fill {
    background: var(--primary-light);
  }

  /* Step indicators — vertical column */
  .calc-step-indicators {
    flex-direction: column;
    justify-content: flex-start;
    overflow-x: visible;
    gap: 2px;
    padding: 0;
    flex: 1;
  }

  .calc-step-indicator {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: auto;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    opacity: 1;
    color: rgba(255,255,255,0.45);
  }

  .calc-step-indicator.active {
    opacity: 1;
    color: rgba(255,255,255,0.75);
  }

  .calc-step-indicator.current {
    opacity: 1;
    background-color: rgba(255,255,255,0.08);
    color: white;
  }

  .calc-step-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    position: relative;
  }

  /* Hide the original SVG icons in sidebar */
  .calc-step-icon svg {
    display: none;
  }

  /* Green checkmark for completed steps */
  .calc-step-indicator.active .calc-step-icon::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    font-size: 12px;
    font-weight: 700;
  }

  /* Gold dot for current step */
  .calc-step-indicator.current .calc-step-icon::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    margin: 6px;
    border-radius: 50%;
    background: var(--accent);
  }

  /* Dim circle for future steps */
  .calc-step-indicator:not(.active):not(.current) .calc-step-icon::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.25);
  }

  .calc-step-label {
    font-size: 0.85rem;
    text-align: left;
    font-family: var(--font-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.rtl .calc-step-label {
    text-align: right;
  }

  /* --- Running Total — grid row 1 of sidebar, shadow box card --- */
  .calc-running-total {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
    transform: none;
    z-index: 1;
    background: rgba(255,255,255,0.06);
    border: none;
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 28px 0;
    box-sizing: border-box;
    box-shadow: none;
    color: white;
    font-size: 13px;
  }

  .calc-running-total.visible {
    display: block;
  }

  /* Asset breakdown bars (injected by calc-breakdown.js) */
  .calc-breakdown {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .calc-breakdown-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
  }

  .calc-breakdown-label {
    width: 60px;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
    font-size: 12px;
  }

  .calc-breakdown-track {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    margin: 0 10px;
    overflow: hidden;
  }

  .calc-breakdown-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
  }

  .calc-breakdown-pct {
    width: 32px;
    text-align: right;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
  }

  .calc-running-total-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .calc-running-total-inner > span {
    display: block;
    width: 100%;
  }

  .calc-running-total-inner > span:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
  }

  .calc-running-total-inner > span:first-child strong {
    display: block;
    font-size: 2rem;
    color: var(--accent);
    margin-top: 4px;
    font-family: var(--font-display);
    letter-spacing: -0.5px;
  }

  .calc-running-total-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0;
    opacity: 1;
    overflow: hidden;
    font-size: 0;
    color: transparent;
  }

  .calc-running-total-inner > span:last-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.5);
  }

  .calc-running-total-inner > span:last-child strong {
    display: block;
    font-size: 1.35rem;
    color: var(--accent);
    margin-top: 4px;
    font-family: var(--font-display);
  }

  /* --- Right Panel (Content) — independent scrolling --- */
  .calc-main-content {
    grid-column: 2;
    grid-row: 1 / 3;
    background: white;
    padding: 48px 60px 40px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-bottom: 0;
    min-height: 0;
    overflow-y: auto;
  }

  /* --- Navigation — bottom of right column --- */
  .calc-navigation {
    grid-column: 2;
    grid-row: 3;
    background: white;
    padding: 20px 60px 32px;
    margin-top: 0;
    border-radius: 0;
    border-top: 1px solid var(--border);
  }

  /* --- RTL overrides --- */
  /* direction:ltr on the grid container prevents CSS Grid auto-flip
     (dir="rtl" on <html> + inline style would double-flip the columns).
     We handle layout swap explicitly via grid-column assignments below,
     then re-enable direction:rtl on child panels for text direction. */
  body.rtl .calc-container {
    grid-template-columns: 1fr 380px;
    direction: ltr !important;
  }

  body.rtl .calc-progress-container,
  body.rtl .calc-running-total,
  body.rtl .calc-main-content,
  body.rtl .calc-navigation {
    direction: rtl;
  }

  body.rtl .calc-container::before {
    left: auto;
    right: 0;
  }

  body.rtl .calc-progress-container,
  body.rtl .calc-running-total {
    grid-column: 2;
  }

  body.rtl .calc-main-content,
  body.rtl .calc-navigation {
    grid-column: 1;
  }

  body.rtl .calc-step-indicator {
    flex-direction: row-reverse;
  }

  /* --- Results page: full width within content area --- */
  .db-results-container {
    max-width: 100%;
  }

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

/* Separator between calculator and footer */
.calc-footer-separator {
  height: 60px;
  background: var(--bg-cream);
}

/* On desktop split-panel, hide footer to prevent body scroll */
@media (min-width: 993px) {
  .calculator-page ~ .calc-footer-separator,
  .calculator-page ~ .footer,
  .calculator-page ~ footer {
    display: none;
  }
}

/* Print styles */
@media print {
  .navbar, .calc-navigation, .calc-running-total, .calc-action-buttons { display: none !important; }
  .calculator-page { padding-top: 0; }
  .calc-main-content { box-shadow: none; }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.animate-slide-in {
  animation: slideIn 0.3s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================
   UTILITIES
   ============================================ */

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.py-1 { padding-top: 8px; padding-bottom: 8px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }

.hidden { display: none; }
.visible { display: block; }

/* ============================================
   AUTH PAGES
   ============================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 180px 24px 40px;
  background: var(--bg-cream);
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-icon {
  font-size: 48px;
  margin-bottom: 16px;
  text-align: center;
}

.auth-logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font-ui);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font-ui);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.form-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.auth-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.auth-link {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-link a {
  color: var(--primary);
  font-weight: 600;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-family: var(--font-ui);
}

.alert-error {
  background: #fee2e2;
  color: #dc2626;
  border-left: 4px solid #dc2626;
}

.alert-success {
  background: #d1fae5;
  color: #047857;
  border-left: 4px solid #047857;
}

/* ============================================
   ADMIN PANEL
   ============================================ */

.admin-page {
  padding-top: 180px;
  min-height: 100vh;
  background: var(--bg-cream);
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.admin-header {
  margin-bottom: 32px;
}

.admin-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.admin-subtitle {
  color: var(--text-muted);
}

.admin-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.admin-nav-link {
  padding: 12px 24px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.admin-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--primary);
  border-radius: var(--radius-md);
  padding: 20px;
  color: var(--white);
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  font-family: var(--font-ui);
}

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

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
}

.data-table th {
  background: var(--bg-cream);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:hover {
  background: var(--bg-cream);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-admin {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-user {
  background: #e5e7eb;
  color: #4b5563;
}

.badge-active {
  background: #d1fae5;
  color: #047857;
}

.badge-inactive {
  background: #fee2e2;
  color: #dc2626;
}

/* Tier badges for admin */
.admin-page .tier-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-page .tier-badge.none {
  background: #f3f4f6;
  color: #6b7280;
}

.admin-page .tier-badge.personal {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-page .tier-badge.family {
  background: #d1fae5;
  color: #047857;
}

.admin-page .tier-badge.business {
  background: #fef3c7;
  color: #b45309;
}

.admin-page .tier-badge.org-member {
  background: #dbeafe;
  color: #1d4ed8;
}

/* ============================================ */
/* TRANSLATION MANAGEMENT                       */
/* ============================================ */

.trans-actions-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Window Title Bar */
.trans-titlebar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #2d2d2d;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  gap: 12px;
}

.trans-titlebar-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.trans-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.trans-dot.red { background: #ff5f57; }
.trans-dot.yellow { background: #febc2e; }
.trans-dot.green { background: #28c840; }

.trans-titlebar-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  letter-spacing: 0.3px;
}

.trans-titlebar-spacer {
  width: 54px;
  flex-shrink: 0;
}

.trans-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-height: 600px;
  overflow: hidden;
}

.trans-sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  max-height: 700px;
}

.trans-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.trans-search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--surface);
  margin-bottom: 10px;
}

.trans-search:focus {
  outline: none;
  border-color: var(--primary);
}

.trans-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
}

.trans-filter-label input[type="checkbox"] {
  accent-color: var(--primary);
}

.trans-sections {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}

.trans-section-group {
  border-bottom: 1px solid var(--border);
}

.trans-section-group:last-child {
  border-bottom: none;
}

.trans-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  list-style: none;
}

.trans-section-header::-webkit-details-marker {
  display: none;
}

.trans-section-header::before {
  content: '▶';
  font-size: 9px;
  margin-right: 8px;
  transition: transform 0.2s;
  color: var(--text-muted);
}

.trans-section-group[open] > .trans-section-header::before {
  transform: rotate(90deg);
}

.trans-section-count {
  background: var(--surface);
  color: var(--text-light);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.trans-key-list {
  padding: 0 8px 8px;
}

.trans-key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.trans-key-item:hover {
  background: var(--surface);
}

.trans-key-item.active {
  background: var(--primary);
  color: var(--white);
}

.trans-key-item.active .trans-missing-dot {
  background: #fbbf24;
}

.trans-key-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.trans-missing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  margin-left: 8px;
}

.trans-key-empty {
  padding: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Detail Panel */
.trans-detail {
  padding: 24px 32px;
  overflow-y: auto;
  max-height: 700px;
}

.trans-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  color: var(--text-muted);
  gap: 16px;
}

.trans-detail-header {
  margin-bottom: 24px;
}

.trans-detail-breadcrumb {
  font-size: 14px;
  color: var(--text-light);
}

.trans-breadcrumb-section {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.trans-breadcrumb-sep {
  margin: 0 8px;
  color: var(--text-muted);
}

.trans-breadcrumb-key {
  font-weight: 600;
  color: var(--primary);
  font-size: 16px;
}

.trans-detail-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.trans-textarea-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trans-textarea-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.trans-native-name {
  font-weight: 400;
  color: var(--text-muted);
}

.trans-textarea {
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  line-height: 1.5;
  resize: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.trans-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.08);
}

.trans-textarea.trans-dirty {
  border-left: 3px solid #f59e0b;
}

.trans-textarea[dir="rtl"] {
  text-align: right;
  font-family: 'Amiri', serif;
}

.trans-char-count {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

.trans-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.trans-detail-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trans-key-position {
  font-size: 13px;
  color: var(--text-muted);
}

.trans-detail-save {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-success {
  background: #16a34a;
  color: var(--white);
  border-color: #16a34a;
}

/* Modal */
.trans-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.trans-modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.trans-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.trans-modal-header h3 {
  font-size: 18px;
  font-family: var(--font-display);
  color: var(--primary);
  margin: 0;
}

.trans-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.trans-modal-close:hover {
  color: var(--text);
}

.trans-modal-body {
  padding: 24px;
}

.trans-modal-body .form-group {
  margin-bottom: 16px;
}

.trans-modal-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.trans-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.trans-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .trans-layout {
    grid-template-columns: 1fr;
  }
  .trans-sidebar {
    max-height: 300px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface);
}

.action-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.action-buttons form {
  margin: 0;
}

.btn-danger {
  background: #dc2626;
  color: var(--white);
  border: none;
}

.btn-danger:hover {
  background: #b91c1c;
}

.settings-form {
  display: grid;
  gap: 20px;
}

.setting-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.setting-label {
  font-weight: 600;
  font-family: var(--font-ui);
}

.setting-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.log-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.log-action {
  font-weight: 600;
  color: var(--primary);
}

.log-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-page {
  padding-top: 115px;
  padding-bottom: 60px;
  min-height: 100vh;
  background: var(--bg-light);
}

/* Profile Hero Section (v1.7.2) - matches family dashboard */
.profile-hero {
  background: var(--primary);
  color: white;
  padding: 32px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.profile-hero .hero-header {
  text-align: center;
  margin-bottom: 32px;
}

.profile-hero .hero-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: white;
}

.profile-hero .hero-header p {
  opacity: 0.9;
  font-size: 1rem;
}

.profile-hero .summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.profile-hero .summary-item {
  text-align: center;
}

.profile-hero .summary-label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.profile-hero .summary-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-hero .summary-value.tier-badge {
  font-size: 1rem;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--white);
  display: inline-block;
}

.profile-hero .summary-value.tier-badge.personal {
  background: var(--white);
  color: #1d4ed8;
}

.profile-hero .summary-value.tier-badge.family {
  background: var(--white);
  color: #7c3aed;
}

.profile-hero .summary-value.tier-badge.business {
  background: var(--white);
  color: #b45309;
}

.profile-hero .summary-value.tier-badge.org-member {
  background: var(--white);
  color: #1d4ed8;
}

/* Hero Actions */
.profile-hero .hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-light {
  background: white;
  color: var(--primary);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 8px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Profile Sections - matches family section styling */
.profile-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.profile-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.profile-section .section-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.profile-section .section-description {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.profile-section .form-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

/* Full width section below grid */
.profile-section-full {
  margin-top: 0;
}

@media (max-width: 768px) {
  .profile-hero {
    padding: 24px;
  }
  
  .profile-hero .hero-header h1 {
    font-size: 1.5rem;
  }
  
  .profile-hero .summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .profile-hero .summary-value {
    font-size: 1.25rem;
  }
  
  .profile-hero .hero-actions {
    flex-direction: column;
  }
  
  .profile-hero .hero-actions .btn-light,
  .profile-hero .hero-actions .btn-outline-light {
    width: 100%;
    text-align: center;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-dark);
}

.profile-email {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.calculation-list {
  list-style: none;
}

.calculation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.calculation-name {
  font-weight: 600;
}

.calculation-amount {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.calculation-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.calculation-actions {
  display: flex;
  gap: 8px;
}

.nav-admin {
  color: var(--primary) !important;
  font-weight: 600;
}

/* ============================================
   ERROR & MAINTENANCE PAGES
   ============================================ */

.error-page,
.maintenance-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-cream);
}

.error-icon {
  font-size: 80px;
  margin-bottom: 24px;
}

.error-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.error-message {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 400px;
}

@media (max-width: 768px) {
  .auth-card {
    padding: 32px 24px;
  }
  
  .admin-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  
  .setting-item {
    grid-template-columns: 1fr;
  }
  
  .data-table {
    font-size: 0.85rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 10px 8px;
  }
}

/* ============================================
   RTL SUPPORT
   ============================================ */
html[dir="rtl"] body,
body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .navbar-brand {
  flex-direction: row-reverse;
}

body.rtl .nav-links {
  flex-direction: row-reverse;
}

body.rtl .hero-content {
  text-align: right;
}

body.rtl .step-card {
  text-align: right;
}

body.rtl .feature-card {
  text-align: right;
}

body.rtl .category-card {
  text-align: right;
}

body.rtl .docs-hero .container {
  flex-direction: row-reverse;
}

body.rtl .docs-layout {
  direction: rtl;
}

body.rtl .docs-content {
  text-align: right;
}

body.rtl .docs-content th,
body.rtl .docs-content td {
  text-align: right;
}

body.rtl .nav-group a {
  border-left: none;
  border-right: 3px solid transparent;
}

body.rtl .nav-group a.active {
  border-right-color: var(--primary);
  border-left-color: transparent;
}

body.rtl .info-box,
body.rtl .warning-box,
body.rtl .quote-box {
  border-left: none;
  border-right: 4px solid #046e6d;
}

body.rtl .warning-box {
  border-right-color: var(--accent);
}

body.rtl .quote-box {
  border-right-color: var(--accent);
}

body.rtl .step-item {
  flex-direction: row-reverse;
}

body.rtl .admin-badge {
  margin-left: 0;
  margin-right: 10px;
}

body.rtl .admin-divider::before {
  left: auto;
  right: 0;
  padding-right: 0;
  padding-left: 16px;
}

body.rtl .quote-box {
  border-left: none;
  border-right: 4px solid var(--primary);
}

body.rtl .step-item {
  flex-direction: row-reverse;
}

body.rtl .lang-dropdown-content {
  right: auto;
  left: 0;
}

body.rtl .auth-form,
body.rtl .profile-form {
  text-align: right;
}

body.rtl .form-group label {
  text-align: right;
  display: block;
}

body.rtl .calculation-item {
  flex-direction: row-reverse;
}

body.rtl .profile-grid {
  direction: rtl;
}

body.rtl .profile-header {
  text-align: right;
}

/* RTL for calculator */
body.rtl .calc-navigation {
  flex-direction: row-reverse;
}

body.rtl .calc-running-total-inner {
  flex-direction: row-reverse;
}

/* ============================================
   LANGUAGE DROPDOWN
   ============================================ */
.nav-lang-selector {
  position: relative;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.lang-dropdown-btn:hover {
  background: var(--surface);
  border-color: var(--primary);
}

.lang-arrow {
  font-size: 0.6rem;
  opacity: 0.6;
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  min-width: 140px;
  z-index: 1000;
}

/* Bridge the gap between button and dropdown for smooth hover */
.lang-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.lang-dropdown:hover .lang-dropdown-content,
.lang-dropdown:focus-within .lang-dropdown-content {
  display: block;
}

.lang-dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease;
}

.lang-dropdown-content a:first-child {
  border-radius: 8px 8px 0 0;
}

.lang-dropdown-content a:last-child {
  border-radius: 0 0 8px 8px;
}

.lang-dropdown-content a:hover {
  background: var(--surface);
}

.lang-dropdown-content a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

/* Account Dropdown (v1.7.1) */
.nav-account-dropdown {
  position: relative;
}

.account-dropdown {
  position: relative;
}

.account-dropdown-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.account-dropdown-btn:hover {
  background: var(--primary-dark);
}

.account-avatar {
  font-size: 1rem;
}

.account-name {
  font-weight: 500;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-arrow {
  font-size: 0.6rem;
  opacity: 0.8;
}

.account-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  min-width: 220px;
  z-index: 1000;
}

/* Bridge the gap between button and dropdown for smooth hover */
.account-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.account-dropdown:hover .account-dropdown-content,
.account-dropdown:focus-within .account-dropdown-content {
  display: block;
}

.account-dropdown-header {
  padding: 12px 16px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  border-radius: 10px 12px 0 0;
}

.account-dropdown-header .account-email {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-dropdown-header .account-tier {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.account-dropdown-header .account-tier.none {
  display: none;
}

.account-dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease;
  font-size: 0.9rem;
}

.account-dropdown-content a:hover {
  background: var(--surface);
}

.account-dropdown-content .dropdown-icon {
  font-size: 1rem;
  width: 24px;
  text-align: center;
}

.account-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.account-dropdown-content .admin-link {
  color: var(--primary);
  font-weight: 500;
}

.account-dropdown-content .admin-link:hover {
  background: var(--primary-light);
}

.account-dropdown-content .logout-link {
  color: var(--error);
  border-radius: 0 0 12px 12px;
}

.account-dropdown-content .logout-link:hover {
  background: #fee2e2;
}

/* Calculator language selection cards */
.calc-language-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.calc-lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.calc-lang-card:hover {
  border-color: var(--primary);
}

.calc-lang-card.active {
  border-color: var(--primary);
  background: rgba(26, 95, 74, 0.05);
}

.calc-lang-flag {
  font-size: 48px;
}

.calc-lang-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 600px) {
  .calc-language-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

/* ============================================
   Calculator Select Menu
   ============================================ */
.calc-select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-ui);
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.calc-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.1);
}

.calc-select:hover {
  border-color: var(--primary-light);
}

body.rtl .calc-select {
  background-position: left 12px center;
  padding-right: 16px;
  padding-left: 40px;
}

/* ============================================
   Onboarding Modal
   ============================================ */
.calc-onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.calc-onboarding-modal {
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.calc-onboarding-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.calc-onboarding-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: var(--text);
}

.calc-onboarding-intro {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.calc-onboarding-standards {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.calc-onboarding-item {
  background: var(--bg-light);
  padding: 16px;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

.calc-onboarding-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.calc-onboarding-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.calc-onboarding-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.calc-onboarding-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.calc-onboarding-note .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.calc-onboarding-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}

.calc-onboarding-btn:hover {
  background: var(--primary-dark);
}

.calc-onboarding-btn:active {
  background: var(--primary-dark);
}

/* RTL support */
body.rtl .calc-onboarding-item {
  border-left: none;
  border-right: 4px solid var(--primary);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .calc-onboarding-modal {
    padding: 24px 20px;
    border-radius: 10px;
  }
  
  .calc-onboarding-header h2 {
    font-size: 1.25rem;
  }
  
  .calc-onboarding-item {
    padding: 12px;
  }
  
  .calc-onboarding-btn {
    padding: 14px 20px;
    font-size: 1rem;
  }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 41, 59, 0.98);
  color: white;
  padding: 16px 24px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.cookie-content {
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: white;
}

.cookie-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
}

.cookie-privacy-link {
  color: #22c55e;
  text-decoration: underline;
  font-size: 13px;
  margin-left: 8px;
}

.cookie-privacy-link:hover {
  color: #4ade80;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--primary, #1a5f4a);
  color: white;
}

.cookie-btn-accept:hover {
  background: var(--primary-dark, #134434);
}

.cookie-btn-decline {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: #64748b;
}

@media (max-width: 768px) {
  .cookie-consent {
    padding: 16px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .cookie-text {
    min-width: auto;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
    max-width: 150px;
  }
}

/* RTL support for cookie consent */
body.rtl .cookie-privacy-link {
  margin-left: 0;
  margin-right: 8px;
}

/* ============================================
   Terms Checkbox
   ============================================ */
.terms-checkbox {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: var(--primary-dark);
}

/* ============================================
   Data & Privacy Section
   ============================================ */
.data-privacy-card {
  grid-column: 1 / -1;
}

.card-description {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.privacy-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 16px;
  gap: 20px;
}

.privacy-action-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: var(--text);
}

.privacy-action-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.privacy-action.danger-zone {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.privacy-action.danger-zone h4 {
  color: #991b1b;
}

@media (max-width: 600px) {
  .privacy-action {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .privacy-action .btn {
    width: 100%;
    margin-top: 12px;
  }
}

/* ============================================
   Delete Account Modal
   ============================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: white;
  padding: 28px;
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.15s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content h3 {
  margin: 0 0 16px 0;
  color: #991b1b;
  font-size: 20px;
}

.modal-content p {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.modal-content ul {
  color: var(--text-muted);
  margin: 0 0 16px 20px;
  font-size: 14px;
}

.modal-content ul li {
  margin-bottom: 4px;
}

.warning-text {
  font-weight: 600;
  color: #991b1b;
}

.modal-content .form-input {
  margin-bottom: 20px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 2px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-actions .btn {
  min-width: 120px;
}

@media (max-width: 500px) {
  .modal-content {
    padding: 24px;
  }
  
  .modal-actions {
    flex-direction: column-reverse;
  }
  
  .modal-actions .btn {
    width: 100%;
  }
}

/* ============================================
   Homepage Alert
   ============================================ */
.homepage-alert {
  background: #dbeafe;
  padding: 12px 0;
  border-bottom: 1px solid #bfdbfe;
}

.homepage-alert .alert {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.alert-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  padding: 0 8px;
  line-height: 1;
}

.alert-close:hover {
  opacity: 1;
}

/* ============================================
   PRICING PAGE STYLES (Redesign)
   ============================================ */

/* --- Hero --- */
.pricing-hero {
  background: var(--bg-dark);
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 80px;
}

.pricing-hero-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pricing-hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.pricing-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.pricing-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Cards Section --- */
.pricing-section {
  background: var(--bg-cream);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.pricing-section .container {
  max-width: 1060px;
}

.pricing-section .alert {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.pricing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Card Base */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Featured card (Family) */
.pricing-card.featured {
  border-color: var(--accent);
}

.pricing-card.current {
  border-color: var(--primary-light);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 20px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Tier Badge */
.pricing-tier-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 20px;
}

.pricing-tier-badge.personal {
  background: #dbeafe;
  color: #0369a1;
}

.pricing-tier-badge.family {
  background: #dcfce7;
  color: #16a34a;
}

.pricing-tier-badge.business {
  background: #fef3c7;
  color: #b45309;
}

/* Price */
.pricing-price {
  margin-bottom: 4px;
}

.pricing-currency {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  vertical-align: top;
  position: relative;
  top: 8px;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.pricing-amount sup {
  font-size: 1.4rem;
  position: relative;
  top: -14px;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 2px;
}

.pricing-price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Divider */
.pricing-card-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 24px 0;
}

/* Feature List */
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
  flex-grow: 1;
  padding: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.pricing-features li strong {
  color: var(--text);
}

.pricing-check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary-light);
}

/* Buttons */
.pricing-card .btn {
  display: block;
  width: 100%;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
}

.pricing-card .btn.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.pricing-card .btn.btn-outline:hover:not(:disabled) {
  border-color: var(--primary-light);
}

.pricing-card .btn.btn-solid {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.pricing-card .btn.btn-solid:hover:not(:disabled) {
  background: var(--primary-dark);
}

.pricing-card .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- FAQ Section --- */
.pricing-faq-section {
  background: var(--primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.pricing-faq-section .container {
  max-width: 700px;
}

.pricing-faq-section h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: var(--white);
  margin-bottom: 32px;
}

.pricing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-faq-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
}

.pricing-faq-item h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.pricing-faq-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0;
}

/* --- Stripe Note --- */
.pricing-stripe-note {
  text-align: center;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-lock-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .pricing-hero {
    min-height: 40vh;
    padding: 80px 0 60px;
  }

  .pricing-hero h1 {
    font-size: 2rem;
  }

  .pricing-hero-subtitle {
    font-size: 1rem;
  }

  .pricing-section {
    padding: 60px 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 32px;
  }

  .pricing-popular-badge {
    top: -14px;
  }

  .pricing-faq-section {
    padding: 60px 0;
  }

  .pricing-faq-section h2 {
    font-size: 1.4rem;
  }

  .pricing-faq-item {
    padding: 20px;
  }
}

/* RTL support for pricing */
body.rtl .pricing-features li {
  flex-direction: row-reverse;
}

body.rtl .pricing-currency {
  margin-left: 2px;
  margin-right: 0;
}

body.rtl .pricing-period {
  margin-left: 0;
  margin-right: 2px;
}

/* Generic tier badge (used by billing, payment success, etc.) */
.tier-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

.tier-badge.personal {
  background: #dbeafe;
  color: #1d4ed8;
}

.tier-badge.family {
  background: #ede9fe;
  color: #7c3aed;
}

.tier-badge.business {
  background: #fef3c7;
  color: #b45309;
}

.tier-badge.none {
  background: var(--bg-light);
  color: var(--text-muted);
}

/* ============================================
   PAYMENT RESULT PAGE STYLES
   ============================================ */

.payment-result-page {
  padding: 180px 0 80px;
  min-height: 100vh;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
}

.result-card.success .result-icon {
  background: var(--success);
  color: white;
}

.result-card.cancel .result-icon {
  background: var(--danger);
  color: white;
}

.result-card h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.result-message {
  color: var(--text-light);
  margin-bottom: 24px;
}

.tier-activated {
  margin-bottom: 24px;
}

.tier-activated .tier-badge {
  font-size: 1.1rem;
  padding: 10px 24px;
}

.tier-activated p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.receipt-summary {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.receipt-summary h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.receipt-row:last-child {
  border-bottom: none;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.result-actions .btn {
  min-width: 150px;
}

.receipt-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.help-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.help-section h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.help-section p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.help-section .back-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.help-section .back-link:hover {
  text-decoration: underline;
}

/* ============================================
   VERIFICATION PAGE STYLES
   ============================================ */

.verification-page {
  padding: 180px 0 80px;
  min-height: 100vh;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-card.pending .result-icon {
  background: var(--primary);
  color: white;
  font-size: 2rem;
}

.result-card.error .result-icon {
  background: var(--danger);
  color: white;
}

.result-card.error .result-icon.error-icon {
  font-size: 2.5rem;
  font-weight: 700;
}

.email-highlight {
  background: var(--bg-light);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--primary);
  margin: 20px 0;
  display: inline-block;
  font-size: 1.1rem;
}

.instruction-text {
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ============================================
   BILLING PAGE STYLES
   ============================================ */

.billing-page {
  padding: 115px 0 80px;
  min-height: 100vh;
  background: var(--bg-light);
}

.billing-page .back-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.billing-page .back-link:hover {
  text-decoration: underline;
}

.billing-header {
  margin-bottom: 32px;
}

.billing-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 8px;
}

.billing-header p {
  color: var(--text-light);
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  max-width: 900px;
}

.billing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.billing-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-header-flex h3 {
  margin-bottom: 0;
}

.current-plan {
  text-align: center;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.current-plan .tier-badge {
  font-size: 1rem;
  padding: 8px 20px;
}

.plan-price {
  margin-top: 8px;
  color: var(--text-light);
}

.payments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.payment-tier {
  font-weight: 600;
  color: var(--text-dark);
}

.payment-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.payment-amount {
  text-align: right;
}

.payment-amount .amount {
  font-weight: 600;
  display: block;
}

.payment-amount .status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.payment-amount .status.completed {
  background: #dcfce7;
  color: #166534;
}

.payment-amount .status.pending {
  background: #fef3c7;
  color: #92400e;
}

.payment-amount .status.failed {
  background: #fee2e2;
  color: #991b1b;
}

.no-payments {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
}

/* ============================================
   FAMILY PAGE STYLES (v1.7.0)
   ============================================ */

.family-page {
  padding: 115px 0 60px;
  min-height: 100vh;
  background: var(--bg-light);
}

/* Family Dashboard Hero */
.family-dashboard-hero {
  background: var(--primary);
  color: white;
  padding: 32px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.family-dashboard-hero .hero-header {
  text-align: center;
  margin-bottom: 32px;
}

.family-dashboard-hero .hero-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: white;
}

.family-dashboard-hero .hero-header p {
  opacity: 0.9;
  font-size: 1rem;
}

.family-dashboard-hero .summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
}

.family-dashboard-hero .summary-item {
  text-align: center;
}

.family-dashboard-hero .summary-label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.family-dashboard-hero .summary-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.family-dashboard-hero .summary-value.highlight {
  font-size: 2rem;
}

.family-page .page-header {
  margin-bottom: 32px;
}

.family-page .page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.family-page .page-subtitle {
  color: var(--text-muted);
}

.family-page .back-link {
  display: inline-block;
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.family-page .back-link:hover {
  text-decoration: underline;
}

/* Family Summary Card - deprecated, use hero instead */
.family-summary-card {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
}

.family-summary-card .summary-header h2 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  opacity: 0.9;
}

.family-summary-card .summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.family-summary-card .summary-item {
  text-align: center;
}

.family-summary-card .summary-label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.family-summary-card .summary-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.family-summary-card .summary-value.highlight {
  font-size: 2rem;
}

/* Family Section */
.family-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.family-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.family-section .section-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

/* Members Grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.member-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.member-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.member-card .member-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.member-card .member-avatar {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
}

.member-card .member-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.member-card .member-relationship {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.member-card .member-zakat {
  background: white;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  text-align: center;
}

.member-card .zakat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.member-card .zakat-amount {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.member-card .member-calc-info {
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.member-card .member-actions {
  display: flex;
  gap: 8px;
}

.member-card .member-actions .btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* Calculation Preview */
.calculation-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.calculation-preview .calc-info {
  flex: 1;
}

.calculation-preview .calc-info strong {
  display: block;
  margin-bottom: 4px;
}

.calculation-preview .calc-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.calculation-preview .calc-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Family Table */
.family-table {
  width: 100%;
  border-collapse: collapse;
}

.family-table th,
.family-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.family-table th {
  background: var(--bg-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.family-table .owner-row {
  background: var(--bg-cream);
}

.family-table .owner-row .badge {
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.family-table .total-row {
  background: var(--primary);
  color: white;
}

.family-table .total-row td {
  border-bottom: none;
}

/* Responsive table wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.table-responsive table {
  min-width: 500px;
}

/* ============================================
   RESPONSIVE: 480px BREAKPOINT
   ============================================ */

@media (max-width: 480px) {
  .table-responsive table {
    min-width: 400px;
  }

  .calc-price-input {
    min-width: 100%;
  }
}

/* Member Action Bar */
.member-action-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

/* Calculations List */
.calculations-list .calculation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.calculations-list .calculation-item:last-child {
  border-bottom: none;
}

.calculations-list .calc-main {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.calculations-list .calc-info strong {
  display: block;
  margin-bottom: 4px;
}

.calculations-list .calc-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.calculations-list .calc-amount {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

/* Calculation Summary */
.calculation-summary {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 20px;
}

.calculation-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.calculation-summary .summary-row.highlight {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
}

/* Info Card */
.info-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.info-card .info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.info-card .info-row:last-child {
  border-bottom: none;
}

.info-card .info-label {
  color: var(--text-muted);
}

.info-card .info-value {
  font-weight: 500;
}

/* Form Page Wrapper */
.form-page-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-card .form-header {
  margin-bottom: 24px;
}

.form-card .form-header h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-card .form-header p {
  color: var(--text-muted);
}

.family-form .form-group {
  margin-bottom: 20px;
}

.family-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.family-form .form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.family-form .form-actions {
  margin-top: 24px;
}

.family-form .form-actions .btn {
  margin-bottom: 12px;
}

/* Danger Zone */
.danger-zone {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.danger-zone h4 {
  color: var(--error);
  margin-bottom: 8px;
}

.danger-zone p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h4 {
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .family-dashboard-hero {
    padding: 24px;
  }
  
  .family-dashboard-hero .hero-header h1 {
    font-size: 1.5rem;
  }
  
  .family-dashboard-hero .summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .family-dashboard-hero .summary-value.highlight {
    font-size: 1.5rem;
  }
  
  .family-summary-card .summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .family-summary-card .summary-value.highlight {
    font-size: 1.5rem;
  }
  
  .members-grid {
    grid-template-columns: 1fr;
  }
  
  .member-action-bar {
    flex-direction: column;
  }
  
  .calculations-list .calc-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .family-table {
    font-size: 0.9rem;
  }
  
  .family-table th,
  .family-table td {
    padding: 8px 12px;
  }
  
  /* Account dropdown responsive */
  .account-name {
    display: none;
  }
  
  .account-dropdown-btn {
    padding: 8px 10px;
  }
}

/* Family Member Banner in Calculator */
.family-member-banner {
  background: var(--primary);
  color: white;
  padding: 12px 0;
  position: fixed;
  top: 95px;
  left: 0;
  right: 0;
  z-index: 999;
}

.family-member-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.family-member-banner .banner-icon {
  font-size: 1.2rem;
}

.family-member-banner .banner-text {
  font-size: 0.95rem;
}

.family-member-banner .banner-link {
  color: white;
  opacity: 0.9;
  font-size: 0.85rem;
  text-decoration: underline;
}

.family-member-banner .banner-link:hover {
  opacity: 1;
}

/* Adjust calculator page when banner is present */
.calculator-page:has(.family-member-banner) .calculator-container {
  padding-top: 60px;
}

/* ============================================
   RESPONSIVE: Certificate columns stacking
   ============================================ */

@media (max-width: 768px) {
  .cert-columns {
    flex-direction: column;
  }
}

/* ============================================
   WHAT IS ZAKAT PAGE — Full-width redesign
   ============================================ */

/* Section 1: Hero */
.zakat-hero {
  background: var(--bg-dark);
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 100px;
}

.zakat-hero-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.zakat-hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.zakat-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.zakat-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.zakat-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.zakat-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.zakat-hero-buttons .btn-white {
  background: var(--white);
  color: var(--primary);
}

.zakat-hero-buttons .btn-white:hover {
  border-color: var(--accent);
}

.zakat-hero-buttons .btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.zakat-hero-buttons .btn-outline:hover {
  border-color: var(--white);
}

/* Section 2: Introduction */
.zakat-intro-section {
  background: var(--white);
  padding: 100px 0;
}

.zakat-intro-layout {
  display: flex;
  gap: 48px;
  align-items: baseline;
}

.zakat-intro-layout h2 {
  flex: 0 0 340px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--primary);
  line-height: 1.3;
}

.zakat-intro-text {
  flex: 1;
  border-left: 1px solid var(--border);
  padding-left: 24px;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.9;
}

/* Section 3: Meaning */
.zakat-meaning-section {
  background: var(--bg-cream);
  padding: 100px 0;
}

.zakat-meaning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.zakat-meaning-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.zakat-meaning-label {
  display: inline-block;
  background: rgba(26, 95, 74, 0.08);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.zakat-meaning-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.zakat-meaning-card p {
  color: var(--text-light);
  line-height: 1.8;
}

.zakat-arabic-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.zakat-term-tag {
  background: var(--bg-cream);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.zakat-term-tag strong {
  color: var(--text);
}

/* Section 4: Evidence */
.zakat-evidence-section {
  background: var(--primary);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.zakat-evidence-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.zakat-evidence-section .container {
  position: relative;
  z-index: 1;
}

.zakat-evidence-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.zakat-evidence-header {
  text-align: center;
  margin-bottom: 48px;
}

.zakat-evidence-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 16px;
}

.zakat-evidence-header h2 span {
  color: var(--accent-light);
}

.zakat-evidence-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

.zakat-evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.zakat-evidence-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

.zakat-evidence-source {
  display: inline-block;
  background: rgba(201, 162, 39, 0.15);
  color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.zakat-arabic-quote {
  font-family: 'Amiri', Georgia, serif;
  color: var(--accent-light);
  font-size: 1.5rem;
  line-height: 2.2;
  direction: rtl;
  margin-bottom: 20px;
}

.zakat-evidence-card .zakat-translation {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.zakat-evidence-card cite {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-style: normal;
}

/* Section 5: Roles */
.zakat-roles-section {
  background: var(--white);
  padding: 100px 0;
}

.zakat-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.zakat-role-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
}

.zakat-role-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.zakat-role-icon .icon {
  width: 28px;
  height: 28px;
}

.zakat-role-icon.spiritual { background: #fce4ec; color: #c62828; }
.zakat-role-icon.spiritual .icon { color: #c62828; }
.zakat-role-icon.social { background: #e3f2fd; color: #1565c0; }
.zakat-role-icon.social .icon { color: #1565c0; }
.zakat-role-icon.economic { background: #e8f5e9; color: #2e7d32; }
.zakat-role-icon.economic .icon { color: #2e7d32; }

.zakat-role-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.zakat-role-card p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Section 6: Key Concepts */
.zakat-concepts-section {
  background: var(--bg-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.zakat-concepts-section::before {
  content: '';
  position: absolute;
  top: 30%;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.zakat-concepts-section .container {
  position: relative;
  z-index: 1;
}

.zakat-concepts-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.zakat-concepts-header {
  text-align: center;
  margin-bottom: 48px;
}

.zakat-concepts-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 12px;
}

.zakat-concepts-header h2 span {
  color: var(--accent-light);
}

.zakat-concepts-strip {
  display: flex;
}

.zakat-concept-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 36px 28px;
}

.zakat-concept-card:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.zakat-concept-card:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.zakat-concept-card + .zakat-concept-card {
  border-left: none;
}

.zakat-concept-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.zakat-concept-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* Section 7: Recipients */
.zakat-recipients-section {
  background: var(--bg-cream);
  padding: 100px 0;
}

.zakat-recipients-header {
  text-align: center;
  margin-bottom: 48px;
}

.zakat-recipients-badge {
  display: inline-block;
  background: rgba(26, 95, 74, 0.08);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.zakat-recipients-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--text);
  margin-bottom: 12px;
}

.zakat-recipients-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

.zakat-accordion-list {
  max-width: 800px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zakat-accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.zakat-accordion-item[open] {
  border-left: 4px solid var(--primary);
}

.zakat-accordion-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.zakat-accordion-item summary::-webkit-details-marker {
  display: none;
}

.zakat-accordion-item summary::marker {
  content: '';
}

.zakat-accordion-number {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.zakat-accordion-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zakat-accordion-title .zakat-arabic-name {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.zakat-accordion-indicator {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 300;
  width: 24px;
  text-align: center;
}

.zakat-accordion-item:not([open]) .zakat-accordion-indicator::after {
  content: '+';
}

.zakat-accordion-item[open] .zakat-accordion-indicator::after {
  content: '\2212';
}

.zakat-accordion-body {
  padding: 0 20px 20px 68px;
}

.zakat-accordion-body p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.zakat-accordion-body .zakat-examples {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.zakat-accordion-body .zakat-examples strong {
  color: var(--text-light);
}

/* Important Notes */
.zakat-important-notes {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

.zakat-important-notes h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.zakat-important-notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zakat-important-notes li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.7;
}

.zakat-important-notes li::before {
  content: '\2022';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: bold;
}

.zakat-important-notes li:last-child {
  margin-bottom: 0;
}

/* Section 8: Verse */
.zakat-verse-section {
  background: var(--primary);
  padding: 80px 0;
}

.zakat-verse-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.zakat-verse-arabic {
  font-family: 'Amiri', Georgia, serif;
  color: var(--accent-light);
  font-size: 1.5rem;
  line-height: 2;
  direction: rtl;
  margin-bottom: 24px;
}

.zakat-verse-translation {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 12px;
}

.zakat-verse-cite {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ============================================
   Cross-Links Section (shared across pages)
   ============================================ */
.cross-links-section {
  padding: 64px 0;
  background: var(--surface);
}

.cross-links-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 32px;
}

.cross-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.cross-link-card {
  display: block;
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 0.2s;
}

.cross-link-card:hover {
  border-color: var(--primary-light);
}

.cross-link-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0 0 8px 0;
}

.cross-link-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.cross-link-card--cta {
  border-color: var(--primary);
  background: var(--primary);
}

.cross-link-card--cta h3 {
  color: white;
}

.cross-link-card--cta p {
  color: rgba(255, 255, 255, 0.85);
}

.cross-link-card--cta:hover {
  border-color: var(--primary-light);
  background: var(--primary-light);
}

@media (max-width: 768px) {
  .cross-links-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cross-links-section {
    padding: 48px 0;
  }
}

/* Section 9: CTA */
.zakat-cta-section {
  background: var(--bg-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.zakat-cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,162,39,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.zakat-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.zakat-cta-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 16px;
}

.zakat-cta-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

.zakat-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.zakat-btn-cta:hover {
  border-color: var(--accent);
}

/* ============================================
   WHAT IS ZAKAT PAGE — Responsive
   ============================================ */
@media (max-width: 768px) {
  .zakat-hero {
    min-height: auto;
    padding: 80px 0 60px;
  }

  .zakat-hero h1 {
    font-size: 2.2rem;
  }

  .zakat-hero-subtitle {
    font-size: 1rem;
  }

  .zakat-hero-buttons {
    flex-direction: column;
  }

  .zakat-hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }

  .zakat-intro-layout {
    flex-direction: column;
    gap: 24px;
  }

  .zakat-intro-layout h2 {
    flex: none;
  }

  .zakat-intro-text {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 24px;
  }

  .zakat-meaning-grid {
    grid-template-columns: 1fr;
  }

  .zakat-evidence-grid {
    grid-template-columns: 1fr;
  }

  .zakat-roles-grid {
    grid-template-columns: 1fr;
  }

  .zakat-concepts-strip {
    flex-direction: column;
  }

  .zakat-concept-card:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .zakat-concept-card:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .zakat-concept-card + .zakat-concept-card {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
  }

  .zakat-accordion-body {
    padding-left: 20px;
  }

  .zakat-arabic-quote {
    font-size: 1.25rem;
  }

  .zakat-verse-arabic {
    font-size: 1.25rem;
  }

  .zakat-intro-section,
  .zakat-meaning-section,
  .zakat-roles-section,
  .zakat-evidence-section,
  .zakat-concepts-section,
  .zakat-recipients-section,
  .zakat-cta-section {
    padding: 60px 0;
  }

  .zakat-verse-section {
    padding: 50px 0;
  }
}

/* ============================================
   WHAT IS ZAKAT PAGE — RTL Support
   ============================================ */
body.rtl .zakat-intro-text {
  border-left: none;
  padding-left: 0;
  border-right: 1px solid var(--border);
  padding-right: 24px;
}

body.rtl .zakat-accordion-item[open] {
  border-left: 1px solid var(--border);
  border-right: 4px solid var(--primary);
}

body.rtl .zakat-accordion-body {
  padding-left: 20px;
  padding-right: 68px;
}

body.rtl .zakat-important-notes {
  border-left: 1px solid var(--border);
  border-right: 4px solid var(--accent);
}

body.rtl .zakat-important-notes li {
  padding-left: 0;
  padding-right: 20px;
}

body.rtl .zakat-important-notes li::before {
  left: auto;
  right: 4px;
}

body.rtl .zakat-concept-card:first-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

body.rtl .zakat-concept-card:last-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

body.rtl .zakat-concept-card + .zakat-concept-card {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
}

@media (max-width: 768px) {
  body.rtl .zakat-intro-text {
    border-right: none;
    padding-right: 0;
    border-top: 1px solid var(--border);
    padding-top: 24px;
  }

  body.rtl .zakat-accordion-body {
    padding-right: 20px;
  }

  body.rtl .zakat-concept-card:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  body.rtl .zakat-concept-card:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  body.rtl .zakat-concept-card + .zakat-concept-card {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
  }
}

/* ============================================
   ABOUT PAGE — Full-width redesign
   ============================================ */

/* Section 1: Hero */
.about-hero {
  background: var(--bg-dark);
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 100px;
}

.about-hero-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.about-hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.about-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.about-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.about-hero h1 span {
  color: var(--accent-light);
}

.about-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.about-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.about-hero-buttons .btn-white {
  background: var(--white);
  color: var(--primary);
}

.about-hero-buttons .btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Section 2: Mission */
.about-mission-section {
  background: var(--white);
  padding: 100px 0;
}

.about-mission-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-mission-left,
.about-mission-right {
  flex: 1;
}

.about-mission-left h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-mission-left p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.9;
}

.about-mission-highlight {
  margin-top: 16px;
  font-weight: 600;
  color: var(--primary) !important;
}

.about-mission-right p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 28px;
}

.about-mission-center {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-mission-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-mission-circle-ring {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(4, 110, 109, 0.3);
  animation: about-spin-ring 30s linear infinite;
}

@keyframes about-spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .about-mission-circle-ring {
    animation: none;
  }
}

.about-founder-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin: 0;
}

.about-founder-cite {
  display: block;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
}

/* Section 3: Credentials */
.about-credentials-section {
  background: var(--primary);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about-credentials-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.about-credentials-section .container {
  position: relative;
  z-index: 1;
}

.about-credentials-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-dark-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.about-credentials-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 12px;
}

.about-credentials-header h2 span {
  color: var(--accent-light);
}

.about-credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.about-credential-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
}

.about-credential-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.about-credential-icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.about-credential-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.about-credential-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.about-credential-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* Experience strip */
.about-experience-strip {
  display: flex;
}

.about-experience-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px 20px;
}

.about-experience-card:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.about-experience-card:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-experience-card + .about-experience-card {
  border-left: none;
}

.about-experience-card h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-experience-card h4 svg {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.about-experience-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.7;
}

.about-experience-card .highlight {
  color: var(--accent-light);
  font-weight: 500;
}

/* Section 4: Methodology */
.about-methodology-section {
  background: var(--bg-cream);
  padding: 100px 0;
}

.about-methodology-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-methodology-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--text);
  margin-bottom: 12px;
}

.about-methodology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.about-methodology-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
}

.about-methodology-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.about-methodology-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.about-methodology-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
}

.about-methodology-card p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Section 5: Commitment */
.about-commitment-section {
  background: var(--bg-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about-commitment-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,162,39,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-commitment-section .container {
  position: relative;
  z-index: 1;
}

.about-commitment-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-commitment-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--white);
}

.about-commitment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.about-pillar-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
}

.about-pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.about-pillar-icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.about-pillar-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.about-pillar-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* Section 6: References */
.about-references-section {
  background: var(--white);
  padding: 100px 0;
}

.about-references-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-references-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--text);
}

.about-references-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.about-reference-card {
  background: #f0ede6;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
}

.about-reference-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.about-reference-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-reference-icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.about-reference-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
}

.about-reference-card p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.about-reference-card p:last-child {
  margin-bottom: 0;
}

/* Section 7: CTA */
.about-cta-section {
  background: var(--bg-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about-cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,162,39,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.about-cta-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 16px;
}

.about-cta-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

.about-cta-content .btn-white {
  background: var(--white);
  color: var(--primary);
}

/* About page responsive */
@media (max-width: 768px) {
  .about-hero {
    min-height: auto;
    padding: 80px 0 60px;
  }

  .about-hero h1 {
    font-size: 2.2rem;
  }

  .about-hero-subtitle {
    font-size: 1rem;
  }

  .about-hero-buttons {
    flex-direction: column;
  }

  .about-hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }

  .about-mission-layout {
    flex-direction: column;
    gap: 40px;
  }

  .about-mission-center {
    order: -1;
  }

  .about-credentials-grid {
    grid-template-columns: 1fr;
  }

  .about-experience-strip {
    flex-direction: column;
  }

  .about-experience-card:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .about-experience-card:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .about-experience-card + .about-experience-card {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
  }

  .about-methodology-grid {
    grid-template-columns: 1fr;
  }

  .about-references-grid {
    grid-template-columns: 1fr;
  }

  .about-commitment-grid {
    grid-template-columns: 1fr;
  }

  .about-founder-quote {
    font-size: 1.05rem;
  }
}

/* About page RTL support */
body.rtl .about-mission-layout {
  flex-direction: row-reverse;
}

body.rtl .about-founder-quote {
  border-left: none;
  border-right: 3px solid var(--primary);
  padding-left: 0;
  padding-right: 20px;
}

body.rtl .about-credentials-header,
body.rtl .about-methodology-header,
body.rtl .about-commitment-header,
body.rtl .about-references-header {
  direction: rtl;
}

body.rtl .about-reference-card-top {
  flex-direction: row-reverse;
}

body.rtl .about-methodology-card-header {
  flex-direction: row-reverse;
}

body.rtl .about-experience-card h4 {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  body.rtl .about-mission-layout {
    flex-direction: column;
  }
}

/* ============================================
   FAQ PAGE
   ============================================ */

/* FAQ Hero */
.faq-hero {
  background: var(--bg-dark);
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 80px;
}

.faq-hero-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.faq-hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.faq-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.faq-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* FAQ Categories Section */
.faq-categories {
  background: var(--bg-cream);
  padding: 100px 0;
}

.faq-categories .container {
  max-width: 800px;
}

/* Category Header */
.faq-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.faq-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-category-icon svg {
  width: 20px;
  height: 20px;
  color: var(--white);
  stroke: var(--white);
  fill: none;
}

.faq-category-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 700;
}

/* Category Divider */
.faq-category-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* Accordion Items */
.faq-categories .faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-categories .faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
}

.faq-categories .faq-item:hover {
  border-color: var(--primary);
}

.faq-categories .faq-item summary {
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  background: transparent;
  border-bottom: none;
  transition: none;
}

.faq-categories .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-categories .faq-item summary::marker {
  display: none;
  content: '';
}

.faq-categories .faq-item summary:hover {
  background: transparent;
}

.faq-categories .faq-item summary::after {
  content: '+';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--bg-cream);
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
}

.faq-categories .faq-item[open] summary::after {
  content: '\2212';
}

/* Open state: left accent border */
.faq-categories .faq-item[open] {
  border-left: 3px solid var(--primary);
}

.faq-categories .faq-item[open] summary {
  border-bottom: none;
  background: transparent;
}

/* Answer area */
.faq-categories .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
  padding: 0;
  background: transparent;
}

.faq-categories .faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding: 0 18px 18px;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0;
}

/* RTL: swap +/- indicator position and accent border */
body.rtl .faq-categories .faq-item summary {
  flex-direction: row-reverse;
}

body.rtl .faq-categories .faq-item summary::after {
  margin-left: 0;
  margin-right: 0;
}

body.rtl .faq-categories .faq-item[open] {
  border-left: 1px solid var(--primary);
  border-right: 3px solid var(--primary);
}

/* FAQ CTA Section */
.faq-cta-section {
  background: var(--bg-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.faq-cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,162,39,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.faq-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.faq-cta-content h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 12px;
}

.faq-cta-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.faq-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.faq-btn-cta:hover {
  background: #f0efed;
}

/* FAQ Responsive */
@media (max-width: 768px) {
  .faq-hero {
    min-height: 40vh;
    padding: 80px 0 60px;
  }

  .faq-hero h1 {
    font-size: 2rem;
  }

  .faq-hero-subtitle {
    font-size: 1rem;
  }

  .faq-categories {
    padding: 60px 0;
  }

  .faq-category-header h2 {
    font-size: 1.2rem;
  }

  .faq-category-divider {
    margin: 36px 0;
  }

  .faq-categories .faq-item summary {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .faq-answer-inner p {
    padding: 0 16px 16px;
    font-size: 0.85rem;
  }

  .faq-cta-section {
    padding: 60px 0;
  }

  .faq-cta-content h2 {
    font-size: 1.5rem;
  }
}

/* FAQ Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .faq-categories .faq-answer {
    transition: none;
  }
}

/* ============================================
   CONTACT PAGE REDESIGN
   ============================================ */

/* Hero */
.contact-hero {
  background: var(--bg-dark);
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 80px;
}

.contact-hero-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.contact-hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.contact-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--white, #ffffff);
  margin-bottom: 16px;
  line-height: 1.15;
}

.contact-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Form + Sidebar Section */
.contact-section {
  background: var(--white, #ffffff);
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
}

/* Form Card */
.contact-form-card {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
}

/* Error Alert */
.contact-form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dc2626;
  font-size: 0.9rem;
}

.contact-form-error svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: #dc2626;
  fill: none;
}

/* Form Groups */
.contact-form-group {
  margin-bottom: 20px;
}

.contact-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-form-group label .contact-required {
  color: #dc2626;
  margin-left: 2px;
}

body.rtl .contact-form-group label .contact-required {
  margin-left: 0;
  margin-right: 2px;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white, #ffffff);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.1);
}

.contact-form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

body.rtl .contact-form-group select {
  background-position: left 14px center;
  padding-right: 16px;
  padding-left: 40px;
}

.contact-form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Privacy Note */
.contact-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white, #ffffff);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-privacy-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--primary);
  fill: none;
  margin-top: 2px;
}

body.rtl .contact-privacy-note {
  flex-direction: row-reverse;
  text-align: right;
}

/* Submit Button */
.contact-btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--primary);
  color: var(--white, #ffffff);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
}

.contact-btn-submit:hover {
  background: var(--primary-dark, #145242);
}

.contact-btn-submit svg {
  width: 18px;
  height: 18px;
  stroke: var(--white, #ffffff);
  fill: none;
}

/* Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-sidebar-card {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.contact-sidebar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal, #046e6d);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.contact-sidebar-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--white, #ffffff);
  fill: none;
}

.contact-sidebar-card h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-sidebar-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.contact-sidebar-card a {
  color: var(--primary);
  font-weight: 500;
}

.contact-sidebar-card a:hover {
  color: var(--primary-dark, #145242);
}

.contact-sidebar-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
}

.contact-sidebar-link:hover {
  color: var(--primary-dark, #145242);
}

/* Success State */
.contact-success-card {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 60px 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal, #046e6d);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.contact-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--white, #ffffff);
  fill: none;
  stroke-width: 2.5;
}

.contact-success-card h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.contact-success-card p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.contact-btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--primary);
  color: var(--white, #ffffff);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
}

.contact-btn-home:hover {
  background: var(--primary-dark, #145242);
  color: var(--white, #ffffff);
}

/* Contact Page Responsive */
@media (max-width: 768px) {
  .contact-hero {
    min-height: 40vh;
    padding: 80px 0 60px;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-hero-subtitle {
    font-size: 1rem;
  }

  .contact-section {
    padding: 60px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-sidebar {
    order: -1;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  .contact-success-card {
    padding: 40px 24px;
  }

  .contact-success-card h2 {
    font-size: 1.4rem;
  }
}

/* Contact Page RTL Support */
body.rtl .contact-form-error {
  flex-direction: row-reverse;
  text-align: right;
}

body.rtl .contact-form-group label {
  text-align: right;
}

body.rtl .contact-form-group input,
body.rtl .contact-form-group select,
body.rtl .contact-form-group textarea {
  text-align: right;
}

body.rtl .contact-btn-submit {
  flex-direction: row-reverse;
}

body.rtl .contact-sidebar-card {
  text-align: right;
}

/* End of app.css */
