/* ============================================
   SplitBuddy — Custom Styles
   Works with Bootstrap 5.3 + Bootstrap Icons
   ============================================ */

:root {
  --brand-purple: #7C3AED;
  --brand-indigo: #4F46E5;
  --brand-cyan: #06B6D4;
  --brand-emerald: #10B981;
  --brand-orange: #F97316;
  --brand-pink: #EC4899;
  --brand-rose: #F43F5E;
  --brand-amber: #F59E0B;

  --bg: #fafafa;
  --bg-soft: #f5f5f7;
  --fg: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --shadow-soft: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.04);
  --shadow-card: 0 2px 4px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.06);
  --shadow-glow: 0 8px 32px rgba(124,58,237,0.25);
}

[data-theme="dark"] {
  --bg: #0a0f1e;
  --bg-soft: #0f172a;
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --border: #1e293b;
  --card-bg: #111827;
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-card: 0 2px 4px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ================= Brand Colors ================= */
.text-brand { color: var(--brand-purple) !important; }
.bg-brand { background: var(--brand-purple) !important; color: #fff !important; }

.gradient-text {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo));
}

.gradient-bg-cyan {
  background: linear-gradient(135deg, var(--brand-indigo), var(--brand-cyan));
}

.gradient-bg-sunset {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
}

.mesh-bg {
  background:
    radial-gradient(at 0% 0%, rgba(124,58,237,0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6,182,212,0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236,72,153,0.10) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(79,70,229,0.12) 0px, transparent 50%),
    var(--bg);
}

/* ================= Buttons ================= */
.btn-brand {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo));
  color: #fff !important;
  border: none;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 14px;
  transition: all 0.2s;
  box-shadow: var(--shadow-soft);
}
.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.btn-soft {
  background: var(--card-bg);
  color: var(--fg) !important;
  border: 1px solid var(--border);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 14px;
  transition: all 0.2s;
}
.btn-soft:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple) !important;
}

.btn-sunset {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
  color: #fff !important;
  border: none;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 14px;
}

.btn-rounded-pill {
  border-radius: 999px;
}

/* ================= Cards ================= */
.card-clean {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s;
}
.card-clean:hover {
  box-shadow: var(--shadow-card);
}

.card-glow {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

/* ================= Inputs ================= */
.form-control, .form-select {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  font-size: 0.95rem;
  color: var(--fg);
  transition: all 0.2s;
}
.form-control:focus, .form-select:focus {
  background: var(--card-bg);
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
  color: var(--fg);
}
.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* ================= Navbar (Landing) ================= */
.navbar-landing {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}
[data-theme="dark"] .navbar-landing {
  background: rgba(10,15,30,0.75);
}

.logo-square {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo), var(--brand-cyan));
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.brand-text {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--fg);
  text-decoration: none;
}

/* ================= Hero ================= */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.1));
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--brand-purple);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ================= Phone Mockup ================= */
.phone-mockup {
  width: 280px;
  height: 560px;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 30px 60px rgba(124,58,237,0.3), 0 10px 30px rgba(0,0,0,0.15);
  margin: 0 auto;
  position: relative;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  padding: 1.2rem 1rem;
  position: relative;
}

.preview-balance-card {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo));
  color: #fff;
  border-radius: 18px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.preview-balance-card .label {
  font-size: 0.75rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.preview-balance-card .amount {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.preview-group-row {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 0.7rem;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--border);
}
.preview-group-row .emoji {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.preview-group-row .name {
  flex: 1;
  font-weight: 600;
  font-size: 0.85rem;
}
.preview-group-row .amt {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--brand-purple);
}

/* ================= Feature Cards ================= */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(124,58,237,0.2);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ================= Section ================= */
.section {
  padding: 4rem 0;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 0.6rem;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ================= How it Works Step ================= */
.step-card {
  text-align: center;
  padding: 1.5rem;
}
.step-num {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo));
  color: #fff;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-glow);
}

/* ================= Testimonials ================= */
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  height: 100%;
}
.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 0.8rem;
}
.testimonial-text {
  color: var(--fg);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
}
.testimonial-role {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ================= FAQ ================= */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-question {
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.faq-answer {
  padding: 0 1.3rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question .bi-plus-lg { transform: rotate(45deg); }
.faq-question .bi-plus-lg { transition: transform 0.25s; }

/* ================= Footer ================= */
.footer-cta {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo), var(--brand-cyan));
  border-radius: 28px;
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  margin: 3rem 0;
}
.footer-cta h2 { color: #fff; }
.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

/* ================= APP LAYOUT (logged in) ================= */
.app-shell { min-height: 100vh; padding-bottom: 80px; }
@media (min-width: 992px) {
  .app-shell { padding-bottom: 1rem; padding-left: 240px; }
}

/* Sidebar (desktop) */
.app-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 240px;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  padding: 1.2rem;
  display: none;
  z-index: 100;
}
@media (min-width: 992px) {
  .app-sidebar { display: flex; flex-direction: column; }
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
  transition: all 0.15s;
}
.sidebar-link:hover {
  background: var(--bg-soft);
  color: var(--fg);
}
.sidebar-link.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(79,70,229,0.1));
  color: var(--brand-purple);
}
.sidebar-link i { font-size: 1.15rem; }

/* Mobile bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0.25rem;
  display: flex;
  justify-content: space-around;
  z-index: 100;
}
@media (min-width: 992px) {
  .bottom-nav { display: none; }
}
.bottom-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.5rem 0.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 12px;
}
.bottom-nav-link i { font-size: 1.3rem; }
.bottom-nav-link.active {
  color: var(--brand-purple);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 992px) {
  .app-topbar { background: transparent; border-bottom: none; padding: 1.5rem 2rem; }
}
.app-content {
  padding: 1.2rem;
  max-width: 1200px;
  margin: 20px auto;
}
@media (min-width: 992px) {
  .app-content { padding: 0 2rem 2rem; }
}

/* Avatar */
.avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo));
  overflow: hidden;
  position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; font-size: 0.7rem; }
.avatar-md { width: 40px; height: 40px; font-size: 0.85rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.6rem; }

.avatar-stack { display: inline-flex; }
.avatar-stack .avatar:not(:first-child) { margin-left: -10px; border: 2px solid var(--card-bg); }

/* Stat cards */
.stat-card {
  border-radius: 22px;
  padding: 1.2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 110px;
}
.stat-card .stat-label {
  font-size: 0.78rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.stat-card .stat-value {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  margin-top: 0.25rem;
}
.stat-card .stat-icon {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.stat-purple { background: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo)); }
.stat-rose { background: linear-gradient(135deg, #F43F5E, #EC4899); }
.stat-emerald { background: linear-gradient(135deg, #10B981, #059669); }
.stat-orange { background: linear-gradient(135deg, #F97316, #EA580C); }

/* Group card */
.group-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--fg);
  display: block;
}
.group-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: var(--fg);
}
.group-icon-lg {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.group-card-dashed {
  background: transparent;
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 1.1rem;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}
.group-card-dashed:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  background: rgba(124,58,237,0.03);
}

/* Expense row */
.expense-row {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.15s;
}
.expense-row:hover {
  border-color: var(--brand-purple);
  transform: translateX(3px);
}
.expense-cat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.expense-title { font-weight: 600; font-size: 0.92rem; margin: 0; }
.expense-meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.expense-amt { font-weight: 700; font-size: 0.95rem; }
.expense-status { font-size: 0.72rem; font-weight: 700; margin-top: 2px; }
.expense-status.lent { color: var(--brand-emerald); }
.expense-status.owe { color: var(--brand-rose); }

/* Category color helpers */
.cat-food { background: linear-gradient(135deg, #F97316, #EF4444); }
.cat-travel { background: linear-gradient(135deg, #06B6D4, #3B82F6); }
.cat-rent { background: linear-gradient(135deg, #7C3AED, #4F46E5); }
.cat-fuel { background: linear-gradient(135deg, #F59E0B, #F97316); }
.cat-shopping { background: linear-gradient(135deg, #EC4899, #F43F5E); }
.cat-entertainment { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.cat-utilities { background: linear-gradient(135deg, #EAB308, #F59E0B); }
.cat-medical { background: linear-gradient(135deg, #F43F5E, #EF4444); }
.cat-other { background: linear-gradient(135deg, #64748B, #475569); }

/* FAB */
.fab {
  position: fixed;
  bottom: 90px; right: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo));
  color: #fff;
  border: none;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(124,58,237,0.4);
  z-index: 99;
  transition: all 0.2s;
}
.fab:hover { transform: scale(1.08); }
@media (min-width: 992px) {
  .fab { bottom: 30px; right: 30px; }
}

/* Modal customization */
.modal-content {
  background: var(--card-bg);
  color: var(--fg);
  border-radius: 22px;
  border: 1px solid var(--border);
}
.modal-header { border-bottom: 1px solid var(--border); padding: 1.2rem 1.5rem; }
.modal-body { padding: 1.5rem; }
.modal-footer { border-top: 1px solid var(--border); padding: 1rem 1.5rem; }
.modal-title { font-family: 'Sora', sans-serif; font-weight: 700; }

/* Chip / pill button */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--brand-purple); }
.chip.active {
  background: var(--brand-purple);
  color: #fff;
  border-color: var(--brand-purple);
}

/* Category picker grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.cat-tile {
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0.7rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.cat-tile.active {
  border-color: var(--brand-purple);
  background: rgba(124,58,237,0.08);
}
.cat-tile .tile-icon {
  width: 36px; height: 36px; border-radius: 10px;
  margin: 0 auto 0.3rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.cat-tile .tile-name { font-size: 0.72rem; font-weight: 600; }

/* Emoji picker grid (groups) */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
}
.emoji-tile {
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  font-size: 1.2rem;
  cursor: pointer;
}
.emoji-tile.active { border-color: var(--brand-purple); background: rgba(124,58,237,0.1); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}
.empty-state-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.1));
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.empty-state h3 { margin-bottom: 0.4rem; }
.empty-state p { color: var(--muted); max-width: 320px; margin: 0 auto 1.2rem; }

/* Member tag */
.member-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem 0.25rem 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.2rem;
}
.member-tag .remove {
  cursor: pointer;
  color: var(--brand-rose);
  font-size: 1rem;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
}

/* Toast */
.toast-container-fixed {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}
.toast-item {
  background: #0f172a;
  color: #fff;
  padding: 0.8rem 1.3rem;
  border-radius: 14px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: slideDown 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.toast-item.success { background: linear-gradient(135deg, #10B981, #059669); }
.toast-item.error { background: linear-gradient(135deg, #F43F5E, #DC2626); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }
.fade-up-d1 { animation: fadeUp 0.4s ease 0.05s both; }
.fade-up-d2 { animation: fadeUp 0.4s ease 0.1s both; }
.fade-up-d3 { animation: fadeUp 0.4s ease 0.15s both; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floating { animation: float 4s ease-in-out infinite; }

/* Progress bars (analytics) */
.progress-thin {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.progress-thin-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-indigo));
}

/* Tabs */
.tab-nav {
  display: flex;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.2rem;
}
.tab-nav button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.55rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.tab-nav button.active {
  background: var(--card-bg);
  color: var(--brand-purple);
  box-shadow: var(--shadow-soft);
}

/* QR code container */
.qr-box {
  background: #fff;
  padding: 1rem;
  border-radius: 16px;
  display: inline-block;
}

/* Settlement card */
.settlement-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(6,182,212,0.08));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.6rem;
}

/* Switch (toggle) */
.theme-toggle {
  width: 56px;
  height: 30px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--card-bg);
  border-radius: 50%;
  top: 3px; left: 3px;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s;
}
.theme-toggle.dark::after {
  left: 28px;
  background: var(--brand-purple);
}

/* Utility */
.text-muted2 { color: var(--muted); }
.no-decoration { text-decoration: none; }
hr { border-color: var(--border); opacity: 0.5; }

/* Responsive helpers */
@media (max-width: 575px) {
  .hero { padding: 3rem 0; }
  .stat-card { min-height: 90px; padding: 0.9rem; }
  .stat-card .stat-value { font-size: 1.3rem; }
  .section { padding: 3rem 0; }
}
