@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@500;600;700;800&family=Noto+Sans+Bengali:wght@500;600;700;800&display=swap');

:root {
  /* Tiya Green Core Brand Palette */
  --brand-primary: #00B074;
  --brand-primary-hover: #009663;
  --brand-primary-active: #008054;
  --brand-tint: #E8F8F2;
  --brand-tint-hover: #D4F2E6;
  --brand-forest-ink: #093322;
  --brand-accent: #10B981;
  --brand-glow: rgba(0, 176, 116, 0.20);
  --border-brand: rgba(0, 176, 116, 0.28);

  /* Semantic Status Colors */
  --color-success: #00B074;
  --color-success-bg: #E8F8F2;
  --color-success-text: #093322;
  --color-success-border: rgba(0, 176, 116, 0.35);

  --color-pending: #F59E0B;
  --color-pending-bg: #FEF3C7;
  --color-pending-text: #92400E;
  --color-pending-border: #FCD34D;

  --color-danger: #EF4444;
  --color-danger-bg: #FEE2E2;
  --color-danger-text: #991B1B;
  --color-danger-border: #FCA5A5;

  --color-info: #0284C7;
  --color-info-bg: #E0F2FE;
  --color-info-text: #0369A1;
  --color-info-border: #BAE6FD;

  /* Typography Stack */
  --font: "Noto Sans", "Noto Sans Bengali", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-bn: "Noto Sans Bengali", "Noto Sans", sans-serif;
  --mono: "Noto Sans", "Noto Sans Bengali", ui-monospace, monospace;

  /* Surface & Base - Light First (Default) */
  --bg: #F4F7F5;
  --bg-2: #EBF0ED;
  --surface: #FFFFFF;
  --surface-2: #F8FAF9;
  --surface-elevated: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --line: rgba(9, 51, 34, 0.08);
  --line-strong: rgba(0, 176, 116, 0.28);
  --invert: #00B074;
  --invert-ink: #FFFFFF;
  --danger: #EF4444;
  --warn: #F59E0B;
  --ok: #00B074;
  --info: #0284C7;
  --shadow: 0 2px 10px rgba(9, 51, 34, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 16px -2px rgba(9, 51, 34, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-modal: 0 20px 48px -8px rgba(9, 51, 34, 0.22);
  --radius: 14px;
  --nav: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] {
  --bg: #F4F7F5;
  --bg-2: #EBF0ED;
  --surface: #FFFFFF;
  --surface-2: #F8FAF9;
  --surface-elevated: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --line: rgba(9, 51, 34, 0.08);
  --line-strong: rgba(0, 176, 116, 0.28);
  --invert: #00B074;
  --invert-ink: #FFFFFF;
  --nav: rgba(255, 255, 255, 0.95);
  --shadow: 0 2px 10px rgba(9, 51, 34, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 16px -2px rgba(9, 51, 34, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-modal: 0 20px 48px -8px rgba(9, 51, 34, 0.22);
  --ok: #00B074;
  --danger: #EF4444;
  --warn: #F59E0B;
  --info: #0284C7;
}

[data-theme="dark"] {
  --bg: #08110D;
  --bg-2: #0D1A14;
  --surface: #11231B;
  --surface-2: #162E24;
  --surface-elevated: #1B382C;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(0, 176, 116, 0.35);
  --invert: #00B074;
  --invert-ink: #FFFFFF;
  --danger: #EF4444;
  --warn: #F59E0B;
  --ok: #10B981;
  --info: #38BDF8;
  --brand-forest-ink: #E8F8F2;
  --nav: rgba(13, 26, 20, 0.94);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-modal: 0 24px 48px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,255,255,0.08), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="bn"], html[lang="bn"] body {
  font-family: var(--font-bn);
  font-weight: 600;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  opacity: 0.5;
  z-index: 0;
}

[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

button, .btn, .chip, .quick-btn, .tab, .icon-btn, .refresh-btn, .filter-trigger,
a.btn, a.chip, a.quick-btn, a.tab, a.icon-btn, a.refresh-btn, a.list-item,
.admin-btn, .plan-card {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

button, .btn, .chip, .quick-btn, .tab, .refresh-btn, .filter-trigger,
a.btn, a.chip, .admin-btn {
  font-weight: 700;
}

.app-shell {
  width: min(430px, 100%);
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px 16px 110px;
  position: relative;
  z-index: 1;
  overflow-x: clip;
  box-sizing: border-box;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.brand span {
  color: var(--muted);
  letter-spacing: 0.01em;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .15s ease;
}

.icon-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-tint);
}

.btn, .chip, .quick-btn, .tab {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .12s ease;
}

.btn:active, .quick-btn:active { transform: scale(0.98); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0;
  max-width: 100%;
  box-sizing: border-box;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px var(--brand-glow);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  box-shadow: 0 4px 14px var(--brand-glow);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-secondary {
  background: var(--brand-tint);
  color: var(--brand-forest-ink);
  border: 1px solid var(--border-brand);
}

.btn-secondary:hover {
  background: var(--brand-tint-hover);
  border-color: var(--brand-primary);
  color: var(--brand-forest-ink);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-dark {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
  border: 1px solid transparent;
}

.btn-danger:hover {
  background: #dc2626;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--brand-primary);
}

.btn-ghost:hover {
  background: var(--brand-tint);
}

.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-pill {
  border-radius: 999px;
}

.btn-block { width: 100%; }

.card, .auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.form-control {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  font-size: 0.92rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

textarea.form-control {
  padding: 12px 14px;
  min-height: 110px;
  resize: vertical;
}

.alert {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.45;
}

.alert-success {
  background: var(--brand-tint);
  color: var(--brand-forest-ink);
  border-color: var(--border-brand);
}

.alert-error {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #FCA5A5;
}

.alert-warn {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FCD34D;
}

.alert-info {
  background: #E0F2FE;
  color: #0369A1;
  border-color: #BAE6FD;
}

.auth, .welcome-screen { padding-top: 36px; }
.auth.entry { padding-top: 56px; }

.auth-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.auth h1, .welcome-screen h1, .page-title {
  font-size: clamp(1.7rem, 7vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 12px;
  max-width: 14ch;
}

.page-title { max-width: none; font-size: 1.45rem; margin-bottom: 16px; }

.lead, .welcome-screen .lead {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 30ch;
  font-weight: 500;
}

.auth-actions { display: grid; gap: 10px; }

.auth-foot {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-foot a { color: var(--text); font-weight: 700; border-bottom: 1px solid var(--line-strong); }
.muted-link a { color: var(--muted); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; }

.welcome-check {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.1rem;
  font-weight: 700;
}

.wallet {
  background: var(--invert);
  color: var(--invert-ink);
  border-radius: 18px;
  padding: 22px 18px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.wallet::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -50px;
  top: -70px;
  border: 1px solid rgba(128,128,128,0.25);
  border-radius: 50%;
}

.wallet .label {
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.65;
  font-weight: 600;
}

.wallet .amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}

.wallet-welcome {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.9;
  margin-bottom: 10px;
}

.wallet-balance-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.refresh-inline {
  flex-shrink: 0;
}

.wallet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.wallet-row a {
  border: 1px solid rgba(128,128,128,0.35);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 20px;
  aspect-ratio: 851 / 315;
  background: var(--surface);
  border: 1px solid var(--line);
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform .4s ease;
}

.banner-slide { min-width: 100%; height: 100%; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }

.banner-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.banner-dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.banner-dots span {
  width: 6px; height: 6px; border-radius: 99px;
  background: rgba(255,255,255,0.35);
}

.banner-dots span.active { width: 18px; background: var(--brand-primary); }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 6px;
  margin-bottom: 26px;
  width: 100%;
}

.quick-btn {
  background: transparent;
  text-align: center;
  color: var(--text);
  min-width: 0;
  max-width: 100%;
  display: block;
}

.quick-ico {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  border-radius: 14px;
  background: var(--brand-tint);
  display: grid;
  place-items: center;
  color: var(--brand-primary);
  border: 1px solid var(--border-brand);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.quick-btn:hover .quick-ico {
  background: var(--brand-tint-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--brand-glow);
}

[data-theme="light"] .quick-ico {
  background: var(--brand-tint);
  color: var(--brand-primary);
}

.quick-ico svg { width: 20px; height: 20px; stroke: var(--brand-primary); }

.quick-btn span {
  display: block;
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.section-head a {
  font-family: var(--font);
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font-weight: 600;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.chip.active {
  background: var(--invert);
  border-color: var(--invert);
  color: var(--invert-ink);
}

.plan-list { display: grid; gap: 10px; }

.plan-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan-thumb {
  width: 104px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}

.plan-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.plan-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 4px;
  line-height: 1.3;
}

.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.badge {
  font-family: var(--font);
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: var(--muted);
}

.badge::after { content: " /"; }
.badge:last-child::after { content: ""; }

.plan-price {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  margin-bottom: 10px;
}

.plan-actions { display: flex; gap: 8px; }
.plan-actions .btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.72rem;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(398px, calc(100% - 20px));
  max-width: calc(100vw - 20px);
  background: var(--nav);
  border: 1px solid var(--border-brand);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px;
  z-index: 40;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(9, 51, 34, 0.08);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1rem;
}

.site-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  background: transparent;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
  line-height: 1.2;
  max-width: 58vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notify-btn { position: relative; }
.notify-btn .dot {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: var(--font);
}

.lang-btn {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.wallet-update {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(128,128,128,0.25);
  position: relative;
  z-index: 1;
}

.wallet-update small {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 3px;
}

.wallet-update strong {
  font-size: 0.78rem;
  font-weight: 650;
}

.refresh-btn {
  border: 1px solid rgba(128,128,128,0.35);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  white-space: nowrap;
}

.filter-trigger {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.product-hero {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
  background: var(--surface);
}

.product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.calc-box {
  margin: 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 12px;
  background: var(--bg);
}

.myplan-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-meta .badge {
  display: inline-block;
  margin-bottom: 4px;
}

.plan-card {
  align-items: start;
}

.plan-card .plan-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.plan-card .badge::after { content: ""; }


.tab {
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  padding: 8px 2px;
  text-align: center;
  font-family: var(--font);
  font-size: 0.65rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  line-height: 1.15;
  transition: all .15s ease;
}

.tab:hover {
  color: var(--brand-primary);
}

.tab svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto 4px;
  flex-shrink: 0;
  transition: transform .15s ease;
}

.tab:hover svg {
  transform: translateY(-1px);
}

.tab.active {
  background: var(--brand-tint);
  color: var(--brand-forest-ink);
  border: 1px solid var(--border-brand);
}

.tab.active svg {
  stroke: var(--brand-primary);
  stroke-width: 2.2;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child { border-bottom: 0; }

.status, .pill, .status-pill {
  font-family: var(--font);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}

.status.pending, .pill.pending, .status-pill.pending,
.status.processing, .pill.processing, .status-pill.processing {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FCD34D;
}

.status.approved, .status.active, .status.paid,
.pill.approved, .pill.active, .pill.paid,
.status-pill.approved, .status-pill.active, .status-pill.paid {
  background: var(--brand-tint);
  color: var(--brand-forest-ink);
  border-color: var(--border-brand);
}

.status.rejected, .status.cancelled, .status.failed, .status.banned,
.pill.rejected, .pill.cancelled, .pill.failed, .pill.banned,
.status-pill.rejected, .status-pill.cancelled, .status-pill.failed, .status-pill.banned {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #FCA5A5;
}

.status.suspended, .pill.suspended, .status-pill.suspended {
  background: #FFEDD5;
  color: #9A3412;
  border-color: #FDBA74;
}

.status.completed, .pill.completed, .status-pill.completed {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 51, 34, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 14px;
}

.modal.open { display: flex; }

.modal-sheet {
  width: min(430px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  padding: 22px 18px 28px;
  box-shadow: var(--shadow-modal);
  animation: sheetUp .24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sheetUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 600px) {
  .modal {
    align-items: center;
  }
  .modal-sheet {
    border-radius: 20px;
    padding: 24px;
  }
}

.modal-sheet h3 {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.modal-sheet p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.copy-box {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0 14px;
  background: var(--bg);
}

.copy-box strong {
  flex: 1;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.admin-layout { max-width: 1100px; margin: 0 auto; padding: 20px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.admin-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 650;
}
.admin-nav a.active { background: var(--invert); color: var(--invert-ink); border-color: var(--invert); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card h4 {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-card strong { font-size: 1.4rem; letter-spacing: -0.04em; }

@media (max-width: 420px) {
  .plan-card { grid-template-columns: 92px 1fr; }
  .plan-thumb { width: 92px; height: 82px; }
}

.quick-btn span,
.tab,
.list-item,
.chip,
.filter-trigger,
.badge,
.page-title,
.plan-title,
.section-head h2 {
  font-weight: 700;
}

html[lang="bn"] .quick-btn span,
html[lang="bn"] .tab,
html[lang="bn"] .list-item,
html[lang="bn"] .brand-name,
html[lang="bn"] .page-title,
html[lang="bn"] .plan-title,
html[lang="bn"] .wallet-welcome,
html[lang="bn"] .me-name,
html[lang="bn"] .btn {
  font-family: var(--font-bn);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(2px);
  -webkit-tap-highlight-color: transparent;
}

.app-loader.show { display: grid; }

.app-loader-spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  animation: app-spin .7s linear infinite;
}

[data-theme="light"] .app-loader {
  background: rgba(9, 51, 34, 0.15);
}

[data-theme="light"] .app-loader-spin {
  border-color: rgba(0, 176, 116, 0.2);
  border-top-color: var(--brand-primary);
}

@keyframes app-spin {
  to { transform: rotate(360deg); }
}

.me-profile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.me-avatar-form {
  flex-shrink: 0;
  margin: 0;
}

.me-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--invert);
  color: var(--invert-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.me-avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.me-avatar-img {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.18;
}

.me-avatar-img svg {
  width: 52px;
  height: 52px;
}

.me-avatar-initials {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

.me-avatar-edit {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  display: grid;
  place-items: center;
}

.me-avatar-edit svg {
  width: 12px;
  height: 12px;
  display: block;
}

.me-profile-main {
  min-width: 0;
  flex: 1;
}

.me-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.me-line-name { margin-bottom: 4px; }

.me-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.me-balance {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 8px;
}

.me-uid,
.me-joined {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  flex-shrink: 0;
}

.me-line-contact { margin-top: 2px; }

.me-phone-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.me-phone {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-phone-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.me-phone-toggle svg {
  width: 14px;
  height: 14px;
  display: block;
}

.me-menu { margin-top: 0; }

.me-section { margin-top: 14px; }

.me-section-title {
  margin: 0 0 6px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}

.me-menu-item {
  gap: 8px;
  padding: 10px 0;
}

.me-menu-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 0;
}

.me-menu-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text);
}

.me-menu-ico svg {
  width: 15px;
  height: 15px;
  display: block;
}

.support-ico {
  border: none;
}

.support-ico svg {
  width: 16px;
  height: 16px;
}

.support-ico-wa {
  background: #25d366;
  color: #fff;
}

.support-ico-tg {
  background: #229ed9;
  color: #fff;
}

.support-ico-fb {
  background: #1877f2;
  color: #fff;
}

.support-ico-mail {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
}

.app-logged-in.no-topbar .app-shell {
  padding-top: 12px;
}

.project-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 14px;
}

.project-tab {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
}

.project-tab.active {
  background: var(--invert);
  color: var(--invert-ink);
}

.plan-card-v2 {
  display: block;
  padding: 12px;
}

.plan-card-top {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.plan-card-v2 .plan-thumb {
  width: 96px;
  height: 96px;
  border-radius: 12px;
}

.plan-type {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.plan-rows {
  display: grid;
  gap: 4px;
}

.plan-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
}

.plan-row span {
  color: var(--muted);
  font-weight: 600;
}

.plan-row strong {
  font-weight: 700;
  text-align: right;
}

.plan-card-v2 .plan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.plan-card-v2 .plan-actions .btn {
  width: 100%;
  justify-content: center;
}

.mypack-card .plan-thumb {
  width: 72px;
  height: 64px;
}

.invest-preview-icon {
  width: 64px;
  height: 64px;
  margin: 4px auto 8px;
  color: var(--text);
}

.invest-preview-icon svg {
  width: 64px;
  height: 64px;
  display: block;
}

.invest-preview-lead {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 14px;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.invest-calc .list-item {
  min-height: 40px;
}


.team-lead {
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.45;
}

.team-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.team-pill {
  background: #c9891a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.invite-card {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-forest-ink) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 20px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border-brand);
  box-shadow: 0 4px 20px rgba(0, 176, 116, 0.22);
}

[data-theme="light"] .invite-card {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-forest-ink) 100%);
}

.invite-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  margin-bottom: 6px;
}

.invite-code {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.invite-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  word-break: break-all;
  margin-bottom: 14px;
  line-height: 1.4;
}

.invite-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.invite-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 700;
}

.invite-btn svg {
  width: 16px;
  height: 16px;
}

.invite-btn-copy {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

.invite-btn-share {
  background: #c9891a;
  color: #fff;
}

.team-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 14px;
}

.team-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  min-height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

.team-tab.active {
  background: #c9891a;
  color: #fff;
}

.team-panel { display: none; }
.team-panel.active { display: block; }

.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.team-stat {
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.team-stat i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: inherit;
}

.team-stat i svg { width: 18px; height: 18px; }

.team-stat span {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.8;
}

.team-stat strong {
  font-size: 0.95rem;
  font-weight: 800;
  word-break: break-all;
}

.team-stat-blue { background: rgba(56, 132, 220, 0.14); color: #2b6cb0; }
.team-stat-gold { background: rgba(201, 137, 26, 0.16); color: #a06b10; }
.team-stat-green { background: rgba(34, 160, 90, 0.14); color: #1f7a45; }

[data-theme="dark"] .team-stat-blue { color: #8ec5ff; }
[data-theme="dark"] .team-stat-gold { color: #f0c56a; }
[data-theme="dark"] .team-stat-green { color: #7ddea0; }

.team-stats-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.team-stat-wide {
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-stat-wide span { font-size: 0.75rem; font-weight: 600; opacity: 0.8; }
.team-stat-wide strong { font-size: 1.05rem; font-weight: 800; }
.team-stat-wide em { font-style: normal; font-size: 0.72rem; opacity: 0.75; }

.premium-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  margin-bottom: 14px;
  position: relative;
}

.premium-badge {
  display: inline-block;
  background: rgba(201, 137, 26, 0.18);
  color: #c9891a;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.premium-ico {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  color: #c9891a;
}

.premium-ico svg { width: 56px; height: 56px; display: block; }

.premium-title {
  color: #c9891a;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
}

.premium-body {
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.premium-points {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 12px;
}

.premium-points li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.premium-point-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(34, 160, 90, 0.12);
  color: #1f7a45;
  display: grid;
  place-items: center;
}

.premium-point-ico svg { width: 15px; height: 15px; }

.premium-points strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.premium-points span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 600;
}

.ref-levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}

.ref-level {
  background: rgba(201, 137, 26, 0.1);
  border: 1px solid rgba(201, 137, 26, 0.28);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}

.ref-level strong {
  display: block;
  font-size: 1.4rem;
  color: #c9891a;
  font-weight: 800;
}

.ref-level span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.ref-example {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--line);
}

.ref-example h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

.ref-example p {
  margin: 0 0 8px;
  font-size: 0.84rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
}

.ref-example-note {
  color: #c9891a !important;
  margin-bottom: 0 !important;
}

.members-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

.members-empty {
  color: var(--muted);
  font-weight: 600;
  margin: 0;
  font-size: 0.88rem;
}



.dep-balance {
  background: linear-gradient(135deg, #1f7a45 0%, #2f9e57 55%, #50c878 100%);
  color: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 14px;
}
.dep-balance span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 4px;
}
.dep-balance strong {
  font-size: 1.6rem;
  font-weight: 800;
}
.dep-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}
.dep-preset {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.dep-preset.active {
  background: var(--invert);
  color: var(--invert-ink);
  border-color: var(--invert);
}
.dep-paytype-label {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.dep-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.dep-method { cursor: pointer; }
.dep-method input { position: absolute; opacity: 0; pointer-events: none; }
.dep-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dep-methods,
.dep-method,
.dep-method-card,
.dep-preset,
.dep-form button,
.dep-form a {
  -webkit-tap-highlight-color: transparent;
}

.dep-method-card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
}
.dep-method-card strong { font-size: 0.9rem; }
.dep-method input:checked + .dep-method-card {
  border-color: #1f7a45;
  box-shadow: 0 0 0 3px rgba(31, 122, 69, 0.18);
}
.dep-rules {
  margin-top: 14px;
}
.dep-rules ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 600;
}
.dep-rules li { margin-bottom: 8px; }

.pay-method-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.pay-method-banner img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.pay-method-banner strong {
  display: block;
  font-size: 1rem;
}
.pay-method-banner span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.pay-card .pay-row,
.verify-summary .pay-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.pay-card .pay-row:last-of-type,
.verify-summary .pay-row:last-child {
  border-bottom: 0;
}
.pay-number-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0;
}
.pay-number-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.pay-number {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.pay-hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 600;
  margin: 0;
}

.verify-wrap { text-align: center; }
.verify-icon {
  width: 88px;
  height: 88px;
  margin: 10px auto 12px;
  color: #1f7a45;
}
.verify-icon svg { width: 88px; height: 88px; display: block; }
.verify-spin-ring {
  transform-origin: 44px 44px;
  animation: verify-spin 1.2s linear infinite;
}
@keyframes verify-spin {
  to { transform: rotate(360deg); }
}
.verify-msg {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 16px;
  font-size: 0.92rem;
}
.verify-summary {
  text-align: left;
  margin-bottom: 14px;
}
.verify-pending { color: #c9891a; }

[data-theme="dark"] .dep-balance {
  background: linear-gradient(135deg, #0d3b22 0%, #1f7a45 60%, #2f9e57 100%);
}

.hist-plus { color: #1f7a45; font-weight: 800; white-space: nowrap; }
.hist-roi strong { font-size: 0.86rem; line-height: 1.35; display: block; }
.news-photo {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--surface-2);
}
.news-photo img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}
.wd-info .plan-row { padding: 6px 0; }

.suspend-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 16px 18px;
  margin-top: 8px;
  text-align: center;
}
.suspend-warn {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  color: #d64545;
}
.suspend-warn svg { width: 72px; height: 72px; display: block; }
.suspend-title {
  color: #b42318;
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.suspend-lead {
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.45;
}
.suspend-points {
  text-align: left;
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.55;
}
.suspend-points li { margin-bottom: 8px; }
.suspend-required {
  background: rgba(214, 69, 69, 0.1);
  color: #b42318;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.suspend-pay-btn {
  background: #1f7a45 !important;
  border-color: #1f7a45 !important;
  color: #fff !important;
  margin-bottom: 8px;
}
.suspend-video-btn {
  background: #2563eb;
  color: #fff;
  border: 0;
  margin-bottom: 14px;
}
.suspend-video-wrap {
  text-align: left;
  margin-top: 8px;
}
.suspend-video-wrap h3 {
  color: #2563eb;
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.suspend-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.suspend-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   GreenInvest Phase 2 — Reusable Design System Components
   ========================================================================== */

/* 1. Metric & Hero Balance Cards */
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: transform .15s ease, box-shadow .15s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -2px rgba(9, 51, 34, 0.1);
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.metric-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

.card-hero {
  background: linear-gradient(135deg, var(--brand-tint) 0%, var(--surface) 100%);
  border: 1px solid var(--border-brand);
  position: relative;
  overflow: hidden;
}

.card-hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  pointer-events: none;
}

/* 2. Empty States */
.empty-state {
  text-align: center;
  padding: 42px 20px;
  background: var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  margin: 16px 0;
}

.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
}

.empty-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--brand-primary);
}

.empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.empty-text {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 300px;
  margin: 0 auto 16px;
  line-height: 1.45;
}

/* 3. Loading Skeletons */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.skeleton-line {
  height: 14px;
  width: 100%;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 22px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-box {
  height: 80px;
  width: 100%;
  border-radius: 12px;
}

/* 4. Accessible Form Extensions */
.input-group {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input-group:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.input-prefix, .input-suffix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  user-select: none;
}

.input-group .form-control {
  border: none;
  border-radius: 0;
  background: transparent;
  flex: 1;
}

.input-group .form-control:focus {
  box-shadow: none;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-danger);
}

.form-help {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* 5. Responsive Grid & Layout Helpers */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 480px) {
  .grid-2-mobile-1 {
    grid-template-columns: 1fr;
  }
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }

/* 6. Auth Screens Enhancement */
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-header .auth-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-tint);
  color: var(--brand-primary);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 176, 116, 0.12);
}
.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.auth-header p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.auth-aux {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  margin-bottom: 16px;
}
.auth-aux a {
  font-size: 0.82rem;
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-aux a:hover {
  text-decoration: underline;
}
.password-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-toggle-btn:hover {
  color: var(--text);
}

/* 7. Dashboard Wallet Hero Styles */
.wallet-card {
  padding: 22px 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.wallet-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  display: block;
}
.wallet-uid {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}
.wallet-balances {
  margin: 18px 0 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.bal-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: 4px;
}
.bal-value {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.bal-value-reserved {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FDE68A;
  line-height: 1.2;
}
.wallet-reserved-bal {
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(253, 230, 138, 0.3);
}
.wallet-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.btn-wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-wallet-primary {
  background: #ffffff;
  color: #093322;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.btn-wallet-primary:hover {
  background: #f0fdf4;
  transform: translateY(-1px);
}
.btn-wallet-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-wallet-secondary:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}
