/* ============================================================
   Chain & Chisel Artists Guild — Global Styles
   ============================================================ */

:root {
  --bg:           #0f0f10;
  --bg-surface:   #171718;
  --bg-card:      #1e1e1f;
  --border:       rgba(255, 255, 255, 0.10);
  --gold:         #d4a96a;
  --gold-hover:   #e8bf87;
  --text:         #f3f3f3;
  --text-muted:   #bdbdbd;
  --text-faint:   #777;
  --accent:       #5a8a6a;   /* guild green — carving/nature tone */
  --nav-bg:       rgba(15, 15, 16, 0.92);
  --footer-bg:    #0f0f10;
  --hero-veil:    rgba(8, 8, 9, 0.62);
  --radius:       8px;
  --max-w:        1100px;
  --font:         system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── Brite Mode (outdoor readability) ───────────────────────────────
   Activated by html[data-theme="light"]. High-contrast walnut-on-cream
   palette tuned for phone screens in direct sunlight — body text
   reaches WCAG AAA (>10:1), accents reach AA+ (>7:1). "Gold" collapses
   to near-black walnut in light mode since a real gold has poor
   contrast on any light surface. */
html[data-theme="light"] {
  --bg:           #f7f4ec;
  --bg-surface:   #ffffff;
  --bg-card:      #ffffff;
  --border:       rgba(15, 15, 16, 0.22);
  --gold:         #2a1a08;
  --gold-hover:   #000000;
  --text:         #0a0a0a;
  --text-muted:   #2d2d2d;
  --text-faint:   #4a4a4a;
  --accent:       #16391f;
  --nav-bg:       rgba(247, 244, 236, 0.96);
  --footer-bg:    #e8e1d0;
  --hero-veil:    rgba(247, 244, 236, 0.72);
  color-scheme:   light;
}
html[data-theme="light"] body { background: var(--bg); color: var(--text); }
html[data-theme="light"] a { color: var(--gold); }
html[data-theme="light"] a:hover { color: var(--gold-hover); }

/* Nav + mobile nav */
html[data-theme="light"] .site-nav { background: var(--nav-bg); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(15, 15, 16, 0.04); }
html[data-theme="light"] .nav-logo,
html[data-theme="light"] .nav-logo span,
html[data-theme="light"] .nav-links a,
html[data-theme="light"] .nav-mobile-menu a,
html[data-theme="light"] .nav-signin,
html[data-theme="light"] .nav-mobile-signin { color: var(--text) !important; }
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.active,
html[data-theme="light"] .nav-mobile-menu a:hover,
html[data-theme="light"] .nav-mobile-menu a.active { color: var(--gold) !important; }
html[data-theme="light"] .nav-mobile-menu { background: var(--nav-bg); border-top: 1px solid var(--border); }
html[data-theme="light"] .nav-hamburger span { background: var(--text); }

/* Footer */
html[data-theme="light"] .site-footer { background: var(--footer-bg); color: var(--text); border-top: 1px solid var(--border); }
html[data-theme="light"] .site-footer a,
html[data-theme="light"] .footer-logo,
html[data-theme="light"] .footer-logo span { color: var(--text) !important; }
html[data-theme="light"] .footer-tagline,
html[data-theme="light"] .footer-copy { color: var(--text-muted) !important; }

/* Cards */
html[data-theme="light"] .card,
html[data-theme="light"] .industry-card,
html[data-theme="light"] .professional-card { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(15, 15, 16, 0.08); }

/* Typography */
html[data-theme="light"] p { color: var(--text-muted); }
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4 { color: var(--text); }
html[data-theme="light"] .section-label,
html[data-theme="light"] .hero-eyebrow { color: var(--gold); }
html[data-theme="light"] .text-muted { color: var(--text-muted) !important; }

/* Forms */
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea { background: #ffffff; color: var(--text); border: 1px solid var(--border); }
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: var(--text-faint); }

/* Buttons — dark solid on light page, classic readable chip */
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-carve { background: #0a0a0a; color: #ffffff; }
html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] .btn-carve:hover { background: #2a1a08; color: #ffffff; }
html[data-theme="light"] .btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
html[data-theme="light"] .btn-secondary:hover { border-color: var(--text); background: rgba(15, 15, 16, 0.04); }

/* Hero veils */
html[data-theme="light"] .hero::before,
html[data-theme="light"] .hero-veil { background: var(--hero-veil); }

/* Industry Directory inline-styled surfaces (override the <style> block
   in industry-directory.html so its dark radial gradients + gold pills
   flip properly in light mode — higher specificity via html attr). */
html[data-theme="light"] .industry-type-btn { background: rgba(15, 15, 16, 0.04); border-color: rgba(15, 15, 16, 0.22); color: var(--text); }
html[data-theme="light"] .industry-type-btn:hover { border-color: var(--text); color: var(--gold); }
html[data-theme="light"] .industry-type-btn.active { background: rgba(15, 15, 16, 0.1); border-color: var(--text); color: var(--gold); box-shadow: 0 4px 14px rgba(15, 15, 16, 0.1); }
html[data-theme="light"] .industry-type-count { background: rgba(15, 15, 16, 0.08); color: var(--text-muted); }
html[data-theme="light"] .industry-type-btn.active .industry-type-count { background: rgba(15, 15, 16, 0.14); color: var(--gold); }
html[data-theme="light"] .industry-map-shell { background: #ffffff; border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(15, 15, 16, 0.06); }
html[data-theme="light"] .industry-map-canvas { background: #e8e8e8; border: 1px solid var(--border); }
html[data-theme="light"] .industry-map-copy,
html[data-theme="light"] .industry-map-status { color: var(--text-muted); }
html[data-theme="light"] .industry-pill-link { background: rgba(15, 15, 16, 0.04); border: 1px solid var(--border); color: var(--text); }
html[data-theme="light"] .industry-pill-link:hover { background: rgba(15, 15, 16, 0.08); }
html[data-theme="light"] .industry-role { background: rgba(15, 15, 16, 0.06); color: var(--text); border-color: var(--border); }
html[data-theme="light"] .industry-empty { background: #ffffff; color: var(--text-muted); border: 1px solid var(--border); }

/* Leaflet popup + attribution chrome */
html[data-theme="light"] .leaflet-popup-content-wrapper,
html[data-theme="light"] .leaflet-popup-tip { background: #ffffff; color: var(--text); border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(15, 15, 16, 0.14); }
html[data-theme="light"] .leaflet-container a.leaflet-popup-close-button { color: var(--text); }
html[data-theme="light"] .leaflet-control-attribution { background: rgba(255, 255, 255, 0.92) !important; color: var(--text-muted) !important; }
html[data-theme="light"] .leaflet-control-attribution a { color: var(--gold) !important; }

/* ── Map layers panel (custom, matches site dropdown style) ──────── */
.ccag-layers { position: relative; }
.ccag-layers-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-card, #1d1d1d);
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 8px;
  color: var(--text-muted, #a8a29e);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.ccag-layers-btn:hover { color: var(--text, #e0dcd0); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.ccag-layers-btn.open  { color: var(--gold, #c5a55a); background: var(--bg-card, #1d1d1d); }
.ccag-layers-btn svg   { width: 18px; height: 18px; }
.ccag-layers-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card, #1d1d1d);
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 10px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  z-index: 1200;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s;
  padding: 5px 0;
}
.ccag-layers-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ccag-layers-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 14px;
  background: none;
  border: none;
  color: var(--text-muted, #a8a29e);
  font-family: var(--font, inherit);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s;
  box-sizing: border-box;
  line-height: 1.3;
}
.ccag-layers-item:hover { background: rgba(255,255,255,0.06); color: var(--text, #e0dcd0); }
.ccag-layers-item.active { color: var(--gold, #c5a55a); }
.ccag-layers-item.active .ccag-layers-dot { background: var(--gold, #c5a55a); border-color: var(--gold, #c5a55a); }
.ccag-layers-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--text-faint, rgba(255,255,255,0.25));
  background: transparent;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
}
.ccag-layers-label { flex: 1; }

/* ── Light mode overrides ────────────────────────────────────────── */
html[data-theme="light"] .ccag-layers-btn {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
html[data-theme="light"] .ccag-layers-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
html[data-theme="light"] .ccag-layers-btn.open { color: var(--gold); }
html[data-theme="light"] .ccag-layers-panel {
  box-shadow: 0 8px 32px rgba(15, 15, 16, 0.14);
}
html[data-theme="light"] .ccag-layers-item:hover {
  background: rgba(15, 15, 16, 0.04);
  color: var(--text);
}
html[data-theme="light"] .ccag-layers-item.active { color: var(--gold); }
html[data-theme="light"] .ccag-layers-item.active .ccag-layers-dot {
  background: var(--gold);
  border-color: var(--gold);
}
html[data-theme="light"] .ccag-layers-dot {
  border-color: rgba(15, 15, 16, 0.25);
}

/* ── Avatars / initials circles ─────────────────────────────────── */
html[data-theme="light"] .industry-avatar { background: #e8e1d0; color: #2a1a08; border-color: rgba(15, 15, 16, 0.22); }
html[data-theme="light"] .mc-avatar { background: var(--bg-surface); border-color: var(--border); }
html[data-theme="light"] .mc-avatar-initials { color: #ffffff; }
html[data-theme="light"] .mc-avatar:hover,
html[data-theme="light"] .mc-avatar-wrap:hover .mc-avatar { border-color: var(--text); box-shadow: 0 0 0 3px rgba(15, 15, 16, 0.12); }
html[data-theme="light"] .pf-avatar { background: #e8e1d0; color: #2a1a08; border-color: rgba(15, 15, 16, 0.22); box-shadow: 0 0 0 6px rgba(15, 15, 16, 0.08), 0 18px 30px rgba(15, 15, 16, 0.12); }

/* ── Profile header / tagline bar ──────────────────────────────── */
html[data-theme="light"] .pf-meta-card { background: #ffffff; border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(15, 15, 16, 0.1); backdrop-filter: none; }
html[data-theme="light"] .pf-name { color: var(--text) !important; }
html[data-theme="light"] .pf-tagline-display { color: var(--text-muted) !important; }
html[data-theme="light"] .pf-location-display { color: var(--text-faint) !important; }
html[data-theme="light"] .pf-business { color: var(--gold); background: rgba(15, 15, 16, 0.06); border-color: var(--border); }
html[data-theme="light"] .pf-member-since { color: var(--text); border-color: var(--border); }
html[data-theme="light"] .pf-mode-btn { background: #ffffff; color: var(--text); border-color: var(--border); }
html[data-theme="light"] .pf-mode-btn.active,
html[data-theme="light"] .pf-mode-btn:hover { border-color: var(--text); color: var(--text); background: rgba(15, 15, 16, 0.04); }
html[data-theme="light"] .pf-mode-btn.primary { background: #0a0a0a; color: #ffffff; border-color: #0a0a0a; }
html[data-theme="light"] .pf-mode-btn.primary:hover { background: #2a1a08; border-color: #2a1a08; color: #ffffff; }
html[data-theme="light"] .pf-birthday-banner { background: rgba(15, 15, 16, 0.06); border-color: var(--border); color: var(--text); }
html[data-theme="light"] #pf-auth-gate h2 { color: var(--text) !important; }
html[data-theme="light"] #pf-auth-gate p { color: var(--text-muted) !important; }
html[data-theme="light"] #pf-loading { color: var(--text-faint) !important; }

/* ── Badge / popups ────────────────────────────────────────────── */
html[data-theme="light"] .badge-chainsaw  { background: rgba(180, 100, 40, 0.14); color: #7a3508; }
html[data-theme="light"] .badge-ice       { background: rgba(80, 160, 200, 0.14); color: #1a5e7a; }
html[data-theme="light"] .badge-wood      { background: rgba(100, 160, 100, 0.14); color: #1e5e1e; }
html[data-theme="light"] .badge-stone     { background: rgba(140, 120, 100, 0.14); color: #4a3828; }
html[data-theme="light"] .badge-snow      { background: rgba(120, 180, 210, 0.14); color: #18586e; }
html[data-theme="light"] .badge-multiple,
html[data-theme="light"] .badge-multi     { background: rgba(160, 130, 200, 0.14); color: #3e2868; }
html[data-theme="light"] .badge-other     { background: rgba(120, 120, 120, 0.14); color: #383838; }
html[data-theme="light"] .badge-guild-member { background: rgba(42, 26, 8, 0.12); color: var(--gold); border-color: rgba(42, 26, 8, 0.3); }
html[data-theme="light"] .badge-guild-pro { background: rgba(26, 94, 122, 0.12); color: #1a5e7a; border-color: rgba(26, 94, 122, 0.3); }
html[data-theme="light"] .badge-master-carver { background: rgba(62, 40, 104, 0.12); color: #3e2868; border-color: rgba(62, 40, 104, 0.3); }
html[data-theme="light"] .mc-badge-popup { background: #ffffff; border-color: var(--border); box-shadow: 0 8px 28px rgba(15, 15, 16, 0.16); color: var(--text); }

/* ── Nav avatar ────────────────────────────────────────────────── */
html[data-theme="light"] .nav-avatar-circle { border-color: var(--border); }
html[data-theme="light"] .nav-avatar-initials { color: #ffffff; }
html[data-theme="light"] .nav-profile-dd { box-shadow: 0 12px 32px rgba(15, 15, 16, 0.14); }
html[data-theme="light"] .nav-dd-item:hover { background: rgba(15, 15, 16, 0.04); color: var(--text); }
html[data-theme="light"] .nav-alerts-flyout { background: #fff; border-color: var(--border); box-shadow: 0 12px 32px rgba(15,15,16,0.14); }
html[data-theme="light"] .nav-alerts-header { color: var(--text); border-bottom-color: var(--border); }
html[data-theme="light"] .nav-alert-item:not(.read) { background: rgba(212,169,106,0.08); }
html[data-theme="light"] .nav-alert-msg { color: var(--text); }
html[data-theme="light"] .nav-alert-time { color: var(--text-muted); }

/* ── Lightbox / modals ─────────────────────────────────────────── */
html[data-theme="light"] .mc-lightbox-overlay { background: rgba(0, 0, 0, 0.5); }
html[data-theme="light"] .mc-lightbox { background: #ffffff; border-color: var(--border); box-shadow: 0 24px 80px rgba(15, 15, 16, 0.22); color: var(--text); }
html[data-theme="light"] .mc-lb-initials { color: #ffffff; }
html[data-theme="light"] .mc-lb-img { border-color: var(--border); }
html[data-theme="light"] .mc-lb-name { color: var(--text) !important; }
html[data-theme="light"] .mc-lb-location { color: var(--text-muted) !important; }
html[data-theme="light"] .mc-signin-prompt { background: #ffffff; border-color: var(--border); }

/* ── Auth modal ────────────────────────────────────────────────── */
html[data-theme="light"] .auth-overlay { background: rgba(0, 0, 0, 0.5); }
html[data-theme="light"] .auth-modal,
html[data-theme="light"] .qualify-modal,
html[data-theme="light"] .free-modal,
html[data-theme="light"] .apply-modal { background: #ffffff; border-color: var(--border); box-shadow: 0 24px 60px rgba(15, 15, 16, 0.18); color: var(--text); backdrop-filter: none; }

/* ── Cookie bar + misc cards ───────────────────────────────────── */
html[data-theme="light"] .cookie-bar,
html[data-theme="light"] .pf-cookie-card { background: var(--bg-card); border: 1px solid var(--border); }

/* ── Gallery / lightbox ────────────────────────────────────────── */
html[data-theme="light"] .mc-lightbox-bg,
html[data-theme="light"] .gallery-lightbox-bg { background: rgba(0, 0, 0, 0.5); }

/* ── Gallery card images / thumbnails ──────────────────────────── */
html[data-theme="light"] .directory-gallery-thumb { border-color: var(--border); }
html[data-theme="light"] .gp-card-img { border-color: var(--border); }
html[data-theme="light"] .au-card-thumb { border-color: var(--border); }

/* ── Ticker ────────────────────────────────────────────────────── */
html[data-theme="light"] .guild-ticker { background: var(--bg-surface); border-bottom: 1px solid var(--border); }
html[data-theme="light"] .guild-ticker-item { color: var(--text-muted); }

/* ── Commission + Auction badges ───────────────────────────────── */
html[data-theme="light"] .cr-claimed-badge { color: #ffffff; }
html[data-theme="light"] .au-leading-badge,
html[data-theme="light"] .au-mine-badge { color: #ffffff; }
html[data-theme="light"] .au-won-badge { color: #ffffff; }
html[data-theme="light"] .au-reserve-badge { color: var(--text); background: rgba(15, 15, 16, 0.06); border: 1px solid var(--border); }

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  margin-right: 8px;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-muted); }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

#nav-user-area {
  display: flex;
  align-items: center;
}

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--gold); }

.nav-links .btn-cta {
  background: var(--gold);
  color: #0f0f10 !important;
  font-weight: 700;
  padding: 6px 16px;
}

.nav-links .btn-cta:hover { background: var(--gold-hover); }

.nav-signin {
  display: flex !important;
  align-items: center;
  gap: 7px;
  color: var(--text-muted) !important;
  font-size: 13px !important;
  font-weight: 600;
  padding: 6px 12px !important;
  border: 1px solid var(--border);
  border-radius: 20px !important;
  transition: color 0.15s, border-color 0.15s, background 0.15s !important;
  white-space: nowrap;
}
.nav-signin:hover {
  color: var(--text) !important;
  border-color: var(--gold) !important;
  background: rgba(212,169,106,0.07) !important;
}
.nav-signin svg { flex-shrink: 0; }

.guild-ticker {
  background:
    linear-gradient(90deg, rgba(212,169,106,0.08), rgba(255,255,255,0.02) 20%, rgba(255,255,255,0.02) 80%, rgba(212,169,106,0.08)),
    rgba(18, 18, 19, 0.98);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.guild-ticker-viewport {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}

.guild-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
  padding: 6px 0;
  animation: guildTickerScroll var(--guild-ticker-duration, 96s) linear infinite;
  will-change: transform;
}

.guild-ticker:hover .guild-ticker-track {
  animation-play-state: paused;
}

.guild-ticker-item {
  position: relative;
  flex: 0 0 auto;
  color: #ead9bb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  padding-right: 46px;
}

.guild-ticker-item + .guild-ticker-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(212, 169, 106, 0.78);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(212, 169, 106, 0.12);
}

@keyframes guildTickerScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

body.directories-open {
  overflow: hidden;
}

.directories-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 9, 0.62);
  backdrop-filter: blur(16px) saturate(0.9);
  -webkit-backdrop-filter: blur(16px) saturate(0.9);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.directory-map-card {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  overflow: hidden;
}

.directory-map-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.directory-map-title {
  margin: 0;
}

.directory-map-copy {
  max-width: 640px;
  margin: 0;
}

.directory-map-shell {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(212, 169, 106, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.directory-map-canvas {
  width: 100%;
  height: clamp(340px, 50vh, 560px);
  background: #111214;
}

.directory-map-empty {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 500;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 15, 16, 0.88);
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}

.directory-map-shell .leaflet-container {
  background: #111214;
}

.directory-map-shell .leaflet-popup-content-wrapper {
  background: #1e1e1f;
  color: #f3f3f3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.directory-map-shell .leaflet-popup-tip {
  background: #1e1e1f;
}

.directory-map-shell .leaflet-popup-close-button {
  color: #bdbdbd !important;
}

.directory-map-shell .leaflet-popup-close-button:hover {
  color: #f3f3f3 !important;
}

.directory-map-popup {
  min-width: 220px;
  display: grid;
  gap: 10px;
}

.directory-map-popup h3 {
  margin: 0;
  font-size: 15px;
  color: #f3f3f3;
}

.directory-map-popup-location,
.directory-map-popup-meta,
.directory-map-popup-note {
  font-size: 12px;
  color: #bdbdbd;
  margin: 0;
}

.directory-map-popup-note {
  color: #9fa7b0;
}

.directory-map-popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.directory-map-popup-tags .badge,
.directory-map-popup-tags .professional-role {
  font-size: 11px;
}

.directory-map-popup-tags .professional-role {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(212, 169, 106, 0.24);
  background: rgba(212, 169, 106, 0.10);
  color: #ecd2a0;
  line-height: 1;
}

.directory-map-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-map-popup-actions a,
.directory-map-popup-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gold);
  border: none;
  color: #0f0f10;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.directory-map-popup-actions a:hover,
.directory-map-popup-actions button:hover {
  background: var(--gold-hover);
  color: #0f0f10;
}

.directory-map-popup-actions a.directory-map-popup-secondary,
.directory-map-popup-actions button.directory-map-popup-secondary {
  background: rgba(212, 169, 106, 0.12);
  border: 1px solid rgba(212, 169, 106, 0.22);
  color: var(--gold);
}

.directory-map-popup-actions a.directory-map-popup-secondary:hover,
.directory-map-popup-actions button.directory-map-popup-secondary:hover {
  background: rgba(212, 169, 106, 0.2);
  color: var(--gold-hover);
}

.directory-gallery-flyout {
  position: fixed;
  z-index: 9800;
  width: min(460px, calc(100vw - 32px));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.directory-gallery-flyout.open {
  opacity: 1;
  transform: translateY(0);
}

.directory-gallery-flyout-inner {
  border-radius: 16px;
  border: 1px solid rgba(212, 169, 106, 0.22);
  background: rgba(22, 22, 24, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  padding: 16px;
}

.directory-gallery-flyout-header {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.directory-gallery-flyout-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.directory-gallery-flyout-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.directory-gallery-flyout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 10px;
}

.directory-gallery-thumb {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0f0f10;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 1;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.directory-gallery-thumb:hover,
.directory-gallery-thumb:focus-visible {
  border-color: rgba(212,169,106,0.4);
  transform: translateY(-1px);
}

.directory-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
  display: block;
}

.directory-gallery-flyout-empty {
  font-size: 13px;
  color: var(--text-faint);
}

.directory-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.directory-gallery-lightbox.open {
  opacity: 1;
}

.directory-gallery-lightbox-frame {
  max-width: min(96vw, 1120px);
  max-height: 90vh;
}

.directory-gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(0,0,0,0.58);
}

.directories-overlay.open {
  display: flex;
  opacity: 1;
}

.directories-modal {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(212, 169, 106, 0.22);
  background:
    linear-gradient(180deg, rgba(32, 28, 24, 0.98), rgba(17, 17, 18, 0.98)),
    rgba(15, 15, 16, 0.96);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.directories-modal-inner {
  padding: 28px 30px 30px;
}

.directories-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.directories-modal-close:hover {
  background: rgba(212, 169, 106, 0.14);
  border-color: rgba(212, 169, 106, 0.38);
  transform: translateY(-1px);
}

.directories-modal-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.directories-modal-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  margin-bottom: 12px;
}

.directories-modal-subtitle {
  max-width: 720px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.directories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.directory-choice {
  display: grid;
  gap: 10px;
  min-height: 164px;
  padding: 20px 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.directory-choice:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: rgba(212, 169, 106, 0.34);
  background:
    linear-gradient(180deg, rgba(212, 169, 106, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.directory-choice-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.directory-choice-copy {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.directory-choice-cta {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Hero ── */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding: 4px 12px;
  border: 1px solid rgba(212, 169, 106, 0.3);
  border-radius: 20px;
}

.hero h1 { margin-bottom: 20px; }

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: #0f0f10;
}
.btn-primary:hover { background: var(--gold-hover); color: #0f0f10; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s;
}

.card:hover { border-color: rgba(212, 169, 106, 0.3); }

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ── Stats strip ── */
.stats-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Type badges ── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-chainsaw  { background: rgba(180, 100, 40, 0.2);  color: #e8905a; }
.badge-ice       { background: rgba(80, 160, 200, 0.2);  color: #7ecde8; }
.badge-wood      { background: rgba(100, 160, 100, 0.2); color: #8fd48f; }
.badge-stone     { background: rgba(140, 120, 100, 0.2); color: #a89880; }
.badge-snow      { background: rgba(120, 180, 210, 0.15); color: #c8e8f0; }
.badge-multiple  { background: rgba(160, 130, 200, 0.15); color: #c4a8e8; }
.badge-other     { background: rgba(120, 120, 120, 0.15); color: #aaaaaa; }

/* ── Forms ── */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input, select, textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 10px 14px;
  transition: border-color 0.15s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
}

.pw-field-wrap {
  position: relative;
  width: 100%;
}
.pw-field-wrap input {
  width: 100%;
  padding-right: 44px !important;
}
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 4px;
  margin: 0;
  width: auto;
  line-height: 1;
  display: flex;
  align-items: center;
  z-index: 2;
}
.pw-toggle:hover { color: var(--gold); }
.pw-toggle svg { pointer-events: none; }

select option { background: var(--bg-surface); }
textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  text-align: center;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-logo span { color: var(--gold); }

.footer-tagline {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
}

/* ── Utility ── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom:  8px; }
.mb-16 { margin-bottom: 16px; }

/* ══════════════════════════════════════════════════════════════════
   AUTH MODAL SYSTEM
   ══════════════════════════════════════════════════════════════════ */

.auth-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px) saturate(0.8);
  -webkit-backdrop-filter: blur(8px) saturate(0.8);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-overlay.open {
  display: flex;
}
.auth-overlay .auth-modal,
.auth-overlay .qualify-modal,
.auth-overlay .free-modal,
.auth-overlay .apply-modal {
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.auth-overlay.open .auth-modal,
.auth-overlay.open .qualify-modal,
.auth-overlay.open .free-modal,
.auth-overlay.open .apply-modal {
  transform: translateY(0);
  opacity: 1;
}

/* ── Base modal box ── */
.auth-modal, .qualify-modal, .free-modal {
  background: rgba(20, 20, 22, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.qualify-modal { max-width: 460px; }
.free-modal    { max-width: 420px; }

.apply-modal {
  background: rgba(20, 20, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  width: 100%;
  max-width: 660px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.modal-inner { padding: 32px 36px 28px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* ── Auth modal header ── */
.modal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.modal-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}
.modal-subtitle {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Email state indicator ── */
.email-status {
  font-size: 12px;
  margin-top: 5px;
  min-height: 16px;
  transition: color 0.2s;
}
.email-status.found    { color: #8fd48f; }
.email-status.notfound { color: var(--gold); }
.email-status.checking { color: var(--text-faint); }
.email-status.invalid  { color: #e88f8f; }

/* ── Slide-in fields ── */
.field-slide {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
  margin-bottom: 0;
}
.field-slide.visible {
  max-height: 160px;
  opacity: 1;
  margin-bottom: 16px;
}

.am-signin-actions {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 10px;
}

.am-signin-options {
  display: grid;
  gap: 8px;
}

.am-keep-signed-in {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.am-keep-signed-in input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.am-keep-signed-in span {
  line-height: 1.35;
}

@media (max-width: 560px) {
  .am-signin-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .am-signin-options {
    width: 100%;
  }
}

/* ── CARVE button ── */
.btn-carve {
  width: 100%;
  background: var(--gold);
  color: #1a1a1a;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 8px;
}
.btn-carve:hover { background: var(--gold-hover); }
.btn-carve:active { transform: scale(0.98); }
.btn-carve:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Modal divider ── */
.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.modal-divider::before, .modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Qualifying popup ── */
.qualify-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.qualify-choice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
  width: 100%;
}
.qualify-choice:hover { border-color: var(--gold); background: rgba(212,169,106,0.06); }
.qualify-choice .qc-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.qualify-choice .qc-sub   { font-size: 13px; color: var(--text-faint); line-height: 1.5; margin-bottom: 10px; }
.qualify-choice .qc-icon  { font-size: 28px; margin-bottom: 10px; }
.qualify-choice .qc-perks {
  list-style: none;
  margin: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.qualify-choice .qc-perks li {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.qualify-choice .qc-giveaway {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(212,169,106,0.1);
  border: 1px solid rgba(212,169,106,0.25);
  border-radius: 20px;
  padding: 4px 12px;
  margin-top: 2px;
}

/* ── Free access notification areas ── */
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,169,106,0.12);
  border: 1px solid rgba(212,169,106,0.25);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--gold);
  margin: 4px 4px 0 0;
}
.area-chip button {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
}
.area-chip button:hover { opacity: 1; }
.areas-wrap { margin-bottom: 8px; min-height: 10px; }

/* ── Apply popup step indicator ── */
.apply-steps {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.apply-step {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-right: 1px solid var(--border);
  transition: color 0.2s;
}
.apply-step:last-child { border-right: none; }
.apply-step.active { color: var(--gold); }
.apply-step.done   { color: var(--accent); }

/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.05); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s, background 0.15s;
}
.nav-hamburger:hover span { background: var(--text); }

/* X state */
.site-nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu drawer ── */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding: 8px 16px 20px;
  gap: 2px;
}
.nav-mobile-menu a {
  display: block;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 10px;
  border-radius: 6px;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-mobile-menu .nav-mobile-signin {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold) !important;
  font-weight: 600;
  margin-top: 6px;
  border: 1px solid rgba(212,169,106,0.25);
  border-radius: 8px;
  padding: 13px 14px !important;
}
.nav-mobile-menu .nav-mobile-signin:hover {
  background: rgba(212,169,106,0.07) !important;
  border-color: var(--gold) !important;
}

@media (max-width: 768px) {
  section { padding: 48px 0; }
  .hero   { padding: 64px 0 48px; }
  .guild-ticker-viewport { padding: 0 16px; }
  .guild-ticker-item {
    font-size: 10px;
    padding-right: 36px;
  }
  .guild-ticker-item + .guild-ticker-item::before { left: -20px; }
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
  .site-nav.nav-open .nav-mobile-menu { display: flex; }

  .directories-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .directories-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .directories-modal-inner {
    padding: 22px 18px 20px;
  }

  .directories-grid {
    grid-template-columns: 1fr;
  }

  .directory-choice {
    min-height: 144px;
    padding: 18px 16px 16px;
  }
}

/* ── Auth gate ───────────────────────────────────────────────────────────── */
.auth-gate {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  gap: 16px;
}
.auth-gate-icon { font-size: 48px; line-height: 1; }
.auth-gate h2 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 0; }
.auth-gate p  { color: var(--text-muted); font-size: 15px; max-width: 400px; margin: 0; line-height: 1.6; }
.auth-gate-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ── CCAG Member badges ──────────────────────────────────────────────────── */
.badge-guild-member {
  background: rgba(212, 169, 106, 0.15);
  color: var(--gold);
  border: 1px solid rgba(212, 169, 106, 0.35);
  font-weight: 700;
}

.badge-guild-pro {
  background: rgba(100, 160, 220, 0.15);
  color: #7ab8e8;
  border: 1px solid rgba(100, 160, 220, 0.35);
  font-weight: 700;
}

.badge-master-carver {
  background: rgba(180, 140, 220, 0.15);
  color: #c4a0e0;
  border: 1px solid rgba(180, 140, 220, 0.35);
  font-weight: 700;
}

/* ── Gallery button (member cards) ──────────────────────────────────────── */
.btn-gallery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(212, 169, 106, 0.12);
  color: var(--gold);
  border: 1px solid rgba(212, 169, 106, 0.3);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn-gallery:hover {
  background: rgba(212, 169, 106, 0.22);
  border-color: var(--gold);
}

/* ── Events nav link: hidden until events are populated ─────────────────── */
/* Remove this rule when events.html has real content */
.nav-links a[href$="events.html"],
.nav-mobile-menu a[href$="events.html"] { display: none; }

/* ── Referral share FAB + toast ─────────────────────────────────────────── */
.share-fab {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1008;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 900;
  transition: transform 0.15s, box-shadow 0.15s;
}
.share-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(212,169,106,0.3);
}
.share-my-page-fab {
  position: fixed;
  bottom: 144px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface, #1e1e1f);
  color: var(--gold);
  border: 2px solid var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 900;
  transition: transform 0.15s, box-shadow 0.15s;
}
.share-my-page-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(212,169,106,0.3);
}
.share-toast {
  position: fixed;
  bottom: 204px;
  right: 24px;
  background: var(--gold);
  color: #1a1008;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 901;
}
.share-toast.visible {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════
   BADGE SYSTEM — icons, tooltips, member card avatars, hover popup,
   lightbox profile preview
   ══════════════════════════════════════════════════════════════════ */

/* ── Badge tooltip ───────────────────────────────────────────────────────── */
.ccag-tip {
  position: absolute;
  z-index: 9800;
  max-width: 240px;
  padding: 10px 13px;
  background: #1e1e1f;
  border: 1px solid rgba(212,169,106,0.35);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  line-height: 1.45;
}
.ccag-tip strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #d4a96a;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ccag-tip span {
  font-size: 12px;
  color: #bdbdbd;
}
/* arrow */
.ccag-tip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #1e1e1f;
  border-right: 1px solid rgba(212,169,106,0.35);
  border-bottom: 1px solid rgba(212,169,106,0.35);
}

/* ── Member card avatar ──────────────────────────────────────────────────── */
.mc-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.mc-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-avatar:hover,
.mc-avatar-wrap:hover .mc-avatar {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,169,106,0.18);
}
.mc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mc-avatar-initials {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--avatar-color, #4a4a5a);
  color: rgba(255,255,255,0.9);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ── Badge hover popup (appears when hovering avatar) ───────────────────── */
.mc-badge-popup {
  position: absolute;
  top: 0;
  left: calc(100% + 10px);
  z-index: 200;
  min-width: 160px;
  max-width: 220px;
  background: #1e1e1f;
  border: 1px solid rgba(212,169,106,0.30);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
  white-space: nowrap;
}
.mc-avatar-wrap:hover .mc-badge-popup,
.mc-badge-popup:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mc-badge-popup-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 8px;
}
.mc-badge-popup-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
/* on small screens: show popup below avatar */
@media (max-width: 480px) {
  .mc-badge-popup {
    top: calc(100% + 8px);
    left: 0;
    transform: translateY(-4px);
  }
  .mc-avatar-wrap:hover .mc-badge-popup {
    transform: translateY(0);
  }
}

/* ── Member card clickable style ─────────────────────────────────────────── */
.member-card {
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.member-card:hover {
  border-color: rgba(212,169,106,0.35);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}
.member-card:active { transform: translateY(0); }

/* ── Profile lightbox ────────────────────────────────────────────────────── */
.mc-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s;
}
.mc-lightbox-overlay.open { opacity: 1; }

.mc-lightbox {
  background: #1e1e1f;
  border: 1px solid rgba(212,169,106,0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px 28px 28px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.22s;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}
.mc-lightbox-overlay.open .mc-lightbox {
  transform: translateY(0) scale(1);
}

.mc-lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #777;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.mc-lightbox-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.mc-lightbox-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.mc-lb-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(212,169,106,0.12);
}
.mc-lb-initials {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(212,169,106,0.12);
  background: var(--avatar-color, #4a4a5a);
}

.mc-lightbox-body { text-align: center; }

.mc-lb-eyebrow {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.mc-lb-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}
.mc-lb-location {
  font-size: 14px;
  color: var(--text-faint);
  margin: 0 0 12px;
}
.mc-lb-tagline {
  font-size: 14px;
  font-style: italic;
  color: var(--gold);
  margin: 0 0 20px;
  line-height: 1.5;
}

.mc-lb-badges {
  margin: 20px 0;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
}
.mc-lb-badges-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 10px;
}
.mc-lb-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mc-lb-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: left;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mc-lb-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── Sign-in prompt (shown in lightbox when not authenticated) ────────── */
.mc-signin-prompt {
  max-width: 380px;
  padding: 48px 36px 40px;
}
.mc-signin-prompt-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.mc-signin-prompt-icon { font-size: 48px; line-height: 1; }
.mc-signin-prompt h2   { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 0; }
.mc-signin-prompt p    { color: var(--text-muted); font-size: 15px; max-width: 300px; margin: 0; line-height: 1.6; }
.mc-signin-prompt-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── Nav profile avatar + dropdown ──────────────────────────────────────── */
.nav-profile-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-avatar-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 999px;
  color: var(--text-muted);
  transition: transform 0.15s, box-shadow 0.15s;
  line-height: 0;
}
.nav-avatar-btn:hover { transform: translateY(-1px); }
.nav-avatar-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,169,106,0.2);
}
.nav-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(42,42,44,0.98) 0%, rgba(22,22,24,0.98) 100%);
  border: 2px solid rgba(212,169,106,0.9);
  box-shadow: 0 0 0 2px rgba(212,169,106,0.18), 0 10px 22px rgba(0,0,0,0.28);
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-avatar-circle.has-photo {
  background: #151516;
}
.nav-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  letter-spacing: 0.02em;
}
.nav-profile-dd {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 190px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  z-index: 2000;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s;
}
.nav-profile-dd.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s;
  box-sizing: border-box;
}
.nav-dd-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.nav-dd-item svg  { flex-shrink: 0; opacity: 0.7; }
.nav-dd-divider   { height: 1px; background: var(--border); margin: 4px 0; }
.nav-dd-signout   { color: #e88f8f; }
.nav-dd-signout:hover { background: rgba(232,143,143,0.08); color: #e88f8f; }

/* Alerts badge */
.nav-alerts-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #e25555;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
  pointer-events: none;
}

/* Alerts flyout */
.nav-alerts-flyout {
  position: fixed;
  top: 60px;
  right: 20px;
  width: min(380px, calc(100vw - 40px));
  max-height: min(480px, calc(100vh - 100px));
  overflow-y: auto;
  background: #1a1a1c;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 1100;
  padding: 0;
}
.nav-alerts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  font-weight: 700;
  color: #f3f3f3;
}
.nav-alerts-mark-all {
  background: none;
  border: none;
  color: #d4a96a;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.nav-alerts-mark-all:hover { background: rgba(212,169,106,0.1); }
.nav-alerts-list { padding: 4px 0; }
.nav-alert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  transition: background 0.12s;
  cursor: default;
}
.nav-alert-item:not(.read) { background: rgba(212,169,106,0.06); }
.nav-alert-item.read { opacity: 0.6; }
.nav-alert-icon { font-size: 18px; flex-shrink: 0; line-height: 1.3; }
.nav-alert-body { flex: 1; min-width: 0; }
.nav-alert-msg { display: block; font-size: 13px; color: #e0e0e0; line-height: 1.4; }
.nav-alert-time { display: block; font-size: 11px; color: #666; margin-top: 2px; }
.nav-alerts-loading, .nav-alerts-empty {
  padding: 32px 16px;
  text-align: center;
  color: #666;
  font-size: 13px;
}

/* ── Wood Cookie balance bar (profile.html) ─────────────────────────────── */
.pf-cookie-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(212,169,106,0.10) 0%, rgba(212,169,106,0.04) 100%);
  border: 1px solid rgba(212,169,106,0.22);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
}
.pf-cookie-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.pf-cookie-info {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.pf-cookie-balance {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font);
  line-height: 1;
}
.pf-cookie-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.pf-cookie-ways {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-faint);
  text-align: right;
  line-height: 1.5;
}
@media (max-width: 540px) {
  .pf-cookie-ways { display: none; }
}

/* ── Monthly Raffle card (profile.html) ─────────────────────────────────── */
.pf-raffle-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(212,169,106,0.08) 0%, rgba(212,169,106,0.03) 100%);
  border: 1px solid rgba(212,169,106,0.22);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.pf-raffle-left { flex: 1; min-width: 0; }
.pf-raffle-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font);
  margin-bottom: 4px;
}
.pf-raffle-meta {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font);
}
.pf-raffle-right { flex-shrink: 0; }
.pf-raffle-btn {
  background: rgba(212,169,106,0.12);
  border: 1px solid rgba(212,169,106,0.35);
  border-radius: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.pf-raffle-btn:hover:not(:disabled) {
  background: rgba(212,169,106,0.22);
  border-color: rgba(212,169,106,0.6);
}
.pf-raffle-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.pf-raffle-icon { font-size: 14px; }

/* ── Cookie transaction log (profile.html) ──────────────────────────────── */
.pf-cookie-log-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.pf-cookie-log-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 12px;
  font-family: var(--font);
}
.pf-cookie-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pf-cookie-log-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  font-family: var(--font);
  gap: 12px;
}
.pf-cookie-log-list li:last-child { border-bottom: none; }
.pf-log-reason { color: var(--text-muted); flex: 1; }
.pf-log-amount { font-weight: 700; white-space: nowrap; }
.pf-log-amount.award { color: #7ecb7e; }
.pf-log-amount.spend { color: #e88f8f; }
.pf-log-date { font-size: 11px; color: var(--text-faint); white-space: nowrap; }

/* ── Member Peekers ──────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .mc-peeker {
    position: fixed;
    right: -38px;
    z-index: 50;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: mc-peek-in 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .mc-peeker:hover {
    transform: translateX(-34px);
  }
  .mc-peeker img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.55);
    transition: box-shadow 0.25s;
  }
  .mc-peeker:hover img {
    box-shadow: 0 6px 28px rgba(212,169,106,0.55);
  }
  .mc-peeker-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font);
    text-shadow: 0 1px 6px rgba(0,0,0,0.95);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
  }
  .mc-peeker:hover .mc-peeker-label {
    opacity: 1;
    transform: translateX(-4px);
  }
  @keyframes mc-peek-in {
    from { transform: translateX(80px); }
    to   { transform: translateX(0); }
  }
}

/* ============================================================
   Guild Pulse — homepage member spotlight + coming-soon teasers
   ============================================================ */

.guild-pulse {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Layout: spotlight left, teasers right ── */
.gp-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* ── Spotlight carousel ── */
.gp-spotlight {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-height: 320px;
}

.gp-card {
  display: none;
  flex-direction: row;
  gap: 0;
}
.gp-card.gp-active {
  display: flex;
  animation: gp-fadein 0.45s ease;
}

@keyframes gp-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gp-card-img {
  width: 260px;
  min-width: 260px;
  aspect-ratio: 3/4;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: #111;
}

.gp-card-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.gp-card-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.gp-card-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
  line-height: 1.5;
  flex: 1;
}

.gp-card-meta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gp-card-location {
  font-size: 13px;
  color: var(--text-faint);
}

.gp-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}
.gp-card-link:hover { color: var(--gold-hover); }

/* ── Nav buttons ── */
.gp-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,15,16,0.75);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.gp-nav:hover { background: rgba(212,169,106,0.15); border-color: var(--gold); }
.gp-prev { left: 10px; }
.gp-next { right: 10px; }

/* ── Dots ── */
.gp-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.gp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.gp-dot.gp-dot-active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ── Skeleton loader ── */
.gp-skeleton {
  display: flex;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  animation: gp-shimmer 1.6s infinite linear;
  background: linear-gradient(90deg, var(--bg-card) 25%, #262628 50%, var(--bg-card) 75%);
  background-size: 400% 100%;
}

@keyframes gp-shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

/* ── Teasers column ── */
.gp-teasers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gp-teaser {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.gp-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,169,106,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.gp-teaser:hover { border-color: rgba(212,169,106,0.3); }

.gp-teaser-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,169,106,0.12);
  border: 1px solid rgba(212,169,106,0.25);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 10px;
  animation: gp-pulse-badge 3s ease-in-out infinite;
}

@keyframes gp-pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.gp-teaser h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 700;
}

.gp-teaser p {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.55;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .gp-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .gp-card { flex-direction: column; }
  .gp-card-img {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16/9;
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

/* ============================================================
   Daily Carving Challenges
   ============================================================ */

/* ── Page layout ── */
.ch-page { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 80px; }

/* ── Challenge header ── */
.ch-header { padding: 56px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.ch-header h1 { margin: 12px 0 16px; }
.ch-header p  { max-width: 620px; font-size: 1.05rem; line-height: 1.7; }

.ch-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.ch-deadline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(212,169,106,0.1);
  border: 1px solid rgba(212,169,106,0.25);
  border-radius: 20px;
  padding: 4px 12px;
}

.ch-countdown {
  font-size: 13px;
  color: var(--text-faint);
}

/* ── Submission form section ── */
.ch-submit-section { margin-bottom: 48px; }
.ch-submit-section h2 { font-size: 1.1rem; margin-bottom: 16px; }

.ch-gate {
  padding: 24px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}
.ch-gate a { color: var(--gold); font-weight: 600; }

.ch-done {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.ch-form { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.ch-form label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; display: block; }

.ch-url-row { display: flex; gap: 8px; }
.ch-url-row input { flex: 1; }
.ch-url-row button { flex-shrink: 0; }

.ch-preview {
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  display: none;
}
.ch-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}
.ch-preview-error {
  padding: 12px;
  font-size: 13px;
  color: #e8705a;
}

/* ── Gallery grid ── */
.ch-gallery-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.ch-gallery-header h2 { font-size: 1.2rem; margin: 0; }
.ch-gallery-count { font-size: 13px; color: var(--text-faint); }

.ch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Submission card ── */
.ch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.ch-card:hover { border-color: rgba(212,169,106,0.3); transform: translateY(-2px); }

.ch-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  cursor: pointer;
  overflow: hidden;
}
.ch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.ch-card:hover .ch-thumb img { transform: scale(1.03); }

.ch-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1b;
}

.ch-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.2s;
}
.ch-thumb:hover .ch-play { opacity: 1; }
.ch-play svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8)); }

.ch-card-body {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.ch-card-name  { font-size: 13px; font-weight: 700; color: var(--text); }
.ch-card-caption {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ch-vote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.ch-vote-count { font-size: 13px; color: var(--text-faint); }

.ch-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ch-vote-btn:hover { border-color: rgba(212,169,106,0.4); color: var(--gold); }
.ch-vote-btn.ch-voted {
  background: rgba(212,169,106,0.12);
  border-color: rgba(212,169,106,0.4);
  color: var(--gold);
}

/* ── Lightbox ── */
.ch-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ch-lightbox.ch-lb-open { display: flex; }

.ch-lb-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.ch-lb-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.ch-lb-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.ch-lb-close:hover { opacity: 1; }

/* ── Empty / loading states ── */
.ch-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-faint);
}
.ch-empty h2 { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 8px; }

.ch-no-subs {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--text-faint);
  font-size: 14px;
}

/* ── Skeleton cards ── */
.ch-skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ch-skeleton-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, var(--bg-card) 25%, #262628 50%, var(--bg-card) 75%);
  background-size: 400% 100%;
  animation: ch-shimmer 1.6s infinite linear;
}
.ch-skeleton-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ch-skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-card) 25%, #262628 50%, var(--bg-card) 75%);
  background-size: 400% 100%;
  animation: ch-shimmer 1.6s infinite linear;
}
@keyframes ch-shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

/* ── Responsive ── */
@media (max-width: 860px) { .ch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ch-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Fan Commissions
   ============================================================ */

.cr-page { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 80px; }

/* ── Header ── */
.cr-header { padding: 56px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.cr-header h1 { margin: 12px 0 16px; }
.cr-header p  { max-width: 580px; font-size: 1.05rem; line-height: 1.7; }
.cr-header-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ── Post-a-request form card ── */
.cr-form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 40px; overflow: hidden; }
.cr-form-card-header { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: center; }
.cr-form-card-header h2 { font-size: 1.05rem; margin: 0; }
.cr-form-toggle { background: none; border: none; color: var(--gold); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.cr-form-toggle:hover { color: var(--gold-hover); }

.cr-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 24px 24px; }
.cr-form .cr-full { grid-column: 1 / -1; }
.cr-form label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; display: block; }
.cr-form-row { display: flex; gap: 12px; }
.cr-form-row > * { flex: 1; }
.cr-form-error { grid-column: 1 / -1; color: #e8705a; font-size: 13px; display: none; }

/* ── Filter bar ── */
.cr-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.cr-filters select { width: auto; min-width: 140px; flex: none; }
.cr-filter-count { font-size: 13px; color: var(--text-faint); margin-left: auto; }

/* ── Request cards grid ── */
.cr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
  position: relative;
}
.cr-card:hover { border-color: rgba(212,169,106,0.3); }

.cr-card-top { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }

.cr-card h3 {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
  margin: 0;
}

.cr-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.cr-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
}

.cr-budget {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.cr-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.cr-poster { font-size: 12px; color: var(--text-faint); }

.cr-claimed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(90,138,106,0.12);
  border: 1px solid rgba(90,138,106,0.3);
  border-radius: 20px;
  padding: 3px 10px;
}

/* ── Claim modal ── */
.cr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cr-modal.cr-modal-open { display: flex; }
.cr-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
}
.cr-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  color: var(--text-faint); font-size: 20px;
  cursor: pointer; line-height: 1;
}
.cr-modal-close:hover { color: var(--text); }
.cr-modal-box h2 { font-size: 1.15rem; margin: 0 0 8px; }
.cr-modal-box p { font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.cr-contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
  margin-top: 16px;
}
.cr-contact-box strong { color: var(--text); display: block; margin-bottom: 4px; }
.cr-contact-email { color: var(--gold); word-break: break-all; }

/* ── Empty / loading ── */
.cr-empty { grid-column: 1/-1; text-align: center; padding: 64px 24px; color: var(--text-faint); font-size: 14px; }
.cr-loading { grid-column: 1/-1; text-align: center; padding: 48px; color: var(--text-faint); }

/* ── Skeleton ── */
.cr-skel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cr-skel-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-card) 25%, #262628 50%, var(--bg-card) 75%);
  background-size: 400% 100%;
  animation: ch-shimmer 1.6s infinite linear;
}

/* ── Load more ── */
.cr-load-more { text-align: center; margin-top: 36px; }

/* ── Responsive ── */
@media (max-width: 860px) { .cr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) {
  .cr-grid { grid-template-columns: 1fr; }
  .cr-form { grid-template-columns: 1fr; }
  .cr-form .cr-full { grid-column: 1; }
}


/* ============================================================
   Piece Auctions — auctions.html
   ============================================================ */

/* Page */
.au-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Header */
.au-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.au-header-text h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -.02em;
  margin-bottom: .3rem;
}
.au-header-text p {
  color: var(--text-muted);
  max-width: 520px;
}
.au-list-btn {
  white-space: nowrap;
  background: var(--gold);
  color: #111;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: .6rem 1.3rem;
  cursor: pointer;
  transition: background .2s;
}
.au-list-btn:hover { background: var(--gold-hover); }

/* ── Listing Form ── */
.au-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}
.au-form-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.au-form { display: grid; gap: 1.2rem; }
.au-form-row { display: flex; flex-direction: column; gap: .4rem; }
.au-form-row label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.au-req { color: var(--gold); }
.au-hint { font-weight: 400; color: var(--text-faint); font-size: .78rem; }
.au-form-row input,
.au-form-row textarea,
.au-form-row select {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: .55rem .75rem;
  width: 100%;
  transition: border-color .2s;
}
.au-form-row input:focus,
.au-form-row textarea:focus,
.au-form-row select:focus { outline: none; border-color: var(--gold); }
.au-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.au-input-prefix { display: flex; align-items: center; gap: 0; }
.au-input-prefix span {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: .55rem .6rem;
  color: var(--text-muted);
  font-size: .9rem;
  white-space: nowrap;
}
.au-input-prefix input { border-radius: 0 var(--radius) var(--radius) 0; }

/* Image inputs */
.au-image-inputs { display: flex; flex-direction: column; gap: .75rem; }
.au-image-row { display: flex; align-items: center; gap: .75rem; }
.au-image-row input { flex: 1; }
.au-img-preview {
  width: 56px; height: 42px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* Form actions */
.au-form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.au-form-submit {
  background: var(--gold);
  color: #111;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: .6rem 1.5rem;
  cursor: pointer;
  transition: background .2s;
}
.au-form-submit:hover:not(:disabled) { background: var(--gold-hover); }
.au-form-submit:disabled { opacity: .6; cursor: not-allowed; }
.au-form-cancel {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  padding: .6rem 1.2rem;
  cursor: pointer;
}
.au-form-cancel:hover { border-color: var(--text-muted); }
.au-form-msg { font-size: .85rem; }
.au-form-msg--ok    { color: #5a8; }
.au-form-msg--error { color: #e66; }

/* ── Filters ── */
.au-filters {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.au-filters select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  padding: .45rem .8rem;
  cursor: pointer;
}
.au-filters select:focus { outline: none; border-color: var(--gold); }

/* ── Grid ── */
.au-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ── Card ── */
.au-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .15s;
  display: flex;
  flex-direction: column;
}
.au-card:hover { border-color: rgba(212,169,106,.35); transform: translateY(-2px); }

/* Card thumbnail */
.au-card-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-surface);
}
.au-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.au-card:hover .au-card-thumb img { transform: scale(1.04); }

.au-card-timer {
  position: absolute;
  bottom: .5rem; right: .5rem;
  background: rgba(0,0,0,.72);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 20px;
  letter-spacing: .01em;
}
.au-card-timer--ended {
  background: rgba(0,0,0,.72);
  color: var(--text-muted);
}
.au-leading-badge {
  position: absolute;
  top: .5rem; left: .5rem;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .18rem .5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.au-mine-badge {
  position: absolute;
  top: .5rem; left: .5rem;
  background: rgba(212,169,106,.25);
  color: var(--gold);
  border: 1px solid rgba(212,169,106,.4);
  font-size: .72rem;
  font-weight: 700;
  padding: .18rem .5rem;
  border-radius: 20px;
}

/* Card body */
.au-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.au-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: .15rem;
  line-height: 1.35;
}
.au-card-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: .15rem;
}
.au-card-price-label { font-size: .73rem; color: var(--text-faint); }
.au-card-price-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
.au-card-bid-meta {
  font-size: .75rem;
  color: var(--text-faint);
  text-align: right;
  line-height: 1.4;
}
.au-card-top-bidder { color: var(--text-muted); }
.au-card-seller {
  font-size: .8rem;
  color: var(--text-faint);
}
.au-view-btn {
  margin-top: auto;
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: .5rem;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.au-view-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Skeleton */
.au-skeleton {
  pointer-events: none;
  min-height: 300px;
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-surface) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: au-shimmer 1.5s infinite;
}
@keyframes au-shimmer { to { background-position: -200% 0; } }

/* Empty / error */
.au-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.au-error  { color: #e66; padding: 1rem; }

/* Load more */
.au-load-more-wrap { text-align: center; margin-top: 2rem; }
.au-load-more {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  padding: .6rem 2rem;
  font: inherit;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.au-load-more:hover { border-color: var(--gold); color: var(--gold); }

/* ── Modal overlay ── */
.au-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.au-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Modal close */
.au-modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 10;
  background: rgba(0,0,0,.6);
  border: none;
  color: var(--text);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.au-modal-close:hover { background: rgba(255,255,255,.15); }

/* Modal images */
.au-modal-images {
  position: relative;
  background: var(--bg-surface);
}
.au-modal-main-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}
.au-modal-thumbs {
  display: flex;
  gap: .5rem;
  padding: .5rem .75rem;
  overflow-x: auto;
}
.au-modal-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .65;
  transition: opacity .2s, border-color .2s;
  flex-shrink: 0;
}
.au-modal-thumb:hover,
.au-modal-thumb--active { opacity: 1; border-color: var(--gold); }

/* Modal content */
.au-modal-content { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.au-modal-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.au-modal-seller { font-size: .82rem; color: var(--text-faint); }
.au-modal-title { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.au-modal-desc { color: var(--text-muted); font-size: .92rem; line-height: 1.6; white-space: pre-wrap; }

/* Price + timer */
.au-modal-price-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.au-modal-price-label { font-size: .75rem; color: var(--text-faint); margin-bottom: .15rem; }
.au-modal-price-amount { font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.au-modal-timer-block { }
.au-modal-timer-label { font-size: .75rem; color: var(--text-faint); margin-bottom: .15rem; }
.au-modal-timer-value { font-size: 1rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* Bid history */
.au-modal-history { }
.au-modal-history-title { font-size: .85rem; font-weight: 700; color: var(--text-muted); margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .06em; }
.au-bid-list { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.au-bid-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .87rem;
  padding: .4rem .6rem;
  border-radius: 6px;
  background: var(--bg-surface);
}
.au-bid-item--new { border: 1px solid rgba(90,138,106,.4); }
.au-bid-who  { flex: 1; color: var(--text); font-weight: 600; }
.au-bid-amount { color: var(--gold); font-weight: 700; white-space: nowrap; }
.au-bid-when { color: var(--text-faint); font-size: .78rem; white-space: nowrap; }

/* Bid panel */
.au-bid-panel { }
.au-bid-signin { text-align: center; padding: 1rem; }
.au-bid-signin p { color: var(--text-muted); margin-bottom: .75rem; }
.au-bid-signin-btn {
  background: var(--gold);
  color: #111;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: .55rem 1.5rem;
  cursor: pointer;
}
.au-bid-signin-btn:hover { background: var(--gold-hover); }
.au-bid-notice { color: var(--text-faint); font-size: .9rem; padding: .5rem; }
.au-bid-ended { padding: .75rem; }
.au-ended-label { font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-bottom: .4rem; }
.au-bid-ended p { font-size: .9rem; color: var(--text-muted); }
.au-bid-won {
  background: rgba(90,138,106,.12);
  border: 1px solid rgba(90,138,106,.3);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.au-won-badge {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .6rem;
}
.au-bid-won p { font-size: .9rem; color: var(--text-muted); margin-bottom: .4rem; }
.au-won-hint { font-size: .83rem !important; }
.au-contact-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: .6rem 1.5rem;
  cursor: pointer;
  margin-top: .5rem;
  transition: opacity .2s;
}
.au-contact-btn:hover:not(:disabled) { opacity: .85; }
.au-contact-btn:disabled { opacity: .6; cursor: not-allowed; }
.au-contact-result { margin-top: .75rem; }
.au-contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  text-align: left;
  margin-bottom: .5rem;
}
.au-contact-info a { color: var(--gold); text-decoration: none; }
.au-contact-info a:hover { text-decoration: underline; }
.au-contact-hint { font-size: .82rem; color: var(--text-faint); }

/* Leading banner */
.au-leading-banner {
  background: rgba(90,138,106,.15);
  border: 1px solid rgba(90,138,106,.35);
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
  padding: .55rem;
  margin-bottom: .75rem;
}

/* Bid form section */
.au-bid-form-section { }
.au-min-bid-hint { font-size: .85rem; color: var(--text-muted); margin-bottom: .6rem; }
.au-bid-input-row { display: flex; align-items: stretch; gap: 0; }
.au-bid-dollar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: .6rem .7rem;
  color: var(--text-muted);
  font-size: .9rem;
  display: flex;
  align-items: center;
}
.au-bid-input-row input[type='number'] {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: .6rem .5rem;
  min-width: 0;
}
.au-bid-input-row input[type='number']:focus { outline: none; border-color: var(--gold); }
.au-bid-submit-btn {
  background: var(--gold);
  color: #111;
  font-weight: 700;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .6rem 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.au-bid-submit-btn:hover:not(:disabled) { background: var(--gold-hover); }
.au-bid-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.au-bid-msg { font-size: .83rem; margin-top: .5rem; min-height: 1.2em; }
.au-bid-msg--error { color: #e66; }
.au-bid-msg--ok    { color: #5a8; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .au-form-2col { grid-template-columns: 1fr; }
  .au-modal-box { max-height: 95vh; border-radius: var(--radius) var(--radius) 0 0; }
  .au-modal { align-items: flex-end; padding: 0; }
  .au-modal-main-img { max-height: 220px; }
  .au-modal-price-row { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ── How It Works accordion ── */
.au-how-it-works {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  overflow: hidden;
}
.au-hiw-toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.25rem;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
  user-select: none;
  transition: color .2s;
}
.au-hiw-toggle::-webkit-details-marker { display: none; }
.au-hiw-toggle:hover { color: var(--text); }
.au-how-it-works[open] .au-hiw-toggle { color: var(--gold); border-bottom: 1px solid var(--border); }
.au-hiw-icon { font-style: normal; font-size: 1rem; }
.au-hiw-chevron {
  margin-left: auto;
  font-size: 1.2rem;
  transition: transform .2s;
  line-height: 1;
}
.au-how-it-works[open] .au-hiw-chevron { transform: rotate(90deg); }

.au-hiw-body { padding: 1.5rem; }
.au-hiw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.au-hiw-step {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.au-hiw-step--wide { grid-column: 1 / -1; }
.au-hiw-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: rgba(212,169,106,.15);
  border: 1px solid rgba(212,169,106,.3);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}
.au-hiw-step strong { display: block; color: var(--text); margin-bottom: .3rem; }
.au-hiw-step p { font-size: .87rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

@media (max-width: 540px) {
  .au-hiw-grid { grid-template-columns: 1fr; }
  .au-hiw-step--wide { grid-column: 1; }
}

/* ── Reserve badge on cards ── */
.au-card-badges { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.au-reserve-badge {
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .45rem;
  border-radius: 20px;
  background: rgba(255,255,255,.07);
  color: var(--text-faint);
  border: 1px solid var(--border);
}
.au-reserve-badge--unmet {
  background: rgba(230,80,80,.1);
  color: #e66;
  border-color: rgba(230,80,80,.3);
}

/* ── Form helper text ── */
.au-field-note {
  font-size: .78rem;
  color: var(--text-faint);
  margin-top: .3rem;
  line-height: 1.45;
}

/* ── Modal shipping + reserve ── */
.au-modal-shipping-row {
  display: flex;
  gap: .5rem;
  align-items: baseline;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .55rem .85rem;
  font-size: .87rem;
}
.au-modal-shipping-label { color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }
.au-modal-shipping { color: var(--text-muted); }

.au-modal-reserve-row { }
.au-modal-reserve-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  color: var(--text-faint);
  border: 1px solid var(--border);
}
.au-modal-reserve-tag--met {
  background: rgba(90,138,106,.12);
  color: var(--accent);
  border-color: rgba(90,138,106,.3);
}
.au-modal-reserve-tag--unmet {
  background: rgba(230,80,80,.1);
  color: #e66;
  border-color: rgba(230,80,80,.3);
}

/* ── Commissions — How It Works accordion ── */
.cr-how-it-works {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  overflow: hidden;
}
.cr-hiw-toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.25rem;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
  user-select: none;
  transition: color .2s;
}
.cr-hiw-toggle::-webkit-details-marker { display: none; }
.cr-hiw-toggle:hover { color: var(--text); }
.cr-how-it-works[open] .cr-hiw-toggle { color: var(--gold); border-bottom: 1px solid var(--border); }
.cr-hiw-icon { font-style: normal; font-size: 1rem; }
.cr-hiw-chevron {
  margin-left: auto;
  font-size: 1.2rem;
  transition: transform .2s;
  line-height: 1;
}
.cr-how-it-works[open] .cr-hiw-chevron { transform: rotate(90deg); }

.cr-hiw-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.cr-hiw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.cr-hiw-step {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.cr-hiw-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: rgba(212,169,106,.15);
  border: 1px solid rgba(212,169,106,.3);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}
.cr-hiw-step strong { display: block; color: var(--text); margin-bottom: .3rem; }
.cr-hiw-step p { font-size: .87rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.cr-hiw-note {
  background: rgba(212,169,106,.06);
  border: 1px solid rgba(212,169,106,.2);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.cr-hiw-note strong { color: var(--gold); }

@media (max-width: 540px) {
  .cr-hiw-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guild-ticker-track {
    animation: none;
    width: auto;
    min-width: auto;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .guild-ticker-item {
    padding-right: 0;
  }
  .guild-ticker-item + .guild-ticker-item::before {
    display: none;
  }
}
