/* BR3D — JLC-style instant quoting UI */
:root {
  --bg: #0a0a0f;
  --bg-soft: #12121b;
  --bg-card: #16161f;
  --bg-card-2: #1c1c28;
  --border: #2a2a38;
  --border-soft: #20202c;
  --text: #e8e8f0;
  --text-dim: #9a9ab0;
  --text-mute: #6c6c82;
  --accent: #6c5ce7;
  --accent-bright: #a78bfa;
  --accent-soft: rgba(108, 92, 231, 0.15);
  --success: #34d399;
  --danger: #f87171;
  --warn: #fbbf24;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
body { font-family: Inter, system-ui, sans-serif; }

.br3d-root { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Topbar ─────────────────────────────── */
.br3d-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--border-soft);
  background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 40;
}
.br3d-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.br3d-logo-lockup { height: 82px; width: auto; display: block; }
.br3d-logo-icon { height: 36px; width: auto; display: none; }
@media (max-width: 520px) {
  .br3d-logo-lockup { display: none; }
  .br3d-logo-icon { display: block; }
}

.br3d-topbar-right { display: flex; align-items: center; gap: 12px; }
.br3d-langtoggle {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
  background: var(--bg-card);
}
.br3d-langopt {
  cursor: pointer; background: transparent; border: none; color: var(--text-dim);
  padding: 7px 12px; font-weight: 700; font-size: 13px; letter-spacing: .5px;
  transition: background .15s, color .15s;
}
.br3d-langopt:hover { color: var(--text); }
.br3d-langopt.active { background: var(--accent); color: #fff; }

.br3d-cartbtn {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: border-color .15s, transform .1s;
}
.br3d-cartbtn:hover { border-color: var(--accent); }
.br3d-cartbtn:active { transform: scale(.97); }
.br3d-cartbtn b { color: var(--accent-bright); }
.br3d-cart-ico { font-size: 16px; }

.br3d-main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 24px; }

/* ── Hero / upload ──────────────────────── */
.br3d-hero { max-width: 720px; margin: 6vh auto; text-align: center; }
/* English strings are longer; widen the hero so the title/subtitle stay on one
   line, while keeping the dropzone centered at its original width. */
.lang-en .br3d-hero { max-width: 960px; }
.lang-en .br3d-dropzone { max-width: 720px; margin-left: auto; margin-right: auto; }
.br3d-hero-title { font-size: clamp(28px, 5vw, 46px); font-weight: 900; margin: 0 0 12px; line-height: 1.1; }
.br3d-hero-title span { background: linear-gradient(135deg, var(--accent-bright), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.br3d-hero-sub { color: var(--text-dim); font-size: 17px; margin: 0 0 28px; }
.br3d-dropzone {
  border: 2px dashed var(--border); border-radius: 18px; padding: 54px 24px;
  background: var(--bg-soft); cursor: pointer; transition: all .18s;
}
.br3d-dropzone:hover, .br3d-dropzone.dragging { border-color: var(--accent); background: var(--accent-soft); }
.br3d-dropzone.busy { cursor: progress; }
.br3d-drop-ico { font-size: 40px; color: var(--accent-bright); margin-bottom: 10px; }
.br3d-drop-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.br3d-drop-hint { color: var(--text-mute); font-size: 13px; }
.br3d-drop-busy { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; color: var(--text-dim); }
.br3d-hero-trust { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 22px; color: var(--text-mute); font-size: 13px; }

/* ── Workspace (3-col) ──────────────────── */
.br3d-workspace { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(280px, 0.9fr); gap: 20px; align-items: start; }
.br3d-left, .br3d-center, .br3d-right { min-width: 0; }
.br3d-right { position: sticky; top: 84px; }

/* ── Viewer ─────────────────────────────── */
.br3d-viewer { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; touch-action: none; }
.br3d-viewer-canvas { position: absolute; inset: 0; touch-action: none; }
.br3d-viewer-canvas canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: none; }
.br3d-viewer-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-dim); pointer-events: none; padding: 20px; text-align: center; }
.br3d-viewer-msg small { color: var(--text-mute); font-size: 12px; }
.br3d-viewer-ico { font-size: 32px; color: var(--accent-bright); }
.br3d-viewer-hint { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--text-mute); pointer-events: none; }

.br3d-stats { margin-top: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.br3d-stat { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--border-soft); }
.br3d-stat:last-of-type { border-bottom: none; }
.br3d-stat span { color: var(--text-dim); }
.br3d-stat b { font-weight: 600; }
.br3d-stat-warn { margin-top: 8px; color: var(--warn); font-size: 12px; }

/* ── Steps / config ─────────────────────── */
.br3d-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.br3d-step-h { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.br3d-step-n { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-bright); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

.br3d-techtabs { display: flex; flex-wrap: wrap; gap: 8px; }
.br3d-techtab { background: var(--bg-card-2); border: 1px solid var(--border); color: var(--text-dim); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.br3d-techtab:hover { border-color: var(--accent); color: var(--text); }
.br3d-techtab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.br3d-techtab small { background: rgba(255,255,255,.18); border-radius: 999px; padding: 0 6px; font-size: 11px; }

.br3d-matlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.br3d-matcard { position: relative; text-align: left; color: var(--text); background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; transition: all .15s; display: flex; flex-direction: column; gap: 3px; }
.br3d-matcard:hover { border-color: var(--accent); }
.br3d-matcard.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.br3d-matcard.disabled { opacity: .45; cursor: not-allowed; }
.br3d-matname { font-weight: 700; font-size: 14px; }
.br3d-mattech { font-size: 12px; color: var(--text-mute); }
.br3d-badge { margin-top: 6px; align-self: flex-start; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--success); background: rgba(52,211,153,.12); padding: 2px 7px; border-radius: 6px; }
.br3d-badge.muted { color: var(--text-mute); background: rgba(255,255,255,.06); }

.br3d-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.br3d-swatch { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; font-size: 13px; color: var(--text-dim); transition: all .15s; }
.br3d-swatch:hover { border-color: var(--accent); color: var(--text); }
.br3d-swatch.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.br3d-swatch-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.br3d-craft-note { margin: 10px 0 0; font-size: 12px; color: var(--accent-bright); }

.br3d-finish { display: flex; flex-direction: column; gap: 14px; }
.br3d-finish-crafts { display: flex; flex-wrap: wrap; gap: 8px; }
.br3d-finish-craft { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 14px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-dim); transition: all .15s; }
.br3d-finish-craft:hover { border-color: var(--accent); color: var(--text); }
.br3d-finish-craft.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.br3d-finish-group { display: flex; flex-direction: column; gap: 8px; }
.br3d-finish-label { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.br3d-finish-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.br3d-finish-opt { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13px; color: var(--text-dim); transition: all .15s; }
.br3d-finish-opt:hover { border-color: var(--accent); color: var(--text); }
.br3d-finish-opt.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

.br3d-draw { margin-top: 8px; }
.br3d-draw-has { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.br3d-draw-file { font-size: 13px; color: var(--text); }
.br3d-draw-btn { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13px; color: var(--text-dim); transition: all .15s; }
.br3d-draw-btn:hover { border-color: var(--accent); color: var(--text); }
.br3d-draw-cta { display: inline-block; border-style: dashed; }
.br3d-draw-err { margin-top: 6px; font-size: 12px; color: #ff6b6b; }

.br3d-delivery-wrap { display: flex; flex-direction: column; gap: 8px; }
.br3d-delivery-hint { margin: 0; font-size: 12px; color: var(--text-dim); }
.br3d-delivery { display: flex; flex-wrap: wrap; gap: 10px; }
.br3d-delopt { flex: 1; min-width: 110px; color: var(--text); background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: all .15s; }
.br3d-delopt:hover { border-color: var(--accent); }
.br3d-delopt.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.br3d-delopt b { font-size: 15px; }
.br3d-delopt small { font-size: 11px; color: var(--text-mute); }
.br3d-delopt-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); font-weight: 700; }

.br3d-qtygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.br3d-field { display: flex; flex-direction: column; gap: 6px; }
.br3d-field span { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.br3d-field input, .br3d-field select { background: var(--bg-card-2); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-family: inherit; }
.br3d-field input:focus, .br3d-field select:focus { outline: none; border-color: var(--accent); }

/* ── Price panel ────────────────────────── */
.br3d-price { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.br3d-price-head { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.br3d-price-big { font-size: 38px; font-weight: 900; margin: 6px 0 2px; transition: opacity .2s; }
.br3d-price-big.stale { opacity: .5; }
.br3d-price-sub { color: var(--text-mute); font-size: 13px; margin-bottom: 14px; }
.br3d-price-empty, .br3d-price-error { color: var(--text-dim); font-size: 14px; padding: 14px 0; display: flex; align-items: center; gap: 8px; }
.br3d-price-error { color: var(--danger); }
.br3d-price-rows { border-top: 1px solid var(--border-soft); padding-top: 12px; margin-bottom: 14px; }
.br3d-prow { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--text-dim); }
.br3d-prow span:last-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.br3d-prow.wrap span:last-child { white-space: normal; text-align: right; overflow-wrap: anywhere; }
.br3d-draw-list { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.br3d-prow.total { border-top: 1px solid var(--border-soft); margin-top: 6px; padding-top: 10px; font-size: 16px; }
.br3d-prow.total span { color: var(--text); font-weight: 800; }
.br3d-price-recalc { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-mute); margin-top: 8px; }
.br3d-price-note { color: var(--text-mute); font-size: 12px; line-height: 1.4; margin: 0 0 12px; }

/* ── Buttons ────────────────────────────── */
.br3d-btn { background: var(--bg-card-2); border: 1px solid var(--border); color: var(--text); padding: 11px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; }
.br3d-btn:hover:not(:disabled) { border-color: var(--accent); }
.br3d-btn:disabled { opacity: .55; cursor: not-allowed; }
.br3d-btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-bright)); border: none; color: #fff; }
.br3d-btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.br3d-btn-primary.ok { background: var(--success); }
.br3d-btn.ghost { background: transparent; }
.br3d-btn.block { width: 100%; }
.br3d-link { background: none; border: none; color: var(--accent-bright); cursor: pointer; font-size: 13px; font-weight: 600; padding: 10px 0; font-family: inherit; text-decoration: none; }
.br3d-link:hover { text-decoration: underline; }
.br3d-link-danger { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 12px; font-family: inherit; padding: 0; }
.br3d-link-danger:hover { text-decoration: underline; }

/* ── Cart drawer ────────────────────────── */
.br3d-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.br3d-overlay.show { opacity: 1; pointer-events: auto; }
.br3d-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 90vw; background: var(--bg-soft); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .25s ease; z-index: 51; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.br3d-drawer.show { transform: translateX(0); }
.br3d-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border-soft); }
.br3d-drawer-head h3 { margin: 0; font-size: 18px; }
.br3d-x { background: none; border: none; color: var(--text-dim); font-size: 16px; cursor: pointer; }
.br3d-drawer-empty { padding: 40px 20px; text-align: center; color: var(--text-mute); }
.br3d-drawer-items { flex: 1; overflow-y: auto; padding: 8px 0; }
.br3d-citem { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border-soft); }
.br3d-citem-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.br3d-citem-main strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br3d-citem-meta { font-size: 12px; color: var(--text-mute); }
.br3d-citem-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.br3d-citem-right span { font-weight: 700; }
.br3d-drawer-foot { padding: 18px 20px; border-top: 1px solid var(--border-soft); }
.br3d-drawer-total { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 4px; }
.br3d-drawer-total b { color: var(--accent-bright); }
.br3d-drawer-note { color: var(--text-mute); font-size: 12px; display: block; margin-bottom: 12px; }
.br3d-drawer-actions { display: flex; gap: 10px; }
.br3d-drawer-actions .br3d-btn { flex: 1; }

/* ── Checkout ───────────────────────────── */
.br3d-checkout { max-width: 900px; margin: 0 auto; }
.br3d-checkout h2 { margin: 8px 0 4px; }
.br3d-checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.br3d-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.br3d-card h4 { margin: 0 0 14px; }
.br3d-checkout-lines { margin-top: 14px; border-top: 1px solid var(--border-soft); padding-top: 10px; }
.br3d-ship-details { margin: 12px 0; }
.br3d-ship-details summary { cursor: pointer; color: var(--text-dim); font-size: 13px; }
.br3d-delivery-est { margin: 10px 0 4px; font-size: 13px; color: var(--text-dim); }
.br3d-ship-select { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.br3d-ship-select-label { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.br3d-ship-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all .15s; }
.br3d-ship-opt:hover { border-color: var(--accent); }
.br3d-ship-opt.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.br3d-ship-opt-name { flex: 1; font-size: 13px; }
.br3d-ship-opt-price { font-weight: 700; font-size: 14px; }
.br3d-muted { color: var(--text-mute); font-size: 13px; }
.br3d-muted.center { text-align: center; margin-top: 10px; }

/* ── Toast / misc ───────────────────────── */
.br3d-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); z-index: 60; max-width: 90vw; }
.br3d-toast.error { border-color: var(--danger); color: var(--danger); }

.br3d-spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent-bright); border-radius: 50%; display: inline-block; animation: br3d-spin .7s linear infinite; vertical-align: middle; }
.br3d-spinner.sm { width: 14px; height: 14px; border-width: 2px; }
@keyframes br3d-spin { to { transform: rotate(360deg); } }

/* ── Checkout form ──────────────────────── */
.br3d-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
.br3d-form-grid .br3d-col2 { grid-column: 1 / -1; }
.br3d-form-grid .br3d-field input,
.br3d-form-grid .br3d-field select,
.br3d-form-grid .br3d-field textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg-card-2); border: 1px solid var(--border); color: var(--text);
  font-size: 14px; outline: none; font-family: inherit; box-sizing: border-box;
}
.br3d-form-grid .br3d-field textarea { resize: vertical; }
.br3d-form-grid .br3d-field input:focus,
.br3d-form-grid .br3d-field select:focus,
.br3d-form-grid .br3d-field textarea:focus { border-color: var(--accent); }

/* ── CNC / sheet-metal quoter ───────────── */
.br3d-modetabs { justify-content: center; margin: 4px 0 8px; }
.br3d-cnc .br3d-card.br3d-cnc-card { text-align: left; margin: 0 0 16px; }
.br3d-cnc-card .br3d-btn.block { width: 100%; margin-top: 4px; }
.br3d-cnc-card .br3d-link { display: block; margin: 6px auto 0; }
.br3d-cnc-steps { text-align: left; margin: 0 0 16px; }
.br3d-cnc-steps .br3d-finish-group { margin-top: 12px; }
.br3d-cnc-hint { font-size: 13px; margin: 10px 0 0; }
.br3d-cnc-extras { display: flex; gap: 24px; flex-wrap: wrap; }
.br3d-cnc-extras .br3d-check { margin: 0; }
.br3d-cnc-steps .br3d-dropzone { margin: 0; }

/* Invoice checkbox + VIES status */
.br3d-check {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 14px; color: var(--text); font-weight: 600; margin: 4px 0 14px;
}
.br3d-check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.br3d-invoice-grid { margin-top: 4px; }
.br3d-vies { font-size: 13px; line-height: 1.5; }
.br3d-vies-checking { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); }
.br3d-vies-ok { color: var(--success); font-weight: 600; }
.br3d-vies-bad { color: #ff6b6b; font-weight: 600; }
.br3d-prow.br3d-rc { color: var(--success); font-weight: 600; }

.br3d-confirm { text-align: center; max-width: 480px; margin: 40px auto; }
.br3d-confirm-ico {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 32px; font-weight: 700;
  background: var(--accent-soft); color: var(--success);
}
.br3d-confirm-num {
  margin: 18px 0; padding: 14px; border-radius: var(--radius-sm);
  background: var(--bg-card-2); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 13px; line-height: 1.8;
}
.br3d-confirm-num b { color: var(--text); font-size: 18px; letter-spacing: 0.5px; }

/* ── Revision note + acceptance ──────────── */
.br3d-revision-note {
  margin: 12px 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--text-dim); font-size: 12.5px; line-height: 1.55;
}
.br3d-revision-note b { color: var(--text); }
.br3d-accept { margin: 4px 0 12px; align-items: flex-start; font-weight: 500; }
.br3d-accept span { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.br3d-link.inline {
  display: inline; padding: 0; border: 0; background: none; color: var(--accent-bright);
  font: inherit; cursor: pointer; text-decoration: underline;
}
.br3d-btn.sm { padding: 8px 14px; font-size: 13px; }

/* ── Footer ──────────────────────────────── */
.br3d-footer {
  margin-top: auto; border-top: 1px solid var(--border-soft);
  background: rgba(10, 10, 15, 0.6); padding: 18px 24px;
}
.br3d-footer-inner {
  max-width: 1320px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.br3d-footer-brand { color: var(--text-mute); font-size: 13px; }
.br3d-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.br3d-footer-links .br3d-link { font-size: 13px; }

/* ── Legal modal ─────────────────────────── */
.br3d-legal-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.br3d-legal-modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%; max-width: 760px; max-height: 86vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.br3d-legal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--border-soft);
}
.br3d-legal-head h2 { margin: 0; font-size: 18px; }
.br3d-legal-body { padding: 8px 22px 24px; overflow-y: auto; }
.br3d-legal-body h4 { margin: 20px 0 6px; font-size: 15px; color: var(--text); }
.br3d-legal-body p, .br3d-legal-body li { color: var(--text-dim); font-size: 13.5px; line-height: 1.65; }
.br3d-legal-body ul { padding-left: 20px; margin: 6px 0; }
.br3d-legal-body b { color: var(--text); }

/* ── Cookie banner ───────────────────────── */
.br3d-cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 55;
  max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: 16px;
  justify-content: space-between; flex-wrap: wrap;
  background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow);
}
.br3d-cookie-banner span { color: var(--text-dim); font-size: 13px; line-height: 1.5; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 1080px) {
  .br3d-workspace { grid-template-columns: 1fr 1fr; }
  .br3d-right { grid-column: 1 / -1; position: static; }
}
@media (max-width: 720px) {
  .br3d-main { padding: 16px; }
  .br3d-workspace { grid-template-columns: 1fr; }
  .br3d-checkout-grid { grid-template-columns: 1fr; }
  .br3d-qtygrid { grid-template-columns: 1fr; }
  .br3d-footer-inner { flex-direction: column; align-items: flex-start; }
}
