:root,
body[data-theme="royal"] {
  --gold: #e4c56a;
  --gold-soft: #f3e2a8;
  --bg: #120e08;
  --card: #1c160e;
  --line: #4a3a1c;
  --text: #f8efd8;
  --muted: #b9a57a;
  --up: #16c784;
  --down: #ea3943;
  --buy: #0fa958;
  --sell: #e23b35;
  --nav-bg: rgba(18, 14, 8, .94);
  --row-line: #2a2216;
  --accent-gold: #e4c56a;
  --accent-silver: #c5ccd6;
  --accent-inr: #d4b45a;
  --bg-grad: none;
  --bar: #e4c56a;
  --bar-ink: #1a1408;
}

body[data-theme="omr"] {
  --gold: #e8b43c;
  --gold-soft: #0a2f5c;
  --bg: #f2e4a8;
  --card: #0a3d6b;
  --line: #0a3d6b;
  --text: #ffffff;
  --muted: #c8d6e6;
  --up: #1f9d55;
  --down: #e52d27;
  --buy: #1f9d55;
  --sell: #e52d27;
  --nav-bg: #f2e4a8;
  --row-line: rgba(255,255,255,.14);
  --accent-gold: #e8b43c;
  --accent-silver: #d7dee6;
  --accent-inr: #7eb6ff;
  --bg-grad: none;
  --bar: #e8b43c;
  --bar-ink: #0a2f5c;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(10,47,92,.05) 14px, rgba(10,47,92,.05) 15px),
    repeating-linear-gradient(-45deg, transparent, transparent 14px, rgba(10,47,92,.05) 14px, rgba(10,47,92,.05) 15px);
}

body[data-theme="omrsky"] {
  --gold: #c9a24d;
  --gold-soft: #1a2744;
  --bg: #efe8d8;
  --card: #1a2744;
  --line: #1a2744;
  --text: #ffffff;
  --muted: #c5c9d4;
  --up: #1f9d55;
  --down: #e52d27;
  --buy: #1f9d55;
  --sell: #e52d27;
  --nav-bg: #efe8d8;
  --row-line: rgba(255,255,255,.12);
  --accent-gold: #c9a24d;
  --accent-silver: #c5ccd6;
  --accent-inr: #8fa3c8;
  --bg-grad: none;
  --bar: #c9a24d;
  --bar-ink: #1a1408;
}

body[data-theme="omrblue"] {
  --gold: #f0c43a;
  --gold-soft: #fff4c4;
  --bg: #1458a8;
  --card: #06244f;
  --line: #06244f;
  --text: #ffffff;
  --muted: #b8d4f0;
  --up: #2ecc71;
  --down: #ff5a5a;
  --buy: #2ecc71;
  --sell: #ff5a5a;
  --nav-bg: #1458a8;
  --row-line: rgba(255,255,255,.16);
  --accent-gold: #f0c43a;
  --accent-silver: #d7dee6;
  --accent-inr: #7eb6ff;
  --bg-grad: none;
  --bar: #f0c43a;
  --bar-ink: #06244f;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(255,255,255,.05) 14px, rgba(255,255,255,.05) 15px),
    repeating-linear-gradient(-45deg, transparent, transparent 14px, rgba(255,255,255,.05) 14px, rgba(255,255,255,.05) 15px);
}

body[data-theme="bullion"] {
  --gold: #f0c43a;
  --gold-soft: #f0c43a;
  --bg: #163056;
  --card: #163056;
  --line: #f0c43a;
  --text: #ffffff;
  --muted: #b8c4d4;
  --up: #22c55e;
  --down: #ef4444;
  --buy: #22c55e;
  --sell: #ef4444;
  --nav-bg: #102440;
  --row-line: rgba(240, 196, 58, .45);
  --accent-gold: #f0c43a;
  --accent-silver: #d7dee6;
  --accent-inr: #9bb8e0;
  --bg-grad: none;
  --bar: #dfe3e8;
  --bar-ink: #1a2a4e;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 16px, rgba(255,255,255,.035) 16px, rgba(255,255,255,.035) 17px),
    repeating-linear-gradient(-45deg, transparent, transparent 16px, rgba(255,255,255,.035) 16px, rgba(255,255,255,.035) 17px);
}

body[data-theme="navygold"] {
  --gold: #fecb32;
  --gold-soft: #fecb32;
  --bg: #1b294e;
  --card: #1b294e;
  --line: #fecb32;
  --text: #e7e8ea;
  --muted: #b4bac4;
  --up: #22c55e;
  --down: #ef4444;
  --buy: #22c55e;
  --sell: #ef4444;
  --nav-bg: #1b294e;
  --row-line: rgba(254, 203, 50, .45);
  --accent-gold: #fecb32;
  --accent-silver: #e7e8ea;
  --accent-inr: #c5cad3;
  --bg-grad: none;
  --bar: #e7e8ea;
  --bar-ink: #1b294e;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 16px, rgba(255,255,255,.035) 16px, rgba(255,255,255,.035) 17px),
    repeating-linear-gradient(-45deg, transparent, transparent 16px, rgba(255,255,255,.035) 16px, rgba(255,255,255,.035) 17px);
}

body[data-theme="cream"] {
  --gold: #b8902e;
  --gold-soft: #8a6a14;
  --bg: #f4efe4;
  --card: #fffdf8;
  --line: #e4d5bc;
  --text: #1c1610;
  --muted: #6e6458;
  --up: #0d8a45;
  --down: #c62828;
  --buy: #148f4a;
  --sell: #d32f2a;
  --nav-bg: rgba(244, 239, 228, .96);
  --row-line: #eadfcd;
  --accent-gold: #c9a24d;
  --accent-silver: #9aa3ad;
  --accent-inr: #5b6ea6;
}

body[data-theme="white"] {
  --gold: #b08a2e;
  --gold-soft: #8a6a14;
  --bg: #ffffff;
  --card: #f7f7f7;
  --line: #e4e4e4;
  --text: #1a1a1a;
  --muted: #6a6a6a;
  --up: #0d8a45;
  --down: #c62828;
  --buy: #148f4a;
  --sell: #d32f2a;
  --nav-bg: rgba(255, 255, 255, .96);
  --row-line: #ececec;
  --accent-gold: #c9a24d;
  --accent-silver: #8a929a;
  --accent-inr: #4a6aa0;
}

body[data-theme="sand"] {
  --gold: #b08a3e;
  --gold-soft: #8a6c2c;
  --bg: #f3ead8;
  --card: #fffaf2;
  --line: #e2d2b4;
  --text: #2a2218;
  --muted: #7a6e5c;
  --up: #0d8a45;
  --down: #c62828;
  --buy: #148f4a;
  --sell: #d32f2a;
  --nav-bg: rgba(243, 234, 216, .96);
  --row-line: #eadcc4;
  --accent-gold: #c4a36a;
  --accent-silver: #9aa3ad;
  --accent-inr: #6b7e9a;
}

body[data-theme="sky"] {
  --gold: #3d6ea8;
  --gold-soft: #2a5280;
  --bg: #e8f1f8;
  --card: #ffffff;
  --line: #c5d6e6;
  --text: #142033;
  --muted: #5c6e82;
  --up: #0d8a45;
  --down: #c62828;
  --buy: #148f4a;
  --sell: #d32f2a;
  --nav-bg: rgba(232, 241, 248, .96);
  --row-line: #d5e4f0;
  --accent-gold: #c9a24d;
  --accent-silver: #8a98a8;
  --accent-inr: #4a7ab8;
}

body[data-theme="blush"] {
  --gold: #b86a74;
  --gold-soft: #8e4e58;
  --bg: #f8ecee;
  --card: #fff8f8;
  --line: #e8cfd4;
  --text: #2a181c;
  --muted: #7a5c62;
  --up: #0d8a45;
  --down: #c62828;
  --buy: #148f4a;
  --sell: #d32f2a;
  --nav-bg: rgba(248, 236, 238, .96);
  --row-line: #f0dde0;
  --accent-gold: #c9a24d;
  --accent-silver: #a8989c;
  --accent-inr: #c97a88;
}

body[data-theme="metal"] {
  --gold: #e0c36a;
  --gold-soft: #d7dce3;
  --bg: #16181d;
  --card: #22262e;
  --line: #3d424c;
  --text: #f4efe6;
  --muted: #a8aeb8;
  --up: #16c784;
  --down: #ea3943;
  --buy: #0fa958;
  --sell: #e23b35;
  --nav-bg: rgba(22, 24, 29, .95);
  --row-line: #2c313a;
  --accent-gold: #e0c36a;
  --accent-silver: #c5ccd6;
  --accent-inr: #9bb0d4;
}

body[data-theme="goldsilver"] {
  --gold: #b8943a;
  --gold-soft: #8a7020;
  --bg: #eee6d4;
  --card: #f4f5f7;
  --line: #d4c8b0;
  --text: #2a2214;
  --muted: #6e6858;
  --up: #0d8a45;
  --down: #c62828;
  --buy: #148f4a;
  --sell: #d32f2a;
  --nav-bg: rgba(238, 230, 212, .96);
  --row-line: #e2d8c4;
  --accent-gold: #c9a24d;
  --accent-silver: #9aa3ad;
  --accent-inr: #7a8ca0;
}

body[data-theme="navy"] {
  --gold: #7eb6ff;
  --gold-soft: #b9d4ff;
  --bg: #070b16;
  --card: #10182c;
  --line: #243254;
  --text: #eef3ff;
  --muted: #8fa0c4;
  --up: #16c784;
  --down: #ea3943;
  --buy: #0fa958;
  --sell: #e23b35;
  --nav-bg: rgba(7, 11, 22, .95);
  --row-line: #1a243c;
  --accent-gold: #f0c75e;
  --accent-silver: #c5ccd6;
  --accent-inr: #3d7dff;
}

body[data-theme="ink"] {
  --gold: #d4b45a;
  --gold-soft: #f0ddaa;
  --bg: #080a0f;
  --card: #121722;
  --line: #2a3346;
  --text: #f7f4ee;
  --muted: #9aa4b8;
  --up: #16c784;
  --down: #ea3943;
  --buy: #0fa958;
  --sell: #e23b35;
  --nav-bg: rgba(8, 10, 15, .94);
  --row-line: #1e2636;
  --accent-gold: #d4b45a;
  --accent-silver: #c5ccd6;
  --accent-inr: #7aa2ff;
}

body[data-theme="rose"] {
  --gold: #e8a090;
  --gold-soft: #f6cfc4;
  --bg: #1a1012;
  --card: #2a181c;
  --line: #5a3438;
  --text: #fde8e2;
  --muted: #c9a8a4;
  --up: #16c784;
  --down: #ea3943;
  --buy: #0fa958;
  --sell: #e23b35;
  --nav-bg: rgba(26, 16, 18, .95);
  --row-line: #3a2226;
  --accent-gold: #e8a090;
  --accent-silver: #d8c8c4;
  --accent-inr: #c97a88;
}

body[data-theme="ruby"] {
  --gold: #e0566a;
  --gold-soft: #ffb3bc;
  --bg: #14080a;
  --card: #241014;
  --line: #5c2430;
  --text: #ffe4e8;
  --muted: #c898a0;
  --up: #16c784;
  --down: #ea3943;
  --buy: #0fa958;
  --sell: #e23b35;
  --nav-bg: rgba(20, 8, 10, .95);
  --row-line: #32141c;
  --accent-gold: #f0c75e;
  --accent-silver: #d0c4c8;
  --accent-inr: #e0566a;
}

body[data-theme="emerald"] {
  --gold: #7fd4a8;
  --gold-soft: #c6f0d8;
  --bg: #07140f;
  --card: #10241c;
  --line: #245844;
  --text: #e4f8ee;
  --muted: #8ab8a4;
  --up: #16c784;
  --down: #ea3943;
  --buy: #0fa958;
  --sell: #e23b35;
  --nav-bg: rgba(7, 20, 15, .95);
  --row-line: #183028;
  --accent-gold: #e4c56a;
  --accent-silver: #c5d0cc;
  --accent-inr: #3dcc8a;
}

body[data-theme="pearl"] {
  --gold: #6b7c92;
  --gold-soft: #4a5a70;
  --bg: #e8eef4;
  --card: #ffffff;
  --line: #c5d0dc;
  --text: #1a2430;
  --muted: #5c6b7c;
  --up: #0d8a45;
  --down: #c62828;
  --buy: #148f4a;
  --sell: #d32f2a;
  --nav-bg: rgba(232, 238, 244, .96);
  --row-line: #d5dee8;
  --accent-gold: #c9a24d;
  --accent-silver: #8a98a8;
  --accent-inr: #4a7ab8;
}

body[data-theme="saffron"] {
  --gold: #f0a030;
  --gold-soft: #ffd08a;
  --bg: #1a0c08;
  --card: #2c140c;
  --line: #6a3818;
  --text: #ffe8c8;
  --muted: #c8a078;
  --up: #16c784;
  --down: #ea3943;
  --buy: #0fa958;
  --sell: #e23b35;
  --nav-bg: rgba(26, 12, 8, .95);
  --row-line: #3a1c10;
  --accent-gold: #f0a030;
  --accent-silver: #d4c8b8;
  --accent-inr: #e07040;
}

body[data-theme="sunrise"] {
  --gold: #c4842a;
  --gold-soft: #9a6420;
  --bg: #fff6e8;
  --card: rgba(255, 252, 246, .9);
  --line: #ebd2b0;
  --text: #3a2412;
  --muted: #8a6e50;
  --up: #0d8a45;
  --down: #c62828;
  --buy: #148f4a;
  --sell: #d32f2a;
  --nav-bg: rgba(255, 248, 236, .95);
  --row-line: #f3e2c8;
  --accent-gold: #e0a040;
  --accent-silver: #9aa3ad;
  --accent-inr: #5b6ea6;
  --bg-grad: linear-gradient(165deg, #fffaf2 0%, #ffe7c2 45%, #ffd4bc 100%);
}

body[data-theme="lilac"] {
  --gold: #7a5aa8;
  --gold-soft: #5c3f86;
  --bg: #f7f2ff;
  --card: rgba(255, 255, 255, .9);
  --line: #d8ccec;
  --text: #2a2040;
  --muted: #6e6288;
  --up: #0d8a45;
  --down: #c62828;
  --buy: #148f4a;
  --sell: #d32f2a;
  --nav-bg: rgba(247, 242, 255, .95);
  --row-line: #ebe3f6;
  --accent-gold: #c9a24d;
  --accent-silver: #8a90b0;
  --accent-inr: #7a6ad0;
  --bg-grad: linear-gradient(160deg, #fff8ff 0%, #eee4ff 48%, #f4e8f8 100%);
}

body[data-theme="mint"] {
  --gold: #2d8a62;
  --gold-soft: #1f6b4c;
  --bg: #eefaf4;
  --card: rgba(255, 255, 255, .9);
  --line: #c4e4d4;
  --text: #163028;
  --muted: #4e7464;
  --up: #0d8a45;
  --down: #c62828;
  --buy: #148f4a;
  --sell: #d32f2a;
  --nav-bg: rgba(238, 250, 244, .95);
  --row-line: #d8eee4;
  --accent-gold: #c9a24d;
  --accent-silver: #8aa0a8;
  --accent-inr: #2d8a62;
  --bg-grad: linear-gradient(165deg, #f6fffb 0%, #d8f4e8 50%, #e8f6ee 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Outfit, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--app-ink, var(--text));
  min-height: 100vh;
  --app-font: 1;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 8px;
  background: var(--header-bg, transparent);
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.app-header img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}
.app-header h1 {
  margin: 0;
  font-size: calc(20px * var(--heading-font, var(--app-font, 1)));
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--header-name, var(--text));
  line-height: 1.1;
}
.app-header small {
  color: var(--header-sub, var(--muted));
  display: block;
  margin-top: 3px;
  font-size: calc(11px * var(--heading-font, var(--app-font, 1)));
  letter-spacing: .6px;
  text-transform: uppercase;
}
.admin-live-back {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #1a2744;
  color: #f3e2a8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1;
}
body[data-header-align="center"] .app-header {
  justify-content: center;
  position: relative;
}
body[data-header-align="center"] .header-brand { margin: 0 auto; }
body[data-header-align="center"] .admin-live-back {
  position: absolute;
  right: 12px;
  top: 14px;
  margin: 0;
}
body[data-header-align="right"] .app-header { justify-content: flex-end; }
body[data-header-align="right"] .header-brand {
  flex-direction: row-reverse;
  text-align: right;
}
body[data-header-align="right"] .admin-live-back {
  margin-left: 0;
  margin-right: auto;
}
body[data-header-place="bottom"] {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body[data-header-place="bottom"] .app-header {
  order: 40;
  margin-top: auto;
  position: sticky;
  bottom: 58px;
  z-index: 3;
  background: var(--header-bg, var(--bg));
  border-top: 1px solid var(--line);
  padding-top: 10px;
  padding-bottom: 10px;
}
body[data-header-place="bottom"] .marquee.top { order: 1; }
body[data-header-place="bottom"] .shop-display { order: 2; }
body[data-header-place="bottom"] .panel { order: 3; }
body[data-header-place="bottom"] .marquee.bottom {
  order: 39;
  position: relative;
  bottom: auto;
}

.panel { display: none; }
.panel.on { display: block; }
.alerts-title {
  margin: 8px 16px 10px;
  font-size: 15px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.notes {
  padding: 0 12px 110px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notes-empty {
  margin: 24px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 12px 12px 10px;
  color: var(--text);
}
.note p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.note time { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.nav-ico {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.nav-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  display: inline-flex;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--down);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}
.nav-badge.hide { display: none; }
.bank-list {
  padding: 0 12px 110px;
}
.bank-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
  overflow: hidden;
}
.bank-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  color: var(--gold-soft);
}
.bank-card header svg { flex-shrink: 0; }
.bank-card header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.bank-card header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.bank-card dl { margin: 0; }
.bank-card dl > div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.bank-card dl > div:last-child { border-bottom: 0; }
.bank-card dt {
  margin: 0;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding-top: 3px;
}
.bank-card dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}
.bank-card .copy-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-sheet[hidden] { display: none; }
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 8;
}
.menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: color-mix(in srgb, var(--bg) 72%, #000 28%);
  cursor: pointer;
}
.menu-card {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 68px;
  background: var(--nav-bg);
  color: var(--text);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--bg) 55%, #000 45%);
  backdrop-filter: blur(16px);
  max-height: min(70vh, 420px);
  overflow: auto;
}
.menu-title {
  margin: 0 4px 4px;
  padding: 8px 8px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--gold-soft);
  border-bottom: 1px solid var(--line);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  z-index: 9;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.toast[hidden] { display: none; }
.info-wrap { padding: 0 12px 110px; }
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.info-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.info-card header img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}
.info-card header h3 { margin: 0; font-size: 17px; color: var(--text); }
.info-card header p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.info-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
}
.info-btn, .info-card .info-btn {
  display: block;
  margin-top: 14px;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--gold-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.info-card dl { margin: 0; }
.info-card dl > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.info-card dl > div:last-child { border-bottom: 0; }
.info-card dt {
  margin: 0;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding-top: 3px;
}
.info-card dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); word-break: break-word; }
.info-card dd a { color: var(--gold-soft); text-decoration: none; }
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  padding: 14px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.menu-item svg { color: var(--gold); flex-shrink: 0; }
.menu-item:hover,
.menu-item:active {
  background: var(--row-line);
  color: var(--gold-soft);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 10px;
  font-size: 12px;
  color: var(--muted);
}
.status-line .when { margin-left: auto; opacity: .85; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
  display: inline-block;
}
.dot.on {
  background: var(--up);
  box-shadow: 0 0 0 4px rgba(22, 199, 132, .18);
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-weight: 600;
}
.badge.open { background: rgba(22, 199, 132, .16); color: var(--up); }
.badge.closed { background: rgba(234, 57, 67, .16); color: #ff8a90; }
.badge.paused { background: rgba(230, 168, 23, .22); color: #c48a10; }
.dot.paused {
  background: #e6a817;
  box-shadow: 0 0 0 4px rgba(230, 168, 23, .18);
}

.global {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
}
.gbox {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 0 0 8px;
  text-align: center;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  background: var(--card);
  border: 0;
}
.gbox.gold,
.gbox.silver,
.gbox.inr { border-top: 0; }
.gbox .label {
  display: block;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--bar-ink, #1a1408);
  background: var(--bar, var(--gold));
}
.gbox .livepx {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 10px 6px 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.gbox .dir {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.gbox .dir.up { color: var(--up); }
.gbox .dir.down { color: var(--down); }
.gbox .dir.flat { color: var(--muted); }
.gbox .livepx.tick-up .dir,
.gbox .livepx.tick-down .dir { color: #fff; }
.gbox .hl {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  line-height: 1.2;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.gbox .ago {
  display: none;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--nav-bg);
  color: var(--text);
  font-size: 9px;
  padding: 5px 4px;
}
.gbox.show-time .ago { display: block; }

.products { padding: 2px 12px 10px; }
.futures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 108px;
}
.frow {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 0 8px;
  overflow: hidden;
}
.fhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 6px;
  background: var(--bar, var(--gold));
  color: var(--bar-ink, #1a1408);
  flex-wrap: nowrap;
  white-space: nowrap;
}
.frow h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  text-transform: uppercase;
  color: inherit;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.chg {
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: inherit;
  flex-shrink: 0;
  white-space: nowrap;
}
.fquote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 10px 0 4px;
}
.fcol {
  min-width: 0;
  text-align: center;
  padding: 0 8px;
}
.fcol + .fcol {
  border-left: 1px solid var(--row-line);
}
.fcol span {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
}
.fcol strong {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.4px;
  color: var(--text);
}
.lh {
  margin: 4px 8px 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}
.lh #gold-l, .lh #silver-l { color: var(--down); }
.lh #gold-h, .lh #silver-h { color: var(--up); }
.prow {
  display: grid;
  grid-template-columns: 1.5fr .7fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--row-line);
  border-radius: 0;
  background: var(--card);
}
.prow.head + #products .prow:last-child,
#products .prow:last-child { border-radius: 0 0 10px 10px; }
.prow.head {
  padding: 10px 10px;
  color: var(--bar-ink, #1a1408);
  background: var(--bar, var(--gold));
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.prow.head > div:nth-child(2),
.prow.head > div:nth-child(3),
.prow .set,
.prow .rate { text-align: right; }
.prow .name { font-size: 15px; font-weight: 700; color: var(--text); }
.prow .set {
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: none;
  padding: 0;
}
.prow .rate {
  font-weight: 800;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  background: none;
  padding: 2px 0;
  color: var(--text);
}
.prow .rate.tick-up,
.prow .rate.tick-down {
  padding: 2px 7px;
  color: #fff;
}
.prow .rate.tick-up { background: #1f9d55; }
.prow .rate.tick-down { background: #d32f2f; }
.prow .rate em {
  font-style: normal;
  font-size: 11px;
  margin-right: 2px;
}

.tick-up,
.tick-down,
.fcol strong.tick-up,
.fcol strong.tick-down {
  display: inline-block;
  min-width: 4.2em;
  padding: 3px 6px;
  border-radius: 5px;
  text-align: center;
  color: #fff;
}
.tick-up,
.fcol strong.tick-up { background: #1f9d55; }
.tick-down,
.fcol strong.tick-down { background: #d32f2f; }
.flash-up { animation: tickPulse .45s ease; }
.flash-down { animation: tickPulse .45s ease; }
@keyframes tickPulse {
  0% { filter: brightness(1.28); transform: scale(1.04); }
  100% { filter: none; transform: none; }
}

.fab {
  position: fixed;
  bottom: 90px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 20px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.25);
  z-index: 5;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.fab.wa { left: 16px; background: linear-gradient(180deg, #2ee36c, #1fbf55); color: #fff; }
.fab.call { right: 16px; background: linear-gradient(180deg, #f0d78a, var(--gold)); color: #1a1408; }
.fab.dragging { cursor: grabbing; transform: scale(1.06); box-shadow: 0 14px 28px rgba(0,0,0,.38); }
@media (hover: hover) {
  .fab:hover {
    transform: scale(1.08);
    filter: brightness(1.06);
    box-shadow: 0 12px 26px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.35);
  }
  .fab:active { transform: scale(.96); }
}

.nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 58px;
  background: var(--nav-bar, var(--nav-bg));
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 4;
}
.nav .nav-item {
  appearance: none;
  -webkit-appearance: none;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  cursor: pointer;
}
.nav .nav-item svg {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.nav .nav-item em {
  font-style: normal;
  display: block;
  line-height: 1.1;
  height: 12px;
}
.nav .nav-item.spin svg { animation: refresh-spin .7s linear; }
@keyframes refresh-spin {
  to { transform: rotate(360deg); }
}
.nav .nav-item.active { color: var(--gold-soft); }
body[data-theme="omr"] .nav {
  background: #f2e4a8;
  border-top: 1px solid #d4b44a;
}
body[data-theme="omr"] .nav .nav-item { color: var(--menu-ink, #0a3d6b); }
body[data-theme="omr"] .nav .nav-item.active { color: var(--menu-ink, #0a2f5c); }
body[data-theme="omr"] .marquee {
  background: #0a3d6b;
  color: #fff;
  border-color: #0a3d6b;
}
body[data-theme="omr"] .status-line { color: var(--app-ink, #0a3d6b); }
body[data-theme="omr"] .app-header h1 { color: var(--header-name, #0a2f5c); }

body[data-theme="omrsky"] .nav {
  background: #efe8d8;
  border-top: 1px solid #d4c6a8;
}
body[data-theme="omrsky"] .nav .nav-item { color: var(--menu-ink, #1a2744); }
body[data-theme="omrsky"] .nav .nav-item.active { color: var(--menu-ink, #8a6e28); }
body[data-theme="omrsky"] .marquee {
  background: #1a2744;
  color: #f4efe6;
  border-color: #1a2744;
}
body[data-theme="omrsky"] .status-line { color: var(--app-ink, #1a2744); }
body[data-theme="omrsky"] .app-header h1 { color: var(--header-name, #1a2744); }

body[data-theme="omrblue"] .nav {
  background: #1458a8;
  border-top: 1px solid #0d3f7a;
}
body[data-theme="omrblue"] .nav .nav-item { color: var(--menu-ink, #d6e8ff); }
body[data-theme="omrblue"] .nav .nav-item.active { color: var(--menu-ink, #f0c43a); }
body[data-theme="omrblue"] .marquee {
  background: #06244f;
  color: #fff;
  border-color: #06244f;
}
body[data-theme="omrblue"] .status-line { color: var(--app-ink, #d6e8ff); }
body[data-theme="omrblue"] .app-header h1 { color: var(--header-name, #ffffff); }
body[data-theme="omrblue"] .admin-live-back { background: #f0c43a; color: #06244f; }

body[data-theme="bullion"] .app-header h1,
body[data-theme="navygold"] .app-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--header-name, var(--text));
}
body[data-theme="bullion"] .app-header img,
body[data-theme="navygold"] .app-header img { border-color: var(--gold); }
body[data-theme="bullion"] .status-line,
body[data-theme="navygold"] .status-line { color: var(--app-ink, var(--muted)); }
body[data-theme="bullion"] .global,
body[data-theme="navygold"] .global {
  gap: 0;
  padding: 0 0 8px;
  background: var(--bar);
  border-radius: 0;
}
body[data-theme="bullion"] .gbox,
body[data-theme="navygold"] .gbox {
  background: var(--bar);
  border-radius: 0;
  color: var(--bar-ink);
}
body[data-theme="bullion"] .gbox .label,
body[data-theme="navygold"] .gbox .label {
  background: var(--bar);
  color: var(--bar-ink);
  padding: 10px 4px 2px;
  letter-spacing: .6px;
}
body[data-theme="bullion"] .gbox .livepx,
body[data-theme="navygold"] .gbox .livepx {
  color: var(--bar-ink);
  margin: 6px 4px 4px;
}
body[data-theme="bullion"] .gbox .livepx.tick-up,
body[data-theme="bullion"] .gbox .livepx.tick-down,
body[data-theme="navygold"] .gbox .livepx.tick-up,
body[data-theme="navygold"] .gbox .livepx.tick-down {
  background: none;
  color: var(--bar-ink);
  min-width: 0;
  padding: 0;
}
body[data-theme="bullion"] .gbox .livepx.tick-up .dir,
body[data-theme="bullion"] .gbox .livepx.tick-down .dir,
body[data-theme="navygold"] .gbox .livepx.tick-up .dir,
body[data-theme="navygold"] .gbox .livepx.tick-down .dir { color: inherit; }
body[data-theme="bullion"] .gbox .dir.up,
body[data-theme="navygold"] .gbox .dir.up { color: #22c55e; }
body[data-theme="bullion"] .gbox .dir.down,
body[data-theme="navygold"] .gbox .dir.down { color: #ef4444; }
body[data-theme="bullion"] .hl-hi,
body[data-theme="navygold"] .hl-hi { color: #22c55e; }
body[data-theme="bullion"] .hl-lo,
body[data-theme="navygold"] .hl-lo { color: #ef4444; }
body[data-theme="bullion"] .hl-sep,
body[data-theme="navygold"] .hl-sep { color: #8b93a0; }
body:not(.admin-body)[data-theme="bullion"] .gbox .livepx,
body:not(.admin-body)[data-theme="navygold"] .gbox .livepx { color: var(--bar-ink); }
body:not(.admin-body)[data-theme="bullion"] .gbox .livepx.tick-up,
body:not(.admin-body)[data-theme="bullion"] .gbox .livepx.tick-down,
body:not(.admin-body)[data-theme="navygold"] .gbox .livepx.tick-up,
body:not(.admin-body)[data-theme="navygold"] .gbox .livepx.tick-down { color: var(--bar-ink); }
body[data-theme="bullion"] .futures,
body[data-theme="navygold"] .futures {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 0 108px;
}
body[data-theme="bullion"] .frow,
body[data-theme="navygold"] .frow {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--gold);
  padding: 8px 12px 10px;
}
body[data-theme="bullion"] .fhead,
body[data-theme="navygold"] .fhead {
  background: transparent;
  color: var(--text);
  padding: 4px 0 2px;
}
body[data-theme="bullion"] .frow h2,
body[data-theme="navygold"] .frow h2 { letter-spacing: .8px; }
body[data-theme="bullion"] .fcol span,
body[data-theme="navygold"] .fcol span { display: none; }
body[data-theme="bullion"] .fcol strong,
body[data-theme="navygold"] .fcol strong { color: var(--text); font-size: 18px; }
body[data-theme="bullion"] .fcol strong.tick-up,
body[data-theme="bullion"] .fcol strong.tick-down,
body[data-theme="navygold"] .fcol strong.tick-up,
body[data-theme="navygold"] .fcol strong.tick-down {
  background: none;
  color: var(--text);
  padding: 0;
  min-width: 0;
}
body[data-theme="bullion"] .lh,
body[data-theme="navygold"] .lh { margin: 2px 8px 0; }
body[data-theme="bullion"] .products,
body[data-theme="navygold"] .products { padding: 4px 12px 8px; }
body[data-theme="bullion"] .prow.head,
body[data-theme="navygold"] .prow.head { color: var(--gold); }
body[data-theme="bullion"] .marquee,
body[data-theme="navygold"] .marquee {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
  font-weight: 800;
}
body[data-theme="bullion"] .nav,
body[data-theme="navygold"] .nav {
  background: var(--nav-bg);
  border-top: 1px solid var(--gold);
}
body[data-theme="bullion"] .nav .nav-item,
body[data-theme="navygold"] .nav .nav-item { color: var(--menu-ink, var(--text)); }
body[data-theme="bullion"] .nav .nav-item.active,
body[data-theme="navygold"] .nav .nav-item.active { color: var(--menu-ink, var(--gold)); }
body[data-theme="bullion"] .fab.wa,
body[data-theme="bullion"] .fab.call,
body[data-theme="navygold"] .fab.wa,
body[data-theme="navygold"] .fab.call {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}
body[data-theme="bullion"] .fab.wa,
body[data-theme="navygold"] .fab.wa { color: #128c3a; }
body[data-theme="bullion"] .admin-live-back,
body[data-theme="navygold"] .admin-live-back { background: var(--gold); color: var(--bg); }

.marquee {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
  white-space: nowrap;
  overflow: hidden;
}
.marquee.top { margin: 0 0 8px; }
.marquee.bottom {
  position: fixed;
  left: 0; right: 0;
  bottom: 58px;
  margin: 0;
  z-index: 3;
}
.marquee.empty { display: none; }
.shop-display {
  position: relative;
  margin: 0 12px 10px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
.shop-display.empty { display: none; }
.shop-viewport {
  overflow: hidden;
  border-radius: 10px;
  touch-action: pan-y;
  cursor: grab;
}
.shop-track {
  display: flex;
  width: 100%;
}
.shop-slide {
  flex: 0 0 100%;
  min-width: 100%;
}
.shop-slide img {
  width: 100%;
  aspect-ratio: 2.6 / 1;
  max-height: 128px;
  object-fit: cover;
  background: #f6f1e8;
  display: block;
  pointer-events: none;
}
.shop-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.shop-arrow.prev { left: 14px; }
.shop-arrow.next { right: 14px; }
.shop-display.single .shop-arrow { display: none; }
.shop-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-height: 14px;
  padding-top: 8px;
}
.shop-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}
.shop-dots button.on { background: var(--gold-soft); }
.marquee span { display: inline-block; padding-left: 100%; animation: slide 22s linear infinite; }
.marquee.bottom span { animation-duration: 26s; animation-direction: reverse; }
@keyframes slide { to { transform: translateX(-100%); } }

body:not(.admin-body) .status-line { font-size: calc(12px * var(--app-font, 1)); color: var(--app-ink, var(--muted)); }
body:not(.admin-body) .alerts-title { font-size: calc(15px * var(--app-font, 1)); color: var(--news-ink, var(--gold-soft)); }
body:not(.admin-body) .note p { font-size: calc(14px * var(--app-font, 1)); color: var(--news-ink, var(--text)); }
body:not(.admin-body) .note time { font-size: calc(11px * var(--app-font, 1)); color: var(--news-ink, var(--muted)); }
body:not(.admin-body) .gbox .label { font-size: calc(13px * var(--app-font, 1)); }
body:not(.admin-body) .gbox .livepx { font-size: calc(20px * var(--app-font, 1)); color: var(--app-ink, var(--text)); }
body:not(.admin-body) .gbox .livepx.tick-up,
body:not(.admin-body) .gbox .livepx.tick-down { color: #fff; }
body:not(.admin-body) .gbox .hl { font-size: calc(13px * var(--app-font, 1)); }
body:not(.admin-body) .prow.head { font-size: calc(14px * var(--app-font, 1)); }
body:not(.admin-body) .prow .name { font-size: calc(15px * var(--app-font, 1)); color: var(--app-ink, var(--text)); }
body:not(.admin-body) .prow .rate { font-size: calc(20px * var(--app-font, 1)); color: var(--app-ink, var(--text)); }
body:not(.admin-body) .frow h2 { font-size: calc(12px * var(--app-font, 1)); }
body:not(.admin-body) .chg { font-size: calc(11px * var(--app-font, 1)); }
body:not(.admin-body) .fcol span { font-size: calc(13px * var(--app-font, 1)); }
body:not(.admin-body) .fcol strong { font-size: calc(16px * var(--app-font, 1)); }
body:not(.admin-body) .nav .nav-item { font-size: calc(10px * var(--app-font, 1)); color: var(--menu-ink, var(--muted)); }
body:not(.admin-body) .nav .nav-item.active { color: var(--menu-ink, var(--gold-soft)); }
body:not(.admin-body) .menu-title { color: var(--menu-ink, var(--gold-soft)); }
body:not(.admin-body) .menu-item { font-size: calc(16px * var(--app-font, 1)); color: var(--menu-ink, var(--text)); }
body:not(.admin-body) a.menu-item { text-decoration: none; }
body:not(.admin-body) .info-card header h3,
body:not(.admin-body) .info-card dd,
body:not(.admin-body) .info-body { color: var(--app-ink, var(--text)); }

.admin-body { background: #f4efe6; color: #222; }
.admin-wrap { max-width: 860px; margin: 0 auto; padding: 12px 12px 84px; }
.admin-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-brand img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #c9a24d;
}
.admin-top h1 { margin: 0; color: #1a2744; font-size: 17px; line-height: 1.15; }
.admin-top p { margin: 2px 0 0; color: #666; font-size: 12px; }
.admin-bar {
  position: fixed; left: 0; right: 0; bottom: 0; min-height: 56px;
  background: #fff; border-top: 1px solid #e4d9c8; display: flex; z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}
.admin-bar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; color: #6b6154; font-size: 10px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase; padding: 8px 4px 10px;
}
.admin-bar a em { font-style: normal; }
.admin-bar a.on { color: #1a2744; }
.admin-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: 0; background: #f4efe6;
  padding: 4px 0 10px; z-index: 5;
}
.admin-tabs a {
  flex: 1 1 18%; min-width: 58px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; text-align: center; padding: 8px 4px 7px; border-radius: 10px;
  background: #fff; text-decoration: none; color: #1a2744; font-size: 11px;
  font-weight: 700; border: 1px solid #e4d9c8;
}
.admin-tabs a em { font-style: normal; }
.admin-tabs a.on { background: #1a2744; color: #fff; border-color: #1a2744; }
.profile-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 12px;
}
.profile-card {
  display: block;
  background: #fff;
  border: 1px solid #eadfcd;
  border-radius: 14px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: #1a2744;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  min-width: 0;
}
.profile-card svg { display: block; margin-bottom: 8px; color: #1a2744; }
.profile-card-logo img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  border: 2px solid #c9a24d;
}
.profile-card-wide { grid-column: 1 / -1; }
.profile-card strong { display: block; font-size: 18px; }
.profile-card span { display: block; margin-top: 4px; font-size: 13px; color: #6b6154; line-height: 1.4; }
.live-rates-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 0 0 14px;
}
.live-rates-status .dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: none;
}
.live-rates-status.is-on { background: #e4f7e8; }
.live-rates-status.is-paused { background: #fff4d4; }
.live-rates-status.is-on .dot { background: #16c784; }
.live-rates-status.is-paused .dot { background: #e6a817; }
.live-rates-status strong { display: block; font-size: 16px; color: #1a2744; }
.live-rates-status span { display: block; margin-top: 2px; font-size: 13px; color: #5a5348; line-height: 1.4; }
.renew-marquee {
  margin: 0 0 10px;
  background: #1a2744;
  color: #f3e2a8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  padding: 8px 0;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 10px;
}
.renew-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: slide 18s linear infinite;
}
.profile-back { margin: 0 0 10px; }
.profile-back a { color: #1a2744; font-weight: 700; text-decoration: none; font-size: 14px; }
.support-card h2 { margin: 0 0 4px; }
.support-card .theme-help { margin: 0 0 12px; color: #6b6154; font-size: 13px; }
.support-row {
  display: block;
  padding: 12px 0;
  border-top: 1px solid #eadfcd;
  text-decoration: none;
  color: #1a2744;
}
.support-row strong { display: block; font-size: 12px; letter-spacing: .3px; text-transform: uppercase; color: #7a7166; }
.support-row span { display: block; margin-top: 3px; font-size: 16px; font-weight: 700; }
a.support-row:hover span { text-decoration: underline; }
.form-block {
  border: 1px solid #eadfcd;
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 12px;
  background: #faf7f1;
}
.form-block h3,
.block-title {
  margin: 0 0 4px;
  font-size: 14px;
  color: #1a2744;
}
.form-block .theme-help { margin-bottom: 8px; }
.field-hint { display: block; margin: 4px 0 0; font-size: 11px; color: #7a7166; line-height: 1.35; }
.admin-form, .login-card {
  background: #fff; border-radius: 12px; padding: 14px; margin: 0 0 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.admin-form h2 { margin: 0 0 8px; font-size: 16px; }
.login-card { max-width: 380px; margin: 10vh auto; text-align: center; }
.login-logo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid #c9a24d; margin-bottom: 8px;
}
.login-card label, .login-card input { text-align: left; }
.login-card a { display: inline-block; margin-top: 12px; color: #1a2744; }
.logo-row { display: flex; gap: 12px; align-items: center; margin: 0 0 4px; }
.logo-preview {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid #e4d9c8; flex-shrink: 0;
}
label { display: block; margin: 8px 0 4px; font-size: 12px; font-weight: 600; }
.admin-body input, .admin-body select, .admin-body textarea {
  width: 100%; padding: 9px; border: 1px solid #d7d0c3; border-radius: 8px; font-size: 16px;
  font-family: inherit;
}
.admin-body textarea { min-height: 72px; resize: vertical; }
button:disabled { opacity: .45; }
button { margin-top: 12px; background: #1a2744; color: #fff; border: 0; padding: 10px 16px; border-radius: 8px; cursor: pointer; }
.form-actions { display: flex; align-items: center; gap: 12px; }
button.btn-link {
  background: none; color: #1a2744; font-weight: 800;
  padding: 10px 8px; box-shadow: none;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rates-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border-radius: 12px; padding: 10px 12px; margin: 0 0 8px;
  border: 1px solid #eadfcd; box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.rates-add-btn {
  margin: 0; flex-shrink: 0; white-space: nowrap;
  background: #1a2744; color: #fff; border: 0;
  padding: 8px 12px; border-radius: 8px; font-weight: 800; font-size: 13px;
}
.rates-formula { margin: 0; color: #1a2744; font-size: 12px; }
.rates-formula strong { font-weight: 800; }
.rates-count { margin: 3px 0 0; color: #7a7166; font-size: 11px; }
.product-list { display: flex; flex-direction: column; gap: 7px; }
.pcard {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  background: #fff; padding: 10px 12px; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.pcard.off { opacity: .65; }
.pcard-main { flex: 1 1 140px; min-width: 0; }
.pcard-main strong { display: block; font-size: 14px; color: #1a2744; word-break: break-word; }
.pcard-meta { display: block; margin-top: 2px; font-size: 11px; color: #666; text-transform: capitalize; }
.pcard.rate {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  padding: 8px 10px 7px;
  border-radius: 12px;
  border: 1px solid #eadfcd;
}
.pcard.rate.metal-gold { border-left: 4px solid #c9a24d; }
.pcard.rate.metal-silver { border-left: 4px solid #8a96a3; }
.pcard.rate.off { opacity: .55; }
.metal-mark {
  grid-row: 1 / span 2;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; letter-spacing: .3px;
}
.pcard.metal-gold .metal-mark { background: #f4e4b2; color: #8a6a14; }
.pcard.metal-silver .metal-mark { background: #e4e8ee; color: #4a5560; }
.pcard.rate .pcard-main strong { line-height: 1.2; font-size: 13px; }
.pcard-pills { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.pcard-pills .pill {
  font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .3px;
  text-transform: uppercase; padding: 1px 6px; border-radius: 999px; background: #f3eee4; color: #5c5348;
}
.pcard-pills .pill.gold { background: #f4e4b2; color: #8a6a14; }
.pcard-pills .pill.silver { background: #e4e8ee; color: #4a5560; }
.pcard-pills .pill.mute { background: #eee; color: #888; }
.pcard-set {
  background: #f3d36b; font-weight: 800; padding: 6px 10px; border-radius: 8px;
  font-variant-numeric: tabular-nums; font-size: 14px;
}
.pcard.rate .pcard-set {
  grid-column: 3; grid-row: 1;
  background: none; padding: 2px 0;
  font-size: 15px; text-align: right; min-width: 58px;
}
.pcard-set.plus { color: #148f4a; }
.pcard-set.minus { color: #c62828; }
.pcard-set.zero { color: #7a7166; }
.pcard.rate .actions { grid-column: 2 / 4; grid-row: 2; margin: 5px 0 0; padding-top: 5px; border-top: 1px dashed #eadfcd; }
.pcard.rate .actions a, .pcard.rate .linkish { font-size: 12px; }
.rates-dialog {
  border: 0; padding: 0; width: min(440px, calc(100vw - 24px));
  max-height: min(92dvh, calc(100dvh - 72px));
  overflow: auto; border-radius: 16px; background: transparent;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}
.rates-dialog::backdrop { background: rgba(0,0,0,.55); }
.rates-dialog .admin-form { margin: 0; }
.rates-form { border-left: 4px solid #c9a24d; padding: 14px; }
.rates-form:has([name="metal"][value="silver"]:checked) { border-left-color: #8a96a3; }
.rates-edit-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rates-edit-head h2 { margin: 0; font-size: 16px; color: #1a2744; }
.rates-edit-head p { margin: 2px 0 0; font-size: 11px; color: #7a7166; }
.rates-form .metal-mark.silver { display: none; }
.rates-form:has([name="metal"][value="silver"]:checked) .metal-mark.gold { display: none; }
.rates-form:has([name="metal"][value="silver"]:checked) .metal-mark.silver { display: flex; }
.rates-form .metal-mark { grid-row: auto; }
.choice-label { margin: 10px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #7a7166; }
.choice-row { display: flex; gap: 6px; }
.choice {
  flex: 1; margin: 0; display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 9px 6px; border-radius: 10px; border: 1px solid #e4d9c8;
  background: #faf7f1; font-size: 13px; font-weight: 800; color: #1a2744; cursor: pointer;
}
.choice input { position: absolute; opacity: 0; width: auto; pointer-events: none; }
.choice:has(input:checked) { background: #1a2744; color: #fff; border-color: #1a2744; }
.choice.gold:has(input:checked) { background: #c9a24d; border-color: #c9a24d; color: #1a1408; }
.choice.silver:has(input:checked) { background: #8a96a3; border-color: #8a96a3; color: #fff; }
.set-hero {
  margin: 14px 0 10px; padding: 12px; border-radius: 12px; background: #f7f2e8; text-align: center;
}
.set-hero label { display: block; margin: 0 0 6px; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: #7a7166; }
.set-hero input {
  width: 100%; border: 0; background: #fff; border-radius: 10px; text-align: center;
  font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 10px 8px; color: #1a2744;
}
.set-hero.plus input { color: #148f4a; }
.set-hero.minus input { color: #c62828; }
.set-hero small { display: block; margin-top: 8px; color: #7a7166; }
.live-toggle {
  margin: 22px 0 0; padding: 10px 12px; border: 1px solid #e4d9c8; border-radius: 10px;
  background: #faf7f1; font-size: 13px; font-weight: 700;
}
.admin-fold {
  background: #fff; border-radius: 12px; margin-top: 10px; padding: 0 12px 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.admin-fold summary { padding: 12px 0; font-weight: 700; cursor: pointer; color: #1a2744; }
.admin-form.nested { margin: 0; padding: 0 0 10px; box-shadow: none; }
.actions { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.actions form { margin: 0; }
.actions a { font-size: 13px; font-weight: 700; color: #1a2744; text-decoration: none; }
.linkish { background: none; color: #a33; border: 0; padding: 0; cursor: pointer; font-size: 13px; font-weight: 700; margin: 0; }
.flash { padding: 8px 10px; border-radius: 8px; margin: 0 0 10px; font-size: 13px; }
.flash.ok { background: #e4f7e8; }
.flash.error { background: #fde8e8; }
.flash.warn { background: #fff4d4; color: #6a4b00; border: 1px solid #e6d08a; }
.feed-dialog {
  border: 0;
  border-radius: 12px;
  padding: 18px 16px 14px;
  width: min(92vw, 360px);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.feed-dialog::backdrop { background: rgba(0,0,0,.45); }
.feed-dialog p { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #1a1408; }
.feed-dialog button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: #1a2744;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 8px 16px;
}
.check { display: flex; gap: 8px; align-items: center; }
.check input { width: auto; }
small { color: #666; }
.btn-link { color: #1a2744; }
.log-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.log-table th, .log-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid #eadfcd; vertical-align: top; }
.log-table th { color: #6b6154; font-size: 11px; }
.btn-restore {
  width: 100%;
  margin-top: 0;
  background: #fff;
  color: #1a2744;
  border: 2px solid #1a2744;
  font-weight: 800;
}
.theme-help { margin: 0 0 10px; color: #666; font-size: 12px; font-weight: 400; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 8px; }
.theme-card {
  margin: 0; padding: 8px; border: 2px solid #e4d9c8; border-radius: 12px;
  cursor: pointer; background: #faf7f1; font-weight: 500;
}
.theme-card.on { border-color: #1a2744; background: #fff; box-shadow: 0 0 0 3px rgba(26, 39, 68, .12); }
.theme-card input { position: absolute; opacity: 0; width: auto; pointer-events: none; }
.theme-card .swatches {
  display: flex; height: 22px; border-radius: 6px; overflow: hidden; margin-bottom: 6px;
}
.theme-card .swatches i { flex: 1; display: block; }
.theme-card strong { display: block; font-size: 12px; color: #1a2744; }
.color-box {
  margin: 14px 0 16px;
  padding: 0 12px 14px;
  border: 2px solid #1a2744;
  border-radius: 12px;
  background: #fff;
}
.color-box summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 800;
  color: #1a2744;
}
.color-box summary::-webkit-details-marker { display: none; }
.color-box summary::after {
  content: '▾';
  float: right;
  font-weight: 700;
}
.color-box[open] summary::after { content: '▴'; }
.nav-color-preview {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 40px;
  margin: 0 0 10px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.color-box .marquee-tools { margin-bottom: 0; }
.color-box .marquee-tools button[type="submit"] { margin-top: 0; }
.header-color-preview {
  background: #1c160e;
  border: 1px solid #e4d9c8;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0 10px;
}
.header-color-preview strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
}
.header-color-preview small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 12px; }
.color-grid label { margin-top: 0; }
.admin-body input[type="color"] {
  height: 40px; padding: 3px; cursor: pointer; background: #fff;
}
.slot-pick { display: flex; gap: 8px; margin: 0 0 10px; }
.slot-pick a {
  flex: 1; text-align: center; padding: 12px 8px; border-radius: 12px;
  background: #fff; text-decoration: none; color: #1a2744; font-size: 16px;
  font-weight: 800; border: 2px solid #e4d9c8;
}
.slot-pick a.on { background: #1a2744; color: #fff; border-color: #1a2744; }
.marquee-preview {
  border-radius: 10px; padding: 10px 12px; margin: 0 0 12px;
  font-weight: 700; text-align: center; overflow: hidden; white-space: nowrap;
}
.marquee-tools { display: flex; gap: 8px; margin: 0 0 12px; }
.marquee-tools button {
  flex: 1; margin-top: 0; background: #fff; color: #1a2744; border: 2px solid #e4d9c8;
  font-weight: 800;
}
.marquee-tools button.on { background: #1a2744; color: #fff; border-color: #1a2744; }
.admin-body input[type="range"] { padding: 0; height: 28px; }
.photo-admin {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.photo-admin figure { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; text-align: center; padding-bottom: 8px; }
.photo-admin img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.photo-actions { display: flex; justify-content: center; gap: 14px; align-items: center; padding-top: 6px; }
.photo-actions form { margin: 0; }
.crop-modal {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.crop-modal[hidden] { display: none; }
.crop-box {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}
.crop-box h3 { margin: 0 0 6px; color: #1a2744; }
.crop-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
  touch-action: none;
  cursor: grab;
  margin-bottom: 10px;
}
.crop-frame img {
  position: absolute;
  top: 0; left: 0;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.crop-box button {
  background: #1a2744; color: #fff; border: 0; border-radius: 10px;
  padding: 10px 16px; font-weight: 800; cursor: pointer;
}
.crop-box .btn-link { background: none; color: #1a2744; }

@media (max-width: 640px) {
  .buy strong, .sell strong { font-size: 15px; }
}
