/* ================================================================
   CREALITY N3DCRE.COM — SHARED DESIGN SYSTEM
   All pages use this file
   ================================================================ */

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

:root {
  --green: #1686bb;
  --green-dark: #0e6f9f;
  --green-light: #e5f4fb;
  --black: #1a1a1a;
  --dark: #2d2d2d;
  --grey-1: #f5f6f8;
  --grey-2: #eceef1;
  --grey-3: #d5d9e0;
  --grey-4: #9aa0ab;
  --text: #333;
  --text-light: #888;
  --red: #e53e3e;
  --gold: #f6a623;
  --bg: #eef0f4;
  --card: #ffffff;
  --nav-bg: #2a2d32;
  --nav-active: var(--green);
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 100%;
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

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

/* ── page shell (mobile centred) ── */
.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background: var(--bg);
}

.page-content {
  width: 100%;
  max-width: var(--max-w);
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: none;
}

.spa-route[data-route="home"] .page-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.spa-route[data-route="home"] .page-content {
  height: 100%;
  min-height: 0;
}

.spa-route:not([hidden]) .page-content {
  animation: page-enter 0.32s ease-out;
}

@keyframes page-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── bottom navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  background: var(--nav-bg);
  display: flex;
  align-items: stretch;
  height: calc(60px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8a9099;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s;
  padding: 8px 0 10px;
}

.bottom-nav a:hover,
.bottom-nav a.active {
  color: var(--green);
}

.bottom-nav a,
button,
.menu-item,
.action-btn,
.content-primary-btn,
.copy-btn {
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

button:not(:disabled):active,
.menu-item:active,
.action-btn:active,
.content-primary-btn:active,
.copy-btn:active {
  transform: scale(0.98);
}

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

/* ── page padding above bottom nav ── */
.scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 72px;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.spa-route[data-route="team"] .page-shell,
.spa-route[data-route="team-members"] .page-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.spa-route[data-route="team"] .page-content,
.spa-route[data-route="team-members"] .page-content {
  height: 100%;
  min-height: 0;
}

.team-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.team-page-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
  background: #f5f5f5;
  color: #141414;
}

.team-page-header .page-header-back {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.team-page-header .page-header-title {
  position: absolute;
  left: 50%;
  max-width: calc(100% - 112px);
  transform: translateX(-50%);
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-members-link {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 12px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.team-members-link span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.team-members-link span i {
  color: var(--green);
  font-size: 20px;
}

.team-members-link > i {
  color: var(--text-light);
  font-size: 22px;
}

.team-level-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.team-level-card {
  display: flex;
  min-width: 0;
  min-height: 94px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #171717;
}

.team-level-card strong {
  font-size: 19px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.team-level-card span {
  font-size: 13px;
  white-space: nowrap;
}

.team-member-toolbar {
  padding: 12px 14px 8px;
  background: #fff;
}

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

.team-level-tab {
  min-height: 38px;
  border: 1px solid #e4e8e5;
  border-radius: 20px;
  background: #fff;
  color: #5f665f;
  font-size: 13px;
  font-weight: 600;
}

.team-level-tab.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.team-list-status {
  min-height: 0;
  margin: 0;
  padding: 0 16px;
  background: #fff;
  color: #858585;
  font-size: 13px;
}

.team-list-status:not(:empty) {
  padding-top: 16px;
  padding-bottom: 16px;
}

.team-member-list {
  background: #fff;
}

.team-member-row {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #e8e8e8;
}

.team-member-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  background: #f0f7f1;
  color: var(--green);
  font-size: 25px;
}

.team-member-details {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.team-member-details strong {
  overflow: hidden;
  color: #292929;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-member-joined {
  color: #929292;
  font-size: 12px;
}

.team-member-commission {
  flex: 0 0 auto;
  color: #222;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.team-load-more {
  display: block;
  width: calc(100% - 32px);
  min-height: 42px;
  margin: 14px 16px;
  border: 1px solid #dfe7e0;
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 600;
}

.team-load-more[hidden] {
  display: none;
}

.team-invite-details {
  margin: 14px 12px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.team-invite-details > summary {
  padding: 14px 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.team-invite-details[open] > summary {
  border-bottom: 1px solid var(--grey-2);
}

.team-invite-details .invite-card {
  margin: 0;
  box-shadow: none;
}

.team-invite-note {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--text-light);
  font-size: 12px;
}

.spa-route[data-route="mine"] .page-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.spa-route[data-route="mine"] .page-content {
  height: 100%;
  min-height: 0;
}

.mine-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.spa-route[data-route="mine"]:not([hidden]) .mine-header,
.spa-route[data-route="mine"]:not([hidden]) .mine-scroll-body > .content-note,
.spa-route[data-route="mine"]:not([hidden]) .mine-scroll-body > .tab-row,
.spa-route[data-route="mine"]:not([hidden]) .mine-scroll-body > .menu-group {
  animation: mine-content-enter 0.42s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.spa-route[data-route="mine"]:not([hidden]) .mine-header {
  animation-delay: 0.04s;
}
.spa-route[data-route="mine"]:not([hidden]) .mine-scroll-body > .content-note {
  animation-delay: 0.09s;
}
.spa-route[data-route="mine"]:not([hidden]) .mine-scroll-body > .tab-row {
  animation-delay: 0.14s;
}
.spa-route[data-route="mine"]:not([hidden])
  .mine-scroll-body
  > .menu-group:nth-child(4) {
  animation-delay: 0.19s;
}
.spa-route[data-route="mine"]:not([hidden])
  .mine-scroll-body
  > .menu-group:nth-child(5) {
  animation-delay: 0.25s;
}

.spa-route[data-route="mine"]:not([hidden]) .wallet-split-item {
  animation: mine-wallet-enter 0.4s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.spa-route[data-route="mine"]:not([hidden]) .wallet-split-item:nth-child(2) {
  animation-delay: 0.1s;
}

.spa-route[data-route="mine"]:not([hidden]) .menu-item {
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.spa-route[data-route="mine"]:not([hidden]) .menu-item:hover .menu-item-arrow {
  transform: translateX(3px);
}

.menu-item-arrow {
  transition:
    transform 0.18s ease,
    color 0.18s ease;
}

@keyframes mine-content-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mine-wallet-enter {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── hero banner ── */
.hero-banner {
  width: 100%;
  height: 195px;
  background: #111;
  position: relative;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.62),
    rgba(0, 0, 0, 0.12) 68%,
    transparent
  );
  pointer-events: none;
}

.hero-brand {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.hero-brand-logo {
  width: 44px;
  height: 40px;
  flex: 0 0 auto;
}

/* ── marquee ticker ── */
.ticker-bar {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 10px 14px;
  gap: 10px;
  font-size: 12px;
  overflow: hidden;
  border-bottom: 1px solid var(--grey-2);
}

.ticker-label {
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-block;
  animation: ticker 22s linear infinite;
  color: var(--text-light);
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.ticker-bell {
  color: var(--green);
  flex-shrink: 0;
}

/* ── action buttons row ── */
.action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-3);
  margin: 0 0 16px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 8px;
  background: #2a2d32;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.action-btn:hover {
  background: #353a42;
}

.action-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.action-btn-icon.green {
  background: var(--green);
}
.action-btn-icon.dark {
  background: #4a4f58;
}

/* ── section title ── */
.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  padding: 0 14px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── product grid ── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 14px 20px;
}

.product-catalog-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  color: var(--text-light);
  text-align: center;
}

.product-card {
  background: var(--card);
  border: 1px solid #e4e9e6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(25, 39, 52, 0.045);
  display: flex;
  flex-direction: column;
}

.product-card-visual {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  background: #f3f8fa;
}

.product-card-header {
  margin: 0;
  color: #263440;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.product-status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #0e6f9f;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.product-card[data-status="coming-soon"] .product-status {
  color: #68736c;
}

.product-card-img {
  display: block;
  width: 100%;
  height: 156px;
  object-fit: cover;
  object-position: center;
}

.product-card-img-placeholder {
  width: 100%;
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aca4;
  font-size: 38px;
}

.product-card-body {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.product-stat {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0ee;
  color: #3d4b56;
  font-size: 12px;
  line-height: 1.4;
}

.product-stat-label,
.product-price-label {
  color: #818c84;
  font-size: 11px;
  font-weight: 500;
}

.product-stat > span:last-child {
  font-weight: 650;
  text-align: right;
}

.product-price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-price {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #202b31;
}

.product-daily-income {
  padding: 9px 10px;
  border: 1px solid #e8ede9;
  border-radius: 8px;
  background: #f7f9f7;
  color: #647168;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.buy-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  min-height: 42px;
  border: 1px solid var(--green-dark);
  background: var(--green);
  color: #fff;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

.buy-btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.buy-btn.coming-soon {
  border-color: #e2e7e3;
  background: #f2f4f2;
  color: #707b73;
  box-shadow: none;
  cursor: not-allowed;
}

/* ── cards (stats / summary) ── */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 12px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.stat-card-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.stat-card-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.owned-product-list {
  display: grid;
  gap: 14px;
  padding: 0 12px 20px;
}

.owned-product-card {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid #e3e9ed;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(30, 51, 68, 0.055);
}

.owned-product-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green);
  content: "";
}

.owned-product-header,
.owned-product-identity {
  display: flex;
  align-items: center;
}

.owned-product-header {
  justify-content: space-between;
  gap: 12px;
}

.owned-product-identity {
  min-width: 0;
  gap: 12px;
}

.owned-product-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #e1edf2;
  border-radius: 12px;
  background: #f1f8fb;
  color: var(--green-dark);
  font-size: 20px;
}

.owned-product-name {
  color: #263440;
  font-size: 15px;
  font-weight: 700;
}

.owned-product-date {
  margin-top: 4px;
  color: #7b877f;
  font-size: 11px;
}

.owned-product-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.owned-product-status.is-active {
  background: var(--green-light);
  color: var(--green-dark);
}

.owned-product-status.is-complete {
  background: #f0f2f1;
  color: #69736c;
}

.owned-product-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 0;
  border-top: 1px solid #edf0ee;
  border-bottom: 1px solid #edf0ee;
}

.owned-product-metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.owned-product-metric > span {
  color: #7b877f;
  font-size: 10px;
}

.owned-product-metric > strong {
  color: #2f3c46;
  font-size: 13px;
  font-weight: 700;
}

.owned-product-price {
  font-variant-numeric: tabular-nums;
}

.owned-product-note {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px 12px;
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 9px;
  background: #f6f8f6;
  color: #647168;
  font-size: 11px;
  line-height: 1.5;
}

.owned-product-countdown-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #52616b;
  font-size: 11px;
  font-weight: 600;
}

.owned-product-countdown-label::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(22, 134, 187, 0.35);
  content: "";
  animation: owned-product-pulse 1.8s ease-out infinite;
}

.owned-product-countdown {
  color: var(--green-dark);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.owned-product-cycle-progress {
  display: block;
  height: 5px;
  overflow: hidden;
  grid-column: 1 / -1;
  border-radius: 999px;
  background: #e3edf2;
}

.owned-product-cycle-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-dark), #51b8e4);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s linear;
}

.owned-product-note-copy {
  grid-column: 1 / -1;
  color: #647168;
}

@keyframes owned-product-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 134, 187, 0.35);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(22, 134, 187, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 134, 187, 0);
  }
}

.owned-product-countdown-label[hidden],
.owned-product-countdown[hidden],
.owned-product-cycle-progress[hidden] {
  display: none;
}

.owned-products-empty {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  color: #aab0bb;
  gap: 12px;
  text-align: center;
}

.owned-products-empty[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .owned-product-countdown-label::before {
    animation: none;
  }

  .owned-product-cycle-progress-fill {
    transition: none;
  }
}

/* ── mine / profile header ── */
.mine-header {
  background: linear-gradient(135deg, #2c3e50 0%, #3d5468 100%);
  color: #fff;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 130px;
  overflow: hidden;
}

.mine-header-info {
  width: 100%;
  padding-right: 112px;
  position: relative;
  z-index: 1;
}
.mine-header-art {
  pointer-events: none;
}
.wallet-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 340px;
  margin-bottom: 14px;
}
.wallet-split-item {
  min-width: 0;
}
.wallet-split-label {
  margin-bottom: 4px;
  font-size: 11px;
  opacity: 0.75;
}
.wallet-split-balance {
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.mine-balance {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.mine-balance-label {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 14px;
}
.mine-phone {
  font-size: 16px;
  font-weight: 600;
}
.mine-phone-label {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 2px;
}

.mine-header-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: center 34%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* ── tab buttons ── */
.tab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 12px 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tab-btn {
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  background: var(--grey-1);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.tab-btn.active {
  background: var(--dark);
  color: #fff;
}

/* ── menu list ── */
.menu-group {
  margin: 0 12px 12px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--grey-2);
  cursor: pointer;
  transition: background 0.15s;
  color: var(--text);
}

.menu-item[hidden] {
  display: none;
}
.menu-item:last-child {
  border-bottom: none;
}
.menu-item:hover {
  background: var(--grey-1);
}

.menu-item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 16px;
  flex-shrink: 0;
}

.menu-item-label {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
}
.menu-item-arrow {
  color: var(--grey-4);
  font-size: 16px;
}

/* ── team page ── */
.invite-card {
  margin: 14px 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.invite-row-left {
}
.invite-code-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
}
.invite-code-lbl,
.invite-link-lbl {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}
.invite-link-val {
  font-size: 12px;
  color: var(--green);
  word-break: break-all;
}

.copy-btn {
  background: var(--green);
  color: #fff;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--green-dark);
}

/* ── commission table ── */
.commission-header {
  margin: 0 12px 2px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--grey-2);
}

.commission-table-wrap {
  margin: 0 12px;
  background: #2a2d32;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.commission-table {
  width: 100%;
  border-collapse: collapse;
}

.commission-table th {
  background: #1e2124;
  color: #c8ccd5;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 11px 8px;
  letter-spacing: 0.04em;
}

.commission-table td {
  color: #dde1ea;
  font-size: 13px;
  text-align: center;
  padding: 12px 8px;
  border-top: 1px solid #383c44;
}

.commission-table td:first-child {
  text-align: left;
  padding-left: 16px;
  font-size: 12px;
}

/* team tabs */
.team-tab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 14px 12px 0;
  background: #2a2d32;
  border-radius: var(--radius);
  overflow: hidden;
}

.team-tab-btn {
  padding: 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #888;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.team-tab-btn.active {
  color: #fff;
  border-bottom: 2px solid var(--green);
}

/* ── rules section ── */
.rules-card {
  margin: 14px 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.rules-card p {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.rules-card p:last-child {
  margin-bottom: 0;
}
.rules-card p em {
  color: var(--green);
  font-style: normal;
  font-weight: 600;
}

/* ── payment page ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--grey-2);
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-header-back {
  font-size: 22px;
  color: var(--dark);
  line-height: 1;
  cursor: pointer;
}

.page-header-title {
  font-size: 15px;
  font-weight: 700;
}
.page-header-action {
  font-size: 20px;
  color: var(--text-light);
}

.pay-section {
  padding: 16px;
}

.pay-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.pay-label span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 6px;
}

.amount-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.amount-chip {
  position: relative;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #e1e9e3;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f4faff 100%);
  color: #334451;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(22, 80, 110, 0.05);
  transition: border-color 0.18s ease, background 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.amount-chip:hover:not(:disabled) {
  border-color: var(--green);
  box-shadow: 0 5px 12px rgba(22, 134, 187, 0.12);
  transform: translateY(-1px);
}

.amount-chip:focus-visible {
  outline: 3px solid rgba(22, 134, 187, 0.25);
  outline-offset: 2px;
}

.amount-chip.selected {
  border-color: var(--green-dark);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 5px 14px rgba(22, 134, 187, 0.24);
}

.amount-chip.selected::after {
  position: absolute;
  top: 4px;
  right: 7px;
  content: "✓";
  font-size: 10px;
  font-weight: 700;
}

.amount-chip:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pay-input-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--grey-3);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  height: 48px;
  gap: 6px;
  margin-bottom: 18px;
}

.pay-input-prefix {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}

.pay-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--dark);
}

.pay-input::placeholder {
  color: var(--grey-4);
  font-size: 12px;
}

/* channel */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.channel-item {
  border: 1.5px solid var(--grey-3);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
  text-align: center;
  color: var(--text);
}

.channel-item:hover,
.channel-item.selected {
  border-color: var(--green);
  color: var(--green);
}

.channel-item:disabled {
  border-color: var(--grey-2);
  background: #f5f6f5;
  color: #8a928d;
  cursor: not-allowed;
  opacity: 0.75;
}

.channel-item:disabled.selected {
  border-color: var(--grey-2);
  color: #8a928d;
}

.pay-now-btn {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(22, 134, 187, 0.35);
  margin-bottom: 18px;
}

.pay-now-btn:hover {
  background: var(--green-dark);
}

.manual-recharge-panel {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--grey-2);
  border-radius: 10px;
  background: var(--card);
}

.manual-recharge-panel h2 {
  margin: 0;
  color: var(--dark);
  font-size: 16px;
}

#manual-recharge-instructions {
  white-space: pre-line;
}

#manual-recharge-form {
  margin-top: 14px;
}

#manual-recharge-form input[type="file"] {
  padding: 10px;
  font-size: 12px;
}

#manual-recharge-form .pay-now-btn {
  margin: 0;
}

#manual-recharge-status:empty {
  display: none;
}

/* notices */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

.notice-icon {
  flex-shrink: 0;
  font-size: 14px;
}

/* ── withdrawal page ── */
.withdraw-balance-card {
  margin: 14px 12px;
  background: linear-gradient(135deg, #2c3e50, #3d5468);
  border-radius: var(--radius);
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.withdraw-balance-label {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 4px;
}
.withdraw-balance-value {
  font-size: 28px;
  font-weight: 700;
}

.withdraw-section {
  padding: 0 12px 16px;
}

#withdrawal-bank,
#withdrawal-account-number,
#withdrawal-account-name {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0 0 14px;
  padding: 0 12px;
  border: 1.5px solid var(--grey-3);
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
  font-size: 14px;
}

#save-withdrawal-bank-details {
  margin-bottom: 12px;
}

#save-withdrawal-bank-details:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

#withdrawal-request-status:empty {
  display: none;
}

.withdraw-account-btn {
  width: 100%;
  background: var(--card);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  border: 1.5px solid var(--grey-3);
}

.withdraw-account-btn span:last-child {
  color: var(--green);
  font-weight: 600;
}

.fee-info {
  background: var(--grey-1);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-light);
  margin: 14px 0;
  line-height: 1.6;
}

.fee-info strong {
  color: var(--red);
}

.withdraw-btn {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(22, 134, 187, 0.35);
  transition: background 0.2s;
}

.withdraw-btn:hover {
  background: var(--green-dark);
}

/* ── modal overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 900;
  padding: 60px 16px 20px;
  overflow-y: auto;
}

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

.modal-box {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.modal-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--grey-2);
}

.modal-body {
  padding: 18px 20px;
}

.modal-body p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 6px;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 20px;
}

.modal-telegram-btn {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.modal-ok-btn {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  background: var(--dark);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ── login / reg shared ── */
.auth-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 0 max(34px, env(safe-area-inset-bottom));
  background: #fff;
}

.auth-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-hero {
  position: relative;
  width: 100%;
  height: clamp(220px, 32vw, 340px);
  overflow: hidden;
  background: #244b73;
}

.auth-slider,
.auth-slide,
.auth-slide::after,
.auth-slide .auth-hero-image,
.auth-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-slide {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.auth-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.auth-slide .auth-hero-image {
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1.025);
  transition: transform 5.5s linear;
}

.auth-slide.is-active .auth-hero-image {
  transform: scale(1.1);
}

.auth-slide::after {
  content: "";
  background: linear-gradient(
    90deg,
    rgba(10, 24, 38, 0.72),
    rgba(12, 35, 55, 0.23) 72%,
    rgba(12, 35, 55, 0.12)
  );
}

.auth-hero-shade {
  z-index: 1;
  pointer-events: none;
}

.auth-hero-brand {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100% - 880px) / 2));
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.auth-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.auth-avatar svg {
  width: 35px;
  height: 32px;
}

.auth-slider-dots {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100% - 880px) / 2));
  bottom: 27px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-slider-dot {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.auth-slider-dot.is-active {
  width: 25px;
  background: #fff;
}

.auth-slider-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.auth-slide-caption {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100% - 880px) / 2));
  bottom: 58px;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.auth-intro {
  width: 100%;
  max-width: 460px;
  margin: 34px auto 25px;
  padding: 0 24px;
  text-align: left;
}

.auth-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.auth-intro h1 {
  color: #202b34;
  font-size: clamp(24px, 6vw, 29px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.auth-intro p {
  margin-top: 8px;
  color: #77827a;
  font-size: 13px;
  line-height: 1.55;
}

.auth-form {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-field-label {
  margin: 0 0 8px 2px;
  color: #3f4c55;
  font-size: 12px;
  font-weight: 650;
}

.auth-optional {
  color: #929b94;
  font-weight: 400;
}

.auth-input-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid #e0e7e2;
  border-radius: 12px;
  background: #fbfcfb;
  overflow: hidden;
  margin-bottom: 18px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}

.auth-input-row:focus-within {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 134, 187, 0.1);
}

.country-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 0 14px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.country-tag:hover {
  background: #d7edf7;
}

.auth-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 15px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #293640;
}

.auth-input::placeholder {
  color: #a0aaa3;
  font-size: 13px;
}

.auth-input-row > button[aria-label="Show password"] {
  right: 10px !important;
  color: #7f8b82 !important;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #77827a;
  cursor: pointer;
  user-select: none;
  margin: 0 0 22px 2px;
}

.auth-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.auth-checkbox-box {
  width: 17px;
  height: 17px;
  border: 1.5px solid #c4cec7;
  border-radius: 5px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.auth-checkbox:checked + .auth-checkbox-box {
  background: var(--green);
  border-color: var(--green);
}

.auth-checkbox:focus-visible + .auth-checkbox-box {
  outline: 3px solid rgba(22, 134, 187, 0.22);
  outline-offset: 2px;
}

.auth-checkbox:checked + .auth-checkbox-box::after {
  content: "";
  display: block;
  width: 4px;
  height: 7px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(43deg) translateY(-1px);
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, #39a9d8, #1686bb);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  box-shadow: 0 8px 18px rgba(22, 134, 187, 0.22);
  margin-bottom: 22px;
}

.auth-submit:hover {
  background: linear-gradient(135deg, #258fc0, #0e6f9f);
  box-shadow: 0 10px 22px rgba(22, 134, 187, 0.29);
}
.auth-submit:active {
  transform: scale(0.99);
}

.auth-footer-link {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #77827a;
  text-align: center;
}

.auth-footer-link a {
  color: var(--green-dark);
  font-weight: 700;
  transition: color 0.15s;
}

.auth-footer-link a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }

  .auth-hero {
    height: 228px;
  }

  .auth-slide-caption {
    right: 20px;
    bottom: 53px;
    max-width: 170px;
    font-size: 13px;
  }

  .auth-hero-brand {
    left: 20px;
    bottom: 20px;
    gap: 10px;
    font-size: 18px;
  }

  .auth-avatar {
    width: 50px;
    height: 50px;
  }

  .auth-avatar svg {
    width: 31px;
    height: 28px;
  }

  .auth-slider-dots {
    right: 20px;
    bottom: 23px;
  }

  .auth-intro {
    margin-top: 28px;
    padding-right: 22px;
    padding-left: 22px;
  }

  @media (prefers-reduced-motion: reduce) {
    .auth-slide,
    .auth-slide .auth-hero-image {
      transition: none;
    }
  }

  .auth-form,
  .auth-footer-link {
    padding-right: 22px;
    padding-left: 22px;
  }
}

/* ── reg specific ── */
.auth-input-plain {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #e0e7e2;
  border-radius: 12px;
  background: #fbfcfb;
  font-size: 14px;
  color: #293640;
  margin-bottom: 18px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.auth-input-plain:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 134, 187, 0.1);
}

.auth-input-plain::placeholder {
  color: #a0aaa3;
  font-size: 13px;
}

.auth-password-field {
  position: relative;
}

.auth-password-field .auth-input-plain {
  padding-right: 48px;
}

.auth-password-field > button {
  position: absolute;
  top: 16px;
  right: 12px;
  padding: 4px;
  background: transparent;
  color: #7f8b82;
  font-size: 18px;
}

.auth-password-field > button:focus-visible,
.auth-input-row > button[aria-label="Show password"]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── utility ── */
.text-green {
  color: var(--green);
}
.text-red {
  color: var(--red);
}
.text-gold {
  color: var(--gold);
}
.fw-600 {
  font-weight: 600;
}

/* ── responsive layout and interaction states ── */
button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

:focus-visible {
  outline: 3px solid rgba(22, 134, 187, 0.55);
  outline-offset: 3px;
}

.product-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px 14px;
}

.product-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--grey-3);
  border-radius: 10px;
  background: #fff;
  color: var(--grey-4);
}

.product-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.product-search input::placeholder {
  color: var(--grey-4);
}

.product-filters {
  display: flex;
  gap: 6px;
}

.product-filter {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--grey-3);
  border-radius: 20px;
  background: #fff;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.product-filter.active {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-dark);
}

.product-results {
  grid-column: 1 / -1;
  color: var(--text-light);
  font-size: 12px;
}

.product-empty {
  padding: 24px 16px;
  color: var(--text-light);
  font-size: 13px;
  text-align: center;
}

.content-card {
  margin: 14px 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 16px;
}

.content-card p {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.65;
}

.content-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.6;
}

.content-note.error {
  background: #fff1f1;
  color: #a83232;
}

.content-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.content-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
}

.content-form input,
.content-form select,
.content-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--grey-3);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.content-form input:focus,
.content-form select:focus,
.content-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 134, 187, 0.12);
}

.content-primary-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 24px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.15s;
}

.content-primary-btn:hover {
  background: var(--green-dark);
}
.content-primary-btn:active {
  transform: scale(0.99);
}

.wallet-record {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e8edf0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(24, 39, 51, 0.045);
  overflow: hidden;
}
.wallet-record-list {
  display: grid;
  gap: 10px;
  padding: 14px 12px 24px;
}
.wallet-record-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 19px;
}
.wallet-record.is-credit .wallet-record-icon {
  background: #e5f4fb;
  color: var(--green-dark);
}
.wallet-record.is-debit .wallet-record-icon {
  background: #fff0ef;
  color: #c24c47;
}
.wallet-record-details {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.wallet-record-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}
.wallet-record-title {
  color: #2f3b44;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.wallet-record-status {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.wallet-record-status.is-pending {
  background: #fff4dc;
  color: #9a6900;
}
.wallet-record-status.is-success,
.wallet-record-status.is-verified {
  background: var(--green-light);
  color: var(--green-dark);
}
.wallet-record-status.is-failed,
.wallet-record-status.is-rejected {
  background: #fff0ef;
  color: #b83e39;
}
.wallet-record-wallet {
  padding: 3px 7px;
  border-radius: 20px;
  background: #f1f4f2;
  color: #68756e;
  font-size: 9px;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}
.wallet-record-date {
  color: var(--text-light);
  font-size: 10px;
}
.wallet-record-reference {
  color: #64727c;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.wallet-record-summary {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}
.wallet-record-amount {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.wallet-record-balance {
  color: #8a948e;
  font-size: 9px;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .wallet-record {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    padding: 11px;
  }
  .wallet-record-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .wallet-record-summary {
    grid-column: 2;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
    width: 100%;
    text-align: left;
  }
}
.wallet-credit {
  color: var(--green-dark);
}
.wallet-debit {
  color: var(--red);
}

.app-toast-region {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 12000;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.app-toast {
  padding: 13px 16px;
  border: 1px solid var(--grey-2);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  line-height: 1.5;
  animation: app-toast-in 0.18s ease-out;
}

.app-toast.error {
  border-left-color: var(--red);
}
.app-toast.success {
  border-left-color: var(--green);
}

@keyframes app-toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.app-modal[open] {
  animation: modal-enter 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.app-modal::backdrop {
  background: rgba(15, 20, 27, 0.58);
}

.app-modal[open]::backdrop {
  animation: backdrop-enter 0.18s ease-out both;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes backdrop-enter {
  from {
    background: rgba(15, 20, 27, 0);
  }
  to {
    background: rgba(15, 20, 27, 0.58);
  }
}

.app-modal-content {
  padding: 22px;
}

.app-modal-title {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 18px;
  font-weight: 700;
}

.app-modal-message {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.app-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.app-modal-actions button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 22px;
  font-weight: 600;
}

.app-modal-cancel {
  background: var(--grey-1);
  color: var(--dark);
}

.app-modal-confirm {
  background: var(--green);
  color: #fff;
}

.app-modal-confirm:hover {
  background: var(--green-dark);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--bg);
  color: var(--text-light);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-spinner {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border-radius: 50%;
  background:
    linear-gradient(
        0deg,
        rgb(22 134 187 / 50%) 30%,
        #0000 0 70%,
        rgb(22 134 187 / 100%) 0
      )
      50% / 8% 100%,
    linear-gradient(
        90deg,
        rgb(22 134 187 / 25%) 30%,
        #0000 0 70%,
        rgb(22 134 187 / 75%) 0
      )
      50% / 100% 8%;
  background-repeat: no-repeat;
  animation: page-loader-spin 1s infinite steps(12);
}

.page-loader-spinner::before,
.page-loader-spinner::after {
  content: "";
  grid-area: 1 / 1;
  border-radius: 50%;
  background: inherit;
  opacity: 0.915;
  transform: rotate(30deg);
}

.page-loader-spinner::after {
  opacity: 0.83;
  transform: rotate(60deg);
}

.page-loader-label {
  font-size: 13px;
  font-weight: 500;
}

@keyframes page-loader-spin {
  to {
    transform: rotate(1turn);
  }
}

.record-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 12px;
}

.record-tabs a {
  flex: 1;
  padding: 12px 8px;
  border: 1px solid var(--grey-3);
  border-radius: 8px;
  background: #fff;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.record-tabs a.active {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-dark);
}

.empty-records {
  margin: 14px 12px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text-light);
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-records i {
  display: block;
  margin-bottom: 12px;
  color: var(--grey-4);
  font-size: 34px;
}

.empty-records p {
  font-size: 13px;
  line-height: 1.6;
}

.product-card[hidden] {
  display: none;
}

.modal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-light);
  font-size: 20px;
}

.modal-close:hover {
  background: var(--grey-1);
  color: var(--text);
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-card {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }
  .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(25, 39, 52, 0.09);
  }
  .product-card-img,
  .product-card-img-placeholder {
    height: 174px;
  }
}

@media (min-width: 900px) {
  :root {
    --max-w: 1120px;
  }
  .page-shell {
    padding: 24px;
  }
  .page-content {
    min-height: calc(100vh - 48px);
    border-radius: 16px;
    overflow: hidden;
  }
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-right: 20px;
    padding-left: 20px;
  }
  .spa-route[data-route="team"] .page-shell,
  .spa-route[data-route="team-members"] .page-shell {
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
  }
  .spa-route[data-route="mine"] .page-shell {
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
  }
  .bottom-nav {
    bottom: 24px;
    height: calc(68px + env(safe-area-inset-bottom));
    border-radius: 0 0 16px 16px;
  }
  .scroll-body {
    padding-bottom: 88px;
  }
  .hero-banner {
    height: clamp(195px, 25vw, 300px);
  }
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding-right: 20px;
    padding-left: 20px;
  }
  .product-tools {
    padding-right: 20px;
    padding-left: 20px;
  }
  .action-row {
    margin-bottom: 20px;
  }
  .pay-section {
    max-width: 700px;
    margin: 0 auto;
  }
  .content-card {
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .product-tools {
    grid-template-columns: 1fr;
  }
  .product-filters {
    overflow-x: auto;
    padding: 2px 0 4px;
  }
  .product-filter {
    flex: 0 0 auto;
  }
  .stat-card-value {
    font-size: 19px;
  }
  .mine-balance {
    font-size: 25px;
  }
  .mine-header-info {
    padding-right: 96px;
  }
  .mine-header-img {
    width: 82px;
    height: 82px;
    right: 12px;
  }
  .wallet-split-grid {
    max-width: 100%;
    gap: 8px;
  }
  .wallet-split-balance {
    font-size: 16px;
  }
  .bottom-nav a {
    font-size: 10px;
  }
}

@media (max-width: 340px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .mine-header-info {
    padding-right: 78px;
  }
  .mine-header-img {
    width: 64px;
    height: 64px;
    right: 10px;
  }
  .bottom-nav a {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .page-loader-spinner {
    animation: none;
  }
}
.mt-8 {
  margin-top: 8px;
}
.mt-14 {
  margin-top: 14px;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-7px);
  }
  40% {
    transform: translateX(7px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}
.shake {
  animation: shake 0.4s ease;
}

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

.admin-form {
  margin-top: 16px;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--grey-3);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.admin-form .admin-checkbox {
  flex-direction: row;
  align-items: center;
}

.admin-form .admin-checkbox input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.admin-form-actions {
  display: flex;
  gap: 10px;
}

.admin-form-actions > * {
  flex: 1;
}
.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--grey-2);
  border-radius: 8px;
  background: #fff;
  overflow-wrap: anywhere;
}

.admin-list-row p {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 12px;
}

.spa-route[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .spa-route:not([hidden]) .page-content,
  .spa-route[data-route="mine"]:not([hidden]) .mine-header,
  .spa-route[data-route="mine"]:not([hidden]) .mine-scroll-body > .content-note,
  .spa-route[data-route="mine"]:not([hidden]) .mine-scroll-body > .tab-row,
  .spa-route[data-route="mine"]:not([hidden]) .mine-scroll-body > .menu-group,
  .spa-route[data-route="mine"]:not([hidden]) .wallet-split-item,
  .app-modal[open],
  .app-modal[open]::backdrop {
    animation: none;
  }

  button,
  .bottom-nav a,
  .menu-item,
  .action-btn,
  .content-primary-btn,
  .copy-btn {
    transition: none;
  }

  .menu-item-arrow {
    transition: none;
  }
}

/* Admin console */
.admin-body {
  --admin-ink: #17202b;
  --admin-muted: #788393;
  --admin-line: #e8edf2;
  --admin-surface: #fff;
  --admin-canvas: #f5f7fa;
  min-height: 100vh;
  background: var(--admin-canvas);
  color: var(--admin-ink);
}

.admin-gate[hidden],
.admin-app[hidden],
.admin-view[hidden] {
  display: none !important;
}

.admin-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      ellipse at 15% 15%,
      rgba(22, 134, 187, 0.12),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 90% 85%,
      rgba(53, 105, 214, 0.1),
      transparent 32%
    ),
    var(--admin-canvas);
}

.admin-login-card {
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid rgba(225, 231, 237, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(25, 38, 55, 0.12);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--admin-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.admin-brand small {
  display: block;
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.admin-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #51b8e4, #1686bb);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(22, 134, 187, 0.24);
}

.admin-login-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-top: 38px;
  place-items: center;
  border-radius: 16px;
  background: #e5f4fb;
  color: var(--green-dark);
  font-size: 25px;
}

.admin-login-card h1 {
  margin-top: 20px;
  color: var(--admin-ink);
  font-size: 25px;
  letter-spacing: -0.04em;
}

.admin-login-card > p {
  margin-top: 9px;
  color: var(--admin-muted);
  font-size: 14px;
  line-height: 1.6;
}

.admin-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: #404b59;
  font-size: 12px;
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #dfe5eb;
  border-radius: 10px;
  background: #fff;
  color: var(--admin-ink);
  outline: 0;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 134, 187, 0.12);
}

.admin-form .admin-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-form .admin-checkbox input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--green);
}

.admin-recharge-channel-settings {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #e2e8e4;
  border-radius: 12px;
  background: #f8faf8;
}

.admin-recharge-channel-settings legend {
  padding: 0 6px;
  color: #263440;
  font-size: 13px;
  font-weight: 700;
}

.admin-recharge-channel-settings .content-note {
  margin: 0;
}

.admin-supported-banks-card {
  margin-top: 20px;
}

.admin-bank-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}

.admin-bank-form .admin-primary-btn {
  min-height: 46px;
}

.admin-supported-banks-card .admin-list {
  max-height: 420px;
  overflow: auto;
  margin-top: 18px;
}

.admin-form-message {
  margin: 0;
  padding: 11px 12px;
  border-radius: 9px;
  background: #fff1f0;
  color: #b63532;
  font-size: 12px;
  line-height: 1.5;
}

.admin-primary-btn,
.admin-secondary-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.admin-primary-btn {
  min-height: 47px;
  background: linear-gradient(135deg, #39a9d8, #1686bb);
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 134, 187, 0.17);
}

.admin-primary-btn:hover {
  background: #0e6f9f;
}

.admin-secondary-btn {
  border-color: var(--admin-line);
  background: #fff;
  color: #566272;
}

.admin-secondary-btn:hover {
  border-color: #cbd5df;
  background: #f8fafb;
}

.admin-primary-btn:active,
.admin-secondary-btn:active {
  transform: scale(0.98);
}

.admin-primary-btn:disabled,
.admin-secondary-btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 23px;
  color: #687586;
  font-size: 12px;
  font-weight: 650;
}

.admin-back-link:hover {
  color: var(--green-dark);
}

.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 24px 16px 18px;
  background: #111b27;
  color: #fff;
}

.admin-sidebar .admin-brand {
  padding: 0 7px 27px;
  color: #fff;
}
.admin-sidebar .admin-brand small {
  color: #8492a1;
}
.admin-sidebar .admin-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.admin-sidebar-label {
  padding: 10px 11px;
  color: #7f8d9d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.admin-nav {
  display: grid;
  gap: 5px;
}

.admin-nav-item {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 9px;
  background: transparent;
  color: #aeb9c5;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
}

.admin-nav-item i {
  width: 19px;
  font-size: 17px;
  text-align: center;
}
.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.admin-nav-item.active {
  background: rgba(22, 134, 187, 0.2);
  color: #70c9ed;
}
.admin-nav-count {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 20px;
  background: #d34c48;
  color: #fff;
  font-size: 10px;
}
.admin-view.active {
  animation: admin-view-enter 0.2s ease-out both;
}

@keyframes admin-view-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-sidebar-bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.admin-security-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  color: #9ba9b8;
  font-size: 10px;
}

.admin-security-note i {
  color: #70c9ed;
  font-size: 15px;
}
.admin-sidebar .admin-back-link {
  margin: 0;
  padding: 5px 10px;
  color: #aeb9c5;
}

.admin-signout-btn {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: #aeb9c5;
  text-align: left;
  font-size: 12px;
}

.admin-signout-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

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

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.admin-breadcrumb {
  color: #98a2af;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.admin-breadcrumb span {
  padding: 0 7px;
  color: #c0c7d0;
}
.admin-breadcrumb strong {
  color: #667282;
  font-weight: 650;
}
.admin-topbar h1 {
  margin-top: 5px;
  color: var(--admin-ink);
  font-size: 18px;
  letter-spacing: -0.03em;
}
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 9px;
  color: #70c9ed;
  font-size: 10px;
  font-weight: 700;
}

.admin-live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39a9d8;
  box-shadow: 0 0 0 4px rgba(22, 134, 187, 0.16);
}
.admin-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}
.admin-account {
  display: grid;
  gap: 3px;
}
.admin-account strong {
  max-width: 190px;
  overflow: hidden;
  color: #2e3947;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-account span {
  color: #929dab;
  font-size: 10px;
}
.admin-mobile-menu {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #f0f3f6;
  color: #435060;
  font-size: 18px;
}

.admin-content {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 30px clamp(20px, 4vw, 48px) 56px;
}

.admin-console-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #b9dff0;
  border-radius: 9px;
  background: #f2f9fc;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.5;
}

.admin-console-status.is-error {
  border-color: #f0c5c2;
  background: #fff1f0;
  color: #a72e2b;
}

.admin-console-status[hidden] {
  display: none;
}

.admin-welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.admin-welcome-row h2 {
  color: var(--admin-ink);
  font-size: 23px;
  letter-spacing: -0.04em;
}
.admin-welcome-row p {
  margin-top: 6px;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.55;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.admin-stat-card,
.admin-panel-card {
  border: 1px solid var(--admin-line);
  border-radius: 13px;
  background: var(--admin-surface);
  box-shadow: 0 3px 14px rgba(27, 42, 58, 0.025);
}

.admin-stat-card {
  min-width: 0;
  padding: 18px;
}
.admin-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #707d8c;
  font-size: 11px;
  font-weight: 650;
}
.admin-stat-top i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 17px;
}
.admin-stat-card:nth-child(2) .admin-stat-top i {
  background: #e5f4fb;
  color: #1686bb;
}
.admin-stat-card:nth-child(3) .admin-stat-top i {
  background: #f1efff;
  color: #7463c7;
}
.admin-stat-card:nth-child(4) .admin-stat-top i {
  background: #fff5e8;
  color: #d39032;
}
.admin-stat-card > strong {
  display: block;
  margin-top: 15px;
  overflow: hidden;
  color: #1b2835;
  font-size: clamp(20px, 2.5vw, 27px);
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-stat-card > small {
  display: block;
  margin-top: 6px;
  color: #98a2ae;
  font-size: 10px;
}

.admin-panel-card {
  min-width: 0;
  margin-bottom: 17px;
  padding: 20px;
}
.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-panel-heading h3 {
  color: #25313e;
  font-size: 14px;
}
.admin-panel-heading p {
  margin-top: 5px;
  color: #8a95a2;
  font-size: 11px;
}
.admin-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  color: #1686bb;
  font-size: 11px;
  font-weight: 700;
}
.admin-text-btn:hover {
  color: #0e6f9f;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  padding: 11px 12px;
  border-bottom: 1px solid var(--admin-line);
  color: #929dab;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-table td {
  max-width: 260px;
  padding: 12px;
  border-bottom: 1px solid #f0f2f5;
  color: #596575;
  font-size: 11px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.admin-table tbody tr:last-child td {
  border-bottom: 0;
}
.admin-empty-cell {
  height: 90px;
  color: #96a0ac !important;
  text-align: center;
}
.admin-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 20px;
  background: #f0f2f5;
  color: #667281;
  font-size: 9px;
  font-weight: 750;
  text-transform: capitalize;
  white-space: nowrap;
}
.admin-status-badge.success {
  background: var(--green-light);
  color: var(--green-dark);
}
.admin-status-badge.warning {
  background: #fff5e5;
  color: #b4771f;
}
.admin-status-badge.danger {
  background: #fff0ef;
  color: #bf4640;
}
.admin-status-badge.info {
  background: #edf2ff;
  color: #536cc0;
}
.admin-amount-positive {
  color: var(--green-dark) !important;
  font-weight: 750;
  white-space: nowrap;
}
.admin-amount-negative {
  color: #c24c47 !important;
  font-weight: 750;
  white-space: nowrap;
}

.admin-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  align-items: start;
}
.admin-two-column .admin-panel-card {
  margin-bottom: 17px;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-form-actions {
  display: flex;
  gap: 10px;
}
.admin-form-actions > * {
  flex: 1;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-search {
  display: flex;
  width: min(420px, 100%);
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
  color: #929dab;
}
.admin-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--admin-ink);
  font-size: 11px;
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  color: #8994a1;
  font-size: 10px;
}
.admin-pagination > div {
  display: flex;
  gap: 8px;
}
.admin-user-identity {
  display: grid;
  gap: 4px;
  min-width: 150px;
}
.admin-user-identity strong {
  color: #354150;
  font-size: 11px;
}
.admin-user-identity small {
  color: #9aa4b0;
  font-size: 9px;
}
.admin-row-action {
  min-height: 30px;
  margin: 2px;
  padding: 0 9px;
  border: 1px solid #e6ebf0;
  border-radius: 7px;
  background: #fff;
  color: #667281;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}
.admin-row-action.is-primary {
  border-color: #b9dff0;
  background: #f2f9fc;
  color: var(--green-dark);
}
.admin-row-action.is-danger {
  border-color: #f2d9d7;
  background: #fff6f5;
  color: #b54741;
}
.admin-wallet-adjustment {
  min-width: 170px;
  margin-top: 5px;
}
.admin-wallet-adjustment summary {
  color: #536171;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}
.admin-wallet-adjustment-form {
  display: grid;
  min-width: 190px;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
}
.admin-wallet-adjustment-form input,
.admin-wallet-adjustment-form select {
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  color: var(--admin-ink);
  font-size: 10px;
}
.admin-wallet-adjustment-actions {
  display: flex;
}
.admin-inline-link {
  color: #1686bb;
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
.admin-list {
  display: grid;
  gap: 9px;
}
.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #edf0f3;
  border-radius: 9px;
  background: #fff;
  overflow-wrap: anywhere;
}
.admin-list-row strong {
  color: #354150;
  font-size: 11px;
}
.admin-list-row p {
  margin-top: 5px;
  color: #8c97a4;
  font-size: 10px;
  line-height: 1.5;
}
.admin-product-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.admin-product-delete {
  border-color: #f0d7d6;
  color: #a53d39;
}
.admin-product-delete:hover {
  border-color: #e8b9b7;
  background: #fff5f4;
  color: #8f2f2c;
}
.admin-security-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 2px;
  background: #f2f9fc;
}
.admin-security-card > i {
  color: #0e6f9f;
  font-size: 21px;
}
.admin-security-card h3 {
  color: #344253;
  font-size: 12px;
}
.admin-security-card p {
  max-width: 780px;
  margin-top: 5px;
  color: #7e8b99;
  font-size: 11px;
  line-height: 1.65;
}
.admin-sidebar-scrim {
  display: none;
}

.admin-body :focus-visible {
  outline: 3px solid rgba(22, 134, 187, 0.35);
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .admin-app {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-content {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 760px) {
  .admin-app {
    display: block;
  }
  .admin-sidebar {
    position: fixed;
    z-index: 50;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(280px, 84vw);
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }
  .admin-sidebar.is-open {
    transform: translateX(0);
  }
  .admin-sidebar-scrim.is-visible {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: block;
    background: rgba(10, 18, 27, 0.48);
  }
  .admin-topbar {
    min-height: 72px;
    padding: 10px 18px;
  }
  .admin-mobile-menu {
    display: inline-grid;
    flex: 0 0 38px;
    place-items: center;
  }
  .admin-topbar > div:first-of-type {
    flex: 1;
  }
  .admin-topbar-right {
    gap: 8px;
  }
  .admin-live-indicator {
    margin: 0 3px 0 0;
    font-size: 0;
  }
  .admin-live-indicator i {
    width: 8px;
    height: 8px;
  }
  .admin-account strong {
    max-width: 120px;
  }
  .admin-content {
    padding: 24px 17px 40px;
  }
  .admin-two-column {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 520px) {
  .admin-login-card {
    padding: 27px 22px;
    border-radius: 16px;
  }
  .admin-login-icon {
    margin-top: 30px;
  }
  .admin-topbar {
    gap: 9px;
  }
  .admin-account {
    display: none;
  }
  .admin-topbar h1 {
    font-size: 16px;
  }
  .admin-breadcrumb {
    font-size: 9px;
  }
  .admin-content {
    padding-right: 12px;
    padding-left: 12px;
  }
  .admin-welcome-row {
    align-items: flex-start;
  }
  .admin-welcome-row h2 {
    font-size: 20px;
  }
  .admin-welcome-row p {
    max-width: 270px;
  }
  .admin-stat-grid {
    gap: 9px;
  }
  .admin-stat-card {
    padding: 13px;
  }
  .admin-stat-top {
    align-items: flex-start;
    font-size: 10px;
  }
  .admin-stat-top i {
    width: 29px;
    height: 29px;
    font-size: 15px;
  }
  .admin-stat-card > strong {
    font-size: 19px;
  }
  .admin-panel-card {
    padding: 14px;
  }
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-search {
    width: 100%;
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-bank-form {
    grid-template-columns: 1fr;
  }
  .admin-table th,
  .admin-table td {
    padding: 10px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-sidebar,
  .admin-view.active,
  .admin-primary-btn,
  .admin-secondary-btn,
  .admin-form input,
  .admin-form select,
  .admin-form textarea {
    transition: none;
  }
}
