/* =========================================================
   Anmi Tech - Stylesheet
   Light/Dark via [data-theme], responsive, zero dependency.
   ========================================================= */

:root {
  --bg: #f7f8fb;
  --bg-elev: #ffffff;
  --bg-soft: #f1f3f8;
  --text: #1a1f2e;
  --text-muted: #5d6577;
  --text-faint: #8b91a3;
  --border: #e6e9f0;
  --border-strong: #d4d9e4;

  --primary: #5b6cff;
  --primary-hover: #4858e0;
  --primary-soft: #eef0ff;
  --accent: #11c5a8;
  --danger: #e64b6b;
  --warn: #f0a93b;

  --shadow-sm: 0 1px 2px rgba(20, 25, 50, 0.04), 0 1px 3px rgba(20, 25, 50, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 25, 50, 0.06), 0 2px 4px rgba(20, 25, 50, 0.04);
  --shadow-lg: 0 12px 32px rgba(20, 25, 50, 0.10);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --container: 1320px;
  --container-pad: 32px;
  --nav-h: 60px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Monaco, monospace;

  --footer-card-bg: #1a1d24;
  --footer-card-accent: #d4a853;
}

[data-theme="light"] {
  --footer-card-bg: #eef0f5;
  --footer-card-accent: #9a7224;
}

[data-theme="dark"] {
  --bg: #0e1117;
  --bg-elev: #161b25;
  --bg-soft: #1c2230;
  --text: #e7ebf3;
  --text-muted: #a3acbf;
  --text-faint: #6b7385;
  --border: #232a39;
  --border-strong: #2f3749;

  --primary: #7a8aff;
  --primary-hover: #8d9bff;
  --primary-soft: #1f243d;
  --accent: #2ed3b7;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

:root {
  color-scheme: light;
  background-color: var(--bg);
}
[data-theme="dark"] {
  color-scheme: dark;
}

html { background-color: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 600; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

@media (min-width: 1600px) {
  :root { --container: 1440px; }
}

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}
.brand:hover { color: var(--text); }
.brand-logo { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: 8px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--primary);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-wrap { position: relative; }
.search-input {
  width: 280px;
  height: 36px;
  padding: 0 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search-input::placeholder { color: var(--text-faint); }
.search-input:focus {
  border-color: var(--primary);
  background: var(--bg-elev);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, border-color .15s, color .15s;
}
.icon-btn:hover {
  background: var(--bg-elev);
  border-color: var(--border-strong);
}
.icon-btn .icon { display: block; }
.icon-btn .icon-moon { display: none; }
[data-theme="dark"] .icon-btn .icon-sun { display: none; }
[data-theme="dark"] .icon-btn .icon-moon { display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px var(--container-pad) 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.hero-subtitle {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat-card {
  padding: 16px 18px;
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .15s ease, border-color .15s, box-shadow .15s;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.stat-card .stat-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 6px;
}
.stat-card .stat-icon svg { width: 16px; height: 16px; }
.stat-card .stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Layout: sidebar + content ---------- */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding-top: 16px;
  padding-bottom: 64px;
}
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  align-self: start;
}
.sidebar-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.category-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  color: var(--text-muted);
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.category-list .cat-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text-muted);
  flex-shrink: 0;
}
.category-list .cat-icon svg { width: 14px; height: 14px; }
.category-list .cat-label { flex: 1; text-align: left; }
.category-list button.active .cat-icon {
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--primary);
}
.category-list button:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.category-list button.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.category-list .count {
  font-size: 12px;
  color: var(--text-faint);
  background: var(--bg-soft);
  padding: 1px 8px;
  border-radius: 999px;
}
.category-list button.active .count {
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--primary);
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 13px;
}
.result-count {
  font-weight: 600;
  color: var(--text);
}

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  min-height: 200px;
  contain: layout style;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s, box-shadow .15s;
  min-height: 168px;
  contain: layout paint style;
}
.product-card[hidden] { display: none !important; }
.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.product-card .card-status {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.product-card .card-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.product-card .card-status.status-stable     { color: var(--accent); }
.product-card .card-status.status-beta       { color: var(--warn); }
.product-card .card-status.status-archived,
.product-card .card-status.status-deprecated { color: var(--danger); }

.product-card .card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding-right: 70px;
}
.product-card .card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--bg-soft);
  padding: 7px;
  flex-shrink: 0;
}
.product-card .card-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.product-card .card-tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 14px;
  flex: 1;
}
.product-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- Tags & badges ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.tags {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  text-transform: capitalize;
}
.badge.status-beta   { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.badge.status-stable { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.badge.status-archived,
.badge.status-deprecated { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }

/* ---------- Empty / fallback ---------- */
.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-elev);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.empty-state.large { padding: 64px 24px; }

.fallback-banner {
  margin-bottom: 16px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  border-radius: var(--radius-md);
  font-size: 13px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--border-strong); color: var(--text); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 18px 0 8px;
  color: var(--text-muted);
  font-size: 13px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { margin: 0 6px; color: var(--text-faint); }

/* ---------- Detail page ---------- */
.product-detail { padding: 8px 0 64px; }
.detail-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.detail-icon {
  width: 72px;
  height: 72px;
  padding: 10px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}
.detail-heading { flex: 1; }
.detail-name {
  font-size: 28px;
  margin: 0 0 6px;
}
.detail-tagline {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 15px;
}
.detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.detail-description,
.detail-related {
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.detail-description h2,
.detail-related h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

/* ---------- Prose / Markdown ---------- */
.prose {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.6em; margin-bottom: .6em; }
.prose h1 { font-size: 26px; }
.prose h2 { font-size: 22px; border-bottom: 1px solid var(--border); padding-bottom: .3em; }
.prose h3 { font-size: 18px; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.prose pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  overflow-x: auto;
}
.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13.5px;
}
.prose blockquote {
  margin: 0 0 1em;
  padding: 8px 14px;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
  color: var(--text);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.prose th, .prose td {
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--border);
}
.prose th { background: var(--bg-soft); }
.prose img { border-radius: var(--radius-md); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 1.6em 0; }

/* ---------- Docs page layout ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 64px;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto;
  padding-right: 4px;
}
.doc-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-tree .doc-group {
  margin-top: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  padding: 6px 10px;
}
.doc-tree a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
  border: 1px solid transparent;
}
.doc-tree a:hover { background: var(--bg-soft); color: var(--text); }
.doc-tree a.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.docs-content {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  min-height: 60vh;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 22px;
  margin-top: 56px;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg);
}
.footer-link-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-link-card {
  background: var(--footer-card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px 16px 16px;
  min-height: 120px;
}
.footer-link-card-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--footer-card-accent);
  line-height: 1.3;
}
.footer-link-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.footer-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.footer-link-chip:hover,
.footer-link-chip:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}
.footer-link-ext {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: .55;
}
.footer-link-chip:hover .footer-link-ext,
.footer-link-chip:focus-visible .footer-link-ext {
  opacity: 1;
}
.footer-link-chip--static {
  cursor: default;
}
.footer-link-chip--static:hover,
.footer-link-chip--static:focus-visible {
  color: var(--text);
  border-color: transparent;
  background: transparent;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 18px;
  color: var(--text-faint);
  font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 36px;
    gap: 28px;
  }
  .footer-link-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .category-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }
  .category-list button {
    flex-shrink: 0;
    width: auto;
  }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; max-height: none; }
  .search-input { width: 180px; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-link-cards { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  :root { --container-pad: 16px; }
  .search-input { width: 130px; }
  .detail-header { flex-direction: column; }
  .docs-content { padding: 22px 18px; }
  .product-card .card-top { padding-right: 0; }
  .product-card .card-status {
    position: static;
    align-self: flex-start;
    margin-bottom: 8px;
  }
}

/* ---------- Recharge page ---------- */
.recharge-page {
  padding: 32px 0 48px;
  max-width: 720px;
}

.recharge-hero h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.recharge-sub {
  color: var(--text-muted);
  margin: 0 0 8px;
}

.recharge-user-hint {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 24px !important;
}

.recharge-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  word-break: break-all;
}

.recharge-card {
  margin-bottom: 20px;
}

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

.recharge-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.recharge-form input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  color: var(--text);
}

.recharge-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.recharge-balance {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.recharge-user {
  margin: 0 0 20px;
}

.recharge-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
}

.recharge-amount-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}

.recharge-amount-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 1.1rem;
}

.recharge-channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.recharge-channel {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
}

.recharge-channel:hover:not(:disabled) {
  border-color: var(--primary);
}

.recharge-channel.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft);
}

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

.recharge-paypal-currency {
  margin-bottom: 12px;
}

.recharge-products {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
}

.recharge-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.recharge-product:hover {
  border-color: var(--primary);
}

.recharge-product.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft);
}

.recharge-product-title {
  font-weight: 600;
}

.recharge-product-price {
  color: var(--accent);
  font-weight: 600;
}

.recharge-pay-area {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.recharge-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-md);
}

.recharge-error {
  color: var(--danger);
  margin-top: 12px;
}

.recharge-success {
  text-align: center;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

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