/* ==========================================================================
   Wall Street Stackers theme
   --------------------------------------------------------------------------
   Black, gold and Geist. Approved concept: claude.ai/artifact/5ZNvezt2bSSAYvuHrAdvVE

   Loaded AFTER every legacy stylesheet in main.html. All rules are scoped to
   `body.wss`, which out-ranks the legacy CSS and per-page <style> blocks.

   Ground rules for editing:
   - Never put `text-transform` on <label>, or on buttons inside
     .form_modal-content: form JS matches fields by innerText, and innerText
     reflects text-transform.
   - Never hide elements that JS toggles with inline style.display.
   - Saved user colour sets (theme.css) write --color-* onto :root. They are
     re-mapped on <body> below, which shadows :root for the whole page.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
body.wss {
  /* Surfaces */
  --t-ink: #06070a;
  --t-ink-2: #08090d;
  --t-panel: #0f1218;
  --t-panel-2: #13161d;
  --t-panel-3: #1a1e26;
  --t-line: rgba(255, 255, 255, 0.07);
  --t-line-2: rgba(255, 255, 255, 0.11);
  --t-line-3: rgba(255, 255, 255, 0.18);

  /* Text */
  --t-text: #edeff3;
  --t-text-2: #a3abb9;
  --t-text-3: #7d8696;

  /* Gold + metals + P/L */
  --t-amber: #f5b941;
  --t-amber-2: #ffd77a;
  --t-amber-ink: #1a1204;
  --t-amber-soft: rgba(245, 185, 65, 0.1);
  --t-amber-line: rgba(245, 185, 65, 0.4);
  --t-gold-grad: linear-gradient(180deg, #ffd77a, #f0ad3a);
  --t-gold-text: linear-gradient(180deg, #fff6dc 0%, #ffd77a 38%, #e9a93a 68%, #b8781d 100%);
  --t-glow: 0 14px 44px -12px rgba(245, 185, 65, 0.75);
  --t-au: #f5b941;
  --t-ag: #dfe4ec;
  --t-pt: #8fa3c2;
  --t-up: #3ddc97;
  --t-up-soft: rgba(61, 220, 151, 0.1);
  --t-down: #ff6b6b;
  --t-down-soft: rgba(255, 107, 107, 0.1);

  /* Type */
  --t-sans: 'Geist', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --t-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Geometry + spacing (uikit sets html to 62.5%, so 1rem = 10px on desktop) */
  --t-r: 10px;
  --t-r-2: 16px;
  --t-wrap: 128rem;
  --t-gutter: 3.2rem;
  --t-s1: 0.4rem; --t-s2: 0.8rem; --t-s3: 1.2rem; --t-s4: 1.6rem; --t-s5: 2.4rem;
  --t-s6: 3.2rem; --t-s7: 4.8rem; --t-s8: 6.4rem; --t-s9: 9.6rem;
  --t-control: 4.4rem;
  --t-control-sm: 3.6rem;
  --t-control-lg: 5.4rem;
  --t-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
  --t-side: 26rem;

  /* Legacy variables, re-mapped so un-themed legacy rules land on this palette */
  --color-main: #f5b941;
  --color-main-light: rgba(245, 185, 65, 0.1);
  --color-sub: #f5b941;
  --color-sub-light: #1a1e26;
  --color-sub-lighter: #13161d;
  --color-text: #a3abb9;
  --color-gray: #7d8696;
  --color-light: rgba(255, 255, 255, 0.07);
  --color-light-gray: #7d8696;
  --color-bg: #06070a;
  --color-white: #0f1218;
  --color-white-light: #13161d;
  --color-success: #3ddc97;
  --color-success-bg: rgba(61, 220, 151, 0.1);
  --color-error: #ff6b6b;
  --color-error-bg: rgba(255, 107, 107, 0.1);
  --color-sub-root: #f5b941;
  --color-gold: #f5b941;
  --color-silver: #dfe4ec;
  --color-platinum: #8fa3c2;
  --font-base: var(--t-sans);

  margin: 0;
  background: var(--t-ink);
  color: var(--t-text-2);
  font-family: var(--t-sans);
  font-size: 1.5rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  min-height: 100vh;
}
@media screen and (max-width: 700px) { body.wss { --t-gutter: 2rem; } }

.wss ::selection { background: rgba(245, 185, 65, 0.3); color: #fff; }

/* ---------- 2. Base ---------- */
/* uikit sets a font on `*`; make everything inherit so mono containers stay mono */
.wss * { font-family: inherit; }
.wss input, .wss select, .wss textarea, .wss button { font-family: var(--t-sans); }
/* uikit forces p/span/strong to 1.6rem; nested spans should follow their parent */
.wss h1 span, .wss h2 span, .wss h3 span, .wss h4 span, .wss td span, .wss th span, .wss dd span, .wss dt span,
.wss .btn span, .wss label span { font-size: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; }
.wss h1, .wss h2, .wss h3, .wss h4, .wss h5, .wss h6 { color: var(--t-text); font-weight: 600; letter-spacing: -0.02em; }
.wss h1 { font-size: 4.4rem; line-height: 1.08; letter-spacing: -0.035em; }
.wss h2 { font-size: 3rem; line-height: 1.12; letter-spacing: -0.03em; }
.wss h3 { font-size: 1.9rem; line-height: 1.3; }
.wss h4 { font-size: 1.6rem; }
.wss h5 { font-size: 1.4rem; font-weight: 500; }
.wss p, .wss span, .wss strong, .wss li, .wss dd, .wss dt { color: inherit; }
.wss p { font-size: 1.5rem; color: var(--t-text-2); }
.wss strong { color: var(--t-text); font-weight: 600; }
.wss a { color: var(--t-amber); font-weight: 500; padding-bottom: 0; transition: color 0.15s ease; }
.wss a:hover { color: var(--t-amber-2); }
.wss img { max-width: 100%; }
.wss :focus-visible { outline: 2px solid var(--t-amber); outline-offset: 2px; }
.wss hr { border: 0; border-top: 1px solid var(--t-line); }
.wss .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wss .gold-text { background: var(--t-gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.wss .wss-page { width: 100%; }
/* uikit sizes .container as 72-92% of the viewport; use one consistent column instead */
.wss .container, .wss .container--narrow { width: 100%; max-width: var(--t-wrap); margin-left: auto; margin-right: auto; padding-left: var(--t-gutter); padding-right: var(--t-gutter); }

/* ---------- 3. Buttons ----------
   One definition: every button is the same height with its label centred. */
.wss .btn,
.wss input[type="submit"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  height: var(--t-control);
  min-height: var(--t-control);
  padding: 0 2rem;
  margin: 0;
  font-family: var(--t-sans);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: var(--t-r);
  border: 1px solid var(--t-line-3);
  background: rgba(255, 255, 255, 0.02);
  color: var(--t-text);
  box-shadow: none;
  opacity: 1;
  transform: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.wss .btn:hover { opacity: 1; border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.wss .btn svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* Primary: gold */
.wss .btn--sub,
.wss input[type="submit"].btn {
  background: var(--t-gold-grad);
  border-color: transparent;
  color: var(--t-amber-ink);
  box-shadow: 0 0 0 1px rgba(255, 215, 122, 0.55), var(--t-glow);
}
.wss .btn--sub:hover,
.wss input[type="submit"].btn:hover { background: linear-gradient(180deg, #ffe29a, #f5b941); color: var(--t-amber-ink); border-color: transparent; }

/* Secondary */
.wss .btn--main { background: rgba(255, 255, 255, 0.02); border-color: var(--t-line-3); color: var(--t-text); }
.wss .btn--main:hover { background: var(--t-amber-soft); border-color: var(--t-amber-line); color: var(--t-amber-2); }

.wss .btn--sm { height: var(--t-control-sm); min-height: var(--t-control-sm); padding: 0 1.4rem; font-size: 1.3rem; }
.wss .btn--lg { height: var(--t-control-lg); min-height: var(--t-control-lg); padding: 0 2.8rem; font-size: 1.55rem; border-radius: 14px; }

.wss .btn.active { background: var(--t-amber-soft); border-color: var(--t-amber-line); color: var(--t-amber-2); }
.wss .btn.inactive { opacity: 0.55; }
.wss button:disabled, .wss button[disabled], .wss .btn:disabled {
  background: var(--t-panel-2); color: var(--t-text-3); border: 1px solid var(--t-line); box-shadow: none; cursor: not-allowed;
}

/* Small actions (Edit / Delete / Sell) */
.wss .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.2rem;
  padding: 0 1.3rem;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid var(--t-line-2);
  background: transparent;
  color: var(--t-text);
}
.wss .tag:hover { border-color: var(--t-amber-line); color: var(--t-amber-2); background: var(--t-amber-soft); }
.wss .tag > i.im { display: none; }

/* Shared label + panel helpers used by kept legacy sections */
.wss .t-num, .wss .t-mono { font-family: var(--t-mono); font-variant-numeric: tabular-nums; }
.wss .t-panel { background: var(--t-panel); border: 1px solid var(--t-line-2); border-radius: var(--t-r-2); }

/* ---------- 6. Flash messages ---------- */
.wss .alert, .wss .alert > .alert__message { background: var(--t-panel); color: var(--t-text); font-size: 1.4rem; font-weight: 500; }
.wss .alert {
  max-width: calc(var(--t-wrap) - 2 * var(--t-gutter));
  margin: var(--t-s4) auto 0;
  width: calc(100% - 2 * var(--t-gutter));
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--t-line-2);
  border-left: 2px solid var(--t-amber);
  border-radius: var(--t-r);
  text-align: left;
  gap: 1.6rem;
}
.wss .alert.alert--success { border-left-color: var(--t-up); }
.wss .alert.alert--error { border-left-color: var(--t-down); }
.wss .alert.alert--success, .wss .alert.alert--success > .alert__message,
.wss .alert.alert--error, .wss .alert.alert--error > .alert__message { background: var(--t-panel); color: var(--t-text); }
.wss .alert > .alert__close { color: var(--t-text-3); background: transparent; border: 0; font-size: 1.6rem; line-height: 1; }
.wss .alert > .alert__close:hover { color: var(--t-text); }

/* ---------- 7. Surfaces ---------- */
.wss .card, .wss .dashcard {
  background: var(--t-panel);
  border: 1px solid var(--t-line);
  border-radius: var(--t-r-2);
  box-shadow: none;
  color: var(--t-text-2);
}
.wss .card.card--dark { background: var(--t-panel); }
.wss .card__header { border-bottom: 1px solid var(--t-line); color: var(--t-text); }

/* Generic terminal panel */
.wss .t-panel {
  position: relative;
  background: var(--t-panel);
  border: 1px solid var(--t-line-2);
  border-radius: var(--t-r-2);
  box-shadow: var(--t-shadow);
}
.wss .t-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  height: 4.8rem;
  padding: 0 var(--t-s5);
  border-bottom: 1px solid var(--t-line);
  font-family: var(--t-mono);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-text-3);
}

/* ---------- 8. Forms ---------- */
.wss .form__field > label, .wss .form__label, .wss form label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--t-text-2);
}
.wss input.input[type='text'], .wss input.input[type='email'], .wss input.input[type='password'],
.wss input.input[type='number'], .wss input.input[type='date'], .wss input.input[type='url'],
.wss input[type='text'], .wss input[type='email'], .wss input[type='password'], .wss input[type='number'],
.wss input[type='date'], .wss input[type='url'], .wss input[type='search'], .wss input[type='tel'],
.wss select, .wss select.input, .wss textarea, .wss textarea.input {
  width: 100%;
  min-width: 0;
  min-height: var(--t-control);
  padding: 1rem 1.2rem;
  font-family: var(--t-sans);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--t-text);
  background: var(--t-ink-2);
  border: 1px solid var(--t-line-2);
  border-radius: var(--t-r);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wss select, .wss select.input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 3.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a3afc2' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
}
.wss select option { background: var(--t-panel); color: var(--t-text); }
.wss input::placeholder, .wss textarea::placeholder { color: var(--t-text-3); opacity: 1; }
.wss input:focus, .wss select:focus, .wss textarea:focus,
.wss input.input:focus, .wss textarea.input:focus {
  border-color: var(--t-amber);
  box-shadow: 0 0 0 3px rgba(242, 181, 68, 0.15);
  background: var(--t-ink-2);
}
.wss textarea { min-height: 12rem; resize: vertical; }
.wss input[type='file'] {
  width: 100%;
  min-height: var(--t-control);
  padding: 0.6rem;
  font-size: 1.3rem;
  color: var(--t-text-2);
  background: var(--t-ink-2);
  border: 1px dashed var(--t-line-3);
  border-radius: var(--t-r);
}
.wss input[type='file']::file-selector-button {
  height: 3.2rem;
  margin-right: 1.2rem;
  padding: 0 1.2rem;
  font-weight: 600;
  color: var(--t-text);
  background: var(--t-panel-3);
  border: 1px solid var(--t-line-2);
  border-radius: var(--t-r);
  cursor: pointer;
}
.wss input[type='checkbox'], .wss input[type='radio'] { accent-color: var(--t-amber); width: 1.6rem; height: 1.6rem; vertical-align: middle; }
.wss input[type='date']::-webkit-calendar-picker-indicator { filter: invert(0.75); cursor: pointer; }
.wss .form__error, .wss .errorlist, .wss .error { color: var(--t-down); font-size: 1.3rem; list-style: none; }
.wss .helptext { display: block; color: var(--t-text-3); font-size: 1.25rem; margin-top: 0.4rem; }
.wss #id_weight_unit > div label { color: var(--t-text); display: inline-flex; align-items: center; gap: 0.6rem; }

/* Inline search bar used across pages */
.wss .hero-section__search > .form {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: var(--t-ink-2);
  border: 1px solid var(--t-line-2);
  border-radius: var(--t-r);
}
.wss .hero-section__search > .form:focus-within { border-color: var(--t-amber); }
.wss .hero-section__search > .form .form__field { flex: 1; margin: 0; }
.wss .hero-section__search > .form label { position: absolute; left: -9999px; }
.wss .hero-section__search > .form input.input--text {
  height: var(--t-control-lg);
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 1.6rem;
  font-size: 1.5rem;
}
.wss .hero-section__search > .form input.input--text:focus { box-shadow: none; border: 0; }
.wss .hero-section__search > .form .btn {
  height: auto;
  min-height: var(--t-control-lg);
  border-radius: 0 var(--t-r) var(--t-r) 0;
  padding: 0 2.4rem;
}
@media screen and (max-width: 600px) {
  .wss .hero-section__search > .form { flex-direction: column; }
  .wss .hero-section__search > .form .btn { width: 100%; border-radius: 0 0 var(--t-r) var(--t-r); }
}

/* ---------- 11. Retire the ocean theme ---------- */
.wss .bg-wrapper { background: none; min-height: 0; }
.wss dotlottie-player, .wss .lottie-jelly, .wss .lottie-bubbles, .wss .lottie-strange,
.wss .footer-overlay, .wss .gorillascuba, .wss .floating-logo { display: none !important; }
.wss .section-curve-top, .wss .section-curve-top.index-curve, .wss .tool-section-curve, .wss .footer-transition, .wss .section-curve-top-dark { display: none; }

/* ---------- 13. Item grids (metal pages, search, sales) ---------- */
.wss .projects { padding-bottom: var(--t-s4); }
.wss .zero-section { height: auto; min-height: 0; padding: var(--t-s5) 0 0; background: var(--t-ink); color: var(--t-text-2); }
.wss .zero-section .container { max-width: var(--t-wrap); padding: 0 var(--t-gutter); }
.wss .zero-section__date-options { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 0.8rem; }
.wss .zero-section__date-options .form__field { margin: 0; }
.wss .zero-section__date-options .btn { height: var(--t-control-sm); min-height: var(--t-control-sm); padding: 0 1.4rem; font-size: 1.3rem; font-weight: 500; background: transparent; color: var(--t-text-2); border: 1px solid var(--t-line-2); }
.wss .zero-section__date-options .btn:hover { color: var(--t-text); border-color: var(--t-text-3); background: transparent; }
.wss #thisMonth, .wss #lastMonth, .wss #specDate { font-size: 1.3rem; }

.wss .hero-section, .wss .projects > .hero-section {
  height: auto;
  min-height: 0;
  padding: var(--t-s7) 0;
  background: var(--t-ink);
  box-shadow: none;
  border-bottom: 1px solid var(--t-line);
  text-align: left;
}
.wss .hero-section .container { max-width: var(--t-wrap); padding: 0 var(--t-gutter); }
.wss .hero-section__box { margin-bottom: var(--t-s5); }
.wss .hero-section__box > h2, .wss .hero-section__box > h2 > span,
.wss .projects .hero-section__box > h2, .wss .projects .hero-section__box > h2 > span {
  font-family: var(--t-sans);
  font-size: clamp(3.2rem, 4.4vw, 5.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--t-text);
  text-transform: none;
  text-align: left;
  background: none;
}
.wss .hero-section__box > h2 > span, .wss .projects .hero-section__box > h2 > span { color: var(--t-amber); font-style: normal; }
.wss .hero-section__search { max-width: 72rem; margin: 0; }
.wss .projectsList { margin-top: var(--t-s6); }
.wss .projectsList > .container { max-width: var(--t-wrap); padding: 0 var(--t-gutter); }
.wss .grid.grid--three { display: grid; grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr)); gap: var(--t-s4); margin: 0; }
.wss .grid--three > .column { min-width: 0; margin: 0; flex-basis: auto; }

.wss .card.project {
  position: relative;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--t-panel);
  border: 1px solid var(--t-line);
  border-radius: var(--t-r-2);
  box-shadow: none;
  transform: none;
  transition: border-color 0.15s ease;
}
.wss .card.project:hover { transform: none; border: 1px solid var(--t-line-3); box-shadow: none; }
.wss .card.project > a.project { display: flex; flex-direction: column; flex: 1; padding: 0; color: inherit; }
.wss .unique_identifier {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  right: auto;
  z-index: 2;
  margin: 0;
  display: inline-flex;
  align-items: center;
  height: 2.2rem;
  padding: 0 0.8rem;
  font-family: var(--t-mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--t-amber);
  background: var(--t-ink);
  border: 1px solid var(--t-amber-line);
  border-radius: var(--t-r);
}
/* Item photo: circular crop on a dark plate (the default coin photo has white corners) */
.wss .card.project > a.project::before {
  content: "";
  display: block;
  height: 0;
}
.wss .project__thumbnail.metal__thumbnail {
  width: 15rem;
  height: 15rem;
  aspect-ratio: 1;
  margin: var(--t-s6) auto var(--t-s4);
  border: 1px solid var(--t-line-2);
  border-radius: 50%;
  background-color: var(--t-ink-2);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 0 0 6px var(--t-panel), 0 0 0 7px var(--t-line);
  filter: none;
}
.wss .card.project .card__body { border-top: 1px solid var(--t-line); }
.wss .card.project:hover .project__thumbnail { filter: none; }
.wss .card.project .card__body { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; padding: var(--t-s4) var(--t-s5) var(--t-s5); }
.wss .project__title { font-family: var(--t-sans); font-size: 1.5rem; font-weight: 500; line-height: 1.4; color: var(--t-text-2); white-space: normal; }
.wss .card.project .project__title.wss-name { font-size: 1.9rem; font-weight: 600; line-height: 1.25; color: var(--t-text); letter-spacing: -0.015em; }
.wss .card.project .project__title.wss-year { font-family: var(--t-mono); font-size: 1.2rem; font-weight: 500; letter-spacing: 0.08em; color: var(--t-text-3); }
.wss .profit_plus, .wss .profit_minus, .wss .profit_neutral {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  height: 2.6rem;
  margin: 0.8rem 0 0.4rem;
  padding: 0 0.9rem;
  font-family: var(--t-mono);
  font-size: 1.3rem;
  font-weight: 500;
  border-radius: var(--t-r);
  font-variant-numeric: tabular-nums;
}
.wss .profit_plus { color: var(--t-up); background: var(--t-up-soft); }
.wss .profit_minus { color: var(--t-down); background: var(--t-down-soft); }
.wss .profit_neutral { color: var(--t-text-2); background: var(--t-panel-3); }
.wss .project__author { font-style: normal; font-size: 1.3rem; color: var(--t-text-2); padding: 0; font-weight: 500; }
.wss .card.project .card__body > p, .wss .card.project .card__body > span { margin: 0.2rem 0; font-size: 1.3rem; color: var(--t-text-2); }
.wss .card.project .card__body span[style] { font-weight: 500 !important; font-family: var(--t-mono); }
.wss .project--rating { margin: 0.4rem 0 0; }
.wss .project--rating:last-child { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; padding-top: var(--t-s4); }

.wss .pagination { margin: var(--t-s7) 0 var(--t-s4); }
.wss .pagination > ul { gap: 0.4rem; }
.wss .pagination .btn { min-width: 4rem; height: 4rem; min-height: 4rem; padding: 0 1.2rem; font-family: var(--t-mono); font-size: 1.3rem; color: var(--t-text-2); background: transparent; border: 1px solid var(--t-line-2); }
.wss .pagination .btn:hover { color: var(--t-text); border-color: var(--t-text-3); }
.wss .pagination .btn.btn--sub { background: var(--t-amber); border-color: var(--t-amber); color: var(--t-amber-ink); }

/* ---------- 14. Item detail + sale detail ---------- */
.wss .settingsPage.profile { padding: var(--t-s7) 0 var(--t-s4); margin: 0; }
.wss .settingsPage > .container { max-width: var(--t-wrap); padding: 0 var(--t-gutter); }
.wss .settingsPage .layout { align-items: flex-start; }
.wss .settingsPage .column--1of3 > .card { position: relative; margin: 0; overflow: hidden; }
.wss .settingsPage .card__body.dev { width: 100%; padding: var(--t-s7) var(--t-s5) var(--t-s5); }
.wss .settingsPage .avatar--xl { width: 18rem; height: 18rem; border: 1px solid var(--t-line-3); padding: 0; background: var(--t-ink-2); }
.wss .metal__year { margin-top: var(--t-s4); font-family: var(--t-mono); font-size: 1.2rem; font-weight: 500; letter-spacing: 0.08em; color: var(--t-text-3); }
.wss .metal__title, .wss .settingsPage .dev .metal__title { margin: 0.4rem 0 0.8rem; font-family: var(--t-sans); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--t-text); text-transform: none; }
.wss .settingsPage .dev .tag { margin: 0.3rem; }
/* app.css makes these inline-block, which drops the label to the top; keep them flex-centred */
.wss .settingsPage .dev > .settings__btn.tag { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; height: 3.6rem; min-width: 7.6rem; padding: 0 1.6rem; margin: 0.4rem 0.3rem 0; line-height: 1; }
.wss .metal_single { width: 100%; min-height: 0; padding: 0; background: var(--t-panel); border: 1px solid var(--t-line); border-radius: var(--t-r-2); overflow: hidden; }
.wss #metal_single2 { margin-top: var(--t-s4); }
.wss .metal_single > br { display: none; }
.wss .metal_settings { justify-content: flex-start; height: 4.8rem; padding: 0 var(--t-s5); margin: 0; border-bottom: 1px solid var(--t-line); }
.wss .metal_settings .underline { text-decoration: none; }
.wss .metal_settings .metal__title { margin: 0 !important; font-family: var(--t-mono); font-size: 1.15rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-text-3); }
.wss .metal_single > .dev__title, .wss .metal_single > p { padding: var(--t-s4) var(--t-s5) 0; }
.wss .metal_single .dev__title { font-size: 1.45rem; line-height: 1.7; color: var(--t-text-2); }
.wss .purchase-price-container { display: flex; align-items: center; justify-content: space-between; min-height: 4.8rem; padding: 0 var(--t-s5); border-bottom: 1px solid var(--t-line); font-size: 1.4rem; }
.wss .purchase-price-container:last-child { border-bottom: 0; }
.wss .purchase-price-label { font-size: 1.4rem; font-weight: 400; color: var(--t-text-2); }
.wss .purchase-price-value { font-family: var(--t-mono); font-size: 1.45rem; font-weight: 500; color: var(--t-text); font-variant-numeric: tabular-nums; }
.wss .dev__downbar { display: grid; gap: 0.4rem; margin: var(--t-s4) 0 0; padding: var(--t-s4) var(--t-s5); background: transparent; border-top: 1px solid var(--t-line); }
.wss .dev__downbar > a { justify-self: start; }
.wss .card__body .slider { width: 18rem; max-width: 18rem; height: 18rem; }
.wss .slick-prev, .wss .slick-next { background: rgba(10, 16, 28, 0.8); }
.wss .slick-dots li button:before { color: var(--t-amber); }
.wss .metal_single .card { margin: 0.8rem var(--t-s5) 0; background: var(--t-ink-2); }

/* ---------- 15. Form pages ---------- */
.wss .form-options-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--t-control-sm);
  padding: 0 1.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--t-text);
  background: transparent;
  border: 1px solid var(--t-line-3);
  border-radius: var(--t-r);
  box-shadow: none;
  cursor: pointer;
}
.wss .form-options-button:hover { border-color: var(--t-amber-line); color: var(--t-amber-2); background: var(--t-amber-soft); }
.wss .formPage { padding: var(--t-s7) 0 var(--t-s4); margin: 0; }
.wss .content-box { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 var(--t-gutter); }
.wss .formPage .formWrapper { padding: var(--t-s6) var(--t-s7); background: var(--t-panel); border: 1px solid var(--t-line-2); border-radius: var(--t-r-2); box-shadow: var(--t-shadow); }
.wss .formPage .formWrapper.extended_form { height: auto; min-height: 0; }
/* app.css stretches every form card to 60vh and centres it, leaving a gap above short forms */
.wss .formPage .formWrapper { min-height: 0; justify-content: flex-start; }
/* no_inline_fixes.css shows every .modal; the sales date picker opens only via sold_items.js (inline display:block) */
.wss #dateModal { display: none; align-items: flex-start; }
@media screen and (max-width: 640px) { .wss .formPage .formWrapper { padding: var(--t-s5) var(--t-s4); } }
.wss .formWrapper > h1, .wss .formWrapper > h3, .wss .form_header { margin: 0 0 var(--t-s3); font-family: var(--t-sans); font-size: 2.8rem; font-weight: 600; letter-spacing: -0.025em; color: var(--t-text); text-decoration: none; text-align: left; }
.wss .formWrapper .form { margin-top: var(--t-s2); }
.wss .formWrapper .form > .btn, .wss .formWrapper .form > button.btn { margin-top: var(--t-s4); min-width: 16rem; }
.wss .backButton { display: inline-flex; align-items: center; justify-content: center; width: 3.6rem; height: 3.6rem; padding: 0; border-radius: var(--t-r); background: transparent; border: 1px solid var(--t-line-2); color: var(--t-text); vertical-align: middle; }
.wss .backButton:hover { border-color: var(--t-text-3); color: var(--t-text); }
.wss .backButton + p { display: inline-block; margin: 0 0 0 1rem; vertical-align: middle; font-size: 1.3rem; color: var(--t-text-3); }
.wss .form_options { margin-bottom: var(--t-s2); padding-bottom: var(--t-s4); border-bottom: 1px solid var(--t-line); }
.wss .form_options .backbutton { display: flex; align-items: center; gap: 1rem; }
.wss .form_options .backbutton p { margin: 0; font-size: 1.3rem; color: var(--t-text-3); }
.wss .form_options > button { display: inline-flex; align-items: center; justify-content: center; width: 3.6rem; height: 3.6rem; border-radius: var(--t-r); background: transparent; border: 1px solid var(--t-line-2); color: var(--t-text); cursor: pointer; }
.wss .form_options > button:hover { border-color: var(--t-text-3); }
.wss .form_modal, .wss .modal { background-color: rgba(4, 8, 16, 0.78); z-index: 1100; }
.wss .form_modal-content, .wss .modal-content { width: min(92%, 44rem); margin: 12vh auto; padding: var(--t-s6); background: var(--t-panel); border: 1px solid var(--t-line-2); border-radius: var(--t-r-2); box-shadow: var(--t-shadow); color: var(--t-text); }
.wss .modal-content { width: min(92%, 56rem); }
.wss .form_modal-content h3 { margin-bottom: var(--t-s3); font-size: 2.2rem; }
.wss .form_modal-content button { width: 100%; height: var(--t-control); margin: 0.4rem 0; padding: 0 1.6rem; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 500; border-radius: var(--t-r); background: transparent; color: var(--t-text-2); border: 1px solid var(--t-line-2); }
.wss .form_modal-content button:hover { background: var(--t-panel-2); color: var(--t-text); }
.wss .form_modal-content button.active { background: var(--t-amber-soft); color: var(--t-amber-2); border-color: var(--t-amber-line); }
.wss .form_modal-content button.inactive { opacity: 0.55; }
.wss .close { color: var(--t-text-3); top: 1rem; right: 1.4rem; font-weight: 400; }
.wss .close:hover, .wss .close:focus { color: var(--t-text); }
.wss #input-wrapper { gap: var(--t-s4); align-items: flex-end; }
.wss #line-cont1, .wss #line-cont2 { flex: 1; display: grid; gap: 0.6rem; margin: 0; }
.wss #modalbtn { width: 100%; margin-top: var(--t-s4); }
.wss .xcaution { color: var(--t-down); font-size: inherit; font-weight: 600; }
.wss #confirmationInput { margin: 0.8rem 0 var(--t-s4); max-width: 32rem; }
.wss .formPage .form__field > a.btn { margin-right: 1rem; }
.wss .legal_header { text-decoration: none; }

/* Legal / about */
.wss .termsContent { color: var(--t-text-2); }
.wss .about_us_h2 { margin: var(--t-s6) 0 var(--t-s3); font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--t-text); text-decoration: none; text-align: left; }
.wss .termsContent > .about_us_h2:first-child { margin-top: 0; }
.wss .about_us_h3 { margin: var(--t-s5) 0 var(--t-s2); font-size: 1.7rem; color: var(--t-text); text-align: left; }
.wss .text_indent { margin-bottom: var(--t-s4); text-indent: 0; text-align: left; font-size: 1.5rem; line-height: 1.8; }
.wss ul.text_indent { padding-left: 2rem; }
.wss .legal_list, .wss .legal_list_2 { list-style: none; padding-left: 0; }
.wss .legal_list li, .wss .legal_list_2 li { position: relative; padding-left: 2rem; margin-bottom: var(--t-s2); }
.wss .legal_list li::before, .wss .legal_list_2 li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: 0.8rem; height: 1px; background: var(--t-amber); }

/* ---------- 16. Auth ---------- */
.wss .auth { height: auto; min-height: 0; padding: var(--t-s8) var(--t-gutter); background: none; }
.wss .auth.registration-form { min-height: 0; }
.wss .auth::after { display: none; }
.wss .auth > .card { width: 100%; max-width: 48rem; margin: 0 auto; padding: var(--t-s6); align-items: stretch; background: var(--t-panel); border: 1px solid var(--t-line-2); border-top: 2px solid var(--t-amber); border-radius: var(--t-r-2); box-shadow: var(--t-shadow); }
@media screen and (max-width: 560px) { .wss .auth > .card { padding: var(--t-s5) var(--t-s4); } }
.wss .auth__header { text-align: left; }
.wss .auth__header h3 { margin: 0 0 0.4rem; font-size: 2.8rem; font-weight: 600; letter-spacing: -0.025em; color: var(--t-text); }
.wss .auth__header p { margin: 0; font-size: 1.45rem; color: var(--t-text-2); }
.wss .auth__form { margin: var(--t-s5) 0 var(--t-s4); }
.wss .auth .auth__form label, .wss .auth .auth__alternative p { color: var(--t-text-2); font-size: 1.3rem; font-weight: 500; }
.wss .auth .auth__actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; margin: var(--t-s5) 0 0; }
.wss .auth .auth__actions .btn { min-width: 14rem; }
.wss .auth .auth__actions a { font-size: 1.3rem; color: var(--t-text-2); text-decoration: none; }
.wss .auth .auth__actions a:hover { color: var(--t-text); }
.wss .auth__alternative { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 0; padding-top: var(--t-s4); border-top: 1px solid var(--t-line); }
.wss .auth .auth__alternative p { margin: 0; }
.wss .auth .auth__alternative a { font-size: 1.35rem; font-weight: 600; }
.wss #register_login { position: static; transform: none; }
.wss #register_button { width: 100%; margin: 0; }

/* ---------- 17. Settings / import / payment / status pages ---------- */
.wss .importpage, .wss .paymentpage { padding: var(--t-s7) var(--t-gutter); }
.wss .importpage::after, .wss .paymentpage::after, .wss .page::after { display: none; }
.wss .importpage > .container { max-width: 76rem; width: 100%; margin: 0 auto; padding: 0; }
.wss .paymentpage > .container { max-width: var(--t-wrap); width: 100%; margin: 0 auto; padding: 0; }
.wss .card.settings-card { margin: 0; padding: var(--t-s6); align-items: stretch; }
.wss h1.settings-title { margin: 0 0 var(--t-s2); font-size: 3.2rem; letter-spacing: -0.03em; color: var(--t-text); }
.wss .settings-section { padding: var(--t-s5) 0; border-top: 1px solid var(--t-line); }
.wss h2.color-set, .wss h2.search-results, .wss h2.metal_types { justify-content: flex-start; margin: 0 0 var(--t-s3); font-family: var(--t-mono); font-size: 1.15rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-text-3); }
.wss .color-buttons, .wss .search_result_buttons, .wss .metal_type_buttons { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.6rem; }
.wss .importpage .card { margin: 0; padding: var(--t-s6); align-items: stretch; }
.wss .importpage .card__header { padding: 0 0 var(--t-s4); border: 0; font-size: 2.8rem; }
.wss .importauth { width: 100%; height: auto; }
.wss .importform { flex-direction: column; align-items: stretch; gap: var(--t-s3); width: 100%; }
.wss .importfieldtag { display: grid; gap: 0.6rem; font-size: 1.35rem; color: var(--t-text-2); }
.wss #id_excel_file { margin-left: 0; }
.wss .btn.btn-primary.importbtn { width: auto; margin: var(--t-s2) 0 0; }
.wss .page { padding: var(--t-s8) var(--t-gutter); }
.wss .page .card { max-width: 60rem; margin: 0 auto; padding: var(--t-s6); align-items: stretch; }
.wss .page .card h1 { font-size: 3rem; letter-spacing: -0.03em; color: var(--t-text); text-decoration: none; }
.wss .page .card p { font-size: 1.55rem; color: var(--t-text-2); }
.wss .payment_success_btn, .wss .lockout_btn { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 0.8rem; }
.wss .payment_success_btn a, .wss .lockout_btn a { padding: 0; }
.wss .lockout_btn .btn { text-transform: none; font-size: 1.4rem; }
.wss .tooltip { background: var(--t-panel-3); color: var(--t-text); border: 1px solid var(--t-line-2); font-size: 1.25rem; border-radius: var(--t-r); }

/* Gallery page (overrides its inline <style>) */
.wss .gallery-wrapper { max-width: var(--t-wrap); margin: 0 auto; padding: var(--t-s7) var(--t-gutter) var(--t-s4); }
.wss .back-button { color: var(--t-text-2); }
.wss .back-button p { color: inherit; }
.wss .back-button:hover { color: var(--t-text); text-decoration: none; }
.wss .main-image { border: 1px solid var(--t-line-2); border-radius: var(--t-r-2); background: var(--t-panel); box-shadow: none; }
.wss .thumbnail { border: 1px solid var(--t-line-2); border-radius: var(--t-r); }
.wss .thumbnail:hover { border-color: var(--t-text-3); box-shadow: none; }
.wss .delete-icon svg path { stroke: var(--t-text-2); }
.wss .delete-icon:hover svg path { stroke: var(--t-down); }

/* Misc legacy helpers */
.wss .underline { text-decoration: none; }
.wss main.my-md, .wss .formPage.my-xl { margin: 0; }


/* ==========================================================================
   APP SHELL (signed in): sidebar + top bar + page
   ========================================================================== */
.wss .app-nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.wss .app { display: flex; min-height: 100vh; }
.wss .app-side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex: 0 0 var(--t-side);
  width: var(--t-side);
  box-sizing: border-box;
  padding: 1.8rem 1.4rem 2.4rem;
  background: #08090d;
  border-right: 1px solid var(--t-line);
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  z-index: 1100;
  scrollbar-width: thin;
}
.wss .app-side__brand { display: block; padding: 0.4rem 0.6rem; }
.wss .app-side__brand img { display: block; width: 100%; max-width: 21.6rem; height: auto; }
.wss .app-nav { display: flex; flex-direction: column; gap: 2px; }
.wss .app-nav__label {
  padding: 0 1.2rem 0.6rem;
  font-family: var(--t-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-text-3);
}
.wss .app-nav__link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  height: 4rem;
  padding: 0 1.2rem;
  border-radius: 10px;
  color: var(--t-text-2);
  font-size: 1.4rem;
  font-weight: 500;
}
.wss .app-nav__link svg { width: 1.8rem; height: 1.8rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wss .app-nav__link:hover { background: #11141a; color: var(--t-text); }
.wss .app-nav__link.is-active { background: var(--t-amber-soft); color: var(--t-amber-2); box-shadow: inset 0 0 0 1px rgba(245, 185, 65, 0.22); }
.wss .app-nav__link--gold { color: var(--t-amber); }
.wss .app-nav__dot { flex: none; width: 0.9rem; height: 0.9rem; margin: 0 0.45rem; border-radius: 50%; }
.wss .app-nav__dot--au { background: var(--t-au); box-shadow: 0 0 8px var(--t-au); }
.wss .app-nav__dot--ag { background: var(--t-ag); }
.wss .app-nav__dot--pt { background: var(--t-pt); }
.wss .app-trial {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 185, 65, 0.32);
  background: linear-gradient(180deg, #13110b, #0c0e13);
  box-shadow: 0 20px 50px -30px rgba(245, 185, 65, 0.6);
}
.wss .app-trial__label { font-family: var(--t-mono); font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-amber-2); }
.wss .app-trial__text { font-size: 1.3rem; line-height: 1.5; color: #d6dae2; }
.wss .app-trial .btn { width: 100%; }

.wss .app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.wss .app-main > .wss-page { flex: 1 0 auto; }

/* Top bar (keeps the legacy #sticky-bar / .subheader ids the price-refresh script uses) */
.wss #sticky-bar.app-top,
.wss #sticky-bar.app-top.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  box-sizing: border-box;
  padding: 1.2rem 2.8rem;
  background: rgba(6, 7, 10, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--t-line);
  color: var(--t-text-2);
  text-align: left;
  box-shadow: none;
}
.wss .app-top__menu, .wss .app-top__brand { display: none; }
.wss .app-top .subheader { position: static; padding: 0; background: transparent; }
.wss .app-top .subheader__nav > ul { display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.wss .app-top .subheader__menuItem,
.wss .app-top #goldspot, .wss .app-top #silverspot, .wss .app-top #platinumspot {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 3.4rem;
  padding: 0 1.1rem;
  border: 1px solid var(--t-line-2);
  border-radius: 9px;
  background: var(--t-panel);
  font-family: var(--t-mono);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--t-text-3);
  white-space: nowrap;
}
.wss .app-top .subheader__menuItem::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--t-text-3); }
.wss .app-top #goldspot::before { background: var(--t-au); box-shadow: 0 0 8px var(--t-au); }
.wss .app-top #silverspot::before { background: var(--t-ag); }
.wss .app-top #platinumspot::before { background: var(--t-pt); }
.wss .app-top .subheader__menuItem > span,
.wss .app-top .subheader__menuItem > .metals-price { margin: 0; font-family: var(--t-mono); font-size: 1.3rem; letter-spacing: 0; text-transform: none; color: var(--t-text); font-variant-numeric: tabular-nums; }
.wss .app-top #goldspot > span { color: var(--t-amber-2); }
.wss .app-top .subheader__nav > ul > a { display: inline-flex; padding: 0; }
.wss .app-top .subheader__nav > ul > a > .subheader__menuItem { padding: 0; width: 3.4rem; justify-content: center; }
.wss .app-top .subheader__nav > ul > a > .subheader__menuItem::before { display: none; }
.wss .app-top .solar--refresh-square-broken { width: 1.7rem; height: 1.7rem; color: var(--t-text-2); cursor: pointer; }
.wss .app-top .solar--refresh-square-broken:hover { color: var(--t-amber); }
.wss .app-top__search {
  flex: 1 1 22rem;
  max-width: 36rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  height: 4rem;
  margin: 0;
  padding: 0 1.2rem;
  border: 1px solid var(--t-line-2);
  border-radius: 10px;
  background: var(--t-panel);
  color: var(--t-text-3);
}
.wss .app-top__search:focus-within { border-color: var(--t-amber-line); }
.wss .app-top__search svg { width: 1.6rem; height: 1.6rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.wss .app-top__search input[type="search"] { flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--t-text); font-size: 1.4rem; }
.wss .app-top__search input[type="search"]:focus { border: 0; box-shadow: none; background: transparent; }
.wss .app-top__actions { margin-left: auto; display: flex; align-items: center; gap: 0.8rem; }
.wss .app-top__add { height: 4rem; min-height: 4rem; padding: 0 1.6rem; font-size: 1.4rem; }
.wss .app-top__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--t-amber-line);
  background: var(--t-panel-2);
  color: var(--t-amber-2);
  font-weight: 600;
  font-size: 1.5rem;
}
.wss .app-top__avatar img { width: 100%; height: 100%; object-fit: cover; }
.wss .wss-messages { padding: 1.6rem 2.8rem 0; }
.wss .wss-messages .alert { margin: 0 0 0.8rem; width: 100%; max-width: none; }

/* Compact footer inside the app */
.wss .footer.app-foot {
  margin: 4.8rem 0 0;
  padding: 2.4rem 2.8rem;
  border-top: 1px solid var(--t-line);
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  text-align: center;
  overflow: visible;
}
.wss .app-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2rem; }
.wss .app-foot__links a { color: var(--t-text-2); font-size: 1.3rem; font-weight: 400; }
.wss .app-foot__links a:hover { color: var(--t-text); }
.wss .app-foot p { margin: 0; font-size: 1.2rem; color: var(--t-text-3); }

/* Mobile: sidebar becomes a drawer */
.wss .app-scrim { display: none; }
@media screen and (max-width: 1000px) {
  .wss .app-side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 30px 0 60px -20px rgba(0, 0, 0, 0.8);
  }
  .wss .app-nav-toggle:checked ~ .app .app-side { transform: none; }
  .wss .app-nav-toggle:checked ~ .app .app-scrim { display: block; position: fixed; inset: 0; z-index: 1050; background: rgba(0, 0, 0, 0.6); }
  .wss .app-top__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 4rem;
    height: 4rem;
    border-radius: 10px;
    border: 1px solid var(--t-line-2);
    cursor: pointer;
    color: var(--t-text);
  }
  .wss .app-top__menu svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .wss .app-top__brand { display: inline-flex; padding: 0; }
  .wss .app-top__brand img { width: auto; height: 4.4rem; max-width: none; }
  .wss #sticky-bar.app-top { flex-wrap: wrap; padding: 1rem 1.6rem; }
  .wss .app-top .subheader { order: 10; width: 100%; }
  /* Three price chips + refresh share one row and always fit */
  .wss .app-top .subheader__nav > ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 0.6rem; }
  .wss .app-top .subheader__menuItem, .wss .app-top #goldspot, .wss .app-top #silverspot, .wss .app-top #platinumspot { min-width: 0; justify-content: center; }
  .wss .app-top__search { order: 11; flex: 1 1 100%; max-width: none; }
  .wss .wss-messages { padding: 1.2rem 1.6rem 0; }
  .wss .footer.app-foot { padding: 2.4rem 1.6rem; }
}
@media screen and (max-width: 480px) {
  /* Phone: chips show the coloured dot + price; the metal name stays for screen readers */
  .wss .app-top #goldspot, .wss .app-top #silverspot, .wss .app-top #platinumspot { font-size: 0; letter-spacing: 0; padding: 0 0.8rem; gap: 0.6rem; }
  .wss .app-top__add { padding: 0 1.4rem; font-size: 1.35rem; }
}

/* ==========================================================================
   PUBLIC HEADER + FOOTER (signed out)
   ========================================================================== */
.wss .header.pub-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: #06070a;
  border-bottom: 1px solid var(--t-line);
  box-shadow: none;
}
.wss .pub-header__inner { max-width: 124rem; margin: 0 auto; padding: 0 3.2rem; height: 8.8rem; display: flex; align-items: center; justify-content: space-between; gap: 2.4rem; }
.wss .pub-header__brand { display: block; position: relative; z-index: 1002; padding: 0; }
.wss .pub-header__brand img { display: block; height: 6.4rem; width: auto; filter: drop-shadow(0 0 14px rgba(245, 185, 65, 0.18)); }
.wss .pub-header .header__nav { display: flex; align-items: center; }
.wss .pub-header .header__nav > ul { display: flex; align-items: center; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.wss .pub-header .header__menuItem { list-style: none; }
.wss .pub-header .header__menuItem > a:not(.btn) { display: inline-flex; align-items: center; height: 4rem; padding: 0 1.2rem; border-radius: 9px; color: var(--t-text-2); font-size: 1.45rem; font-weight: 500; background: none; transform: none; }
.wss .pub-header .header__menuItem > a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.wss .pub-header__login { margin-left: 1.2rem; }
.wss .pub-header__cta { margin-left: 0.8rem; }
.wss .pub-header__cta .btn { height: 4.2rem; min-height: 4.2rem; font-size: 1.4rem; }
.wss .pub-header .toggle-menu { display: none; }
.wss .pub-header .header__nav input[type="checkbox"] { display: none; }
@media screen and (max-width: 1000px) {
  .wss .pub-header__inner { height: 7.2rem; padding: 0 1.6rem; }
  .wss .pub-header__brand img { height: 5rem; }
  .wss .pub-header .toggle-menu { display: inline-flex; position: relative; z-index: 1002; width: 4.4rem; height: 4.4rem; border: 1px solid var(--t-line-2); border-radius: 10px; cursor: pointer; }
  .wss .pub-header .toggle-menu > span { display: none !important; }
  .wss .pub-header .toggle-menu__lines,
  .wss .pub-header .toggle-menu__lines::before,
  .wss .pub-header .toggle-menu__lines::after { content: ""; position: absolute; display: block; width: 1.8rem; height: 1.5px; margin: 0; right: auto; background: var(--t-text); transform-origin: 50% 50%; visibility: visible; transition: transform 0.25s ease, top 0.25s ease, background 0.2s ease; }
  .wss .pub-header .toggle-menu__lines { top: 50%; left: 50%; transform: translate(-50%, -50%); }
  .wss .pub-header .toggle-menu__lines::before { top: -0.6rem; left: 0; transform: none; }
  .wss .pub-header .toggle-menu__lines::after { top: 0.6rem; left: 0; transform: none; }
  .wss .pub-header .header__nav input[type="checkbox"]:checked + .toggle-menu > .toggle-menu__lines { background: transparent; }
  .wss .pub-header .header__nav input[type="checkbox"]:checked + .toggle-menu > .toggle-menu__lines::before { top: 0; transform: rotate(45deg); }
  .wss .pub-header .header__nav input[type="checkbox"]:checked + .toggle-menu > .toggle-menu__lines::after { top: 0; transform: rotate(-45deg); }
  .wss .pub-header .header__nav > ul { position: fixed; inset: 0; z-index: 1001; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 9.6rem 2rem 4rem; background: #06070a; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; overflow-y: auto; }
  .wss .pub-header .header__nav input[type="checkbox"]:checked ~ .header__menu { opacity: 1; pointer-events: all; }
  .wss .pub-header .header__menuItem { border-bottom: 1px solid var(--t-line); margin: 0; }
  .wss .pub-header .header__menuItem > a:not(.btn) { display: flex; height: 5.6rem; padding: 0; font-size: 1.8rem; color: var(--t-text); border-radius: 0; }
  .wss .pub-header__cta { border-bottom: 0 !important; margin-top: 1.6rem !important; }
  .wss .pub-header__cta .btn { width: 100%; height: 5.4rem; }
}

.wss .footer.pub-foot { margin: 0; padding: 0; border-radius: 0; background: #06070a; border-top: 1px solid var(--t-line); overflow: visible; }
.wss .pub-foot__inner { max-width: 124rem; margin: 0 auto; padding: 5.6rem 3.2rem 3.2rem; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 4rem; }
.wss .pub-foot__brand img { display: block; width: 26rem; max-width: 100%; height: auto; }
.wss .pub-foot__brand p { margin: 1.6rem 0 0; max-width: 32rem; font-size: 1.35rem; line-height: 1.7; color: var(--t-text-3); }
.wss .pub-foot__col { display: flex; flex-direction: column; gap: 1.2rem; }
.wss .pub-foot__col h4 { margin: 0 0 0.4rem; font-family: var(--t-mono); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-text-3); }
.wss .pub-foot__col a { color: var(--t-text-2); font-size: 1.4rem; font-weight: 400; }
.wss .pub-foot__col a:hover { color: #fff; }
.wss .pub-foot__base { max-width: 124rem; margin: 0 auto; padding: 2.4rem 3.2rem 4rem; border-top: 1px solid var(--t-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; font-size: 1.2rem; color: var(--t-text-3); }
@media screen and (max-width: 800px) {
  .wss .pub-foot__inner { grid-template-columns: 1fr 1fr; padding: 4.8rem 2rem 2.4rem; }
  .wss .pub-foot__brand { grid-column: 1 / -1; }
  .wss .pub-foot__base { padding: 2rem 2rem 3.2rem; }
}

/* ==========================================================================
   LANDING PAGE (signed out)
   ========================================================================== */
.wss .lp { overflow: hidden; }
.wss .lp-wrap { max-width: 124rem; margin: 0 auto; padding: 0 3.2rem; }
.wss .lp-kicker { display: block; font-family: var(--t-mono); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-text-3); }
.wss .lp-eyebrow { margin: 0 0 1.6rem; font-family: var(--t-mono); font-size: 1.15rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-amber); }
.wss .lp-num { font-family: var(--t-mono); font-variant-numeric: tabular-nums; }
.wss .lp-up { color: var(--t-up); font-family: var(--t-mono); }
.wss .lp-gold { color: var(--t-amber-2); }
.wss .lp-dim { color: var(--t-text-3); }
.wss .lp-fine { margin: 2.2rem 0 0; font-size: 1.3rem; color: var(--t-text-3); }
.wss .lp-fine--left { margin-top: 1.6rem; }

/* Hero */
.wss .lp-hero { position: relative; padding: 6.4rem 3.2rem 10.4rem; text-align: center; }
.wss .lp-hero__glow { position: absolute; left: 50%; top: 38rem; width: 110rem; height: 62rem; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(245, 185, 65, 0.3), rgba(245, 185, 65, 0.08) 55%, transparent 100%); filter: blur(30px); pointer-events: none; }
.wss .lp-hero__rings { position: absolute; left: 50%; top: 38rem; width: 140rem; height: 140rem; transform: translate(-50%, -50%); pointer-events: none; fill: none; }
.wss .lp-hero__rings circle { stroke: rgba(245, 185, 65, 0.1); stroke-width: 1; }
.wss .lp-hero__rings circle:first-child { stroke: rgba(245, 185, 65, 0.16); }
.wss .lp-hero__rings circle.reed { stroke: rgba(245, 185, 65, 0.09); stroke-width: 6; stroke-dasharray: 1.2 6; }
.wss .lp-hero__inner { position: relative; max-width: 110rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.wss .lp-pill { display: inline-flex; align-items: center; gap: 1rem; height: 3.4rem; padding: 0 1.6rem; border-radius: 999px; border: 1px solid rgba(245, 185, 65, 0.35); background: rgba(245, 185, 65, 0.06); box-shadow: 0 0 24px -6px rgba(245, 185, 65, 0.45); font-family: var(--t-mono); font-size: 1.1rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-amber-2); }
.wss .lp-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--t-amber-2); box-shadow: 0 0 10px var(--t-amber); }
.wss .lp-hero__number { margin-top: 3.6rem; font-family: var(--t-mono); font-size: clamp(5.6rem, 11vw, 16rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.06em; filter: drop-shadow(0 0 38px rgba(245, 185, 65, 0.35)) drop-shadow(0 2px 0 rgba(0, 0, 0, 0.6)); }
.wss .lp-hero__line { width: 52rem; max-width: 80%; height: 1px; margin: 2.8rem 0 2rem; background: linear-gradient(90deg, transparent, rgba(255, 215, 122, 0.9), transparent); box-shadow: 0 0 18px rgba(245, 185, 65, 0.8); }
.wss .lp-hero__meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem 1.4rem; font-size: 1.5rem; }
.wss .lp-sep { width: 4px; height: 4px; border-radius: 50%; background: #3a4250; }
.wss .lp-metals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; width: 100%; max-width: 98rem; margin-top: 4.8rem; }
.wss .lp-metal { display: flex; flex-direction: column; gap: 1.4rem; padding: 2.4rem; text-align: left; border-radius: 18px; background: linear-gradient(180deg, rgba(22, 25, 32, 0.85), rgba(12, 14, 18, 0.85)); border: 1px solid rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wss .lp-metal--au { border-color: rgba(245, 185, 65, 0.4); box-shadow: 0 0 0 1px rgba(245, 185, 65, 0.08), 0 20px 60px -24px rgba(245, 185, 65, 0.55); }
.wss .lp-metal__head { display: flex; align-items: center; gap: 1.2rem; }
.wss .lp-metal__head strong { font-size: 1.6rem; }
.wss .lp-metal__head .lp-up { margin-left: auto; font-size: 1.2rem; }
.wss .lp-sym { width: 4rem; height: 4rem; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--t-mono); font-size: 1.2rem; font-weight: 600; }
.wss .lp-sym--au { background: rgba(245, 185, 65, 0.16); color: var(--t-amber-2); box-shadow: 0 0 16px -4px rgba(245, 185, 65, 0.8); }
.wss .lp-sym--ag { background: rgba(220, 226, 236, 0.12); color: #eef1f6; }
.wss .lp-sym--pt { background: rgba(143, 163, 194, 0.16); color: #c9d4e4; }
.wss .lp-metal__value { font-family: var(--t-mono); font-size: 3rem; letter-spacing: -0.02em; color: var(--t-text); }
.wss .lp-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.wss .lp-bar--thick { height: 8px; border-radius: 4px; }
.wss .lp-bar__fill { display: block; height: 100%; border-radius: inherit; }
.wss .lp-bar__fill--au { background: linear-gradient(90deg, #e9a93a, #ffe29a); box-shadow: 0 0 12px var(--t-au); }
.wss .lp-bar__fill--ag { background: linear-gradient(90deg, #b9c0cb, #ffffff); }
.wss .lp-bar__fill--pt { background: linear-gradient(90deg, #8396b4, #dfe7f3); }
.wss .lp-bar__fill--muted { background: #5a6272; }
.wss .lp-metal__foot { display: flex; justify-content: space-between; gap: 0.8rem; font-family: var(--t-mono); font-size: 1.2rem; color: var(--t-text-3); }
.wss .lp-hero__title { margin: 5.2rem 0 0; max-width: 76rem; font-size: clamp(3rem, 4vw, 4.4rem); line-height: 1.1; letter-spacing: -0.035em; }
.wss .lp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; margin-top: 3.2rem; }

/* Sections */
.wss .lp-section { padding: 11.2rem 0; border-top: 1px solid var(--t-line); }
.wss .lp-section--alt { background: #08090d; }
.wss .lp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 3.2rem; flex-wrap: wrap; margin-bottom: 4.8rem; }
.wss .lp-head > div { max-width: 64rem; }
.wss .lp-head h2 { margin: 0; font-size: clamp(3.2rem, 4vw, 4.8rem); line-height: 1.05; letter-spacing: -0.035em; }
.wss .lp-head > p { margin: 0; max-width: 38rem; font-size: 1.6rem; line-height: 1.6; }

.wss .lp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.6rem; }
.wss .lp-tile { grid-column: span 2; display: flex; flex-direction: column; gap: 1.4rem; min-height: 28rem; padding: 2.8rem; border-radius: 20px; background: #0d1016; border: 1px solid var(--t-line); }
.wss .lp-tile--wide { grid-column: span 4; }
.wss .lp-tile h3 { margin: 0; font-size: 2.2rem; letter-spacing: -0.02em; }
.wss .lp-tile p { margin: 0; font-size: 1.5rem; line-height: 1.6; }
.wss .lp-mini { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.wss .lp-mini > div { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.6rem; border-radius: 12px; background: #06070a; border: 1px solid var(--t-line); }
.wss .lp-mini .lp-num { font-size: 2rem; }
.wss .lp-rows { margin-top: auto; }
.wss .lp-rows > div { display: flex; justify-content: space-between; padding: 1.2rem 0; border-top: 1px solid var(--t-line); font-size: 1.4rem; color: var(--t-text-2); }
.wss .lp-rows .lp-num { color: var(--t-text); }
.wss .lp-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.wss .lp-tag { padding: 0.6rem 1rem; border-radius: 6px; border: 1px solid var(--t-line-2); font-family: var(--t-mono); font-size: 1.1rem; color: var(--t-text-2); }
.wss .lp-tag--gold { border-color: rgba(245, 185, 65, 0.3); color: var(--t-amber-2); }

/* How it works */
.wss .lp-how { position: relative; }
.wss .lp-how__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; align-items: stretch; }
.wss .lp-stages { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.wss .lp-stages__rail { position: absolute; left: 3.1rem; top: 3.4rem; bottom: 3.4rem; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); }
.wss .lp-stages__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 2px; background: linear-gradient(#ffe29a, #e9a93a); box-shadow: 0 0 12px var(--t-au); transition: height 0.35s ease; }
.wss .lp-stage { position: relative; display: flex; align-items: flex-start; gap: 1.8rem; width: 100%; padding: 1.6rem 1.8rem 1.6rem 1.2rem; border-radius: 16px; border: 1px solid transparent; background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.wss .lp-stage:hover { background: rgba(255, 255, 255, 0.02); }
.wss .lp-stage.is-active { border-color: rgba(245, 185, 65, 0.45); background: linear-gradient(90deg, rgba(245, 185, 65, 0.11), rgba(245, 185, 65, 0.02)); box-shadow: 0 20px 50px -30px rgba(245, 185, 65, 0.6); }
.wss .lp-stage__icon { position: relative; z-index: 1; flex: none; width: 4rem; height: 4rem; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #0d1016; color: var(--t-text-3); border: 1px solid rgba(255, 255, 255, 0.1); }
.wss .lp-stage__icon svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wss .lp-stage.is-done .lp-stage__icon { background: #17140d; color: var(--t-amber-2); border-color: rgba(245, 185, 65, 0.45); }
.wss .lp-stage.is-active .lp-stage__icon { background: var(--t-gold-grad); color: var(--t-amber-ink); border-color: transparent; box-shadow: 0 0 22px -2px rgba(245, 185, 65, 0.85); }
.wss .lp-stage__text { display: flex; flex-direction: column; gap: 0.4rem; }
.wss .lp-stage__text strong { font-size: 1.8rem; }
.wss .lp-stage__text > span { font-size: 1.4rem; line-height: 1.5; color: var(--t-text-2); }
.wss .lp-preview { position: relative; border-radius: 24px; padding: 1px; background: linear-gradient(160deg, rgba(255, 215, 122, 0.55), rgba(255, 255, 255, 0.06) 40%, rgba(245, 185, 65, 0.25)); box-shadow: 0 40px 100px -40px rgba(245, 185, 65, 0.45); }
.wss .lp-preview__inner { height: 100%; box-sizing: border-box; min-height: 42rem; display: flex; flex-direction: column; gap: 2rem; padding: 2.8rem; border-radius: 23px; background: linear-gradient(180deg, #11141a, #0a0c10); }
.wss .lp-preview__head { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.wss .lp-preview__coin { display: flex; align-items: center; gap: 1.2rem; }
.wss .lp-preview__coin > span:last-child { display: flex; flex-direction: column; gap: 0.2rem; }
.wss .lp-preview__coin strong { font-size: 1.6rem; }
.wss .lp-preview__coin .lp-num { font-size: 1.2rem; }
.wss .lp-coin { flex: none; width: 4.4rem; height: 4.4rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffeec0, #e0a134 55%, #7a5414); box-shadow: 0 0 0 3px #11141a, 0 0 0 4px rgba(245, 185, 65, 0.3), 0 0 20px -4px rgba(245, 185, 65, 0.7); }
.wss .lp-panel { display: flex; flex-direction: column; gap: 2rem; flex: 1; }
.wss .lp-panel[hidden] { display: none; }
.wss .lp-panel__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.2rem; flex-wrap: wrap; }
.wss .lp-panel__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; font-size: 1.3rem; }
.wss .lp-ok { display: inline-flex; align-items: center; gap: 0.8rem; height: 3.2rem; padding: 0 1.2rem; border-radius: 999px; background: var(--t-up-soft); border: 1px solid rgba(61, 220, 151, 0.3); color: var(--t-up); font-size: 1.3rem; font-weight: 500; }
.wss .lp-ok svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2.6; }
.wss .lp-photos { display: flex; gap: 0.8rem; }
.wss .lp-photos > span { width: 4.6rem; height: 4.6rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); background: radial-gradient(circle at 35% 30%, #ffeec0, #d99a2e 60%, #6e4a12); }
.wss .lp-photos > span:nth-child(2) { background: radial-gradient(circle at 60% 40%, #ffe4a0, #c88a26 60%, #5e3f10); }
.wss .lp-photos > span:last-child { background: #0d1016; border-style: dashed; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--t-text-2); }
.wss .lp-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; overflow: hidden; }
.wss .lp-ledger > div { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.4rem 1.8rem; font-size: 1.5rem; color: var(--t-text); }
.wss .lp-ledger > div:nth-child(-n+2) { background: #08090d; }
.wss .lp-ledger > div:nth-child(n+3) { border-top: 1px solid var(--t-line); }
.wss .lp-ledger > div:nth-child(even) { border-left: 1px solid var(--t-line); }
.wss .lp-ledger--rows { grid-template-columns: 1fr; }
.wss .lp-ledger--rows > div { flex-direction: row; justify-content: space-between; border-left: 0 !important; background: transparent !important; }
.wss .lp-ledger--rows > div:first-child { background: #08090d !important; }
.wss .lp-ledger--rows > div + div { border-top: 1px solid var(--t-line); }
.wss .lp-ledger__gain { background: rgba(61, 220, 151, 0.06) !important; }
.wss .lp-big { display: block; margin-top: 0.6rem; font-family: var(--t-mono); font-size: clamp(4rem, 5vw, 6.4rem); line-height: 1; letter-spacing: -0.04em; }
.wss .lp-cells { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.wss .lp-cells > div { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.6rem; border-radius: 12px; background: #08090d; border: 1px solid var(--t-line); font-size: 1.8rem; color: var(--t-text); }
.wss .lp-chip { display: inline-flex; align-items: center; padding: 0.6rem 1rem; border-radius: 8px; background: var(--t-up-soft); font-family: var(--t-mono); font-size: 1.5rem; }
.wss .lp-chip.lp-gold { background: transparent; border: 1px solid var(--t-amber-line); font-family: var(--t-sans); font-size: 1.4rem; font-weight: 600; height: 4.2rem; padding: 0 1.6rem; border-radius: 11px; }
.wss .lp-compare { margin-top: auto; display: flex; flex-direction: column; gap: 1.4rem; }
.wss .lp-compare__row { display: flex; justify-content: space-between; margin-bottom: 0.6rem; font-size: 1.3rem; color: var(--t-text-2); }

/* Pricing */
.wss .lp-toggle { display: flex; gap: 4px; padding: 5px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); background: #0a0c10; }
.wss .lp-toggle button { display: inline-flex; align-items: center; height: 3.8rem; padding: 0 1.6rem; border: 0; border-radius: 10px; background: transparent; color: var(--t-text-2); font-size: 1.4rem; font-weight: 600; cursor: pointer; }
.wss .lp-toggle button.is-active { background: rgba(245, 185, 65, 0.14); color: var(--t-amber-2); box-shadow: inset 0 0 0 1px rgba(245, 185, 65, 0.35); }
.wss .lp-save { margin-left: 0.6rem; padding: 0.3rem 0.7rem; border-radius: 6px; background: rgba(61, 220, 151, 0.14); color: var(--t-up); font-size: 1.1rem; }
.wss .lp-plans { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem; align-items: stretch; }
.wss .lp-plan { display: flex; flex-direction: column; gap: 2rem; padding: 3.2rem; border-radius: 20px; background: #0d1016; border: 1px solid var(--t-line); }
.wss .lp-plan p { margin: 0.6rem 0 0; font-size: 1.5rem; }
.wss .lp-plan > .btn { margin-top: auto; }
.wss .lp-plan--pro { position: relative; border: 1px solid rgba(255, 215, 122, 0.55); background: radial-gradient(500px 240px at 85% 0%, rgba(245, 185, 65, 0.14), transparent 70%), linear-gradient(180deg, #14110b, #0b0d11); box-shadow: 0 40px 100px -40px rgba(245, 185, 65, 0.6); }
.wss .lp-plan__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.2rem; }
.wss .lp-badge { display: inline-flex; align-items: center; height: 3rem; padding: 0 1.2rem; border-radius: 999px; border: 1px solid rgba(245, 185, 65, 0.45); background: rgba(245, 185, 65, 0.1); color: var(--t-amber-2); font-size: 1.2rem; font-weight: 600; box-shadow: 0 0 18px -6px rgba(245, 185, 65, 0.8); }
.wss .lp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem 1rem; font-size: 1.5rem; }
.wss .lp-price__amt { font-family: var(--t-mono); font-size: 5.6rem; line-height: 1; letter-spacing: -0.04em; color: var(--t-text); }
.wss .lp-plan--pro .lp-price__amt { font-size: 6.4rem; filter: drop-shadow(0 0 22px rgba(245, 185, 65, 0.35)); }
.wss .lp-price__note { width: 100%; font-size: 1.3rem; }
.wss .lp-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 1.2rem; font-size: 1.5rem; color: #d6dae2; }
.wss .lp-checks li { display: flex; align-items: center; gap: 1rem; }
.wss .lp-checks li::before { content: ""; flex: none; width: 1.6rem; height: 1.6rem; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23a3abb9' stroke-width='2.4'/%3E%3C/svg%3E"); }
.wss .lp-checks--gold li { color: var(--t-text); }
.wss .lp-checks--gold li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23f5b941' stroke-width='2.4'/%3E%3C/svg%3E"); }
.wss .lp-checks--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; }
.wss .lp-plan__cta { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 1.6rem; font-size: 1.3rem; }

/* Closing */
.wss .lp-close { position: relative; }
.wss .lp-close::before { content: ""; position: absolute; right: 10%; top: 50%; width: 70rem; height: 50rem; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(245, 185, 65, 0.18), transparent); filter: blur(20px); pointer-events: none; }
.wss .lp-close__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6.4rem; align-items: center; }
.wss .lp-close__grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2.4rem; }
.wss .lp-close h2 { margin: 0; font-size: clamp(3.6rem, 5vw, 5.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.wss .lp-close p { margin: 0; font-size: 1.7rem; }
.wss .lp-close__grid > img { justify-self: end; width: 100%; max-width: 58rem; filter: drop-shadow(0 0 40px rgba(245, 185, 65, 0.22)); }

@media screen and (max-width: 1000px) {
  .wss .lp-metals { grid-template-columns: 1fr; max-width: 52rem; }
  .wss .lp-bento { grid-template-columns: 1fr 1fr; }
  .wss .lp-tile, .wss .lp-tile--wide { grid-column: span 1; }
  .wss .lp-tile--wide { grid-column: 1 / -1; }
  .wss .lp-how__grid, .wss .lp-plans, .wss .lp-close__grid { grid-template-columns: 1fr; }
  .wss .lp-close__grid > img { justify-self: start; }
}
@media screen and (max-width: 640px) {
  .wss .lp-hero { padding: 4rem 1.6rem 7.2rem; }
  .wss .lp-wrap { padding: 0 1.6rem; }
  .wss .lp-section { padding: 7.2rem 0; }
  .wss .lp-bento { grid-template-columns: 1fr; }
  .wss .lp-mini, .wss .lp-cells, .wss .lp-ledger { grid-template-columns: 1fr; }
  .wss .lp-ledger > div { border-left: 0 !important; }
  .wss .lp-ledger > div + div { border-top: 1px solid var(--t-line); }
  .wss .lp-checks--two { grid-template-columns: 1fr; }
  .wss .lp-actions .btn { width: 100%; }
  .wss .lp-preview__inner { padding: 2rem; }
}

/* ==========================================================================
   SIGNED-IN OVERVIEW (homepage)
   ========================================================================== */
.wss .ov { max-width: 124rem; margin: 0 auto; padding: 2.8rem 2.8rem 1.6rem; display: flex; flex-direction: column; gap: 1.6rem; }
.wss .ov-kicker { display: block; font-family: var(--t-mono); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-text-3); }
.wss .ov-gold { color: var(--t-amber-2); }
.wss .ov-num { font-family: var(--t-mono); font-variant-numeric: tabular-nums; color: var(--t-text); }
.wss .ov-up { color: var(--t-up); }
.wss .ov-down { color: var(--t-down); }
.wss .ov__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.6rem; flex-wrap: wrap; }
.wss .ov__who { display: flex; align-items: center; gap: 1.6rem; }
.wss .ov__avatar, .wss .ov .profile-picture, .wss .ov .profile-picture-placeholder { width: 5.6rem; height: 5.6rem; margin: 0; border-radius: 14px; border: 1px solid var(--t-amber-line); background: var(--t-panel-2); object-fit: cover; display: flex; align-items: center; justify-content: center; box-shadow: none; }
.wss .ov .profile-picture-placeholder span { font-family: var(--t-mono); font-size: 2.2rem; color: var(--t-amber-2); }
.wss .ov__date { margin: 0 0 0.4rem; font-family: var(--t-mono); font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-text-3); }
.wss .ov .welcome-title { margin: 0; font-size: clamp(2.4rem, 3vw, 3.2rem); font-weight: 600; letter-spacing: -0.03em; color: var(--t-text); text-align: left; }
.wss .ov .trial-notice, .wss .ov .review-incentive { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; margin: 0; padding: 1.4rem 1.8rem; border-radius: 14px; border: 1px solid var(--t-line-2); background: var(--t-panel); box-shadow: none; text-align: left; }
.wss .ov .trial-notice.trial-orange { border-color: var(--t-amber-line); }
.wss .ov .trial-text, .wss .ov .review-incentive-text { margin: 0; font-size: 1.4rem; color: var(--t-text-2); }
.wss .ov__trial-actions { display: flex; gap: 0.8rem; }
.wss .ov-card { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; padding: 2.4rem; border-radius: 16px; background: linear-gradient(180deg, #0f1218, #0c0e13); border: 1px solid var(--t-line); color: var(--t-text); }
.wss a.ov-card:hover { border-color: var(--t-amber-line); color: var(--t-text); }
.wss .ov__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.6rem; }
.wss .ov__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wss .ov__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wss .ov-card--hero { position: relative; overflow: hidden; padding: 2.8rem; border-color: rgba(245, 185, 65, 0.25); }
.wss .ov-card--hero::before { content: ""; position: absolute; left: -6rem; top: -8rem; width: 52rem; height: 30rem; background: radial-gradient(closest-side, rgba(245, 185, 65, 0.16), transparent); pointer-events: none; }
.wss .ov-card--hero > * { position: relative; }
.wss .ov-big { font-family: var(--t-mono); font-size: clamp(4rem, 5vw, 6rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; filter: drop-shadow(0 0 22px rgba(245, 185, 65, 0.3)); }
.wss .ov-delta { font-family: var(--t-mono); font-size: 1.4rem; }
.wss .ov-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 2rem; border-top: 1px solid var(--t-line); }
.wss .ov-stats > div { display: flex; flex-direction: column; gap: 0.6rem; padding: 0 1.6rem; }
.wss .ov-stats > div:first-child { padding-left: 0; }
.wss .ov-stats > div + div { border-left: 1px solid var(--t-line); }
.wss .ov-stats .ov-num { font-size: 1.9rem; }
.wss .ov-stats small { font-size: 1.2rem; color: var(--t-text-3); }
.wss .ov-empty { margin: 0; font-size: 1.5rem; color: var(--t-text-2); }
.wss .ov-alloc { display: flex; gap: 3px; height: 1rem; margin-top: 1rem; }
.wss .ov-alloc > span { border-radius: 3px; min-width: 2px; }
.wss .ov-alloc__au { background: linear-gradient(90deg, #e9a93a, #ffe29a); box-shadow: 0 0 10px var(--t-au); }
.wss .ov-alloc__ag { background: var(--t-ag); }
.wss .ov-alloc__pt { background: var(--t-pt); }
.wss .ov-legend { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 0.8rem; }
.wss .ov-legend > div { display: flex; align-items: center; gap: 1rem; font-size: 1.4rem; color: var(--t-text-2); }
.wss .ov-legend .ov-num { margin-left: auto; }
.wss .ov-dot { width: 1rem; height: 1rem; border-radius: 3px; }
.wss .ov-dot--au { background: var(--t-au); box-shadow: 0 0 8px var(--t-au); }
.wss .ov-dot--ag { background: var(--t-ag); }
.wss .ov-dot--pt { background: var(--t-pt); }
.wss .ov__metals { display: grid; grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr)); gap: 1.6rem; }
.wss .ov-metal { padding: 2.2rem; }
.wss .ov-metal--au { border-color: rgba(245, 185, 65, 0.4); box-shadow: 0 20px 60px -30px rgba(245, 185, 65, 0.55); }
.wss .ov-metal__head { display: flex; align-items: center; gap: 1rem; }
.wss .ov-metal__head strong { font-size: 1.6rem; }
.wss .ov-sym { width: 3.6rem; height: 3.6rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--t-mono); font-size: 1.2rem; font-weight: 600; }
.wss .ov-sym--au { background: rgba(245, 185, 65, 0.16); color: var(--t-amber-2); box-shadow: 0 0 14px -4px rgba(245, 185, 65, 0.8); }
.wss .ov-sym--ag { background: rgba(220, 226, 236, 0.12); color: #eef1f6; }
.wss .ov-sym--pt { background: rgba(143, 163, 194, 0.16); color: #c9d4e4; }
.wss .ov-chip { margin-left: auto; font-family: var(--t-mono); font-size: 1.2rem; }
.wss .ov-metal__value { font-family: var(--t-mono); font-size: 3rem; letter-spacing: -0.02em; }
.wss .ov-locked { font-family: var(--t-sans); font-size: 1.5rem; color: var(--t-amber); }
.wss .ov-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.wss .ov-bar > span { display: block; height: 100%; }
.wss .ov-bar__au { background: linear-gradient(90deg, #e9a93a, #ffe29a); box-shadow: 0 0 10px var(--t-au); }
.wss .ov-bar__ag { background: linear-gradient(90deg, #b9c0cb, #fff); }
.wss .ov-bar__pt { background: linear-gradient(90deg, #8396b4, #dfe7f3); }
.wss .ov-metal__foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 0.8rem; font-family: var(--t-mono); font-size: 1.35rem; color: var(--t-text); }
.wss .ov-metal__foot small { display: block; font-family: var(--t-sans); font-size: 1.15rem; color: var(--t-text-3); }
.wss .ov-lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--t-line); font-size: 1.4rem; color: var(--t-text-2); }
.wss .ov-promo { gap: 0.6rem; padding: 2.4rem; background: radial-gradient(30rem 12rem at 0% 0%, rgba(245, 185, 65, 0.12), transparent 70%), #0c0e13; border-color: rgba(245, 185, 65, 0.25); }
.wss .ov-promo strong { font-size: 1.9rem; }
.wss .ov-link { margin-top: 0.6rem; font-size: 1.35rem; font-weight: 500; color: var(--t-amber); }
.wss .community-cards { max-width: none; margin: 0; }
.wss .ov-quick { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0; padding: 0; border: 0; }
.wss .ov-quick .action-link { display: inline-flex; align-items: center; height: 3.8rem; padding: 0 1.6rem; border-radius: 10px; border: 1px solid var(--t-line-2); background: transparent; color: var(--t-text-2); font-size: 1.35rem; font-weight: 500; box-shadow: none; transform: none; }
.wss .ov-quick .action-link:hover { color: var(--t-amber-2); border-color: var(--t-amber-line); background: var(--t-amber-soft); transform: none; }
@media screen and (max-width: 1000px) {
  .wss .ov { padding: 2rem 1.6rem 1.2rem; }
  .wss .ov__row, .wss .ov__row--3, .wss .ov__row--2 { grid-template-columns: 1fr; }
  .wss .ov-stats { grid-template-columns: 1fr 1fr; gap: 1.6rem 0; }
  .wss .ov-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
}


/* Width utilities: the site CSP blocks inline style="" attributes, so data-driven
   widths (allocation bars) use these classes instead. */
.wss .w-0{width:0%}.wss .w-1{width:1%}.wss .w-2{width:2%}.wss .w-3{width:3%}.wss .w-4{width:4%}.wss .w-5{width:5%}.wss .w-6{width:6%}.wss .w-7{width:7%}.wss .w-8{width:8%}.wss .w-9{width:9%}
.wss .w-10{width:10%}.wss .w-11{width:11%}.wss .w-12{width:12%}.wss .w-13{width:13%}.wss .w-14{width:14%}.wss .w-15{width:15%}.wss .w-16{width:16%}.wss .w-17{width:17%}.wss .w-18{width:18%}.wss .w-19{width:19%}
.wss .w-20{width:20%}.wss .w-21{width:21%}.wss .w-22{width:22%}.wss .w-23{width:23%}.wss .w-24{width:24%}.wss .w-25{width:25%}.wss .w-26{width:26%}.wss .w-27{width:27%}.wss .w-28{width:28%}.wss .w-29{width:29%}
.wss .w-30{width:30%}.wss .w-31{width:31%}.wss .w-32{width:32%}.wss .w-33{width:33%}.wss .w-34{width:34%}.wss .w-35{width:35%}.wss .w-36{width:36%}.wss .w-37{width:37%}.wss .w-38{width:38%}.wss .w-39{width:39%}
.wss .w-40{width:40%}.wss .w-41{width:41%}.wss .w-42{width:42%}.wss .w-43{width:43%}.wss .w-44{width:44%}.wss .w-45{width:45%}.wss .w-46{width:46%}.wss .w-47{width:47%}.wss .w-48{width:48%}.wss .w-49{width:49%}
.wss .w-50{width:50%}.wss .w-51{width:51%}.wss .w-52{width:52%}.wss .w-53{width:53%}.wss .w-54{width:54%}.wss .w-55{width:55%}.wss .w-56{width:56%}.wss .w-57{width:57%}.wss .w-58{width:58%}.wss .w-59{width:59%}
.wss .w-60{width:60%}.wss .w-61{width:61%}.wss .w-62{width:62%}.wss .w-63{width:63%}.wss .w-64{width:64%}.wss .w-65{width:65%}.wss .w-66{width:66%}.wss .w-67{width:67%}.wss .w-68{width:68%}.wss .w-69{width:69%}
.wss .w-70{width:70%}.wss .w-71{width:71%}.wss .w-72{width:72%}.wss .w-73{width:73%}.wss .w-74{width:74%}.wss .w-75{width:75%}.wss .w-76{width:76%}.wss .w-77{width:77%}.wss .w-78{width:78%}.wss .w-79{width:79%}
.wss .w-80{width:80%}.wss .w-81{width:81%}.wss .w-82{width:82%}.wss .w-83{width:83%}.wss .w-84{width:84%}.wss .w-85{width:85%}.wss .w-86{width:86%}.wss .w-87{width:87%}.wss .w-88{width:88%}.wss .w-89{width:89%}
.wss .w-90{width:90%}.wss .w-91{width:91%}.wss .w-92{width:92%}.wss .w-93{width:93%}.wss .w-94{width:94%}.wss .w-95{width:95%}.wss .w-96{width:96%}.wss .w-97{width:97%}.wss .w-98{width:98%}.wss .w-99{width:99%}
.wss .w-100{width:100%}
.wss .ov-alloc > span { flex: none; }

/* ---------- 18. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .wss *, .wss *::before, .wss *::after { transition: none !important; animation-duration: 0.01ms !important; }
  .wss .spin { animation: spin 1s linear infinite !important; animation-duration: 1s !important; }
}
.wss .ov-alloc { gap: 0; }
.wss .ov-alloc > span + span { box-shadow: inset 3px 0 0 #0f1218; }

/* ==========================================================================
   DASHBOARD (users/user-profile.html)
   ========================================================================== */
.wss .dash .dash__intro { margin: 0.4rem 0 0; font-size: 1.45rem; color: var(--t-text-2); }
.wss .dash .avatar-placeholder span { font-family: var(--t-mono); font-size: 2.2rem; color: var(--t-amber-2); }
.wss .dash .dev__social { display: flex; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.wss .dash .dev__social:empty { display: none; }
.wss .dash .dev__social a { display: inline-flex; align-items: center; justify-content: center; width: 3.8rem; height: 3.8rem; border-radius: 10px; border: 1px solid var(--t-line-2); color: var(--t-text-2); }
.wss .ov-dim { color: var(--t-text-3); }
.wss .ov-locked-big { font-family: var(--t-sans); font-size: 3.2rem; color: var(--t-text-3); filter: none; }
.wss .dash-actions .ov-card { gap: 0.8rem; }
.wss .dash-actions .ov-card > a { display: block; padding: 0; }
.wss .dash-actions .btn { width: 100%; justify-content: space-between; font-weight: 500; }
.wss .dash-actions a > .btn::after { content: "\2192"; color: var(--t-text-3); }
.wss .dash-actions .inline-form { margin: 0; }
.wss .dash-actions .ov-kicker { margin-bottom: 0.4rem; }
.wss .dash-import { display: grid; gap: 0.8rem; margin: 0.4rem 0 0; padding: 1.2rem; border: 1px dashed var(--t-line-3); border-radius: 12px; }
.wss .dash-import p { margin: 0; font-size: 1.3rem; }
.wss .dash-import label { display: block; margin-bottom: 0.6rem; font-size: 1.25rem; }
.wss .dash-import .btn { justify-content: center; }
.wss .dash-danger { border-color: rgba(255, 107, 107, 0.25); }
.wss .dash-danger .btn { color: var(--t-down); }
.wss .dash-danger a:hover > .btn { border-color: rgba(255, 107, 107, 0.5); background: var(--t-down-soft); color: var(--t-down); }
.wss #stripe_button, .wss #import_button { margin: 0; }

/* ==========================================================================
   ITEM PAGE (single holding): gold-trimmed hero, photo ring, ledger cards
   ========================================================================== */
.wss .it { --it-accent: var(--t-au); --it-ring: conic-gradient(from 210deg, #fff3c4, #f5b941 18%, #8a5a12 38%, #ffd77a 55%, #b8781d 75%, #fff3c4); max-width: 120rem; margin: 0 auto; padding: var(--t-s6) var(--t-s6) var(--t-s7); display: flex; flex-direction: column; gap: var(--t-s5); }
.wss .it--silver { --it-accent: var(--t-ag); --it-ring: conic-gradient(from 210deg, #ffffff, #c9d0db 20%, #5d6675 40%, #eef1f6 58%, #8b94a3 78%, #ffffff); }
.wss .it--platinum { --it-accent: var(--t-pt); --it-ring: conic-gradient(from 210deg, #eef3fb, #9fb2cf 20%, #48546a 40%, #d5deeb 58%, #6f809c 78%, #eef3fb); }

.wss .it-crumbs { display: flex; align-items: center; gap: 0.8rem; font-size: 1.3rem; color: var(--t-text-3); }
.wss .it-crumbs a { color: var(--t-text-2); font-weight: 500; }
.wss .it-crumbs a:hover { color: var(--t-amber-2); }
.wss .it-crumbs > span:last-child { color: var(--t-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Gold trim: a gradient border painted under a solid panel */
.wss .it-hero, .wss .it-card, .wss .it-stat {
  position: relative;
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #11141b, #0b0d12) padding-box,
    linear-gradient(135deg, rgba(255, 215, 122, 0.55), rgba(255, 255, 255, 0.06) 32%, rgba(255, 255, 255, 0.04) 68%, rgba(245, 185, 65, 0.4)) border-box;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wss .it-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--t-s7);
  padding: var(--t-s7);
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 12% 0%, rgba(245, 185, 65, 0.13), transparent 60%) padding-box,
    linear-gradient(180deg, #12151c, #0a0c10) padding-box,
    linear-gradient(135deg, #ffd77a, rgba(245, 185, 65, 0.25) 28%, rgba(255, 255, 255, 0.05) 55%, rgba(245, 185, 65, 0.55)) border-box;
  box-shadow: 0 40px 90px -45px rgba(245, 185, 65, 0.45), 0 30px 70px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.wss .it-hero__glow { position: absolute; right: -14rem; bottom: -18rem; width: 46rem; height: 46rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 185, 65, 0.1), transparent); pointer-events: none; }

/* Photo in a metallic ring (gold / silver / platinum) */
.wss .it-photo { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--t-s5); }
.wss .it-photo__ring {
  width: 24rem; height: 24rem; padding: 6px; border-radius: 50%;
  background: var(--it-ring);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 24px 60px -18px rgba(245, 185, 65, 0.55), 0 0 90px -30px var(--it-accent);
}
.wss .it-photo__ring > .slider, .wss .it-photo__link { display: block; width: 100%; height: 100%; }
.wss .it-photo .slider { position: relative; width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 50%; overflow: visible; background: #07080b; }
.wss .it-photo .slider > div, .wss .it-photo .slick-list, .wss .it-photo .slick-track, .wss .it-photo .slick-slide, .wss .it-photo .slick-slide > div { height: 100%; }
.wss .it-photo .slick-list { overflow: hidden; border-radius: 50%; }
.wss .it-photo .slick-track { display: flex; }
.wss .it-photo .slick-arrow { display: none !important; }
.wss .it-photo__img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.wss .it-photo .slick-dots { position: absolute; left: 0; right: 0; bottom: -2.4rem; display: flex; justify-content: center; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.wss .it-photo .slick-dots li button { width: 0.8rem; height: 0.8rem; padding: 0; border: 0; border-radius: 50%; font-size: 0; background: var(--t-line-3); cursor: pointer; }
.wss .it-photo .slick-dots li.slick-active button { background: var(--t-amber); box-shadow: 0 0 8px var(--t-amber); }
.wss .it-id { font-family: var(--t-mono); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.08em; color: var(--t-amber-2); padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid var(--t-amber-line); background: rgba(245, 185, 65, 0.08); }

.wss .it-hero__body { position: relative; display: flex; flex-direction: column; gap: var(--t-s3); min-width: 0; }
.wss .it-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wss .it-tag { display: inline-flex; align-items: center; height: 2.6rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--t-line-2); background: rgba(255, 255, 255, 0.03); font-size: 1.2rem; font-weight: 500; color: var(--t-text-2); }
.wss .it-tag--metal { color: var(--it-accent); border-color: var(--t-line-3); background: rgba(255, 255, 255, 0.05); }
.wss .it-title { margin: 0.4rem 0 0; font-size: 4rem; line-height: 1.05; letter-spacing: -0.035em; color: #fff; }
.wss .it-sub { margin: 0; font-size: 1.5rem; color: var(--t-text-2); }
.wss .it-sub span { margin: 0 0.4rem; color: var(--t-text-3); }

.wss .it-value { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-top: var(--t-s3); padding-top: var(--t-s4); border-top: 1px solid var(--t-line); }
.wss .it-kicker { font-family: var(--t-mono); font-size: 1.1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-text-3); }
.wss .it-dim { color: var(--t-text-3); text-transform: none; letter-spacing: 0; }
.wss .it-big { font-family: var(--t-mono); font-size: 4.8rem; font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; color: var(--t-text); filter: drop-shadow(0 6px 26px rgba(245, 185, 65, 0.25)); }
.wss .it-locked { color: var(--t-text-3); filter: none; }
.wss .it-unlock { font-size: 1.4rem; }
.wss .it-pl { display: inline-flex; align-items: center; gap: 0.4rem; height: 3rem; padding: 0 1.2rem; border-radius: 999px; font-family: var(--t-mono); font-size: 1.35rem; color: var(--t-text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--t-line-2); }
.wss .it-pl span { color: inherit; opacity: 0.8; font-size: inherit; }
.wss .it-pl--up { color: var(--t-up); background: var(--t-up-soft); border-color: rgba(61, 220, 151, 0.3); box-shadow: 0 0 24px -10px rgba(61, 220, 151, 0.6); }
.wss .it-pl--down { color: var(--t-down); background: var(--t-down-soft); border-color: rgba(255, 107, 107, 0.3); }

.wss .it-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--t-s4); }
.wss .it-btn { height: 4.6rem; min-height: 4.6rem; min-width: 12rem; padding: 0 2.2rem; border-radius: 12px; font-size: 1.45rem; }
.wss .it-btn svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wss .it-btn.btn--main { background: rgba(255, 255, 255, 0.03); }
.wss .it-btn--danger:hover { color: #ffb3b3; border-color: rgba(255, 107, 107, 0.45); background: var(--t-down-soft); }

/* Key number tiles */
.wss .it-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--t-s4); }
.wss .it-stat { display: flex; flex-direction: column; gap: 0.6rem; padding: var(--t-s5); border-radius: 16px; overflow: hidden; }
.wss .it-stat::before { content: ""; position: absolute; left: 2rem; right: 2rem; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #ffd77a, transparent); opacity: 0.8; }
.wss .it-num { font-family: var(--t-mono); font-size: 2.4rem; font-weight: 500; color: var(--t-text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wss .it-stat small { font-size: 1.2rem; color: var(--t-text-3); }

/* Ledger cards */
.wss .it-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--t-s5); align-items: start; }
.wss .it-card { padding: var(--t-s5) var(--t-s6) var(--t-s6); }
.wss .it-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: var(--t-s3); }
.wss .it-card__head h2 { margin: 0; font-size: 1.9rem; letter-spacing: -0.02em; }
.wss .it-live { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--t-mono); font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-up); }
.wss .it-live i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--t-up); box-shadow: 0 0 10px var(--t-up); }
.wss .it-link { font-size: 1.35rem; }
.wss .it-ledger { margin: 0; }
.wss .it-ledger > div { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--t-line); }
.wss .it-ledger > div:last-child { border-bottom: 0; }
.wss .it-ledger dt { margin: 0; font-size: 1.4rem; color: var(--t-text-2); font-weight: 400; }
.wss .it-ledger dt small { display: block; margin-top: 0.2rem; font-size: 1.15rem; color: var(--t-text-3); }
.wss .it-ledger dd { margin: 0; font-family: var(--t-mono); font-size: 1.5rem; color: var(--t-text); text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wss .it-ledger dd a { font-family: var(--t-sans); }
.wss .it-ledger dd.it-up { color: var(--t-up); }
.wss .it-ledger dd.it-down { color: var(--t-down); }

/* Premium editor (ids + data-* attributes are used by update_premium.js) */
.wss .it-premium { display: flex; flex-direction: column; gap: 0.8rem; margin-top: var(--t-s4); padding: var(--t-s4); border-radius: 14px; border: 1px solid var(--t-amber-line); background: linear-gradient(180deg, rgba(245, 185, 65, 0.08), rgba(245, 185, 65, 0.02)); }
.wss .it-premium .premium-label { margin: 0; font-size: 1.3rem; font-weight: 600; color: var(--t-amber-2); }
.wss .it-premium .premium-controls { display: flex; align-items: center; gap: 0.8rem; position: relative; }
.wss .it-premium .it-prefix { position: absolute; left: 1.4rem; font-family: var(--t-mono); color: var(--t-text-3); pointer-events: none; }
.wss .it-premium .premium-input { flex: 1; min-width: 0; height: var(--t-control); padding: 0 1.4rem 0 2.8rem; font-family: var(--t-mono); font-size: 1.5rem; border-radius: 10px; border: 1px solid var(--t-line-2); background: #07080b; color: var(--t-text); }
.wss .it-premium .premium-input:focus { border-color: var(--t-amber-line); box-shadow: 0 0 0 3px rgba(245, 185, 65, 0.15); outline: 0; }
.wss .it-premium .btn { height: var(--t-control); min-height: var(--t-control); min-width: 9rem; }
.wss .it-premium small { font-size: 1.2rem; color: var(--t-text-3); }

.wss .it-notes p { margin: 0; font-size: 1.5rem; line-height: 1.7; color: var(--t-text-2); }
.wss .it-batch { display: grid; grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); gap: var(--t-s4); }
.wss .it-batch__coin { padding: 0 var(--t-s4); border: 1px solid var(--t-line); border-radius: 12px; }

@media screen and (max-width: 1100px) {
  .wss .it-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wss .it-grid { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 760px) {
  .wss .it { padding: var(--t-s4) var(--t-s4) var(--t-s6); }
  .wss .it-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: var(--t-s6); padding: var(--t-s6) var(--t-s4); }
  .wss .it-photo__ring { width: 20rem; height: 20rem; }
  .wss .it-tags, .wss .it-actions { justify-content: center; }
  .wss .it-value { align-items: center; }
  .wss .it-title { font-size: 3rem; }
  .wss .it-big { font-size: 3.8rem; }
  .wss .it-actions .it-btn { flex: 1 1 0; min-width: 0; padding: 0 1rem; }
  .wss .it-card { padding: var(--t-s4); }
  .wss .it-num { font-size: 2rem; }
}
.wss .it-photo .slick-dots li:only-child { display: none; }
.wss .it-photo { gap: var(--t-s6); }
.wss .it-premium { text-align: left; align-items: stretch; }
.wss .it-premium .premium-controls { width: 100%; justify-content: flex-start; margin: 0; }

/* ---------- Item page upgrades: engraved pattern, shimmer, value bars, lift ---------- */
.wss .it-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    repeating-radial-gradient(circle at 88% 12%, rgba(245, 185, 65, 0.07) 0 1px, transparent 1px 9px),
    repeating-radial-gradient(circle at 96% 88%, rgba(245, 185, 65, 0.05) 0 1px, transparent 1px 13px);
  -webkit-mask-image: linear-gradient(105deg, transparent 38%, #000 78%);
  mask-image: linear-gradient(105deg, transparent 38%, #000 78%);
}
.wss .it-hero::after {
  content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #fff6dc, transparent);
  animation: it-sheen 6s ease-in-out infinite;
}
@keyframes it-sheen { 0% { left: -40%; } 55%, 100% { left: 100%; } }
.wss .it-photo__ring { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.wss .it-photo__ring:hover { transform: rotate(-2deg) scale(1.02); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 30px 70px -18px rgba(245, 185, 65, 0.75), 0 0 110px -26px var(--it-accent); }

.wss .it-bars { display: flex; flex-direction: column; gap: 0.9rem; margin-top: var(--t-s3); max-width: 56rem; }
.wss .it-bar { display: grid; grid-template-columns: 13rem minmax(0, 1fr) auto; align-items: center; gap: 1.4rem; }
.wss .it-bar__label { font-size: 1.3rem; color: var(--t-text-2); }
.wss .it-bar__label small { display: block; font-size: 1.1rem; color: var(--t-text-3); }
.wss .it-bar__track { position: relative; height: 1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); overflow: hidden; }
.wss .it-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.wss .it-bar__fill--cost { background: linear-gradient(90deg, #4a5262, #8b94a3); }
.wss .it-bar__fill--worth { background: linear-gradient(90deg, #b8781d, #f5b941 60%, #ffe6a3); box-shadow: 0 0 18px rgba(245, 185, 65, 0.55); }
.wss .it-bar__num { font-family: var(--t-mono); font-size: 1.4rem; color: var(--t-text); text-align: right; min-width: 12rem; }

.wss .it-stat { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.wss .it-stat:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(245, 185, 65, 0.35), 0 30px 70px -40px rgba(0, 0, 0, 0.95); }
.wss .it-card { transition: box-shadow 0.2s ease; }
@media (prefers-reduced-motion: reduce) {
  .wss .it-hero::after { animation: none; display: none; }
  .wss .it-stat, .wss .it-photo__ring { transition: none; }
  .wss .it-stat:hover, .wss .it-photo__ring:hover { transform: none; }
}
@media screen and (max-width: 760px) {
  .wss .it-bars { width: 100%; }
  .wss .it-bar { grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 1rem; text-align: left; }
  .wss .it-bar__num { min-width: 0; font-size: 1.3rem; }
}

/* ==========================================================================
   HOLDINGS LIST (Gold / Silver / Platinum)
   ========================================================================== */
.wss .hl { --hl-accent: var(--t-au); max-width: 128rem; margin: 0 auto; padding: var(--t-s6) var(--t-s6) var(--t-s7); display: flex; flex-direction: column; gap: var(--t-s5); }
.wss .hl--silver { --hl-accent: var(--t-ag); }
.wss .hl--platinum { --hl-accent: var(--t-pt); }

.wss .hl-head { display: flex; align-items: center; justify-content: space-between; gap: var(--t-s4); flex-wrap: wrap; }
.wss .hl-head__title { display: flex; align-items: center; gap: 1.6rem; }
.wss .hl-head h1 { margin: 0; font-size: 3.6rem; letter-spacing: -0.035em; }
.wss .hl-head p { margin: 0.2rem 0 0; font-size: 1.35rem; color: var(--t-text-3); }
.wss .hl-mono { font-family: var(--t-mono); color: var(--t-text-2); }
.wss .hl-sym {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 5.4rem; height: 5.4rem; border-radius: 14px;
  font-family: var(--t-mono); font-size: 1.6rem; font-weight: 600; color: #1a1204;
  background: linear-gradient(145deg, #fff3c4, #f5b941 45%, #b8781d);
  box-shadow: 0 0 0 1px rgba(255, 215, 122, 0.6), 0 12px 34px -10px rgba(245, 185, 65, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.wss .hl--silver .hl-sym { background: linear-gradient(145deg, #ffffff, #c9d0db 45%, #6b7584); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 12px 34px -10px rgba(223, 228, 236, 0.5), inset 0 1px 0 #fff; }
.wss .hl--platinum .hl-sym { background: linear-gradient(145deg, #eef3fb, #9fb2cf 45%, #4d5a72); box-shadow: 0 0 0 1px rgba(200, 215, 235, 0.5), 0 12px 34px -10px rgba(143, 163, 194, 0.6), inset 0 1px 0 #fff; }
.wss .hl-sym--lg { width: 7rem; height: 7rem; font-size: 2rem; border-radius: 18px; }

.wss .hl-search { flex: 0 1 46rem; display: flex; align-items: center; gap: 0.8rem; height: 4.8rem; padding: 0 0.6rem 0 1.4rem; border-radius: 14px; border: 1px solid var(--t-line-2); background: #0b0d12; color: var(--t-text-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.wss .hl-search:focus-within { border-color: var(--t-amber-line); box-shadow: 0 0 0 3px rgba(245, 185, 65, 0.12); }
.wss .hl-search svg { width: 1.7rem; height: 1.7rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.wss .hl-search input[type="text"] { flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--t-text); font-size: 1.45rem; }
.wss .hl-search input[type="text"]:focus { border: 0; box-shadow: none; outline: 0; }
.wss .hl-search .btn { height: 3.6rem; min-height: 3.6rem; }

/* Summary strip with gold trim */
.wss .hl-summary {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  border: 1px solid transparent; border-radius: 20px;
  background:
    radial-gradient(50rem 20rem at 0% 0%, rgba(245, 185, 65, 0.14), transparent 60%) padding-box,
    linear-gradient(180deg, #12151c, #0a0c10) padding-box,
    linear-gradient(120deg, #ffd77a, rgba(245, 185, 65, 0.2) 30%, rgba(255, 255, 255, 0.05) 60%, rgba(245, 185, 65, 0.5)) border-box;
  box-shadow: 0 36px 80px -46px rgba(245, 185, 65, 0.5), 0 30px 70px -40px rgba(0, 0, 0, 0.95);
}
.wss .hl-summary::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 1px; background: linear-gradient(90deg, transparent, #fff6dc, transparent); animation: it-sheen 7s ease-in-out infinite; pointer-events: none; }
.wss .hl-summary__glow { position: absolute; right: -10rem; top: -14rem; width: 36rem; height: 36rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 185, 65, 0.08), transparent); pointer-events: none; }
.wss .hl-sum { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: var(--t-s5) var(--t-s5); min-width: 0; }
.wss .hl-sum + .hl-sum { border-left: 1px solid var(--t-line); }
.wss .hl-kicker { font-family: var(--t-mono); font-size: 1.1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-text-3); }
.wss .hl-sum--lead .hl-kicker { color: var(--t-amber-2); }
.wss .hl-sum__big { font-family: var(--t-mono); font-size: 3.4rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; filter: drop-shadow(0 6px 22px rgba(245, 185, 65, 0.3)); }
.wss .hl-sum__num { font-family: var(--t-mono); font-size: 2.2rem; color: var(--t-text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wss .hl-sum small { font-size: 1.2rem; color: var(--t-text-3); }
.wss .hl-sum__lock { font-size: 1.4rem; }
.wss .hl-up { color: var(--t-up); }
.wss .hl-down { color: var(--t-down); }

/* Sort pills (hidden helper forms keep their legacy display:none) */
.wss .hl-sort { padding: 0; background: none; }
.wss .hl-sort .zero-section__date-options { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; justify-content: flex-start; }
.wss .hl-sort .form__field { margin: 0; }
.wss .hl-pill { display: inline-flex; align-items: center; height: 3.8rem; padding: 0 1.6rem; border-radius: 999px; border: 1px solid var(--t-line-2); background: rgba(255, 255, 255, 0.02); color: var(--t-text-2); font-size: 1.35rem; font-weight: 500; }
.wss .hl-pill:hover { color: var(--t-text); border-color: var(--t-line-3); }
.wss .hl-pill.is-on { color: var(--t-amber-2); border-color: var(--t-amber-line); background: rgba(245, 185, 65, 0.1); box-shadow: 0 0 22px -8px rgba(245, 185, 65, 0.6); }
.wss .hl-searching { margin: 1rem 0 0; font-size: 1.35rem; color: var(--t-text-3); }

/* Holdings ledger */
.wss .hl-table {
  border: 1px solid transparent; border-radius: 20px; overflow: hidden;
  background:
    linear-gradient(180deg, #10131a, #0b0d12) padding-box,
    linear-gradient(160deg, rgba(255, 215, 122, 0.45), rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.04) 75%, rgba(245, 185, 65, 0.3)) border-box;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
}
.wss .hl-row { display: grid; grid-template-columns: minmax(26rem, 2.6fr) 0.9fr 0.6fr 1fr 1.2fr 1.2fr 17.4rem; align-items: center; gap: 1.6rem; padding: 1.6rem 2.4rem; border-bottom: 1px solid var(--t-line); transition: background 0.15s ease; }
.wss .hl-row:last-child { border-bottom: 0; }
.wss .hl-row:not(.hl-row--head):hover { background: linear-gradient(90deg, rgba(245, 185, 65, 0.06), transparent 60%); }
.wss .hl-row--head { padding-top: 1.4rem; padding-bottom: 1.4rem; background: rgba(255, 255, 255, 0.015); }
.wss .hl-row--head span { font-family: var(--t-mono); font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-text-3); }
.wss .hl-row > :nth-child(n+2):not(.hl-actions) { text-align: center; }
.wss .hl-item { display: flex; align-items: center; gap: 1.6rem; min-width: 0; color: var(--t-text); }
.wss .hl-item:hover strong { color: var(--t-amber-2); }
.wss .hl-thumb { flex: none; width: 5.6rem; height: 5.6rem; padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, #fff3c4, #f5b941 18%, #8a5a12 38%, #ffd77a 55%, #b8781d 75%, #fff3c4); box-shadow: 0 8px 22px -8px rgba(245, 185, 65, 0.7); }
.wss .hl--silver .hl-thumb { background: conic-gradient(from 210deg, #fff, #c9d0db 20%, #5d6675 40%, #eef1f6 58%, #8b94a3 78%, #fff); box-shadow: 0 8px 22px -8px rgba(223, 228, 236, 0.45); }
.wss .hl--platinum .hl-thumb { background: conic-gradient(from 210deg, #eef3fb, #9fb2cf 20%, #48546a 40%, #d5deeb 58%, #6f809c 78%, #eef3fb); box-shadow: 0 8px 22px -8px rgba(143, 163, 194, 0.55); }
.wss .hl-thumb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #07080b; border: 2px solid #07080b; }
.wss .hl-item__text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.wss .hl-item__text strong { font-size: 1.55rem; font-weight: 600; color: var(--t-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s ease; }
.wss .hl-item__top { display: flex; align-items: center; gap: 0.8rem; }
.wss .hl-id { font-family: var(--t-mono); font-size: 1.1rem; font-weight: 600; color: var(--t-amber-2); padding: 0.1rem 0.6rem; border-radius: 6px; border: 1px solid var(--t-amber-line); }
.wss .hl-meta { font-size: 1.2rem; color: var(--t-text-3); }
.wss .hl-cell { font-family: var(--t-mono); font-size: 1.45rem; color: var(--t-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wss .hl-cell a { font-family: var(--t-sans); font-size: 1.3rem; }
.wss .hl-melt { color: var(--t-amber-2); }
.wss .hl-pl { display: inline-block; }
.wss .hl-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; }
.wss .hl-act { display: inline-flex; align-items: center; justify-content: center; height: 3.4rem; min-width: 5.6rem; padding: 0 1.2rem; border-radius: 9px; border: 1px solid var(--t-line-2); background: rgba(255, 255, 255, 0.02); color: var(--t-text); font-size: 1.3rem; font-weight: 500; }
.wss .hl-act:hover { color: var(--t-amber-2); border-color: var(--t-amber-line); background: rgba(245, 185, 65, 0.08); }
.wss .hl-act--sell { color: var(--t-amber-ink); border-color: transparent; background: var(--t-gold-grad); box-shadow: 0 8px 20px -10px rgba(245, 185, 65, 0.8); }
.wss .hl-act--sell:hover { color: var(--t-amber-ink); background: linear-gradient(180deg, #ffe29a, #f5b941); border-color: transparent; }
.wss .hl-act--del { min-width: 3.4rem; width: 3.4rem; padding: 0; color: var(--t-text-3); }
.wss .hl-act--del:hover { color: var(--t-down); border-color: rgba(255, 107, 107, 0.45); background: var(--t-down-soft); }
.wss .hl-act svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wss .hl-empty { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; padding: var(--t-s8) var(--t-s5); text-align: center; border: 1px dashed var(--t-line-2); border-radius: 20px; background: rgba(255, 255, 255, 0.01); }
.wss .hl-empty h2 { margin: 0.6rem 0 0; font-size: 2.4rem; }
.wss .hl-empty p { margin: 0; color: var(--t-text-3); }

/* Pagination */
.wss .hl ~ .pagination, .wss .hl .pagination { margin: 0; padding: 0; background: none; }
.wss .hl .pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; padding: 0; margin: 0; list-style: none; }
.wss .hl .pagination .btn { height: 3.8rem; min-height: 3.8rem; min-width: 3.8rem; padding: 0 1.2rem; font-size: 1.35rem; }

@media screen and (max-width: 1180px) {
  .wss .hl-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wss .hl-sum--lead { grid-column: 1 / -1; border-bottom: 1px solid var(--t-line); }
  .wss .hl-sum--lead + .hl-sum { border-left: 0; }
}
@media screen and (max-width: 980px) {
  .wss .hl-row--head { display: none; }
  .wss .hl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.6rem; padding: 1.8rem; }
  .wss .hl-item { grid-column: 1 / -1; }
  .wss .hl-row > :nth-child(n+2):not(.hl-actions) { text-align: left; }
  .wss .hl-cell { display: flex; flex-direction: column; gap: 0.2rem; white-space: normal; }
  .wss .hl-cell::before { content: attr(data-label); font-family: var(--t-mono); font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-text-3); }
  .wss .hl-actions { grid-column: 1 / -1; justify-content: stretch; }
  .wss .hl-actions .hl-act:not(.hl-act--del) { flex: 1; }
}
@media screen and (max-width: 640px) {
  .wss .hl { padding: var(--t-s4) var(--t-s4) var(--t-s6); }
  .wss .hl-head h1 { font-size: 2.8rem; }
  .wss .hl-search { flex: 1 1 100%; }
  .wss .hl-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wss .hl-sum { padding: var(--t-s4); }
  /* children: 1 = glow, 2 = lead, 3-6 = tiles in a 2x2 grid */
  .wss .hl-sum:nth-child(3), .wss .hl-sum:nth-child(5) { border-left: 0; }
  .wss .hl-sum:nth-child(4), .wss .hl-sum:nth-child(6) { border-left: 1px solid var(--t-line); }
  .wss .hl-sum:nth-child(5), .wss .hl-sum:nth-child(6) { border-top: 1px solid var(--t-line); }
  .wss .hl-sum__big { font-size: 2.8rem; }
  .wss .hl-sum__num { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) { .wss .hl-summary::after { animation: none; display: none; } }

/* Form cards (add / edit / sell / delete): same gold trim as the item page */
.wss .formPage .formWrapper {
  position: relative; overflow: hidden;
  border: 1px solid transparent; border-radius: 20px;
  background:
    radial-gradient(44rem 18rem at 0% 0%, rgba(245, 185, 65, 0.1), transparent 60%) padding-box,
    linear-gradient(180deg, #12151c, #0a0c10) padding-box,
    linear-gradient(135deg, rgba(255, 215, 122, 0.8), rgba(245, 185, 65, 0.18) 30%, rgba(255, 255, 255, 0.05) 60%, rgba(245, 185, 65, 0.45)) border-box;
  box-shadow: 0 40px 90px -50px rgba(245, 185, 65, 0.45), 0 30px 70px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.wss .formPage .formWrapper::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 1px; background: linear-gradient(90deg, transparent, #fff6dc, transparent); animation: it-sheen 7s ease-in-out infinite; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wss .formPage .formWrapper::after { animation: none; display: none; } }

/* ==========================================================================
   ACCOUNT PAGE (profile hub: subscription, profile, security, data, danger)
   ========================================================================== */
.wss .ac { max-width: 120rem; margin: 0 auto; padding: var(--t-s6) var(--t-s6) var(--t-s7); display: flex; flex-direction: column; gap: var(--t-s5); }
.wss .ac-kicker { margin: 0; font-family: var(--t-mono); font-size: 1.1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-amber-2); }

.wss .ac-hero, .wss .ac-card {
  position: relative; overflow: hidden;
  border: 1px solid transparent; border-radius: 20px;
  background:
    linear-gradient(180deg, #11141b, #0b0d12) padding-box,
    linear-gradient(135deg, rgba(255, 215, 122, 0.5), rgba(255, 255, 255, 0.06) 32%, rgba(255, 255, 255, 0.04) 68%, rgba(245, 185, 65, 0.35)) border-box;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.wss .ac-hero {
  display: flex; align-items: center; justify-content: space-between; gap: var(--t-s6); flex-wrap: wrap; padding: var(--t-s6) var(--t-s7);
  background:
    radial-gradient(50rem 22rem at 0% 0%, rgba(245, 185, 65, 0.13), transparent 60%) padding-box,
    linear-gradient(180deg, #12151c, #0a0c10) padding-box,
    linear-gradient(135deg, #ffd77a, rgba(245, 185, 65, 0.22) 28%, rgba(255, 255, 255, 0.05) 55%, rgba(245, 185, 65, 0.5)) border-box;
  box-shadow: 0 40px 90px -50px rgba(245, 185, 65, 0.45), 0 30px 70px -40px rgba(0, 0, 0, 0.95);
}
.wss .ac-hero::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 1px; background: linear-gradient(90deg, transparent, #fff6dc, transparent); animation: it-sheen 7s ease-in-out infinite; pointer-events: none; }
.wss .ac-hero__who { display: flex; align-items: center; gap: var(--t-s5); min-width: 0; }
.wss .ac-avatar { flex: none; width: 9.6rem; height: 9.6rem; border-radius: 50%; object-fit: cover; padding: 4px; background: conic-gradient(from 210deg, #fff3c4, #f5b941 18%, #8a5a12 38%, #ffd77a 55%, #b8781d 75%, #fff3c4); box-shadow: 0 16px 40px -14px rgba(245, 185, 65, 0.7); }
.wss .ac-hero h1 { margin: 0.4rem 0 0; font-size: 3.4rem; letter-spacing: -0.03em; color: #fff; }
.wss .ac-intro { margin: 0.4rem 0 0; font-size: 1.45rem; color: var(--t-text-2); }
.wss .ac-social { display: flex; gap: 1rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.wss .ac-social:empty { display: none; }
.wss .ac-plan { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; text-align: right; }
.wss .ac-plan__name { font-size: 3.2rem; font-weight: 600; letter-spacing: -0.03em; color: var(--t-text); line-height: 1; }
.wss .ac-badge { display: inline-flex; align-items: center; height: 2.6rem; padding: 0 1rem; border-radius: 999px; font-size: 1.2rem; font-weight: 500; color: var(--t-amber-2); border: 1px solid var(--t-amber-line); background: rgba(245, 185, 65, 0.08); }
.wss .ac-link { font-size: 1.4rem; }
.wss .ac-link--block { display: inline-block; margin-top: 0.4rem; }

.wss .ac-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--t-s5); align-items: start; }
.wss .ac-card { display: flex; flex-direction: column; gap: var(--t-s4); padding: var(--t-s5) var(--t-s6) var(--t-s6); }
.wss .ac-card header h2 { margin: 0; font-size: 1.9rem; letter-spacing: -0.02em; }
.wss .ac-card header p { margin: 0.4rem 0 0; font-size: 1.35rem; color: var(--t-text-3); }
.wss .ac-actions { display: flex; flex-direction: column; gap: 1rem; }
.wss .ac-actions > a, .wss .ac-actions > form { display: block; margin: 0; }
.wss .ac-btn {
  width: 100%; height: auto; min-height: 6.4rem; padding: 1.2rem 4.4rem 1.2rem 1.8rem;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.3rem;
  text-align: left; white-space: normal; border-radius: 14px; position: relative;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--t-line-2);
}
.wss .ac-btn::after { content: "›"; position: absolute; right: 1.8rem; top: 50%; transform: translateY(-50%); font-size: 2.2rem; color: var(--t-text-3); transition: transform 0.15s ease, color 0.15s ease; }
.wss .ac-btn span { font-size: 1.5rem; font-weight: 600; color: var(--t-text); }
.wss .ac-btn small { font-size: 1.25rem; font-weight: 400; color: var(--t-text-3); }
.wss .ac-btn:hover { border-color: var(--t-amber-line); background: linear-gradient(90deg, rgba(245, 185, 65, 0.09), rgba(245, 185, 65, 0.02)); }
.wss .ac-btn:hover::after { color: var(--t-amber-2); transform: translate(3px, -50%); }
.wss .ac-btn:disabled { opacity: 0.55; }
.wss .ac-import { display: flex; flex-direction: column; gap: 1rem; margin: -0.6rem 0 0; }
.wss .ac-import p { margin: 0; }
.wss .ac-import label { font-size: 1.3rem; color: var(--t-text-2); }

.wss .ac-card--danger {
  background:
    linear-gradient(180deg, #14100f, #0d0b0b) padding-box,
    linear-gradient(135deg, rgba(255, 107, 107, 0.5), rgba(255, 255, 255, 0.05) 40%, rgba(255, 107, 107, 0.3)) border-box;
}
.wss .ac-card--danger header h2 { color: #ffb3b3; }
.wss .ac-btn--danger span { color: #ffb3b3; }
.wss .ac-btn--danger:hover { border-color: rgba(255, 107, 107, 0.5); background: var(--t-down-soft); }
.wss .ac-btn--danger:hover::after { color: var(--t-down); }

@media screen and (max-width: 980px) { .wss .ac-grid { grid-template-columns: minmax(0, 1fr); } }
@media screen and (max-width: 640px) {
  .wss .ac { padding: var(--t-s4) var(--t-s4) var(--t-s6); }
  .wss .ac-hero { padding: var(--t-s5) var(--t-s4); }
  .wss .ac-hero__who { flex-direction: column; text-align: center; width: 100%; }
  .wss .ac-social { justify-content: center; }
  .wss .ac-plan { align-items: center; text-align: center; width: 100%; }
  .wss .ac-card { padding: var(--t-s4); }
}
@media (prefers-reduced-motion: reduce) { .wss .ac-hero::after { animation: none; display: none; } }

/* ==========================================================================
   SIDEBAR: icon rail + hover flyout (desktop), coin icons, trial star
   ========================================================================== */
/* Shared pieces (rail + phone drawer) */
.wss .app-side__mark { display: none; }
.wss .app-nav__text { white-space: nowrap; }
.wss .app-nav__dot {
  flex: none; width: 2.2rem; height: 2.2rem; margin: 0 -0.2rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--t-mono); font-size: 0.85rem; font-weight: 700; letter-spacing: 0; color: rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 3px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.wss .app-nav__dot--au { background: radial-gradient(circle at 35% 30%, #fff3c4, #f5b941 55%, #9a6414); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 3px rgba(0, 0, 0, 0.35), 0 0 12px -2px rgba(245, 185, 65, 0.8); }
.wss .app-nav__dot--ag { background: radial-gradient(circle at 35% 30%, #ffffff, #c9d0db 55%, #6b7584); }
.wss .app-nav__dot--pt { background: radial-gradient(circle at 35% 30%, #eef3fb, #9fb2cf 55%, #4d5a72); }
.wss .gold-link svg { color: var(--t-au); }
.wss .silver-link svg { color: var(--t-ag); }
.wss .platinum-link svg { color: var(--t-pt); }
.wss .app-trial__icon { display: none; }

/* Active item: gold pill + glowing rail marker */
.wss .app-nav__link { position: relative; }
.wss .app-nav__link.is-active::before { content: ""; position: absolute; left: -1.4rem; top: 0.8rem; bottom: 0.8rem; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #ffe6a3, #f5b941); box-shadow: 0 0 12px rgba(245, 185, 65, 0.9); }
.wss .app-nav__link.is-active { background: linear-gradient(90deg, rgba(245, 185, 65, 0.16), rgba(245, 185, 65, 0.04)); box-shadow: inset 0 0 0 1px rgba(245, 185, 65, 0.28), 0 8px 24px -14px rgba(245, 185, 65, 0.7); }

/* Gold trim down the sidebar edge */
.wss .app-side { background: radial-gradient(30rem 40rem at 0% 0%, rgba(245, 185, 65, 0.06), transparent 60%), linear-gradient(180deg, #0a0b10, #07080b); border-right: 0; }
.wss .app-side::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, rgba(255, 215, 122, 0.55), rgba(245, 185, 65, 0.12) 35%, rgba(255, 255, 255, 0.05) 70%, rgba(245, 185, 65, 0.3)); pointer-events: none; }

@media screen and (min-width: 1001px) {
  .wss { --t-rail: 7.6rem; }
  .wss .app-side {
    flex: 0 0 auto;
    width: var(--t-side);
    max-width: var(--t-rail);
    margin-right: 0;
    overflow-x: hidden;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
    transition: max-width 0.22s ease, margin-right 0.22s ease, box-shadow 0.22s ease;
    transition-delay: 0.05s;
  }
  .wss .app-side:hover, .wss .app-side:focus-within {
    max-width: var(--t-side);
    margin-right: calc(var(--t-rail) - var(--t-side));   /* opens over the page instead of pushing it */
    box-shadow: 30px 0 80px -30px rgba(0, 0, 0, 0.95), 18px 0 60px -40px rgba(245, 185, 65, 0.35);
    transition-delay: 0.12s;
  }

  /* Brand: mark on the rail, full logo when open */
  .wss .app-side__brand { position: relative; height: 6.6rem; padding: 0; display: flex; align-items: center; }
  .wss .app-side__mark { display: block; width: 4.8rem; height: 4.8rem; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(245, 185, 65, 0.35)); transition: opacity 0.18s ease; }
  .wss .app-side__lockup { position: absolute; left: 0.4rem; top: 0; width: 16rem !important; max-width: none !important; opacity: 0; transition: opacity 0.18s ease; }
  .wss .app-side:hover .app-side__mark, .wss .app-side:focus-within .app-side__mark { opacity: 0; }
  .wss .app-side:hover .app-side__lockup, .wss .app-side:focus-within .app-side__lockup { opacity: 1; }

  /* Labels fade in; group titles become hairlines on the rail */
  .wss .app-nav__text { opacity: 0; transition: opacity 0.15s ease; }
  .wss .app-side:hover .app-nav__text, .wss .app-side:focus-within .app-nav__text { opacity: 1; transition-delay: 0.1s; }
  .wss .app-nav__link { padding: 0 1.5rem; width: 100%; min-width: 4.8rem; }
  .wss .app-nav__label { position: relative; height: 1.6rem; overflow: hidden; white-space: nowrap; color: transparent; transition: color 0.15s ease; }
  .wss .app-nav__label::before { content: ""; position: absolute; left: 1.2rem; width: 2.4rem; top: 0.5rem; height: 1px; background: var(--t-line-3); transition: opacity 0.15s ease; }
  .wss .app-side:hover .app-nav__label, .wss .app-side:focus-within .app-nav__label { color: var(--t-text-3); }
  .wss .app-side:hover .app-nav__label::before, .wss .app-side:focus-within .app-nav__label::before { opacity: 0; }
  .wss .app-side { gap: 1.6rem; }

  /* Trial: star on the rail, full card when open */
  .wss .app-trial { padding: 0; border: 0; background: none; box-shadow: none; }
  .wss .app-trial > :not(.app-trial__icon) { display: none; }
  .wss .app-trial__icon { display: inline-flex; align-items: center; justify-content: center; width: 4.8rem; height: 4.8rem; border-radius: 12px; color: var(--t-amber-ink); background: var(--t-gold-grad); box-shadow: 0 10px 26px -10px rgba(245, 185, 65, 0.9); }
  .wss .app-trial__icon svg { width: 2rem; height: 2rem; fill: currentColor; }
  .wss .app-side:hover .app-trial, .wss .app-side:focus-within .app-trial { padding: 1.6rem; border: 1px solid rgba(245, 185, 65, 0.32); background: linear-gradient(180deg, #13110b, #0c0e13); box-shadow: 0 20px 50px -30px rgba(245, 185, 65, 0.6); min-width: 23rem; }
  .wss .app-side:hover .app-trial > :not(.app-trial__icon), .wss .app-side:focus-within .app-trial > :not(.app-trial__icon) { display: revert; }
  .wss .app-side:hover .app-trial .btn, .wss .app-side:focus-within .app-trial .btn { display: inline-flex; }
  .wss .app-side:hover .app-trial__icon, .wss .app-side:focus-within .app-trial__icon { display: none; }

  /* Full logo moves into the top bar while the rail shows the mark */
  .wss .app-top__brand { display: inline-flex; align-items: center; flex: none; padding: 0; margin-right: 0.4rem; }
  .wss .app-top__brand img { height: 4.2rem; width: auto; max-width: none; }
}
@media screen and (min-width: 1001px) and (prefers-reduced-motion: reduce) {
  .wss .app-side, .wss .app-nav__text, .wss .app-side__mark, .wss .app-side__lockup { transition: none; }
}
@media screen and (min-width: 1001px) {
  /* No logo in the rail (the top bar has it): Home sits first, no divider above it */
  .wss .app-side > .app-nav:first-of-type .app-nav__label::before { display: none; }
  .wss .app-side { padding-top: 1.4rem; }
}

/* ---------- Sidebar: engraved guilloché background + travelling edge light ----------
   Same idea as the item hero: two sets of fine gold rings whose lines cross
   into a moiré. Centres sit on the rail's middle so the pattern looks right
   closed, and the rings simply extend when the flyout opens. */
.wss .app-side { isolation: isolate; }
.wss .app-side::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 3.8rem 9rem, rgba(245, 185, 65, 0.15) 0 1px, transparent 1px 8px),
    repeating-radial-gradient(circle at 3.8rem calc(100% - 9rem), rgba(245, 185, 65, 0.12) 0 1px, transparent 1px 11px),
    repeating-radial-gradient(circle at 16rem 50%, rgba(255, 230, 170, 0.06) 0 1px, transparent 1px 14px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.8) 25%, rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0.35) 58%, rgba(0, 0, 0, 0.85) 80%, #000 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.8) 25%, rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0.35) 58%, rgba(0, 0, 0, 0.85) 80%, #000 100%);
}
/* Warm glow pooled at the top and bottom of the rail */
.wss .app-side {
  background:
    radial-gradient(14rem 22rem at 3.8rem 0%, rgba(245, 185, 65, 0.12), transparent 70%),
    radial-gradient(14rem 20rem at 3.8rem 100%, rgba(245, 185, 65, 0.08), transparent 70%),
    linear-gradient(180deg, #0b0c11, #07080b);
}
/* Gold edge with a slow light running down it */
.wss .app-side::after {
  width: 1px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 246, 220, 0.95) 50%, transparent 100%) 0 -30% / 100% 18% no-repeat,
    linear-gradient(180deg, rgba(255, 215, 122, 0.6), rgba(245, 185, 65, 0.14) 35%, rgba(255, 255, 255, 0.05) 65%, rgba(245, 185, 65, 0.35));
  box-shadow: 0 0 10px rgba(245, 185, 65, 0.25);
  animation: rail-light 9s ease-in-out infinite;
}
@keyframes rail-light { 0% { background-position: 0 -30%, 0 0; } 60%, 100% { background-position: 0 130%, 0 0; } }
/* Icons sit on small "struck" medallions so they read clearly over the pattern */
@media screen and (min-width: 1001px) {
  .wss .app-nav__link:not(.is-active):hover { background: rgba(245, 185, 65, 0.07); box-shadow: inset 0 0 0 1px rgba(245, 185, 65, 0.18); }
}
@media (prefers-reduced-motion: reduce) { .wss .app-side::after { animation: none; } }

/* Sidebar pattern v2: painted on the sidebar's own background (not a pseudo-element),
   so it always fills the full height, even when the menu scrolls on short screens.
   Top layer is a soft fade that calms the middle without leaving it empty. */
.wss .app-side::before { content: none; display: none; }
.wss .app-side {
  background:
    linear-gradient(180deg, rgba(255, 215, 122, 0.6), rgba(245, 185, 65, 0.14) 35%, rgba(255, 255, 255, 0.05) 65%, rgba(245, 185, 65, 0.35)) right top / 1px 100% no-repeat,
    linear-gradient(180deg, transparent 0%, rgba(8, 9, 13, 0.35) 30%, rgba(8, 9, 13, 0.45) 50%, rgba(8, 9, 13, 0.35) 70%, transparent 100%),
    repeating-radial-gradient(circle at 3.8rem 9rem, rgba(245, 185, 65, 0.15) 0 1px, transparent 1px 8px),
    repeating-radial-gradient(circle at 3.8rem calc(100% - 9rem), rgba(245, 185, 65, 0.12) 0 1px, transparent 1px 11px),
    repeating-radial-gradient(circle at 16rem 50%, rgba(255, 230, 170, 0.06) 0 1px, transparent 1px 14px),
    radial-gradient(14rem 22rem at 3.8rem 0%, rgba(245, 185, 65, 0.12), transparent 70%),
    radial-gradient(14rem 20rem at 3.8rem 100%, rgba(245, 185, 65, 0.08), transparent 70%),
    linear-gradient(180deg, #0b0c11, #07080b);
  background-attachment: scroll;
}

/* The edge line is now part of the background above; ::after only carries the travelling light */
.wss .app-side::after {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 246, 220, 0.95) 50%, transparent 100%) 0 -30% / 100% 18% no-repeat;
  box-shadow: none;
}
@keyframes rail-light { 0% { background-position: 0 -30%; } 60%, 100% { background-position: 0 130%; } }

/* ---------- Top bar v2: taller, bigger logo, gold rule along the bottom, search on the right ---------- */
.wss #sticky-bar.app-top,
.wss #sticky-bar.app-top.sticky {
  border-bottom: 0;
  background:
    radial-gradient(60rem 10rem at 18% 0%, rgba(245, 185, 65, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(11, 12, 17, 0.96), rgba(7, 8, 11, 0.94));
  box-shadow: 0 14px 36px -18px rgba(245, 185, 65, 0.4), 0 20px 40px -24px rgba(0, 0, 0, 0.9);
}
/* Gold rule that brightens toward the centre and fades at both ends */
.wss #sticky-bar.app-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(245, 185, 65, 0.15), rgba(255, 215, 122, 0.85) 30%, #fff1c9 50%, rgba(255, 215, 122, 0.85) 70%, rgba(245, 185, 65, 0.15));
  box-shadow: 0 0 12px rgba(245, 185, 65, 0.55);
}
@media screen and (min-width: 1001px) {
  .wss #sticky-bar.app-top,
  .wss #sticky-bar.app-top.sticky { min-height: 8.8rem; padding: 0 3.2rem; gap: 1.6rem; }
  .wss .app-top__brand { margin-right: 1.2rem; }
  .wss .app-top__brand img { height: 5.8rem; }
  .wss .app-top__search { margin-left: auto; flex: 0 1 38rem; max-width: 38rem; height: 4.6rem; border-radius: 12px; }
}

/* 24h change badge in the spot chips (green up / red down vs 24 hours ago) */
.wss .app-top .metals-chg { display: inline-flex; align-items: center; gap: 0.2rem; margin-left: 0.2rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-family: var(--t-mono); font-size: 1.15rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; }
.wss .app-top .metals-chg.is-up { color: var(--t-up); background: var(--t-up-soft); }
.wss .app-top .metals-chg.is-down { color: var(--t-down); background: var(--t-down-soft); }
@media screen and (max-width: 480px) {
  .wss .app-top .metals-chg { font-size: 1rem; padding: 0.1rem 0.4rem; }
}
.wss .app-top #goldspot > .metals-chg.is-up, .wss .app-top #silverspot > .metals-chg.is-up, .wss .app-top #platinumspot > .metals-chg.is-up { color: var(--t-up); }
.wss .app-top #goldspot > .metals-chg.is-down, .wss .app-top #silverspot > .metals-chg.is-down, .wss .app-top #platinumspot > .metals-chg.is-down { color: var(--t-down); }

/* ==========================================================================
   ADD / EDIT METAL FORM: layout only (markup, labels, ids and scripts untouched)
   Fields flow into rows of two or three and re-balance when the form scripts
   hide fields (serial, COA, spot, premium, junk-batch mode...), so no holes.
   ========================================================================== */
.wss .formPage:has(#metal-form) .content-box { max-width: 104rem; }
.wss .formPage:has(#metal-form) .formWrapper { padding: var(--t-s5) var(--t-s6) var(--t-s6); }

/* Header bar: Back on the left, Extra fields on the right */
.wss .formWrapper:has(#metal-form) .form_options { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin: 0 0 var(--t-s4); padding-bottom: var(--t-s4); border-bottom: 1px solid var(--t-line); }
.wss .formWrapper:has(#metal-form) > br { display: none; }
.wss .formWrapper:has(#metal-form) .backbutton { display: inline-flex; align-items: center; gap: 0.8rem; }
.wss .formWrapper:has(#metal-form) .backbutton p { margin: 0; font-size: 1.35rem; color: var(--t-text-2); }
.wss .formWrapper:has(#metal-form) .form-options-button { display: inline-flex; align-items: center; height: 3.8rem; padding: 0 1.6rem; border-radius: 999px; border: 1px solid var(--t-amber-line); background: rgba(245, 185, 65, 0.08); color: var(--t-amber-2); font-size: 1.35rem; font-weight: 600; cursor: pointer; }
.wss .formWrapper:has(#metal-form) .form-options-button:hover { background: rgba(245, 185, 65, 0.16); }

/* The grid of fields */
.wss #metal-form { display: flex; flex-wrap: wrap; gap: 1.8rem 1.6rem; margin: 0; }
.wss #metal-form > .form__field,
.wss #metal-form > #junkform > .form__field { flex: 1 1 calc(33.333% - 1.6rem); min-width: 18rem; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.wss #metal-form > .form__field > label,
.wss #metal-form > #junkform > .form__field > label { margin: 0; font-size: 1.25rem; font-weight: 500; color: var(--t-text-2); letter-spacing: 0; }
.wss #metal-form .form__field > .input,
.wss #metal-form .form__field > input:not([type="radio"]):not([type="checkbox"]),
.wss #metal-form .form__field > select,
.wss #metal-form .form__field > textarea { width: 100%; height: 4.8rem; min-height: 4.8rem; padding: 0 1.4rem; border-radius: 12px; border: 1px solid var(--t-line-2); background-color: #07080b; color: var(--t-text); font-size: 1.5rem; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.wss #metal-form .form__field > textarea { height: auto; min-height: 12rem; padding: 1.2rem 1.4rem; line-height: 1.5; }
.wss #metal-form .form__field > .input:focus,
.wss #metal-form .form__field > input:focus,
.wss #metal-form .form__field > select:focus,
.wss #metal-form .form__field > textarea:focus { outline: 0; border-color: var(--t-amber-line); box-shadow: 0 0 0 3px rgba(245, 185, 65, 0.14), inset 0 1px 2px rgba(0, 0, 0, 0.5); }

/* Wider and full-width slots */
.wss #metal-form > #field-item-name { flex-basis: calc(66.666% - 1.6rem); }
.wss #metal-form > #field-purchased-from { flex-basis: calc(50% - 1.6rem); }
.wss #metal-form > #field-about,
.wss #metal-form > #junkform { flex-basis: 100%; }
.wss #metal-form > #junkform { display: flex; flex-wrap: wrap; gap: 1.8rem 1.6rem; }
.wss #metal-form > #junkform:empty { display: none; }

/* Troy Ounces / Grams as a pill toggle */
.wss #metal-form #id_weight_unit { display: inline-flex; gap: 0.4rem; width: auto; height: 4.8rem; padding: 0.4rem; border-radius: 12px; background: #07080b; border: 1px solid var(--t-line-2); }
.wss #metal-form #id_weight_unit > div { display: flex; }
.wss #metal-form #id_weight_unit label { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0 1.6rem; border-radius: 9px; font-size: 1.4rem; font-weight: 500; color: var(--t-text-2); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.wss #metal-form #id_weight_unit input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wss #metal-form #id_weight_unit label:has(input:checked) { background: var(--t-gold-grad); color: var(--t-amber-ink); font-weight: 600; box-shadow: 0 6px 18px -8px rgba(245, 185, 65, 0.8); }
.wss #metal-form #id_weight_unit label:has(input:focus-visible) { outline: 2px solid var(--t-amber); outline-offset: 2px; }

/* Photo uploads as drop zones; the extra-images field is added by form_visibility.js */
.wss #metal-form > #field-featured-image,
.wss #metal-form > #field-featured-image + .form__field { flex-basis: calc(50% - 1.6rem); }
.wss #metal-form .form__field input[type="file"] { height: auto; min-height: 7.2rem; padding: 1.4rem; border-style: dashed; border-color: var(--t-line-3); background: rgba(255, 255, 255, 0.015); font-size: 1.3rem; color: var(--t-text-3); cursor: pointer; }
.wss #metal-form .form__field input[type="file"]:hover { border-color: var(--t-amber-line); background: rgba(245, 185, 65, 0.05); }
.wss #metal-form .form__field input[type="file"]::file-selector-button { margin-right: 1.2rem; height: 3.6rem; padding: 0 1.4rem; border-radius: 9px; border: 1px solid var(--t-amber-line); background: rgba(245, 185, 65, 0.1); color: var(--t-amber-2); font: 600 1.3rem var(--t-sans); cursor: pointer; }
/* "Currently: ... / Clear / Change:" block Django shows when editing an item with a photo */
.wss #metal-form > #field-featured-image { font-size: 1.3rem; color: var(--t-text-3); }

/* Save: full width, gold */
.wss #metal-form > #save-button { flex: 1 1 100%; height: 5.6rem; min-height: 5.6rem; margin-top: 0.6rem; border-radius: 14px; font-size: 1.6rem; }

@media screen and (max-width: 900px) {
  .wss #metal-form > .form__field,
  .wss #metal-form > #junkform > .form__field { flex-basis: calc(50% - 1.6rem); }
  .wss #metal-form > #field-item-name { flex-basis: 100%; }
}
@media screen and (max-width: 560px) {
  .wss .formPage:has(#metal-form) .formWrapper { padding: var(--t-s4); }
  .wss #metal-form > .form__field,
  .wss #metal-form > #junkform > .form__field,
  .wss #metal-form > #field-featured-image,
  .wss #metal-form > #field-featured-image + .form__field,
  .wss #metal-form > #field-purchased-from { flex-basis: 100%; min-width: 0; }
  .wss #metal-form #id_weight_unit { width: 100%; }
  .wss #metal-form #id_weight_unit > div { flex: 1; }
  .wss #metal-form #id_weight_unit label { flex: 1; justify-content: center; }
}

/* Metal form fixes: keep the dropdown arrow, align labels, tidy the "Currently / Clear / Change" photo block */
.wss #metal-form > .form__field > label, .wss #metal-form > #junkform > .form__field > label { line-height: 1.3; min-height: 1.6rem; }
.wss #metal-form > #field-featured-image { display: block; line-height: 2.2; }
.wss #metal-form > #field-featured-image > label:first-child { display: block; margin-bottom: 0.7rem; line-height: 1.3; }
.wss #metal-form > #field-featured-image > a { margin: 0 0.6rem; }
.wss #metal-form > #field-featured-image > input[type="checkbox"] { width: 1.6rem; height: 1.6rem; margin: 0 0.4rem 0 0.8rem; vertical-align: -0.3rem; accent-color: var(--t-amber); }
.wss #metal-form > #field-featured-image > input[type="file"] { display: block; margin-top: 0.4rem; }
.wss #metal-form .form__field > .input, .wss #metal-form .form__field > input:not([type="checkbox"]), .wss #metal-form .form__field > select, .wss #metal-form .form__field > textarea { margin: 0; }
/* Same label-to-box spacing whether a field is flex (CSS) or block (set inline by form scripts) */
.wss #metal-form > .form__field, .wss #metal-form > #junkform > .form__field { gap: 0; }
.wss #metal-form > .form__field > label:first-child, .wss #metal-form > #junkform > .form__field > label:first-child { display: block; margin-bottom: 0.8rem; }
.wss #metal-form .form__field > select, .wss #metal-form .form__field > input:not([type="checkbox"]):not([type="radio"]) { display: block; }

/* ---------- Metal form v2: weight group + photo row ---------- */
/* Weight: one decorative box, unit toggle on top, total weight underneath */
.wss #metal-form > .wf-weight {
  flex: 1 1 calc(50% - 1.6rem); min-width: 26rem;
  display: flex; flex-direction: column; gap: 1.4rem;
  padding: 1.6rem 1.8rem 1.8rem; border-radius: 16px;
  border: 1px solid var(--t-amber-line);
  background: linear-gradient(180deg, rgba(245, 185, 65, 0.07), rgba(245, 185, 65, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -30px rgba(245, 185, 65, 0.5);
}
.wss #metal-form > .wf-weight:not(:has(> .form__field:not([style*="none"]):not(.hidden))) { display: none; }
.wss #metal-form > .wf-weight > .form__field { display: flex; flex-direction: column; margin: 0; }
.wss #metal-form > .wf-weight > .form__field > label:first-child { display: block; margin: 0 0 0.8rem; font-size: 1.25rem; font-weight: 500; line-height: 1.3; color: var(--t-text-2); }
/* Unit toggle: plain pill buttons, no surrounding box */
.wss #metal-form .wf-weight #id_weight_unit { display: flex; gap: 0.8rem; width: auto; height: auto; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
.wss #metal-form .wf-weight #id_weight_unit label { height: 3.8rem; padding: 0 1.8rem; border-radius: 999px; border: 1px solid var(--t-line-3); background: rgba(255, 255, 255, 0.02); }
.wss #metal-form .wf-weight #id_weight_unit label:hover { border-color: var(--t-amber-line); color: var(--t-text); }
.wss #metal-form .wf-weight #id_weight_unit label:has(input:checked) { border-color: transparent; }

/* Photos: label + gold button + filename, no boxes */
.wss #metal-form > .wf-photos { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 1.6rem 4rem; padding-top: 0.4rem; }
.wss #metal-form > .wf-photos > .form__field { flex: 0 1 auto; min-width: 0; margin: 0; display: block; }
.wss #metal-form > .wf-photos > .form__field > label:first-child { display: block; margin: 0 0 0.8rem; font-size: 1.25rem; font-weight: 500; line-height: 1.3; color: var(--t-text-2); }
.wss #metal-form > .wf-photos input[type="file"] {
  display: block; width: auto; max-width: 100%; height: auto; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  font-size: 1.3rem; color: var(--t-text-3); cursor: pointer;
}
.wss #metal-form > .wf-photos input[type="file"]:hover { background: none; }
.wss #metal-form > .wf-photos input[type="file"]::file-selector-button {
  height: 4rem; margin-right: 1.2rem; padding: 0 1.8rem; border-radius: 999px; border: 0;
  background: var(--t-gold-grad); color: var(--t-amber-ink); font: 600 1.35rem var(--t-sans);
  box-shadow: 0 8px 20px -10px rgba(245, 185, 65, 0.8); cursor: pointer;
}
.wss #metal-form > .wf-photos input[type="file"]:hover::file-selector-button { background: linear-gradient(180deg, #ffe29a, #f5b941); }
/* Editing an item that already has a photo: "Currently: ... [ ] Clear / Change:" */
.wss #metal-form > .wf-photos > #field-featured-image { line-height: 2.2; font-size: 1.3rem; color: var(--t-text-3); }
.wss #metal-form > .wf-photos > #field-featured-image > a { margin: 0 0.6rem; }
.wss #metal-form > .wf-photos > #field-featured-image > input[type="checkbox"] { width: 1.6rem; height: 1.6rem; margin: 0 0.4rem 0 0.8rem; vertical-align: -0.3rem; accent-color: var(--t-amber); }
.wss #metal-form > .wf-photos > #field-featured-image > input[type="file"] { margin-top: 0.4rem; }

@media screen and (max-width: 560px) {
  .wss #metal-form > .wf-weight { flex-basis: 100%; min-width: 0; padding: 1.4rem; }
  .wss #metal-form .wf-weight #id_weight_unit > div { flex: 1; }
  .wss #metal-form .wf-weight #id_weight_unit label { flex: 1; justify-content: center; }
  .wss #metal-form > .wf-photos { flex-direction: column; gap: 1.6rem; }
}

/* ---------- Metal form v3 ---------- */
/* Purity / Item name / Item year share one row */
.wss #metal-form > #field-purity,
.wss #metal-form > #field-custom-purity,
.wss #metal-form > #field-item-year { flex-basis: calc(25% - 1.6rem); }
.wss #metal-form > #field-item-name { flex-basis: calc(50% - 1.6rem); }

/* Weight box spans the row: unit toggle on top, total weight + quantity side by side below */
.wss #metal-form > .wf-weight { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 1.4rem 1.6rem; }
.wss #metal-form > .wf-weight > #field-weight-unit { flex: 1 1 100%; }
.wss #metal-form > .wf-weight > #field-total-weight-select-units-above,
.wss #metal-form > .wf-weight > #field-quantity { flex: 1 1 calc(50% - 1.6rem); min-width: 16rem; }

/* Photos: no boxes (beats the generic input rule above) */
.wss #metal-form > .wf-photos > .form__field > input[type="file"],
.wss #metal-form > .wf-photos > .form__field > input[type="file"].input {
  width: auto; height: auto; min-height: 0; padding: 0; border: 0; border-radius: 0;
  background: none; background-color: transparent; box-shadow: none;
}
.wss #metal-form > .wf-photos > #field-featured-image > label:not(:first-child) { display: inline; margin: 0; font-size: 1.3rem; color: var(--t-text-2); }

@media screen and (max-width: 900px) {
  .wss #metal-form > #field-purity, .wss #metal-form > #field-custom-purity, .wss #metal-form > #field-item-year { flex-basis: calc(50% - 1.6rem); }
  .wss #metal-form > #field-item-name { flex-basis: 100%; }
}
@media screen and (max-width: 560px) {
  .wss #metal-form > #field-purity, .wss #metal-form > #field-custom-purity, .wss #metal-form > #field-item-year { flex-basis: 100%; }
  .wss #metal-form > .wf-weight > #field-total-weight-select-units-above, .wss #metal-form > .wf-weight > #field-quantity { flex-basis: 100%; min-width: 0; }
}
.wss .formWrapper:has(#metal-form) .form-options-button { opacity: 1; color: var(--t-amber-2); }

/* Save: compact, right-aligned */
.wss #metal-form > #save-button { flex: 0 0 auto; width: auto; min-width: 16rem; height: 4.6rem; min-height: 4.6rem; padding: 0 3.2rem; margin: 0.6rem 0 0 auto; border-radius: 12px; font-size: 1.5rem; }
@media screen and (max-width: 560px) { .wss #metal-form > #save-button { flex: 1 1 100%; margin-left: 0; } }

/* Stack search: lives in the Dashboard header (top right), never in the top bar */
.wss .ov__head { align-items: center; }
.wss .ov-search { flex: 0 1 38rem; display: flex; align-items: center; gap: 1rem; height: 4.8rem; margin: 0 0 0 auto; padding: 0 1.6rem; border-radius: 14px; border: 1px solid var(--t-line-2); background: linear-gradient(180deg, #11141b, #0b0d12); color: var(--t-text-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 36px -26px rgba(0, 0, 0, 0.9); }
.wss .ov-search:focus-within { border-color: var(--t-amber-line); box-shadow: 0 0 0 3px rgba(245, 185, 65, 0.12); }
.wss .ov-search svg { width: 1.8rem; height: 1.8rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.wss .ov-search input[type="search"] { flex: 1; min-width: 0; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--t-text); font-size: 1.5rem; }
.wss .ov-search input[type="search"]:focus { outline: 0; border: 0; box-shadow: none; }
@media screen and (max-width: 760px) { .wss .ov-search { flex-basis: 100%; margin-left: 0; } }
.wss .ov-metal__note { display: block; margin-top: -0.4rem; font-size: 1.2rem; color: var(--t-text-3); font-family: var(--t-sans); }

/* ==========================================================================
   2FA SETUP WIZARD
   ========================================================================== */
.wss .tfa { max-width: 110rem; margin: 0 auto; padding: var(--t-s7) var(--t-s6); }
.wss .tfa-card {
  display: grid; grid-template-columns: 34rem minmax(0, 1fr); overflow: hidden;
  border: 1px solid transparent; border-radius: 22px;
  background:
    linear-gradient(180deg, #11141b, #0a0c10) padding-box,
    linear-gradient(135deg, #ffd77a, rgba(245, 185, 65, 0.2) 30%, rgba(255, 255, 255, 0.05) 60%, rgba(245, 185, 65, 0.45)) border-box;
  box-shadow: 0 40px 90px -50px rgba(245, 185, 65, 0.45), 0 30px 70px -40px rgba(0, 0, 0, 0.95);
}

/* Left panel: engraved background, shield, progress */
.wss .tfa-side {
  position: relative; display: flex; flex-direction: column; gap: 1.4rem; padding: var(--t-s7) var(--t-s6);
  border-right: 1px solid var(--t-line);
  background:
    repeating-radial-gradient(circle at 50% 22%, rgba(245, 185, 65, 0.1) 0 1px, transparent 1px 9px),
    radial-gradient(30rem 24rem at 50% 10%, rgba(245, 185, 65, 0.14), transparent 70%),
    linear-gradient(180deg, #0d0f14, #08090d);
}
.wss .tfa-shield { width: 11rem; height: 11rem; margin: 0 auto 0.6rem; filter: drop-shadow(0 14px 30px rgba(245, 185, 65, 0.45)); }
.wss .tfa-shield svg { width: 100%; height: 100%; display: block; }
.wss .tfa-side__title { margin: 0; font-size: 2rem; letter-spacing: -0.02em; text-align: center; }
.wss .tfa-side__text { margin: 0 0 1rem; font-size: 1.35rem; line-height: 1.55; color: var(--t-text-2); text-align: center; }
.wss .tfa-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.wss .tfa-steps li { position: relative; display: flex; align-items: center; gap: 1.2rem; padding: 1rem 1.2rem; border-radius: 12px; font-size: 1.4rem; font-weight: 500; color: var(--t-text-3); }
.wss .tfa-steps li span { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1px solid var(--t-line-3); font-family: var(--t-mono); font-size: 1.2rem; color: var(--t-text-3); }
.wss .tfa-steps li.is-on { color: var(--t-text); background: rgba(245, 185, 65, 0.08); box-shadow: inset 0 0 0 1px rgba(245, 185, 65, 0.25); }
.wss .tfa-steps li.is-on span { border-color: transparent; background: var(--t-gold-grad); color: var(--t-amber-ink); font-weight: 700; box-shadow: 0 6px 16px -6px rgba(245, 185, 65, 0.8); }
.wss .tfa-steps li.is-done { color: var(--t-text-2); }
.wss .tfa-steps li.is-done span { border-color: rgba(61, 220, 151, 0.4); color: var(--t-up); background: var(--t-up-soft); }

/* Right panel */
.wss .tfa-main { display: flex; flex-direction: column; gap: 1.4rem; padding: var(--t-s7) var(--t-s7) var(--t-s6); min-width: 0; }
.wss .tfa-kicker { margin: 0; font-family: var(--t-mono); font-size: 1.15rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-amber-2); }
.wss .tfa-title { margin: 0; font-size: 3.6rem; line-height: 1.05; letter-spacing: -0.035em; color: #fff; }
.wss .tfa-lead { margin: 0; font-size: 1.6rem; line-height: 1.6; color: var(--t-text-2); max-width: 60ch; }
.wss .tfa-lead--sm { font-size: 1.45rem; }
.wss .tfa-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.wss .tfa-list li { position: relative; padding: 1.2rem 1.4rem 1.2rem 4.4rem; border-radius: 12px; border: 1px solid var(--t-line); background: rgba(255, 255, 255, 0.02); font-size: 1.45rem; color: var(--t-text-2); counter-increment: tfa; }
.wss .tfa-list { counter-reset: tfa; }
.wss .tfa-list li::before { content: counter(tfa); position: absolute; left: 1.4rem; top: 1.2rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 600 1.15rem var(--t-mono); color: var(--t-amber-2); border: 1px solid var(--t-amber-line); }
.wss .tfa-list strong { color: var(--t-text); }

/* QR + secret */
.wss .tfa-qr-row { display: flex; gap: 2.4rem; align-items: center; flex-wrap: wrap; margin: 0.6rem 0; }
.wss .tfa-qr { flex: none; padding: 1.2rem; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(245, 185, 65, 0.5), 0 20px 50px -20px rgba(245, 185, 65, 0.6); }
.wss .tfa-qr img { display: block; width: 18rem; height: 18rem; max-width: none; }
.wss .tfa-secret { flex: 1 1 24rem; min-width: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.wss .tfa-secret p { margin: 0; font-size: 1.4rem; line-height: 1.55; color: var(--t-text-2); }
.wss .tfa-secret .tfa-secret__label { font-size: 1.2rem; color: var(--t-text-3); }
.wss .tfa-secret__key { display: block; padding: 1.2rem 1.4rem; border-radius: 12px; border: 1px dashed var(--t-amber-line); background: rgba(245, 185, 65, 0.06); font-family: var(--t-mono); font-size: 1.45rem; letter-spacing: 0.08em; color: var(--t-amber-2); overflow-wrap: anywhere; }
.wss .tfa-alert { margin: 0; padding: 1.4rem 1.6rem; border-radius: 12px; border: 1px solid rgba(255, 107, 107, 0.35); background: var(--t-down-soft); color: #ffc4c4; font-size: 1.45rem; line-height: 1.55; }

/* The wizard's own form (a table of fields from django-two-factor-auth) */
.wss .tfa-form { margin: 0.8rem 0 0; display: flex; flex-direction: column; gap: 1.6rem; }
.wss .tfa-form table { width: 100%; max-width: 42rem; border-collapse: collapse; margin: 0; }
.wss .tfa-form th, .wss .tfa-form td { display: block; padding: 0; text-align: left; border: 0; }
.wss .tfa-form th label { display: block; margin: 0 0 0.8rem; font-size: 1.3rem; font-weight: 500; color: var(--t-text-2); }
.wss .tfa-form input[type="text"], .wss .tfa-form input[type="number"], .wss .tfa-form input[type="tel"], .wss .tfa-form select {
  width: 100%; height: 5.2rem; padding: 0 1.6rem; border-radius: 12px; border: 1px solid var(--t-line-2); background-color: #07080b; color: var(--t-text);
  font-family: var(--t-mono); font-size: 2rem; letter-spacing: 0.3em; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.wss .tfa-form select { font-family: var(--t-sans); font-size: 1.5rem; letter-spacing: 0; }
.wss .tfa-form input:focus, .wss .tfa-form select:focus { outline: 0; border-color: var(--t-amber-line); box-shadow: 0 0 0 3px rgba(245, 185, 65, 0.14); }
.wss .tfa-form ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.wss .tfa-form ul li label { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: 12px; border: 1px solid var(--t-line-2); font-size: 1.45rem; color: var(--t-text); cursor: pointer; }
.wss .tfa-form ul li label:has(input:checked) { border-color: var(--t-amber-line); background: rgba(245, 185, 65, 0.08); }
.wss .tfa-form ul li input[type="radio"] { accent-color: var(--t-amber); width: 1.8rem; height: 1.8rem; }
.wss .tfa-form .errorlist li { color: var(--t-down); font-size: 1.35rem; border: 0; padding: 0; }

/* Actions: Cancel as a link on the left, Back quiet, Next gold */
.wss .tfa-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 0.8rem; padding-top: 2rem; border-top: 1px solid var(--t-line); }
.wss .tfa-actions .btn { height: 4.8rem; min-height: 4.8rem; min-width: 12rem; padding: 0 2.4rem; border-radius: 12px; font-size: 1.5rem; float: none; }
.wss .tfa-actions .btn-link { min-width: 0; margin-right: auto; padding: 0; border: 0; background: none; box-shadow: none; color: var(--t-text-3); font-weight: 500; }
.wss .tfa-actions .btn-link:hover { color: var(--t-text); background: none; }
.wss .tfa-actions button[disabled] { display: none; }
.wss .tfa-actions .btn-secondary { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--t-line-3); color: var(--t-text); }
.wss .tfa-actions .btn-primary { background: var(--t-gold-grad); border-color: transparent; color: var(--t-amber-ink); box-shadow: 0 0 0 1px rgba(255, 215, 122, 0.55), var(--t-glow); }
.wss .tfa-actions .btn-primary:hover { background: linear-gradient(180deg, #ffe29a, #f5b941); color: var(--t-amber-ink); }

@media screen and (max-width: 900px) {
  .wss .tfa-card { grid-template-columns: minmax(0, 1fr); }
  .wss .tfa-side { border-right: 0; border-bottom: 1px solid var(--t-line); padding: var(--t-s5); }
  .wss .tfa-shield { width: 8rem; height: 8rem; }
  .wss .tfa-steps { flex-direction: row; flex-wrap: wrap; }
  .wss .tfa-steps li { flex: 1 1 auto; justify-content: center; padding: 0.8rem 1rem; font-size: 1.3rem; }
  .wss .tfa-main { padding: var(--t-s5); }
  .wss .tfa-title { font-size: 2.8rem; }
}
@media screen and (max-width: 560px) {
  .wss .tfa { padding: var(--t-s4); }
  .wss .tfa-steps li { flex-basis: 100%; justify-content: flex-start; }
  .wss .tfa-qr img { width: 16rem; height: 16rem; }
  .wss .tfa-actions .btn:not(.btn-link) { flex: 1; min-width: 0; }
}
.wss .tfa-form input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.wss .tfa-form input[type="number"]::-webkit-outer-spin-button, .wss .tfa-form input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ==========================================================================
   SETTINGS
   ========================================================================== */
.wss .st { max-width: 104rem; margin: 0 auto; padding: var(--t-s6) var(--t-s6) var(--t-s7); display: flex; flex-direction: column; gap: var(--t-s5); }
.wss .st-kicker { margin: 0; font-family: var(--t-mono); font-size: 1.1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-amber-2); }
.wss .st-head h1 { margin: 0.4rem 0 0.6rem; font-size: 3.8rem; letter-spacing: -0.035em; color: #fff; }
.wss .st-lead { margin: 0; font-size: 1.55rem; color: var(--t-text-2); }
.wss .st-grid { display: flex; flex-direction: column; gap: var(--t-s4); }
.wss .st-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--t-s5);
  padding: var(--t-s5) var(--t-s6); border: 1px solid transparent; border-radius: 20px;
  background:
    linear-gradient(180deg, #11141b, #0b0d12) padding-box,
    linear-gradient(135deg, rgba(255, 215, 122, 0.5), rgba(255, 255, 255, 0.06) 32%, rgba(255, 255, 255, 0.04) 68%, rgba(245, 185, 65, 0.35)) border-box;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.wss .st-card__text h2 { margin: 0 0 0.4rem; font-size: 1.9rem; letter-spacing: -0.02em; }
.wss .st-card__text p { margin: 0; font-size: 1.4rem; line-height: 1.55; color: var(--t-text-3); max-width: 52ch; }

/* Segmented 6 / 10 / 15 / 20 / 25 */
.wss .st-seg { display: inline-flex; gap: 0.4rem; padding: 0.5rem; margin: 0; border-radius: 14px; background: #07080b; border: 1px solid var(--t-line-2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5); }
.wss .st-seg__btn { min-width: 5.6rem; height: 4.4rem; padding: 0 1.4rem; border: 0; border-radius: 10px; background: transparent; color: var(--t-text-2); font: 600 1.5rem var(--t-mono); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.wss .st-seg__btn:hover { color: var(--t-text); background: rgba(255, 255, 255, 0.04); }
.wss .st-seg__btn.is-on { background: var(--t-gold-grad); color: var(--t-amber-ink); box-shadow: 0 8px 20px -10px rgba(245, 185, 65, 0.9); }

/* Metal tiles with switches */
.wss .st-metals { display: grid; grid-template-columns: repeat(3, 17rem); gap: 1rem; margin: 0; }
.wss .st-metal {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 0.6rem 1rem;
  padding: 1.4rem; border-radius: 14px; border: 1px solid var(--t-line-2); background: rgba(255, 255, 255, 0.02);
  color: var(--t-text-2); text-align: left; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.wss .st-metal:hover { border-color: var(--t-line-3); }
.wss .st-metal.is-on { border-color: var(--t-amber-line); background: linear-gradient(180deg, rgba(245, 185, 65, 0.09), rgba(245, 185, 65, 0.02)); color: var(--t-text); }
.wss .st-metal:not(.is-on) { opacity: 0.7; }
.wss .st-coin { grid-row: 1 / 3; width: 4.2rem; height: 4.2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 1.3rem var(--t-mono); color: rgba(0, 0, 0, 0.7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -3px 5px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.5); }
.wss .st-metal--au .st-coin { background: radial-gradient(circle at 35% 30%, #fff3c4, #f5b941 55%, #9a6414); }
.wss .st-metal--ag .st-coin { background: radial-gradient(circle at 35% 30%, #ffffff, #c9d0db 55%, #6b7584); }
.wss .st-metal--pt .st-coin { background: radial-gradient(circle at 35% 30%, #eef3fb, #9fb2cf 55%, #4d5a72); }
.wss .st-metal:not(.is-on) .st-coin { filter: grayscale(0.8) brightness(0.7); }
.wss .st-metal__name { font-size: 1.5rem; font-weight: 600; }
.wss .st-metal__state { grid-column: 2; font-size: 1.2rem; color: var(--t-text-3); }
.wss .st-metal.is-on .st-metal__state { color: var(--t-up); }
.wss .st-switch { position: absolute; top: 1.4rem; right: 1.4rem; width: 3.4rem; height: 2rem; border-radius: 999px; background: var(--t-line-2); transition: background 0.15s ease; }
.wss .st-switch i { position: absolute; top: 0.3rem; left: 0.3rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--t-text-3); transition: transform 0.15s ease, background 0.15s ease; }
.wss .st-metal.is-on .st-switch { background: rgba(245, 185, 65, 0.35); }
.wss .st-metal.is-on .st-switch i { transform: translateX(1.4rem); background: var(--t-amber-2); box-shadow: 0 0 8px rgba(245, 185, 65, 0.8); }

/* Related settings links */
.wss .st-card--links { align-items: start; }
.wss .st-links { display: grid; grid-template-columns: repeat(3, 17rem); gap: 1rem; }
.wss .st-links a { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.4rem; border-radius: 14px; border: 1px solid var(--t-line-2); background: rgba(255, 255, 255, 0.02); color: var(--t-text-2); }
.wss .st-links a:hover { border-color: var(--t-amber-line); background: rgba(245, 185, 65, 0.06); }
.wss .st-links strong { font-size: 1.45rem; color: var(--t-text); }
.wss .st-links span { font-size: 1.2rem; line-height: 1.45; color: var(--t-text-3); font-weight: 400; }

@media screen and (max-width: 1100px) {
  .wss .st-card { grid-template-columns: minmax(0, 1fr); }
  .wss .st-metals, .wss .st-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 640px) {
  .wss .st { padding: var(--t-s4); }
  .wss .st-head h1 { font-size: 3rem; }
  .wss .st-card { padding: var(--t-s4); }
  .wss .st-seg { display: flex; width: 100%; }
  .wss .st-seg__btn { flex: 1; min-width: 0; padding: 0; }
  .wss .st-metals, .wss .st-links { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .wss .st-switch, .wss .st-switch i, .wss .st-seg__btn, .wss .st-metal { transition: none; } }
.wss .st-metal { padding-right: 5.4rem; }

/* Privacy mode: money is blurred until the user taps any amount (static/js/privacy_session.js).
   Keep this selector list in sync with PRIVATE in that file. Spot prices stay visible. */
.wss.privacy-on:not(.privacy-revealed) :is(.ov-big, .ov-delta, .ov-num, .ov-metal__value, .ov-metal__note, .ov-metal__foot, .ov-chip,
  .hl-sum__big, .hl-sum__num, .hl-sum small, .hl-cell, .it-big, .it-pl, .it-num, .it-ledger dd, .it-bar__num, .it-bars) {
  filter: blur(8px); cursor: pointer; user-select: none; transition: filter 0.2s ease;
}
.wss.privacy-on:not(.privacy-revealed)::after {
  content: "Privacy mode · tap an amount to reveal"; position: fixed; right: 2rem; bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); z-index: 1200;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 1px solid var(--t-amber-line); background: rgba(11, 13, 18, 0.92);
  color: var(--t-amber-2); font: 500 1.25rem var(--t-sans); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.9); pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .wss.privacy-on :is(.ov-big, .hl-sum__big, .it-big) { transition: none; } }

/* Settings: wide segmented controls (word labels) and a single on/off toggle */
.wss .st-seg--wide .st-seg__btn { font-family: var(--t-sans); font-size: 1.4rem; padding: 0 1.6rem; white-space: nowrap; }
.wss .st-toggle { display: inline-flex; align-items: center; gap: 1.2rem; height: 4.8rem; padding: 0 1.8rem 0 1.2rem; border-radius: 14px; border: 1px solid var(--t-line-2); background: #07080b; color: var(--t-text-2); font: 600 1.45rem var(--t-sans); cursor: pointer; }
.wss .st-toggle .st-switch { position: relative; top: auto; right: auto; }
.wss .st-toggle.is-on { border-color: var(--t-amber-line); color: var(--t-amber-2); background: rgba(245, 185, 65, 0.08); }
.wss .st-toggle.is-on .st-switch { background: rgba(245, 185, 65, 0.35); }
.wss .st-toggle.is-on .st-switch i { transform: translateX(1.4rem); background: var(--t-amber-2); box-shadow: 0 0 8px rgba(245, 185, 65, 0.8); }
@media screen and (max-width: 640px) {
  .wss .st-seg--wide { flex-wrap: wrap; }
  .wss .st-seg--wide .st-seg__btn { flex: 1 1 auto; padding: 0 1rem; font-size: 1.3rem; }
}
.wss.privacy-on:not(.privacy-revealed) :is(.ov-big, .hl-sum__big, .it-big) { filter: blur(16px); }
@media screen and (min-width: 1101px) { .wss .st-metals { grid-template-columns: repeat(3, 19rem); } }

/* ==========================================================================
   TOP BAR (final): warm depth, gold halo behind the logo, ticker strip, live status
   Desktop >1000px: one ticker strip with coins. Below 1440px the live pill hides,
   below 1280px the metal names hide (coins identify them). <=1000px keeps the
   phone layout (price row across the width) with the same background and rule.
   ========================================================================== */
.wss #sticky-bar.app-top,
.wss #sticky-bar.app-top.sticky {
  background:
    radial-gradient(26rem 9rem at 11rem 52%, rgba(245, 185, 65, 0.30), rgba(245, 185, 65, 0.08) 48%, transparent 72%),
    radial-gradient(60rem 18rem at 0% 0%, rgba(150, 96, 24, 0.22), transparent 65%),
    linear-gradient(90deg, #15110b 0%, #0f0e0d 26%, #0c0d11 55%, #0a0b0f 100%);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.95);
}
.wss #sticky-bar.app-top::after {
  background: linear-gradient(90deg, rgba(245, 185, 65, 0.25) 0%, #fff1c9 12%, rgba(255, 215, 122, 0.75) 26%, rgba(245, 185, 65, 0.25) 60%, rgba(245, 185, 65, 0.08) 100%);
  box-shadow: 0 0 14px rgba(245, 185, 65, 0.5);
}
.wss #sticky-bar .app-top__brand img { filter: drop-shadow(0 0 14px rgba(245, 185, 65, 0.45)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.85)); }
.wss .app-top__status { display: none; }

@media screen and (min-width: 1001px) {
  /* Ticker strip */
  .wss #sticky-bar .subheader__nav > ul {
    display: flex; align-items: stretch; gap: 0; padding: 0.4rem; border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px -16px rgba(0, 0, 0, 0.9);
  }
  .wss #sticky-bar #goldspot, .wss #sticky-bar #silverspot, .wss #sticky-bar #platinumspot {
    position: relative; height: 4.4rem; padding: 0 1.6rem 0 1.2rem; gap: 0.9rem; border: 0; border-radius: 12px;
    background: transparent; box-shadow: none; font-size: 1.1rem; letter-spacing: 0.12em; color: var(--t-text-3); white-space: nowrap;
  }
  .wss #sticky-bar #goldspot:hover, .wss #sticky-bar #silverspot:hover, .wss #sticky-bar #platinumspot:hover { background: rgba(255, 255, 255, 0.03); }
  .wss #sticky-bar #silverspot::after, .wss #sticky-bar #platinumspot::after,
  .wss #sticky-bar .subheader__nav > ul > a::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(255, 255, 255, 0.09); }
  .wss #sticky-bar .subheader__nav > ul > a { position: relative; }
  /* Coins instead of dots */
  .wss #sticky-bar #goldspot::before, .wss #sticky-bar #silverspot::before, .wss #sticky-bar #platinumspot::before {
    width: 2.4rem; height: 2.4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
    font: 700 0.95rem var(--t-mono); letter-spacing: 0; text-transform: none; color: rgba(0, 0, 0, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 3px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.5);
  }
  .wss #sticky-bar #goldspot::before { content: "Au"; background: radial-gradient(circle at 35% 30%, #fff3c4, #f5b941 55%, #9a6414); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 3px rgba(0, 0, 0, 0.35), 0 0 12px -2px rgba(245, 185, 65, 0.8); }
  .wss #sticky-bar #silverspot::before { content: "Ag"; background: radial-gradient(circle at 35% 30%, #ffffff, #c9d0db 55%, #6b7584); }
  .wss #sticky-bar #platinumspot::before { content: "Pt"; background: radial-gradient(circle at 35% 30%, #eef3fb, #9fb2cf 55%, #4d5a72); }
  .wss #sticky-bar .metals-price { font-size: 1.55rem !important; letter-spacing: -0.01em; }
  .wss #sticky-bar .subheader__nav > ul > a > .subheader__menuItem { height: 4.4rem; width: 4.4rem; border: 0; background: transparent; box-shadow: none; }
  .wss #sticky-bar .subheader__nav > ul > a > .subheader__menuItem:hover { background: rgba(245, 185, 65, 0.08); }

  /* Live status pill (right) */
  .wss #sticky-bar .app-top__status {
    display: inline-flex; align-items: center; gap: 0.8rem; margin-left: auto; padding: 0 1.4rem; height: 3.6rem; border-radius: 999px;
    border: 1px solid rgba(61, 220, 151, 0.22); background: rgba(61, 220, 151, 0.06);
    font: 500 1.2rem var(--t-mono); letter-spacing: 0.02em; color: var(--t-text-2); white-space: nowrap;
  }
  .wss #sticky-bar .app-top__status i { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--t-up); animation: live-pulse 2.4s ease-out infinite; }
}
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

/* Mid-size laptops: drop the live pill, then the metal names */
@media screen and (min-width: 1001px) and (max-width: 1439px) {
  .wss #sticky-bar .app-top__status { display: none; }
}
@media screen and (min-width: 1001px) and (max-width: 1279px) {
  .wss #sticky-bar #goldspot, .wss #sticky-bar #silverspot, .wss #sticky-bar #platinumspot { font-size: 0; letter-spacing: 0; gap: 0.8rem; padding: 0 1.2rem 0 1rem; }
  .wss #sticky-bar #goldspot::before, .wss #sticky-bar #silverspot::before, .wss #sticky-bar #platinumspot::before { font-size: 0.95rem; }
  .wss #sticky-bar .metals-chg { font-size: 1.1rem; }
  .wss #sticky-bar.app-top { padding-left: 2rem; padding-right: 2rem; gap: 1.2rem; }
  .wss #sticky-bar .app-top__brand img { height: 5rem; }
}

/* Phones / tablets: same look, phone layout */
@media screen and (max-width: 1000px) {
  .wss #sticky-bar.app-top, .wss #sticky-bar.app-top.sticky {
    background:
      radial-gradient(18rem 7rem at 10rem 2.8rem, rgba(245, 185, 65, 0.26), transparent 72%),
      linear-gradient(180deg, #13100b, #0b0c10);
  }
}
@media (prefers-reduced-motion: reduce) { .wss #sticky-bar .app-top__status i { animation: none; } }

/* Top bar background chart: gold over the last 24h, faint, fading in from the left */
.wss #sticky-bar.app-top > *:not(.app-top__spark):not(.app-top__spark-label) { position: relative; z-index: 1; }
.wss .app-top__spark {
  position: absolute; right: 0; top: 0.8rem; bottom: 1px; width: 62%; height: auto; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
}
.wss .app-top__spark-label {
  position: absolute; right: 1.6rem; bottom: 0.6rem; z-index: 0; pointer-events: none;
  font: 500 1rem var(--t-mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 215, 122, 0.45);
}
.wss #sticky-bar .app-top__status b { font-weight: 600; color: var(--t-text); }
/* Laptops: a compact "Live" pill fits again (time shows on wide screens) */
@media screen and (min-width: 1001px) and (max-width: 1439px) {
  .wss #sticky-bar .app-top__status { display: inline-flex; }
  .wss #sticky-bar .app-top__status-when { display: none; }
}
@media screen and (min-width: 1001px) and (max-width: 1279px) {
  .wss #sticky-bar .app-top__status { padding: 0 1.1rem; }
}
@media screen and (max-width: 1000px) {
  .wss .app-top__spark { width: 100%; top: 0; opacity: 0.6; }
  .wss .app-top__spark-label { display: none; }
}
.wss #sticky-bar .app-top__status .app-top__status-when { font-size: inherit; font-weight: 400; color: var(--t-text-3); letter-spacing: inherit; }
@media screen and (min-width: 1001px) { .wss #sticky-bar .subheader__nav > ul { background: linear-gradient(180deg, rgba(24, 26, 32, 0.94), rgba(14, 15, 20, 0.94)); } .wss #sticky-bar .app-top__status { background: rgba(10, 22, 17, 0.9); } }

/* ==========================================================================
   DASHBOARD: portfolio value over time
   ========================================================================== */
.wss .pf { display: flex; flex-direction: column; gap: 1.6rem; padding: 2.4rem 2.6rem 2rem; }
.wss .pf__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; }
.wss .pf__now { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.8rem; }
.wss .pf__value { font-family: var(--t-mono); font-size: 3rem; font-weight: 500; letter-spacing: -0.02em; color: var(--t-text); }
.wss .pf__change { font-family: var(--t-mono); font-size: 1.45rem; }
.wss .pf__change.is-up { color: var(--t-up); }
.wss .pf__change.is-down { color: var(--t-down); }
.wss .pf__range-label { display: block; margin-top: 0.4rem; font-size: 1.25rem; color: var(--t-text-3); }
.wss .pf__tabs { display: inline-flex; gap: 0.4rem; padding: 0.4rem; border-radius: 12px; background: #07080b; border: 1px solid var(--t-line-2); }
.wss .pf__tab { height: 3.8rem; padding: 0 1.6rem; border: 0; border-radius: 9px; background: transparent; color: var(--t-text-2); font: 600 1.35rem var(--t-sans); cursor: pointer; }
.wss .pf__tab:hover { color: var(--t-text); background: rgba(255, 255, 255, 0.04); }
.wss .pf__tab.is-on { background: var(--t-gold-grad); color: var(--t-amber-ink); box-shadow: 0 8px 20px -10px rgba(245, 185, 65, 0.9); }
.wss .pf__chart { position: relative; height: 32rem; }
.wss .pf__chart > svg { position: absolute; inset: 0; display: block; }
.wss .pf__grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.wss .pf__axis { fill: var(--t-text-3); font: 500 11px var(--t-mono); }
.wss .pf__line { fill: none; stroke: #ffd77a; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(245, 185, 65, 0.45)); }
.wss .pf__inv { fill: none; stroke: rgba(223, 228, 236, 0.55); stroke-width: 1.5; stroke-dasharray: 5 5; }
.wss .pf__dot { fill: #ffd77a; stroke: #0b0d12; stroke-width: 2; }
.wss .pf__cross { stroke: rgba(255, 215, 122, 0.35); stroke-width: 1; }
.wss .pf__hover { fill: #0b0d12; stroke: #ffd77a; stroke-width: 2; }
.wss .pf__tip { position: absolute; z-index: 2; min-width: 17rem; padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid var(--t-amber-line); background: rgba(11, 13, 18, 0.96); box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.95); pointer-events: none; }
.wss .pf__tip div { display: flex; justify-content: space-between; gap: 1.6rem; font-size: 1.25rem; color: var(--t-text-3); }
.wss .pf__tip b { font: 500 1.3rem var(--t-mono); color: var(--t-text); }
.wss .pf__tip b.is-up { color: var(--t-up); }
.wss .pf__tip b.is-down { color: var(--t-down); }
.wss .pf__tip .pf__tip-date { margin-bottom: 0.4rem; font-weight: 600; color: var(--t-amber-2); }
.wss .pf__legend { display: flex; gap: 2rem; font-size: 1.25rem; color: var(--t-text-3); }
.wss .pf__legend span { display: inline-flex; align-items: center; gap: 0.8rem; }
.wss .pf__key { display: inline-block; width: 2rem; height: 0; border-top: 2px solid #ffd77a; }
.wss .pf__key--i { border-top: 2px dashed rgba(223, 228, 236, 0.6); }
.wss .pf__empty, .wss .pf--locked .ov-empty { margin: 0; }
@media screen and (max-width: 640px) {
  .wss .pf { padding: 1.8rem 1.6rem; }
  .wss .pf__chart { height: 24rem; }
  .wss .pf__value { font-size: 2.4rem; }
  .wss .pf__tabs { width: 100%; }
  .wss .pf__tab { flex: 1; padding: 0; }
}
.wss.privacy-on:not(.privacy-revealed) :is(.pf__value, .pf__change, .pf__chart) { filter: blur(10px); cursor: pointer; user-select: none; }

/* ==========================================================================
   RATIOS PAGE
   ========================================================================== */
.wss .rt { max-width: 120rem; margin: 0 auto; padding: var(--t-s6) var(--t-s6) var(--t-s7); display: flex; flex-direction: column; gap: var(--t-s5); }
.wss .rt-kicker { margin: 0; font-family: var(--t-mono); font-size: 1.1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-amber-2); }
.wss .rt-head h1 { margin: 0.4rem 0 0.6rem; font-size: 3.8rem; letter-spacing: -0.035em; color: #fff; }
.wss .rt-lead { margin: 0; font-size: 1.55rem; color: var(--t-text-2); }
.wss .rt-stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--t-s4); }
.wss .rt-stat, .wss .rt-table-wrap {
  border: 1px solid transparent; border-radius: 18px;
  background:
    linear-gradient(180deg, #11141b, #0b0d12) padding-box,
    linear-gradient(135deg, rgba(255, 215, 122, 0.5), rgba(255, 255, 255, 0.06) 32%, rgba(255, 255, 255, 0.04) 68%, rgba(245, 185, 65, 0.35)) border-box;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
}
.wss .rt-stat { display: flex; flex-direction: column; gap: 0.6rem; padding: 2rem 2.2rem; }
.wss .rt-stat--lead { background: radial-gradient(30rem 14rem at 0% 0%, rgba(245, 185, 65, 0.14), transparent 65%) padding-box, linear-gradient(180deg, #12151c, #0a0c10) padding-box, linear-gradient(135deg, #ffd77a, rgba(245, 185, 65, 0.2) 30%, rgba(255, 255, 255, 0.05) 60%, rgba(245, 185, 65, 0.5)) border-box; }
.wss .rt-stat__label { font-family: var(--t-mono); font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-text-3); }
.wss .rt-stat__num { font-family: var(--t-mono); font-size: 3.6rem; font-weight: 500; letter-spacing: -0.03em; color: var(--t-text); line-height: 1.1; }
.wss .rt-stat small { font-size: 1.25rem; color: var(--t-text-3); }
.wss .rt-table-wrap { padding: 0.6rem 0 1.6rem; }
.wss .rt-scroll { overflow-x: auto; }
.wss .rt-table { width: 100%; border-collapse: collapse; font-size: 1.45rem; }
.wss .rt-table th, .wss .rt-table td { padding: 1.4rem 1.6rem; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--t-line); }
.wss .rt-table thead th { font-family: var(--t-mono); font-size: 1.05rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-text-3); padding-top: 1.2rem; padding-bottom: 1.2rem; }
.wss .rt-table .rt-groups th { color: var(--t-amber-2); }
.wss .rt-table .rt-group { border-bottom: 1px solid var(--t-amber-line); }
.wss .rt-table .rt-group--crypto { border-left: 1px solid var(--t-line-2); }
.wss .rt-table .rt-crypto--first { border-left: 1px solid var(--t-line-2); }
.wss .rt-table td { font-family: var(--t-mono); color: var(--t-text); font-variant-numeric: tabular-nums; }
.wss .rt-table .rt-th-metal, .wss .rt-table .rt-metal { text-align: left; }
.wss .rt-table .rt-metal { vertical-align: middle; font-size: 1.5rem; font-weight: 600; color: var(--t-text); }
.wss .rt-metal .rt-coin { margin-right: 1.2rem; vertical-align: middle; }
.wss .rt-table tbody tr:hover td, .wss .rt-table tbody tr:hover th { background: rgba(245, 185, 65, 0.04); }
.wss .rt-spot { color: var(--t-amber-2) !important; }
.wss .rt-self { color: var(--t-text-3) !important; }
.wss .rt-key { color: var(--t-amber-2) !important; font-weight: 600; }
.wss .rt-crypto { color: var(--t-text-2); }
.wss .rt-dim { color: var(--t-text-3) !important; font-family: var(--t-sans) !important; font-size: 1.25rem; }
.wss .rt-table tfoot th, .wss .rt-table tfoot td { border-bottom: 0; background: rgba(255, 255, 255, 0.015); }
.wss .rt-coin { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; font: 700 1.05rem var(--t-mono); color: rgba(0, 0, 0, 0.7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 3px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.5); }
.wss .rt-coin--gold { background: radial-gradient(circle at 35% 30%, #fff3c4, #f5b941 55%, #9a6414); }
.wss .rt-coin--silver { background: radial-gradient(circle at 35% 30%, #ffffff, #c9d0db 55%, #6b7584); }
.wss .rt-coin--platinum { background: radial-gradient(circle at 35% 30%, #eef3fb, #9fb2cf 55%, #4d5a72); }
.wss .rt-coin--btc { background: radial-gradient(circle at 35% 30%, #ffd3a1, #f7931a 55%, #a55b06); font-size: 1.4rem; }
.wss .rt-note { margin: 1.2rem 2rem 0; font-size: 1.25rem; color: var(--t-text-3); }
@media screen and (max-width: 900px) { .wss .rt-stats { grid-template-columns: minmax(0, 1fr); } }
@media screen and (max-width: 640px) {
  .wss .rt { padding: var(--t-s4); }
  .wss .rt-head h1 { font-size: 3rem; }
  .wss .rt-table th, .wss .rt-table td { padding: 1.1rem 1.1rem; font-size: 1.3rem; }
}

/* ==========================================================================
   PUBLIC HEADER v2 (signed out): matches the signed-in top bar.
   Logo bar on top, live spot strip directly under it; both stay pinned.
   Logo bar has the warm gold glow,
   faint 24h gold chart and gold rule (stays). Log in + 2FA as one split button.
   ========================================================================== */
.wss .header.pub-header { position: sticky; top: 0; z-index: 1000; background: transparent; border-bottom: 0; }

/* Spot strip */
.wss .pub-ticker { position: relative; z-index: 1; height: 3.8rem; background: #07080b; border-bottom: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.95); }
.wss .pub-ticker__inner { max-width: 124rem; height: 100%; margin: 0 auto; padding: 0 3.2rem; display: flex; align-items: center; gap: 2.4rem; }
.wss .pub-ticker__live { display: inline-flex; align-items: center; gap: 0.7rem; flex: none; font: 500 1.05rem var(--t-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-text-3); }
.wss .pub-ticker__live i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--t-up); box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.15), 0 0 10px rgba(61, 220, 151, 0.6); }
.wss .pub-ticker__list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; min-width: 0; }
.wss .pub-ticker__item { position: relative; display: inline-flex; align-items: center; gap: 0.7rem; padding: 0 1.8rem; white-space: nowrap; list-style: none; }
.wss .pub-ticker__item + .pub-ticker__item::before { content: ""; position: absolute; left: 0; top: 0.2rem; bottom: 0.2rem; width: 1px; background: rgba(255, 255, 255, 0.09); }
.wss .pub-ticker__item:first-child { padding-left: 0; }
.wss .pub-ticker__coin { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; font: 700 0.85rem var(--t-mono); color: rgba(0, 0, 0, 0.72); }
.wss .pub-ticker__item--au .pub-ticker__coin { background: radial-gradient(circle at 35% 30%, #fff1c9, #f5b941 55%, #b8781d); box-shadow: 0 0 10px rgba(245, 185, 65, 0.45); }
.wss .pub-ticker__item--ag .pub-ticker__coin { background: radial-gradient(circle at 35% 30%, #ffffff, #cfd5df 55%, #8c94a3); }
.wss .pub-ticker__item--pt .pub-ticker__coin { background: radial-gradient(circle at 35% 30%, #e6eefb, #8fa3c2 55%, #56657e); }
.wss .pub-ticker__name { font: 500 1.05rem var(--t-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-text-3); }
.wss .pub-ticker__price { font: 500 1.3rem var(--t-mono); color: var(--t-text); font-variant-numeric: tabular-nums; }
.wss .pub-ticker__item--au .pub-ticker__price { color: var(--t-amber-2); }
.wss .pub-ticker__chg { font: 600 1.1rem var(--t-mono); padding: 0.15rem 0.6rem; border-radius: 999px; }
.wss .pub-ticker__chg.is-up { color: var(--t-up); background: var(--t-up-soft); }
.wss .pub-ticker__chg.is-down { color: var(--t-down); background: var(--t-down-soft); }
.wss .pub-ticker__when { margin-left: auto; flex: none; font: 400 1.1rem var(--t-mono); color: var(--t-text-3); }

/* Logo bar */
.wss .pub-header__bar {
  position: relative;
  background:
    radial-gradient(30rem 10rem at max(14rem, calc(50% - 50rem)) 50%, rgba(245, 185, 65, 0.24), rgba(245, 185, 65, 0.06) 50%, transparent 72%),
    radial-gradient(70rem 20rem at 0% 0%, rgba(150, 96, 24, 0.2), transparent 65%),
    linear-gradient(90deg, #15110b 0%, #0f0e0d 28%, #0c0d11 58%, #0a0b0f 100%);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.95);
}
.wss .pub-header__bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(245, 185, 65, 0.25) 0%, #fff1c9 14%, rgba(255, 215, 122, 0.75) 30%, rgba(245, 185, 65, 0.25) 62%, rgba(245, 185, 65, 0.08) 100%);
  box-shadow: 0 0 14px rgba(245, 185, 65, 0.5);
}
.wss .pub-header__spark { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.9; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%); }
.wss .pub-header__inner { position: relative; height: 8.4rem; }
.wss .pub-header__brand img { height: 6rem; filter: drop-shadow(0 0 14px rgba(245, 185, 65, 0.45)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.85)); }

@media screen and (min-width: 1001px) {
  .wss .pub-header .header__nav { flex: 1 1 auto; }
  /* app.css turns this list into the hidden phone overlay at <=1024px; the phone menu
     button only appears at <=1000px, so undo the overlay on desktop widths (1001-1024px
     otherwise had no links and no menu button) */
  .wss .pub-header .header__nav > ul { position: static; inset: auto; opacity: 1; pointer-events: auto; flex-direction: row; justify-content: flex-start; background: none; transition: none; flex: 1 1 auto; gap: 0.4rem; }
  .wss .pub-header .header__menuItem:first-of-type { margin-left: 2.4rem; }
  .wss .pub-header .header__menuItem > a:not(.btn) { position: relative; height: 4rem; padding: 0 1.3rem; font-size: 1.45rem; color: #c3c9d4; }
  .wss .pub-header .header__menuItem > a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
  /* Log in | 2FA as one split button, pushed right */
  .wss .pub-header__login { margin-left: auto; }
  .wss .pub-header .header__menuItem.pub-header__login > a:not(.btn),
  .wss .pub-header .header__menuItem.pub-header__2fa > a:not(.btn) { height: 4.2rem; border: 1px solid var(--t-line-3); background: linear-gradient(180deg, #16191f, #0f1116); color: var(--t-text); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.9); }
  .wss .pub-header .header__menuItem.pub-header__login > a:not(.btn) { padding: 0 1.6rem; border-radius: 10px 0 0 10px; border-right-color: rgba(255, 255, 255, 0.08); }
  .wss .pub-header .header__menuItem.pub-header__2fa > a:not(.btn) { gap: 0.6rem; padding: 0 1.3rem 0 1.1rem; border-left: 0; border-radius: 0 10px 10px 0; font: 600 1.2rem var(--t-mono); letter-spacing: 0.06em; color: var(--t-text-2); }
  .wss .pub-header__2fa svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--t-amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .wss .pub-header__2fa { margin-left: -0.4rem; }
  .wss .pub-header__2fa-word { display: none; }
  .wss .pub-header .header__menuItem.pub-header__login > a:not(.btn):hover, .wss .pub-header .header__menuItem.pub-header__2fa > a:not(.btn):hover { background: linear-gradient(180deg, #1d2129, #15181e); color: #fff; }
  .wss .pub-header__cta { margin-left: 1.2rem; }
  .wss .pub-header__cta .btn { height: 4.2rem; min-height: 4.2rem; padding: 0 2rem; border-radius: 10px; }
}
@media screen and (min-width: 1001px) and (max-width: 1240px) {
  .wss .pub-ticker__when { display: none; }
  .wss .pub-header .header__menuItem:first-of-type { margin-left: 0.8rem; }
  .wss .pub-header .header__menuItem > a:not(.btn) { padding: 0 0.9rem; }
}

/* Phone / tablet: strip scrolls sideways, compact logo bar, full-screen menu */
@media screen and (max-width: 1000px) {
  .wss .pub-ticker__inner { padding: 0 1.6rem; gap: 1.4rem; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .wss .pub-ticker__inner::-webkit-scrollbar { display: none; }
  .wss .pub-ticker__live { font-size: 0; gap: 0; }
  .wss .pub-ticker__name, .wss .pub-ticker__when { display: none; }
  .wss .pub-ticker__item { padding: 0 1.2rem; gap: 0.6rem; }
  .wss .pub-ticker__price { font-size: 1.2rem; }
  .wss .pub-ticker__chg { font-size: 1rem; padding: 0.1rem 0.45rem; }
  .wss .pub-header__inner { height: 7.2rem; padding: 0 1.6rem; }
  .wss .pub-header__brand img { height: 5rem; }
  .wss .pub-header .toggle-menu { background: rgba(255, 255, 255, 0.04); }
  .wss .pub-header .header__nav > ul { padding-top: 9.6rem; }
  .wss .pub-header__2fa svg { display: none; }
  .wss .pub-header__2fa a span { font: inherit; letter-spacing: inherit; color: inherit; }
}

/* Landing: sample of the Dashboard's portfolio chart, under the sample metal cards */
.wss .lp-pf { width: 100%; max-width: 98rem; margin-top: 1.6rem; text-align: left; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.wss .lp-pf__title { margin: 0.8rem 0 0; font-size: 2.4rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--t-text); }
.wss .lp-pf .pf__now { margin-top: 1rem; }
.wss .lp-pf .pf__value { font-size: 2.6rem; }
.wss .lp-pf .pf__chart { height: 28rem; }
@media screen and (max-width: 1000px) {
  .wss .lp-pf { max-width: 52rem; padding: 2rem 1.6rem 1.6rem; }
  .wss .lp-pf__title { font-size: 2rem; }
  .wss .lp-pf .pf__tabs { width: 100%; }
  .wss .lp-pf .pf__tab { flex: 1 1 0; padding: 0 0.8rem; }
  .wss .lp-pf .pf__chart { height: 24rem; }
}

/* ==========================================================================
   SIGN-UP FORM polish (CSS only; same page, same card, same markup)
   Scoped to the register form via #register_button.
   ========================================================================== */
.wss .auth > .card:has(#register_button) { max-width: 52rem; padding: 3.6rem 3.6rem 2.8rem; background: radial-gradient(44rem 14rem at 50% 0%, rgba(245, 185, 65, 0.08), transparent 70%), linear-gradient(180deg, #11141a, #0c0e13); box-shadow: 0 -1px 0 rgba(255, 215, 122, 0.35), 0 30px 70px -45px rgba(245, 185, 65, 0.3); }
.wss .auth > .card:has(#register_button) .auth__header h3 { font-size: 3rem; }
.wss .auth__form:has(#register_button) { display: flex; flex-direction: column; gap: 1.8rem; }
.wss .auth__form:has(#register_button) > .form__field { margin: 0; }
.wss .auth__form:has(#register_button) > .form__field > label { display: block; margin-bottom: 0.7rem; }

/* Inputs: a touch taller, gold focus ring */
.wss .auth__form:has(#register_button) .input:not([type="checkbox"]):not([type="radio"]) { height: 4.8rem; padding: 0 1.4rem; border-radius: 11px; border: 1px solid var(--t-line-2); background: #080a0e; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.wss .auth__form:has(#register_button) .input:not([type="checkbox"]):not([type="radio"]):hover { border-color: var(--t-line-3); }
.wss .auth__form:has(#register_button) .input:not([type="checkbox"]):not([type="radio"]):focus { outline: none; border-color: var(--t-amber); box-shadow: 0 0 0 3px rgba(245, 185, 65, 0.18); }

/* Encryption-key option: framed box, checkbox shown as a switch beside the text */
.wss .auth__form > .form__field:has(#id_use_custom_kek) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; gap: 1.4rem; padding: 1.6rem 1.8rem; border-radius: 12px; border: 1px solid var(--t-amber-line); background: linear-gradient(180deg, rgba(245, 185, 65, 0.07), rgba(245, 185, 65, 0.02)); }
.wss .auth .auth__form > .form__field:has(#id_use_custom_kek) > label { flex: 1; margin: 0; font-size: 1.25rem; font-weight: 400; line-height: 1.6; color: var(--t-text-2); }
.wss .auth__form > .form__field:has(#id_use_custom_kek) .encryption-key-warning { display: block; margin-top: 0.8rem; color: #ffc98a; }
.wss .auth__form #id_use_custom_kek { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 4.4rem; height: 2.6rem; margin: 0.2rem 0 0; padding: 0; border-radius: 999px; border: 1px solid var(--t-line-3); background: #07080b; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.wss .auth__form #id_use_custom_kek::after { content: ""; position: absolute; top: 0.3rem; left: 0.3rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--t-text-3); transition: transform 0.2s ease, background 0.2s ease; }
.wss .auth__form #id_use_custom_kek:checked { background: var(--t-gold-grad); border-color: transparent; }
.wss .auth__form #id_use_custom_kek:checked::after { transform: translateX(1.8rem); background: #1a1204; }
.wss .auth__form #id_use_custom_kek:focus-visible { outline: 2px solid var(--t-amber); outline-offset: 2px; }

/* Currency: each option is a chip; the whole chip is clickable (the radio covers it) */
.wss .auth .currency-choice { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.wss .auth .currency-choice > div { position: relative; display: inline-flex; align-items: center; gap: 0.8rem; height: 4.4rem; margin: 0; padding: 0 1.6rem 0 1.4rem; border-radius: 10px; border: 1px solid var(--t-line-2); background: #0b0d12; font: 600 1.4rem var(--t-mono); color: var(--t-text-2); transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
.wss .auth .currency-choice > div::before { content: ""; flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1.5px solid var(--t-text-3); box-sizing: border-box; }
.wss .auth .currency-choice > div:hover { border-color: var(--t-line-3); color: var(--t-text); }
.wss .auth .currency-choice input[type="radio"] { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.wss .auth .currency-choice input[type="radio"]:focus-visible { outline: 2px solid var(--t-amber); outline-offset: 2px; }
.wss .auth .currency-choice > div:has(input:checked) { border-color: var(--t-amber); background: var(--t-amber-soft); color: var(--t-amber-2); box-shadow: 0 0 0 1px var(--t-amber-line); }
.wss .auth .currency-choice > div:has(input:checked)::before { border: 4px solid var(--t-amber); }

/* Full-width Sign Up */
.wss .auth__form:has(#register_button) .auth__actions { margin-top: 0.8rem; }
.wss .auth__form:has(#register_button) .auth__actions .btn { width: 100%; height: 5.4rem; font-size: 1.6rem; }

@media screen and (max-width: 560px) {
  .wss .auth > .card:has(#register_button) { padding: 2.4rem 1.8rem 2rem; }
  .wss .auth .currency-choice > div { padding: 0 1.2rem 0 1rem; font-size: 1.3rem; }
}

/* Login + sign-up background: warm gold glow + faint coin-edge rays behind the card
   (same language as the landing hero), fading into the footer. CSS only; login, 2FA login and sign-up pages. */
.wss .auth.registration-form,
.wss .formPage:has(.twofa_header) {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(46rem 36rem at 50% 30rem, rgba(245, 185, 65, 0.16), rgba(245, 185, 65, 0.05) 45%, transparent 72%),
    radial-gradient(90rem 60rem at 50% 0%, rgba(150, 96, 24, 0.14), transparent 70%),
    linear-gradient(180deg, #08090c 0%, #06070a 100%);
}
/* Rays */
.wss .auth.registration-form::before,
.wss .formPage:has(.twofa_header)::before {
  content: ""; display: block; position: absolute; left: 50%; top: 34rem; z-index: -1; pointer-events: none;
  width: 150rem; height: 150rem; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 215, 122, 0.07) 0deg 0.35deg, transparent 0.35deg 2deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0 22rem, #000 30rem, rgba(0, 0, 0, 0.6) 48rem, transparent 70rem);
  mask-image: radial-gradient(circle at 50% 50%, transparent 0 22rem, #000 30rem, rgba(0, 0, 0, 0.6) 48rem, transparent 70rem);
}
/* Soft fade at the bottom so the rays blend into the footer */
.wss .auth.registration-form::after,
.wss .formPage:has(.twofa_header)::after {
  content: ""; display: block; position: absolute; inset: auto 0 0 0; height: 18rem; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0), #06070a);
}
.wss .auth.registration-form > .card,
.wss .formPage:has(.twofa_header) > .content-box { position: relative; z-index: 1; }
@media screen and (max-width: 560px) {
  .wss .auth.registration-form::before,
.wss .formPage:has(.twofa_header)::before { top: 24rem; width: 110rem; height: 110rem; }
  .wss .auth.registration-form::after,
.wss .formPage:has(.twofa_header)::after { height: 10rem; }
}

/* Landing sections: same content width as the hero cards/chart (98rem) */
.wss .lp .lp-wrap { max-width: 98rem; }

/* ==========================================================================
   PUBLIC FOOTER v4: wordmark + tagline on the left, link groups on the right,
   legal bar underneath. Background: soft gold glow and coin-edge rays
   radiating from behind the wordmark (same language as login / sign-up).
   ========================================================================== */
.wss .footer.pub-foot {
  --foot-ray-x: calc(max(3.2rem, 50% - 49rem) + 10rem);
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(36rem 20rem at var(--foot-ray-x) 11rem, rgba(245, 185, 65, 0.13), rgba(245, 185, 65, 0.03) 55%, transparent 75%),
    linear-gradient(180deg, #07080b 0%, #06070a 100%);
  border-top: 1px solid var(--t-line);
  text-align: left;
}
.wss .footer.pub-foot::before {
  content: ""; position: absolute; left: var(--foot-ray-x); top: 11rem; z-index: -1; pointer-events: none;
  width: 130rem; height: 130rem; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 215, 122, 0.075) 0deg 0.35deg, transparent 0.35deg 2deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0 9rem, #000 14rem, rgba(0, 0, 0, 0.55) 30rem, transparent 52rem);
  mask-image: radial-gradient(circle at 50% 50%, transparent 0 9rem, #000 14rem, rgba(0, 0, 0, 0.55) 30rem, transparent 52rem);
}
.wss .pub-foot__inner { max-width: 98rem; margin: 0 auto; padding: 6.4rem 3.2rem 4.8rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4.8rem; align-items: start; }
.wss .pub-foot__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
.wss .pub-foot__logo { display: inline-block; padding: 0; }
.wss .pub-foot__brand .pub-foot__logo img { display: block; width: auto; height: 9rem; max-width: none; filter: drop-shadow(0 0 18px rgba(245, 185, 65, 0.3)) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.85)); }
.wss .pub-foot__brand p { margin: 0; max-width: 32rem; font-size: 1.4rem; line-height: 1.65; color: var(--t-text-2); text-align: left; }

.wss .pub-foot__cols { display: grid; grid-template-columns: repeat(3, auto); gap: 2.4rem 6.4rem; padding-top: 0.6rem; }
.wss .pub-foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.wss .pub-foot__col h4 { margin: 0 0 0.4rem; font: 500 1.1rem var(--t-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-amber-2); }
.wss .pub-foot__col a { font-size: 1.45rem; font-weight: 400; color: #c3c9d4; white-space: nowrap; transition: color 0.15s ease; }
.wss .pub-foot__col a:hover { color: var(--t-amber-2); }

.wss .pub-foot__base { max-width: 98rem; margin: 0 auto; padding: 2.2rem 3.2rem 3.2rem; border-top: 1px solid var(--t-line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem 2.4rem; font-size: 1.25rem; color: var(--t-text-3); }
.wss .pub-foot__base span { font-size: 1.25rem; color: var(--t-text-3); }
.wss .pub-foot__legal { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 0; }
.wss .pub-foot__legal > * + *::before { content: "·"; margin: 0 1.2rem; color: var(--t-text-3); }
.wss .pub-foot__legal a { font-size: 1.25rem; color: var(--t-text-2); }
.wss .pub-foot__legal a:hover { color: var(--t-amber-2); }

@media screen and (max-width: 820px) {
  .wss .footer.pub-foot { --foot-ray-x: calc(2rem + 9rem); }
  .wss .pub-foot__inner { grid-template-columns: 1fr; gap: 3.6rem; padding: 4.8rem 2rem 3.6rem; }
  .wss .pub-foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
  .wss .pub-foot__base { padding: 1.8rem 2rem 2.8rem; }
}
@media screen and (max-width: 560px) {
  .wss .footer.pub-foot { --foot-ray-x: calc(1.6rem + 8rem); }
  .wss .footer.pub-foot::before { top: 9.6rem; width: 90rem; height: 90rem; }
  .wss .pub-foot__inner { padding: 4.4rem 1.6rem 3.2rem; gap: 3.2rem; }
  .wss .pub-foot__brand .pub-foot__logo img { height: 8rem; }
  .wss .pub-foot__brand p { font-size: 1.35rem; }
  .wss .pub-foot__cols { gap: 1.2rem; }
  .wss .pub-foot__col h4 { font-size: 1rem; letter-spacing: 0.12em; }
  .wss .pub-foot__col a { font-size: 1.35rem; white-space: normal; }
  .wss .pub-foot__base { flex-direction: column; align-items: flex-start; padding: 1.8rem 1.6rem 2.8rem; }
  .wss .pub-foot__legal > * + *::before { margin: 0 0.8rem; }
}

/* Landing section headings: centred on phones like the rest of the page */
@media screen and (max-width: 760px) {
  .wss .lp-head { flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 1.6rem; }
  .wss .lp-head > div, .wss .lp-head > p { margin-left: auto; margin-right: auto; }
  /* Closing call to action, too */
  .wss .lp-close__grid > div { align-items: center; text-align: center; }
  .wss .lp-close__grid > img { justify-self: center; }
  .wss .lp-close::before { right: auto; left: 50%; transform: translate(-50%, -50%); width: 46rem; }
}

/* Pricing, stacked layout (<=1000px): the Monthly / Yearly switch only changes the Pro
   price, so sit it on the top edge of the Pro card instead of above the Basic card.
   CSS-only reorder (landing.js finds the switch anywhere on the page). */
@media screen and (max-width: 1000px) {
  .wss #pricing .lp-wrap { display: flex; flex-direction: column; }
  .wss #pricing .lp-head, .wss #pricing .lp-plans { display: contents; }
  .wss #pricing .lp-head > div:first-child { order: 1; margin-bottom: 4rem; }
  .wss #pricing .lp-plan:not(.lp-plan--pro) { order: 2; margin-bottom: 3.6rem; }
  .wss #pricing .lp-toggle { order: 3; align-self: center; position: relative; z-index: 2; margin-bottom: -2.4rem; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 215, 122, 0.25); }
  .wss #pricing .lp-plan--pro { order: 4; padding-top: 4.4rem; }
  .wss #pricing .lp-fine { order: 5; margin-top: 2rem; }
}

/* Phones: drop the landing's closing section; its call to action moves into the footer */
@media screen and (max-width: 760px) {
  .wss .lp-close { display: none; }
}

/* "How it works" sample coin: the site's gold placeholder photo instead of drawn circles */
.wss .lp-coin--photo { overflow: hidden; background: #2a1f0a; }
.wss .lp-coin--photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.wss .lp-photos > span.lp-photo { position: relative; overflow: hidden; background: #2a1f0a; }
.wss .lp-photo img { position: absolute; display: block; max-width: none; height: auto; }
/* Close-ups inside the round photo (keeps its white corners out of view) */
.wss .lp-photo--coin img { width: 230%; left: -12%; top: -70%; }
.wss .lp-photo--bar img { width: 230%; left: -110%; top: -30%; }
/* Sample-card Gold Eagle photos: pre-cropped squares, fill the tile */
.wss .lp-photo--fill img { position: static; width: 100%; height: 100%; object-fit: cover; }

/* Replacements for former inline styles (the CSP blocks style="" attributes) */
.wss .twofa-note { color: var(--t-text-2); font-size: 1.6rem; line-height: 1.6; }
.custom-modal.custom-modal--top { z-index: 10001; }
form.inline-form { display: inline; }
.message-button-container.message-button-container--spaced { margin-bottom: 3rem; }

/* reCAPTCHA: Google's normal full-size widget (304x78), centred, never squeezed.
   Its wrapper div carries class "input", so undo the text-box styling on it. */
.wss .auth__form .form__field:has(.g-recaptcha) { text-align: center; }
.wss .auth__form .g-recaptcha,
.wss .auth__form .g-recaptcha.input { display: flex; justify-content: center; width: auto; height: auto; min-height: 78px; padding: 0; border: 0; background: none; box-shadow: none; transform: none; overflow: visible; }
/* Very small phones (<350px): the 304px captcha is a little wider than the card's inside,
   so let it show over the card's side padding instead of being clipped by the card */
@media screen and (max-width: 350px) {
  .wss .auth > .card:has(#register_button) { overflow: visible; }
}

/* Uploaded pictures (profile photos, item photos): black ring instead of the metallic
   gradient, whose cream / white stops read as a white border around the circle. */
.wss .ac-avatar,
.wss .hl-thumb,
.wss .hl--silver .hl-thumb,
.wss .hl--platinum .hl-thumb { background: #000; }
.wss .it-photo__ring { background: #000; }
.wss .ov__avatar, .wss .ov .profile-picture { background: #000; }

/* Public footer on phones / narrow screens: everything centred, rays from the middle */
@media screen and (max-width: 820px) {
  .wss .footer.pub-foot { --foot-ray-x: 50%; text-align: center; }
  .wss .pub-foot__inner { justify-items: center; }
  .wss .pub-foot__brand { align-self: auto; align-items: center; }
  .wss .pub-foot__logo { align-self: center; }
  .wss .pub-foot__brand p { text-align: center; margin-left: auto; margin-right: auto; }
  .wss .pub-foot__cols { width: 100%; max-width: 44rem; }
  .wss .pub-foot__col { align-items: center; }
  .wss .pub-foot__base { flex-direction: column; align-items: center; text-align: center; }
  .wss .pub-foot__legal { justify-content: center; }
}

/* Top bar 24h chart: explicit height so it always stays inside the bar. With
   height:auto the SVG took its height from its width (1000x100 viewBox), so on wide
   screens it grew taller than the bar and the gold line ran down onto the page. */
.wss .app-top__spark { height: calc(100% - 0.8rem - 1px); overflow: hidden; }
@media screen and (max-width: 1000px) {
  .wss .app-top__spark { height: calc(100% - 1px); }
}

/* Profile pictures: always a filled circle. The photo is zoomed in slightly inside the
   circle so pictures that were already cropped round on a white background (white
   corners / white rim) lose that white edge; ordinary photos still fill it. */
.wss .pfp { display: block; position: relative; overflow: hidden; border-radius: 50%; background: #000; }
.wss .pfp__img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.wss .ov__avatar.pfp, .wss .ov .profile-picture.pfp { border-radius: 50%; padding: 0; flex: none; aspect-ratio: 1 / 1; height: auto; }
.wss .ac-avatar { display: block; }
.wss .ac-avatar > .pfp { width: 100%; height: 100%; }
.wss .ov .profile-picture-placeholder { border-radius: 50%; }

/* Sidebar menu: solid background (on phones it slides over the page, which used to
   show through it). Its gold edge and pattern images stay on top of this colour. */
.wss .app-side { background-color: #08090c; }

/* Phones: the sidebar menu is solid and the page behind it is blacked out, so nothing
   shows through (the ring pattern read as page content behind the menu). */
@media screen and (max-width: 1000px) {
  .wss .app-side { background: linear-gradient(180deg, #0b0c11, #07080b); }
  .wss .app-side::before { display: none; }
  .wss .app-nav-toggle:checked ~ .app .app-scrim { background: #030406; }
}

/* Phones, menu open: no edge line on the menu, and the top bar (gold rule + 24h chart line)
   is hidden while it's covered, so no browser can paint it through the menu (iOS Safari can
   draw sticky/blurred bars above fixed panels). */
@media screen and (max-width: 1000px) {
  .wss .app-side::after { display: none; }
  .wss .app-nav-toggle:checked ~ .app #sticky-bar { visibility: hidden; }
}

/* Single login: the header's "Log in" is one rounded button (the separate 2FA login is gone) */
@media screen and (min-width: 1001px) {
  .wss .pub-header .header__menuItem.pub-header__login > a:not(.btn) { border-radius: 10px; border-right-color: var(--t-line-3); }
}

/* Add/edit form: note under "Spot at purchase" when it was filled from the date */
.spot-auto-note { display: block; margin-top: 0.6rem; font-size: 1.25rem; line-height: 1.4; color: var(--t-text-2, #9aa3b2); }
.spot-auto-note[hidden] { display: none; }
