/* ============================================
   MO2 Builder — Shared Styles
   Used by all pages: landing, login, register, calculator
   ============================================ */

:root {
  --bg: #0d0a07;
  --bg-grad-1: #1c160e;
  --bg-grad-2: #0a0805;
  --bg-card: #181410;
  --bg-elev: #221c14;
  --bg-elev-hover: #2a2218;
  --border: #3a2f1f;
  --border-strong: #5a4628;
  --text: #e3d9bf;
  --text-muted: #9a8e72;
  --text-dim: #6a5e48;
  --accent: #b8893d;
  --accent-bright: #d4a557;
  --accent-hover: #c89a48;
  --accent-deep: #6e4d1a;
  --blood: #8a2818;
  --blood-bright: #b03522;
  --wood: #a87646;
  --stone: #8a8472;
  --metal: #7d92a8;
  --gold: #d4a557;
  --prom: #c2613a;
  --health: #6b9655;
  --danger: #b03522;
  --success: #6b9655;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(ellipse at top, rgba(184, 137, 61, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at bottom, rgba(138, 40, 24, 0.05) 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
}
/* Themed texture overlay: subtle parchment/forge grain + faint heraldic motif.
   Fixed, behind everything, very low opacity so it never hurts readability. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(184,137,61,0.05) 0%, transparent 8%),
    radial-gradient(circle at 80% 65%, rgba(138,40,24,0.045) 0%, transparent 10%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23b8893d' stroke-opacity='0.04' stroke-width='1'%3E%3Cpath d='M80 20 L96 26 L96 44 Q96 58 80 68 Q64 58 64 44 L64 26 Z'/%3E%3Cline x1='70' y1='34' x2='90' y2='52'/%3E%3Cline x1='90' y1='34' x2='70' y2='52'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 220px 220px;
  opacity: 0.6;
}
/* subtle top vignette to deepen the atmosphere */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, transparent 55%, rgba(0,0,0,0.35) 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.10  0 0 0 0 0.06  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}


/* ============= HEADER (used on all pages) ============= */
.site-header {
  position: relative;
  z-index: 10000;
  background:
    linear-gradient(180deg, rgba(28, 22, 14, 0.85) 0%, rgba(10, 8, 5, 0.95) 100%),
    radial-gradient(ellipse 800px 200px at 50% 0%, rgba(184, 137, 61, 0.18), transparent 70%);
  border-bottom: 1px solid var(--accent-deep);
  box-shadow: 0 1px 0 rgba(184, 137, 61, 0.15) inset, 0 4px 24px rgba(0,0,0,0.5);
  padding: 18px 32px;
}
.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.site-sigil {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.site-sigil svg { width: 100%; height: 100%; }
.site-brand h1 {
  margin: 0;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000, 0 0 12px rgba(184, 137, 61, 0.3);
  line-height: 1.15;
}
.site-brand .tagline {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  font-style: italic;
  letter-spacing: 0.3px;
}

/* nav links */
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.15s;
  letter-spacing: 0.4px;
}
.nav-link:hover {
  color: var(--accent-bright);
  background: rgba(184, 137, 61, 0.08);
  border-color: rgba(184, 137, 61, 0.2);
}
.nav-link.active {
  color: var(--accent-bright);
  background: rgba(184, 137, 61, 0.12);
  border-color: rgba(184, 137, 61, 0.3);
}
/* PayPal donate button in header (PayPal blue) */
.nav-donate {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 4px;
  font-family: 'Cinzel', Georgia, serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.4px; text-transform: uppercase; text-decoration: none;
  color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, #009cde 0%, #003087 100%);
  border: 1px solid #0079c1;
  transition: all 0.15s;
}
.nav-donate:hover {
  background: linear-gradient(180deg, #00aeef 0%, #0047ab 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 122, 193, 0.35);
}
.nav-donate .nav-donate-icon { font-size: 13px; }
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(184, 137, 61, 0.08);
  border: 1px solid var(--accent-deep);
  border-radius: 4px;
  font-size: 13px;
  color: var(--accent-bright);
  transition: all 0.15s;
}
a.nav-user:hover { background: rgba(184, 137, 61, 0.16); border-color: var(--accent); }
.nav-user .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: #1a0f04;
}

/* ============= NAV DROPDOWN ============= */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: transparent;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-dropdown-toggle .chevron { font-size: 9px; transition: transform 0.2s; }
.nav-dropdown.open .nav-dropdown-toggle .chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: fixed;
  min-width: 230px;
  max-height: 80vh;
  overflow-y: auto;
  background: #1a1510;
  border: 1px solid var(--accent-deep);
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.6);
  padding: 6px;
  display: none;
  z-index: 2147483647;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
  transition: all 0.15s;
  white-space: nowrap;
}
.dropdown-item:hover { background: rgba(184, 137, 61, 0.15); color: var(--accent-bright); }
.dropdown-item.active { background: rgba(184, 137, 61, 0.12); color: var(--accent-bright); }
.dropdown-item .di-icon { font-size: 14px; width: 18px; text-align: center; }

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Cinzel', Georgia, serif;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(180deg, #c89a48 0%, #8a6020 100%);
  color: #1a0f04;
  border-color: var(--accent-bright);
  box-shadow:
    0 1px 0 rgba(255, 220, 150, 0.4) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 2px 8px rgba(184, 137, 61, 0.35);
  text-shadow: 0 1px 0 rgba(255, 220, 150, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #d4a557 0%, #9a6f28 100%);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 220, 150, 0.5) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 4px 14px rgba(184, 137, 61, 0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--accent-bright);
  border-color: var(--accent-deep);
}
.btn-secondary:hover {
  background: rgba(184, 137, 61, 0.1);
  border-color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0.3px;
  font-size: 13px;
  padding: 8px 14px;
}
.btn-ghost:hover {
  color: var(--accent-bright);
}
.btn-block { width: 100%; }
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

/* ============= FORM ELEMENTS ============= */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-family: 'Cinzel', Georgia, serif;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(13, 10, 7, 0.5);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s;
}
.form-input:hover { border-color: var(--border-strong); }
.form-input:focus {
  border-color: var(--accent);
  background: rgba(13, 10, 7, 0.8);
  box-shadow: 0 0 0 3px rgba(184, 137, 61, 0.15);
}
.form-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(176, 53, 34, 0.15);
}
.form-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
  display: none;
}
.form-error.show { display: block; }
.form-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  font-style: italic;
}

/* ============= FOOTER ============= */
.site-footer {
  margin-top: 60px;
  padding: 24px 32px;
  background: linear-gradient(0deg, rgba(10,8,5,0.95) 0%, rgba(28,22,14,0.4) 100%);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}
.site-footer .footer-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-deep), transparent);
  margin: 0 auto 12px;
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--accent-bright); text-decoration: underline; }
.site-footer .footer-note {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

/* ============= TOAST NOTIFICATIONS ============= */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  max-width: 360px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }

/* ============= RESPONSIVE ============= */
@media (max-width: 980px) {
  .site-header { padding: 14px 18px; }
  .site-header-inner { gap: 12px; }
  .site-brand h1 { font-size: 17px; letter-spacing: 1px; }
  .site-brand .tagline { font-size: 10px; }
  .site-nav { gap: 2px; flex-wrap: wrap; }
  .nav-link { padding: 7px 9px; font-size: 12px; }
  .nav-user { padding: 6px 10px; font-size: 12px; }
  .nav-user .avatar { width: 22px; height: 22px; font-size: 10px; }
}
@media (max-width: 680px) {
  .site-header-inner { flex-direction: column; align-items: stretch; }
  .site-brand { justify-content: center; }
  .site-brand .tagline { display: none; }
  .site-nav { width: 100%; justify-content: center; flex-wrap: wrap; }
}

/* ============= SKILL MATCH HIGHLIGHTING ============= */
/* Applied to cards/rows when "Use my skills" is on */
.sm-have {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px rgba(184, 137, 61, 0.3) inset;
}
.sm-have::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); border-radius: 4px 0 0 4px;
}
.sm-partial {
  border-color: var(--accent-deep) !important;
}
.sm-missing {
  opacity: 0.4;
  filter: grayscale(0.4);
}
/* status pill shown on cards */
.sm-pill {
  font-size: 9px; padding: 2px 8px; border-radius: 3px; text-transform: uppercase;
  letter-spacing: 0.4px; white-space: nowrap; flex-shrink: 0;
}
.sm-pill.have    { background: rgba(184,137,61,0.18); color: var(--accent-bright); border: 1px solid var(--accent); }
.sm-pill.partial { background: rgba(138,40,24,0.12); color: var(--blood-bright); border: 1px solid var(--blood); }
.sm-pill.missing { background: rgba(120,120,120,0.1); color: var(--text-dim); border: 1px solid var(--border); }

/* "Use my skills" toggle bar */
.skill-toggle-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 16px;
  background: rgba(184,137,61,0.06); border: 1px solid var(--accent-deep);
  border-radius: 6px; font-size: 13px;
}
.skill-toggle-bar .toggle-label { color: var(--text); font-weight: 500; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.skill-toggle-bar .toggle-hint { color: var(--text-dim); font-size: 11px; font-style: italic; }
.skill-toggle-bar .legend { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.skill-toggle-bar .legend span { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); }
.skill-toggle-bar .legend .dot { width: 10px; height: 10px; border-radius: 2px; }
.skill-toggle-bar .legend .dot.have { background: var(--accent); }
.skill-toggle-bar .legend .dot.missing { background: var(--border-strong); }
.skill-toggle-bar .no-profile { color: var(--blood-bright); font-size: 11px; }

/* switch */
.switch { position: relative; display: inline-block; width: 38px; height: 20px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0; background: var(--bg-elev);
  border: 1px solid var(--border-strong); border-radius: 20px; transition: 0.2s;
}
.switch .slider::before {
  content: ''; position: absolute; height: 14px; width: 14px; left: 2px; bottom: 2px;
  background: var(--text-muted); border-radius: 50%; transition: 0.2s;
}
.switch input:checked + .slider { background: rgba(184,137,61,0.3); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); background: var(--accent); }

/* ===== Upkeep alerts ===== */
.upkeep-alerts { margin: 0 auto 18px; max-width: 1100px; padding: 0 24px; }
.upkeep-alert {
  padding: 12px 16px; border-radius: 6px; margin-bottom: 10px; font-size: 14px;
  line-height: 1.5; border: 1px solid;
}
.upkeep-alert-yellow {
  background: rgba(184, 137, 61, 0.12); border-color: rgba(212, 165, 87, 0.55); color: #e3c07a;
}
.upkeep-alert-red {
  background: rgba(176, 53, 34, 0.14); border-color: rgba(200, 70, 50, 0.6); color: #e8907c;
}
.upkeep-alert strong { color: inherit; font-weight: 700; }

/* Upkeep alert as clickable banner */
a.upkeep-alert { display: block; text-decoration: none; transition: filter 0.15s; }
a.upkeep-alert:hover { filter: brightness(1.15); }

/* ===== Shared Save/Load preset panel (calculator, siege, ore, alchemy, butchery, cooking) ===== */
.preset-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.btn-save-preset {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: var(--bg-elev); color: var(--accent-bright);
  border: 1px solid var(--accent-deep); border-radius: 6px;
  padding: 9px 16px; font-family: inherit; font-size: 13px; font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.btn-save-preset:hover { background: var(--accent-deep); color: #fff; border-color: var(--accent); }
.preset-panel {
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card);
  padding: 16px 18px; margin: 0 0 18px;
}
.preset-panel h3 {
  margin: 0 0 12px; font-family: 'Cinzel', Georgia, serif; font-size: 15px;
  color: var(--accent-bright); letter-spacing: 0.3px; font-weight: 600;
}
.preset-panel h3 .preset-count { font-family: Inter, sans-serif; font-size: 11px; color: var(--text-dim); font-weight: normal; }
.preset-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.preset-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px;
}
.preset-list .preset-name { color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; flex: 1; min-width: 0; }
.preset-list .preset-name small { display: block; color: var(--text-dim); font-size: 11px; font-weight: normal; margin-top: 2px; }
.preset-list .preset-name:hover { color: var(--accent-bright); }
.preset-list .preset-actions { display: flex; gap: 6px; flex-shrink: 0; }
.preset-list .preset-actions button {
  cursor: pointer; background: var(--bg-card); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 5px; padding: 5px 11px; font-size: 12px; font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.preset-list .preset-actions button:hover { color: var(--accent-bright); border-color: var(--accent-deep); }
.preset-list .preset-actions button.del:hover { color: #e08a7a; border-color: #7a3d34; }
.preset-list .empty-msg { color: var(--text-dim); font-size: 12.5px; font-style: italic; }

/* ============================================================
   GOLD UI — scrollbars + custom dropdown (added 2026-05)
   Gilds every scrollbar and provides the themed dropdown that
   gold-ui.js builds from native <select> elements. Removes the
   browser-blue option hover for good.
   ============================================================ */

/* gold scrollbars everywhere (Firefox + WebKit/Chromium) */
* { scrollbar-width: thin; scrollbar-color: var(--accent) #1a1510; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #1a1510; border-radius: 5px; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  border-radius: 5px; border: 2px solid #1a1510;
}
*::-webkit-scrollbar-thumb:hover { background: var(--accent-bright); }
*::-webkit-scrollbar-corner { background: #1a1510; }

/* the native <select> we replace is kept in the DOM (so form value/JS still works) but hidden */
select.gold-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
}

/* themed dropdown built by gold-ui.js */
.cdd { position: relative; width: 100%; font-family: inherit; }
.cdd-btn {
  width: 100%; background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 36px 11px 13px; font-family: inherit; font-size: 14px; cursor: pointer;
  text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  transition: border-color .14s, background .14s; line-height: 1.3;
}
.cdd-btn:hover { border-color: var(--accent-deep); }
.cdd.open .cdd-btn { border-color: var(--accent); background: var(--bg-card); }
.cdd-btn .cdd-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdd-btn .cdd-arrow {
  flex-shrink: 0; width: 10px; height: 10px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-2px); transition: transform .18s; opacity: .85;
}
.cdd.open .cdd-btn .cdd-arrow { transform: rotate(225deg) translateY(-2px); }
.cdd-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 5px); z-index: 9999;
  max-height: 320px; overflow-y: auto;
  background: linear-gradient(180deg, #1d1710, #15110b);
  border: 1px solid var(--accent-deep); border-radius: 9px; padding: 5px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55); display: none;
}
.cdd.open .cdd-menu { display: block; animation: gddfade .14s ease both; }
@keyframes gddfade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cdd-menu::-webkit-scrollbar { width: 8px; }
.cdd-opt {
  padding: 9px 12px; border-radius: 6px; font-size: 13.5px; color: var(--text-muted);
  cursor: pointer; border-left: 2px solid transparent;
  transition: background .12s, color .12s, border-color .12s; line-height: 1.35;
}
.cdd-opt:hover, .cdd-opt.hl {
  background: linear-gradient(90deg, rgba(184,137,61,.22), rgba(184,137,61,.05));
  color: var(--accent-bright); border-left-color: var(--accent);
}
.cdd-opt.sel { color: var(--text); background: rgba(184,137,61,.10); border-left-color: var(--accent-deep); }
.cdd-opt.sel:hover, .cdd-opt.sel.hl {
  background: linear-gradient(90deg, rgba(184,137,61,.24), rgba(184,137,61,.06));
  color: var(--accent-bright); border-left-color: var(--accent);
}
.cdd-grp {
  padding: 9px 10px 4px; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .6px; color: var(--text-dim); font-weight: 700;
}
.cdd-opt.disabled { opacity: .45; cursor: default; pointer-events: none; }

/* ============================================================
   TOOLS DISCOVERABILITY — draw the eye to the Tools menu
   A soft gold breathing glow + a small pulsing dot on the Tools
   button, so new visitors notice that every calculator lives there.
   gold-ui.js adds .tools-hint-on to the nav until the user opens
   the menu once (remembered in localStorage), then it stops.
   ============================================================ */
.nav-dropdown-toggle { position: relative; border-radius: 7px; padding: 7px 11px; transition: background .2s, box-shadow .2s, color .2s; }

/* the attention state (only while .tools-hint-on is present on the toggle) */
.nav-dropdown-toggle.tools-hint-on {
  color: var(--accent-bright);
  background: rgba(184,137,61,0.10);
  animation: toolsGlow 2.4s ease-in-out infinite;
}
@keyframes toolsGlow {
  0%,100% { box-shadow: 0 0 0 1px rgba(184,137,61,0.35), 0 0 0 0 rgba(212,165,87,0.0); }
  50%     { box-shadow: 0 0 0 1px rgba(212,165,87,0.65), 0 0 18px 2px rgba(212,165,87,0.35); }
}
/* pulsing dot badge top-right of the Tools button */
.nav-dropdown-toggle.tools-hint-on::after {
  content: '';
  position: absolute; top: 2px; right: 1px;
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4e2b6, #d4a557 60%, #b8893d);
  box-shadow: 0 0 0 2px #1a1108;
  animation: toolsDot 1.6s ease-in-out infinite;
}
@keyframes toolsDot {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%     { transform: scale(1.5); opacity: .55; }
}
.nav-dropdown-toggle.tools-hint-on .chevron { animation: toolsChev 2.4s ease-in-out infinite; }
@keyframes toolsChev { 0%,100%{transform:translateY(0);} 50%{transform:translateY(2px);} }

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-toggle.tools-hint-on,
  .nav-dropdown-toggle.tools-hint-on::after,
  .nav-dropdown-toggle.tools-hint-on .chevron { animation: none; }
  .nav-dropdown-toggle.tools-hint-on { box-shadow: 0 0 0 1px rgba(212,165,87,0.55); }
}

/* ===== Homepage hint pointing up to the Tools menu ===== */
.tools-pointer {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; padding: 10px 14px;
  background: linear-gradient(90deg, rgba(184,137,61,0.14), rgba(184,137,61,0.02));
  border: 1px solid var(--accent-deep); border-radius: 8px;
  color: var(--accent-bright); font-size: 13.5px; line-height: 1.45;
}
.tools-pointer .tp-arrow {
  flex-shrink: 0; font-size: 18px; line-height: 1;
  animation: tpBounce 1.8s ease-in-out infinite;
}
@keyframes tpBounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-4px);} }
.tools-pointer b { color: #fff; }
.tools-pointer .tp-link { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-weight: 600; }
.tools-pointer .tp-link:hover { color: #fff; }
@media (prefers-reduced-motion: reduce){ .tools-pointer .tp-arrow{ animation:none; } }
