@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

:root {
  --primary: #4a6fa5;
  --primary-light: #6b8fc7;
  --primary-dark: #1e293b;
  --primary-glow: rgba(74, 111, 165, 0.22);
  --secondary: #d97706;
  --secondary-deep: #b45309;
  --secondary-soft: rgba(217, 119, 6, 0.12);
  --ivory: #fafafa;
  --surface: #f8f9fb;
  --surface-elevated: #ffffff;
  --glass: rgba(255, 255, 255, 0.92);
  --text: #111827;
  --text-soft: #374151;
  --muted: #4b5563;
  --border: rgba(17, 24, 39, 0.1);
  --white: #ffffff;
  --danger: #dc2626;
  --success: #059669;
  --cta: #1e293b;
  --cta-hover: #334155;
  --nav-active: #4a6fa5;
  --page-bg: #f4f5f7;
  --header-bg: linear-gradient(155deg, #1e293b 0%, #334155 55%, #4a6fa5 100%);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(12, 26, 20, 0.06);
  --shadow: 0 8px 30px rgba(12, 26, 20, 0.08);
  --shadow-lg: 0 20px 50px rgba(12, 26, 20, 0.12);
  --shadow-glow: 0 12px 32px var(--primary-glow);
  --phone-w: 390px;
  --phone-h: 844px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Plus Jakarta Sans", var(--font);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: #141820;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.app-shell {
  background: #141820;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite;
}

.ambient-1 { width: 520px; height: 520px; background: #4a6fa5; top: -140px; left: -120px; opacity: 0.18; }
.ambient-2 { width: 400px; height: 400px; background: #64748b; bottom: -80px; right: -80px; opacity: 0.12; animation-delay: -6s; }
.ambient-3 { width: 280px; height: 280px; background: #334155; top: 40%; right: 20%; opacity: 0.1; animation-delay: -12s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -16px) scale(1.06); }
}

.page-wrap {
  text-align: center;
  width: 100%;
  max-width: 920px;
  position: relative;
  z-index: 1;
}

.page-wrap h1 {
  font-family: var(--display);
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 30%, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-wrap p.sub {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}

.phone {
  width: var(--phone-w);
  height: var(--phone-h);
  max-width: 100%;
  max-height: 86vh;
  margin: 0 auto;
  background: linear-gradient(160deg, #3a3a40 0%, #121214 40%, #0c0c0e 100%);
  border-radius: 52px;
  padding: 11px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 12px rgba(255, 255, 255, 0.03),
    0 50px 120px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 34px;
  background: #0c0c0e;
  border-radius: 0 0 22px 22px;
  z-index: 20;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 42px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  --phone-inset-top: 44px;
}

.screen-texture {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  padding: 14px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 30;
  color: inherit;
  pointer-events: none;
}

#screen-splash .status-bar,
#screen-login .status-bar,
#screen-profile .status-bar { color: white; }

#screen-home .status-bar,
#screen-groups .status-bar {
  color: var(--primary-dark);
  z-index: 40;
}

.status-icons { display: flex; gap: 4px; align-items: flex-end; }
.status-icons i {
  display: block;
  width: 16px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  position: relative;
}
.status-icons i:first-child { width: 12px; height: 6px; opacity: 0.5; }
.status-icons i:last-child { width: 18px; height: 9px; }
.status-icons i:last-child::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 2px;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
}

.screen-texture { opacity: 0.025; }

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--surface);
  animation: screenIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  min-height: 0;
  overflow: hidden;
}

.screen.active {
  display: flex;
  z-index: 2;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ---- Splash ---- */
#screen-splash {
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #1e293b 0%, #334155 42%, #4a6fa5 100%);
}

.splash-bg { position: absolute; inset: 0; overflow: hidden; }

.splash-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.35) 0%, transparent 65%);
  top: 20%;
  right: -60px;
  animation: drift 8s ease-in-out infinite;
}

.splash-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: pulseRing 5s ease-in-out infinite;
}

.splash-ring:nth-child(2) { width: 220px; height: 220px; top: 8%; left: -50px; }
.splash-ring:nth-child(3) { width: 360px; height: 360px; bottom: -100px; right: -120px; animation-delay: 1.2s; }
.splash-ring:nth-child(4) { width: 120px; height: 120px; top: 58%; left: 65%; animation-delay: 0.6s; }

.splash-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: floatParticle 6s ease-in-out infinite;
}

.p1 { width: 8px; height: 8px; top: 25%; left: 20%; }
.p2 { width: 5px; height: 5px; top: 70%; left: 75%; animation-delay: 2s; }
.p3 { width: 6px; height: 6px; top: 40%; right: 25%; animation-delay: 1s; background: rgba(240, 180, 41, 0.5); }

@keyframes floatParticle {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-20px); opacity: 1; }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.06); opacity: 0.75; }
}

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.logo-icon {
  width: 104px;
  height: 104px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: logoFloat 4s ease-in-out infinite;
}

.logo-icon svg { width: 52px; height: 52px; color: white; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2)); }

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

#screen-splash h2 {
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  letter-spacing: -0.05em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

#screen-splash .tagline {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.tagline-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Login ---- */
#screen-login {
  flex-direction: column;
  background: var(--surface-elevated);
  min-height: 0;
  overflow: hidden;
}

.login-visual {
  flex: 0 0 auto;
  min-height: 220px;
  background: var(--header-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--phone-inset-top) + 14px) 20px 22px;
}

.login-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,0.15) 8px, rgba(255,255,255,0.15) 9px),
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(240,180,41,0.2) 8px, rgba(240,180,41,0.2) 9px);
}

.login-visual-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
  color: white;
  flex-shrink: 0;
}

.login-visual .logo-small {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border: 1px solid rgba(255,255,255,0.2);
}
.login-visual .logo-small svg { width: 24px; height: 24px; color: white; }

.login-visual h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: #ffffff;
}
.login-visual p {
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
  max-width: 260px;
  margin: 0 auto;
}

.login-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 20px calc(var(--safe-bottom) + 16px);
  -webkit-overflow-scrolling: touch;
}

.login-panel #login-form,
.login-form {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-form-head {
  text-align: center;
  margin-bottom: 14px;
}

.login-panel .form-title {
  margin-bottom: 6px;
  text-align: center;
  color: #0f172a;
  font-size: 1.25rem;
  -webkit-text-fill-color: #0f172a;
}

.login-panel .form-sub {
  margin: 0;
  line-height: 1.45;
  text-align: center;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 500;
}

.login-trust-box {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 3px solid var(--primary);
}

.login-trust-lead {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0f172a;
  line-height: 1.35;
}

.login-trust-text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  font-weight: 500;
  color: #334155;
}

.login-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4px;
}

.login-fields .field {
  margin-bottom: 14px;
}

.login-fields .field label {
  color: #374151;
  font-size: 0.6875rem;
}

.login-fields .field input {
  color: #0f172a;
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.login-actions .simulation-note {
  margin: 4px 0 0;
  font-size: 0.6875rem;
  color: #64748b;
}

.form-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 4px 0 22px;
  font-weight: 500;
}

/* ---- Home header & hero ---- */
.home-header {
  background: var(--header-bg);
  padding: calc(var(--phone-inset-top) + 4px) 20px 20px;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  z-index: 1;
}

.home-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(
    -30deg,
    transparent,
    transparent 14px,
    rgba(255,255,255,0.5) 14px,
    rgba(255,255,255,0.5) 15px
  );
}

.home-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  padding-top: 8px;
}

.home-greeting { text-align: left; }

.hello {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.home-greeting h2 {
  font-family: var(--display);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.avatar-btn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  backdrop-filter: blur(12px);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.hero-card {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.hero-shine {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(240,180,41,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-amount {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary-dark);
  line-height: 1.1;
}

.trust-ring {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.trust-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.trust-bg {
  fill: none;
  stroke: rgba(10, 122, 90, 0.12);
  stroke-width: 5;
}

.trust-fill {
  fill: none;
  stroke: url(#trustGradient);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 138;
  stroke-dashoffset: 138;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(10, 122, 90, 0.1);
  color: var(--primary-dark);
}

.mini-chip.gold {
  background: var(--secondary-soft);
  color: #92600a;
}

/* Quick actions */
.quick-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.quick-actions::-webkit-scrollbar { display: none; }

.quick-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  min-width: 76px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.quick-btn span {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(10,122,90,0.12), rgba(20,184,135,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary);
}

.quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(10, 122, 90, 0.2);
}

/* Bottom nav */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 8px calc(var(--safe-bottom) + 12px);
  background: var(--surface-elevated);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 -4px 20px rgba(12, 26, 20, 0.04);
}

.nav-item {
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  transition: color 0.2s;
}

.nav-item.active { color: var(--primary); }
.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}
.nav-item.active .nav-dot { background: var(--primary); }

.nav-fab-mini {
  width: 52px;
  height: 52px;
  border-radius: 18px !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  color: white !important;
  box-shadow: var(--shadow-glow);
  margin-top: -28px;
  flex-direction: row !important;
  justify-content: center;
}

.nav-fab-mini svg { width: 22px; height: 22px; }

#screen-home {
  min-height: 0;
}

#screen-home .screen-body {
  flex: 1;
  min-height: 0;
  padding-bottom: 8px;
  padding-top: 12px;
  position: relative;
  z-index: 0;
}

.screen-body.home-body { padding-top: 12px; }

/* ---- Shared UI ---- */
.back-bar {
  padding: calc(var(--phone-inset-top) + 4px) 16px 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 5;
}

.back-bar strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.back-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--surface);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.back-btn svg { width: 20px; height: 20px; }
.back-btn:active { transform: scale(0.92); }

.screen-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.screen-body::-webkit-scrollbar { display: none; }

.form-title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.03em;
}

.field { margin-bottom: 18px; text-align: left; }

.field label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field input,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  background: var(--surface-elevated);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(10, 122, 90, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 8px 28px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px var(--primary-glow);
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
}

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

.simulation-note {
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
  color: var(--text-soft);
}

.simulation-note.muted {
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--muted);
}

.welcome-screen .btn-secondary {
  margin-top: 10px;
}

.btn-text { background: transparent; color: var(--primary); font-weight: 600; margin-top: 8px; }
.btn-block { width: 100%; }
.btn-outline {
  background: white;
  color: var(--primary);
  border: 2px solid rgba(10, 122, 90, 0.25);
  margin-top: 12px;
}

.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: var(--muted); line-height: 1.6; }
.small { font-size: 0.82rem; }
.error-msg { color: var(--danger); font-size: 0.85rem; margin: 4px 0 14px; text-align: left; font-weight: 600; }

.section-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  margin: 22px 0 14px;
  text-align: left;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

/* ---- Tontine cards ---- */
.tontine-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.tontine-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, linear-gradient(90deg, var(--primary), var(--secondary)));
}

.tontine-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  background: var(--card-glow, rgba(10,122,90,0.06));
  border-radius: 50%;
  pointer-events: none;
}

.tontine-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow);
}

.tontine-card .type-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  background: rgba(74, 111, 165, 0.12);
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.tontine-card .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.tontine-card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
}

.chip {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.chip { background: rgba(5, 150, 105, 0.12); color: var(--success); }
.chip.draft { background: rgba(217, 119, 6, 0.15); color: #9a3412; }
.chip.pending { background: rgba(14, 165, 233, 0.12); color: #0369a1; }
.chip.paid { background: rgba(5, 150, 105, 0.12); color: var(--success); }
.chip.late { background: rgba(225, 29, 72, 0.1); color: var(--danger); }

.tontine-card .meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 4px;
}

.tontine-card .meta-row svg { width: 14px; height: 14px; opacity: 0.45; flex-shrink: 0; }

.progress-wrap { margin-top: 14px; }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-track {
  height: 6px;
  background: rgba(10, 20, 16, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.empty-card {
  background: linear-gradient(135deg, rgba(10,122,90,0.04), rgba(240,180,41,0.06));
  border: 1.5px dashed rgba(10, 122, 90, 0.2);
  border-radius: var(--radius);
  padding: 36px 24px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.65;
}

/* ---- Detail ---- */
.detail-hero {
  background: linear-gradient(145deg, #022c22, #0a7a5a 55%, #14b887);
  color: white;
  padding: 26px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background: repeating-linear-gradient(-45deg, transparent, transparent 10px, white 10px, white 11px);
}

.detail-hero h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
  position: relative;
}

.detail-hero p { opacity: 0.82; font-size: 0.85rem; font-weight: 500; position: relative; }

.info-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.info-card.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
}

.info-card p {
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.info-card p:last-child { margin-bottom: 0; }
.info-card p strong { color: var(--text-soft); font-weight: 700; }
.info-card p span:last-child { color: var(--text); font-weight: 800; }

.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
}

.member-row:last-child { border-bottom: none; }
.member-row .left { display: flex; align-items: center; }

.member-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  margin-right: 12px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ---- Wizard ---- */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.wizard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-dot.active {
  width: 32px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.wizard-dot.done { background: var(--secondary); }
.wizard-line { width: 36px; height: 2px; background: var(--border); }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: screenIn 0.35s ease; }
.wizard-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; }

.summary-card {
  background: linear-gradient(135deg, rgba(10,122,90,0.07), rgba(240,180,41,0.12));
  border: 1px solid rgba(10, 122, 90, 0.15);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.75;
  font-weight: 500;
}

.summary-card strong { color: var(--primary-dark); font-weight: 800; }

.info-card.compact {
  padding: 14px 16px;
  background: rgba(10, 122, 90, 0.05);
  border-color: rgba(10, 122, 90, 0.1);
}

.info-card.compact p { margin: 0; color: var(--text-soft); font-size: 0.84rem; line-height: 1.55; display: block; }

/* ---- Contributions ---- */
.contrib-item {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.contrib-item.tappable {
  cursor: pointer;
  transition: all 0.25s;
}

.contrib-item.tappable:hover {
  transform: translateX(6px);
  border-color: rgba(10, 122, 90, 0.25);
  box-shadow: var(--shadow);
}

.contrib-item .title { font-weight: 800; font-size: 0.92rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.contrib-item .sub { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

/* ---- Payment ---- */
.payment-body { display: flex; flex-direction: column; }

.payment-sheet {
  background: linear-gradient(180deg, white 0%, var(--ivory) 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.payment-sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(10,20,16,0.12);
  border-radius: 999px;
  margin: 0 auto 20px;
}

.payment-hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(10,122,90,0.12), rgba(240,180,41,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-hero-icon svg { width: 32px; height: 32px; color: var(--primary); }

.amount-display {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.04em;
  color: var(--primary-dark);
  margin: 16px 0 20px;
}

.provider-grid { display: grid; gap: 10px; margin: 16px 0; }

.provider-btn {
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s;
}

.provider-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.provider-dot.orange { background: #ff6600; box-shadow: 0 0 16px rgba(255,102,0,0.45); }
.provider-dot.yellow { background: #ffcc00; box-shadow: 0 0 16px rgba(255,204,0,0.45); }
.provider-dot.blue { background: #1da1f2; box-shadow: 0 0 16px rgba(29,161,242,0.45); }

.provider-btn.active {
  border-color: var(--primary);
  background: rgba(10, 122, 90, 0.05);
  box-shadow: 0 0 0 4px rgba(10, 122, 90, 0.08);
}

.provider-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.provider-btn-text strong {
  font-size: 0.92rem;
}

.provider-btn-text small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.payment-country-badge {
  display: inline-block;
  margin: 8px auto 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 122, 90, 0.08);
  border: 1px solid rgba(10, 122, 90, 0.18);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark, var(--primary));
}

.payment-methods-label {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}

.payment-compliance-note {
  margin: 0 0 12px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.payment-empty-providers {
  text-align: center;
  padding: 12px;
}

.spinner.large { width: 44px; height: 44px; margin: 48px auto 0; border-width: 3px; }

.success-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #34d399);
  color: white;
  font-size: 2.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto 20px;
  animation: popIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 40px rgba(5, 150, 105, 0.4);
}

@keyframes popIn {
  from { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.receipt-card {
  background: white;
  border: 1.5px dashed rgba(10, 122, 90, 0.25);
  border-radius: var(--radius);
  padding: 22px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.receipt-card .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
}

.receipt-card .row:last-child { border-bottom: none; }
.receipt-card .row span:first-child { color: var(--muted); }
.receipt-card .ref {
  font-family: ui-monospace, monospace;
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.82rem;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 11px 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.demo-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (max-width: 480px) {
  body.app-shell { padding: 0; align-items: stretch; }
  .ambient { display: none; }
  .page-wrap h1,
  .page-wrap p.sub,
  .demo-badge { display: none; }
  .phone {
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background: var(--surface);
  }
  .phone-notch { display: none; }
  .phone-screen {
    border-radius: 0;
    --phone-inset-top: 0px;
  }
  .status-bar { display: none; }
  .login-visual {
    min-height: 0;
    padding: calc(var(--safe-top) + 18px) 24px 24px;
  }
  .login-panel { padding: 24px 20px calc(var(--safe-bottom) + 24px); }
  .back-bar { padding: calc(var(--safe-top) + 12px) 16px 14px; }
  .auth-header { padding: calc(var(--safe-top) + 8px) 20px 16px; }
  .home-header { padding: calc(var(--safe-top) + 16px) 20px 20px; }
  .profile-header { padding: calc(var(--safe-top) + 24px) 24px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Premium layer v3 ===== */
.hero-amount {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
  background-size: 200% auto;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.promo-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: 12px 0 4px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(10,122,90,0.09), rgba(240,180,41,0.12));
  border: 1px solid rgba(10, 122, 90, 0.12);
  text-align: left;
  animation: cardIn 0.6s ease both;
  animation-delay: 0.2s;
}

.promo-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px var(--primary-glow);
}

.promo-banner strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.promo-banner span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.confetti-root {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  top: -10px;
  border-radius: 2px;
  animation: confettiFall 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(720px) rotate(720deg); opacity: 0; }
}

.toast {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10, 20, 16, 0.88);
  backdrop-filter: blur(16px);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.detail-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  margin-bottom: 12px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.metric-box {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.metric-box:hover { transform: translateY(-2px); }

.metric-box.highlight {
  background: linear-gradient(145deg, rgba(10,122,90,0.08), rgba(20,184,135,0.06));
  border-color: rgba(10, 122, 90, 0.15);
}

.metric-box.gold {
  background: linear-gradient(145deg, rgba(240,180,41,0.12), rgba(240,180,41,0.04));
  border-color: rgba(240, 180, 41, 0.2);
}

.metric-val {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
}

.metric-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.recipient-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fef3c7 0%, #fff9f0 50%, rgba(10,122,90,0.08) 100%);
  border: 1px solid rgba(240, 180, 41, 0.25);
  margin-bottom: 18px;
  overflow: hidden;
  text-align: left;
}

.recipient-card.hidden { display: none; }

.recipient-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b45309;
  margin-bottom: 6px;
}

.recipient-name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}

.recipient-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(240,180,41,0.35), transparent 70%);
  top: -20px;
  right: -10px;
  pointer-events: none;
}

.members-card { padding: 8px 18px; }

.profile-header {
  background: var(--header-bg);
  padding: calc(var(--phone-inset-top) + 12px) 24px 32px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background: repeating-linear-gradient(60deg, transparent, transparent 12px, white 12px, white 13px);
}

.profile-avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.profile-header h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.profile-header p {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.profile-trust-pill {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.profile-trust-pill strong { font-weight: 800; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.profile-stat {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.profile-stat span {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.profile-stat label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.menu-item:hover {
  transform: translateX(4px);
  border-color: rgba(10, 122, 90, 0.2);
  box-shadow: var(--shadow);
}

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.menu-icon.green { background: rgba(10,122,90,0.1); }
.menu-icon.gold { background: rgba(240,180,41,0.15); }
.menu-icon.blue { background: rgba(14,165,233,0.12); }
.menu-icon.red { background: rgba(225,29,72,0.1); }

.trust-body { padding-top: 12px; }

.trust-hero {
  text-align: center;
  padding: 24px 0 28px;
}

.trust-ring-lg { width: 140px; height: 140px; margin: 0 auto; }

.trust-ring-lg .trust-bg,
.trust-ring-lg .trust-fill { stroke-width: 6; }

.trust-ring-lg .trust-fill { stroke-dasharray: 301; stroke-dashoffset: 301; }

.trust-value-lg {
  font-size: 2.2rem !important;
  font-family: var(--display);
}

.trust-caption {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.trust-rules { display: flex; flex-direction: column; gap: 10px; }

.trust-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}

.trust-rule span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.trust-rule.up span { background: rgba(5,150,105,0.12); color: var(--success); }
.trust-rule.down span { background: rgba(225,29,72,0.1); color: var(--danger); }

.contrib-item {
  animation: cardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.success-burst {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(52,211,153,0.35) 0%, transparent 70%);
  animation: burst 0.8s ease-out forwards;
  pointer-events: none;
}

@keyframes burst {
  from { transform: translateX(-50%) scale(0.3); opacity: 1; }
  to { transform: translateX(-50%) scale(1.5); opacity: 0; }
}

.trust-bump {
  text-align: center;
  padding: 10px 16px;
  margin: 12px 0 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(5,150,105,0.12), rgba(240,180,41,0.12));
  color: var(--success);
  font-weight: 800;
  font-size: 0.82rem;
  animation: cardIn 0.5s ease 0.3s both;
}

#screen-payment .screen-body { position: relative; }

.avatar-btn {
  transition: transform 0.2s, box-shadow 0.2s;
}

.avatar-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.field input:focus + .field-glow,
.field:focus-within .field-glow { opacity: 1; }

.login-panel .field { position: relative; }

.login-panel .field::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-panel .field:focus-within::after {
  transform: scaleX(1);
}

#screen-profile {
  min-height: 0;
}

#screen-profile .screen-body {
  flex: 1;
  min-height: 0;
}

.welcome-screen {
  padding: calc(var(--phone-inset-top) + 20px) 20px calc(var(--safe-bottom) + 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  overflow-y: auto;
  background: var(--surface-elevated);
  text-align: left;
}

.welcome-globe {
  font-size: 2.5rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #033d2e, #14b887);
  border-radius: 18px;
  margin-bottom: 8px;
}

.welcome-title {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.welcome-sub, .welcome-vision {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.welcome-vision {
  color: var(--primary);
  font-weight: 600;
}

.security-banner {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(4, 120, 87, 0.06);
  border: 1px solid rgba(4, 120, 87, 0.12);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}

.security-banner strong {
  display: block;
  font-size: 0.82rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.security-banner span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.global-traditions {
  margin: 12px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: left;
}

.home-country-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

.welcome-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
}

.register-panel {
  margin-top: 0;
  max-height: none;
  overflow: visible;
}

.register-wizard-panel {
  padding: 0;
}

.register-wizard-panel .back-bar.compact {
  padding: 0 0 12px;
  margin-bottom: 0;
  background: transparent;
  border: none;
}

.register-progress {
  margin-bottom: 0;
}

/* Auth shell — register / forms */
#screen-register {
  flex-direction: column;
  background: var(--surface);
}

.auth-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--surface-elevated);
}

.auth-header {
  flex-shrink: 0;
  padding: calc(var(--phone-inset-top) + 4px) 20px 16px;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
}

.auth-header .back-bar.compact {
  padding: 0 0 14px;
  background: transparent;
  border: none;
}

.auth-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
  text-align: left;
}

.auth-footer {
  flex-shrink: 0;
  padding: 12px 20px calc(var(--safe-bottom) + 12px);
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}

.auth-footer .register-actions {
  margin-top: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 380px) {
  .field-row { grid-template-columns: 1fr; }
}

.form-section {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.form-section-title {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 14px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  font-size: 0.88rem;
  line-height: 1.45;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox-row a {
  color: var(--primary);
  font-weight: 600;
}

.password-hint {
  font-size: 0.78rem;
  margin: -4px 0 12px;
}

.register-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#reg-country {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  font-family: var(--font);
  font-size: 0.9rem;
}

#reg-id-country, #reg-id-type {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  font-family: var(--font);
  font-size: 0.9rem;
}

#reg-purpose, #reg-security-q {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  font-family: var(--font);
  font-size: 0.9rem;
}

#screen-welcome .field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-elevated);
  font-family: var(--font);
  font-size: 0.9rem;
}

/* v4 polish */
.quick-btn {
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
}

.tontine-card {
  border-radius: var(--radius);
}

/* ===== Home v2 — light card layout ===== */
.home-screen {
  background: var(--page-bg);
  flex-direction: column;
  overflow: hidden;
}

.groups-screen {
  background: var(--page-bg);
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
}

.groups-v2-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: calc(var(--phone-inset-top) + 10px) 16px 124px;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 5;
}

.groups-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -16px 16px;
  padding: 12px 16px 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  position: sticky;
  top: 0;
  z-index: 12;
}

.groups-header > div:first-child {
  flex: 1;
  min-width: 0;
}

#groups-page-title,
.groups-header .home-v2-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--primary-dark);
  -webkit-text-fill-color: var(--primary-dark);
  background: none;
  text-shadow: none;
  word-break: break-word;
}

#groups-sub,
.groups-header .home-v2-sub {
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.35;
}

.groups-screen .tontine-card,
.groups-screen .empty-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  background: var(--surface-elevated);
  margin-bottom: 12px;
}

.groups-screen .empty-card {
  border: 1.5px dashed rgba(75, 85, 99, 0.35);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 32px 20px;
  text-align: center;
}

.home-v2-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: calc(var(--phone-inset-top) + 18px) 16px 124px;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}

.home-v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  padding-top: 2px;
}

.home-v2-title,
#home-page-title {
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
  display: block;
  visibility: visible;
  -webkit-text-fill-color: #0f172a;
  background: none;
  text-shadow: none;
}

.home-v2-sub,
#home-greeting {
  margin-top: 5px;
  font-size: 0.875rem;
  color: #334155;
  font-weight: 600;
  letter-spacing: 0;
}

.home-screen .avatar-btn.avatar-round,
.home-screen .home-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  backdrop-filter: none;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.home-account-setup {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 102, 82, 0.08);
  border: 1px solid rgba(0, 102, 82, 0.22);
}

.home-account-setup.warning {
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.22);
}

.home-account-setup .home-setup-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.home-account-setup .home-setup-copy p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.home-promo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 44px 16px 18px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  overflow: hidden;
  min-height: 92px;
  box-shadow: var(--shadow-sm);
}

.home-promo-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.home-promo-copy {
  flex: 1;
  min-width: 0;
  text-align: left;
  z-index: 1;
}

.home-promo-copy strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.home-promo-copy span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.45;
}

.home-promo-copy .home-country-meta {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.home-promo-art {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.promo-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
}

.promo-circle.c1 {
  width: 52px;
  height: 52px;
  background: rgba(74, 111, 165, 0.1);
  top: 0;
  right: 0;
}

.promo-circle.c2 {
  width: 32px;
  height: 32px;
  background: rgba(217, 119, 6, 0.12);
  bottom: 2px;
  left: 0;
}

.promo-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.home-balance-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  margin-bottom: 18px;
  background: var(--surface-elevated);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.home-balance-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.home-balance-info {
  flex: 1;
  min-width: 0;
}

.home-balance-card > .btn-pill-cta {
  flex-shrink: 0;
}

.home-balance-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.home-balance-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-bottom: 4px;
}

.home-balance-amount {
  font-family: var(--display);
  font-size: clamp(1.25rem, 4.5vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.home-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #f1f3f5;
  color: var(--text-soft);
}

.home-stat-chip.warm {
  background: rgba(217, 119, 6, 0.1);
  color: #92400e;
}

.home-trust-pill {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-soft);
}

.home-trust-pill strong {
  font-weight: 700;
  color: var(--primary);
}

.btn-pill-cta {
  flex-shrink: 0;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: var(--cta);
  color: white;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.2);
  transition: transform 0.2s, background 0.2s;
}

.btn-pill-cta:active {
  transform: scale(0.96);
  background: var(--cta-hover);
}

.services-heading {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
  text-align: left;
  margin-bottom: 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.service-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-elevated);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.service-tile:active {
  transform: scale(0.98);
}

.service-tile-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.service-tile-icon {
  align-self: flex-end;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-tile-icon svg {
  width: 22px;
  height: 22px;
}

.tile-green { background: #f0fdf4; color: #059669; }
.tile-orange { background: #fff7ed; color: #c2410c; }
.tile-teal { background: #f0f9ff; color: var(--primary); }
.tile-blue { background: #f1f5f9; color: #475569; }

.home-security-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  text-align: left;
}

.home-security-note strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text);
}

.home-security-note span {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}

.home-security-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.home-section-label {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  color: var(--text);
}

.home-screen .tontine-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  background: var(--surface-elevated);
  margin-bottom: 10px;
}

.home-screen .empty-card {
  border-radius: 16px;
  background: var(--surface-elevated);
  border: 1px dashed rgba(107, 114, 128, 0.35);
}

.bottom-nav-v2 {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  padding: 6px 4px calc(var(--safe-bottom) + 8px);
  background: var(--surface-elevated);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.nav-v2-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border: none;
  background: none;
  color: #9ca3af;
  font-family: var(--font);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  min-width: 48px;
  flex: 1;
  max-width: 72px;
}

.nav-v2-item svg {
  width: 20px;
  height: 20px;
}

.nav-v2-item.active {
  color: var(--nav-active);
}

.nav-v2-fab {
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  flex: 0 0 48px;
  margin-top: -18px;
  border-radius: 50%;
  background: var(--cta);
  color: white;
  box-shadow: 0 6px 18px rgba(30, 41, 59, 0.25);
  justify-content: center;
}

.nav-v2-fab span { display: none; }

.nav-v2-fab svg {
  width: 22px;
  height: 22px;
}

.nav-badge {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 0.54rem;
  font-weight: 800;
  font-style: normal;
  line-height: 15px;
  text-align: center;
}

.nav-badge.hidden { display: none; }

.home-country-meta {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

/* ===== Home v2 readability overrides ===== */
.home-screen { color: var(--text); }

.home-v2-scroll {
  padding: calc(var(--phone-inset-top) + 18px) 16px 124px;
}

.home-v2-header { gap: 12px; margin-bottom: 16px; }

.home-v2-title,
#home-page-title {
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

.home-v2-sub,
#home-greeting {
  margin-top: 5px;
  color: #334155;
  font-weight: 600;
}

.home-screen .home-avatar {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.75rem;
}

.home-promo {
  gap: 12px;
  margin-bottom: 14px;
  border-left-width: 4px;
}

.home-promo-close {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-soft);
  font-size: 1.1rem;
}

.home-promo-copy strong { font-weight: 700; margin-bottom: 6px; }
.home-promo-copy span { font-weight: 500; line-height: 1.5; }
.home-promo-copy .home-country-meta { font-weight: 600; }

.home-balance-card {
  gap: 12px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.home-balance-stats { gap: 8px; }

.home-balance-label {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.home-balance-amount {
  font-size: clamp(1.35rem, 4.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.home-stat-chip {
  padding: 6px 11px;
  border-radius: 999px;
  font-weight: 600;
  background: #eef2f7;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.home-stat-chip span:first-child {
  font-weight: 800;
  color: var(--text);
}

.home-stat-chip.warm {
  background: #fff7ed;
  border-color: rgba(217, 119, 6, 0.18);
  color: #9a3412;
}

.home-stat-chip.warm span:first-child { color: #9a3412; }

.home-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(74, 111, 165, 0.12);
  border: 1px solid rgba(74, 111, 165, 0.18);
}

.home-trust-pill strong {
  font-weight: 800;
  color: var(--primary-dark);
}

.btn-pill-cta {
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.22);
}

.services-heading {
  font-weight: 700;
  margin: 4px 0 12px;
}

.service-tile {
  min-height: 108px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.service-tile-label { font-weight: 700; }

.tile-teal { color: #1d4ed8; }
.tile-blue { color: #334155; }

.home-security-note {
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.home-security-note strong { font-weight: 700; margin-bottom: 4px; }
.home-security-note span {
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.45;
}

.home-section-label { font-weight: 700; margin-bottom: 12px; }

.home-screen .tontine-card { margin-bottom: 12px; }

.home-screen .tontine-card .type-badge {
  color: var(--primary-dark);
  background: rgba(74, 111, 165, 0.12);
}

.home-screen .tontine-card h3 {
  color: var(--text);
  font-weight: 700;
}

.home-screen .tontine-card .meta-row {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.8125rem;
}

.home-screen .progress-label {
  color: var(--text-soft);
  font-size: 0.6875rem;
}

.home-screen .progress-track { background: rgba(17, 24, 39, 0.08); }

.home-screen .progress-fill {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

.home-screen .empty-card {
  border: 1.5px dashed rgba(75, 85, 99, 0.35);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 32px 20px;
}

.bottom-nav-v2 {
  padding: 8px 4px calc(var(--safe-bottom) + 10px);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

.nav-v2-item {
  gap: 3px;
  color: var(--muted);
  font-weight: 600;
}

.nav-v2-item svg { width: 21px; height: 21px; }

.nav-v2-item.active {
  color: var(--primary-dark);
  font-weight: 700;
}

.nav-v2-fab {
  width: 50px;
  height: 50px;
  min-width: 50px;
  max-width: 50px;
  flex: 0 0 50px;
  margin-top: -20px;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(30, 41, 59, 0.28);
}

.nav-badge {
  right: 2px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  font-size: 0.5625rem;
  background: #dc2626;
  color: #ffffff;
  border: 1.5px solid var(--surface-elevated);
}

/* ===== Settings screen ===== */
#screen-settings .status-bar { color: var(--text); }

.settings-body {
  padding: 12px 16px calc(var(--safe-bottom) + 24px);
}

.settings-section {
  margin-bottom: 20px;
}

.settings-section-title {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  text-align: left;
}

.settings-section-sub {
  font-size: 0.8125rem;
  color: var(--text-soft);
  margin: -4px 0 10px;
  line-height: 1.45;
  text-align: left;
}

.settings-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child { border-bottom: none; }

.settings-row label,
.settings-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.settings-row-static {
  align-items: flex-start;
}

.settings-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  text-align: right;
  max-width: 58%;
  word-break: break-word;
}

.settings-value-wrap {
  line-height: 1.45;
}

.settings-address-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.settings-address-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-address-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.settings-address-label {
  color: var(--text-soft);
  font-weight: 600;
  flex-shrink: 0;
}

.settings-address-value {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.settings-row-address {
  align-items: flex-start;
}

.settings-select {
  max-width: 58%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
}

.settings-toggle-row:last-child { border-bottom: none; }

.settings-toggle-row strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.settings-toggle-row small {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

.settings-toggle-row input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-toggle {
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #d1d5db;
  flex-shrink: 0;
  transition: background 0.2s;
}

.settings-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.settings-toggle-row input:checked + .settings-toggle {
  background: var(--primary);
}

.settings-toggle-row input:checked + .settings-toggle::after {
  transform: translateX(18px);
}

.settings-provider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.settings-provider-row:last-child { border-bottom: none; }

.settings-provider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.settings-provider-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.settings-provider-info strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.settings-provider-info span {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--muted);
}

.settings-provider-check {
  color: var(--success);
  font-weight: 800;
  font-size: 0.875rem;
}

.settings-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--primary-dark);
  font-size: 0.875rem;
  font-weight: 600;
}

.audit-intro {
  margin: -6px 0 14px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.audit-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.audit-tab {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.audit-tab.active {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--primary);
}

.audit-panel {
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}

.audit-panel-body {
  padding: 14px 16px;
  max-height: 320px;
  overflow-y: auto;
}

.audit-note {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.audit-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.audit-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.audit-row-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 4px;
}

.audit-row-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text);
}

.audit-row-meta {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}

.audit-dispute-form {
  margin-bottom: 12px;
}

.audit-dispute-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.audit-dispute-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.audit-dispute-btn {
  padding: 8px 12px;
  font-size: 0.78rem;
  min-height: auto;
}

.settings-link-row-primary {
  flex-direction: row;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.02));
}

.settings-link-row-primary strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.settings-link-desc {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

.settings-link-arrow {
  color: var(--muted);
  font-size: 0.875rem;
}

.settings-footnote {
  padding: 12px 16px 14px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
}

.settings-logout {
  margin-top: 8px;
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.35);
}

.settings-logout:hover {
  background: rgba(220, 38, 38, 0.06);
}

.menu-icon.blue { background: rgba(74, 111, 165, 0.12); color: var(--primary-dark); }

.login-policy-foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.login-policy-foot a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.login-policy-foot a:hover { text-decoration: underline; }

.payment-policy-note {
  margin: 12px 0 8px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.payment-fee-note,
.reg-fee-note,
.create-fee-note {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--primary-dark, var(--primary));
  font-weight: 600;
}

.policy-fee-banner {
  background: rgba(10, 122, 90, 0.08);
  border: 1px solid rgba(10, 122, 90, 0.25);
  border-radius: 10px;
  padding: 12px;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.create-rules-check {
  margin-top: 14px;
}

.trust-consequences {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.trust-consequences-title {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.trust-consequences-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.trust-consequence-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.8125rem;
}

.trust-consequence-violation {
  font-weight: 700;
  color: var(--danger);
}

.trust-consequence-result {
  color: var(--text-soft);
  line-height: 1.4;
}

.trust-rules-link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.trust-rules-link:hover { text-decoration: underline; }

.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.policy-modal.open {
  pointer-events: auto;
  opacity: 1;
}

.policy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.policy-modal-sheet {
  position: relative;
  width: min(100%, 420px);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface-elevated, #fff);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 28px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
}

.policy-modal-sheet h2 {
  margin: 0 0 16px;
  font-size: 1.125rem;
}

.policy-modal-body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.policy-modal-beta {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 12px;
  margin: 0 0 14px;
  font-size: 0.8125rem;
}

.policy-doc-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.policy-doc-link {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.policy-doc-link strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
}

.policy-doc-link span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.policy-consequence-list {
  margin: 0 0 16px;
  padding-left: 1.25em;
  font-size: 0.8125rem;
}

.policy-consequence-list li { margin: 6px 0; }

.recipient-fee-note {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

body.policy-modal-open {
  overflow: hidden;
}

body.policy-modal-open .phone-frame {
  pointer-events: none;
}

.policy-modal.open {
  pointer-events: auto;
}

.policy-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* ---- In-app policy acceptance screen (login) ---- */
#screen-policy,
.policy-screen {
  z-index: 3;
  flex-direction: column;
  overflow: hidden;
}

#screen-policy.active,
.policy-screen.active {
  z-index: 10;
}

.policy-screen-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: calc(var(--phone-inset-top) + 16px) 20px 16px;
  -webkit-overflow-scrolling: touch;
}

.policy-screen-footer {
  flex-shrink: 0;
  padding: 12px 20px calc(var(--safe-bottom) + 16px);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.policy-screen-body {
  padding: 24px 20px 32px;
  overflow-y: auto;
}

.policy-screen-hero {
  text-align: center;
  margin-bottom: 20px;
}

.policy-screen-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.policy-screen-fee {
  margin-bottom: 16px;
}

.policy-screen-content {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 16px;
}

.policy-screen-content h4 {
  margin: 16px 0 8px;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.policy-screen-section {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.policy-screen-section:last-of-type {
  border-bottom: none;
}

.policy-screen-fee-text,
.policy-screen-fee-detail,
.policy-screen-group-rules {
  font-size: 0.8125rem;
  line-height: 1.55;
  margin: 0 0 10px;
  color: var(--text-soft);
}

.policy-enforcement-list {
  list-style: none;
  padding-left: 0;
}

.policy-enforcement-item {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.policy-enforcement-num {
  font-weight: 800;
  color: var(--primary);
}

.policy-enforcement-body {
  color: var(--text-soft);
  font-weight: 500;
}

.policy-trust-list .policy-trust-up {
  color: var(--success);
}

.policy-trust-list .policy-trust-down {
  color: var(--danger);
}

.policy-doc-list a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.policy-doc-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

.policy-screen-list {
  margin: 0;
  padding-left: 18px;
}

.policy-screen-list li {
  margin-bottom: 8px;
}

.policy-screen-beta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.policy-screen-version {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.policy-screen-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
}

.policy-screen-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.policy-accept-btn {
  margin-top: 4px;
}

.policy-screen-principle {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--primary);
  background: rgba(10, 122, 90, 0.06);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text);
}

.policy-screen-no-penalty,
.policy-screen-participation {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0 0 12px;
}

.policy-fee-not-penalty {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
}

.notification-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  cursor: pointer;
}

.notification-card.unread {
  border-color: var(--primary);
  background: rgba(10, 122, 90, 0.06);
}

.notification-card strong {
  display: block;
  margin-bottom: 4px;
}

.notification-card p {
  margin: 0 0 6px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.profile-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto;
}

.profile-photo-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.profile-photo-btn {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--primary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-stats-grid > div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface);
  text-align: center;
}

.admin-stats-grid strong {
  display: block;
  font-size: 1rem;
}

.admin-stats-grid span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-verify-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--card);
  margin-bottom: 10px;
}

.admin-verify-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.admin-verify-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.contract-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.contract-modal.hidden {
  display: none;
}

body.contract-modal-open {
  overflow: hidden;
}

.contract-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 32, 0.62);
}

.contract-modal-sheet {
  position: relative;
  width: min(720px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.contract-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.contract-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.contract-modal-date {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
}

.contract-modal-body {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.5;
  max-height: 42vh;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin: 0;
}

.contract-summary-list {
  margin: 8px 0 0 18px;
  padding: 0;
}

.contract-summary-list li {
  margin-bottom: 6px;
}

.verify-review {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--card);
}

.verify-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.verify-review-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.verify-review-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.2fr);
  gap: 16px;
}

.verify-review-meta {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.verify-review-meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.verify-review-meta dd {
  margin: 0 0 6px 0;
  font-weight: 600;
}

.verify-review-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.verify-photo-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: var(--bg);
  min-height: 180px;
}

.verify-photo-box h4 {
  margin: 0 0 8px 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.verify-photo-box img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.verify-photo-missing {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px 8px;
  text-align: center;
}

.verify-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.verify-review-actions select,
.verify-review-actions input[type="text"] {
  min-width: 180px;
  flex: 1;
}

.verify-card .verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .verify-review-grid,
  .verify-review-photos {
    grid-template-columns: 1fr;
  }
}
