:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface: #ffffff;
  --surface-soft: #f1f0ea;
  --border: #e6e5e0;
  --border-soft: #efeee8;
  --border-strong: #cfcdc4;
  --text: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --orange: #f54e00;
  --orange-active: #d04200;
  --danger: #cf2d56;
  --ok: #1f8a65;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --w: 1200px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  position: relative;
  background: var(--canvas);
  color: var(--body);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px 360px at 12% -4%, rgba(245, 78, 0, 0.08), transparent 70%),
    radial-gradient(420px 280px at 86% 2%, rgba(245, 78, 0, 0.05), transparent 72%),
    radial-gradient(640px 380px at 50% 110%, rgba(38, 37, 30, 0.035), transparent 76%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--w), calc(100% - 40px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  z-index: 30;
}

.topbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 244, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.logo {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 10px;
  flex: 0 0 auto;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}

.brand-name strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-name span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.nav a:hover,
.nav button:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.nav a[data-active="true"] {
  background: var(--surface);
  border-color: rgba(245, 78, 0, 0.22);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.btn:hover {
  border-color: var(--text);
}

.btn-primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #ffffff;
}

.btn-primary:hover {
  border-color: var(--orange-active);
  background: var(--orange-active);
}

.btn-danger {
  border-color: rgba(207, 45, 86, 0.22);
  background: rgba(207, 45, 86, 0.06);
  color: var(--danger);
}

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

.hero {
  padding: 80px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.eyebrow,
.pill,
.summary-kicker,
.feature-kicker,
.flow-copy .flow-tag,
.form-kicker,
.auth-kicker,
.form-badge,
.auth-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--orange);
  flex: 0 0 auto;
}

h1 {
  margin: 18px 0 16px;
  color: var(--text);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: 11ch;
}

.lead {
  margin: 0 0 24px;
  max-width: 62ch;
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

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

.kpi,
.card,
.summary-card,
.pricing-option,
.flow-item,
.feature-item,
.form-panel,
.auth-panel,
.table-row,
dialog,
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

.kpi,
.spec,
.preorder-stat,
.table-row,
.dialog-card {
  border-radius: var(--radius-md);
}

.card,
.summary-card,
.pricing-option,
.flow-item,
.feature-item,
.form-panel,
.auth-panel,
.hero-card,
dialog {
  border-radius: var(--radius-md);
}

.kpi {
  padding: 18px;
}

.kpi strong {
  display: block;
  color: var(--text);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.kpi span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-card {
  padding: 24px;
}

.product-visual {
  display: grid;
  gap: 14px;
}

.visual {
  position: relative;
  overflow: hidden;
  height: 220px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background:
    radial-gradient(220px 150px at 18% 20%, rgba(245, 78, 0, 0.08), transparent 65%),
    linear-gradient(180deg, var(--canvas-soft) 0%, #f2f1eb 100%);
}

.visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-compact {
  height: 168px;
}

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

.spec,
.preorder-stat {
  background: var(--canvas-soft);
  border: 1px solid var(--border-soft);
  padding: 14px;
}

.spec strong,
.preorder-stat span,
.field label,
.muted,
.hint,
.form-note,
.auth-note {
  color: var(--muted);
}

.spec strong,
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.spec span {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.section {
  padding: 80px 0;
}

.section h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section p {
  margin: 0;
  color: var(--body);
  line-height: 1.7;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  padding: 24px;
}

.card h3,
.flow-copy strong,
.feature-item strong,
.summary-card h3,
.form-panel-head h3,
.auth-panel-head h3 {
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.pricing-list,
.flow-list,
.summary-grid,
.soft-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-list,
.flow-list,
.feature-list,
.summary-grid,
.soft-grid-2,
.soft-grid-3,
.preorder-stat-row,
.table {
  margin-top: 20px;
}

.pricing-option,
.flow-item,
.feature-item,
.summary-card {
  padding: 20px;
}

.pricing-option {
  min-height: 176px;
}

.pricing-option.featured {
  border-color: var(--text);
  background: var(--text);
  color: var(--canvas);
}

.pricing-option .label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-option.featured .label {
  border-color: rgba(247, 247, 244, 0.18);
  background: rgba(247, 247, 244, 0.08);
  color: rgba(247, 247, 244, 0.72);
}

.pricing-option .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 18px;
  color: inherit;
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}

.pricing-option .price span {
  color: inherit;
  opacity: 0.72;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.pricing-option .meta {
  margin-top: 14px;
  color: inherit;
  font-size: 15px;
  line-height: 1.5;
}

.pricing-option .sub {
  margin-top: 6px;
  color: inherit;
  opacity: 0.72;
  font-size: 13px;
  line-height: 1.45;
}

.flow-item {
  min-height: 172px;
}

.flow-copy strong {
  display: block;
  margin-top: 14px;
  font-size: 22px;
  line-height: 1.2;
}

.flow-copy p,
.feature-item p,
.summary-copy,
.feature-lead,
.page-header-copy p,
.form-panel-head p,
.auth-panel-head p {
  color: var(--body);
}

.flow-copy p,
.feature-item p,
.summary-copy {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.feature-list,
.soft-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-item {
  min-height: 170px;
}

.feature-item strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
  line-height: 1.2;
}

.feature-item .highlight {
  color: var(--text);
  font-weight: 500;
}

.page-header-copy {
  max-width: 60ch;
}

.page-header-copy p {
  margin-top: 10px;
}

.feature-lead {
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.65;
}

.soft-card {
  background: var(--canvas-soft);
}

.payment-card {
  padding: 24px;
}

.payment-card__content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 24px;
  align-items: center;
}

.payment-card__copy h3 {
  margin: 8px 0 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
}

.payment-card__copy p {
  margin: 0;
}

.payment-highlights {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.payment-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(245, 78, 0, 0.08);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.payment-card__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.payment-qr-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 220px);
  aspect-ratio: 1;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(24, 24, 24, 0.05);
}

.payment-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.payment-card__qr .hint {
  margin: 0;
}

.topup-hero-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.topup-hero-card > h3 {
  margin: 14px 0 0;
  max-width: 18ch;
  font-size: 30px;
  line-height: 1.12;
}

.topup-step-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
}

.topup-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
}

.topup-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.topup-step-index {
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.topup-step strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.topup-step p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.topup-stage-card {
  display: grid;
  gap: 16px;
}

.topup-status-grid,
.topup-summary-grid {
  display: grid;
  gap: 12px;
}

.topup-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topup-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topup-summary-stat span,
.topup-summary-stat strong {
  display: block;
}

.topup-summary-stat span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.topup-summary-stat strong {
  margin-top: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.summary-card {
  min-height: 176px;
}

.summary-card h3 {
  margin: 14px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.summary-value {
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}

.summary-copy {
  margin-top: 10px;
}

.preorder-hero-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.preorder-side {
  display: flex;
}

.preorder-side > .summary-card {
  width: 100%;
}

.preorder-hero-card > h3 {
  max-width: 16ch;
  font-size: 30px;
  line-height: 1.12;
}

.preorder-hero-card > .summary-copy {
  max-width: 54ch;
  font-size: 14px;
  line-height: 1.65;
}

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

.preorder-stat strong,
.preorder-stat span {
  display: block;
}

.preorder-stat strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.preorder-stat span {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.preorder-mini-grid .summary-card {
  min-height: 182px;
}

.form-panel,
.auth-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
}

.form-panel-head,
.auth-panel-head {
  display: grid;
  gap: 10px;
}

.form-panel-head h3,
.auth-panel-head h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.form-panel-head p,
.auth-panel-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.form-panel .form,
.auth-panel .form {
  margin-top: 20px;
}

.form-actions,
.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.form-actions .btn,
.auth-actions .btn {
  width: 100%;
}

.form-meta,
.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.form-note,
.auth-note,
.hint,
.muted {
  font-size: 12px;
  line-height: 1.55;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px;
  align-items: start;
}

.row-stretch {
  align-items: stretch;
}

.card-fill {
  height: 100%;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--canvas-soft);
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(245, 78, 0, 0.48);
  background: var(--surface);
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.note {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 78, 0, 0.18);
  background: rgba(245, 78, 0, 0.05);
  color: var(--body);
  line-height: 1.6;
}

.footer {
  margin-top: 32px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 138, 101, 0.22);
  background: rgba(31, 138, 101, 0.08);
  color: var(--text);
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.stack-sm {
  display: grid;
  gap: 10px;
}

.stack-xs {
  display: grid;
  gap: 8px;
}

.section-top-xs {
  margin-top: 8px;
}

.block-heading {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-top-sm {
  margin-top: 10px;
}

.section-top-md {
  margin-top: 14px;
}

.table {
  display: grid;
  gap: 12px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(120px, 0.75fr) minmax(120px, 0.7fr) minmax(90px, 0.65fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.table > .table-row:first-child {
  background: var(--canvas-soft);
}

.table-row button {
  justify-self: end;
}

.mono {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "ss01" 1;
}

dialog {
  width: min(760px, calc(100% - 24px));
  padding: 0;
  color: var(--text);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}

dialog.dialog-fallback-open {
  display: block;
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 1200;
  width: min(760px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  transform: translate(-50%, -50%);
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.topup-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.topup-modal-open {
  display: grid;
  place-items: center;
}

.topup-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(38, 37, 30, 0.18);
  backdrop-filter: blur(3px);
}

.topup-modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: rgba(38, 37, 30, 0.18);
  backdrop-filter: blur(3px);
}

.dialog-inner {
  padding: 20px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.dialog-head strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.close {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

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

.badge {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.badge b {
  color: var(--text);
  font-weight: 600;
}

.dialog-card {
  padding: 20px;
  background: var(--canvas-soft);
  border: 1px solid var(--border);
}

/* ---- Dashboard ---- */

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

.dash-stat {
  padding: 14px 16px;
  background: var(--canvas-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.dash-stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.dash-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap th,
.table-wrap td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table-wrap th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-wrap td {
  color: var(--text);
}

.pending-order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--canvas-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.pending-order-info {
  display: grid;
  gap: 4px;
}

/* ---- Preorder ---- */

@media (max-width: 1024px) {
  .hero {
    padding-top: 64px;
  }

  h1 {
    font-size: clamp(34px, 6vw, 56px);
  }

  .hero-grid,
  .row,
  .split {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .pricing-list,
  .flow-list,
  .summary-grid,
  .soft-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .table-row button {
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .brand {
    min-width: auto;
  }

  .topbar-wrapper {
    display: block;
    position: static;
    background: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topbar-wrapper .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    max-width: 80vw;
    background: var(--canvas);
    padding: 72px 20px 24px;
    gap: 0;
    z-index: 300;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,.08);
    visibility: hidden;
  }

  .topbar-wrapper .nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
  }

  .topbar-wrapper .nav a {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 16px;
    box-sizing: border-box;
  }

  .topbar-wrapper .nav a[data-active="true"] {
    background: transparent;
    border-color: var(--border);
    border-bottom-color: var(--border);
    color: var(--accent);
    font-weight: 600;
    padding-left: 10px;
    border-left: 3px solid var(--accent);
  }

  .topbar-wrapper .nav a:last-child {
    border-bottom: none;
  }

/* --- Avatar --- */
.avatar-area {
  display: flex;
  align-items: center;
}

.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 120ms ease;
}

.avatar-btn:hover {
  border-color: var(--accent);
}

.avatar-initials {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.avatar-large {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- User panel (right slide-out) --- */
.user-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 240px;
  max-width: 80vw;
  background: var(--canvas);
  z-index: 300;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.08);
  visibility: hidden;
  display: flex;
  flex-direction: column;
}

.user-panel[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
}

.user-panel-inner {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.user-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.user-panel-header span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.user-panel-link {
  display: block;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  border-radius: 0;
}

.user-panel-link:hover {
  color: var(--accent);
}

.user-panel-link:last-of-type {
  border-bottom: none;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 299;
  }

  .nav-backdrop.show {
    display: block;
  }

  html.nav-open,
  body.nav-open {
    overflow: hidden;
  }

  html.nav-open,
  body.nav-open {
    overflow: hidden;
  }

  .kpi-row,
  .specs,
  .soft-grid-2,
  .feature-list,
  .preorder-stat-row,
  .topup-status-grid,
  .topup-summary-grid,
  .dash-stats,
  .payment-card__content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--w), calc(100% - 24px));
  }

  .hero,
  .section {
    padding: 48px 0;
  }

  h1 {
    font-size: 32px;
    max-width: none;
  }

  .section h2,
  .card h3,
  .summary-card h3,
  .form-panel-head h3,
  .auth-panel-head h3,
  .dialog-head strong {
    font-size: 26px;
  }

  .grid-3,
  .pricing-list,
  .flow-list,
  .summary-grid,
  .soft-grid-3 {
    grid-template-columns: 1fr;
  }

  .form-panel {
    padding: 16px;
  }

  .dash-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dash-top .btn {
    align-self: flex-start;
  }

  .page-header-copy p {
    font-size: 14px;
  }

  .card-fill {
    height: auto;
  }
}

/* ---- Social buttons (WhatsApp / Telegram) ---- */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}

.social-btn:hover {
  border-color: var(--orange);
  background: rgba(245, 78, 0, 0.06);
  color: var(--text);
}

.social-btn svg {
  flex-shrink: 0;
  display: block;
}

.social-btn .social-muted {
  color: var(--muted);
  font-weight: 400;
}

/* Icon-only variant (header) */
.social-btn.social-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
}


