@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+Ethiopic:wght@400;500;600;700&display=swap');

:root {
  --coffee-outer: #f0f4f1; /* light milk-white with slight green tint */
  --coffee-cream: #ffffff; /* milk-white */
  --coffee-card: #ffffff;
  --coffee-white: #ffffff;
  --coffee-brown: #1f8a70; /* main green */
  --coffee-ink: #113f32;   /* dark green/charcoal ink */
  --coffee-red: #d32f2f;   /* standard red if needed, though we will avoid it in UI */
  --coffee-red-dark: #b71c1c;
  --coffee-leaf: #bfd834;  /* vibrant gold-green */
  --coffee-leaf-dark: #9cb520;
  --coffee-mint: #e2f1e9;
  --coffee-mint-strong: #c2e3d3;
  --coffee-muted: #5e8073;
  --coffee-muted-dark: #3b544b;
  --coffee-line: #d1e2da;
  --coffee-disabled: #d8dfdb;
  --coffee-disabled-ink: #728c82;
  --coffee-brick: #d4af37; /* gold */
  --coffee-caramel: #8a9d28; /* darker gold-green */
  --coffee-mocha: #e0ece6;
  --shadow-card: 0 12px 28px rgba(31, 138, 112, 0.08);
  --shadow-float: 0 18px 40px rgba(31, 138, 112, 0.15);
  --shadow-button: 0 8px 18px rgba(31, 138, 112, 0.3);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --content-max: 420px;
  --mobile-nav-height: 78px;
  --mobile-touch-target: 48px;
  --font-body: 'DM Sans', sans-serif;
  --recharge-green: var(--coffee-brown);
  --recharge-indigo: #0b2b22;
  --recharge-plum: #1f8a70;
  --recharge-submit: var(--coffee-brown);
  --recharge-warning: #fff8e1;
  --recharge-instruction: var(--coffee-caramel);
  --recharge-field-line: #c3d6ce;
  --checkout-indigo: #0b2b22;
  --checkout-plum: #1f8a70;
  --checkout-submit: var(--coffee-brown);
  --checkout-card: #ffffff;
  --checkout-border: #c3d6ce;
  --checkout-muted: #5e8073;
  --checkout-warning: #fff8e1;
  --checkout-warning-ink: #b28900;
  --checkout-instruction: var(--coffee-caramel);
  --checkout-logo-size: 42px;
  --checkout-card-radius: 10px;
  --font-ethiopic: 'Noto Sans Ethiopic', 'Abyssinica SIL', 'Nyala', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--coffee-outer);
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  scrollbar-width: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.85), transparent 32rem),
    var(--coffee-outer);
  color: var(--coffee-ink);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes shineSweep {
  0% { transform: translateX(-150%) skewX(-25deg); }
  50%, 100% { transform: translateX(200%) skewX(-25deg); }
}

@keyframes frameShimmer {
  0% { box-shadow: 0 0 8px rgba(31, 138, 112, 0.4), inset 0 0 10px rgba(191, 216, 52, 0.2); border-color: rgba(31, 138, 112, 0.3); }
  50% { box-shadow: 0 0 18px rgba(191, 216, 52, 0.7), inset 0 0 15px rgba(31, 138, 112, 0.4); border-color: rgba(191, 216, 52, 0.8); }
  100% { box-shadow: 0 0 8px rgba(31, 138, 112, 0.4), inset 0 0 10px rgba(191, 216, 52, 0.2); border-color: rgba(31, 138, 112, 0.3); }
}

@keyframes textGlow {
  0% { text-shadow: 0 0 4px rgba(31, 138, 112, 0.4); }
  50% { text-shadow: 0 0 12px rgba(191, 216, 52, 0.9); }
  100% { text-shadow: 0 0 4px rgba(31, 138, 112, 0.4); }
}

@keyframes pulseDiamond {
  0% { transform: scale(1) rotate(45deg); box-shadow: 0 0 0 0 rgba(191, 216, 52, 0.7); }
  70% { transform: scale(1.2) rotate(45deg); box-shadow: 0 0 0 8px rgba(191, 216, 52, 0); }
  100% { transform: scale(1) rotate(45deg); box-shadow: 0 0 0 0 rgba(191, 216, 52, 0); }
}

.site-background {
  min-height: 100dvh;
}

.app-shell {
  position: relative;
  width: min(100%, var(--content-max));
  min-height: 100dvh;
  margin: 0 auto;
  overflow: clip;
  background: var(--coffee-cream);
}

.view {
  min-height: 100dvh;
}

/* Auth */
.auth-view {
  overflow: hidden;
  background: var(--coffee-cream);
}

.auth-hero {
  position: relative;
  height: clamp(280px, 78vw, 330px);
  overflow: visible;
  isolation: isolate;
  background: var(--coffee-brown);
}

.auth-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  image-rendering: -webkit-optimize-contrast;
  filter: saturate(1.04) contrast(1.03);
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Locked VIP plans (VIP 8-10 until VIP 7 is reached) */
.plan-card.is-locked .plan-image-wrap img {
  filter: grayscale(0.85) brightness(0.6) blur(2px);
}

.plan-action--locked,
.plan-action.plan-action--locked[disabled] {
  background: #241811 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-color: #241811 !important;
  filter: blur(0.4px) grayscale(1);
  opacity: 0.9;
  cursor: not-allowed;
  position: relative;
  overflow: hidden;
}

.plan-action--locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.06) 0 8px,
    rgba(0, 0, 0, 0.12) 8px 16px
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}

.plan-lock-note {
  margin: 0;
  padding: 6px 12px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8a6a56;
  text-align: center;
}

/* ── Withdraw requirements checklist ──────────────────── */
.withdraw-requirements {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 16px 12px;
}

.withdraw-requirement {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.withdraw-requirement.is-met {
  background: rgba(74, 124, 89, 0.1);
  color: #2d6a4f;
}

.withdraw-requirement.is-missing {
  background: rgba(198, 40, 40, 0.08);
  color: #8a1010;
}

.withdraw-req-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.withdraw-req-ok {
  background: rgba(74, 124, 89, 0.18);
  color: #2d6a4f;
}

.withdraw-req-fail {
  background: rgba(198, 40, 40, 0.15);
  color: #c62828;
}

.withdraw-req-label {
  flex: 1;
}

.withdraw-req-action {
  background: none;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
  white-space: nowrap;
  transition: background 0.15s;
}

.withdraw-req-action:hover {
  background: rgba(0, 0, 0, 0.08);
}

.auth-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(42, 20, 10, 0.08), rgba(42, 20, 10, 0.2) 52%, rgba(42, 20, 10, 0.62));
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.language-trigger {
  position: absolute;
  z-index: 3;
  top: var(--space-4);
  right: var(--space-4);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(248, 244, 236, 0.95);
  color: var(--coffee-brown);
  box-shadow: 0 10px 22px rgba(42, 20, 10, 0.16);
  transition: transform 160ms ease, background-color 160ms ease;
}

.language-trigger:hover {
  background: var(--coffee-white);
  transform: translateY(-1px);
}

.auth-badge {
  position: absolute;
  z-index: 4;
  bottom: -47px;
  left: 50%;
  width: 96px;
  height: 96px;
  padding: 5px;
  border: 5px solid var(--coffee-card);
  border-radius: 50%;
  background: var(--coffee-card);
  box-shadow: 0 12px 24px rgba(42, 20, 10, 0.24);
  transform: translateX(-50%);
}

.auth-badge-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid var(--coffee-red);
  border-radius: 50%;
  background: var(--coffee-brown);
}

.auth-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-card {
  position: relative;
  z-index: 2;
  margin: -42px var(--space-4) var(--space-8);
  padding: var(--space-5);
  border: 1px solid #eee5da;
  border-radius: var(--radius-xl);
  background: var(--coffee-card);
  box-shadow: var(--shadow-float);
}

.auth-tabs {
  position: relative;
  display: flex;
  border-bottom: 1px solid var(--coffee-line);
}

.auth-tab {
  position: relative;
  width: 50%;
  min-height: 42px;
  padding: 0 8px 12px;
  border: 0;
  background: transparent;
  color: #a0968d;
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease;
}

.auth-tab:hover,
.auth-tab.is-active {
  color: var(--coffee-brown);
}

.auth-tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 25%;
  width: 44px;
  height: 2px;
  border-radius: 999px;
  background: var(--coffee-leaf);
  transform: translateX(-50%);
  transition: left 220ms ease;
}

.auth-form {
  margin-top: var(--space-2);
}

.form-field-group {
  min-width: 0;
}

.form-field {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 60px;
  border-bottom: 1px solid var(--coffee-line);
  color: var(--coffee-muted);
  transition: border-color 160ms ease;
}

.form-field:focus-within {
  border-color: var(--coffee-leaf);
}

.form-field input {
  min-width: 0;
  flex: 1;
  min-height: 58px;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--coffee-ink);
  font-size: 16px;
}

.form-field input::placeholder {
  color: var(--coffee-muted);
  opacity: 1;
}

.phone-prefix {
  flex: 0 0 auto;
  color: var(--coffee-brown);
  font-size: 13px;
  font-weight: 600;
}

.field-divider {
  width: 1px;
  height: 16px;
  flex: 0 0 auto;
  background: #dfd4c9;
}

.field-leading-icon {
  flex: 0 0 auto;
  color: var(--coffee-leaf);
}

.field-icon-button {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--coffee-muted);
  transition: color 160ms ease, background-color 160ms ease;
}

.field-icon-button:hover {
  background: var(--coffee-cream);
  color: var(--coffee-brown);
}

.field-error {
  min-height: 0;
  margin: 0;
  color: var(--coffee-red-dark);
  font-size: 11px;
  line-height: 1.35;
}

.field-error:not(:empty) {
  min-height: 17px;
  padding-top: 5px;
}

.form-field-group.has-error .form-field {
  border-color: var(--coffee-red);
}

.primary-button {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, #1f8a70 0%, #bfd834 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(31, 138, 112, 0.4);
  transition: transform 160ms ease, box-shadow 160ms ease;
  z-index: 1;
}

.primary-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-150%) skewX(-25deg);
  animation: shineSweep 3s infinite;
  z-index: -1;
}

.primary-button:hover {
  box-shadow: 0 6px 20px rgba(191, 216, 52, 0.6);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.auth-submit {
  margin-top: 18px;
}

.account-switch {
  display: block;
  margin: 15px auto 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--coffee-brown);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--coffee-red);
  text-underline-offset: 4px;
}

.account-switch:hover {
  color: var(--coffee-red);
}

.form-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--coffee-leaf-dark);
  font-size: 11px;
  text-align: center;
}

/* App shell */
.app-view {
  display: flex;
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--coffee-cream);
}

.app-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 12px;
  scrollbar-width: none;
}

.app-content::-webkit-scrollbar,
.auth-view::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 40, 40, 0.22);
  border-radius: 50%;
  background: var(--coffee-white);
  color: var(--coffee-red);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(74, 31, 15, 0.06);
}

.brand-name {
  margin: 0;
  color: var(--coffee-brown);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
}

.brand-caption {
  margin: 5px 0 0;
  color: var(--coffee-leaf);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.header-status {
  display: flex;
  max-width: 54%;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.status-pill,
.selected-plan-chip,
.availability-pill,
.tier-count {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 700;
}

.status-pill {
  padding: 5px 8px;
  background: var(--coffee-mint);
  color: var(--coffee-leaf-dark);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-plan-chip {
  max-width: 130px;
  overflow: hidden;
  padding: 5px 9px;
  border: 1px solid rgba(74, 31, 15, 0.1);
  background: var(--coffee-white);
  color: rgba(74, 31, 15, 0.55);
  font-size: 9px;
  text-overflow: ellipsis;
}

.selected-plan-chip.is-selected {
  border-color: rgba(143, 75, 50, 0.22);
  background: var(--coffee-mint);
  color: var(--coffee-leaf-dark);
}

.page-content {
  display: grid;
  min-width: 0;
  gap: var(--space-4);
}

.home-page,
.home-page > *,
.image-carousel,
.quick-actions,
.plans-section {
  min-width: 0;
  max-width: 100%;
}

/* Shared secondary-page cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  display: grid;
  min-height: 116px;
  align-content: space-between;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(74, 31, 15, 0.08);
  border-radius: var(--radius-lg);
  background: var(--coffee-white);
  box-shadow: var(--shadow-card);
}

.metric-card span,
.metric-card small {
  color: var(--coffee-muted);
  font-size: 10px;
  font-weight: 600;
}

.metric-card strong {
  color: var(--coffee-brown);
  font-size: 21px;
  letter-spacing: -0.04em;
}

.metric-card small {
  font-size: 9px;
  font-weight: 500;
}

.metric-card--accent {
  background: var(--coffee-mint);
}

.metric-card--accent strong,
.metric-card--accent span,
.metric-card--accent small {
  color: var(--coffee-leaf-dark);
}

.content-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 0;
}

.content-card-heading h2 {
  margin: 0;
  color: var(--coffee-brown);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.content-card-heading p {
  margin: 4px 0 0;
  color: var(--coffee-muted);
  font-size: 10px;
}

.content-card-count {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--coffee-mint);
  color: var(--coffee-leaf-dark);
  font-size: 10px;
  font-weight: 700;
}

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 14px;
  padding: 4px;
  border-radius: 12px;
  background: var(--coffee-cream);
}

.income-records .filter-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vip-claims {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.vip-claim-deadline {
  margin: 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--coffee-cream);
  color: var(--coffee-muted-dark);
  font-size: 11px;
}

.vip-claim-deadline strong { color: var(--coffee-red); }
.vip-claim-deadline span { display: block; margin-top: 2px; font-size: 10px; }

.vip-claim-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--coffee-line);
  border-radius: 14px;
  background: var(--coffee-white);
}

.vip-claim-head,
.vip-claim-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vip-claim-head h3 { margin: 2px 0 0; font-size: 14px; color: var(--coffee-brown); }
.vip-claim-head > strong { color: var(--coffee-leaf-dark); font-size: 15px; }
.vip-claim-meta { color: var(--coffee-muted-dark); font-size: 11px; }
.vip-claim-note { margin: 0; color: var(--coffee-muted-dark); font-size: 10px; line-height: 1.45; }
.vip-claim-button { width: 100%; min-height: 38px; }

.filter-tab {
  min-height: 34px;
  padding: 5px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--coffee-muted-dark);
  font-size: 10px;
  font-weight: 700;
}

.filter-tab:hover,
.filter-tab.is-active {
  background: var(--coffee-white);
  color: var(--coffee-leaf-dark);
  box-shadow: 0 3px 8px rgba(74, 31, 15, 0.07);
}

.activity-list,
.team-member-list {
  display: grid;
  margin: 0;
  padding: 0 14px 14px;
  list-style: none;
}

.activity-row,
.team-member-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border-bottom: 1px solid var(--coffee-line);
}

.activity-row:last-child,
.team-member-row:last-child {
  border-bottom: 0;
}

.activity-icon,
.member-avatar {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--coffee-mint);
  color: var(--coffee-leaf-dark);
}

.activity-copy,
.member-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.activity-copy strong,
.member-copy strong {
  overflow: hidden;
  color: var(--coffee-brown);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-copy small,
.member-copy small {
  color: var(--coffee-muted);
  font-size: 9px;
}

.activity-amount {
  color: var(--coffee-leaf-dark);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.no-data-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 20px 34px;
  text-align: center;
}

.no-data-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--coffee-mint);
  color: var(--coffee-leaf-dark);
}

.no-data-state h3,
.no-data-state p {
  margin: 0;
}

.no-data-state h3 {
  color: var(--coffee-brown);
  font-size: 13px;
}

.no-data-state p {
  max-width: 235px;
  color: var(--coffee-muted);
  font-size: 10px;
  line-height: 1.45;
}

.team-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.team-summary-mark {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--coffee-mint);
  color: var(--coffee-leaf-dark);
}

.team-summary-stat {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-left: 10px;
  border-left: 1px solid var(--coffee-line);
}

.team-summary-stat span {
  color: var(--coffee-muted);
  font-size: 9px;
}

.team-summary-stat strong {
  color: var(--coffee-leaf-dark);
  font-size: 17px;
}

.team-level-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 2px solid #1f8a70;
  border-radius: 12px;
  background: #113f32;
}

.team-level-tab {
  display: grid;
  min-height: 46px;
  align-content: center;
  gap: 3px;
  padding: 5px 3px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #d6f5e8;  /* clearly visible soft-white on dark green bg */
  transition: background 160ms, color 160ms;
}

.team-level-tab strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.team-level-tab small {
  font-size: 8px;
  opacity: 0.85;
}

.team-level-tab:hover,
.team-level-tab.is-active {
  background: linear-gradient(135deg, #1f8a70 0%, #bfd834 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(31,138,112,0.35);
}

.team-members {
  overflow: hidden;
}

.member-avatar {
  border-radius: 50%;
  background: var(--coffee-cream);
  color: var(--coffee-red);
  font-size: 13px;
  font-weight: 700;
}

.member-status {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--coffee-mint);
  color: var(--coffee-leaf-dark);
  font-size: 8px;
  font-weight: 700;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.account-avatar {
  display: inline-flex;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid var(--coffee-white);
  border-radius: 50%;
  background: var(--coffee-mint);
  color: var(--coffee-red);
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(74, 31, 15, 0.08);
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-identity {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 5px;
}

.account-identity strong {
  overflow: hidden;
  color: var(--coffee-brown);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity > span {
  color: var(--coffee-muted);
  font-size: 10px;
}

.account-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--coffee-line);
}

.account-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--coffee-leaf);
}

.account-balance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(74, 31, 15, 0.08);
  border-radius: var(--radius-lg);
  background: var(--coffee-white);
  box-shadow: var(--shadow-card);
}

.account-balance article {
  display: grid;
  min-height: 78px;
  align-content: center;
  justify-items: center;
  gap: 5px;
}

.account-balance article + article {
  border-left: 1px solid var(--coffee-line);
}

.account-balance strong {
  color: var(--coffee-brown);
  font-size: 17px;
}

.account-balance span {
  color: var(--coffee-muted);
  font-size: 10px;
}

.account-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-action {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(74, 31, 15, 0.04);
  border-radius: var(--radius-md);
  background: var(--coffee-mint);
  color: var(--coffee-brown);
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.account-action:hover {
  background: var(--coffee-white);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.account-action-icon {
  display: inline-flex;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--coffee-leaf-dark);
}

.account-action:last-child {
  color: var(--coffee-red-dark);
}

.account-action:last-child .account-action-icon {
  color: var(--coffee-red);
}

/* External checkout handoff */
.checkout-redirect-page {
  display: grid;
  min-height: calc(100dvh - 24px);
  margin: -12px;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--checkout-indigo), var(--checkout-plum));
  animation: checkout-surface-in 360ms ease both;
}

.checkout-redirect-card {
  display: grid;
  width: min(100%, 290px);
  justify-items: center;
  gap: 10px;
  padding: 30px 24px;
  border-radius: var(--checkout-card-radius);
  background: rgba(255, 255, 255, 0.97);
  color: var(--coffee-brown);
  text-align: center;
  box-shadow: 0 18px 48px rgba(20, 15, 48, 0.22);
}

.checkout-redirect-spinner {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ece8f5;
  color: #2c8bf2;
  animation: checkout-spin 1s linear infinite;
}

.checkout-redirect-eyebrow,
.checkout-redirect-card h1,
.checkout-redirect-card p {
  margin: 0;
}

.checkout-redirect-eyebrow {
  color: var(--checkout-submit);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-redirect-card h1 {
  font-size: 17px;
}

.checkout-redirect-card p:last-child {
  color: var(--coffee-muted-dark);
  font-size: 11px;
  line-height: 1.45;
}

.checkout-methods-page,
.checkout-payment-page {
  animation: checkout-surface-in 360ms ease both;
}

.checkout-methods-heading strong {
  color: var(--checkout-submit);
}

.checkout-method-row:focus-visible {
  position: relative;
  z-index: 1;
  outline-offset: -3px;
}

.checkout-provider-icon {
  border-color: #e3ded7;
}

.checkout-logo {
  position: relative;
  display: inline-flex;
  width: var(--checkout-logo-size);
  height: var(--checkout-logo-size);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--checkout-card);
}

.checkout-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-logo--method {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.checkout-logo--topline {
  width: var(--checkout-logo-size);
  height: var(--checkout-logo-size);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.provider-logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--checkout-submit);
  font-size: 11px;
  font-weight: 800;
}

.checkout-logo.has-fallback .provider-logo-fallback {
  display: inline-flex;
}

.checkout-payment-page {
  background: linear-gradient(180deg, var(--checkout-indigo) 0%, var(--checkout-plum) 100%);
}

.checkout-provider-mark {
  width: var(--checkout-logo-size);
  height: var(--checkout-logo-size);
  color: var(--checkout-submit);
}

.checkout-detail-card {
  border-radius: var(--checkout-card-radius);
  background: var(--checkout-card);
}

.checkout-instructions {
  color: var(--checkout-instruction);
  font-family: var(--font-ethiopic);
  font-size: 11px;
  line-height: 1.55;
}

.checkout-instruction-lead {
  margin: 0;
}

.checkout-instructions ul {
  margin: 2px 0 7px;
  padding-left: 20px;
}

.checkout-instructions li::marker {
  color: var(--coffee-red);
}

.checkout-warning {
  color: var(--checkout-warning-ink);
  font-family: var(--font-ethiopic);
  font-size: 10px;
}

@keyframes checkout-surface-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Recharge flow */
.recharge-page {
  min-height: 100%;
}

.recharge-entry-page {
  margin: -12px;
  padding-bottom: 12px;
  background: var(--coffee-cream);
}

.recharge-entry-content {
  display: grid;
  gap: 18px;
  padding: 20px 20px 34px;
}

.recharge-topbar {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  min-height: 44px;
  align-items: center;
  background: var(--recharge-green);
  color: var(--coffee-white);
}

.recharge-topbar h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.recharge-back,
.recharge-plain-back {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: inherit;
}

.recharge-topbar-spacer {
  width: 42px;
  height: 42px;
}

.recharge-amount-card,
.recharge-balance-card,
.recharge-channel-card {
  border-radius: var(--radius-lg);
  background: var(--coffee-white);
}

.recharge-amount-card {
  padding: 20px;
}

.recharge-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recharge-amount-option {
  min-height: 62px;
  border: 0;
  border-radius: 14px;
  background: var(--coffee-mint);
  color: #202020;
  font-size: 22px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.recharge-amount-option:hover {
  background: var(--coffee-mocha);
  transform: translateY(-1px);
}

.recharge-amount-option.is-selected {
  background: var(--recharge-green);
  color: var(--coffee-white);
}

.recharge-balance-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}

.recharge-balance-card p {
  margin: 0;
  color: #202020;
  font-size: 17px;
}

.recharge-balance-card p span {
  color: #777777;
}

.recharge-balance-card p strong {
  margin-left: 7px;
  font-weight: 500;
}

.recharge-selected-amount {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 26px;
  padding: 0 14px;
  border-radius: 13px;
  background: #f6f6f6;
  color: #202020;
  font-size: 22px;
}

.recharge-selected-amount strong {
  font-size: 22px;
}

.recharge-channel-card {
  padding: 20px;
}

.deposit-channel-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  background: var(--recharge-green);
  color: var(--coffee-white);
  font-size: 15px;
  font-weight: 700;
  transition: filter 160ms ease, transform 160ms ease;
}

.deposit-channel-button:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.deposit-hot-badge {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--coffee-white);
  color: var(--recharge-green);
  font-size: 7px;
  font-weight: 800;
}

.recharge-pay-button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--recharge-green), var(--coffee-red));
  color: var(--coffee-white);
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(11, 157, 22, 0.18);
  transition: filter 160ms ease, transform 160ms ease;
}

.recharge-pay-button:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.recharge-helper-copy {
  margin: 0;
  color: #262626;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
}

.recharge-methods-page {
  margin: -12px;
  min-height: calc(100% + 12px);
  background: var(--coffee-white);
}

.recharge-methods-heading {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--coffee-line);
  color: #5e5e5e;
  font-size: 17px;
}

.recharge-methods-heading strong {
  color: #8b748a;
  font-size: 17px;
}

.recharge-methods-card {
  padding: 10px 16px 18px;
}

.recharge-methods-card h1 {
  margin: 0;
  padding: 12px 10px 20px;
  border-bottom: 1px solid var(--coffee-line);
  color: #303030;
  font-size: 12px;
}

.recharge-method-list {
  display: grid;
}

.recharge-method-row {
  display: grid;
  grid-template-columns: 38px 1fr 22px;
  min-height: 60px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid var(--coffee-line);
  background: transparent;
  color: #404040;
  font-size: 14px;
  text-align: left;
}

.recharge-method-row:hover {
  background: var(--coffee-cream);
}

.recharge-provider-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: var(--coffee-white);
  color: var(--coffee-caramel);
}

.recharge-method-chevron {
  color: #cfcfcf;
}

.recharge-reminder {
  margin: 18px 10px 0;
  padding: 10px;
  border-radius: 4px;
  background: var(--recharge-warning);
  color: #ad6a6a;
  font-size: 10px;
  line-height: 1.35;
}

.recharge-payment-page,
.recharge-result-page {
  min-height: calc(100dvh - 24px);
  margin: -12px;
  padding: 14px 14px 28px;
  background: linear-gradient(180deg, var(--recharge-indigo) 0%, var(--recharge-plum) 100%);
}

.payment-topline {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
}

.payment-topline strong {
  display: inline-block;
  margin-left: 4px;
  color: var(--coffee-white);
  font-weight: 500;
}

.payment-provider-mark,
.checkout-provider-mark {
  display: inline-flex;
  width: var(--checkout-logo-size);
  height: var(--checkout-logo-size);
  align-items: center;
  justify-content: center;
  color: var(--coffee-caramel);
}

.payment-detail-card {
  max-width: 470px;
  margin: 10px auto 0;
  padding: 16px;
  border-radius: 10px;
  background: var(--coffee-white);
}

.payment-step-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #777777;
  font-size: 12px;
}

.payment-step-heading strong {
  color: #333333;
}

.payment-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 9px;
  padding: 0 16px;
  border-top: 1px solid var(--recharge-field-line);
  border-bottom: 1px solid var(--recharge-field-line);
  color: #999999;
  font-size: 17px;
}

.payment-order-row strong {
  color: #8b748a;
  font-size: 17px;
}

.payment-account-list {
  display: grid;
  gap: 11px;
  padding: 10px 16px 4px;
}

.payment-account-row {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 44px;
  padding-right: 52px;
}

.payment-account-row span {
  color: #999999;
  font-size: 11px;
}

.payment-account-row strong {
  color: #303030;
  font-size: 12px;
}

.payment-copy-button,
.payment-switch-button {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 39px;
  min-height: 22px;
  padding: 2px 6px;
  border: 1px solid #8b748a;
  border-radius: 999px;
  background: transparent;
  color: #8b748a;
  font-size: 10px;
}

.payment-copy-button:hover,
.payment-switch-button:hover {
  background: var(--coffee-mint);
}

.payment-instructions {
  padding: 2px 0 8px;
  color: var(--recharge-instruction);
  font-size: 10px;
  line-height: 1.45;
}

.payment-step-two {
  padding: 8px 0;
  color: var(--coffee-red-dark);
}

.payment-step-two strong {
  color: #333333;
}

.payment-receipt {
  display: block;
  width: 100%;
  min-height: 142px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #cfcfcf;
  border-radius: 7px;
  outline: 0;
  color: #444444;
  font-size: 11px;
  line-height: 1.45;
}

.payment-receipt:focus {
  border-color: var(--recharge-submit);
  box-shadow: 0 0 0 2px rgba(157, 123, 157, 0.15);
}

.payment-receipt-error {
  min-height: 16px;
  margin: 5px 0 0;
  color: var(--coffee-red-dark);
  font-size: 10px;
}

.payment-submit-button,
.result-primary-button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--recharge-submit);
  color: var(--coffee-white);
  font-size: 15px;
}

.payment-submit-button:hover,
.result-primary-button:hover {
  filter: brightness(0.94);
}

.payment-warning {
  margin-top: 12px;
  padding: 9px;
  border-radius: 4px;
  background: var(--recharge-warning);
  color: #ad6a6a;
  font-size: 9px;
  line-height: 1.35;
}

.recharge-result-page {
  display: grid;
  min-height: calc(100dvh - 24px);
  place-items: center;
}

.recharge-result-card {
  display: grid;
  width: min(100%, 330px);
  justify-items: center;
  gap: 12px;
  padding: 28px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  text-align: center;
}

.result-icon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.result-icon.is-pending {
  background: #ece8f5;
  color: #2c8bf2;
  animation: recharge-spin 1.15s linear infinite;
}

.result-icon.is-success {
  background: var(--coffee-mint);
  color: var(--coffee-leaf-dark);
}

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

.recharge-result-card h1,
.recharge-result-card p {
  margin: 0;
}

.recharge-result-card h1 {
  color: var(--coffee-brown);
  font-size: 18px;
}

.recharge-result-card p {
  color: var(--coffee-muted-dark);
  font-size: 12px;
  line-height: 1.45;
}

.result-secondary-button {
  min-height: 38px;
  padding: 6px 18px;
  border: 1px solid var(--recharge-submit);
  border-radius: 999px;
  background: transparent;
  color: var(--recharge-submit);
  font-size: 12px;
}

/* Image-only carousel */
.image-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(191, 216, 52, 0.4);
  border-radius: var(--radius-lg);
  background: var(--coffee-ink);
  animation: frameShimmer 4s infinite;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  height: clamp(200px, 50vw, 280px);
  touch-action: pan-y;
  outline: 0;
}

.carousel-viewport:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(198, 40, 40, 0.55);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 680ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.carousel-track.is-dragging {
  transition: none;
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  margin: 0;
  flex: 0 0 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-contrast {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(74, 31, 15, 0.08), transparent 45%, rgba(74, 31, 15, 0.18));
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  transition: width 180ms ease, background-color 180ms ease;
}

.carousel-dot.is-active {
  width: 16px;
  background: var(--coffee-white);
}

/* Quick actions */
.quick-actions {
  padding: 8px;
  border: 1px solid rgba(74, 31, 15, 0.08);
  border-radius: var(--radius-lg);
  background: var(--coffee-white);
  box-shadow: 0 7px 20px rgba(74, 31, 15, 0.07);
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.quick-action {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(74, 31, 15, 0.66);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.quick-action:hover {
  background: var(--coffee-cream);
  color: var(--coffee-brown);
  transform: translateY(-1px);
}

.quick-action-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--coffee-mint);
  color: var(--coffee-leaf-dark);
}

.quick-action-label {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Plans */
.plans-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.section-title-wrap {
  min-width: 0;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title {
  margin: 0;
  color: var(--coffee-brown);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.section-subtitle {
  margin: 4px 0 0;
  color: rgba(74, 31, 15, 0.55);
  font-size: 10px;
  font-weight: 500;
}

.tier-count {
  padding: 3px 6px;
  background: var(--coffee-red);
  color: var(--coffee-white);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.availability-pill {
  gap: 5px;
  padding: 5px 8px;
  background: var(--coffee-mint);
  color: var(--coffee-leaf-dark);
  font-size: 9px;
}

.availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coffee-leaf);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.plan-list {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 10px;
}

.plan-card {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(74, 31, 15, 0.08);
  border-radius: 15px;
  background: var(--coffee-white);
  box-shadow: 0 6px 16px rgba(74, 31, 15, 0.065);
}

.plan-main {
  display: flex;
  gap: 10px;
}

.plan-image-wrap {
  position: relative;
  width: 140px;
  height: 150px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 11px;
  background: var(--coffee-mint);
}

.plan-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quota-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--coffee-leaf-dark);
  font-size: 10px;
  font-weight: 700;
}

.plan-details {
  min-width: 0;
  flex: 1;
}

.plan-title-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.plan-title-row > div {
  min-width: 0;
  flex: 1 1 auto;
}

.plan-category {
  margin: 0 0 4px;
  color: rgba(74, 31, 15, 0.45);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-name {
  overflow: hidden;
  margin: 0;
  color: var(--coffee-brown);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-price {
  margin: 0;
  color: var(--coffee-red);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.plan-stats {
  display: grid;
  gap: 2px;
  margin-top: 6px;
}

.plan-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--coffee-mint);
}

.plan-stat-label,
.plan-stat-value {
  margin: 0;
}

.plan-stat-label {
  color: rgba(74, 31, 15, 0.45);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-stat-value {
  color: var(--coffee-brown);
  font-size: 12px;
  font-weight: 700;
}

.plan-stat-value.is-positive {
  color: var(--coffee-leaf-dark);
}

.plan-action {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  color: var(--coffee-white);
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
  z-index: 1;
}

.plan-action:hover {
  transform: translateY(-1px);
}

.plan-action--red,
.plan-action--green {
  background: linear-gradient(135deg, #1f8a70 0%, #bfd834 100%);
  box-shadow: 0 4px 15px rgba(31, 138, 112, 0.4);
}

.plan-action--red::after,
.plan-action--green::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-150%) skewX(-25deg);
  animation: shineSweep 3s infinite;
  z-index: -1;
}

.plan-action--red:hover,
.plan-action--green:hover {
  box-shadow: 0 6px 20px rgba(191, 216, 52, 0.6);
}

.plan-action--disabled {
  background: var(--coffee-disabled);
  color: var(--coffee-disabled-ink);
}

/* Share view */
.share-page {
  display: grid;
  gap: 10px;
}

.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.page-title {
  margin: 0;
  color: var(--coffee-brown);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.page-topbar-note {
  color: var(--coffee-leaf-dark);
  font-size: 10px;
  font-weight: 700;
}

.content-card {
  border: 1px solid rgba(74, 31, 15, 0.08);
  border-radius: var(--radius-lg);
  background: var(--coffee-white);
  box-shadow: var(--shadow-card);
}

.share-intro {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.share-intro h2,
.share-intro p {
  margin: 0;
}

.share-intro h2 {
  color: var(--coffee-leaf-dark);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.share-intro p {
  color: var(--coffee-muted);
  font-size: 12px;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--coffee-leaf-dark);
  font-size: 10px;
  font-weight: 700;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--coffee-mint);
}

.progress-value {
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--coffee-leaf);
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px;
}

.qr-label {
  margin: 0;
  color: var(--coffee-ink);
  font-size: 12px;
  font-weight: 600;
}

.qr-image {
  width: 164px;
  height: 164px;
  object-fit: contain;
}

.referral-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.copy-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--coffee-mint);
}

.copy-value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--coffee-leaf-dark);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: 26px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--coffee-leaf);
  color: var(--coffee-white);
  font-size: 9px;
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease;
}

.copy-button:hover {
  background: var(--coffee-leaf-dark);
  transform: translateY(-1px);
}

.commission-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.commission-copy {
  margin: 0;
  color: var(--coffee-ink);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.commission-table {
  display: grid;
  gap: 2px;
}

.commission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--coffee-ink);
  font-size: 10px;
}

.commission-row:nth-child(odd) {
  background: rgba(185, 110, 66, 0.2);
}

.commission-row:nth-child(even) {
  background: rgba(234, 222, 210, 0.82);
}

.commission-row strong {
  font-weight: 700;
}

/* Bottom navigation */
.bottom-nav {
  position: relative;
  z-index: 12;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 80px;
  align-items: center;
  padding: 10px 8px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(74, 31, 15, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -7px 20px rgba(74, 31, 15, 0.06);
  backdrop-filter: blur(12px);
}

.bottom-nav:empty {
  display: none;
}

.nav-item {
  display: flex;
  min-width: 48px;
  min-height: 64px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: rgba(74, 31, 15, 0.45);
  font-size: 11px;
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-item:hover {
  background: var(--coffee-cream);
  color: var(--coffee-brown);
}

.nav-item.is-active {
  color: var(--coffee-leaf-dark);
}

.nav-label {
  line-height: 1;
}

.nav-indicator {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.nav-item.is-active .nav-indicator {
  background: var(--coffee-leaf);
}

/* Completed showcase pages */
.page-topbar-with-back {
  gap: 10px;
}

.page-topbar-with-back .page-title {
  min-width: 0;
  flex: 1;
}

.page-back-button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--coffee-line);
  border-radius: 50%;
  background: var(--coffee-white);
  color: var(--coffee-brown);
  box-shadow: 0 4px 12px rgba(74, 31, 15, 0.08);
}

.page-back-button:hover {
  border-color: var(--coffee-red);
  color: var(--coffee-red);
}

.eyebrow {
  display: inline-flex;
  color: var(--coffee-caramel);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.text-button {
  min-height: 38px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--coffee-mint);
  color: var(--coffee-brown);
  font-size: 10px;
  font-weight: 700;
}

.text-button:hover {
  background: var(--coffee-mocha);
}

.page-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form-field-label {
  display: block;
  margin: 16px 16px 7px;
  color: var(--coffee-brown);
  font-size: 11px;
  font-weight: 700;
}

.text-input,
.money-input {
  width: calc(100% - 32px);
  min-height: 50px;
  margin: 0 16px;
  border: 1px solid var(--coffee-line);
  border-radius: 12px;
  outline: 0;
  background: var(--coffee-cream);
  color: var(--coffee-ink);
  font-size: 14px;
}

.text-input {
  padding: 12px 14px;
}

.text-input:focus,
.money-input:focus-within {
  border-color: var(--coffee-red);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.text-input[readonly] {
  color: var(--coffee-muted);
  background: var(--coffee-mint);
}

.money-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.money-input span {
  color: var(--coffee-caramel);
  font-size: 12px;
  font-weight: 800;
}

.money-input input {
  min-width: 0;
  flex: 1;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--coffee-ink);
  font-size: 15px;
}

.withdraw-form .field-error,
.personal-form .field-error {
  margin: 5px 16px 0;
}

.choice-fieldset {
  margin: 18px 16px 0;
  padding: 0;
  border: 0;
}

.choice-fieldset legend {
  margin-bottom: 8px;
  color: var(--coffee-brown);
  font-size: 11px;
  font-weight: 700;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choice-button {
  display: grid;
  min-height: 88px;
  align-content: center;
  justify-items: start;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--coffee-line);
  border-radius: 12px;
  background: var(--coffee-white);
  color: var(--coffee-brown);
  text-align: left;
}

.choice-button span {
  color: var(--coffee-caramel);
}

.choice-button strong {
  font-size: 11px;
}

.choice-button small {
  color: var(--coffee-muted);
  font-size: 9px;
}

.choice-button:hover,
.choice-button.is-selected {
  border-color: var(--coffee-red);
  background: var(--coffee-mint);
}

.fee-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--coffee-mint);
  color: var(--coffee-muted-dark);
  font-size: 11px;
}

.fee-summary strong {
  color: var(--coffee-brown);
  font-size: 16px;
}

.withdraw-form > .primary-button,
.personal-form > .form-actions,
.withdraw-form > .form-status {
  margin-right: 16px;
  margin-left: 16px;
  width: calc(100% - 32px);
}

.withdraw-form > .primary-button {
  margin-top: 4px;
}

.success-card,
.download-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.success-card h2,
.success-card p,
.download-card h2,
.download-card p {
  margin: 0;
}

.success-card h2,
.download-card h2 {
  color: var(--coffee-brown);
  font-size: 20px;
}

.success-card p,
.download-card p {
  color: var(--coffee-muted-dark);
  font-size: 12px;
  line-height: 1.5;
}

.success-card .primary-button,
.success-card .secondary-button,
.download-card .primary-button {
  width: 100%;
}

.success-icon,
.download-icon,
.service-icon,
.channel-icon,
.bonus-task-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--coffee-mint);
  color: var(--coffee-red);
}

.success-icon {
  border-radius: 50%;
  background: #f4ded7;
}

.bonus-task-list,
.faq-list,
.channel-list {
  display: grid;
  gap: 12px;
}

.bonus-task-card {
  padding: 16px;
}

.bonus-task-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.bonus-task-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.bonus-task-heading h2,
.bonus-task-heading p {
  margin: 0;
}

.bonus-task-heading h2 {
  color: var(--coffee-brown);
  font-size: 14px;
}

.bonus-task-heading p {
  margin-top: 4px;
  color: var(--coffee-muted);
  font-size: 10px;
  line-height: 1.4;
}

.bonus-task-heading > strong {
  color: var(--coffee-red);
  font-size: 12px;
  white-space: nowrap;
}

.bonus-progress {
  height: 8px;
  margin: 14px 0 12px 54px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--coffee-mocha);
}

.bonus-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--coffee-red);
}

.bonus-task-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-left: 54px;
  color: var(--coffee-muted);
  font-size: 10px;
}

.bonus-claim-button {
  width: auto;
  min-width: 106px;
  min-height: 38px;
  margin: 0;
  padding: 7px 12px;
  font-size: 10px;
}

.message-list {
  display: grid;
  overflow: hidden;
}

.message-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--coffee-line);
  background: var(--coffee-white);
  color: var(--coffee-brown);
  text-align: left;
}

.message-row:last-child {
  border-bottom: 0;
}

.message-row:hover,
.message-row.is-selected {
  background: var(--coffee-mint);
}

.message-row.is-unread .message-copy strong {
  color: var(--coffee-red);
}

.message-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--coffee-mint);
  color: var(--coffee-caramel);
}

.message-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.message-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-copy small {
  color: var(--coffee-muted);
  font-size: 10px;
}

.message-read-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--coffee-line);
}

.message-detail {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.message-detail h2,
.message-detail p {
  margin: 0;
}

.message-detail h2 {
  color: var(--coffee-brown);
  font-size: 18px;
}

.message-detail p {
  color: var(--coffee-muted-dark);
  font-size: 12px;
  line-height: 1.55;
}

.personal-form {
  padding: 18px 0;
}

.personal-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px 16px;
  border-bottom: 1px solid var(--coffee-line);
}

.personal-profile img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
}

.personal-profile h2,
.personal-profile p {
  margin: 0;
}

.personal-profile h2 {
  color: var(--coffee-brown);
  font-size: 16px;
}

.personal-profile p {
  margin-top: 4px;
  color: var(--coffee-muted);
  font-size: 10px;
}

.form-grid {
  display: grid;
  gap: 2px;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.form-actions > * {
  flex: 1;
}

.details-page,
.income-details-page {
  gap: 14px;
}

.detail-list-card {
  overflow: hidden;
}

.detail-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 0;
}

.detail-card-header h2,
.detail-card-header p {
  margin: 0;
}

.detail-card-header h2 {
  color: var(--coffee-brown);
  font-size: 16px;
}

.detail-card-header p {
  margin-top: 4px;
  color: var(--coffee-muted);
  font-size: 10px;
}

.detail-filter-tabs {
  margin-bottom: 10px;
}

.transaction-list {
  display: grid;
  margin: 0;
  padding: 0 14px 14px;
  list-style: none;
}

.transaction-row {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--coffee-line);
  background: transparent;
  color: var(--coffee-brown);
  text-align: left;
}

.transaction-list li:last-child .transaction-row {
  border-bottom: 0;
}

.transaction-row:hover,
.transaction-row.is-selected {
  background: var(--coffee-cream);
}

.transaction-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--coffee-mint);
  color: var(--coffee-caramel);
}

.transaction-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.transaction-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-copy small {
  color: var(--coffee-muted);
  font-size: 9px;
}

.transaction-side {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: 0 0 auto;
}

.transaction-side > strong {
  color: var(--coffee-red);
  font-size: 11px;
}

.transaction-side .status-pill {
  font-size: 8px;
}

.transaction-detail {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.detail-heading h2 {
  margin: 4px 0 0;
  color: var(--coffee-brown);
  font-size: 17px;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  border-bottom: 1px solid var(--coffee-line);
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: var(--coffee-muted);
  font-size: 10px;
}

.detail-list dd {
  margin: 0;
  color: var(--coffee-brown);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.about-hero {
  display: grid;
  overflow: hidden;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
}

.about-hero img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.about-hero > div {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.about-hero h2,
.about-hero p {
  margin: 0;
}

.about-hero h2 {
  color: var(--coffee-brown);
  font-size: 20px;
}

.about-hero p,
.copy-card p {
  color: var(--coffee-muted-dark);
  font-size: 11px;
  line-height: 1.55;
}

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

.about-stats article {
  display: grid;
  gap: 4px;
  padding: 14px 8px;
  text-align: center;
}

.about-stats strong {
  color: var(--coffee-red);
  font-size: 20px;
}

.about-stats span {
  color: var(--coffee-muted);
  font-size: 9px;
}

.copy-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.copy-card h2,
.copy-card p {
  margin: 0;
}

.copy-card h2 {
  color: var(--coffee-brown);
  font-size: 16px;
}

.version-label {
  color: var(--coffee-caramel);
  font-size: 10px;
  font-weight: 700;
}

.service-intro,
.channel-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
}

.service-intro h2,
.service-intro p,
.channel-intro h2,
.channel-intro p {
  margin: 0;
}

.service-intro h2,
.channel-intro h2 {
  color: var(--coffee-brown);
  font-size: 17px;
}

.service-intro p,
.channel-intro p {
  margin-top: 4px;
  color: var(--coffee-muted);
  font-size: 11px;
  line-height: 1.45;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--coffee-brown);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.faq-question:hover,
.faq-item.is-open .faq-question {
  background: var(--coffee-mint);
}

.faq-item > p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--coffee-muted-dark);
  font-size: 11px;
  line-height: 1.55;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
}

.channel-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
}

.channel-copy {
  min-width: 0;
  flex: 1;
}

.channel-copy h2,
.channel-copy p {
  margin: 0;
}

.channel-copy h2 {
  color: var(--coffee-brown);
  font-size: 13px;
}

.channel-copy p {
  margin: 3px 0;
  color: var(--coffee-muted);
  font-size: 9px;
}

.channel-copy strong {
  overflow: hidden;
  color: var(--coffee-caramel);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card .copy-button {
  flex: 0 0 auto;
}

.download-card .release-notes {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: var(--coffee-mint);
  text-align: left;
}

.release-notes strong {
  color: var(--coffee-brown);
  font-size: 11px;
}

.release-notes span {
  color: var(--coffee-muted-dark);
  font-size: 10px;
  line-height: 1.45;
}

.quick-action-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 22px;
  line-height: 1;
}

.status-pill--pending {
  background: #f8e5d5;
  color: var(--coffee-caramel);
}

.status-pill--success,
.status-pill--available {
  background: #f0e0d4;
  color: var(--coffee-leaf-dark);
}

.status-pill--failed {
  background: #f8dedd;
  color: var(--coffee-red-dark);
}

.status-pill--unread {
  background: var(--coffee-red);
  color: var(--coffee-white);
}

/* Shared empty-state app styles */
.placeholder-page {
  display: grid;
  min-height: 510px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.placeholder-page .placeholder-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--coffee-mint);
  color: var(--coffee-leaf-dark);
}

.placeholder-page h2,
.placeholder-page p {
  margin: 0;
}

.placeholder-page h2 {
  color: var(--coffee-brown);
  font-size: 20px;
}

.placeholder-page p {
  max-width: 260px;
  color: var(--coffee-muted);
  font-size: 12px;
  line-height: 1.5;
}

.secondary-button {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--coffee-line);
  border-radius: 999px;
  background: var(--coffee-white);
  color: var(--coffee-brown);
  font-size: 12px;
  font-weight: 700;
}

.secondary-button:hover {
  border-color: var(--coffee-leaf);
  color: var(--coffee-leaf-dark);
}

/* Language sheet and toast */
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(39, 24, 18, 0.42);
}

.language-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-max));
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--coffee-white);
  box-shadow: 0 -14px 36px rgba(39, 24, 18, 0.18);
  animation: sheet-in 220ms ease-out both;
}

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

.sheet-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #d9d0c7;
}

.language-options {
  display: grid;
  border-top: 1px solid #f0ece7;
}

.language-option {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid #f0ece7;
  background: transparent;
  color: var(--coffee-ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.language-option:last-child {
  border-bottom: 0;
}

.language-option:hover,
.language-option:focus-visible {
  background: var(--coffee-cream);
}

.language-flag {
  font-size: 20px;
  line-height: 1;
}

.toast {
  position: fixed;
  z-index: 60;
  bottom: 88px;
  left: 50%;
  max-width: min(340px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--coffee-brown);
  color: var(--coffee-white);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 2px solid var(--coffee-red);
  outline-offset: 3px;
}

/* Mobile visibility scale: larger type, controls, and touch targets */
@media (max-width: 699px) {
  .auth-view {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .app-content {
    padding: 14px;
  }

  .page-content {
    gap: 18px;
  }

  .page-topbar {
    min-height: 42px;
  }

  .page-title {
    font-size: 20px;
  }

  .page-topbar-note {
    font-size: 11px;
  }

  .content-card-heading {
    padding: 16px 16px 0;
  }

  .content-card-heading h2 {
    font-size: 17px;
  }

  .content-card-heading p {
    font-size: 11px;
  }

  .summary-grid {
    gap: 12px;
  }

  .metric-card {
    min-height: 128px;
    gap: 10px;
    padding: 16px;
  }

  .metric-card span {
    font-size: 11px;
  }

  .metric-card strong {
    font-size: 23px;
  }

  .metric-card small {
    font-size: 10px;
  }

  .filter-tabs {
    gap: 5px;
    margin: 16px;
    padding: 5px;
    border-radius: 14px;
  }

  .filter-tab {
    min-height: 42px;
    padding: 7px 5px;
    border-radius: 10px;
    font-size: 11px;
  }

  .activity-list,
  .team-member-list {
    padding: 0 16px 16px;
  }

  .activity-row,
  .team-member-row {
    min-height: 66px;
    gap: 12px;
  }

  .activity-icon,
  .member-avatar {
    width: 40px;
    height: 40px;
  }

  .activity-copy,
  .member-copy {
    gap: 4px;
  }

  .activity-copy strong,
  .member-copy strong,
  .activity-amount {
    font-size: 12px;
  }

  .activity-copy small,
  .member-copy small {
    font-size: 10px;
  }

  .member-status {
    padding: 5px 8px;
    font-size: 9px;
  }

  .no-data-state {
    gap: 10px;
    padding: 34px 22px 38px;
  }

  .no-data-icon {
    width: 48px;
    height: 48px;
  }

  .no-data-state h3 {
    font-size: 15px;
  }

  .no-data-state p {
    font-size: 11px;
  }

  .team-summary {
    grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .team-summary-mark {
    width: 64px;
    height: 64px;
  }

  .team-summary-stat {
    gap: 5px;
    padding-left: 12px;
  }

  .team-summary-stat span {
    font-size: 10px;
  }

  .team-summary-stat strong {
    font-size: 19px;
  }

  .team-level-tabs {
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
  }

  .team-level-tab {
    min-height: 52px;
    gap: 4px;
    padding: 7px 4px;
    border-radius: 9px;
  }

  .team-level-tab strong {
    font-size: 13px;
  }

  .team-level-tab small {
    font-size: 9px;
  }

  .account-summary {
    gap: 14px;
    padding: 18px;
  }

  .account-avatar {
    width: 72px;
    height: 72px;
    font-size: 27px;
  }

  .account-identity {
    gap: 6px;
  }

  .account-identity strong {
    font-size: 18px;
  }

  .account-identity > span {
    font-size: 11px;
  }

  .account-progress {
    height: 8px;
  }

  .account-balance article {
    min-height: 88px;
    gap: 6px;
  }

  .account-balance strong {
    font-size: 19px;
  }

  .account-balance span {
    font-size: 11px;
  }

  .account-action-grid {
    gap: 10px;
  }

  .account-action {
    min-height: 82px;
    gap: 10px;
    padding: 12px;
    font-size: 12px;
  }

  .account-action-icon {
    width: 36px;
    height: 36px;
  }

  .share-page {
    gap: 12px;
  }

  .share-intro {
    gap: 14px;
    padding: 20px;
  }

  .share-intro h2 {
    font-size: 19px;
  }

  .share-intro p {
    font-size: 14px;
  }

  .progress-row {
    font-size: 11px;
  }

  .progress-track {
    height: 9px;
  }

  .qr-card {
    gap: 12px;
    padding: 20px;
  }

  .qr-label {
    font-size: 14px;
  }

  .qr-image {
    width: 176px;
    height: 176px;
  }

  .referral-card {
    gap: 12px;
    padding: 14px;
  }

  .copy-row {
    gap: 10px;
    padding: 11px 12px;
  }

  .copy-value {
    font-size: 11px;
  }

  .copy-button {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 10px;
  }

  .commission-card {
    gap: 12px;
    padding: 16px;
  }

  .commission-copy {
    font-size: 12px;
  }

  .commission-row {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .image-carousel {
    border-radius: 20px;
  }

  .carousel-viewport {
    height: clamp(220px, 58vw, 280px);
  }

  .carousel-dots {
    bottom: 14px;
    gap: 7px;
    padding: 6px 9px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .carousel-dot.is-active {
    width: 18px;
  }

  .quick-actions {
    padding: 10px;
  }

  .quick-action-grid {
    gap: 5px;
  }

  .quick-action {
    min-height: 68px;
    gap: 7px;
    padding: 8px 2px;
    border-radius: 12px;
    font-size: 11px;
  }

  .quick-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .quick-action-icon svg,
  .account-action-icon svg,
  .activity-icon svg,
  .member-avatar svg,
  .team-summary-mark svg,
  .no-data-icon svg,
  .field-icon-button svg,
  .language-trigger svg,
  .primary-button svg,
  .plan-action svg,
  .deposit-channel-button svg,
  .recharge-pay-button svg,
  .payment-submit-button svg,
  .result-primary-button svg,
  .result-secondary-button svg,
  .recharge-back svg,
  .recharge-plain-back svg {
    width: 22px;
    height: 22px;
  }

  .plans-section {
    gap: 12px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-subtitle {
    font-size: 11px;
  }

  .tier-count,
  .availability-pill {
    font-size: 10px;
  }

  .plan-list {
    gap: 12px;
  }

  .plan-card {
    padding: 12px;
    border-radius: 17px;
  }

  .plan-main {
    gap: 12px;
  }

  .plan-image-wrap {
    width: 96px;
    height: 100px;
    border-radius: 12px;
  }

  .quota-badge {
    top: 7px;
    left: 7px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .plan-category {
    font-size: 10px;
  }

  .plan-name,
  .plan-price {
    min-width: 0;
    font-size: 15px;
  }

  .plan-price {
    flex: 0 0 auto;
  }

  .plan-stats {
    gap: 3px;
    margin-top: 7px;
  }

  .plan-stat {
    min-height: 21px;
    padding: 4px 8px;
    border-radius: 7px;
  }

  .plan-stat-label {
    font-size: 8px;
  }

  .plan-stat-value {
    font-size: 10px;
  }

  .plan-action {
    min-height: 40px;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
  }

  .primary-button {
    min-height: 54px;
    font-size: 14px;
  }

  .secondary-button {
    min-height: 48px;
    padding: 10px 18px;
    font-size: 13px;
  }

  .bottom-nav {
    min-height: var(--mobile-nav-height);
    padding: 8px 5px max(8px, env(safe-area-inset-bottom));
  }

  .nav-item {
    min-width: 56px;
    min-height: 60px;
    gap: 4px;
    padding: 4px 3px;
    font-size: 11px;
  }

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

  .nav-indicator {
    width: 24px;
    height: 3px;
  }

  .auth-card {
    margin: -46px var(--space-4) var(--space-8);
    padding: 22px;
  }

  .auth-tab {
    min-height: 48px;
    padding-bottom: 14px;
    font-size: 15px;
  }

  .form-field {
    min-height: 64px;
  }

  .form-field input {
    min-height: 62px;
    font-size: 17px;
  }

  .phone-prefix {
    font-size: 14px;
  }

  .field-icon-button,
  .language-trigger {
    width: var(--mobile-touch-target);
    height: var(--mobile-touch-target);
  }

  .field-error {
    font-size: 12px;
  }

  .account-switch {
    font-size: 13px;
  }

  .recharge-entry-content {
    gap: 20px;
    padding: 22px 22px 38px;
  }

  .recharge-topbar {
    min-height: 50px;
  }

  .recharge-topbar h1 {
    font-size: 17px;
  }

  .recharge-back,
  .recharge-plain-back,
  .recharge-topbar-spacer {
    width: var(--mobile-touch-target);
    height: var(--mobile-touch-target);
  }

  .recharge-amount-card {
    padding: 22px;
  }

  .recharge-amount-grid {
    gap: 12px;
  }

  .recharge-amount-option {
    min-height: 70px;
    border-radius: 15px;
    font-size: 24px;
  }

  .recharge-balance-card {
    gap: 16px;
    padding: 20px 22px 22px;
  }

  .recharge-balance-card p {
    font-size: 19px;
  }

  .recharge-selected-amount {
    min-height: 70px;
    padding: 0 16px;
    font-size: 24px;
  }

  .recharge-selected-amount strong {
    font-size: 24px;
  }

  .recharge-channel-card {
    padding: 22px;
  }

  .deposit-channel-button {
    min-height: 64px;
    gap: 10px;
    padding: 0 16px;
    font-size: 16px;
  }

  .deposit-hot-badge {
    width: 30px;
    height: 30px;
    font-size: 8px;
  }

  .recharge-pay-button {
    min-height: 56px;
    font-size: 17px;
  }

  .recharge-helper-copy {
    font-size: 15px;
  }

  .recharge-methods-heading {
    min-height: 64px;
    padding: 0 18px;
    font-size: 19px;
  }

  .recharge-methods-heading strong {
    font-size: 19px;
  }

  .recharge-methods-card {
    padding: 12px 18px 20px;
  }

  .recharge-methods-card h1 {
    padding: 14px 12px 22px;
    font-size: 14px;
  }

  .recharge-method-row {
    grid-template-columns: 44px 1fr 24px;
    min-height: 68px;
    gap: 10px;
    padding: 0 12px;
    font-size: 16px;
  }

  .recharge-provider-icon {
    width: 42px;
    height: 42px;
  }

  .recharge-reminder {
    margin: 20px 12px 0;
    padding: 12px;
    font-size: 12px;
  }

  .checkout-redirect-page {
    padding: 28px;
  }

  .checkout-redirect-card {
    width: min(100%, 320px);
    gap: 12px;
    padding: 34px 26px;
  }

  .checkout-redirect-spinner {
    width: 56px;
    height: 56px;
  }

  .checkout-redirect-eyebrow {
    font-size: 12px;
  }

  .checkout-redirect-card h1 {
    font-size: 20px;
  }

  .checkout-redirect-card p:last-child {
    font-size: 13px;
  }

  .recharge-payment-page,
  .recharge-result-page {
    padding: 16px 16px 30px;
  }

  .payment-topline {
    min-height: 36px;
    padding: 0 14px;
    font-size: 11px;
  }

  .payment-detail-card {
    margin-top: 12px;
    padding: 18px;
  }

  .payment-step-heading {
    gap: 11px;
    font-size: 14px;
  }

  .payment-order-row {
    min-height: 52px;
    padding: 0 18px;
    font-size: 19px;
  }

  .payment-order-row strong {
    font-size: 19px;
  }

  .payment-account-list {
    gap: 13px;
    padding: 12px 18px 5px;
  }

  .payment-account-row {
    min-height: 50px;
    padding-right: 62px;
  }

  .payment-account-row span {
    font-size: 12px;
  }

  .payment-account-row strong {
    font-size: 14px;
  }

  .payment-copy-button,
  .payment-switch-button {
    min-width: 48px;
    min-height: 30px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .payment-instructions,
  .checkout-instructions {
    padding: 4px 0 10px;
    font-size: 12px;
  }

  .checkout-warning {
    font-size: 11px;
    line-height: 1.4;
  }

  .checkout-logo--method {
    width: 38px;
    height: 38px;
  }

  .checkout-logo--topline,
  .payment-provider-mark,
  .checkout-provider-mark {
    width: 48px;
    height: 48px;
  }

  .recharge-method-chevron svg {
    width: 22px;
    height: 22px;
  }

  .payment-receipt {
    min-height: 160px;
    padding: 16px;
    font-size: 12px;
  }

  .payment-receipt-error {
    font-size: 11px;
  }

  .payment-submit-button,
  .result-primary-button {
    min-height: 48px;
    font-size: 17px;
  }

  .payment-warning {
    padding: 11px;
    font-size: 11px;
  }

  .recharge-result-card {
    width: min(100%, 350px);
    gap: 14px;
    padding: 32px 26px;
  }

  .result-icon {
    width: 68px;
    height: 68px;
  }

  .recharge-result-card h1 {
    font-size: 20px;
  }

  .recharge-result-card p {
    font-size: 14px;
  }

  .result-secondary-button {
    min-height: 44px;
    padding: 8px 20px;
    font-size: 14px;
  }

  .page-back-button {
    width: 44px;
    height: 44px;
  }

  .text-button {
    min-height: 42px;
    font-size: 11px;
  }

  .form-field-label {
    margin-right: 18px;
    margin-left: 18px;
    font-size: 12px;
  }

  .text-input,
  .money-input {
    width: calc(100% - 36px);
    min-height: 54px;
    margin-right: 18px;
    margin-left: 18px;
    font-size: 15px;
  }

  .money-input input {
    height: 52px;
    font-size: 16px;
  }

  .choice-fieldset {
    margin-right: 18px;
    margin-left: 18px;
  }

  .choice-button {
    min-height: 96px;
    padding: 12px;
  }

  .withdraw-form .field-error,
  .personal-form .field-error {
    margin-right: 18px;
    margin-left: 18px;
  }

  .fee-summary {
    margin-right: 18px;
    margin-left: 18px;
    font-size: 12px;
  }

  .withdraw-form > .primary-button,
  .personal-form > .form-actions,
  .withdraw-form > .form-status {
    width: calc(100% - 36px);
    margin-right: 18px;
    margin-left: 18px;
  }

  .bonus-task-card {
    padding: 18px;
  }

  .bonus-task-heading {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .bonus-task-icon {
    width: 48px;
    height: 48px;
  }

  .bonus-progress,
  .bonus-task-footer {
    margin-left: 60px;
  }

  .bonus-task-heading h2 {
    font-size: 15px;
  }

  .bonus-task-heading p,
  .bonus-task-footer {
    font-size: 11px;
  }

  .bonus-claim-button {
    min-height: 42px;
    font-size: 11px;
  }

  .message-row {
    min-height: 78px;
    padding: 12px 16px;
  }

  .message-icon {
    width: 42px;
    height: 42px;
  }

  .message-copy strong {
    font-size: 13px;
  }

  .message-copy small {
    font-size: 11px;
  }

  .personal-form {
    padding: 20px 0;
  }

  .personal-profile {
    padding-right: 20px;
    padding-left: 20px;
  }

  .personal-profile img {
    width: 64px;
    height: 64px;
  }

  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero img {
    min-height: 220px;
  }

  .about-hero > div {
    padding: 20px;
  }

  .about-stats {
    gap: 10px;
  }

  .about-stats article {
    padding: 16px 8px;
  }

  .about-stats strong {
    font-size: 22px;
  }

  .service-intro,
  .channel-intro {
    padding: 20px;
  }

  .faq-question {
    min-height: 64px;
    padding-right: 18px;
    padding-left: 18px;
    font-size: 13px;
  }

  .faq-item > p {
    padding-right: 18px;
    padding-bottom: 18px;
    padding-left: 18px;
    font-size: 12px;
  }

  .channel-card {
    padding: 16px;
  }

  .channel-icon {
    width: 48px;
    height: 48px;
  }

  .channel-copy h2 {
    font-size: 14px;
  }

  .channel-copy p,
  .channel-copy strong {
    font-size: 10px;
  }

  .download-card {
    padding: 28px 22px;
  }

  .download-card h2 {
    font-size: 21px;
  }

  .download-card p {
    font-size: 13px;
  }
}

@media (max-width: 339px) {
  .plan-main {
    gap: 9px;
  }

  .plan-image-wrap {
    width: 82px;
    height: 88px;
  }

  .plan-name,
  .plan-price {
    font-size: 13px;
  }

  .plan-name {
    white-space: normal;
    line-height: 1.15;
  }

  .plan-stat {
    padding-right: 6px;
    padding-left: 6px;
  }
}

@media (min-width: 700px) {
  .site-background {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 24px;
  }

  .app-shell {
    min-height: min(900px, calc(100dvh - 48px));
    max-height: calc(100dvh - 48px);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(74, 31, 15, 0.18);
  }

  .view {
    min-height: 100%;
  }

  .auth-view,
  .app-view {
    height: min(900px, calc(100dvh - 48px));
    min-height: 0;
  }

  .app-view {
    overflow: hidden;
  }

  .auth-view {
    overflow-y: auto;
    scrollbar-width: none;
  }

  .modal-layer {
    padding: 24px;
  }

  .language-sheet {
    border-radius: 24px;
  }
}

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

/* Announcement Modal */
.announcement-box {
  position: relative;
  z-index: 101;
  width: 90%;
  max-width: 440px;
  margin: auto;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  text-align: center;
  padding-bottom: 24px;
}

.announcement-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 102;
}

.announcement-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 22px;
  margin: 24px 0 12px;
}

.announcement-content {
  padding: 12px 24px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
  color: #333;
}

.ann-highlight {
  color: #d32f2f;
}

.announcement-join {
  background: #008000;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  cursor: pointer;
  width: calc(100% - 48px);
}

/* ── Live payout ticker (home) ───────────────────────────── */
.payout-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 16px 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17, 63, 50, 0.94), rgba(31, 138, 112, 0.94));
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(31, 138, 112, 0.18);
}
.payout-ticker-tag {
  flex: none;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #bfd834;
  color: #113f32;
  box-shadow: 0 0 6px rgba(191, 216, 52, 0.5);
}
.payout-ticker-viewport { flex: 1 1 auto; overflow: hidden; }
.payout-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  animation: payout-ticker-scroll 55s linear infinite;
  will-change: transform;
}
.payout-ticker:hover .payout-ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; animation: textGlow 3s infinite; }
.ticker-dot {
  width: 6px; height: 6px;
  background: #bfd834;
  animation: pulseDiamond 2s infinite;
}
.ticker-item strong { font-weight: 700; color: #ffffff; }
.ticker-text { opacity: .9; }
.ticker-item em { font-style: normal; font-weight: 800; color: #bfd834; text-shadow: 0 0 4px rgba(191, 216, 52, 0.5); }

@keyframes payout-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .payout-ticker-track { animation: none; }
}

/* ── Recharge proof upload ───────────────────────────────── */
.payment-step-three { margin-top: 14px; }
.proof-upload { display: grid; gap: 10px; }
.proof-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.proof-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1.5px dashed rgba(31,138,112,0.4);
  border-radius: 14px;
  background: #f0f8f4;
  color: #1f8a70;
  font-size: 0.82rem;
  cursor: pointer;
}
.proof-input:focus-visible + .proof-drop { outline: 2px solid #1f8a70; }
.proof-drop-icon { font-size: 1.1rem; }
.proof-drop-text { word-break: break-word; }
.proof-preview {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #c3d6ce;
  background: #fff;
}
.payment-submit-button:disabled { opacity: .55; cursor: not-allowed; }

/* ─────────────────────────────────────────────────────────────
   Milk-white surface + gold-green shine theme (overrides)
   ───────────────────────────────────────────────────────────── */
:root {
  --milk-white: #fffefb;
  --milk-soft: #f7f5f0;
  --gold: #d4af37;
  --gold-light: #f5e08a;
  --green-deep: #0f5d33;
  --green-mid: #1c8a4b;
  --green-glow: #35d07f;
  --gradient-goldgreen: linear-gradient(135deg, #0f5d33 0%, #1c8a4b 35%, #d4af37 78%, #f5e08a 100%);
  --shadow-gold: 0 10px 24px rgba(28, 138, 75, 0.28), 0 2px 0 rgba(245, 224, 138, 0.55) inset;
}

body {
  background:
    radial-gradient(circle at 50% -10%, #ffffff, transparent 34rem),
    var(--milk-soft);
}

.app-shell,
.site-background {
  background: var(--milk-white);
}

.content-card,
.page-content > section,
.plan-card {
  background-color: var(--milk-white);
}

/* Shiny gold-green buttons */
.primary-button,
.plan-action--green,
.recharge-pay-button,
.vip-claim-button,
.deposit-channel-button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.65);
  background: var(--gradient-goldgreen);
  background-size: 200% 100%;
  color: #fffdf5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  box-shadow: var(--shadow-gold);
  animation: goldgreen-pan 6s ease-in-out infinite alternate;
}

.primary-button:hover,
.plan-action--green:hover,
.recharge-pay-button:hover,
.vip-claim-button:hover {
  background: var(--gradient-goldgreen);
  background-size: 200% 100%;
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(28, 138, 75, 0.34);
}

.primary-button::after,
.plan-action--green::after,
.recharge-pay-button::after,
.vip-claim-button::after,
.deposit-channel-button::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-18deg);
  animation: shine-sweep 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine-sweep {
  0%   { left: -45%; }
  55%  { left: 125%; }
  100% { left: 125%; }
}

@keyframes goldgreen-pan {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* plan-action--red now shares the gold-green theme */
.plan-action--red {
  background: linear-gradient(135deg, #1f8a70 0%, #bfd834 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 4px 15px rgba(31, 138, 112, 0.4);
}

/* Danger / logout remain a subdued amber-red so they feel 'destructive' */
.danger-button,
.logout-button {
  background: linear-gradient(135deg, #c0392b, #922b21);
  border: 1px solid rgba(192, 57, 43, 0.5);
  color: #fff;
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.25);
}

/* Shiny carousel frame */
.image-carousel {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--milk-white), var(--milk-white)) padding-box,
    var(--gradient-goldgreen) border-box;
  box-shadow: 0 14px 30px rgba(15, 93, 51, 0.18);
}

.image-carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: carousel-shine 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes carousel-shine {
  0%, 60% { transform: translateX(-100%); }
  100%    { transform: translateX(100%); }
}

/* Live withdraw ticker — shiny green/gold diamond */
.payout-ticker {
  background: linear-gradient(90deg, #073a20, #0f5d33 45%, #1c8a4b 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 10px 22px rgba(15, 93, 51, 0.24);
  color: #f3fff8;
}

.payout-ticker-tag {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #123;
  box-shadow: 0 0 10px rgba(245, 224, 138, 0.6);
}

.ticker-item {
  font-weight: 700;
  color: #dff6e8;
  text-shadow: 0 0 10px rgba(53, 208, 127, 0.35);
}

.ticker-item strong { color: #f5e08a; text-shadow: 0 0 10px rgba(245, 224, 138, 0.55); }
.ticker-item em { color: #7ef2b0; text-shadow: 0 0 10px rgba(53, 208, 127, 0.6); }
.ticker-text { color: #cdeedd; opacity: 1; }

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--green-glow), var(--gold-light));
  box-shadow: 0 0 8px rgba(53, 208, 127, 0.8);
}

/* Recharge amount grid — smaller, tidier */
.recharge-amount-card,
.recharge-amount-card + * { }

.recharge-amount-grid,
.recharge-page .recharge-amount-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.recharge-amount-option,
.recharge-page .recharge-amount-option {
  min-height: 44px;
  padding: 8px 4px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  border: 1px solid rgba(15, 93, 51, 0.14);
  background: var(--milk-soft);
  color: #1a1a1a;
}

.recharge-amount-option.is-selected,
.recharge-page .recharge-amount-option.is-selected {
  background: var(--gradient-goldgreen);
  border-color: rgba(212, 175, 55, 0.7);
  color: #fffdf5;
  box-shadow: var(--shadow-gold);
}

@media (min-width: 380px) {
  .recharge-amount-option,
  .recharge-page .recharge-amount-option {
    font-size: 14px;
    min-height: 48px;
  }
}

/* Quick action icons get a gold-green badge */
.quick-action-icon {
  background: var(--gradient-goldgreen);
  color: #fffdf5;
  box-shadow: 0 6px 14px rgba(15, 93, 51, 0.22);
}
.quick-action-icon svg { stroke: #fffdf5; }

/* ── Global bold text ────────────────────────────────────────── */
body, .app-shell, .page-content {
  font-weight: 500;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* ── Gift Code Center ────────────────────────────────────────── */
.gift-page .content-card { margin-bottom: 16px; }
.gift-code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f6f0;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(13, 51, 38, 0.05);
}
.gift-code-main { display: flex; flex-direction: column; gap: 4px; }
.gift-code-main strong { font-size: 15px; color: var(--brand-dark); font-weight: 700; letter-spacing: 0.5px; }
.gift-code-main span { font-size: 13px; color: var(--brand); font-weight: 600; }
.gift-code-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gift-code-side small { font-size: 11px; color: #666; font-weight: 500; }
.gift-code-side button { padding: 4px 8px; font-size: 12px; }
.gift-list-divider {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* ── Withdrawal Fee Breakdown ─────────────────────────────────── */
.wd-fee-breakdown {
  background: #f8f6f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(13, 51, 38, 0.08);
}
.wd-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}
.wd-fee-row:last-child { margin-bottom: 0; }
.wd-fee-row strong { color: var(--brand-dark); font-weight: 600; }
.wd-fee-row strong.is-negative { color: #d9453c; }
.wd-fee-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0,0,0,0.1);
}
.wd-fee-total span { font-weight: 600; color: var(--brand-dark); }
.wd-fee-total strong { font-size: 16px; color: #107540; font-weight: 700; }
p, li, span, label, td, th, dt, dd, small {
  font-weight: 500;
}
strong, b {
  font-weight: 700;
}
.page-title, .content-card-heading h2, .section-title {
  font-weight: 800;
}

/* ── Withdraw page (new layout) ─────────────────────────────── */
.withdraw-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
}

/* Balance card */
.wd-balance-card {
  padding: 18px 20px;
  border-radius: 16px;
}
.wd-balance-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--coffee-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.wd-balance-amount {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #1f8a70;
  letter-spacing: -0.5px;
}

/* Amount input card */
.wd-amount-card {
  padding: 18px 20px;
  border-radius: 16px;
}
.wd-section-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--coffee-ink);
  margin-bottom: 12px;
}
.wd-money-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--coffee-line);
  border-radius: 12px;
  background: var(--coffee-outer);
}
.wd-money-prefix {
  font-size: 14px;
  font-weight: 800;
  color: var(--coffee-ink);
  flex-shrink: 0;
}
.wd-money-input input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--coffee-ink);
  outline: none;
}
.wd-money-input input::placeholder {
  color: var(--coffee-muted);
  font-weight: 500;
}

/* Receiving account card */
.wd-account-card {
  padding: 18px 20px;
  border-radius: 16px;
}
.wd-account-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.wd-account-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f8a70, #bfd834);
  color: #fff;
  flex-shrink: 0;
}
.wd-account-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}
.wd-account-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--coffee-ink);
  flex: 1;
}
.wd-add-bank-btn {
  background: none;
  border: 1.5px solid #1f8a70;
  border-radius: 8px;
  color: #1f8a70;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.wd-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--coffee-line);
  gap: 10px;
}
.wd-account-key {
  font-size: 13px;
  font-weight: 600;
  color: var(--coffee-muted);
}
.wd-account-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--coffee-ink);
  text-align: right;
}
.wd-account-bank {
  color: var(--coffee-ink);
  font-weight: 800;
}

/* Confirm button */
.wd-confirm-btn {
  border-radius: 14px;
  min-height: 54px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
}
.wd-confirm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Instructions card */
.wd-instructions-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
}
.wd-instructions-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--coffee-ink);
  margin: 0 0 10px;
}
.wd-instructions-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.wd-instructions-list li {
  font-size: 13px;
  font-weight: 500;
  color: var(--coffee-muted);
  line-height: 1.5;
}

/* ── Team level tabs – crystal-clear visibility ──────────────── */
.team-level-tabs {
  background: #0d3326 !important;
  border-color: #1f8a70 !important;
}
.team-level-tab {
  background: rgba(255,255,255,0.06) !important;
  color: #c8edd8 !important;
  font-weight: 700 !important;
}
.team-level-tab strong {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #e8faf0 !important;
  letter-spacing: 0.04em;
}
.team-level-tab small {
  font-size: 9px !important;
  font-weight: 600 !important;
  color: #a8d8bc !important;
  opacity: 1 !important;
}
.team-level-tab:hover,
.team-level-tab.is-active {
  background: linear-gradient(135deg, #1f8a70, #bfd834) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(31,138,112,0.4) !important;
}
.team-level-tab.is-active strong,
.team-level-tab:hover strong {
  color: #fff !important;
}
.team-level-tab.is-active small,
.team-level-tab:hover small {
  color: rgba(255,255,255,0.85) !important;
}

/* ─── Full-screen spinner overlay ─────────────────────────────── */
#ncf-spinner {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 252, 240, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
#ncf-spinner.is-visible {
  opacity: 1;
  pointer-events: all;
}
.ncf-spinner-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(180, 148, 40, 0.20);
  border-top-color: #b89428;
  animation: ncf-spin 0.75s linear infinite;
  box-shadow: 0 0 20px rgba(184, 148, 40, 0.30);
}
@keyframes ncf-spin {
  to { transform: rotate(360deg); }
}

/* ─── Inline loader (inside pages while data loads) ───────────── */
.inline-loader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  color: #9a8060;
  font-size: 0.88rem;
}
.inline-loader-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(180, 148, 40, 0.18);
  border-top-color: #b89428;
  animation: ncf-spin 0.75s linear infinite;
  flex-shrink: 0;
}

/* ── Precision glass refresh ─────────────────────────────────────
   A quieter, sharper surface system that keeps the coffee-green
   identity while making the hero and application feel connected.
   ─────────────────────────────────────────────────────────────── */
:root {
  --coffee-outer: #eaf3ef;
  --coffee-cream: #f5faf7;
  --coffee-card: rgba(255, 255, 255, 0.94);
  --coffee-line: #d3e5dc;
  --shadow-card: 0 12px 28px rgba(15, 93, 51, 0.09);
  --shadow-float: 0 22px 52px rgba(15, 93, 51, 0.16);
  --radius-xl: 22px;
  --radius-lg: 17px;
  --radius-md: 13px;
  --radius-sm: 9px;
}

html,
body {
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 255, 255, 0.96), transparent 34rem),
    linear-gradient(145deg, #edf7f2 0%, #f7faf7 52%, #eaf3ef 100%);
}

.site-background {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.76), transparent 28rem),
    transparent;
}

.app-shell {
  border-right: 1px solid rgba(15, 93, 51, 0.08);
  border-left: 1px solid rgba(15, 93, 51, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 249, 0.98));
  box-shadow: 0 0 60px rgba(15, 93, 51, 0.08);
}

.auth-view {
  background:
    linear-gradient(180deg, rgba(225, 241, 233, 0.2), rgba(247, 252, 249, 0.98) 46%),
    var(--coffee-cream);
}

.auth-hero {
  height: clamp(294px, 78vw, 358px);
  background: #0d3326;
}

.auth-hero > img {
  transform: scale(1.035) translateZ(0);
  filter: saturate(1.08) contrast(1.08) brightness(0.96);
}

.auth-hero-shade {
  background:
    linear-gradient(180deg, rgba(7, 35, 24, 0.02), rgba(7, 35, 24, 0.12) 42%, rgba(7, 35, 24, 0.68) 100%);
}

.auth-hero::after {
  position: absolute;
  right: -2px;
  bottom: -54px;
  left: -2px;
  z-index: 2;
  height: 112px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 252, 249, 0), rgba(247, 252, 249, 0.96) 82%);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 47%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 47%, #000 100%);
}

.language-trigger {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(248, 255, 251, 0.86);
  box-shadow: 0 12px 28px rgba(6, 37, 24, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.auth-badge {
  bottom: -43px;
  width: 88px;
  height: 88px;
  padding: 4px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 30px rgba(6, 37, 24, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.auth-badge-inner {
  border-color: var(--gold);
}

.auth-card {
  margin: -70px var(--space-4) var(--space-8);
  border-color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    var(--shadow-float);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.auth-tabs {
  border-bottom-color: rgba(15, 93, 51, 0.14);
}

.auth-tab {
  min-height: 44px;
  padding-bottom: 13px;
  color: #789187;
}

.auth-tab-indicator {
  height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--gold));
}

.form-field {
  min-height: 58px;
  border-bottom-color: rgba(15, 93, 51, 0.16);
}

.form-field:focus-within {
  border-bottom-color: var(--green-mid);
  box-shadow: 0 1px 0 var(--green-mid);
}

.form-field input {
  font-weight: 500;
}

.primary-button,
.plan-action--green,
.recharge-pay-button,
.vip-claim-button,
.deposit-channel-button {
  border-radius: 13px;
  background: linear-gradient(135deg, #0f5d33 0%, #1c8a4b 74%, #6fae3e 100%);
  background-size: 100% 100%;
  box-shadow: 0 12px 24px rgba(15, 93, 51, 0.22);
  animation: none;
}

.primary-button::after,
.plan-action--green::after,
.recharge-pay-button::after,
.vip-claim-button::after,
.deposit-channel-button::after {
  opacity: 0.16;
  animation: none;
}

.primary-button:hover,
.plan-action--green:hover,
.recharge-pay-button:hover,
.vip-claim-button:hover,
.deposit-channel-button:hover {
  background: linear-gradient(135deg, #0b4f2b 0%, #167642 74%, #659f36 100%);
  box-shadow: 0 15px 30px rgba(15, 93, 51, 0.28);
  filter: none;
  transform: translateY(-1px);
}

.app-view {
  background:
    linear-gradient(180deg, rgba(247, 252, 249, 0.98), rgba(238, 247, 242, 0.98)),
    var(--coffee-cream);
}

.app-content {
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(213, 235, 224, 0.42), transparent 16rem),
    transparent;
}

.page-content {
  gap: 14px;
}

.page-topbar {
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid rgba(15, 93, 51, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 18px rgba(15, 93, 51, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.content-card,
.metric-card,
.plan-card,
.quick-actions,
.account-balance,
.recharge-amount-card,
.recharge-balance-card,
.recharge-channel-card,
.recharge-methods-card,
.detail-list-card {
  border-color: rgba(15, 93, 51, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    var(--shadow-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.metric-card,
.plan-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-card:hover,
.plan-card:hover {
  border-color: rgba(28, 138, 75, 0.24);
  box-shadow: 0 16px 30px rgba(15, 93, 51, 0.13);
  transform: translateY(-2px);
}

.image-carousel {
  border-color: rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 32px rgba(15, 93, 51, 0.15);
}

.quick-actions {
  padding: 9px;
}

.quick-action {
  border-radius: 11px;
}

.quick-action:hover {
  background: rgba(225, 241, 233, 0.78);
}

.quick-action-icon,
.activity-icon,
.member-avatar,
.no-data-icon,
.success-icon,
.download-icon,
.service-icon,
.channel-icon,
.bonus-task-icon {
  background: linear-gradient(145deg, rgba(226, 241, 233, 0.96), rgba(196, 228, 211, 0.76));
  box-shadow: 0 8px 16px rgba(15, 93, 51, 0.08);
}

.account-action,
.choice-button,
.recharge-amount-option,
.recharge-method-row,
.text-input,
.money-input,
.wd-money-input,
.page-back-button {
  border-radius: 12px;
}

.account-action,
.choice-button,
.recharge-amount-option {
  border-color: rgba(15, 93, 51, 0.12);
  background: rgba(239, 248, 243, 0.82);
}

.account-action:hover,
.choice-button:hover,
.choice-button.is-selected,
.recharge-amount-option:hover {
  border-color: rgba(28, 138, 75, 0.34);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 20px rgba(15, 93, 51, 0.08);
}

.filter-tabs,
.team-level-tabs {
  border-radius: 12px;
}

.bottom-nav {
  margin: 0 10px 10px;
  min-height: 74px;
  border: 1px solid rgba(15, 93, 51, 0.12);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.9) inset, 0 12px 28px rgba(15, 93, 51, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav-item {
  border-radius: 11px;
}

.nav-item:hover {
  background: rgba(225, 241, 233, 0.74);
}

.page-back-button,
.text-button,
.copy-button,
.recharge-amount-option,
.recharge-method-row {
  transition: transform 160ms ease, color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.page-back-button:hover {
  border-color: var(--green-mid);
  color: var(--green-deep);
  transform: translateY(-1px);
}

:is(button, input, select, textarea, a):focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.5);
  outline-offset: 2px;
}

@media (max-width: 699px) {
  .auth-card {
    margin-top: -66px;
    padding: 20px;
  }

  .app-content {
    padding: 12px;
  }

  .bottom-nav {
    margin-right: 8px;
    margin-bottom: 8px;
    margin-left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .metric-card,
  .plan-card,
  .primary-button,
  .page-back-button {
    transition: none;
  }
}

/* Quick actions need strong visual weight: they are the primary shortcuts
   on the home screen, not secondary text links. */
.quick-action {
  min-height: 76px;
  border: 1px solid transparent;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
  box-shadow: 0 8px 16px rgba(15, 93, 51, 0.12);
}

.quick-action:nth-child(1) {
  background: linear-gradient(145deg, #0f5d33, #1c8a4b);
}

.quick-action:nth-child(2) {
  background: linear-gradient(145deg, #a94735, #d26943);
}

.quick-action:nth-child(3) {
  background: linear-gradient(145deg, #b98410, #d7ad35);
  color: #3d2d05;
  text-shadow: none;
}

.quick-action:nth-child(4) {
  background: linear-gradient(145deg, #075e54, #15947c);
}

.quick-action:nth-child(5) {
  background: linear-gradient(145deg, #28527a, #3f83a4);
}

.quick-action-icon,
.quick-action:nth-child(3) .quick-action-icon {
  background: rgba(255, 255, 255, 0.2);
  color: currentColor;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.quick-action:hover,
.quick-action:nth-child(1):hover,
.quick-action:nth-child(2):hover,
.quick-action:nth-child(3):hover,
.quick-action:nth-child(4):hover,
.quick-action:nth-child(5):hover {
  color: inherit;
  filter: brightness(1.06) saturate(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 93, 51, 0.2);
}

/* ── Five-color platform system ─────────────────────────────────
   Green confirms, coral withdraws, gold rewards, teal supports,
   and blue shares or navigates. Keep the colors solid enough to
   preserve hierarchy on every page. */
:root {
  --theme-green: #0f6b3c;
  --theme-green-bright: #1f9a55;
  --theme-coral: #c94f43;
  --theme-coral-bright: #e47759;
  --theme-gold: #c79518;
  --theme-gold-bright: #e0b83b;
  --theme-teal: #087c70;
  --theme-teal-bright: #19a590;
  --theme-blue: #2d6394;
  --theme-blue-bright: #4a91b3;
  --theme-ink: #163d31;
  --theme-border: rgba(22, 61, 49, 0.14);
}

/* Crisp shared cards */
.content-card,
.metric-card,
.plan-card,
.quick-actions,
.account-balance,
.recharge-amount-card,
.recharge-balance-card,
.recharge-channel-card,
.recharge-methods-card,
.detail-list-card,
.wd-instructions-card {
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(22, 61, 49, 0.09);
}

.content-card-heading h2,
.page-title,
.section-title,
.detail-card-header h2,
.copy-card h2,
.about-hero h2,
.service-intro h2,
.channel-intro h2 {
  color: var(--theme-ink);
}

.metric-card,
.plan-card,
.content-card,
.account-balance,
.recharge-amount-card,
.recharge-balance-card,
.recharge-channel-card,
.recharge-methods-card,
.detail-list-card {
  position: relative;
  overflow: hidden;
}

.metric-card::before,
.plan-card::before,
.content-card::before,
.account-balance::before,
.recharge-amount-card::before,
.recharge-balance-card::before,
.recharge-channel-card::before,
.recharge-methods-card::before,
.detail-list-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--theme-green);
}

/* Card accents rotate through the same colors as the quick actions. */
.metric-card:nth-child(2)::before,
.plan-card:nth-child(2)::before,
.share-page .qr-card::before,
.account-page .account-summary::before {
  background: var(--theme-blue);
}

.plan-card:nth-child(3)::before,
.share-page .referral-card::before,
.gift-page .gift-redeem-card::before {
  background: var(--theme-gold);
}

.plan-card:nth-child(4)::before,
.team-page .content-card::before,
.service-page .content-card::before {
  background: var(--theme-teal);
}

.plan-card:nth-child(5)::before,
.withdraw-page .content-card::before,
.withdraw-page .wd-instructions-card::before {
  background: var(--theme-coral);
}

.plan-card:nth-child(odd)::before {
  background: var(--theme-green);
}

.metric-card strong,
.account-balance strong,
.wd-balance-amount {
  color: var(--theme-green);
}

.metric-card--accent {
  background: linear-gradient(145deg, rgba(31, 154, 85, 0.12), rgba(255, 255, 255, 0.88));
}

/* All meaningful buttons use a solid semantic color, with sharp edges. */
.primary-button,
.plan-action--green,
.recharge-pay-button,
.vip-claim-button,
.deposit-channel-button,
.payment-submit-button,
.result-primary-button,
.wd-confirm-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--theme-green), var(--theme-green-bright));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 107, 60, 0.24);
}

.primary-button:hover,
.plan-action--green:hover,
.recharge-pay-button:hover,
.vip-claim-button:hover,
.deposit-channel-button:hover,
.payment-submit-button:hover,
.result-primary-button:hover,
.wd-confirm-btn:hover {
  background: linear-gradient(135deg, #0b5a32, #178b4a);
  filter: none;
  transform: translateY(-2px);
}

.secondary-button,
.result-secondary-button {
  border: 1px solid var(--theme-blue);
  border-radius: 11px;
  background: rgba(45, 99, 148, 0.1);
  color: var(--theme-blue);
  font-weight: 800;
}

.secondary-button:hover,
.result-secondary-button:hover {
  background: var(--theme-blue);
  color: #fff;
}

.danger-button,
.logout-button,
.withdraw-req-action,
.wd-add-bank-btn {
  border: 1px solid rgba(201, 79, 67, 0.5);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--theme-coral), var(--theme-coral-bright));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(201, 79, 67, 0.18);
}

.wd-add-bank-btn {
  padding: 6px 10px;
}

.text-button,
.copy-button,
.payment-copy-button,
.payment-switch-button {
  border: 1px solid rgba(45, 99, 148, 0.32);
  border-radius: 10px;
  background: var(--theme-blue);
  color: #fff;
  font-weight: 800;
}

.text-button:hover,
.copy-button:hover,
.payment-copy-button:hover,
.payment-switch-button:hover {
  background: var(--theme-blue-bright);
  color: #fff;
}

.bonus-claim-button,
.recharge-amount-option.is-selected,
.choice-button.is-selected {
  border-color: var(--theme-gold);
  background: linear-gradient(135deg, var(--theme-gold), var(--theme-gold-bright));
  color: #3b2b05;
  box-shadow: 0 7px 16px rgba(199, 149, 24, 0.22);
}

.recharge-amount-option:hover,
.choice-button:hover {
  border-color: var(--theme-gold);
  background: rgba(224, 184, 59, 0.16);
  color: var(--theme-ink);
}

.recharge-method-row:hover,
.account-action:hover,
.transaction-row:hover,
.message-row:hover {
  border-color: rgba(8, 124, 112, 0.3);
  background: rgba(8, 124, 112, 0.08);
}

.filter-tabs,
.team-level-tabs {
  border: 1px solid rgba(8, 124, 112, 0.2);
  background: rgba(8, 124, 112, 0.09);
}

.filter-tab.is-active,
.team-level-tab.is-active {
  background: var(--theme-teal);
  color: #fff;
  box-shadow: 0 5px 12px rgba(8, 124, 112, 0.24);
}

.filter-tab.is-active {
  color: #fff;
}

.filter-tab:hover {
  background: rgba(8, 124, 112, 0.18);
  color: var(--theme-teal);
}

.page-back-button {
  border: 1px solid var(--theme-blue);
  border-radius: 11px;
  background: rgba(45, 99, 148, 0.1);
  color: var(--theme-blue);
}

.page-back-button:hover {
  border-color: var(--theme-blue);
  background: var(--theme-blue);
  color: #fff;
}

/* Supporting icon blocks follow the same five-color rhythm. */
.activity-icon,
.member-avatar,
.message-icon,
.transaction-icon,
.success-icon,
.download-icon,
.service-icon,
.channel-icon,
.bonus-task-icon,
.no-data-icon,
.team-summary-mark,
.wd-account-icon {
  background: rgba(8, 124, 112, 0.13);
  color: var(--theme-teal);
}

.success-icon {
  background: rgba(31, 154, 85, 0.16);
  color: var(--theme-green);
}

.download-icon,
.bonus-task-icon {
  background: rgba(199, 149, 24, 0.16);
  color: var(--theme-gold);
}

.service-icon {
  background: rgba(8, 124, 112, 0.16);
  color: var(--theme-teal);
}

.channel-icon,
.transaction-icon {
  background: rgba(45, 99, 148, 0.14);
  color: var(--theme-blue);
}

.message-icon {
  background: rgba(201, 79, 67, 0.14);
  color: var(--theme-coral);
}

.status-pill--pending {
  background: rgba(199, 149, 24, 0.18);
  color: #8a6509;
}

.status-pill--success,
.status-pill--available {
  background: rgba(31, 154, 85, 0.16);
  color: var(--theme-green);
}

.status-pill--failed {
  background: rgba(201, 79, 67, 0.16);
  color: #a83e35;
}

/* Rules modal: readable, direct, and consistent with the platform theme. */
.announcement-box {
  border: 1px solid rgba(8, 124, 112, 0.18);
  border-radius: 14px;
  background: var(--milk-white);
  box-shadow: 0 20px 48px rgba(22, 61, 49, 0.24);
}

.announcement-title {
  margin: 0;
  padding: 20px 48px 16px;
  background: linear-gradient(135deg, var(--theme-teal), var(--theme-blue));
  color: #fff;
  font-size: 18px;
}

.announcement-content {
  display: grid;
  gap: 9px;
  padding: 18px 22px 8px;
  color: var(--theme-ink);
  font-size: 12px;
  line-height: 1.45;
}

.announcement-content p {
  margin: 0;
  padding: 9px 10px;
  border-left: 3px solid var(--theme-green);
  border-radius: 6px;
  background: rgba(31, 154, 85, 0.08);
}

.announcement-content p:nth-child(2) {
  border-left-color: var(--theme-teal);
  background: rgba(8, 124, 112, 0.08);
}

.announcement-content p:nth-child(3),
.announcement-content p:nth-child(4) {
  border-left-color: var(--theme-coral);
  background: rgba(201, 79, 67, 0.08);
}

.announcement-content p:nth-child(5) {
  border-left-color: var(--theme-gold);
  background: rgba(199, 149, 24, 0.1);
}

.announcement-content p:nth-child(6) {
  border-left-color: var(--theme-blue);
  background: rgba(45, 99, 148, 0.08);
}

.ann-highlight {
  color: var(--theme-coral);
  font-weight: 800;
}

.announcement-close {
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
}

.announcement-join {
  width: calc(100% - 44px);
  margin: 8px 22px 22px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--theme-green), var(--theme-green-bright));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(15, 107, 60, 0.22);
}

.announcement-join:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.announcement-emoji {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  line-height: 1;
}

/* Available VIP plans use the same bold green action treatment as Recharge. */
.plan-action--red {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--theme-green), var(--theme-green-bright));
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 107, 60, 0.24);
  animation: none;
}

.plan-action--red:hover {
  background: linear-gradient(135deg, #0b5a32, #178b4a);
  box-shadow: 0 12px 24px rgba(15, 107, 60, 0.3);
  filter: none;
  transform: translateY(-2px);
}

/* Keep the home carousel stack aligned to the quick-action grid. */
.home-page .image-carousel,
.home-page .payout-ticker {
  width: 100%;
  max-width: 100%;
}

.home-page .payout-ticker {
  min-height: 46px;
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border-right: 1px solid rgba(212, 175, 55, 0.5);
  border-left: 1px solid rgba(212, 175, 55, 0.5);
}

.home-page .payout-ticker-tag {
  padding: 5px 9px;
  font-size: 10px;
}

.home-page .ticker-item {
  gap: 7px;
  font-size: 13px;
}

@media (max-width: 699px) {
  .home-page .payout-ticker {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

/* Remaining controls and data surfaces use the same semantic color rhythm. */
.icon-button,
.field-icon-button,
.recharge-back,
.recharge-plain-back {
  border: 1px solid rgba(8, 124, 112, 0.28);
  border-radius: 10px;
  background: rgba(8, 124, 112, 0.1);
  color: var(--theme-teal);
}

.icon-button:hover,
.field-icon-button:hover,
.recharge-back:hover,
.recharge-plain-back:hover {
  background: var(--theme-teal);
  color: #fff;
}

.faq-question:hover,
.faq-item.is-open .faq-question {
  background: rgba(8, 124, 112, 0.1);
  color: var(--theme-teal);
}

.nav-item {
  font-weight: 800;
}

.nav-item.is-active {
  background: rgba(45, 99, 148, 0.1);
  color: var(--theme-blue);
}

.nav-item:nth-child(1).is-active .nav-indicator {
  background: var(--theme-green);
}

.nav-item:nth-child(2).is-active .nav-indicator {
  background: var(--theme-coral);
}

.nav-item:nth-child(3).is-active .nav-indicator {
  background: var(--theme-gold);
}

.nav-item:nth-child(4).is-active .nav-indicator {
  background: var(--theme-teal);
}

.nav-item:nth-child(5).is-active .nav-indicator {
  background: var(--theme-blue);
}

.account-action {
  border: 1px solid transparent;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 7px 15px rgba(22, 61, 49, 0.12);
}

.account-action .account-action-icon {
  background: rgba(255, 255, 255, 0.2);
  color: currentColor;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.account-action:nth-child(4n + 1) {
  background: linear-gradient(145deg, var(--theme-green), var(--theme-green-bright));
}

.account-action:nth-child(4n + 2) {
  background: linear-gradient(145deg, var(--theme-coral), var(--theme-coral-bright));
}

.account-action:nth-child(4n + 3) {
  background: linear-gradient(145deg, var(--theme-gold), var(--theme-gold-bright));
  color: #3d2d05;
}

.account-action:nth-child(4n) {
  background: linear-gradient(145deg, var(--theme-teal), var(--theme-teal-bright));
}

.account-action:hover {
  background: inherit;
  color: inherit;
  filter: brightness(1.06) saturate(1.05);
  box-shadow: 0 11px 20px rgba(22, 61, 49, 0.2);
  transform: translateY(-2px);
}

.team-level-tab:nth-child(1).is-active {
  background: var(--theme-green) !important;
}

.team-level-tab:nth-child(2).is-active {
  background: var(--theme-gold) !important;
  color: #3d2d05 !important;
}

.team-level-tab:nth-child(3).is-active {
  background: var(--theme-blue) !important;
}

.recharge-method-row,
.payment-account-row,
.transaction-row,
.message-row {
  border-color: rgba(22, 61, 49, 0.12);
}

.recharge-method-row:nth-child(3n + 1) .recharge-provider-icon {
  border-color: rgba(31, 154, 85, 0.32);
  background: rgba(31, 154, 85, 0.12);
  color: var(--theme-green);
}

.recharge-method-row:nth-child(3n + 2) .recharge-provider-icon {
  border-color: rgba(199, 149, 24, 0.32);
  background: rgba(199, 149, 24, 0.12);
  color: var(--theme-gold);
}

.recharge-method-row:nth-child(3n) .recharge-provider-icon {
  border-color: rgba(45, 99, 148, 0.32);
  background: rgba(45, 99, 148, 0.12);
  color: var(--theme-blue);
}

.progress-value {
  background: linear-gradient(90deg, var(--theme-teal), var(--theme-blue));
}

.copy-row,
.fee-summary,
.wd-fee-breakdown,
.release-notes,
.recharge-reminder,
.payment-warning {
  border: 1px solid rgba(199, 149, 24, 0.18);
  background: rgba(199, 149, 24, 0.09);
}

.commission-row:nth-child(odd) {
  background: rgba(8, 124, 112, 0.1);
}

.commission-row:nth-child(even) {
  background: rgba(45, 99, 148, 0.08);
}

.commission-row strong,
.copy-value {
  color: var(--theme-blue);
}

.transaction-side > strong {
  color: var(--theme-green);
}

.message-row.is-unread .message-copy strong {
  color: var(--theme-coral);
}

.form-field-label,
.wd-section-label,
.choice-fieldset legend {
  color: var(--theme-ink);
  font-weight: 800;
}

.text-input,
.money-input,
.wd-money-input,
.payment-receipt,
.proof-drop {
  border-color: rgba(22, 61, 49, 0.18);
  border-radius: 10px;
  background: rgba(245, 250, 247, 0.86);
}

.text-input:focus,
.money-input:focus-within,
.wd-money-input:focus-within,
.payment-receipt:focus,
.proof-input:focus-visible + .proof-drop {
  border-color: var(--theme-teal);
  box-shadow: 0 0 0 3px rgba(8, 124, 112, 0.14);
}

.recharge-selected-amount {
  border: 1px solid rgba(31, 154, 85, 0.18);
  background: rgba(31, 154, 85, 0.09);
}

.wd-fee-row strong.is-negative {
  color: var(--theme-coral);
}

.wd-fee-total strong {
  color: var(--theme-green);
}

@media (max-width: 699px) {
  .account-action {
    min-height: 76px;
  }

  .announcement-content {
    padding-right: 16px;
    padding-left: 16px;
  }
}
