/* MKEcoins - black / silver / blue */
:root {
  --bg: #06080b;
  --bg-2: #0b0f14;
  --panel: #10151b;
  --panel-2: #151b23;
  --line: #222b36;
  --line-2: #2f3a48;
  --text: #c5ced8;
  --muted: #8693a2;
  --silver: #eef2f6;
  --blue: #2f81f7;
  --blue-2: #5aa9ff;
  --blue-deep: #0d2a52;
  --amber: #e3b341;
  --green: #3fb97a;
  --red: #f0616d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, Menlo, monospace;
}

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

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(47, 129, 247, .16), transparent 62%),
    radial-gradient(800px 420px at 0% 0%, rgba(160, 175, 195, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: #8cc4ff; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--silver);
  letter-spacing: .02em;
  line-height: 1.1;
  margin: 0 0 .5em;
  text-transform: uppercase;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; letter-spacing: .05em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 760px; }
.section { padding: 46px 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

/* Metallic silver text */
.metal {
  background: linear-gradient(180deg, #ffffff 0%, #dfe5ec 38%, #8e9aa8 62%, #e4e9ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-2);
  margin-bottom: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 8, 11, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--silver); }
.brand:hover { color: var(--silver); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--display); font-size: 1.75rem; font-weight: 700; letter-spacing: .06em; line-height: 1; }
.brand-name b { color: var(--blue-2); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a {
  color: var(--text); padding: 9px 14px; border-radius: 8px; font-weight: 500; font-size: .95rem;
  transition: background .15s, color .15s;
}
.nav a:hover, .nav a.active { color: var(--silver); background: rgba(255, 255, 255, .06); }
.nav .cart-link { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); }
.nav .cart-link:hover { border-color: var(--blue); }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--blue); color: #fff; font-size: .78rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-count.empty { background: var(--line-2); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 30px 0 38px; color: var(--muted); font-size: .9rem; }
.site-footer .container { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--silver); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #3d8dfa, #2468d6);
  color: #fff;
  box-shadow: 0 6px 22px rgba(47, 129, 247, .32), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .12s, box-shadow .15s, filter .15s, background .15s, border-color .15s;
  text-decoration: none;
}
.btn:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, .input:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.btn.secondary {
  background: linear-gradient(180deg, #1a212b, #131920); color: var(--silver);
  border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.btn.secondary:hover { border-color: #5b6878; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--text); border-color: transparent; padding-left: 12px; padding-right: 12px; }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); color: var(--silver); transform: none; }
.btn.danger { background: transparent; box-shadow: none; color: var(--red); border-color: rgba(240, 97, 109, .4); }
.btn.danger:hover { background: rgba(240, 97, 109, .12); color: #ff8791; }
.btn.small { padding: 8px 14px; font-size: .88rem; }
.btn.block { width: 100%; }
.btn.large { padding: 15px 28px; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--red); }

/* ---------- Panels ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
.panel.tight { padding: 18px 20px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-title { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; font-weight: 600; color: var(--muted); margin: 0 0 16px; }
.panel.accent { border-color: rgba(47, 129, 247, .5); background: linear-gradient(180deg, #0f1c30, #0c1522); }

/* ---------- Flash messages ---------- */
.flash { border-radius: var(--radius-sm); padding: 13px 16px; margin: 18px 0 0; border: 1px solid; font-size: .96rem; }
.flash.success { background: rgba(63, 185, 122, .1); border-color: rgba(63, 185, 122, .4); color: #9be3bf; }
.flash.notice { background: rgba(227, 179, 65, .09); border-color: rgba(227, 179, 65, .4); color: #f0d48a; }
.flash.error { background: rgba(240, 97, 109, .09); border-color: rgba(240, 97, 109, .42); color: #ffa5ad; }
.flash ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.validation-summary-errors { border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 18px; border: 1px solid rgba(240, 97, 109, .42); background: rgba(240, 97, 109, .09); color: #ffa5ad; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 56px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); line-height: .96; margin-bottom: 20px; }
.hero h1 .blue { color: var(--blue-2); }
.hero p.lead { font-size: 1.15rem; max-width: 34em; color: var(--text); margin-bottom: 28px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; margin-left: auto; width: 100%; }
.hero-art svg { width: 100%; height: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .7)) drop-shadow(0 0 60px rgba(47, 129, 247, .25)); }
.hero-facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: .92rem; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--blue-2); flex: none; }

/* ---------- Coin grid ---------- */
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.coin-card {
  display: flex; flex-direction: column; color: inherit;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.coin-card:hover { transform: translateY(-4px); border-color: rgba(47, 129, 247, .65); box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(47, 129, 247, .2); color: inherit; }
.coin-stage {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #1d2733 0%, #0c1117 68%);
  border-bottom: 1px solid var(--line);
}
.coin-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9%; transition: opacity .35s, transform .5s; }
.coin-stage img.back { opacity: 0; transform: scale(.94); }
.coin-card:hover .coin-stage.has-back img.front { opacity: 0; transform: scale(.94); }
.coin-card:hover .coin-stage.has-back img.back { opacity: 1; transform: scale(1); }
.coin-stage .flip-hint { position: absolute; right: 10px; bottom: 10px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: rgba(6, 8, 11, .7); border: 1px solid var(--line); padding: 3px 8px; border-radius: 20px; }
.coin-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.coin-card h3 { margin: 0; font-size: 1.3rem; letter-spacing: .03em; }
.coin-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.price { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--silver); letter-spacing: .02em; }
.price.big { font-size: 2.4rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; font-size: .76rem; font-weight: 600; letter-spacing: .03em; border: 1px solid; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.in, .badge.s-Delivered, .badge.s-Fulfilled, .badge.paid { color: var(--green); border-color: rgba(63, 185, 122, .4); background: rgba(63, 185, 122, .08); }
.badge.low, .badge.backorder, .badge.s-ReadyForPickup, .badge.unpaid { color: var(--amber); border-color: rgba(227, 179, 65, .4); background: rgba(227, 179, 65, .08); }
.badge.out, .badge.s-Cancelled { color: var(--red); border-color: rgba(240, 97, 109, .4); background: rgba(240, 97, 109, .08); }
.badge.s-New { color: var(--blue-2); border-color: rgba(90, 169, 255, .45); background: rgba(47, 129, 247, .1); }
.badge.s-Packed, .badge.neutral { color: #b9c4d0; border-color: var(--line-2); background: rgba(255, 255, 255, .04); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h2 { color: var(--silver); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; }
.step::before { content: "0" counter(step); font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--blue); display: block; margin-bottom: 12px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Product detail ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: radial-gradient(circle at 50% 42%, #212c39 0%, #0b1016 70%); }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7%; opacity: 0; transition: opacity .3s; }
.gallery-main img.active { opacity: 1; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.gallery-thumbs button { flex: 0 0 96px; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; color: var(--muted); font: inherit; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; transition: border-color .15s; }
.gallery-thumbs button img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8px; background: #0c1117; }
.gallery-thumbs button span { display: block; padding: 5px 0 6px; }
.gallery-thumbs button.active { border-color: var(--blue); color: var(--silver); }
.product-info h1 { margin-bottom: 12px; }
.product-info .price-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 0 0 24px; }
.specs div { background: var(--panel); padding: 13px 15px; }
.specs dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.specs dd { margin: 0; color: var(--silver); font-weight: 600; }
.description { white-space: pre-line; margin-bottom: 26px; }
.buy-box { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.qty button { width: 42px; background: transparent; border: 0; color: var(--silver); font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: rgba(255, 255, 255, .07); }
.qty input { width: 54px; text-align: center; background: transparent; border: 0; color: var(--silver); font: inherit; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.pay-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); font-size: .92rem; color: var(--muted); }
.pay-note svg { width: 20px; height: 20px; color: var(--blue-2); flex: none; margin-top: 2px; }
.pay-note strong { color: var(--silver); }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--silver); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; transition: background .12s; }
.table tbody tr.clickable:hover { background: rgba(47, 129, 247, .07); }
.table .right { text-align: right; }
.table-wrap { overflow-x: auto; }
.thumb { width: 54px; height: 54px; border-radius: 8px; object-fit: contain; background: #0c1117; border: 1px solid var(--line); padding: 4px; flex: none; }
.item-cell { display: flex; align-items: center; gap: 14px; }
.item-cell a { color: var(--silver); font-weight: 600; }
.item-cell a:hover { color: var(--blue-2); }

/* ---------- Cart / checkout ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.summary { position: sticky; top: 90px; }
.summary-line { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: .95rem; }
.summary-line .name { color: var(--text); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; color: var(--silver); font-weight: 600; }
.summary-total .price { font-size: 1.9rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .label { display: block; font-size: .84rem; font-weight: 600; color: var(--silver); margin-bottom: 7px; letter-spacing: .01em; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.optional { color: var(--muted); font-weight: 400; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--silver);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #5d6a79; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 129, 247, .22); }
textarea.input { min-height: 110px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238693a2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input.input-validation-error { border-color: var(--red); }
.field-validation-error { display: block; color: #ff8f99; font-size: .82rem; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mpd-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px; border: 1px solid rgba(47, 129, 247, .4); background: rgba(47, 129, 247, .06); border-radius: var(--radius-sm); }
.mpd-fields[hidden], [hidden] { display: none !important; }
.file-drop { display: block; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 14px; background: var(--bg-2); text-align: center; cursor: pointer; transition: border-color .15s; }
.file-drop:hover { border-color: var(--blue); }
.file-drop img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #0c1117; margin-bottom: 10px; }
.file-drop .placeholder { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; border-radius: 8px; background: #0c1117; margin-bottom: 10px; }
.file-drop input[type=file] { width: 100%; font-size: .82rem; color: var(--muted); }

/* ---------- Order confirmation / status ---------- */
.order-hero { text-align: center; padding: 38px 26px; }
.order-hero .check-ring { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(63, 185, 122, .12); border: 1px solid rgba(63, 185, 122, .5); color: var(--green); }
.order-hero .check-ring svg { width: 30px; height: 30px; }
.order-number-box { display: inline-block; margin: 14px auto 8px; padding: 16px 34px 18px; border-radius: var(--radius); border: 1px solid var(--blue); background: #0a1422; box-shadow: 0 0 44px rgba(47, 129, 247, .22); }
.order-number-box .lbl { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.order-number-box .num { font-family: var(--mono); font-size: clamp(1.9rem, 6vw, 2.7rem); font-weight: 700; letter-spacing: .1em; color: var(--silver); line-height: 1.2; }
.write-down { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; padding: 8px 16px; border-radius: 24px; background: rgba(227, 179, 65, .1); border: 1px solid rgba(227, 179, 65, .45); color: #f0d48a; font-weight: 600; font-size: .95rem; }
.write-down svg { width: 18px; height: 18px; }

.tracker { display: grid; grid-template-columns: repeat(5, 1fr); margin: 8px 0 4px; }
.tracker .t-step { position: relative; text-align: center; padding-top: 36px; font-size: .82rem; color: var(--muted); }
.tracker .t-step::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line-2); }
.tracker .t-step:first-child::before { display: none; }
.tracker .t-step::after { content: ""; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line-2); }
.tracker .t-step.done::before, .tracker .t-step.current::before { background: var(--blue); }
.tracker .t-step.done::after { background: var(--blue); border-color: var(--blue); }
.tracker .t-step.current::after { background: var(--blue-2); border-color: #fff; box-shadow: 0 0 0 5px rgba(47, 129, 247, .28); }
.tracker .t-step.done, .tracker .t-step.current { color: var(--silver); }
.tracker .t-step.current { font-weight: 700; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 20px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.kv dd { margin: 0; color: var(--silver); word-break: break-word; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 1px solid var(--line-2); margin-left: 6px; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.timeline .when { font-size: .8rem; color: var(--muted); }

/* ---------- Admin ---------- */
.admin-bar { background: #0a0e13; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .container { display: flex; align-items: center; gap: 6px 22px; min-height: 62px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.admin-bar .nav { flex-wrap: wrap; }
.admin-tag { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-2); border: 1px solid rgba(90, 169, 255, .45); padding: 2px 8px; border-radius: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { display: block; padding: 18px 18px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; transition: border-color .15s, transform .15s; }
a.stat:hover { border-color: var(--blue); transform: translateY(-2px); color: inherit; }
.stat .n { font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--silver); line-height: 1; }
.stat .l { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.stat.hot { border-color: rgba(47, 129, 247, .55); background: linear-gradient(180deg, #0f1c30, #0c1522); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--text); font-size: .88rem; font-weight: 500; }
.tabs a:hover { border-color: #5b6878; color: var(--silver); }
.tabs a.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tabs a .c { opacity: .7; margin-left: 5px; font-size: .8rem; }
.status-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.status-buttons label { position: relative; cursor: pointer; }
.status-buttons input { position: absolute; opacity: 0; }
.status-buttons span { display: block; text-align: center; padding: 11px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 600; font-size: .9rem; color: var(--text); transition: all .15s; }
.status-buttons label:hover span { border-color: #5b6878; }
.status-buttons input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 16px rgba(47, 129, 247, .35); }
.status-buttons input:focus-visible + span { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.login-wrap { max-width: 420px; margin: 9vh auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 48px 0 34px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; margin: 0 auto; order: -1; }
  /* minmax(0, ...) lets wide tables scroll inside their panel instead of stretching the page */
  .product, .split, .two-col { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .summary { position: static; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .site-header .container { gap: 10px; height: 60px; }
  .brand-name { font-size: 1.45rem; }
  .brand-mark { width: 30px; height: 30px; }
  .nav a { padding: 8px 9px; font-size: .88rem; }
  .nav .hide-sm { display: none; }
  .form-grid, .mpd-fields { grid-template-columns: 1fr; }
  .panel { padding: 20px 18px; }
  .specs { grid-template-columns: 1fr; }
  .tracker .t-step { font-size: .68rem; }
  .section { padding: 32px 0; }
  .table th, .table td { padding: 12px 10px; }
  .cart-table .thumb { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.expected { color: var(--blue-2); font-weight: 600; }

/* Custom coins */
.lead { font-size: 1.12rem; max-width: 46em; color: var(--text); }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 32px; }
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.fact-list li:first-child { border-top: 0; padding-top: 0; }
.fact-list svg { width: 20px; height: 20px; color: var(--blue-2); flex: none; margin-top: 2px; }
.fact-list strong { color: var(--silver); display: block; }
.choice-list { display: grid; gap: 10px; }
.choice-list label { position: relative; cursor: pointer; display: block; margin: 0; font-weight: 500; }
.choice-list input { position: absolute; opacity: 0; }
.choice-list span { display: block; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: .95rem; transition: all .15s; }
.choice-list label:hover span { border-color: #5b6878; }
.choice-list input:checked + span { border-color: var(--blue); background: rgba(47, 129, 247, .12); color: var(--silver); box-shadow: inset 0 0 0 1px var(--blue); }
.choice-list input:focus-visible + span { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.badge.q-New { color: var(--blue-2); border-color: rgba(90, 169, 255, .45); background: rgba(47, 129, 247, .1); }
.badge.q-Quoted { color: var(--amber); border-color: rgba(227, 179, 65, .4); background: rgba(227, 179, 65, .08); }
.badge.q-Accepted, .badge.q-Completed { color: var(--green); border-color: rgba(63, 185, 122, .4); background: rgba(63, 185, 122, .08); }
.badge.q-InProduction { color: #b9c4d0; border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.badge.q-Declined { color: var(--red); border-color: rgba(240, 97, 109, .4); background: rgba(240, 97, 109, .08); }
.option-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.option-row:first-child { border-top: 0; }
.option-row.off .option-name { color: var(--muted); text-decoration: line-through; }
.option-name { color: var(--silver); font-weight: 600; flex: 1 1 150px; min-width: 0; overflow-wrap: anywhere; }
.option-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.option-actions form { margin: 0; }
.icon-btn { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; font-size: .9rem; line-height: 1; }
.icon-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--silver); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.artwork-preview { display: block; max-width: 100%; max-height: 420px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #0c1117; }
.option-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; align-items: start; }

/* Home: how the coins are made */
.craft { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.craft-copy p { margin: 0 0 14px; }
.craft-copy p.lead { color: var(--silver); }
.layers { list-style: none; margin: 0; padding: 0; counter-reset: layer; }
.layers li { position: relative; padding: 13px 0 13px 46px; border-top: 1px solid var(--line); counter-increment: layer; color: var(--muted); font-size: .95rem; }
.layers li:first-child { border-top: 0; padding-top: 0; }
.layers li::before { content: counter(layer); position: absolute; left: 0; top: 13px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--blue); color: var(--blue-2); font-family: var(--display); font-weight: 700; }
.layers li:first-child::before { top: 0; }
.layers strong { display: block; color: var(--silver); }
.craft-result { margin-top: 28px; text-align: center; padding: 30px 28px; }
.craft-result p { margin: 0 auto; max-width: 46em; }
.craft-result .tagline { margin-top: 16px; font-family: var(--display); font-size: clamp(1.3rem, 3.2vw, 1.8rem); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 860px) { .craft { grid-template-columns: minmax(0, 1fr); } }

/* Phone header: four menu links have to fit beside the logo */
@media (max-width: 480px) {
  .site-header .container { gap: 6px; }
  .site-header .brand-mark { display: none; }
  .site-header .brand-name { font-size: 1.3rem; }
  .site-header .nav { gap: 2px; }
  .site-header .nav a { padding: 8px 7px; font-size: .85rem; }
  .site-header .nav .cart-link { gap: 5px; }
}
