* { box-sizing: border-box; }

:root {
  --red: #ee1b2f;
  --red-dark: #b90d28;
  --blue: #1458d6;
  --purple: #431084;
  --violet: #781bb8;
  --ink: #172033;
  --muted: #8d98aa;
  --page: #f1f4fa;
  --card: #ffffff;
  --soft: #f3f5f9;
  --line: #e8edf5;
  --shadow: 0 13px 30px rgba(34, 28, 74, .12);
}

html { min-height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.app-shell {
  position: relative;
  width: min(100%, 456px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 8px 8px 96px;
  background: var(--page);
  overflow-x: hidden;
}

.flash {
  position: sticky;
  top: 8px;
  z-index: 20;
  margin: 0 0 8px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.flash.error { background: #fff0f2; color: var(--red-dark); }

.hero, .auth-hero {
  overflow: hidden;
  border-radius: 8px;
  background: #25104d;
  box-shadow: 0 2px 7px rgba(30, 22, 64, .08);
}

.hero img {
  width: 100%;
  aspect-ratio: 2.85;
  object-fit: cover;
  object-position: center;
}

.quick-actions, .tabs, .product-card, .bottom-nav, .panel-card, .wallet-card, .auth-card {
  background: var(--card);
  box-shadow: 0 1px 0 rgba(20, 30, 60, .02);
}

.quick-actions {
  margin-top: 10px;
  padding: 16px 12px 14px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-action {
  min-width: 0;
  height: 64px;
  color: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .18s ease, color .18s ease;
}

.quick-action:active, .buy-button:active, .nav-item:active, .primary-button:active { transform: scale(.97); }

.quick-action svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-action span {
  width: 100%;
  overflow: hidden;
  color: var(--purple);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs {
  height: 43px;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tab {
  position: relative;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #a8b0bd;
  font-size: 14px;
  font-weight: 800;
}

.tab.active { color: var(--red); }
.tab.active::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 4px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.products { padding-top: 10px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.product-card {
  margin-bottom: 14px;
  padding: 18px 16px 20px;
  border-radius: 8px;
}

.product-card h1, .product-card h2 {
  margin: 0 0 12px;
  color: var(--purple);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.product-card h1 { font-size: 16px; letter-spacing: .2px; }
.product-card h2 { font-size: 14px; }
.empty-vip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #291057;
}

.product-image img {
  width: 100%;
  aspect-ratio: 2.82;
  object-fit: cover;
  object-position: center;
}

.countdown {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 138px;
  height: 36px;
  padding: 0 11px;
  border-radius: 18px;
  background: #fff;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(40, 20, 70, .18);
}

.countdown b { font-size: 9px; font-weight: 900; line-height: 1; }
.countdown strong {
  min-width: 58px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.vip-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 54px;
  height: 30px;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffd978, #fff3bf 45%, #c99328);
  color: #4b2672;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(62, 34, 13, .25);
}

.lock-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  min-width: 70px;
  height: 30px;
  border-radius: 15px;
  background: rgba(23, 32, 51, .82);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.vip-card {
  border: 1px solid rgba(255, 217, 120, .68);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #ffd978, var(--blue), var(--purple)) border-box;
}

.stats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.stats div {
  min-width: 0;
  min-height: 53px;
  padding: 9px 2px 8px;
  border-radius: 5px;
  background: #f8f8fd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.stats strong {
  overflow-wrap: anywhere;
  color: var(--red);
  font-size: clamp(12px, 3.35vw, 15px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.stats span {
  color: #5d6474;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}

.plan-limit {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.plan-limit span {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f3ff;
  color: #7c8799;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
}

.plan-limit b {
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.buy-button, .primary-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 49px;
  margin-top: 15px;
  border-radius: 25px;
  background:
    radial-gradient(circle at 78% 36%, rgba(255,255,255,.25), transparent 28%),
    linear-gradient(135deg, var(--red), var(--blue) 55%, var(--purple));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .3px;
  box-shadow: 0 12px 22px rgba(65, 23, 132, .22);
  animation: buttonBreath 2.8s ease-in-out infinite;
}

.buy-button::after, .primary-button::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -42%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-18deg);
  animation: buttonShine 3.4s ease-in-out infinite;
}

.locked-button {
  background: #dfe5f0;
  color: #738095;
  box-shadow: none;
  animation: none;
}

.locked-button::after { display: none; }

@keyframes buttonBreath {
  50% { box-shadow: 0 15px 28px rgba(65, 23, 132, .28); }
}

@keyframes buttonShine {
  0%, 62% { left: -42%; }
  100% { left: 112%; }
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 5;
  width: min(100%, 456px);
  height: 72px;
  padding: 8px 24px max(8px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nav-item {
  min-width: 0;
  height: 56px;
  color: #bdc3cf;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item span {
  width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.top-bar {
  height: 44px;
  margin: -8px -8px 10px;
  padding: 0 12px;
  background: linear-gradient(90deg, var(--red), var(--blue), var(--purple));
  color: #fff;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
}

.top-bar h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.round-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
}

.round-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.balance-card, .profile-head, .team-head {
  position: relative;
  overflow: hidden;
  margin: 0 8px 14px;
  min-height: 92px;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--blue) 54%, var(--purple));
  color: #fff;
  box-shadow: var(--shadow);
}

.balance-card span, .profile-head span { display: block; font-size: 11px; font-weight: 700; opacity: .9; }
.balance-card strong { display: block; margin-top: 8px; font-size: 26px; font-weight: 900; }
.balance-card img {
  position: absolute;
  right: -26px;
  top: 8px;
  width: 138px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  opacity: .62;
}

.panel-card {
  margin: 0 8px 14px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.form-stack { display: grid; gap: 14px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}

.section-title span {
  flex: none;
  min-width: 24px;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--red), var(--blue) 58%, var(--purple));
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 0;
  font-weight: 900;
  box-shadow: 0 7px 14px rgba(20, 88, 214, .18);
}

.section-title span::before {
  content: "";
  width: 14px;
  height: 14px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2.8 14.8 9.2 21.2 12 14.8 14.8 12 21.2 9.2 14.8 2.8 12 9.2 9.2 12 2.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2.8 14.8 9.2 21.2 12 14.8 14.8 12 21.2 9.2 14.8 2.8 12 9.2 9.2 12 2.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.section-title b { font-weight: 900; }
.section-title small, .section-title a { margin-left: auto; color: var(--red); font-weight: 800; }

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

.amount-choice {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.amount-choice.selected {
  border-color: var(--red);
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.percent-grid { grid-template-columns: repeat(4, 1fr); }
.percent-grid small { display: block; margin-top: 4px; font-size: 9px; color: var(--muted); }

.input-box, .input-pill {
  min-height: 54px;
  padding: 0 16px;
  border-radius: 9px;
  background: var(--soft);
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-pill { border-radius: 28px; min-height: 54px; }
.input-box b, .input-pill b { flex: none; color: var(--red); font-weight: 900; }
.input-box input, .input-box select, .input-pill input, .admin-form input, .admin-form select, .admin-form textarea, .stacked-form input, .stacked-form select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}

.password-toggle {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  color: #101a2d;
  display: grid;
  place-items: center;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle.active { color: var(--blue); }

.readonly-pill {
  box-shadow: inset 0 0 0 1px rgba(20, 88, 214, .16);
}

.wallet-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wallet-strip div {
  min-height: 68px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 30, 60, .02);
}

.wallet-strip span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.wallet-strip strong {
  display: block;
  margin-top: 7px;
  color: var(--red);
  font-size: 19px;
  font-weight: 900;
}

.hint, .terms, .auth-link {
  margin: 0;
  color: #637084;
  font-size: 12px;
  text-align: center;
}

.terms a, .auth-link a { color: var(--purple); font-weight: 900; text-decoration: underline; }

.auth-options {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
}

.terms-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #637084;
  font-size: 11px;
  line-height: 1.45;
}

.terms-check input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #d8dfeb;
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
}

.terms-check input:checked {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--red), var(--blue));
}

.terms-check input:checked::after {
  content: "";
  width: 9px;
  height: 6px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px);
}

.terms-check a, .forgot-link {
  color: var(--purple);
  font-weight: 900;
  text-decoration: underline;
}

.forgot-link {
  display: inline-block;
  font-size: 12px;
  text-align: center;
}

.auth-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  text-align: center;
}

.clean-list {
  margin: 0;
  padding-left: 17px;
  color: #667086;
  font-size: 12px;
  line-height: 2;
}

.payment-box {
  padding: 12px;
  border-radius: 10px;
  background: #f7f3ff;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.payment-box img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.payment-box p { margin: 0; color: #637084; font-size: 12px; }

.tax-box {
  min-height: 54px;
  padding: 11px 14px;
  border-radius: 9px;
  background: #f7f3ff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tax-box span { color: #8b7c9d; font-size: 10px; text-transform: uppercase; }
.tax-box b { display: block; margin-top: 5px; color: var(--purple); font-size: 16px; }

.list-row {
  position: relative;
  min-height: 56px;
  padding: 10px 28px 10px 48px;
  border-bottom: 1px solid var(--line);
  display: block;
}

.list-row:last-child { border-bottom: 0; }
.list-row::after { content: ">"; position: absolute; right: 8px; top: 20px; color: #bbc3cd; }
.list-row b { display: block; font-size: 13px; font-weight: 900; }
.list-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.row-icon {
  position: absolute;
  left: 8px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(238, 27, 47, .11), rgba(20, 88, 214, .13));
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 0;
  font-weight: 900;
}

.row-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M7 4h8l4 4v12H7zM14 4v5h5M10 13h6M10 17h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M7 4h8l4 4v12H7zM14 4v5h5M10 13h6M10 17h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-page .app-shell { padding-top: 34px; background: #eef3fb; }
.auth-hero { margin: 0 auto; width: min(100%, 396px); border-radius: 0; }
.auth-hero img { width: 100%; aspect-ratio: 1.88; object-fit: cover; }

.auth-card {
  position: relative;
  width: min(100%, 396px);
  margin: -22px auto 0;
  padding: 48px 22px 34px;
  border-radius: 32px 32px 8px 8px;
  min-height: 460px;
}

.brand-badge {
  position: absolute;
  left: 50%;
  top: -51px;
  width: 92px;
  height: 92px;
  border: 7px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--red), var(--blue), var(--purple));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.auth-tabs {
  width: min(100%, 330px);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 76px;
  text-align: center;
  font-size: 18px;
}

.auth-tabs a { color: #9aa2ae; font-weight: 800; }
.auth-tabs strong { position: relative; font-weight: 900; }
.auth-tabs strong::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: -11px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.auth-title {
  margin: 2px 0 22px;
  text-align: center;
}

.auth-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.auth-title p {
  margin: 9px auto 0;
  max-width: 290px;
  color: #637084;
  font-size: 12px;
  line-height: 1.45;
}

.reset-card {
  min-height: 430px;
}

.admin-login h1 { margin: 0 0 22px; text-align: center; }

.share-card {
  overflow: hidden;
  margin: 0 8px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--blue) 58%, var(--purple));
  color: #fff;
  box-shadow: var(--shadow);
}

.share-card img { width: 100%; aspect-ratio: 2.4; object-fit: cover; }
.share-card div { padding: 15px; }
.share-card span, .eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: 10px; font-weight: 900; opacity: .76; }
.share-card strong { display: inline-block; margin-top: 8px; font-size: 34px; font-weight: 900; }
.share-card p { max-width: 260px; margin: 8px 0 0; font-size: 12px; line-height: 1.45; }

.copy-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 72px 1fr 58px;
  gap: 8px;
  align-items: center;
}

.copy-row span { color: var(--muted); font-size: 10px; text-transform: uppercase; font-weight: 900; }
.copy-row input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.copy-row button, .mini-btn {
  min-height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff;
  font-weight: 900;
}

.how-card { margin: 0 8px 86px; padding: 4px 12px; }
.how-card div { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin: 16px 0; }
.how-card b:first-child { width: 22px; height: 22px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); display: grid; place-items: center; font-size: 12px; }
.how-card strong { display: block; font-size: 12px; }
.how-card span { color: #667086; font-size: 11px; line-height: 1.45; }

.team-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-radius: 0;
}

.team-head div:not(.invite-chip) {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
}

.team-head span { color: var(--muted); text-transform: uppercase; font-size: 10px; font-weight: 900; }
.team-head strong { display: block; margin-top: 8px; font-size: 22px; }
.invite-chip { grid-column: 1 / -1; padding: 10px 12px; border-radius: 9px; background: #fff; color: var(--ink); display: grid; grid-template-columns: 1fr auto; align-items: center; }
.invite-chip b { display: block; font-size: 16px; }
.invite-chip button { grid-row: 1 / 3; grid-column: 2; min-width: 64px; height: 32px; border-radius: 16px; background: var(--red); color: #fff; font-weight: 900; }
.level-card { margin: -4px 8px 18px; padding: 14px 16px; border-radius: 10px; background: linear-gradient(135deg, var(--red), var(--blue)); color: #fff; box-shadow: var(--shadow); }
.level-card span, .level-card small { display: block; }
.level-card b { float: right; }
.empty-state { min-height: 150px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.empty-state.compact { min-height: 56px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-grid span, .mini-stats span {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f8f8fd;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-grid b, .mini-stats b {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  text-transform: none;
}

.collection-card {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
}

.collection-card img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: #291057;
}

.collection-card h2 { margin: 0 0 9px; color: var(--purple); font-size: 14px; }
.collection-card p { margin: 6px 0 0; color: #637084; font-size: 11px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

.profile-head {
  min-height: 156px;
  margin-top: -8px;
  border-radius: 0 0 28px 28px;
  padding-top: 58px;
}

.logout-icon { position: absolute; right: 16px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.17); display: grid; place-items: center; }
.avatar { position: absolute; left: 18px; top: 60px; width: 56px; height: 56px; border-radius: 50%; border: 4px solid #fff; background: var(--purple); display: grid; place-items: center; font-size: 24px; font-weight: 900; }
.profile-head h1 { margin: 0 0 3px 74px; font-size: 18px; }
.profile-head span { margin-left: 74px; }

.wallet-card {
  position: relative;
  margin: -34px 18px 16px;
  padding: 18px 14px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.wallet-card > span { color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 10px; font-weight: 900; }
.wallet-card > strong { display: block; margin-top: 7px; color: var(--red); font-size: 25px; }
.wallet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.wallet-actions a { min-height: 35px; border-radius: 9px; background: linear-gradient(135deg, var(--red), var(--blue)); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.wallet-actions a:nth-child(2) { background: #f0f2f8; color: var(--purple); }
.wallet-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 10px; text-align: center; }
.wallet-stats span { color: var(--ink); font-weight: 900; font-size: 13px; }
.wallet-stats b { display: block; margin-top: 4px; color: var(--muted); text-transform: uppercase; font-size: 8px; }

.profile-page .app-shell {
  background: linear-gradient(180deg, #eef3fb 0, #f7f9fd 42%, #f1f4fa 100%);
}

.account-hero {
  position: relative;
  min-height: 178px;
  margin: -8px -8px 0;
  padding: 46px 18px 48px;
  background:
    linear-gradient(135deg, rgba(238, 27, 47, .92), rgba(20, 88, 214, .94) 58%, rgba(67, 16, 132, .96)),
    url("assets/campa-poster.jpg") center / cover;
  color: #fff;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}

.account-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 24px;
  border-radius: 24px 24px 0 0;
  background: #f7f9fd;
}

.account-avatar {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border: 4px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--blue), var(--purple));
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 25px rgba(16, 24, 44, .24);
}

.account-hero div:not(.account-avatar) {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.account-hero span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .82;
}

.account-hero h1 {
  margin: 5px 0 4px;
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
}

.account-hero p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  opacity: .9;
}

.account-exit {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-width: 74px;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.18);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.account-wallet {
  position: relative;
  z-index: 1;
  margin: -28px 8px 14px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wallet-main {
  min-height: 92px;
  padding: 18px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 20%, rgba(255,255,255,.25), transparent 36%),
    linear-gradient(135deg, var(--red), var(--blue) 58%, var(--purple));
  color: #fff;
}

.wallet-main span, .wallet-pair span, .account-grid span, .invite-panel span {
  display: block;
  color: inherit;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.wallet-main strong {
  display: block;
  margin-top: 7px;
  font-size: 32px;
  font-weight: 900;
}

.wallet-pair {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wallet-pair span {
  min-height: 64px;
  padding: 12px;
  border-radius: 10px;
  background: #f6f8fd;
  color: #7f8a9e;
}

.wallet-pair b {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 17px;
}

.account-grid {
  margin: 0 8px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.account-grid div {
  min-height: 74px;
  padding: 13px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 30, 60, .02);
}

.account-grid span {
  color: #8b95a7;
}

.account-grid b {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
}

.account-panel {
  border-radius: 14px;
}

.invite-panel {
  margin: 0 8px 14px;
  padding: 16px;
  border-radius: 14px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--red), var(--blue), var(--purple)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.invite-panel span {
  color: #8b95a7;
}

.invite-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--purple);
  font-size: 24px;
  font-weight: 900;
}

.invite-panel p {
  margin: 5px 0 0;
  color: #637084;
  font-size: 11px;
  font-weight: 700;
}

.invite-panel button {
  min-width: 88px;
  height: 38px;
  border-radius: 19px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.support-hero {
  min-height: 132px;
  margin: -8px -8px 14px;
  padding: 20px;
  background: linear-gradient(135deg, var(--red), var(--blue) 58%, var(--purple));
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}

.support-hero span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .82;
}

.support-hero h1 {
  margin: 6px 0 5px;
  font-size: 30px;
  line-height: 1;
}

.support-hero p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  opacity: .9;
}

.support-hero a {
  min-width: 82px;
  height: 40px;
  border-radius: 20px;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
}

.support-hero svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-body .app-shell {
  width: min(100%, 1120px);
  padding: 18px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
}

.admin-side, .admin-main, .table-card, .admin-form {
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-side { min-height: calc(100vh - 36px); padding: 18px; }
.admin-side h1 { margin: 0 0 18px; color: var(--purple); }
.admin-side a { display: block; padding: 12px; border-radius: 8px; color: #657085; font-weight: 800; }
.admin-side a.active, .admin-side a:hover { background: linear-gradient(135deg, var(--red), var(--blue)); color: #fff; }
.admin-main { min-width: 0; padding: 20px; }
.admin-main h2 { margin: 0 0 18px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-stat { padding: 18px; border-radius: 12px; background: linear-gradient(135deg, #fff2f4, #eef4ff); }
.admin-stat span { color: #657085; font-size: 12px; font-weight: 900; }
.admin-stat strong { display: block; margin-top: 8px; color: var(--red); font-size: 32px; }
.table-card { overflow-x: auto; }
.table-card.spaced { margin-top: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 12px; text-align: left; vertical-align: middle; }
th { color: var(--purple); text-transform: uppercase; letter-spacing: .6px; }
.admin-form { margin-bottom: 18px; padding: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: center; }
.admin-form input, .admin-form select, .admin-form textarea, .stacked-form input, .stacked-form select { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-form textarea { padding-top: 10px; resize: vertical; }
.admin-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 800; }
.settings-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini-btn { padding: 0 12px; border: 0; }
.mini-btn.ghost { background: #eef1f7; color: var(--purple); }
.inline-actions { display: flex; gap: 6px; }
.admin-actions { min-width: 220px; }
.admin-actions form { margin: 4px 0; }
.stacked-form { margin-top: 8px; padding: 10px; border-radius: 8px; background: #f7f9fd; display: grid; gap: 8px; }
.admin-thumb { width: 58px; height: 42px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.settings-qr { width: 140px; height: 140px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: min(100%, 456px);
  margin: 0 auto;
  padding: 18px 14px;
  background: rgba(18, 26, 44, .42);
  backdrop-filter: blur(7px);
  display: grid;
  place-items: center;
}

.welcome-modal {
  position: relative;
  overflow: hidden auto;
  width: min(100%, 390px);
  max-height: calc(100vh - 36px);
  padding: 52px 22px 22px;
  border-radius: 30px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(238, 27, 47, .55), rgba(20, 88, 214, .55), rgba(67, 16, 132, .55)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 28px 70px rgba(23, 32, 51, .34);
  text-align: center;
}

.welcome-modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 94px;
  background: linear-gradient(135deg, var(--red), var(--blue) 58%, var(--purple));
}

.welcome-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  display: grid;
  place-items: center;
}

.welcome-close svg, .welcome-channel svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome-mark {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  margin: 0 auto 15px;
  border: 6px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--blue), var(--purple));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.welcome-modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.welcome-modal p {
  margin: 8px 0 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.welcome-bonus {
  min-height: 86px;
  padding: 17px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 16%, rgba(255,255,255,.26), transparent 38%),
    linear-gradient(135deg, var(--red), var(--blue) 58%, var(--purple));
  color: #fff;
  text-align: left;
  box-shadow: 0 16px 28px rgba(20, 88, 214, .28);
}

.welcome-bonus span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: .82;
}

.welcome-bonus strong {
  display: block;
  margin-top: 4px;
  font-size: 34px;
  font-weight: 900;
}

.welcome-mini-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.welcome-mini-grid span, .welcome-levels span {
  min-height: 74px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f5f8ff);
  color: #8b95a7;
  display: grid;
  align-content: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(20, 30, 60, .08);
}

.welcome-mini-grid b, .welcome-levels b {
  color: #082e78;
  font-size: 21px;
  line-height: 1;
}

.welcome-levels {
  margin-top: 20px;
}

.welcome-levels small {
  display: block;
  margin-bottom: 12px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.welcome-levels div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.welcome-levels span {
  min-height: 70px;
  border-radius: 14px;
}

.welcome-channel {
  min-height: 56px;
  margin-top: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--red), var(--blue) 58%, var(--purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 15px 26px rgba(20, 88, 214, .28);
}

.welcome-later {
  margin-top: 16px;
  background: transparent;
  color: #a2a9b6;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 520px) {
  .app-shell { padding: 8px 8px 92px; }
  .hero img, .product-image img { aspect-ratio: 2.05; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .percent-grid { grid-template-columns: repeat(4, 1fr); }
  .auth-page .app-shell { padding-top: 0; }

  .welcome-overlay {
    padding: 12px;
    align-items: center;
  }

  .welcome-modal {
    width: min(100%, 336px);
    max-height: calc(100vh - 24px);
    padding: 42px 14px 14px;
    border-radius: 22px;
  }

  .welcome-modal::before { height: 76px; }

  .welcome-close {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
  }

  .welcome-mark {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
    border-width: 5px;
    font-size: 14px;
  }

  .welcome-modal h2 {
    font-size: 21px;
  }

  .welcome-modal p {
    margin: 6px 0 14px;
    font-size: 12px;
  }

  .welcome-bonus {
    min-height: 76px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .welcome-bonus strong {
    font-size: 30px;
  }

  .welcome-mini-grid {
    margin-top: 12px;
    gap: 10px;
  }

  .welcome-mini-grid span, .welcome-levels span {
    min-height: 62px;
    padding: 10px 6px;
    border-radius: 13px;
    gap: 6px;
    font-size: 9px;
  }

  .welcome-mini-grid b, .welcome-levels b {
    font-size: 19px;
  }

  .welcome-levels {
    margin-top: 14px;
  }

  .welcome-levels small {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 1.1px;
  }

  .welcome-levels div {
    gap: 8px;
  }

  .welcome-channel {
    min-height: 50px;
    margin-top: 14px;
    border-radius: 16px;
    font-size: 16px;
  }

  .welcome-later {
    margin-top: 12px;
    font-size: 13px;
  }
}

@media (min-width: 480px) {
  .app-shell { padding-left: 0; padding-right: 0; }
}

@media (max-width: 800px) {
  .admin-body .app-shell { padding: 8px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { min-height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .admin-side h1 { grid-column: 1 / -1; }
  .admin-grid, .admin-form, .settings-form { grid-template-columns: 1fr; }
}

/* User panel visual refresh */
:root {
  --red: #e71932;
  --red-dark: #b80f28;
  --blue: #1764d8;
  --purple: #3f2478;
  --green: #0e9f6e;
  --gold: #f4b000;
  --ink: #101828;
  --muted: #667085;
  --page: #f4f7fb;
  --card: #ffffff;
  --soft: #eef3f8;
  --line: #dfe7f1;
  --shadow: 0 14px 30px rgba(16, 24, 40, .10);
}

body {
  background:
    linear-gradient(180deg, #eef4fb 0, #f8fafc 38%, #eef3f8 100%);
  color: var(--ink);
}

body:not(.admin-body) .app-shell {
  width: min(100%, 460px);
  padding: 10px 10px 102px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.44), rgba(255,255,255,0) 210px),
    var(--page);
}

.flash {
  top: 10px;
  margin: 0 0 10px;
  border: 1px solid rgba(23, 100, 216, .14);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(16, 24, 40, .12);
}

.flash.error {
  border-color: rgba(231, 25, 50, .18);
}

.hero {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.78);
  background: #0f172a;
  box-shadow: 0 18px 36px rgba(16, 24, 40, .14);
}

.hero img {
  aspect-ratio: 2.2;
  object-fit: cover;
}

.quick-actions,
.tabs,
.product-card,
.bottom-nav,
.panel-card,
.wallet-card,
.auth-card,
.account-wallet,
.account-grid div,
.invite-panel,
.wallet-strip div {
  border: 1px solid rgba(223, 231, 241, .95);
  box-shadow: 0 10px 24px rgba(16, 24, 40, .07);
}

.wallet-strip {
  margin: 12px 0 0;
  gap: 10px;
}

.wallet-strip div {
  min-height: 76px;
  padding: 14px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f7fbff);
}

.wallet-strip div:first-child {
  border-color: rgba(14, 159, 110, .20);
}

.wallet-strip div:nth-child(2) {
  border-color: rgba(23, 100, 216, .20);
}

.wallet-strip span,
.wallet-main span,
.wallet-pair span,
.account-grid span,
.invite-panel span,
.balance-card span,
.profile-head span {
  color: #7a8699;
  letter-spacing: .5px;
}

.wallet-strip strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 21px;
}

.quick-actions {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  gap: 8px;
}

.quick-action {
  height: 72px;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--blue);
}

.quick-action:nth-child(2) { color: var(--green); }
.quick-action:nth-child(3) { color: var(--red); }
.quick-action:nth-child(4) { color: var(--purple); }

.quick-action svg {
  width: 27px;
  height: 27px;
  stroke-width: 2;
}

.quick-action span {
  color: #29364a;
  font-size: 11px;
  font-weight: 800;
}

.tabs {
  height: 48px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 8px;
  background: #eaf0f7;
  gap: 4px;
}

.tab {
  border-radius: 7px;
  color: #667085;
  font-size: 13px;
}

.tab.active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 8px 18px rgba(16, 24, 40, .08);
}

.tab.active::after { display: none; }

.products { padding-top: 12px; }

.product-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.product-card h1,
.product-card h2 {
  margin-bottom: 11px;
  color: var(--ink);
  text-align: left;
}

.product-card h1 { font-size: 17px; }
.product-card h2 { font-size: 15px; }

.product-image {
  border-radius: 8px;
  background: #111827;
}

.product-image img {
  aspect-ratio: 2.05;
}

.countdown,
.vip-badge,
.lock-badge {
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(16, 24, 40, .18);
}

.countdown {
  min-width: 132px;
  background: rgba(255,255,255,.94);
}

.vip-badge {
  background: linear-gradient(135deg, #ffe28a, #f4b000);
  color: #3b2b00;
}

.lock-badge {
  left: 50%;
  top: 50%;
  width: 58px;
  min-width: 0;
  height: 58px;
  border-radius: 50%;
  background: rgba(16, 49, 40, .74);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(5px);
}

.lock-badge svg {
  width: 49px;
  height: 49px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vip-card {
  border-color: rgba(244, 176, 0, .55);
  background:
    linear-gradient(180deg, #fffdf6, #ffffff);
}

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

.stats div {
  min-height: 58px;
  border: 1px solid rgba(223, 231, 241, .78);
  border-radius: 8px;
  background: #f8fbff;
}

.stats strong {
  color: var(--ink);
  font-size: clamp(12px, 3.4vw, 15px);
}

.stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.plan-limit span {
  border: 1px solid rgba(223, 231, 241, .86);
  border-radius: 8px;
  background: #fff;
  color: #667085;
}

.plan-limit b {
  color: var(--green);
}

.buy-button,
.primary-button {
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  letter-spacing: 0;
  box-shadow: 0 12px 24px rgba(23, 100, 216, .24);
  animation: none;
}

.buy-button::after,
.primary-button::after {
  display: none;
}

.buy-button:hover,
.primary-button:hover {
  filter: brightness(1.03);
}

.locked-button {
  border: 1px solid rgba(164, 174, 190, .72);
  background: linear-gradient(135deg, #edf1f7, #dbe1eb);
  color: #7b8494;
  box-shadow: none;
}

.bottom-nav {
  width: min(100%, 460px);
  height: 78px;
  padding: 8px 14px max(9px, env(safe-area-inset-bottom));
  border: 1px solid rgba(223, 231, 241, .95);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
}

.nav-item {
  height: 58px;
  border-radius: 8px;
  color: #98a2b3;
}

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

.nav-item.active {
  background: #fff2f4;
  color: var(--red);
}

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

/* Team downline */
.team-summary {
  gap: 10px;
}

.team-summary .invite-chip button {
  min-width: 82px;
}

.team-level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.team-level-card {
  margin: 0;
  padding: 14px;
  overflow: hidden;
}

.team-level-card b {
  float: none;
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 20px;
}

.team-level-card small {
  min-height: 28px;
}

.level-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.level-metrics em {
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid rgba(223, 231, 241, .9);
  border-radius: 8px;
  background: #f8fbff;
  color: #667085;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.level-metrics em b {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--red);
  font-size: 12px;
}

.team-members-section {
  margin: 0 0 12px;
}

.team-members-section .section-title {
  margin: 0 2px 10px;
}

.team-member-card {
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid rgba(231, 205, 232, .95);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,244,248,.96), rgba(239,244,255,.98));
  box-shadow: 0 10px 22px rgba(76, 20, 127, .08);
}

.team-member-top {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.team-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.team-member-top h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}

.team-member-top p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #667085;
  font-size: 11px;
  line-height: 1.3;
}

.team-status {
  min-width: 68px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.team-status.active {
  background: #ecfdf3;
  color: #039855;
}

.team-status.inactive {
  background: #fff7ed;
  color: #c2410c;
}

.team-status.blocked {
  background: #fff1f3;
  color: var(--red);
}

.team-member-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.team-member-stats span {
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid rgba(223, 231, 241, .92);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: #667085;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.team-member-stats b {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
  text-transform: none;
}

@media (max-width: 560px) {
  .team-level-grid {
    grid-template-columns: 1fr;
  }
}

/* Absolute final logo shape guard */
.round-logo-frame,
.brand-badge,
.welcome-mark,
.account-avatar,
.admin-brand-mark {
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
}

.brand-badge {
  width: 96px !important;
  height: 96px !important;
}

.welcome-mark {
  width: 86px !important;
  height: 86px !important;
}

.account-avatar {
  width: 68px !important;
  height: 68px !important;
}

.admin-brand-mark {
  flex: none !important;
  width: 50px !important;
  height: 50px !important;
}

.round-logo-frame img,
.brand-badge-logo,
.welcome-logo,
.account-avatar-logo,
.admin-brand-logo {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* Final round Campa image logo override */
.brand-badge {
  top: -51px;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 5px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  color: transparent;
  font-size: 0;
  box-shadow: 0 16px 30px rgba(76, 20, 127, .26);
}

.brand-badge-logo,
.welcome-logo,
.admin-brand-logo {
  display: block;
  object-fit: contain;
}

.brand-badge-logo,
.welcome-logo {
  width: 100%;
  height: 100%;
}

.welcome-mark {
  width: 86px;
  height: 86px;
  margin: 0 auto 15px;
  border: 4px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  color: transparent;
  font-size: 0;
  box-shadow: 0 14px 26px rgba(76, 20, 127, .25);
}

.admin-brand {
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid rgba(231, 205, 232, .85);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: var(--purple);
}

.admin-brand-logo {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(76, 20, 127, .14);
}

.admin-brand small {
  margin-left: 0;
  color: #725584;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .admin-brand-logo {
    width: 44px;
    height: 44px;
  }
}

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

.gateway-choice {
  min-width: 0;
  cursor: pointer;
}

.gateway-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gateway-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #fff;
  color: #182339;
  font-size: 13px;
  font-weight: 900;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gateway-choice .ui-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.gateway-choice input:checked + span {
  border-color: rgba(231, 25, 50, .72);
  background: #fff2f4;
  color: var(--red);
  box-shadow: 0 8px 18px rgba(231, 25, 50, .12);
}

.gateway-choice:active span {
  transform: scale(.98);
}

/* Round Campa image logo */
.brand-badge {
  top: -51px;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 5px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  color: transparent;
  font-size: 0;
  box-shadow: 0 16px 30px rgba(76, 20, 127, .26);
}

.brand-badge-logo,
.welcome-logo,
.admin-brand-logo {
  display: block;
  object-fit: contain;
}

.brand-badge-logo,
.welcome-logo {
  width: 100%;
  height: 100%;
}

.welcome-mark {
  width: 86px;
  height: 86px;
  margin: 0 auto 15px;
  border: 4px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  color: transparent;
  font-size: 0;
  box-shadow: 0 14px 26px rgba(76, 20, 127, .25);
}

.admin-brand {
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid rgba(231, 205, 232, .85);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: var(--purple);
}

.admin-brand-logo {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(76, 20, 127, .14);
}

.admin-brand small {
  margin-left: 0;
  color: #725584;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .admin-brand-logo {
    width: 44px;
    height: 44px;
  }
}

.brand-logo,
.brand-badge-logo,
.welcome-logo,
.admin-brand-logo {
  display: block;
}

.auth-card {
  padding-top: 58px;
}

.brand-badge {
  top: -51px;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 5px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  color: transparent;
  font-size: 0;
  box-shadow: 0 16px 30px rgba(76, 20, 127, .26);
}

.brand-badge-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome-mark {
  width: 86px;
  height: 86px;
  margin: 0 auto 15px;
  border: 4px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  color: transparent;
  font-size: 0;
  box-shadow: 0 14px 26px rgba(76, 20, 127, .25);
}

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

.admin-brand {
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid rgba(231, 205, 232, .85);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: var(--purple);
}

.admin-brand-logo {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(76, 20, 127, .14);
}

.admin-brand small {
  color: #725584;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .admin-body .admin-brand {
    min-height: 58px;
  }

  .admin-brand-logo {
    width: 44px;
    height: 44px;
  }
}

/* SVG icon cleanup */
.section-title .ui-icon,
.row-icon {
  flex: none;
  display: grid;
  place-items: center;
}

.section-title .ui-icon {
  min-width: 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(227, 6, 44, .14), rgba(21, 89, 214, .16));
  color: var(--red);
}

.row-icon {
  top: 13px;
  left: 6px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(227, 6, 44, .14), rgba(21, 89, 214, .16));
  color: var(--purple);
  font-size: 0;
}

.section-title .ui-icon::before,
.row-icon::before {
  display: none;
}

.section-title .ui-icon svg,
.row-icon svg,
.admin-menu svg,
.admin-logout svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row-icon svg {
  width: 18px;
  height: 18px;
}

/* Admin panel redesign */
.admin-body {
  background:
    linear-gradient(135deg, rgba(227, 6, 44, .10), rgba(76, 20, 127, .10) 48%, rgba(21, 89, 214, .10)),
    #f6edf8;
}

.admin-body .app-shell {
  width: min(100%, 1180px);
  padding: 16px;
  background: transparent;
}

.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-side,
.admin-main,
.table-card,
.admin-form {
  border: 1px solid rgba(231, 205, 232, .92);
  border-radius: 14px;
  background: rgba(255, 248, 251, .96);
  box-shadow: 0 16px 34px rgba(76, 20, 127, .12);
}

.admin-side {
  position: sticky;
  top: 16px;
  min-height: calc(100vh - 32px);
  padding: 16px;
  background:
    linear-gradient(180deg, #fff8fb, #f1e9ff);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--grape) 48%, var(--blue));
  color: #fff;
}

.admin-brand > span {
  flex: none;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.68);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}

.admin-brand h1 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  line-height: 1;
}

.admin-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 800;
}

.admin-menu {
  display: grid;
  gap: 6px;
}

.admin-menu a,
.admin-logout {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: #5f5270;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
}

.admin-menu a svg,
.admin-logout svg {
  flex: none;
  color: currentColor;
}

.admin-side a.active,
.admin-menu a:hover {
  background: linear-gradient(135deg, var(--red), var(--grape) 48%, var(--blue));
  color: #fff;
}

.admin-logout {
  margin-top: 14px;
  background: #fff;
  color: var(--red);
  border: 1px solid rgba(227, 6, 44, .16);
}

.admin-main {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 252, 254, .94);
}

.admin-main h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

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

.admin-stat {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(231, 205, 232, .9);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,244,248,.98), rgba(238,244,255,.98));
  box-shadow: 0 10px 24px rgba(76, 20, 127, .10);
}

.admin-stat span {
  color: #6f5d7a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  color: var(--red);
  font-size: 30px;
  line-height: 1;
}

.admin-form {
  margin-bottom: 16px;
  padding: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-form.search-form {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.stacked-form input,
.stacked-form select,
.stacked-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(231, 205, 232, .95);
  border-radius: 9px;
  background: linear-gradient(135deg, #fff8fb, #eef4ff);
  color: var(--ink);
  outline: 0;
}

.admin-form textarea,
.stacked-form textarea {
  padding-top: 10px;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.stacked-form input:focus,
.stacked-form select:focus {
  border-color: rgba(227, 6, 44, .62);
  box-shadow: 0 0 0 3px rgba(227, 6, 44, .10);
}

.admin-form label,
.stacked-form label {
  color: #5f5270;
  font-size: 12px;
  font-weight: 900;
}

.admin-form h3 {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: #342844;
  font-size: 15px;
}

.admin-form label:has(input[type="checkbox"]),
.stacked-form label:has(input[type="checkbox"]) {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(231, 205, 232, .95);
  border-radius: 9px;
  background: rgba(255,255,255,.62);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-form input[type="checkbox"],
.stacked-form input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  height: 17px;
  padding: 0;
  accent-color: var(--red);
}

.mini-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mini-btn.ghost {
  border: 1px solid rgba(21, 89, 214, .22);
  background: #eef4ff;
  color: var(--blue);
  box-shadow: none;
}

.mini-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.admin-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(231, 205, 232, .88);
  border-radius: 9px;
  background: #fff;
  color: #4f425f;
  font-size: 13px;
  font-weight: 800;
}

.admin-note small {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #7a6d88;
  font-weight: 700;
}

.withdrawal-actions {
  min-width: 310px;
  flex-wrap: wrap;
}

.withdrawal-actions input {
  flex: 1 1 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(231, 205, 232, .95);
  border-radius: 8px;
}

.table-card {
  overflow-x: auto;
  background: #fff;
}

.table-card.spaced {
  margin-top: 16px;
}

.table-card table {
  min-width: 760px;
}

.table-card th,
.table-card td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(231, 205, 232, .84);
  color: #372b48;
}

.table-card th {
  background: #fff4f8;
  color: var(--purple);
  font-size: 11px;
}

.table-card tbody tr:hover {
  background: #fff9fb;
}

.table-card td b {
  color: var(--ink);
}

.admin-actions {
  min-width: 230px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-actions form {
  margin: 5px 0;
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

.stacked-form {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(231, 205, 232, .85);
  border-radius: 10px;
  background: #fff8fb;
  display: grid;
  gap: 8px;
}

.admin-thumb {
  width: 70px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(76, 20, 127, .14);
}

.settings-qr {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  border: 1px solid rgba(231, 205, 232, .95);
}

.online-payment-box {
  min-height: 62px;
  grid-template-columns: 32px 1fr;
  padding: 12px;
  align-items: center;
}

.online-payment-box .ui-icon {
  width: 32px;
  height: 32px;
}

.online-payment-box p {
  margin: 0;
  color: #54445f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .admin-body .app-shell {
    width: 100%;
    padding: 0 0 20px;
  }

  .admin-shell {
    display: block;
  }

  .admin-side {
    position: sticky;
    top: 0;
    z-index: 60;
    display: block;
    grid-template-columns: none;
    gap: 0;
    min-height: auto;
    padding: 12px;
    border-width: 0 0 1px;
    border-radius: 0 0 14px 14px;
    background:
      linear-gradient(180deg, rgba(255,248,251,.98), rgba(241,233,255,.98));
  }

  .admin-brand {
    min-height: 54px;
    margin: 0 96px 10px 0;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .admin-brand > span {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 17px;
  }

  .admin-brand h1 {
    font-size: 17px;
  }

  .admin-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .admin-menu::-webkit-scrollbar {
    display: none;
  }

  .admin-menu a {
    flex: 0 0 auto;
    min-width: 96px;
    min-height: 42px;
    justify-content: center;
    padding: 0 10px;
    font-size: 11px;
  }

  .admin-menu a svg {
    width: 17px;
    height: 17px;
  }

  .admin-logout {
    position: absolute;
    top: 14px;
    right: 12px;
    min-height: 36px;
    margin: 0;
    padding: 0 10px;
    font-size: 11px;
  }

  .admin-logout svg {
    width: 16px;
    height: 16px;
  }

  .admin-main {
    margin: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-main h2 {
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid rgba(231, 205, 232, .92);
    border-radius: 12px;
    background: rgba(255, 248, 251, .96);
    box-shadow: 0 12px 24px rgba(76, 20, 127, .10);
    font-size: 20px;
  }

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

  .admin-stat {
    min-height: 96px;
    padding: 13px;
  }

  .admin-stat strong {
    font-size: 24px;
  }

  .admin-form,
  .admin-form.search-form,
  .settings-form {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 12px;
  }

  .table-card {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-card table,
  .table-card thead,
  .table-card tbody,
  .table-card tr,
  .table-card td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .table-card thead {
    display: none;
  }

  .table-card tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(231, 205, 232, .92);
    border-radius: 12px;
    background: rgba(255, 248, 251, .96);
    box-shadow: 0 12px 24px rgba(76, 20, 127, .10);
  }

  .table-card td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .table-card td::before {
    content: attr(data-label);
    color: #78668a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
  }

  .table-card td:empty {
    display: none;
  }

  .admin-actions {
    min-width: 0;
  }

  .inline-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mini-btn {
    width: 100%;
  }

  .admin-thumb {
    width: 88px;
    height: 58px;
  }
}

.auth-page.admin-body .app-shell {
  width: min(100%, 420px);
  padding: 0 10px 24px;
  background:
    linear-gradient(180deg, rgba(227, 6, 44, .18) 0, rgba(76, 20, 127, .14) 46%, rgba(21, 89, 214, .12) 100%),
    #f5eafa;
}

.auth-page.admin-body .auth-card {
  width: calc(100% - 20px);
  max-width: 396px;
}

@media (max-width: 800px) {
  .admin-body .admin-side {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    width: 100%;
  }

  .admin-body .admin-brand {
    width: calc(100% - 104px);
    margin: 0 0 10px;
  }

  .admin-body .admin-menu {
    grid-column: auto !important;
    display: flex !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .admin-body .admin-menu a {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
  }

  .admin-body .admin-logout {
    top: 20px;
    right: 12px;
  }
}

.top-bar {
  height: 54px;
  margin: -10px -10px 12px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(16, 24, 40, .06);
}

.top-bar h1 {
  font-size: 16px;
  letter-spacing: 0;
}

.round-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--ink);
}

.round-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.35;
}

.balance-card,
.profile-head,
.team-head {
  margin: 0 0 12px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(231, 25, 50, .96), rgba(23, 100, 216, .96));
  box-shadow: 0 16px 32px rgba(16, 24, 40, .14);
}

.balance-card {
  min-height: 108px;
  padding: 20px 18px;
}

.balance-card strong {
  margin-top: 9px;
  font-size: 30px;
}

.balance-card img {
  right: -18px;
  top: 14px;
  width: 128px;
  height: 82px;
  border-radius: 8px;
  opacity: .48;
}

.panel-card {
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
}

.form-stack {
  gap: 12px;
}

.section-title {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
}

.section-title span {
  border-radius: 8px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 10px;
  box-shadow: none;
}

.section-title span::before {
  display: none;
}

.section-title a,
.section-title small {
  color: var(--red);
  font-size: 11px;
}

.amount-grid {
  gap: 9px;
}

.amount-choice {
  min-height: 44px;
  border-color: #dbe5f0;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-weight: 900;
}

.amount-choice.selected {
  border-color: rgba(231, 25, 50, .72);
  background: #fff2f4;
  color: var(--red);
  box-shadow: none;
}

.input-box,
.input-pill {
  min-height: 52px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #f8fbff;
}

.input-pill {
  border-radius: 8px;
}

.input-box:focus-within,
.input-pill:focus-within {
  border-color: rgba(23, 100, 216, .62);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 100, 216, .10);
}

.input-box b,
.input-pill b {
  color: var(--blue);
  font-size: 12px;
}

.input-box input,
.input-box select,
.input-pill input {
  color: var(--ink);
  font-weight: 700;
}

.password-toggle {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #667085;
}

.password-toggle.active {
  background: #edf5ff;
}

.hint,
.terms,
.auth-link {
  color: #667085;
  line-height: 1.45;
}

.tax-box,
.payment-box {
  border: 1px solid rgba(223, 231, 241, .9);
  border-radius: 8px;
  background: #f8fbff;
}

.payment-box img {
  border-radius: 8px;
}

.list-row {
  min-height: 62px;
  padding: 12px 30px 12px 50px;
  border-bottom-color: #edf2f7;
}

.list-row::after {
  top: 22px;
  color: #98a2b3;
}

.list-row b {
  color: #182230;
  font-size: 13px;
}

.list-row small {
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
}

.row-icon {
  top: 13px;
  left: 6px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #edf5ff;
}

.row-icon::before {
  background: var(--blue);
}

.auth-page .app-shell {
  width: min(100%, 420px);
  padding: 0 10px 30px;
  background:
    linear-gradient(180deg, #fef2f2 0, #eef5ff 42%, #f8fafc 100%);
}

.auth-hero {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  border: 0;
  box-shadow: 0 16px 34px rgba(16, 24, 40, .12);
}

.auth-hero img {
  aspect-ratio: 1.95;
}

.auth-card {
  width: calc(100% - 20px);
  max-width: 396px;
  margin: -20px auto 0;
  padding: 44px 18px 24px;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
}

.brand-badge {
  top: -42px;
  width: 78px;
  height: 78px;
  border-width: 5px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  font-size: 16px;
}

.auth-tabs {
  width: 100%;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 8px;
  background: #eef3f8;
  column-gap: 0;
  font-size: 14px;
}

.auth-tabs a,
.auth-tabs strong {
  min-height: 38px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}

.auth-tabs a {
  color: #667085;
}

.auth-tabs strong {
  background: #fff;
  color: var(--red);
  box-shadow: 0 8px 18px rgba(16, 24, 40, .08);
}

.auth-tabs strong::after {
  display: none;
}

.terms-check {
  color: #667085;
  font-size: 11px;
}

.terms-check input {
  border-radius: 5px;
}

.auth-footer {
  margin-top: 14px;
}

.account-hero {
  min-height: 176px;
  margin: -10px -10px 0;
  padding: 50px 18px 44px;
  background:
    linear-gradient(135deg, rgba(231, 25, 50, .94), rgba(23, 100, 216, .95)),
    url("assets/campa-poster.jpg") center / cover;
}

.account-hero::after {
  height: 18px;
  border-radius: 16px 16px 0 0;
  background: var(--page);
}

.account-avatar {
  border-radius: 8px;
  background: rgba(255,255,255,.18);
}

.account-hero h1 {
  font-size: 25px;
  letter-spacing: 0;
}

.account-exit {
  border-radius: 8px;
  background: rgba(255,255,255,.20);
}

.account-wallet {
  margin: -26px 0 12px;
  padding: 12px;
  border-radius: 8px;
}

.wallet-main {
  border-radius: 8px;
  background: linear-gradient(135deg, #111827, #1764d8);
}

.wallet-main strong {
  font-size: 34px;
}

.wallet-pair {
  gap: 9px;
}

.wallet-pair span {
  border: 1px solid rgba(223, 231, 241, .9);
  border-radius: 8px;
  background: #f8fbff;
}

.wallet-pair b {
  color: var(--ink);
}

.wallet-actions {
  gap: 9px;
}

.wallet-actions a {
  min-height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--blue));
}

.wallet-actions a:nth-child(2) {
  border: 1px solid rgba(23, 100, 216, .18);
  background: #edf5ff;
  color: var(--blue);
}

.account-grid {
  margin: 0 0 12px;
  gap: 9px;
}

.account-grid div {
  min-height: 80px;
  border-radius: 8px;
}

.account-grid b {
  color: var(--ink);
  font-size: 19px;
}

.invite-panel {
  margin: 0 0 12px;
  border-color: rgba(23, 100, 216, .18);
  border-radius: 8px;
  background: #fff;
}

.invite-panel strong {
  color: var(--blue);
}

.invite-panel button {
  border-radius: 8px;
}

.detail-grid {
  gap: 9px;
}

.detail-grid span,
.mini-stats span {
  border: 1px solid rgba(223, 231, 241, .88);
  border-radius: 8px;
  background: #f8fbff;
  color: #667085;
}

.detail-grid b,
.mini-stats b {
  color: var(--ink);
}

.team-head {
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--blue));
}

.team-head div:not(.invite-chip) {
  border-radius: 8px;
}

.team-head strong {
  color: var(--ink);
}

.invite-chip {
  border-radius: 8px;
}

.invite-chip button {
  border-radius: 8px;
  background: var(--blue);
}

.level-card {
  margin: 0 0 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(223, 231, 241, .95);
}

.level-card span {
  color: #667085;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 10px;
}

.level-card b {
  color: var(--green);
}

.level-card small {
  margin-top: 5px;
  color: #667085;
}

.share-card {
  margin: 0 0 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--blue));
}

.share-card img {
  aspect-ratio: 2.05;
}

.share-card div {
  padding: 14px;
}

.share-card strong {
  font-size: 38px;
}

.copy-row {
  grid-template-columns: 76px 1fr 64px;
  gap: 8px;
}

.copy-row button,
.mini-btn {
  border-radius: 8px;
}

.how-card {
  margin: 0 0 86px;
  padding: 8px 14px;
  border: 1px solid rgba(223, 231, 241, .95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .07);
}

.how-card div {
  grid-template-columns: 34px 1fr;
}

.how-card b:first-child {
  border-color: var(--blue);
  border-radius: 8px;
  color: var(--blue);
}

.collection-card {
  border-color: rgba(223, 231, 241, .95);
  border-radius: 8px;
  background: #fff;
}

.collection-card img {
  border-radius: 8px;
}

.collection-card h2 {
  color: var(--ink);
}

.support-hero {
  min-height: 142px;
  margin: -10px -10px 12px;
  padding: 22px 18px;
  background:
    linear-gradient(135deg, rgba(231, 25, 50, .94), rgba(23, 100, 216, .96)),
    url("assets/campa-poster.jpg") center / cover;
}

.support-hero h1 {
  font-size: 32px;
  letter-spacing: 0;
}

.support-hero a {
  border-radius: 8px;
}

.welcome-overlay {
  width: min(100%, 460px);
}

.welcome-modal {
  border-radius: 8px;
}

.welcome-modal::before {
  background: linear-gradient(135deg, var(--red), var(--blue));
}

.welcome-close,
.welcome-mark,
.welcome-bonus,
.welcome-mini-grid span,
.welcome-levels span,
.welcome-channel {
  border-radius: 8px;
}

.welcome-bonus,
.welcome-channel {
  background: linear-gradient(135deg, var(--red), var(--blue));
}

@media (max-width: 520px) {
  body:not(.admin-body) .app-shell {
    padding: 10px 10px 98px;
  }

  .hero img,
  .product-image img,
  .share-card img {
    aspect-ratio: 1.95;
  }

  .auth-page .app-shell {
    padding: 0 10px 24px;
  }

  .auth-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .account-hero,
  .support-hero,
  .top-bar {
    margin-left: -10px;
    margin-right: -10px;
  }

  .wallet-main strong {
    font-size: 31px;
  }

  .copy-row {
    grid-template-columns: 70px 1fr 58px;
  }

  .copy-row span,
  .copy-row button {
    font-size: 10px;
  }
}

/* Campa brand color pass */
:root {
  --red: #e3062c;
  --red-dark: #a60825;
  --blue: #1559d6;
  --purple: #4c147f;
  --grape: #76115f;
  --gold: #ffd447;
  --ink: #180f2d;
  --muted: #685f7d;
  --page: #f5eafa;
  --card: #fff4f8;
  --soft: #f1e9ff;
  --line: #e7cde8;
  --shadow: 0 14px 30px rgba(76, 20, 127, .16);
}

body {
  background:
    linear-gradient(180deg, #fde7ee 0, #eee7ff 44%, #e6f0ff 100%);
}

body:not(.admin-body) .app-shell,
.profile-page .app-shell {
  background:
    linear-gradient(180deg, rgba(227, 6, 44, .12) 0, rgba(76, 20, 127, .13) 220px, rgba(21, 89, 214, .09) 100%),
    #f5eafa;
}

.hero,
.auth-hero {
  border-color: rgba(255, 212, 71, .55);
  box-shadow: 0 18px 38px rgba(76, 20, 127, .28);
}

.top-bar {
  background: linear-gradient(135deg, var(--red), var(--grape) 48%, var(--blue));
  color: #fff;
  border-bottom: 0;
  box-shadow: 0 14px 28px rgba(76, 20, 127, .24);
}

.round-icon {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.quick-actions,
.tabs,
.product-card,
.panel-card,
.auth-card,
.account-wallet,
.invite-panel,
.how-card,
.collection-card,
.wallet-strip div,
.account-grid div,
.level-card {
  border-color: rgba(231, 205, 232, .95);
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,244,248,.96));
  box-shadow: 0 14px 28px rgba(76, 20, 127, .13);
}

.wallet-strip div,
.account-grid div,
.detail-grid span,
.mini-stats span,
.wallet-pair span,
.stats div,
.level-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,234,242,.88) 48%, rgba(235,242,255,.92));
}

.wallet-strip div:first-child,
.account-grid div:nth-child(1),
.detail-grid span:nth-child(1),
.stats div:nth-child(1) {
  border-color: rgba(227, 6, 44, .28);
}

.wallet-strip div:nth-child(2),
.account-grid div:nth-child(2),
.detail-grid span:nth-child(2),
.stats div:nth-child(2) {
  border-color: rgba(21, 89, 214, .28);
}

.wallet-strip strong,
.account-grid b,
.detail-grid b,
.mini-stats b,
.stats strong,
.level-card strong {
  color: var(--ink);
}

.wallet-strip span,
.account-grid span,
.detail-grid span,
.mini-stats span,
.stats span,
.wallet-pair span,
.section-title small {
  color: #6f5d7a;
}

.quick-actions {
  background:
    linear-gradient(135deg, rgba(227, 6, 44, .14), rgba(76, 20, 127, .12), rgba(21, 89, 214, .14));
}

.quick-action {
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,238,246,.94));
  color: var(--red);
}

.quick-action:nth-child(2) { color: var(--blue); }
.quick-action:nth-child(3) { color: var(--purple); }
.quick-action:nth-child(4) { color: #0b8b70; }

.quick-action span {
  color: var(--ink);
}

.tabs,
.auth-tabs {
  background: linear-gradient(135deg, rgba(227, 6, 44, .18), rgba(76, 20, 127, .16), rgba(21, 89, 214, .18));
}

.tab,
.auth-tabs a {
  color: #5d4f70;
}

.tab.active,
.auth-tabs strong {
  background: linear-gradient(135deg, #fff9fb, #eef4ff);
  color: var(--red);
}

.product-card h1,
.product-card h2,
.section-title b,
.collection-card h2 {
  color: var(--ink);
}

.product-card {
  background:
    linear-gradient(180deg, rgba(255,249,251,.96), rgba(238,244,255,.96));
}

.product-image {
  border: 1px solid rgba(76, 20, 127, .24);
  box-shadow: 0 10px 22px rgba(76, 20, 127, .16);
}

.locked-product-image img {
  filter: blur(1.1px) brightness(.86) saturate(.9);
  transform: scale(1.015);
}

.locked-product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 18, 32, .08);
  pointer-events: none;
}

.countdown,
.vip-badge,
.lock-badge {
  z-index: 2;
}

.countdown {
  color: var(--red);
}

.vip-card {
  background:
    linear-gradient(180deg, #fff7d7, #fff3f7 52%, #edf4ff);
  border-color: rgba(255, 212, 71, .86);
}

.plan-limit span {
  background: rgba(255,255,255,.64);
  border-color: rgba(231, 205, 232, .9);
}

.plan-limit b,
.level-card b {
  color: #007a68;
}

.buy-button,
.primary-button,
.copy-row button,
.mini-btn,
.invite-panel button,
.invite-chip button,
.wallet-actions a {
  background: linear-gradient(135deg, var(--red), var(--grape) 48%, var(--blue));
  color: #fff;
  box-shadow: 0 12px 22px rgba(227, 6, 44, .24);
}

.buy-button.locked-button,
.buy-button.locked-button:hover,
.buy-button.locked-button:disabled {
  border: 1px solid rgba(164, 174, 190, .72);
  background: linear-gradient(135deg, #edf1f7, #dbe1eb);
  color: #7b8494;
  box-shadow: none;
  filter: none;
  cursor: not-allowed;
}

.wallet-actions a:nth-child(2) {
  border-color: rgba(21, 89, 214, .34);
  background: linear-gradient(135deg, #eef4ff, #f9eafd);
  color: var(--blue);
  box-shadow: none;
}

.input-box,
.input-pill,
.tax-box,
.payment-box {
  border-color: rgba(231, 205, 232, .95);
  background: linear-gradient(135deg, #fff8fb, #eef4ff);
}

.input-box:focus-within,
.input-pill:focus-within {
  border-color: rgba(227, 6, 44, .62);
  box-shadow: 0 0 0 3px rgba(227, 6, 44, .10);
}

.input-box b,
.input-pill b,
.section-title a,
.terms a,
.auth-link a,
.forgot-link {
  color: var(--red);
}

.section-title span,
.row-icon {
  background: linear-gradient(135deg, rgba(227, 6, 44, .13), rgba(21, 89, 214, .15));
  color: var(--red);
}

.row-icon::before {
  background: linear-gradient(135deg, var(--red), var(--blue));
}

.list-row {
  border-bottom-color: rgba(231, 205, 232, .86);
}

.bottom-nav {
  border-color: rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(227, 6, 44, .96), rgba(76, 20, 127, .96) 50%, rgba(21, 89, 214, .96));
  box-shadow: 0 -16px 32px rgba(76, 20, 127, .25);
}

.nav-item {
  color: rgba(255,255,255,.74);
}

.nav-item span {
  color: inherit;
}

.nav-item.active {
  background: rgba(255,255,255,.96);
  color: var(--red);
  box-shadow: 0 10px 20px rgba(24, 15, 45, .20);
}

.auth-page .app-shell {
  background:
    linear-gradient(180deg, rgba(227, 6, 44, .18) 0, rgba(76, 20, 127, .14) 46%, rgba(21, 89, 214, .12) 100%),
    #f5eafa;
}

.auth-card {
  background:
    linear-gradient(180deg, rgba(255,249,251,.94), rgba(239,244,255,.98));
  border-color: rgba(255,255,255,.70);
}

.brand-badge,
.account-avatar,
.welcome-mark {
  background: linear-gradient(135deg, var(--red), var(--grape) 50%, var(--blue));
  box-shadow: 0 14px 26px rgba(76, 20, 127, .28);
}

.account-hero,
.team-head,
.support-hero,
.share-card,
.balance-card {
  background:
    linear-gradient(135deg, rgba(227, 6, 44, .92), rgba(118, 17, 95, .90) 48%, rgba(21, 89, 214, .92)),
    url("assets/campa-poster.jpg") center / cover;
}

.account-hero::after {
  background: #f5eafa;
}

.account-wallet {
  background:
    linear-gradient(180deg, rgba(255,244,248,.98), rgba(238,244,255,.98));
}

.wallet-main {
  background:
    linear-gradient(135deg, rgba(227, 6, 44, .96), rgba(76, 20, 127, .95) 48%, rgba(21, 89, 214, .96));
  box-shadow: 0 12px 24px rgba(76, 20, 127, .20);
}

.wallet-pair b {
  color: var(--red-dark);
}

.invite-panel {
  background:
    linear-gradient(135deg, rgba(255,244,248,.98), rgba(239,244,255,.98));
}

.invite-panel strong {
  color: var(--red);
}

.team-head div:not(.invite-chip),
.invite-chip {
  background: rgba(255, 248, 251, .92);
}

.share-card {
  box-shadow: 0 18px 36px rgba(76, 20, 127, .22);
}

.share-card div {
  background: linear-gradient(180deg, rgba(76,20,127,0), rgba(76,20,127,.18));
}

.welcome-modal {
  background:
    linear-gradient(180deg, #fff8fb, #eef4ff) padding-box,
    linear-gradient(135deg, var(--red), var(--grape), var(--blue)) border-box;
}

.welcome-modal::before,
.welcome-bonus,
.welcome-channel {
  background: linear-gradient(135deg, var(--red), var(--grape) 48%, var(--blue));
}

/* Simple footer restore */
.bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 50;
  width: min(100%, 456px);
  height: 72px;
  padding: 8px 24px max(8px, env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid rgba(231, 205, 232, .95);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -1px 0 rgba(76, 20, 127, .04);
  transform: translateX(-50%);
  backdrop-filter: none;
}

.nav-item {
  height: 56px;
  border-radius: 0;
  color: #8f9bb2;
  background: transparent;
  box-shadow: none;
}

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

.nav-item span {
  color: inherit;
}

.nav-item.active {
  background: transparent;
  color: var(--red);
  box-shadow: none;
}

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