/* ============================================================
   KANYADAN WEDDINGS — Theme CSS
   Brand: Crimson + Saffron + Gold + Cream
   ============================================================ */

/* ── Google Fonts (loaded in container.phtml) ── */

/* ── CSS Variables ── */
:root {
  --primary:       #8B0000;
  --primary-dark:  #6B0000;
  --primary-light: #C41E3A;
  --saffron:       #FF6B35;
  --saffron-dark:  #E85320;
  --gold:          #D4A017;
  --gold-light:    #F0C040;
  --cream:         #FFF9F0;
  --cream-dark:    #FFF3E0;
  --text-dark:     #1A1A1A;
  --text-body:     #444444;
  --text-muted:    #888888;
  --border:        #E8E0D8;
  --white:         #FFFFFF;
  --shadow-sm:     0 2px 8px rgba(139,0,0,0.08);
  --shadow-md:     0 4px 20px rgba(139,0,0,0.12);
  --shadow-lg:     0 8px 40px rgba(139,0,0,0.16);
  /* ── Gradient tokens ── */
  --primary-gradient:    linear-gradient(135deg, var(--primary), var(--primary-light));
  --primary-gradient-v:  linear-gradient(180deg, var(--primary), var(--primary-light));
  --dark-gradient:       linear-gradient(135deg, #1a0000 0%, #5a0000 50%, var(--primary) 100%);
  --hero-gradient:       linear-gradient(150deg, #140000 0%, #550000 38%, var(--primary) 65%, #a81520 100%);
  --gold-gradient:       linear-gradient(135deg, var(--gold), var(--gold-light));
  --cream-gradient:      linear-gradient(135deg, var(--cream), var(--cream-dark));
  /* ── Spacing tokens ── */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  /* ── Typography scale ── */
  --text-xs:   11px;
  --text-sm:   12.5px;
  --text-base: 14px;
  --text-md:   15px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;
  /* ── Transition ── */
  --transition-fast: all 0.15s ease;
  --transition:      all 0.22s cubic-bezier(.25,.8,.25,1);
  --transition-slow: all 0.4s cubic-bezier(.25,.8,.25,1);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --font-heading:    'Playfair Display', Georgia, serif;
  --font-body:       'Inter', sans-serif;
  --font-devanagari: 'Hind', 'Noto Sans Devanagari', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

/* ── Bootstrap 5 Overrides ── */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-saffron {
  background: linear-gradient(90deg, var(--saffron), var(--saffron-dark));
  color: white;
  border: none;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(232,83,32,0.35);
  transition: all 0.2s;
}
.btn-saffron:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(232,83,32,0.45);
  color: white;
}
.btn-gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  color: var(--primary-dark);
  border: none;
  font-weight: 700;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(139,0,0,0.15);
}
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

/* ── Responsive type scale ── */
@media (max-width: 768px) {
  h1 { font-size: clamp(22px, 5.5vw, 32px); }
  h2 { font-size: clamp(18px, 4.5vw, 24px); }
  h3 { font-size: 18px; }
  body { font-size: 13.5px; }
}
.text-primary-kd { color: var(--primary) !important; }
.text-saffron { color: var(--saffron) !important; }
.text-gold { color: var(--gold) !important; }
.bg-cream { background: var(--cream) !important; }
.bg-primary-kd { background: var(--primary) !important; }
.devanagari { font-family: var(--font-devanagari); }

/* ── NAVBAR ── */
.kd-navbar {
  background: var(--white);
  height: 62px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.kd-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.kd-navbar .brand-text-top {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  font-family: var(--font-devanagari);
}
.kd-navbar .brand-text-bottom {
  font-size: 9px;
  color: var(--primary);
  letter-spacing: 2.5px;
  font-weight: 700;
}
.kd-navbar .nav-link {
  color: var(--text-body);
  font-weight: 500;
  padding: 8px 12px;
  font-size: 13px;
  transition: color 0.2s;
}
.kd-navbar .nav-link:hover { color: var(--primary); }
.kd-navbar .nav-link.active { color: var(--primary); font-weight: 700; }
.kd-navbar .btn-nav-login {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 7px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  background: transparent;
  transition: all 0.2s;
}
.kd-navbar .btn-nav-login:hover {
  background: var(--primary);
  color: white;
}
.kd-navbar .btn-nav-register {
  background: var(--primary);
  color: white;
  padding: 7px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  border: none;
  transition: all 0.2s;
}
.kd-navbar .btn-nav-register:hover {
  background: var(--primary-dark);
  color: white;
}

/* ── LANGUAGE BAR ── */
.kd-langbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.kd-langbar::-webkit-scrollbar { display: none; }
.kd-langbar ul {
  list-style: none;
  display: inline-flex;
  gap: 0;
  padding: 0;
  margin: 0;
}
.kd-langbar ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  color: #666;
  border-right: 1px solid var(--border);
  transition: color 0.2s;
}
.kd-langbar ul li a:hover { color: var(--primary); }
.kd-langbar ul li a.active { color: var(--primary); font-weight: 600; }

/* ── PROFILE CARDS ── */
.kd-profile-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.kd-profile-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.kd-profile-card .card-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--cream-dark);
}
.kd-profile-card .card-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--cream-dark), #f5e6d3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--gold);
}
.kd-profile-card .card-body {
  padding: 14px;
}
.kd-profile-card .card-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.kd-profile-card .card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.kd-profile-card .card-actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
}
.kd-profile-card .btn-interest {
  flex: 1;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.kd-profile-card .btn-interest:hover { background: var(--primary-dark); }
.kd-profile-card .btn-shortlist {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}
.kd-profile-card .btn-shortlist:hover,
.kd-profile-card .btn-shortlist.active {
  border-color: var(--saffron);
  color: var(--saffron);
}
.kd-profile-card .badge-verified {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255,255,255,0.92);
  color: #2E7D32;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
}
.kd-profile-card .badge-plan {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: white;
}
.kd-profile-card .badge-plan.gold { background: var(--gold); }
.kd-profile-card .badge-plan.silver { background: #78909C; }

/* ── KUNDALI SCORE BADGE ── */
.kd-kundali-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--cream);
  position: relative;
}
.kd-kundali-badge .score-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.kd-kundali-badge .score-max {
  font-size: 9px;
  color: var(--text-muted);
}
.kd-kundali-badge.excellent { border-color: #2E7D32; }
.kd-kundali-badge.very-good { border-color: #388E3C; }
.kd-kundali-badge.good { border-color: var(--gold); }
.kd-kundali-badge.average { border-color: #FF9800; }
.kd-kundali-badge.poor { border-color: #D32F2F; }

/* ── PROGRESS BAR (onboarding) ── */
.kd-progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 32px;
}
.kd-progress-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.kd-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
  cursor: pointer;
}
.kd-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s;
}
.kd-step.active .kd-step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.kd-step.done .kd-step-circle {
  background: #2E7D32;
  border-color: #2E7D32;
  color: white;
}
.kd-step-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.kd-step.active .kd-step-label { color: var(--primary); font-weight: 600; }
.kd-step.done .kd-step-label { color: #2E7D32; }

/* ── SECTION TITLES ── */
.kd-section { padding: 64px 0; }
.kd-section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.kd-section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.kd-section-title span { color: var(--primary); }
.kd-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--saffron));
  border-radius: 2px;
  margin: 12px 0 32px;
}

/* ── STATS BAR ── */
.kd-stats-bar {
  background: var(--primary);
  color: white;
  padding: 20px 0;
}
.kd-stat-item {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.kd-stat-item:last-child { border-right: none; }
.kd-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}
.kd-stat-label {
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* ── INTEREST MODAL ── */
.kd-modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ── PLAN CARDS ── */
.kd-plan-card {
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
  background: white;
}
.kd-plan-card.popular {
  border-color: var(--gold);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}
.kd-plan-card .plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--primary-dark);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.kd-plan-card .plan-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.kd-plan-card .plan-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}
.kd-plan-card .plan-price sup { font-size: 18px; }
.kd-plan-card .plan-period { font-size: 12px; color: var(--text-muted); }
.kd-plan-card .plan-features { list-style: none; text-align: left; margin: 20px 0; }
.kd-plan-card .plan-features li {
  padding: 5px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kd-plan-card .plan-features li::before { content: '✓'; color: #2E7D32; font-weight: 700; }
.kd-plan-card .plan-features li.disabled { color: var(--text-muted); }
.kd-plan-card .plan-features li.disabled::before { content: '✗'; color: #ccc; }

/* ── DASHBOARD SIDEBAR ── */
.kd-dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - 62px);
}
.kd-sidebar {
  background: var(--cream);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
}
.kd-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.kd-sidebar-item:hover, .kd-sidebar-item.active {
  background: rgba(139,0,0,0.08);
  color: var(--primary);
}
.kd-sidebar-item.active { font-weight: 700; border-right: 3px solid var(--primary); }
.kd-sidebar-icon { font-size: 18px; width: 24px; text-align: center; }
.kd-main-content { padding: 28px 32px; }

/* ── INTEREST TABS ── */
.kd-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  gap: 0;
}
.kd-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}
.kd-tab:hover { color: var(--primary); }
.kd-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.kd-tab .badge-count {
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 10px;
  margin-left: 5px;
}

/* ── CHAT ── */
.kd-chat-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 62px);
  background: white;
}
.kd-chat-list {
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.kd-chat-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.kd-chat-list-item:hover, .kd-chat-list-item.active { background: var(--cream); }
.kd-chat-list-item .chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-dark);
  flex-shrink: 0;
}
.kd-chat-list-item .chat-name { font-weight: 700; font-size: 14px; }
.kd-chat-list-item .chat-preview { font-size: 12px; color: var(--text-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 160px; }
.kd-chat-messages {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.kd-chat-messages .messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f9f5f0;
}
.kd-bubble {
  max-width: 65%;
  padding: 10px 14px;
  border-radius: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.kd-bubble.sent {
  background: var(--primary);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.kd-bubble.received {
  background: white;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.kd-chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
}
.kd-chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
  font-family: var(--font-body);
  resize: none;
}
.kd-chat-input:focus { border-color: var(--primary); }

/* ── SUCCESS STORIES ── */
.kd-story-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.kd-story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.kd-story-card .story-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--cream-dark), #f5e6d3);
}
.kd-story-card .story-body { padding: 16px; }
.kd-story-card .story-names { font-weight: 700; font-size: 16px; color: var(--primary); }
.kd-story-card .story-date { font-size: 12px; color: var(--text-muted); }
.kd-story-card .story-text { font-size: 13px; color: var(--text-body); margin-top: 8px; }

/* ── FOOTER ── */
.kd-footer {
  background: linear-gradient(170deg, #080002 0%, #130004 60%, #0a0002 100%);
  color: rgba(255,255,255,0.7);
  padding: 0;
  position: relative;
  overflow: hidden;
}
/* Gold top accent line */
.kd-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(212,160,23,.5) 25%, #D4A017 50%, rgba(212,160,23,.5) 75%, transparent 100%);
}
/* Decorative glow */
.kd-footer::after {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 380px; height: 380px;
  background: radial-gradient(ellipse, rgba(139,0,0,.2) 0%, transparent 65%);
  pointer-events: none;
}
.kd-footer-main { padding: 72px 0 52px; position: relative; z-index: 1; }
/* Brand */
.kd-foot-brand-deva { font-family: 'Noto Sans Devanagari', 'Hind', sans-serif; font-size: 28px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.5px; }
.kd-foot-brand-en   { font-family: 'Playfair Display', Georgia, serif; font-size: 11px; font-weight: 700; color: #D4A017; letter-spacing: 4px; text-transform: uppercase; margin-top: 3px; }
.kd-foot-tagline    { font-size: 12px; color: rgba(255,255,255,0.42); margin-top: 12px; line-height: 1.6; font-style: italic; }
/* Contact rows */
.kd-foot-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.kd-foot-contact-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: rgba(255,255,255,0.58); }
.kd-foot-contact-row i { font-size: 13px; color: #D4A017; width: 16px; flex-shrink: 0; }
/* Social icons */
.kd-foot-social { display: flex; gap: 8px; margin-top: 24px; }
.kd-foot-sico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s;
}
.kd-foot-sico:hover { background: rgba(212,160,23,0.15); border-color: rgba(212,160,23,0.4); color: #D4A017; transform: translateY(-2px); }
/* Column headings */
.kd-foot-col-ttl {
  font-size: 11px; font-weight: 800; color: #D4A017;
  text-transform: uppercase; letter-spacing: 1.8px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,160,23,0.18);
  display: flex; align-items: center; gap: 7px;
}
.kd-foot-col-ttl::before { content: ''; width: 18px; height: 2px; background: #D4A017; border-radius: 1px; flex-shrink: 0; }
/* Links */
.kd-foot-link {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.52); font-size: 13px;
  text-decoration: none; margin-bottom: 11px;
  transition: all 0.2s; padding-left: 0;
}
.kd-foot-link i { font-size: 11px; color: rgba(212,160,23,0.4); transition: color 0.2s; flex-shrink: 0; }
.kd-foot-link:hover { color: rgba(255,255,255,0.9); padding-left: 4px; }
.kd-foot-link:hover i { color: #D4A017; }
/* Trust strip */
.kd-foot-trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.06); }
.kd-foot-trust-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,0.38); }
.kd-foot-trust-item i { font-size: 12px; color: rgba(212,160,23,0.55); }
/* Bottom bar */
.kd-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 0;
  position: relative; z-index: 1;
}
.kd-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.kd-foot-copy { font-size: 12px; color: rgba(255,255,255,0.32); }
.kd-foot-made { font-size: 12px; color: rgba(255,255,255,0.32); display: flex; align-items: center; gap: 5px; }
.kd-foot-made i { color: #C62828; font-size: 11px; }
/* legacy classes kept for compat */
.kd-footer h6 { color: var(--gold); font-weight: 700; margin-bottom: 16px; letter-spacing: 0.5px; font-size: 13px; }
.kd-footer a.footer-link { color: rgba(255,255,255,0.65); font-size: 13px; display: block; margin-bottom: 8px; transition: color 0.2s; }
.kd-footer a.footer-link:hover { color: var(--gold); }
.kd-footer .footer-brand { color: white; font-size: 20px; font-weight: 800; }
.kd-footer .footer-tagline { color: var(--gold); font-size: 12px; margin-top: 4px; }
.kd-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 32px; padding-top: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.45); }
.kd-footer .social-icons { display: flex; gap: 12px; margin-top: 16px; }
.kd-footer .social-icon { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65); font-size: 14px; transition: all 0.2s; }
.kd-footer .social-icon:hover { border-color: var(--gold); color: var(--gold); }

/* ── ADMIN OVERRIDES ── */
.kd-admin-stat {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.kd-admin-stat.gold { border-left-color: var(--gold); }
.kd-admin-stat.green { border-left-color: #2E7D32; }
.kd-admin-stat.saffron { border-left-color: var(--saffron); }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .kd-dashboard { grid-template-columns: 1fr; }
  .kd-sidebar { position: static; height: auto; }
  .kd-chat-container { grid-template-columns: 1fr; }
  .kd-plan-card.popular { transform: none; }
}
@media (max-width: 767px) {
  .kd-section { padding: 40px 0; }
  .kd-section-title { font-size: 22px; }
  .kd-navbar { padding: 0 16px; }
  .kd-main-content { padding: 16px; }
}
@media (max-width: 575px) {
  .kd-stats-bar .kd-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 12px 0; }
  .kd-progress-steps { flex-wrap: wrap; gap: 12px; }
  .kd-progress-steps::before { display: none; }
}

/* ══════════════════════════════════════════════════
   KANYADAN — UTILITY CLASSES
══════════════════════════════════════════════════ */

/* Gradient backgrounds */
.kd-bg-primary   { background: var(--primary-gradient) !important; }
.kd-bg-dark      { background: var(--dark-gradient) !important; }
.kd-bg-gold      { background: var(--gold-gradient) !important; }
.kd-bg-cream     { background: var(--cream) !important; }
.kd-bg-white     { background: #fff !important; }

/* Typography utilities */
.kd-display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  line-height: 1.15;
}
.kd-body {
  font-family: var(--font-body);
  line-height: 1.6;
}
.kd-heading-xl  { font-size: var(--text-3xl); font-family: 'Playfair Display', serif; font-weight: 800; color: var(--text-dark); }
.kd-heading-lg  { font-size: var(--text-2xl); font-family: 'Playfair Display', serif; font-weight: 700; color: var(--text-dark); }
.kd-heading-md  { font-size: var(--text-xl);  font-family: 'Playfair Display', serif; font-weight: 700; color: var(--text-dark); }
.kd-heading-sm  { font-size: var(--text-lg);  font-family: 'Playfair Display', serif; font-weight: 700; color: var(--text-dark); }
.kd-text-muted  { color: var(--text-muted) !important; }
.kd-text-primary { color: var(--primary) !important; }
.kd-text-gold   { color: var(--gold) !important; }
.kd-text-dark   { color: var(--text-dark) !important; }

/* Spacing utilities */
.kd-mt-0  { margin-top: 0 !important; }
.kd-mb-sm { margin-bottom: var(--space-sm) !important; }
.kd-mb-md { margin-bottom: var(--space-md) !important; }
.kd-mb-lg { margin-bottom: var(--space-lg) !important; }
.kd-mb-xl { margin-bottom: var(--space-xl) !important; }
.kd-mt-sm { margin-top: var(--space-sm) !important; }
.kd-mt-md { margin-top: var(--space-md) !important; }
.kd-mt-lg { margin-top: var(--space-lg) !important; }
.kd-mt-xl { margin-top: var(--space-xl) !important; }
.kd-p-md  { padding: var(--space-md) !important; }
.kd-p-lg  { padding: var(--space-lg) !important; }
.kd-p-xl  { padding: var(--space-xl) !important; }
.kd-gap-sm { gap: var(--space-sm) !important; }
.kd-gap-md { gap: var(--space-md) !important; }
.kd-gap-lg { gap: var(--space-lg) !important; }

/* Profile / avatar utilities */
.kd-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cream-dark);
  display: block;
}
.kd-avatar-xs  { width: 28px; height: 28px; }
.kd-avatar-sm  { width: 40px; height: 40px; }
.kd-avatar-md  { width: 56px; height: 56px; }
.kd-avatar-lg  { width: 80px; height: 80px; }
.kd-avatar-xl  { width: 120px; height: 120px; }
.kd-avatar-wrap { position: relative; display: inline-block; }
.kd-avatar-ring {
  border: 3px solid var(--gold);
  padding: 2px;
  border-radius: 50%;
}

/* Photo card wrapper */
.kd-card-photo-wrap {
  position: relative;
  overflow: hidden;
  background: var(--cream-dark);
}
.kd-card-photo-wrap img, .kd-card-photo-wrap .kd-card-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.kd-card-photo-wrap:hover img { transform: scale(1.04); }
.kd-card-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--cream-dark), #f5e6d3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 48px;
}
.kd-card-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,0,0,.72) 0%, transparent 55%);
  opacity: 0;
  transition: var(--transition);
  display: flex; align-items: flex-end;
  padding: var(--space-sm) var(--space-sm);
  gap: var(--space-sm);
}
.kd-card-photo-wrap:hover .kd-card-photo-overlay { opacity: 1; }

/* Cover section (profile, family, auth header) */
.kd-cover {
  background: var(--dark-gradient);
  position: relative;
  overflow: hidden;
}
.kd-cover-hero {
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}

/* Divider utilities */
.kd-hr { border: none; border-top: 1px solid var(--border); margin: var(--space-lg) 0; }
.kd-hr-gold { border-top-color: rgba(212,160,23,.3); }

/* Interest / action row */
.kd-interest-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.kd-interest-item:hover { box-shadow: var(--shadow-md); }
.kd-interest-item .kd-avatar { flex-shrink: 0; }
.kd-interest-item-info { flex: 1; min-width: 0; }
.kd-interest-item-name { font-weight: 700; font-size: var(--text-md); color: var(--text-dark); margin-bottom: 2px; }
.kd-interest-item-meta { font-size: var(--text-sm); color: var(--text-muted); }
.kd-interest-item-actions { display: flex; gap: var(--space-sm); flex-shrink: 0; }

/* Sort bar */
.kd-sort-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

/* Filter sidebar */
.kd-filter-sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  position: sticky;
  top: 80px;
}
.kd-filter-section { margin-bottom: var(--space-lg); }
.kd-filter-section:last-child { margin-bottom: 0; }
.kd-filter-title {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.kd-filter-title i { color: var(--primary); }

/* Profile cover system */
.kd-profile-cover {
  height: 220px;
  background: var(--dark-gradient);
  position: relative;
  overflow: hidden;
}
.kd-profile-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.5) 100%);
}
.kd-profile-avatar-wrap {
  position: absolute;
  bottom: -56px;
  left: 32px;
}
.kd-profile-avatar-ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 5px solid #fff;
  object-fit: cover;
  background: var(--cream-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

/* Chat page layout */
.kd-chat-page { height: calc(100vh - 62px); display: flex; flex-direction: column; }
.kd-chat-header {
  padding: var(--space-md) var(--space-lg);
  background: var(--primary-gradient);
  color: #fff;
  display: flex; align-items: center; gap: var(--space-md);
  flex-shrink: 0;
}
.kd-chat-header-name { font-weight: 700; font-size: var(--text-md); }
.kd-chat-header-status { font-size: var(--text-sm); opacity: .8; }
.kd-chat-search {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

/* Spinner utility */
.kd-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 3px solid rgba(139,0,0,.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: kd-spin .7s linear infinite;
  vertical-align: middle;
}
.kd-spinner-white {
  border-color: rgba(255,255,255,.3);
  border-top-color: #fff;
}
@keyframes kd-spin { to { transform: rotate(360deg); } }

/* Onboarding step system */
.kd-ob-wrap { font-family: var(--font-body); }
.kd-ob-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.kd-ob-step-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}
.kd-ob-section-title {
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.kd-ob-section-title i { font-size: 14px; }
.kd-hobby-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: var(--text-sm); font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff; color: var(--text-body);
  cursor: pointer; transition: var(--transition);
}
.kd-hobby-chip.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.kd-photo-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  background: var(--cream);
  cursor: pointer;
  transition: var(--transition);
}
.kd-photo-upload:hover {
  border-color: var(--primary);
  background: rgba(139,0,0,.04);
}

/* Profile page tab system */
.kd-pf-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-xl);
}
.kd-pf-tab {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base); font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: var(--transition);
  display: flex; align-items: center; gap: 7px;
}
.kd-pf-tab:hover { color: var(--primary); }
.kd-pf-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

/* Profile detail grid */
.kd-pf-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}
.kd-pf-detail-row {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  padding: 10px var(--space-sm);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: var(--text-sm);
}
.kd-pf-detail-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 14px; flex-shrink: 0;
}
.kd-pf-detail-label { font-size: 10.5px; color: var(--text-muted); }
.kd-pf-detail-value { font-size: var(--text-sm); font-weight: 600; color: var(--text-dark); }

/* Family portal */
.kd-family-banner {
  background: var(--primary-gradient);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  color: #fff;
  margin-bottom: var(--space-lg);
}
.kd-family-code-box {
  background: rgba(255,255,255,.12);
  border: 1px dashed rgba(255,255,255,.4);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-lg); font-weight: 800;
  color: #fff; letter-spacing: 4px; text-align: center;
  margin: var(--space-md) 0;
}
.kd-family-session-row {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: var(--space-sm);
}
