@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 {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --surface: #111111;
  --surface-2: #171717;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.22);
  --invert: #ffffff;
  --invert-ink: #050505;
  --danger: #ff5c5c;
  --warn: #f0c24b;
  --ok: #d8d8d8;
  --shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 20px 50px rgba(0,0,0,0.55);
  --radius: 12px;
  --nav: rgba(8, 8, 8, 0.88);
  --font: "Noto Sans", "Noto Sans Bengali", sans-serif;
  --font-bn: "Noto Sans Bengali", "Noto Sans", sans-serif;
  --mono: "Noto Sans", "Noto Sans Bengali", sans-serif;
}

[data-theme="light"] {
  --bg: #f4f4f4;
  --bg-2: #ececec;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --line: rgba(0,0,0,0.08);
  --line-strong: rgba(0,0,0,0.18);
  --invert: #0a0a0a;
  --invert-ink: #ffffff;
  --nav: rgba(255,255,255,0.9);
  --shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.08);
  --ok: #222;
}

* { 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.5;
}

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: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.btn, .chip, .quick-btn, .tab {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s 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: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--invert);
  color: var(--invert-ink);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-dark {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.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);
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.form-control {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  padding: 0 14px;
  outline: none;
}

.form-control:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

textarea.form-control {
  padding: 12px 14px;
  min-height: 110px;
  resize: vertical;
}

.alert {
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.alert-success { color: var(--ok); }
.alert-error { color: var(--danger); border-color: rgba(255,92,92,0.35); }
.alert-info { color: var(--text); }

.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; filter: grayscale(1) contrast(1.05); }

.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: #fff; }

.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;
  border: none;
  background: #fff;
  display: grid;
  place-items: center;
  color: #050505;
}

[data-theme="light"] .quick-ico {
  background: #0a0a0a;
  color: #fff;
}

.quick-ico svg { width: 18px; height: 18px; }

.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(--line);
  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;
}

.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: #fff;
  color: #050505;
  font-size: 0.58rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: var(--mono);
}

.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: 14px;
  padding: 10px 2px;
  text-align: center;
  font-family: var(--font);
  font-size: 0.62rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  line-height: 1.15;
}

.tab svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto 4px;
  flex-shrink: 0;
}

.tab.active {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.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 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.status.pending, .pill.pending { color: var(--warn); }
.status.approved, .status.active, .pill.approved, .pill.active { color: var(--text); }
.status.rejected, .status.cancelled, .pill.rejected { color: var(--danger); }
.status.completed, .pill.completed { color: var(--muted); }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 60;
  padding: 14px;
}

.modal.open { display: flex; }

.modal-sheet {
  width: min(430px, 100%);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 18px;
}

.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(255,255,255,0.45);
}

[data-theme="light"] .app-loader-spin {
  border-color: rgba(0,0,0,0.12);
  border-top-color: #0a0a0a;
}

@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(160deg, #1a1410 0%, #2a1f16 55%, #1c1612 100%);
  color: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(201, 137, 26, 0.35);
}

[data-theme="light"] .invite-card {
  background: linear-gradient(160deg, #2a2118 0%, #3a2c1f 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;
}
