/* SplitSphere Main CSS */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --bg: #0A0B14;
  --bg-2: #111220;
  --bg-3: #181929;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --primary: #6C63FF;
  --primary-light: #8B84FF;
  --primary-glow: rgba(108,99,255,0.25);
  --accent: #FF6B9D;
  --accent-2: #00D2B4;
  --accent-3: #FFB84D;

  --text: #F0F0FF;
  --text-2: #9999BB;
  --text-3: #5C5C7A;

  --success: #00D2B4;
  --warning: #FFB84D;
  --danger: #FF5C7A;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.3);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --navbar-height: 70px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,157,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
button, input, select, textarea { font-family: var(--font-body); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--navbar-height);
  background: rgba(10,11,20,0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(10,11,20,0.97); }
.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
}
.brand-icon { font-size: 1.5rem; }
.brand-name { letter-spacing: -0.02em; }
.nav-links {
  /* Desktop: float into the navbar row via fixed positioning */
  position: fixed;
  top: 0; right: 24px;
  height: var(--navbar-height);
  z-index: 1001;          /* above navbar (1000) — no stacking-context conflict */
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  color: var(--text-2); font-size: 0.9rem; font-weight: 500;
  padding: 6px 14px; border-radius: 8px;
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }
.nav-user {
  display: flex; align-items: center; gap: 8px;
  position: relative; cursor: pointer;
  padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
}
.nav-user:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.user-name { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.badge-pro {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #000; font-size: 0.6rem; font-weight: 700;
  padding: 2px 6px; border-radius: 5px; letter-spacing: 0.05em;
}
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 6px;
  min-width: 160px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.nav-user:hover .user-dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.user-dropdown a {
  color: var(--text-2); font-size: 0.85rem; padding: 8px 12px;
  border-radius: 7px; transition: all var(--transition);
  display: block;
}
.user-dropdown a:hover { color: var(--text); background: var(--bg-card-hover); }
.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 8px;
  border-radius: 8px; transition: all var(--transition);
  min-width: 48px; min-height: 48px;
}
.nav-toggle:hover { background: var(--bg-card); }
.nav-toggle span {
  display: block; width: 24px; height: 3px;
  background: var(--text-2); border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
/* Hide mobile-only elements on desktop */
.nav-link-icon          { display: none; }
.nav-mob-account,
.nav-mob-cta            { display: none; }

.nav-overlay { display: none; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none; white-space: nowrap; position: relative; overflow: hidden;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background var(--transition);
}
.btn:hover:not(:disabled)::after { background: rgba(255,255,255,0.06); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 28px var(--primary-glow); }
.btn-ghost {
  background: var(--bg-card); color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--border-strong); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #000; font-weight: 700; }
.btn-pro {
  background: linear-gradient(135deg, #FFB84D, #FF6B9D);
  color: #000; font-weight: 700;
}
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; width: 40px; height: 40px; }

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.form-control {
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: var(--font-body);
  transition: all var(--transition); outline: none;
  width: 100%;
}
.form-control:focus {
  border-color: var(--primary); background: var(--bg-2);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control::placeholder { color: var(--text-3); }
.form-control option { background: var(--bg-2); }
.form-hint { font-size: 0.78rem; color: var(--text-3); }
.form-error { font-size: 0.78rem; color: var(--danger); }
.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-group .input-prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 1rem; pointer-events: none;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative; overflow: hidden;
  transition: all var(--transition);
}
.card:hover { border-color: var(--border-strong); }
.card-glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
}
.card-glow::before {
  content: ''; position: absolute; top: -1px; left: 20%; right: 20%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.card-header { margin-bottom: 20px; }
.card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.card-subtitle { color: var(--text-2); font-size: 0.85rem; margin-top: 4px; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.page-wrapper { padding-top: calc(var(--navbar-height) + 40px); padding-bottom: 80px; }
.page-header { margin-bottom: 40px; }
.page-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
}
.page-subtitle { color: var(--text-2); margin-top: 10px; font-size: 1rem; }
.section-title {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}

/* ===== GRID ===== */
.grid { display: grid; gap: 20px; }
.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: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: calc(var(--navbar-height) + 60px) 0 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(108,99,255,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,107,157,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(0,210,180,0.07) 0%, transparent 40%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.04;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; color: var(--primary-light);
  margin-bottom: 24px; letter-spacing: 0.04em;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { color: var(--text-2); font-size: 1.15rem; max-width: 520px; line-height: 1.7; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { color: var(--text-3); font-size: 0.8rem; }

/* ===== FEATURES ===== */
.features-section { padding: 100px 0; position: relative; }
.feature-card {
  padding: 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--primary); transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--primary-glow);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
  background: var(--bg-3); border: 1px solid var(--border);
}
.feature-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.feature-desc { color: var(--text-2); font-size: 0.88rem; line-height: 1.6; }

/* ===== GROUP CARD ===== */
.group-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; color: var(--text); display: block;
  position: relative; overflow: hidden;
}
.group-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.group-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-card); color: var(--text); }
.group-card:hover::before { transform: scaleX(1); }
.group-emoji { font-size: 2.5rem; margin-bottom: 14px; }
.group-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.group-meta { color: var(--text-3); font-size: 0.82rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.group-amount { font-size: 1.6rem; font-weight: 700; font-family: var(--font-display); margin-top: 16px; }
.group-amount.positive { color: var(--success); }
.group-amount.negative { color: var(--danger); }
.group-amount.neutral { color: var(--text-2); }

/* ===== PARTICIPANTS ===== */
.participant-avatars { display: flex; margin-top: 14px; }
.participant-avatars .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; margin-left: -8px; position: relative;
}
.participant-avatars .avatar:first-child { margin-left: 0; }
.avatar-more {
  background: var(--bg-3); color: var(--text-2); font-size: 0.7rem; font-weight: 600;
}

/* ===== EXPENSE LIST ===== */
.expense-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  -webkit-user-select: none; user-select: none;
}

.flex-col {
    display: flex;
    flex-direction: column;
}
.expense-item:last-child { border-bottom: none; }
.expense-item:hover { background: var(--bg-card); margin: 0 -20px; padding: 14px 20px; border-radius: var(--radius-sm); }
.expense-cat-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
  background: var(--bg-3); border: 1px solid var(--border);
}
.expense-info { flex: 1; min-width: 0; }
.expense-desc { font-weight: 500; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.expense-meta { color: var(--text-3); font-size: 0.78rem; margin-top: 2px; }
.expense-amount { text-align: right; flex-shrink: 0; }
.expense-total { font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; }
.expense-share { color: var(--text-3); font-size: 0.78rem; margin-top: 2px; }
.expense-share.owed { color: var(--danger); }
.expense-share.paid { color: var(--success); }

/* ===== BALANCE / SETTLEMENT ===== */
.balance-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 12px;
}
.settlement-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--border);
  margin-bottom: 10px;
}
.settlement-from, .settlement-to {
  display: flex; align-items: center; gap: 8px; flex: 1;
}
.settlement-arrow { color: var(--primary-light); font-size: 1.2rem; }
.settlement-amount {
  font-weight: 700; font-family: var(--font-display); color: var(--accent-3);
  white-space: nowrap;
}
.settle-btn { margin-left: auto; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; background: var(--bg-3); padding: 4px; border-radius: var(--radius-sm); margin-bottom: 28px; }
.tab-btn {
  flex: 1; padding: 9px 16px; border: none; background: none;
  color: var(--text-2); font-size: 0.88rem; font-weight: 500;
  cursor: pointer; border-radius: 8px; transition: all var(--transition);
  font-family: var(--font-body);
}
.tab-btn.active { background: var(--bg-card-hover); color: var(--text); box-shadow: var(--shadow-card); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 32px;
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition);
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.modal-close {
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text-2);
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-card-hover); color: var(--text); }

/* ===== SPLIT OPTIONS ===== */
.split-options { display: flex; gap: 8px; margin-bottom: 16px; }
.split-option {
  flex: 1; padding: 10px 8px; border: 1px solid var(--border);
  background: var(--bg-3); color: var(--text-2);
  border-radius: var(--radius-sm); cursor: pointer; text-align: center;
  font-size: 0.82rem; font-weight: 500; transition: all var(--transition);
  font-family: var(--font-body);
}
.split-option.active { border-color: var(--primary); color: var(--primary-light); background: var(--primary-glow); }

/* ===== PARTICIPANT SELECTOR ===== */
.participant-toggle-list { display: flex; flex-direction: column; gap: 6px; }
.participant-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-3);
  cursor: pointer; transition: all var(--transition);
  user-select: none;
}
.participant-toggle.selected { border-color: var(--primary); background: var(--primary-glow); }
.participant-toggle .avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.participant-toggle .p-name { flex: 1; font-size: 0.9rem; font-weight: 500; }
.participant-toggle .p-share { color: var(--text-2); font-size: 0.85rem; }
.p-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; transition: all var(--transition); }
.participant-toggle.selected .p-check { background: var(--primary); border-color: var(--primary); }

/* ===== ALERTS & TOASTS ===== */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 0.9rem; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-error { background: rgba(255,92,122,0.1); border: 1px solid rgba(255,92,122,0.3); color: #FF8FA3; }
.alert-success { background: rgba(0,210,180,0.1); border: 1px solid rgba(0,210,180,0.3); color: #00D2B4; }
.alert-info { background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.3); color: var(--primary-light); }
.alert-warning { background: rgba(255,184,77,0.1); border: 1px solid rgba(255,184,77,0.3); color: var(--accent-3); }

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 14px 20px;
  box-shadow: var(--shadow); min-width: 260px;
  display: flex; align-items: center; gap: 10px; font-size: 0.9rem;
  transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { transform: translateX(0); }
.toast-icon { font-size: 1.1rem; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--primary); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 600;
}
.badge-primary { background: var(--primary-glow); color: var(--primary-light); border: 1px solid var(--primary); }
.badge-success { background: rgba(0,210,180,0.1); color: var(--success); border: 1px solid rgba(0,210,180,0.3); }
.badge-danger { background: rgba(255,92,122,0.1); color: var(--danger); border: 1px solid rgba(255,92,122,0.3); }
.badge-neutral { background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 60px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.empty-icon { font-size: 4rem; opacity: 0.4; }
.empty-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-2); }
.empty-desc { color: var(--text-3); font-size: 0.9rem; max-width: 300px; line-height: 1.6; }

/* ===== PRICING ===== */
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  position: relative; transition: all var(--transition);
}
.pricing-card.featured {
  border-color: var(--primary); background: rgba(108,99,255,0.07);
  box-shadow: 0 0 0 1px var(--primary), 0 20px 60px var(--primary-glow);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; padding: 4px 16px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.pricing-plan { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin: 20px 0; }
.pricing-amount { font-family: var(--font-display); font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.pricing-period { color: var(--text-2); font-size: 0.9rem; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-2); }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; font-size: 0.85rem; }
.pricing-features li.disabled { color: var(--text-3); }
.pricing-features li.disabled::before { content: '✕'; color: var(--text-3); }

/* ===== PROGRESS ===== */
.progress { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.5s; }

/* ===== COMMENT ===== */
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-author { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.comment-text { font-size: 0.9rem; color: var(--text-2); line-height: 1.5; }
.comment-time { font-size: 0.75rem; color: var(--text-3); margin-top: 4px; }

/* ===== OTP / LOGIN ===== */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.otp-input {
  width: 50px; height: 58px; text-align: center;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  background: var(--bg-3); border: 2px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  outline: none; transition: all var(--transition);
}
.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.divider-text {
  text-align: center; position: relative; margin: 24px 0; color: var(--text-3); font-size: 0.82rem;
}
.divider-text::before, .divider-text::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 30px);
  height: 1px; background: var(--border);
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* ===== SHARE LINK ===== */
.share-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
}
.share-link { flex: 1; font-size: 0.85rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
  background: var(--primary-glow); border: 1px solid var(--primary);
  color: var(--primary-light); padding: 6px 14px; border-radius: 7px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all var(--transition); font-family: var(--font-body);
}
.copy-btn:hover { background: var(--primary); color: #fff; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 60px; flex-wrap: wrap; padding-bottom: 40px;
}
.footer-brand { max-width: 240px; }
.footer-brand .brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.footer-brand p { color: var(--text-3); font-size: 0.85rem; margin-top: 10px; line-height: 1.6; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; flex: 1; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.footer-col a { color: var(--text-3); font-size: 0.88rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 24px; text-align: center;
  color: var(--text-3); font-size: 0.82rem;
}

/* ===== LOADING ===== */
.spinner {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-card-hover) 50%, var(--bg-3) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm); color: transparent;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 768px) {

  /* ── Full-screen slide-in overlay ── */
  .nav-links {
    position: fixed;
    top: var(--navbar-height); left: 0; right: 0; bottom: 0;
    height: auto;           /* override desktop height: var(--navbar-height) */
    background: var(--bg);
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    will-change: transform;
    /* safe area for notch phones */
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }
  .nav-links.open { transform: translateX(0); }

  /* ── Nav link rows ── */
  .nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    height: 64px;
    min-height: 64px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, color 0.15s;
  }
  .nav-link:first-of-type { border-top: 1px solid var(--border); margin-top: 12px; }
  .nav-link:hover, .nav-link:active { background: var(--bg-card); color: var(--text); }

  /* ── Nav link icon bubble ── */
  .nav-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.15rem;
    flex-shrink: 0;
  }

  /* ── Hide desktop-only elements ── */
  .nav-desktop-only { display: none !important; }

  /* ── Account card (subscribed users) ── */
  .nav-mob-account {
    display: flex;
    flex-direction: column;
    margin: 20px 16px 8px;
    background: var(--bg-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .nav-mob-pro-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    color: var(--accent-3);
    background: linear-gradient(135deg, rgba(255,184,77,0.1), rgba(255,107,157,0.08));
    border-bottom: 1px solid var(--border);
  }
  .nav-mob-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    min-height: 52px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, color 0.15s;
  }
  .nav-mob-item:last-child { border-bottom: none; }
  .nav-mob-item:hover, .nav-mob-item:active { background: var(--bg-card-hover); color: var(--text); }
  .nav-mob-item.danger { color: #FF8FA3; }
  .nav-mob-item.danger:hover, .nav-mob-item.danger:active {
    background: rgba(255,92,122,0.08);
    color: var(--danger);
  }

  /* ── Go Pro CTA (non-subscribed) ── */
  .nav-mob-cta {
    display: block;
    padding: 20px 16px 12px;
    margin-top: 8px;
  }
  .nav-mob-gopro {
    font-size: 1rem !important;
    padding: 16px 24px !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 6px 24px rgba(255,107,157,0.25);
  }
  .nav-mob-cta-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-3);
    margin-top: 10px;
    line-height: 1.5;
  }

  /* ── Hamburger → X animation ── */
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

  /* ── Backdrop overlay ── */
  .nav-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-overlay.open { opacity: 1; pointer-events: all; }

  /* ── Layout ── */
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero-stats { gap: 24px; }
  .footer-container { flex-direction: column; gap: 40px; }
}

/* ===== MOBILE-FIRST OPTIMIZATIONS ===== */

/* Remove tap highlight on interactive elements */
a, button, [role="button"], .participant-toggle, .tab-btn, .split-option, .group-card {
  -webkit-tap-highlight-color: transparent;
}

/* Minimum touch target sizes */
.btn { min-height: 44px; }
.btn-sm { min-height: 38px; }
.tab-btn { min-height: 40px; }
.nav-toggle { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }

/* ===== TABLET & MOBILE (≤768px) ===== */
@media (max-width: 768px) {
  /* Containers */
  .container, .container-sm, .container-md { padding: 0 16px; }
  .nav-container { padding: 0 16px; }

  /* Page spacing */
  .page-wrapper { padding-top: calc(var(--navbar-height) + 24px); padding-bottom: 88px; }
  .page-header { margin-bottom: 24px; }

  /* Hero */
  .hero { min-height: auto; padding: calc(var(--navbar-height) + 40px) 0 56px; }
  .hero-desc { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { margin-top: 40px; gap: 20px; }

  /* Cards */
  .card { padding: 16px; }
  .pricing-card { padding: 24px 18px; }

  /* Tabs — horizontal scroll, no wrap */
  .tabs {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; flex-wrap: nowrap;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; flex: none; font-size: 0.82rem; padding: 8px 14px; }

  /* Modal — bottom sheet */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-width: 100%;
    max-height: 92vh;
    padding: 20px 20px 32px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .modal::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: var(--border-strong);
    border-radius: 2px;
    margin: 0 auto 18px;
  }
  .modal-overlay.open .modal { transform: translateY(0) scale(1); }

  /* Toasts — full-width from bottom */
  .toast-container { bottom: 16px; left: 16px; right: 16px; align-items: stretch; }
  .toast { min-width: auto; transform: translateY(140%); }
  .toast.show { transform: translateY(0); }

  /* Settlement items — wrap on mobile */
  .settlement-item { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
  .settlement-from, .settlement-to { flex: none; }
  .settlement-amount { order: -1; width: 100%; font-size: 1.1rem; margin-bottom: 2px; }
  .settle-btn { width: 100%; margin-left: 0; }

  /* Share box — stack */
  .share-box { flex-wrap: wrap; gap: 8px; }
  .copy-btn { width: 100%; text-align: center; padding: 10px; }

  /* Split options — 2 per row */
  .split-options { flex-wrap: wrap; }
  .split-option { min-width: calc(50% - 4px); text-align: center; }

  /* OTP inputs */
  .otp-inputs { gap: 8px; }
  .otp-input { width: 46px; height: 54px; font-size: 1.4rem; }

  /* Footer */
  .footer-links { flex-direction: column; gap: 28px; }
  .footer-container { gap: 32px; padding: 0 16px 32px; }
  .site-footer { padding: 40px 0 0; }

  /* Sections */
  .features-section { padding: 60px 0; }
  .section-alt { padding: 56px 0 !important; }

  /* Balance card */
  .balance-card { padding: 14px; }

  /* Group page — header action buttons */
  .group-actions-bar { flex-wrap: wrap; }
  .group-actions-bar .btn { flex: 1; min-width: 90px; justify-content: center; }

  /* Group page — participant summary: horizontal scroll strip */
  .group-summary-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 4px;
  }
  .group-summary-grid::-webkit-scrollbar { display: none; }
  .group-summary-grid .card { min-width: 130px; flex-shrink: 0; }

  /* Group page — comments form stack */
  .comments-form { flex-direction: column !important; gap: 10px !important; align-items: stretch !important; }
  .comments-form select { width: 100% !important; }

  /* Prevent iOS input zoom (requires 16px+) */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="number"],
  input[type="date"],
  input[type="password"],
  select,
  textarea { font-size: 16px; }
}

/* ===== SMALL PHONES (≤480px) ===== */
@media (max-width: 480px) {
  :root { --navbar-height: 60px; }

  .nav-brand { font-size: 1.2rem; }
  .brand-icon { font-size: 1.3rem; }

  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-stat-num { font-size: 1.6rem; }

  .btn-lg { padding: 12px 22px; font-size: 0.95rem; }

  .section-title { font-size: 1.05rem; }

  .empty-state { padding: 40px 16px; }
  .empty-icon { font-size: 3rem; }

  /* Expense item — stack action buttons vertically */
  .expense-actions { flex-direction: column; gap: 4px; }
}

/* ===== FLOATING ACTION BUTTON ===== */
.fab-add { display: none; }

@media (max-width: 768px) {
  .fab-add {
    display: flex;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 56px;
    padding: 14px 22px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 8px 28px var(--primary-glow), 0 2px 8px rgba(0,0,0,0.4);
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
  }
  .fab-add:active { transform: scale(0.94); color: #fff; }
  .fab-add:hover { color: #fff; transform: translateY(-2px); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.animate-fadeup { animation: fadeUp 0.5s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-2); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-primary { color: var(--primary-light); }
.font-bold { font-weight: 700; }
.font-display { font-family: var(--font-display); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rounded-full { border-radius: 50%; }

/* ===== AD UNITS ===== */
.ad-unit {
  text-align: center;
  padding: 12px 0;
  position: relative;
}
.ad-unit + .ad-unit { margin-top: 0; }
.ad-label {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 6px;
  user-select: none;
}
.ad-body { display: flex; justify-content: center; align-items: center; min-height: 50px; }
.ad-body ins, .ad-body iframe, .ad-body > * { max-width: 100%; }

/* Divider-style wrapper around ads so they don't blend with content */
.ad-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 12px 0;
  margin: 24px 0;
}
.ad-section .ad-unit { padding: 4px 0; }

/* Top-banner strip (slightly different background so it's visually distinct) */
.ad-banner-top {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  text-align: center;
  margin-bottom: 28px;
}

/* Footer banner strip */
.ad-banner-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 10px 0;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 0;
}

/* ===== STICKY MOBILE AD ===== */
.ad-sticky-wrap {
  display: none; /* shown only on mobile */
}
@media (max-width: 768px) {
  .ad-sticky-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 850;
    background: var(--bg-2);
    border-top: 1px solid var(--border-strong);
    padding: 6px 8px 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  }
  .ad-sticky-wrap .ad-unit { padding: 0; }
  .ad-sticky-close {
    position: absolute;
    top: 4px; right: 8px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text-3);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.72rem;
    cursor: pointer;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
  }
  .ad-sticky-close:hover { color: var(--text); }
  /* Lift the FAB above the sticky ad */
  .has-sticky-ad .fab-add { bottom: calc(24px + 72px); }
  /* Add bottom breathing room to page content */
  .has-sticky-ad .page-wrapper { padding-bottom: calc(88px + 72px); }
}

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

/* Toggle switch */
.ad-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}
.ad-toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ad-toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.ad-toggle-knob {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  transition: background var(--transition);
  cursor: pointer;
}
.ad-toggle-knob::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--text-3);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}
.ad-toggle-switch input:checked + .ad-toggle-knob {
  background: var(--primary);
  border-color: var(--primary);
}
.ad-toggle-switch input:checked + .ad-toggle-knob::after {
  transform: translateX(20px);
  background: #fff;
}

/* Sticky save bar */
.ad-save-bar {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  z-index: 100;
}
@media (max-width: 600px) {
  .ad-save-bar { flex-direction: column; align-items: stretch; }
  .ad-save-bar .btn { width: 100%; }
}

/* ── FAQ section ──────────────────────────────────────────────────────────── */
.faq-list { width: 100%; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
  color: var(--text);
}
.faq-a {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.4; }


.mt-40{
  margin-top: 40px;
}