/* Page-specific styles. */

.accent { color: var(--accent); }
.stack-0 { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.dialog.wide { max-width: 560px; }

/* ── Login ─────────────────────────────────────────────────── */
.auth {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; padding: 40px 16px;
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 22px 22px;
}
.auth-brand { display: flex; align-items: center; gap: 14px; }
.logo-lg { width: 44px; height: 44px; border-radius: 9px; }
.auth-name { font-size: 24px; }
.auth-card {
  width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--surface-line);
}
.auth-title { font-size: 26px; font-weight: 800; font-stretch: 78%; letter-spacing: .02em; text-transform: uppercase; }
.auth-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 9px; font-size: 13.5px;
  background: rgba(122, 167, 255, .08); border: 1px solid rgba(122, 167, 255, .32); color: #d3e0ff;
}
.auth-note svg { flex: none; margin-top: 1px; color: #9dbdff; }
.auth-lock {
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; padding: 22px 16px; border-radius: 10px;
  background: rgba(229, 72, 77, .08); border: 1px solid rgba(229, 72, 77, .4); color: var(--danger-text);
}
.lock-title { font-weight: 700; color: #ffc9c9; }
.lock-time { font-size: 34px; font-weight: 600; color: var(--text-strong); }
.lock-help { font-size: 13.5px; color: #d9b7b7; }
.auth-card .input:disabled { background: #121416; border-color: #262b30; color: #7d848c; }

/* ── No access ─────────────────────────────────────────────── */
.no-access { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--text-muted); }
.no-access svg { color: var(--text-faint); }
.no-access h1 { color: var(--text); }

/* ── Orders ────────────────────────────────────────────────── */
.orders-actions { flex: 0 1 520px; }
.orders-search { flex: 1 1 260px; }
.banner-claimed { background: rgba(255, 122, 26, .08); border: 1px solid rgba(255, 122, 26, .4); color: #f4e3d6; }
.claimed-title { color: #ffb37a; }
.claimed-help { color: #d7c3b3; }
.btn-claimed { border-color: rgba(255, 154, 77, .55); color: #ffb37a; background: transparent; }
.btn-claimed:hover { color: #ffc396; border-color: #ff9a4d; background: rgba(255, 122, 26, .08); }
.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; width: 100%; text-align: left; padding: 14px 16px;
  border-radius: 10px; background: var(--surface); border: 1px solid #24292e; color: var(--text);
}
.order-row:hover { border-color: #353b42; }
.order-row.claimed { background: #18150f; border-color: #3b2a1b; }
.order-row[aria-pressed='true'] { background: #1d2125; border-color: var(--accent); }
.or-no { font-family: var(--mono); font-size: 15px; font-weight: 600; width: 58px; flex: none; color: var(--text-strong); }
.or-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.or-buyer { font-weight: 600; font-size: 15px; }
.or-summary { color: var(--text-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-money { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; min-width: 80px; }
.or-total { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.or-time { color: var(--text-faint); font-size: 12.5px; }
.or-status { flex: 0 0 176px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.or-hint { font-size: 12px; color: var(--text-faint); text-align: right; }
.order-detail { overflow: hidden; }
.od-head { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--line); }
.od-no { font-family: var(--mono); font-size: 30px; font-weight: 600; line-height: 1.1; }
.od-dl { margin: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 12px; font-size: 13.5px; }
.od-dl dt { color: var(--text-faint); }
.od-dl dd { margin: 0; min-width: 0; }
.od-callout { margin: 18px 22px 0; display: flex; flex-direction: column; gap: 8px; }
.od-callout .note { font-family: var(--mono); font-size: 13px; color: #f4e9df; background: #1c1612; border: 1px solid #3a2a1d; padding: 9px 11px; border-radius: 6px; overflow-wrap: anywhere; }
.od-section { padding: 18px 22px 14px; display: flex; flex-direction: column; gap: 12px; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.proof-thumb { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--border, #2a2d33); background: #111316; }
.proof-thumb:hover { border-color: var(--accent, #ff7a1a); }
.proof-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.od-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.od-line .name { font-weight: 600; }
.od-totals { margin: 0 22px; padding: 14px 0 16px; border-top: 1px dashed var(--field-line); display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.od-totals .tr { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.od-total { font-family: var(--mono); font-size: 22px; font-weight: 600; }
.od-actions { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); background: var(--surface-3); }
.od-actions .pair { display: flex; gap: 8px; flex-wrap: wrap; }
.od-actions .pair .btn { flex: 1 1 140px; }
.od-back { display: none; }
@media (max-width: 899px) {
  .orders-layout.has-selection .order-list-col { display: none; }
  .orders-layout:not(.has-selection) .order-detail { display: none; }
  .od-back { display: inline-flex; }
  .od-actions.sticky { position: sticky; bottom: 0; z-index: 5; border-radius: 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .45); }
  .or-status { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .or-hint { text-align: left; }
}

/* ── Items ─────────────────────────────────────────────────── */
.is-out { color: #ff9b9b; }
.is-low { color: var(--st-waiting); }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  background: #16191c; border: 1px solid #2a2f35; color: #b4bac0;
}
.cat-tab:hover { color: var(--text-strong); border-color: #3a4048; }
.cat-tab[aria-pressed='true'] { background: var(--selected); border-color: #3f464e; color: var(--text-strong); }
.cat-tab[aria-pressed='true'] .seg-count { color: var(--accent-text); }
.cat-tab .seg-count { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: #80878f; }
.cat-tab.drop-target { border-color: var(--accent); background: #1c1611; }
/* Optional gun tier filter, a smaller row under the category tabs. */
.tier-tabs { margin-top: 8px; align-items: center; }
.tier-tabs .cat-tab { min-height: 30px; padding-top: 0; padding-bottom: 0; font-size: 12.5px; }
.tier-tabs-label { margin-right: 2px; }
.toolbar { gap: 10px; }
.items-search { flex: 1 1 240px; max-width: 360px; }
.sections { display: flex; flex-direction: column; gap: 30px; }
.shop-section { display: flex; flex-direction: column; gap: 12px; border-radius: 12px; }
.shop-section.drop-target { outline: 2px dashed var(--accent); outline-offset: 6px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.shop-row { display: flex; gap: 12px; align-items: stretch; }
.row-label { flex: none; width: 46px; padding-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #848b93; }
.row-cards { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.row-cards > .item-card { flex: 1 1 260px; min-width: 0; }
.row-cards.per-2 > .item-card { max-width: calc((100% - 12px) / 2); }
.row-cards.per-3 > .item-card { max-width: calc((100% - 24px) / 3); }
@media (max-width: 760px) {
  .row-cards.per-2 > .item-card, .row-cards.per-3 > .item-card { max-width: 100%; }
  .shop-row { flex-direction: column; gap: 6px; }
  .row-label { padding-top: 0; }
}
.item-card {
  display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid #272c32;
}
/* Discord groups (⭐ Featured, a rarity, Sold out): cards are dragged inside their group. */
.tier { display: flex; flex-direction: column; gap: 8px; border-radius: 12px; transition: opacity .15s; }
.tier-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
/* One card per line, like Discord (the page's security policy ignores inline styles, so no per-row variable). */
.tier-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tier-cards > .item-card.solo { grid-column: 1 / -1; }
@media (max-width: 760px) { .tier-cards { grid-template-columns: minmax(0, 1fr); } }
.is-dragging .tier:not(.drag-tier) { opacity: .4; }
/* A group with no cards yet (⭐ Featured while dragging a gun): a dashed box to drop into. */
.tier-cards:empty { min-height: 84px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 12px; }
.drag-note {
  position: absolute; top: -12px; left: 14px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--accent); color: #1a1208; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); visibility: visible !important;
}
.is-dragging .drag-tier { outline: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 6px; }

.item-card.draggable { cursor: grab; user-select: none; }
/* Amplified guns: an orange edge, like their orange side bar in Discord. */
.item-card.is-amp { border-color: color-mix(in srgb, var(--r-amplified) 55%, #272c32); box-shadow: inset 3px 0 0 var(--r-amplified); }
.item-card.draggable img { -webkit-user-drag: none; }
/* The card's place while it's being dragged: an empty dashed slot. */
.item-card.drag-source { border: 2px dashed var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.item-card.drag-source > * { visibility: hidden; }
/* The lifted copy that follows the mouse. */
.drag-ghost {
  position: fixed; z-index: 1000; pointer-events: none; margin: 0; box-sizing: border-box;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.drag-ghost.lifted { transform: scale(1.03) rotate(-1.2deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 2px var(--accent); cursor: grabbing; }
.drag-ghost.settling { transition: left .18s cubic-bezier(.2, .7, .3, 1), top .18s cubic-bezier(.2, .7, .3, 1), transform .18s, box-shadow .18s; }
.drag-ghost.dropped-away { opacity: 0; transform: scale(.8); }
body.dragging-card, body.dragging-card * { cursor: grabbing !important; user-select: none; }
@media (prefers-reduced-motion: reduce) {
  .drag-ghost, .drag-ghost.settling, .tier { transition: none; }
  .drag-ghost.lifted { transform: none; }
}

.ic-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
/* What a gun's full kit includes, beside the gun (wraps below it on narrow cards). */
.ic-kit {
  flex: 0 1 230px; min-width: 180px; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px;
  border-radius: 8px; background: #111416; border: 1px solid #23282d; font-size: 12.5px;
}
.ic-kit-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9aa1a8; }
.ic-kit-line { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text); }
.ic-kit-line b { color: var(--rc); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-kit-gem { flex: none; width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); background: var(--rc); box-shadow: 0 0 5px var(--rc); }
.ic-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ic-name { font-size: 16px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.drag-handle { flex: none; color: #6b737b; padding: 2px; cursor: grab; }
.item-pic {
  flex: none; border-radius: 9px; background: #0f1214; border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent);
  display: flex; align-items: center; justify-content: center; color: var(--rc); overflow: hidden;
}
.item-pic img { width: 100%; height: 100%; object-fit: cover; }
.pic-64 { width: 64px; height: 64px; }
.pic-76 { width: 76px; height: 76px; border-radius: 8px; }
.pic-120 { width: 120px; height: 120px; border-radius: 10px; }
.ic-desc { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #b4bac0; }
.ic-avail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; border-radius: 8px; background: #111416; border: 1px solid #23282d; }
.ic-avail-n { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--text-strong); }
.ic-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.stock-btns { display: flex; gap: 4px; }
.sbtn {
  min-width: 40px; height: 36px; border-radius: 7px; border: 1px solid var(--field-line); background: var(--surface-2);
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: #e2e5e8;
}
.sbtn:hover:not(:disabled) { border-color: #4a515a; color: var(--text-strong); }
.sbtn:disabled { color: #5f666d; }
.sbtn.sm { min-width: 36px; height: 32px; font-size: 12px; border-radius: 6px; }
.adj-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--field-line); }
.adj-box .input { flex: 1 1 90px; width: 90px; }
.adj-label { margin: 0; }
.btn-add { background: #2b6e48; border-color: #2b6e48; color: #eafff1; }
.btn-add:hover { background: #33804f; border-color: #33804f; color: #fff; }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 170px; padding: 6px; border-radius: 10px;
  background: #1b1e22; border: 1px solid #343a41; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 2px;
}
.menu button {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 7px; border: 0; background: transparent;
  color: var(--text); font-size: 13.5px; text-align: left;
}
.menu button:hover:not(:disabled) { background: var(--hover); }
.menu button:disabled { color: #5f666d; }
.items-table { min-width: 980px; }

/* ── Add / edit item ───────────────────────────────────────── */
.edit-layout { gap: 24px; }
.fieldset { margin: 0; display: flex; flex-direction: column; gap: 18px; padding-top: 20px; min-width: 0; }
.fieldset > legend { padding: 0 8px; }
.fieldset-plain { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fieldset-plain > legend { padding: 0; margin-bottom: 6px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap8 { gap: 8px; }
.fs14 { font-size: 14px; }
.grow-220 { flex: 1 1 220px; }
.grow-320 { flex: 2 1 320px; }
.pill-radio .rarity-dot { width: 8px; height: 8px; transform: rotate(45deg); background: var(--rc); flex: none; }
.pill-radio input:checked + span { border-color: var(--rc); background: rgba(255, 255, 255, .05); color: var(--rc); }
.drop-zone {
  width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; padding: 20px;
  border-radius: 10px; border: 1.5px dashed #3e454c; background: #111416; text-align: center; color: var(--text);
}
.drop-zone:hover, .drop-zone.over, [data-drop].over { border-color: var(--accent); background: #17130f; }
.link-like { color: var(--accent-text); text-decoration: underline; }
.form-foot { padding-top: 16px; border-top: 1px solid var(--line); }
.preview-card { padding: 16px; border-radius: 12px; background: #1b1d22; border: 1px solid #2c3036; display: flex; flex-direction: column; gap: 12px; }
.pc-name { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.pc-desc { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--text-label); }
.pc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px; border-radius: 6px; background: #2c3036; color: #e2e5e8; font-weight: 600; font-size: 13.5px; }
/* Pack deals: the packs editor rows and the preview's pack lines (green 🛒 buttons like Discord's). */
.pack-row .w-90 { width: 90px; flex: none; }
.pack-row .w-110 { width: 110px; flex: none; }
.pack-row .grow { min-width: 0; }
.pc-pack { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .06); align-items: center; }
.pc-pack .pc-btn { background: #248046; white-space: nowrap; padding: 0 12px; }
.pc-pack .pc-btn.is-off { background: #2c3036; color: #80848e; }

/* ── Bulk add ──────────────────────────────────────────────── */
.format-box { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 8px; background: #101315; border: 1px solid #23282d; }
.bulk-text { min-height: 300px; font-size: 13px; line-height: 1.7; white-space: pre; tab-size: 4; background: #0f1113; }
.result-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.result-tiles .tile { gap: 2px; }
.tile-bad { border-color: rgba(229, 72, 77, .45); }
.c-blue-text { color: #9dbdff; }
.gap4 { gap: 4px; }
.list-panel { overflow: hidden; }
.lp-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.lp-bad { color: #ffc9c9; }
.lp-row { padding: 11px 16px; border-bottom: 1px solid var(--row-line); }
.lp-foot { padding: 12px 16px; }

/* ── Categories ────────────────────────────────────────────── */
.page-narrow { max-width: 980px; }
.emoji-field { flex: 0 0 84px !important; }
.emoji-input { font-size: 20px; text-align: center; padding: 0 6px; }
.channel-preview { flex: 1 1 200px; min-height: 44px; display: flex; align-items: center; }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cat-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid #272c32; }
.cat-item.editing { border-color: rgba(255, 122, 26, .55); }
.cat-item.editing .input { border-color: var(--accent); }
.updown { display: flex; flex-direction: column; gap: 2px; flex: none; }
.ud-btn { width: 30px; height: 22px; border-radius: 5px; border: 1px solid #2f353b; background: transparent; color: var(--text-label); display: inline-flex; align-items: center; justify-content: center; }
.ud-btn:hover:not(:disabled) { border-color: #4a515a; color: var(--text-strong); }
.ud-btn:disabled { color: #3e444b; }
.cat-pos { flex: none; width: 26px; text-align: right; }
.cat-emoji { flex: none; }
.cat-emoji .input { width: 52px; min-height: 42px; }
.cat-name { flex: 1 1 200px; min-width: 0; }
.cat-name .input { min-height: 42px; font-size: 15px; }
.cat-channel { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.cat-count { flex: 0 0 72px; text-align: right; }

/* ── Sales ─────────────────────────────────────────────────── */
.sales-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.sales-tiles .tile { padding: 18px; border-radius: 12px; }
.tile-hero { grid-column: 1 / -1; }
.hero-value { font-family: var(--mono); font-size: 44px; font-weight: 600; line-height: 1.05; color: var(--text-strong); overflow-wrap: anywhere; }
.tile-value.big { font-size: 28px; }
.fs16 { font-size: 16px; }
.accent-text { color: var(--accent-text); }
.tile-link { text-decoration: none; color: var(--text); }
.tile-link:hover { border-color: #3a4048; color: var(--text); }
.chart { display: flex; gap: 10px; }
.chart-axis {
  flex: none; width: 60px; height: 240px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); transform: translateY(-7px);
}
.chart-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.chart-plot { position: relative; height: 240px; border-bottom: 1px solid #3a4148; }
.grid-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.grid-line.top { top: 0; }
.grid-line.mid { top: 50%; }
.bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.bar-btn { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; display: flex; align-items: flex-end; cursor: default; }
.bar { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--accent); }
.bar.zero { height: 2px; background: #3a4148; border-radius: 1px; }
.bar-btn.on .bar:not(.zero), .bar-btn:hover .bar:not(.zero) { background: #ffb37a; }
.bar-btn:focus-visible { outline-offset: 0; }
.chart-tip {
  position: absolute; top: -6px; transform: translate(-50%, -100%); padding: 8px 10px; border-radius: 8px; background: #23272c; border: 1px solid #3a4148;
  white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); display: flex; flex-direction: column; gap: 1px; z-index: 2;
}
.chart-days { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); }
.day-table { max-height: 320px; overflow: auto; border: 1px solid #23282d; border-radius: 8px; }
.compact-table { min-width: 0; font-size: 13.5px; }
.day-table th { position: sticky; top: 0; background: var(--surface); }
.rank-panel { flex: 1 1 420px; min-width: 0; overflow: hidden; }
.rank-title { padding: 16px 18px 12px; font-size: 18px; }
/* position: relative keeps screen-reader-only headers inside the scroll box (else they widen the page). */
.table-scroll { position: relative; overflow-x: auto; }
.rank-table { min-width: 360px; }
.rank-table .rank { width: 40px; }

/* ── Restock alerts ────────────────────────────────────────── */
.waiting-panel { overflow: hidden; }
.wp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.count-inline { font-size: 15px; font-weight: 500; font-stretch: 100%; }
.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 13px 18px; border-bottom: 1px solid var(--row-line); }
.alert-row .stack-0 { flex: 1 1 180px; }
.type-chip { flex: 0 0 104px; justify-content: center; }
.send-box { padding: 18px; display: flex; flex-direction: column; gap: 16px; background: var(--surface-3); }
.send-row { align-items: flex-end; }
.send-row .field { flex: 0 1 220px; }
.fs18 { font-size: 18px; }
.lp-head-block { padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.settings-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.type-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--row-line); padding: 2px 0; }
.num-sm { width: 64px; }
.delay-row { padding-top: 8px; gap: 12px; }
.grow { flex: 1; }
input[type='range'] { accent-color: var(--accent); min-height: 32px; }

/* ── Invite rewards ────────────────────────────────────────── */
.big-toggle {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--surface-line); cursor: pointer;
}
.big-toggle .toggle { min-height: 0; }
.banner-line { gap: 10px 14px; }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: #57c785; flex: none; }
.danger-strong { color: #ffc9c9; }
.save-aligned { margin-bottom: 24px; }
.inv-table { min-width: 880px; }
.joins-table { min-width: 960px; }
.adjust-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 18px; background: var(--surface-3); border-top: 1px solid var(--line); }
.adjust-title { flex: 1 1 100%; }
.adj-amount { flex: 0 0 120px; }
.grow-260 { flex: 1 1 260px; }
.btn-approve { border-color: rgba(87, 199, 133, .5); background: rgba(87, 199, 133, .1); color: #9fe0b7; }
.btn-approve:hover { border-color: rgba(87, 199, 133, .75); color: #c4f0d4; background: rgba(87, 199, 133, .16); }

/* ── Promo codes ───────────────────────────────────────────── */
.code-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.code-card.dimmed { opacity: .75; }
.code-ticket { font-size: 18px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 6px; background: #0f1113; border: 1px dashed #4a5058; }
.code-off { font-size: 17px; font-weight: 700; }
.rule-chip { padding: 3px 9px; border-radius: 6px; background: #1d2125; font-size: 12.5px; color: var(--text-label); }
.code-stats { gap: 8px 18px; }
.grow-200 { flex: 1 1 200px; }
.grow-120 { flex: 1 1 120px; }
.use-bar { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.use-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; }
.code-input { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.seg-radio { position: relative; display: inline-flex; }
.seg-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-radio span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 6px; color: #a9afb5; font-weight: 600; font-size: 13px; }
.seg-radio input:checked + span { background: var(--selected); color: var(--text-strong); }
.seg-radio input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.date-input { width: auto; min-height: 40px; color-scheme: dark; }
.gap0 { gap: 0; }
.gap0 > .toggle { border-top: 1px solid var(--row-line); min-height: 52px; }

/* ── Vouches ───────────────────────────────────────────────── */
.vouch-top { gap: 16px; align-items: stretch; }
.rating-box { flex: 1 1 300px; display: flex; align-items: center; gap: 20px; }
.rating-big { font-size: 56px; font-weight: 600; line-height: 1; color: var(--text-strong); }
.star-row { display: inline-flex; gap: 2px; }
.star-on { color: #f5b942; display: inline-flex; }
.star-on svg { fill: currentColor; }
.star-off { color: #4a5058; display: inline-flex; }
.reward-form { flex: 2 1 480px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.vouch-card { display: flex; flex-wrap: wrap; gap: 14px 20px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--surface-line); }
.vouch-card.is-hidden { background: #111315; border-color: #22262b; }
.vc-main { flex: 1 1 420px; min-width: 0; }
.vc-head { gap: 8px 12px; }
.vc-text { font-size: 15px; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.vc-text.no-text { color: var(--text-faint); font-style: italic; }
.vc-side { flex: 0 1 260px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; text-align: right; }
@media (max-width: 700px) { .vc-side { align-items: flex-start; text-align: left; } }

/* ── Discord bot ───────────────────────────────────────────── */
.status-card { --fg: #c9cdd2; --dot: #8b9299; --ring: rgba(139, 146, 153, .2); --tint: #1d2125; }
.status-card.tone-blue { --fg: #9dbdff; --dot: #7aa7ff; --ring: rgba(122, 167, 255, .2); --tint: rgba(122, 167, 255, .1); border-color: rgba(122, 167, 255, .35); }
.status-card.tone-amber { --fg: #f2c14e; --dot: #f2c14e; --ring: rgba(242, 193, 78, .2); --tint: rgba(242, 193, 78, .1); border-color: rgba(242, 193, 78, .4); }
.status-card.tone-green { --fg: #6fd394; --dot: #57c785; --ring: rgba(87, 199, 133, .2); --tint: rgba(87, 199, 133, .1); border-color: rgba(87, 199, 133, .35); }
.status-card.tone-red { --fg: #ff9b9b; --dot: #e5484d; --ring: rgba(229, 72, 77, .2); --tint: rgba(229, 72, 77, .1); border-color: rgba(229, 72, 77, .45); }
.status-row { gap: 16px; }
.status-icon { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 6px var(--ring); }
.status-word { font-size: 24px; font-weight: 800; font-stretch: 78%; letter-spacing: .02em; text-transform: uppercase; color: var(--fg); }
.server-pick { margin: 0; padding: 14px; border-radius: 10px; border: 1px solid var(--field-line); display: flex; flex-direction: column; gap: 8px; }
.server-pick legend { padding: 0 6px; }
.status-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.status-dl div { display: flex; flex-direction: column; gap: 3px; }
.status-dl dt { font-size: 12.5px; color: var(--text-muted); }
.status-dl dd { margin: 0; overflow-wrap: anywhere; }
.token-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 9px; background: #101315; border: 1px solid #23282d; }
.grow-280 { flex: 1 1 280px; }
.guide summary { cursor: pointer; color: var(--accent-text); font-weight: 600; min-height: 32px; }
.guide ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-label); }
.setup-group { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--row-line); }

/* ── Settings ──────────────────────────────────────────────── */
.page-mid { max-width: 1000px; }
.jump-links { display: flex; flex-wrap: wrap; gap: 6px; }
.jump { min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--surface-line); color: var(--text-label); font-size: 13px; font-weight: 600; }
.jump:hover { color: var(--text-strong); border-color: #3a4048; }
.toggle-list { display: flex; flex-direction: column; }
.toggle-list > .toggle, .per-row-line { border-top: 1px solid var(--row-line); min-height: 56px; }
.per-row-line { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 8px 0; }
.per-row-line .stack-0 { flex: 1 1 260px; }
.reward-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.sub-card { padding: 16px; border-radius: 10px; border: 1px solid var(--line); background: #121417; }
.compact-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.narrow-field { max-width: 200px; }
.narrow-affix { max-width: 220px; }
.link-44 { min-height: 44px; display: inline-flex; align-items: center; }
.test-panel.on { border: 2px solid var(--accent); }
.test-pill { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 10px; background: #111416; border: 1px solid var(--surface-line); cursor: pointer; }
.test-panel.on .test-pill { background: rgba(255, 122, 26, .1); border-color: var(--accent); }
.test-pill .toggle { min-height: 0; }
.test-word { font-size: 18px; font-weight: 600; letter-spacing: .08em; color: #a9afb5; }
.test-panel.on .test-word { color: #ffb37a; }
.check-sm { min-height: 36px; }
.cap-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-top: 1px solid var(--row-line); }
.cap-input { width: 110px; }
.full-col { grid-column: 1 / -1; }
.backup-dl dd { font-size: 14px; }
.sticky-save { position: sticky; bottom: 0; z-index: 5; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }

/* ── Accounts / Activity ───────────────────────────────────── */
.accounts-table { min-width: 700px; }
.role-select { width: auto; min-width: 110px; }
.activity-table { min-width: 820px; }
.w-when { width: 150px; }
.w-who { width: 200px; }
.src-badge { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.src-panel { color: var(--text-label); background: var(--selected); }
.src-discord { color: #b9c6ff; background: rgba(122, 140, 255, .16); }
.src-system { color: #a7adb4; background: rgba(167, 173, 180, .1); }

/* ── Blocked ───────────────────────────────────────────────── */
.title-count { font-family: var(--mono); font-size: 20px; font-weight: 500; font-stretch: 100%; color: var(--text-faint); }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form .field { flex: 1 1 200px; }
.inline-form .field.wide { flex: 2 1 280px; }
.btn-block-danger { background: rgba(229, 72, 77, .12); border-color: rgba(255, 107, 107, .5); color: #ffb0b0; font-weight: 700; }
.btn-block-danger:hover { background: rgba(229, 72, 77, .2); color: #ffd0d0; border-color: rgba(255, 107, 107, .7); }

/* ── Guns, coins, rarity colors (main products) ──────────────── */
.gun-pic { width: 160px; aspect-ratio: 16 / 9; border-radius: 10px; background: #141518; display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid #2c3036; }
.gun-pic img { max-width: 78%; max-height: 82%; object-fit: contain; }
.glow { position: relative; isolation: isolate; }
.glow::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 55%, transparent), transparent 75%); animation: glow-pulse 2.6s ease-in-out infinite; }
.glow::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--orbit, 0deg), var(--rc) 0 14%, transparent 22% 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit 3s linear infinite; }
@property --orbit { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes orbit { to { --orbit: 360deg; } }
@keyframes glow-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .glow::before, .glow::after, .fx-swatch, .fx-swatch::after { animation: none; } }
.alpha-line:empty { display: none; }
.extra-pics { display: flex; flex-direction: column; gap: 8px; }
.extra-slot { position: relative; width: 120px; aspect-ratio: 16 / 9; border-radius: 8px; border: 1px dashed #3a4048; background: #141518; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; overflow: hidden; }
.extra-slot:hover { border-color: var(--accent); color: var(--text-strong); }
.extra-slot.has-pic { border-style: solid; }
.extra-slot img { width: 100%; height: 100%; object-fit: contain; }
.extra-remove { position: absolute; top: 4px; right: 4px; background: #141518; }
.att-list { display: flex; flex-direction: column; gap: 8px; }
/* Kit builder: the kit (drop target) beside the attachment library (drag source). */
/* Full kit tabs: one per kit (the one being edited is highlighted), then Add another kit. */
.kit-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kit-tab {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text-label); cursor: pointer; text-align: left;
}
.kit-tab:hover { border-color: #3a4048; color: var(--text-strong); }
.kit-tab[aria-pressed='true'] { border-color: var(--accent); background: #1c1611; color: var(--text-strong); }
.kit-builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .kit-builder { grid-template-columns: minmax(0, 1fr); } }
.kit-drop { position: relative; min-height: 70px; padding: 10px; border-radius: 10px; border: 1px dashed #2f353c; transition: border-color .15s, background .15s; }
.kit-drop.ready { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.kit-drop.over { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.kit-drop-hint { display: none; margin: 8px 0 0; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.kit-drop.ready .kit-drop-hint { display: block; }
.att-row.just-added { animation: att-in .5s ease; }
.att-grip { flex: none; padding: 4px 2px; color: #7a828a; cursor: grab; user-select: none; touch-action: none; }
.att-grip:hover { color: var(--accent-text); }
.att-num { flex: none; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px;
  background: #1c2024; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #aeb4ba; }
.att-row.drag-source { visibility: hidden; }
.att-ghost { display: flex; align-items: center; }
.att-chip { flex-wrap: nowrap; gap: 8px; padding: 7px 8px 7px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--rc) 35%, #262b31); background: var(--surface); }
.att-chip-name { flex: 1; min-width: 0; color: var(--rc); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes att-in { from { transform: translateX(14px); opacity: 0; background: color-mix(in srgb, var(--accent) 18%, transparent); } }
/* Amplifications: one button per amplification the gun can get; on = numbered, gold. */
.amp-list { display: flex; flex-direction: column; gap: 6px; }
.amp-opt {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; text-align: left;
  border: 1px solid #2a2f35; background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .12s, background .12s;
}
.amp-opt:hover:not(:disabled) { border-color: var(--r-amplified); }
.amp-opt.is-on { border-color: var(--r-amplified); background: color-mix(in srgb, var(--r-amplified) 9%, transparent); }
.amp-opt:disabled { opacity: .5; cursor: not-allowed; }
.amp-check { flex: none; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
  background: #1c2024; font-size: 12px; font-weight: 700; color: var(--r-amplified); }
.amp-opt.is-on .amp-check { background: var(--r-amplified); color: #1a0d04; }
.amp-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.amp-line { color: var(--r-amplified); }
.lib-side { padding: 10px; border-radius: 10px; background: #111416; border: 1px solid #23282d; }
.lib-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lib-fit { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #aeb4ba; cursor: pointer; }
.lib-list { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 2px; }
.lib-group { display: flex; flex-direction: column; gap: 4px; }
.lib-group-title { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #8a9199; }
.lib-row {
  display: flex; align-items: center; gap: 7px; padding: 5px 6px 5px 8px; border-radius: 7px; border: 1px solid #262b31;
  background: var(--surface); font-size: 12.5px; cursor: grab; user-select: none; transition: border-color .12s, transform .12s, opacity .12s;
}
.lib-row:hover { border-color: color-mix(in srgb, var(--rc) 55%, #262b31); transform: translateX(-2px); }
.lib-row.dragging { opacity: .35; border-style: dashed; }
.lib-ghost { display: flex; }
.lib-ghost.settling { transition: left .18s ease, top .18s ease, opacity .18s ease, transform .18s; }
.lib-row.is-added { cursor: default; opacity: .55; }
.lib-row.is-added:hover { transform: none; border-color: #262b31; }
.lib-grip { color: #6b737b; width: 12px; text-align: center; }
.lib-row.is-added .lib-grip { color: var(--ok, #5fc77a); }
.lib-name { flex: 1; min-width: 0; font-weight: 600; color: var(--rc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-rarity { font-size: 11px; color: #8a9199; }
.att-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.att-name { flex: 2 1 180px; }
.att-row select { min-width: 120px; }
.stock-move { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; background: #121417; border: 1px solid var(--line); }
.move-bar { display: flex; height: 28px; border-radius: 6px; overflow: hidden; background: #2a2f35; font-size: 12px; font-weight: 600; }
.move-kit { display: flex; align-items: center; padding: 0 8px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; overflow: hidden; }
.move-gun { flex: 1; display: flex; align-items: center; padding: 0 8px; color: var(--text-label); white-space: nowrap; }
.note-box { margin: 0; padding: 12px 14px; border-radius: 8px; background: #121417; border: 1px solid var(--line); color: var(--text-label); font-size: 13.5px; }
.tip-wrap { display: inline-flex; }
.cat-style { flex: 0 1 170px; }
.style-field { flex: 0 1 170px !important; }

/* Discord card preview (Components V2 look) */
.dc-card { --dc-accent: var(--r-common); position: relative; padding: 14px 16px 14px 18px; border-radius: 8px; background: #2b2d31; border: 1px solid #3a3c42; display: flex; flex-direction: column; gap: 10px; color: #dbdee1; font-size: 14px; }
.dc-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 8px 0 0 8px; background: var(--dc-accent); }
.dc-eyebrow { font-size: 12px; font-weight: 700; color: #f5b942; }
.dc-gallery { display: grid; gap: 4px; }
.dc-gallery.n-2 { grid-template-columns: 1fr 1fr; }
.dc-gallery.n-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.dc-gallery.n-3 .dc-media:first-child { grid-row: span 2; }
.dc-media { aspect-ratio: 16 / 9; border-radius: 6px; background: #141518; display: grid; place-items: center; overflow: hidden; }
.dc-media img { max-width: 78%; max-height: 82%; object-fit: contain; }
.dc-text { display: flex; flex-direction: column; gap: 3px; }
.dc-title { font-size: 16px; font-weight: 700; color: #f2f3f5; }
.dc-sub { font-size: 13px; color: #b5bac1; }
.dc-sep { border: 0; border-top: 1px solid #3f4147; margin: 2px 0; width: 100%; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: #fff; background: #4e5058; white-space: nowrap; }
.dc-btn.green { background: #248046; }
.dc-btn.blue { background: #5865f2; }
.dc-btn.grey { background: #4e5058; color: #9a9ca3; }
.dc-section { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.dc-title.h2 { font-size: 20px; line-height: 1.25; }
/* Rarity gem and 10-piece stock bar, drawn like the bot's app emojis */
.dc-gem { display: inline-block; width: 9px; height: 9px; margin: 0 6px 1px 2px; border-radius: 2px; transform: rotate(45deg); background: var(--gem, var(--r-common)); box-shadow: 0 0 6px var(--gem, var(--r-common)); vertical-align: middle; }
.dc-bar { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: middle; }
.dc-bar i { width: 7px; height: 13px; border-radius: 2px; background: #4e5058; }
.dc-bar i.on { background: #ff7a1a; }
.dc-bar.low i.on { background: #f2c14e; }
/* A coin amount's tag, drawn like Discord's inline code box (what #coins shows). */
.dc-tag {
  display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: #2b2d31; border: 1px solid #1e1f22;
  color: #dbdee1; font-family: Consolas, 'Andale Mono WT', Menlo, monospace; font-size: 85%; font-weight: 400; line-height: 1.3;
}

/* Coins page */
.coin-stock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.coin-big { font-size: 40px; font-weight: 600; color: var(--text-strong); line-height: 1; }
.sbtn-add { color: #9fe0b7; }
.nowrap-row { flex-wrap: nowrap; }
.nowrap-row .input { min-width: 0; }
.coin-table { min-width: 0; }
.coin-table th, .coin-table td { padding-left: 8px; padding-right: 8px; }
.coin-table td { padding: 8px 10px; }
.struck { text-decoration: line-through; }
.price-cell { width: 96px; }
.tag-input { width: 112px; }
.amount-input { width: 150px; }
.form-end { justify-content: flex-end; }
.coins-card .ic-name { font-size: 17px; }

/* Settings → Rarity colors */
.color-list { display: flex; flex-direction: column; }
.color-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--row-line); }
.color-name { flex: 0 0 96px; }
.color-pick input { width: 44px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid #333940; background: #141518; cursor: pointer; }
.hex-input { width: 110px; }
.fx-swatch { --fx: #a3a9b0; position: relative; width: 72px; height: 40px; border-radius: 8px; background: #141518; overflow: hidden; display: grid; place-items: center; }
.fx-swatch::before { content: ''; position: absolute; inset: 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--fx) 60%, transparent), transparent 80%); animation: glow-pulse 2.6s ease-in-out infinite; }
.fx-swatch::after { content: ''; position: absolute; inset: 0; border-radius: 8px; padding: 2px; background: conic-gradient(from var(--orbit, 0deg), var(--fx) 0 14%, transparent 22% 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit 3s linear infinite; }
.fx-core { position: relative; width: 14px; height: 14px; transform: rotate(45deg); background: var(--fx); }
.regen-bar { display: block; width: 100%; max-width: 320px; margin-top: 6px; accent-color: var(--accent); }

/* Coins: the drawn coin GIF fills its frame (it already has its own glow and border) */
.coin-pic { width: 320px; max-width: 100%; border: 0; }
.coin-pic img, .dc-media img.full { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }

