/* AUREA Credit (/credits) — page-specific styles.
   Layout primitives (bst-balrow, bst-charge-grid, bst-row, …) come
   from boost.css, which this page also loads: the charge machinery
   is the same one /boost uses, only the framing differs. */

.cr-use-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 6px 0 12px;
}
@media (max-width: 720px) { .cr-use-grid { grid-template-columns: 1fr; } }
.cr-use-card {
  border: 1px solid var(--border, #39415F);
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--card, rgba(255, 255, 255, 0.02));
}
.cr-use-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cr-use-head img { border-radius: 12px; flex: none; }
.cr-use-head h3 { margin: 0; font-size: 17px; }
.cr-use-card .btn { margin-top: 8px; }

/* AI rate cards — same Launch-Pack-style cards as /ai (2026-12-02). */
.ai-rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.ai-rate-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
}
.ai-rate-name { font-weight: 700; color: #FFE873; font-size: 0.95rem; margin-bottom: 6px; }
.ai-rate-price { font-size: 1.05rem; color: var(--muted, #A7ACC2); }
.ai-rate-price strong { font-size: 1.35rem; font-weight: 800; color: #fff; }
.ai-rate-lab { font-size: 0.8rem; }
.ai-rate-unit { font-size: 0.8rem; color: var(--faint, #8B90A5); margin-top: 2px; }

/* "Fraction of the latest model" badge — rendered by credits.js
   ONLY for features whose live ai_rates() price is genuinely
   below the table's top tier (same rule as /ai). */
.ai-cheap-badge {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  border: 1px solid rgba(255, 216, 77, 0.55); border-radius: 999px;
  background: rgba(255, 216, 77, 0.12); color: #FFD84D;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
  vertical-align: 2px;
}

/* ---------- Credit flagship panel (2026-12-02) ----------
   The live credit area (balances + all charge routes) now opens
   the page — above the hero and the points bar — wrapped in one
   large neon panel, the same recipe as the /boost catalog panel.
   Frames, glows and number styling only: no text colours are
   darkened (--muted #A7ACC2 / --faint #8B90A5 stay the
   readability floor), and the card / PayPal button keeps its
   intentional grey "being switched on" state untouched. */
.crs-panel {
  border: 2px solid transparent;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #171C33, #10142A) padding-box,
    linear-gradient(135deg, rgba(255,215,0,.85), rgba(138,43,226,.8) 52%, rgba(255,215,0,.5)) border-box;
  box-shadow: 0 0 26px rgba(138,43,226,.28), 0 0 16px rgba(255,215,0,.14), 0 18px 44px rgba(0,0,0,.5), inset 0 0 34px rgba(138,43,226,.06);
}
.crs-panel-head {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255,215,0,.35);
  background: radial-gradient(120% 160% at 12% 0%, rgba(255,215,0,.10), rgba(138,43,226,.08) 55%, transparent 75%);
}
.crs-panel-dragon {
  width: 76px; height: 76px; border-radius: 50%; flex: none;
  box-shadow: 0 0 16px rgba(255,215,0,.35), 0 0 26px rgba(138,43,226,.3);
}
.crs-panel-head .section-title {
  margin: 0;
  background: linear-gradient(92deg, #FFE97A, #FFD700 45%, #D9B400);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.crs-panel-body { padding: 20px 22px 24px; }
@media (max-width: 720px) {
  .crs-panel-head { padding: 14px 16px 12px; gap: 12px; }
  .crs-panel-dragon { width: 60px; height: 60px; }
  .crs-panel-body { padding: 16px 14px 18px; }
}

/* Balance cards inside the panel: neon frame, big gold numbers.
   The unit span keeps its own muted colour from boost.css. */
.crs-panel .bst-bal {
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 14px 16px;
  background:
    linear-gradient(#171C33, #171C33) padding-box,
    linear-gradient(135deg, rgba(255,215,0,.45), rgba(138,43,226,.45) 55%, rgba(255,215,0,.25)) border-box;
  box-shadow: 0 0 12px rgba(138,43,226,.14), 0 8px 22px rgba(0,0,0,.35), inset 0 0 18px rgba(138,43,226,.05);
}
.crs-panel .bst-bal-v {
  font-size: 34px; line-height: 1.15; color: #FFD84D;
  text-shadow: 0 0 18px rgba(255,215,0,.35);
}
@media (max-width: 720px) { .crs-panel .bst-bal-v { font-size: 28px; } }

/* Charge boxes inside the panel: same neon framing, gentle hover.
   Buttons and form controls inside keep their existing styles. */
.crs-panel .bst-charge-box {
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(#151A30, #151A30) padding-box,
    linear-gradient(135deg, rgba(255,215,0,.32), rgba(138,43,226,.32) 55%, rgba(255,215,0,.18)) border-box;
  box-shadow: 0 0 10px rgba(138,43,226,.10), 0 8px 22px rgba(0,0,0,.3), inset 0 0 16px rgba(138,43,226,.04);
  transition: box-shadow .18s ease;
}
@media (hover: hover) {
  .crs-panel .bst-charge-box:hover {
    box-shadow: 0 0 18px rgba(255,215,0,.16), 0 0 26px rgba(138,43,226,.22), 0 12px 26px rgba(0,0,0,.4), inset 0 0 16px rgba(138,43,226,.06);
  }
}
.crs-panel .bst-charge-box h3 { color: #FFE873; }

/* Wallet-charge coin logo (2026-12-02): the real token logo sits
   beside the currency selector and swaps USDT <-> AUR with it
   (the swap itself is a tiny display-only script in credits.html;
   credits.js and its flow are untouched). */
.crs-coin-logo {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, .18);
}

/* Charge inputs, enlarged (user order 2026-12-02): the points
   amount, the USDT/AUR amount and the currency selector were too
   small to read and tap comfortably. Scoped to this panel only —
   /boost keeps the shared boost.css sizing. */
.crs-panel .bst-inline input[type="number"],
.crs-panel .bst-inline select {
  min-height: 50px;
  font-size: 17px;
  padding: 10px 14px;
  border-radius: 12px;
}
.crs-panel #crsPtsAmount { width: 210px; max-width: 100%; }
.crs-panel #crsChainAmount { width: 190px; max-width: 100%; }
.crs-panel #crsChainMethod { min-width: 132px; font-weight: 700; }
