@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Readex+Pro:wght@500;600;700&display=swap");

:root {
  --bg: #080a0f;
  --bg-glow: rgba(242, 140, 82, 0.08);
  --surface: #0e121a;
  --surface-2: #141a24;
  --surface-3: #1a2230;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --primary: #f28c52;
  --primary-hover: #ff9f68;
  --primary-ink: #1a0b02;
  --primary-soft: rgba(242, 140, 82, 0.12);
  --accent: #60a5fa;
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.12);
  --font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -10%, var(--bg-glow), transparent 70%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  background-attachment: scroll;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s var(--ease-out);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.18rem;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.ltr {
  direction: ltr;
  text-align: left;
}

/* ---------- 3-Zone Top Bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 10, 15, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(242, 140, 82, 0.35);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 0;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: color 0.15s var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}

.nav-cta:hover {
  background: var(--primary-hover);
  color: var(--primary-ink);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-cta.active {
  box-shadow: 0 0 0 2px rgba(242, 140, 82, 0.35);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-wrap {
    padding: 0 16px;
    min-height: 58px;
    gap: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: rgba(14, 18, 26, 0.98);
    border-bottom: 1px solid var(--border-strong);
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    z-index: 49;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active,
  .nav-links a:hover {
    background: var(--surface-2);
  }
}

/* ---------- Layout Containers & Sections ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.narrow {
  max-width: 820px;
}

.section {
  margin-top: 64px;
}

.section-header {
  max-width: 68ch;
  margin-bottom: 28px;
}

.section-kicker {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--muted);
  margin: 0;
}

.page-intro {
  padding: 12px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-intro p {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ---------- Hero Split ---------- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: stretch;
  padding: 20px 0 36px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(242, 140, 82, 0.4);
  object-fit: cover;
  flex-shrink: 0;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: 28px;
}

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

.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 30% 20%, rgba(242, 140, 82, 0.16), transparent 60%), var(--surface);
  min-height: 320px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 30%, rgba(242, 140, 82, 0.12), transparent 65%), var(--surface);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 8px 0 24px;
  }

  .hero-media {
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }
}

/* ---------- Specification Strip ---------- */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.spec-item {
  padding: 20px 22px;
  border-inline-end: 1px solid var(--border);
}

.spec-item:last-child {
  border-inline-end: none;
}

.spec-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.spec-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 820px) {
  .spec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-item {
    border-bottom: 1px solid var(--border);
  }

  .spec-item:nth-child(2n) {
    border-inline-end: none;
  }

  .spec-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

/* ---------- Cards, Bento Grid & Grids ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 20px;
}

.card-subtle {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

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

.bento-span-2 {
  grid-column: span 2;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.bento-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.editorial-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.bento-card p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

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

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

@media (max-width: 900px) {
  .bento-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .bento-span-2 {
    grid-column: span 1;
  }
}

/* ---------- Lists, Steps & FAQ ---------- */
.clean-list {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--text-secondary);
}

.clean-list li {
  margin-bottom: 10px;
}

.clean-list li:last-child {
  margin-bottom: 0;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.step-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step-index {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
}

.step-row h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.step-row p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

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

@media (max-width: 820px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- Long-Form Prose & Documentation Layout ---------- */
.prose-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.prose-toc {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.prose-toc-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.prose-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.prose-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
}

.prose-toc a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.prose-article section + section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.prose-article h2 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}

.prose-article h3 {
  font-size: 1.05rem;
  margin-top: 16px;
  margin-bottom: 8px;
}

.prose-article p,
.prose-article li {
  max-width: 72ch;
}

@media (max-width: 900px) {
  .prose-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .prose-toc {
    position: static;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s var(--ease-out), border-color 0.16s var(--ease-out), transform 0.16s var(--ease-out), opacity 0.16s var(--ease-out);
}

.btn:hover:not(:disabled) {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  color: var(--primary-ink);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--primary);
  color: var(--text);
}

.btn-success {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.35);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.35);
}

.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.86rem;
}

/* ---------- Forms & Controls ---------- */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="file"],
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}

input[type="file"] {
  padding: 8px 12px;
  cursor: pointer;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  background: var(--surface-3);
}

.input-wrap {
  position: relative;
}

.toggle-pass {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 8px;
  font-size: 0.84rem;
  font-family: inherit;
}

.toggle-pass:hover {
  color: var(--text);
}

/* ---------- Status Indicators & Alerts (Accessible, Non-Pill) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-ok {
  background: var(--success-soft);
  border-color: rgba(52, 211, 153, 0.28);
  color: var(--success);
}

.badge-pending {
  background: var(--warning-soft);
  border-color: rgba(251, 191, 36, 0.28);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-soft);
  border-color: rgba(248, 113, 113, 0.28);
  color: var(--danger);
}

.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-top: 12px;
  border: 1px solid transparent;
}

.alert-ok {
  background: var(--success-soft);
  border-color: rgba(52, 211, 153, 0.32);
  color: var(--success);
}

.alert-err {
  background: var(--danger-soft);
  border-color: rgba(248, 113, 113, 0.32);
  color: var(--danger);
}

.alert-info {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.32);
  color: var(--accent);
}

/* ---------- Account, Tabs, Tables & UID Box ---------- */
.uid-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.avatar-lg {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  background: var(--surface-2);
  flex-shrink: 0;
}

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.tab-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  min-height: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

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

.tab-btn.active {
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  text-align: right;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: none;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.84rem;
}

/* ---------- Gateways Status Rows ---------- */
.gateway-status-list {
  display: grid;
  gap: 10px;
}

.gateway-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 24px 32px;
  margin-top: 72px;
}

.footer-shell {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-summary {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

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

.footer-list a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-list a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: span 2;
  }
}

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

  .footer-brand-col {
    grid-column: span 1;
  }
}

.hidden {
  display: none !important;
}

/* ---------- Checkout Steps & Upload Preview ---------- */
.step-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.step-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
}

.step-bar-item.is-active {
  border-color: var(--primary);
  background: var(--surface-2);
  color: var(--text);
}

.step-bar-item.is-done {
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--success);
}

.step-bar-num {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-bar-item.is-active .step-bar-num {
  background: var(--primary);
  color: var(--primary-ink);
}

.step-bar-item.is-done .step-bar-num {
  background: var(--success-soft);
  color: var(--success);
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background: var(--surface-2);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background: var(--surface-3);
}

.upload-preview-box {
  margin-top: 12px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-preview-box img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

/* ---------- Admin KPI Strip & Modal Dialog ---------- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.kpi-label {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.kpi-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

@media (max-width: 820px) {
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.thumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}

.thumb-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.thumb-btn img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

.gateway-pick.is-selected {
  border-color: var(--primary);
  background: var(--surface-3);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog {
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-body {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

.modal-screenshot-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-screenshot-box img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #05070a;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.detail-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.detail-value {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

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