/* Shared styles for the Shop, Account and Request pages (same tokens as the homepage). */
:root {
  --bg: #05070d; --panel: rgba(14, 20, 36, 0.72); --line: rgba(148, 178, 255, 0.14);
  --text: #e8eefb; --muted: #9aa8c4; --cyan: #22d3ee; --green: #34d399; --violet: #a78bfa;
  --danger: #f87171; --accent: var(--cyan); --radius: 18px; --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: radial-gradient(1200px 600px at 80% -10%, rgba(34,211,238,.10), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(167,139,250,.08), transparent 60%), var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, sans-serif; min-height: 100vh; overflow-x: hidden; }
h1, h2, h3, .brand { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.02em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.glass { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.eyebrow { color: var(--accent); font: 600 13px/1 Inter; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 17px; max-width: 640px; }
.muted { color: var(--muted); }

header { position: sticky; top: 0; z-index: 10; background: rgba(5,7,13,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; }
.brand small { display: block; font: 500 10px/1 Inter; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.nav ul { display: flex; gap: 26px; list-style: none; font-size: 14px; color: var(--muted); align-items: center; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--text); }
.brand .logo { height: 46px; width: auto; display: block; }

/* 3D blueprint background (js/rack3d.js) */
#bg3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 72% 38%, transparent 30%, rgba(5,7,13,.72) 100%); }
main, footer { position: relative; z-index: 1; }
.bg-hint { position: fixed; right: 18px; bottom: 16px; z-index: 5; margin: 0; padding: 8px 14px; border-radius: 99px; font-size: 12px; color: var(--muted); background: rgba(5,7,13,.7); border: 1px solid var(--line); backdrop-filter: blur(8px); pointer-events: none; transition: opacity 1s; }
.bg-hint.gone { opacity: 0; }
.cart-pill { display: inline-flex; align-items: center; gap: 6px; }
.cart-pill b:empty { display: none; }
.cart-pill b { background: var(--accent); color: #031018; border-radius: 99px; font-size: 11px; padding: 1px 7px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 600 15px Inter; border: 1px solid var(--line); cursor: pointer; background: transparent; color: var(--text); transition: transform .2s, opacity .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #031018; border-color: transparent; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

main { padding: 56px 0 96px; }
.page-head { margin-bottom: 36px; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; }

label { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5,7,13,.6); color: var(--text); font: 15px Inter; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 110px; resize: vertical; }
.field-error { color: var(--danger); font-size: 12px; }
.invalid input, .invalid select, .invalid textarea { border-color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.notice { padding: 14px 16px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line); }
.notice.ok { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); color: #b6f3dc; }
.notice.err { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); color: #fecaca; }
[hidden] { display: none !important; }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .nav ul li.hide-sm { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 8px; }
  .nav ul { gap: 16px; width: 100%; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
  .brand small { display: none; }
}