/* ──────────────────────────────────────────────────
   RAR VALUES – Main Stylesheet v2
   Palette:
     --navy      #0D1117  (background base)
     --panel     #141B24  (card bg)
     --panel2    #1C2534  (elevated)
     --border    #243044  (borders)
     --gold      #F0A500  (accent)
     --gem       #7B61FF  (gem accent)
   ────────────────────────────────────────────────── */

:root {
  --navy:      #0D1117;
  --panel:     #141B24;
  --panel2:    #1C2534;
  --panel3:    #232f42;
  --border:    #243044;
  --gold:      #F0A500;
  --gold-dim:  #c88a00;
  --gold-glow: rgba(240,165,0,0.18);
  --gem:       #7B61FF;
  --gem-glow:  rgba(123,97,255,0.25);
  --text:      #E8EAF0;
  --muted:     #8A95A8;
  --success:   #22C55E;
  --danger:    #EF4444;
  --radius:    12px;
  --radius-sm: 7px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #0D1117; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.hidden { display: none !important; }
.gold { color: var(--gold); }

/* ──────────── CANVAS BACKGROUND ──────────── */
.bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  height: 100dvh; /* stable viewport height on mobile, ignores address-bar show/hide */
  z-index: 0;
  pointer-events: none;
}

/* All content sits above the canvas */
.site-header,
#mainContent,
#pageOverlay,
.site-footer,
.cookie-banner,
.modal-overlay {
  position: relative;
  z-index: 1;
}

/* ──────────── SCROLLBAR ──────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--panel3); }

/* Buttons styled as links (iOS fix) */
button.nav-link,
button.footer-text-link,
button.cookie-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* ──────────── COOKIE BANNER ──────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  width: min(680px, calc(100vw - 32px));
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.cookie-inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-text {
  display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 220px;
}
.cookie-icon { font-size: 1.4rem; flex-shrink: 0; }
.cookie-text p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.cookie-link { color: var(--gold); text-decoration: none; }
.cookie-link:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie-accept {
  padding: 8px 18px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--navy);
  font-weight: 600; font-size: 0.82rem; border: none; cursor: pointer;
  transition: background var(--transition);
  font-family: 'Inter', sans-serif;
}
.btn-cookie-accept:hover { background: var(--gold-dim); }
.btn-cookie-decline {
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); font-size: 0.82rem; cursor: pointer;
  transition: all var(--transition); font-family: 'Inter', sans-serif;
}
.btn-cookie-decline:hover { color: var(--text); border-color: var(--muted); }

/* ──────────── HEADER ──────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,23,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(36,48,68,0.6);
}
.header-inner {
  max-width: 1260px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.gem-icon { font-size: 1.7rem; line-height: 1; animation: gemPulse 3s ease-in-out infinite; }
.gem-icon.small { font-size: 1.25rem; }
@keyframes gemPulse {
  0%,100% { filter: drop-shadow(0 0 4px var(--gem-glow)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 14px rgba(123,97,255,0.5)); transform: scale(1.08); }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.brand-sub { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.header-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-link {
  color: var(--muted); text-decoration: none; font-size: 0.88rem;
  padding: 7px 14px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.btn-discord {
  display: flex; align-items: center; gap: 7px;
  background: #5865F2; color: #fff;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-discord:hover { background: #4752c4; transform: translateY(-1px); }
.btn-discord.small { padding: 6px 12px; font-size: 0.8rem; }
.btn-email {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500; text-decoration: none;
  transition: all var(--transition);
}
.btn-email:hover { border-color: var(--gold); color: var(--gold); }
.mobile-menu-btn {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.4rem; cursor: pointer; margin-left: auto;
}
.mobile-nav {
  display: none; flex-direction: column; gap: 8px;
  padding: 14px 24px; border-top: 1px solid var(--border);
  background: rgba(20,27,36,0.95);
}
.mobile-nav.open { display: flex; }
@media (max-width: 700px) {
  .header-nav { display: none; }
  .mobile-menu-btn { display: block; }
}

/* ──────────── HERO ──────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 24px 30px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(240,165,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--gold); background: var(--gold-glow);
  border: 1px solid rgba(240,165,0,0.3);
  padding: 5px 16px; border-radius: 99px; margin-bottom: 20px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900; line-height: 1.1;
  color: var(--text); margin-bottom: 20px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.hero-desc { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto 40px; line-height: 1.7; }
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  background: rgba(20,27,36,0.7);
  border: 1px solid rgba(36,48,68,0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius); overflow: hidden;
  max-width: 480px; margin: 40px auto 0;
}
.stat { padding: 18px 36px; text-align: center; }
.stat-num { display: block; font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--gold); }
.stat-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 48px; background: var(--border); flex-shrink: 0; }

/* ──────────── AD CONTAINERS ──────────── */
.ad-container { padding: 20px 24px; display: flex; justify-content: center; }
.ad-placeholder {
  position: relative; width: 100%; max-width: 728px;
  border: 1px dashed rgba(36,48,68,0.7); border-radius: var(--radius);
  overflow: hidden; background: rgba(20,27,36,0.5);
  backdrop-filter: blur(8px);
}
.ad-label {
  position: absolute; top: 6px; left: 10px;
  font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted);
}
.ad-inner { padding: 28px 24px; text-align: center; }
.ad-demo-text { color: var(--muted); font-size: 0.85rem; }
.ad-demo-text a { text-decoration: none; }
.ad-demo-text a:hover { text-decoration: underline; }

/* ──────────── VALUES SECTION ──────────── */
.values-section { padding: 10px 0 80px; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 24px; }

.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 20px;
  background: rgba(20,27,36,0.75);
  border: 1px solid rgba(36,48,68,0.7);
  backdrop-filter: blur(12px);
  border-radius: var(--radius); padding: 14px 18px;
}
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input {
  width: 100%; background: rgba(28,37,52,0.8); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 9px 36px 9px 38px; font-size: 0.9rem; font-family: 'Inter', sans-serif;
  outline: none; transition: border-color var(--transition);
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--gold); }
.search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.8rem; padding: 2px;
  transition: color var(--transition);
}
.search-clear:hover { color: var(--text); }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 6px 14px; border-radius: 99px; font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--border); background: rgba(28,37,52,0.8); color: var(--muted);
  cursor: pointer; transition: all var(--transition);
}
.pill:hover { color: var(--text); border-color: var(--panel3); }
.pill.active { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; }
.sort-wrap { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sort-label { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.sort-select {
  background: rgba(28,37,52,0.8); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.82rem; font-family: 'Inter', sans-serif;
  padding: 7px 10px; outline: none; cursor: pointer;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--gold); }

.results-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: 0.8rem; color: var(--muted);
}
.results-update { font-style: italic; }

/* ──────────── GRID ──────────── */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.item-card {
  background: rgba(20,27,36,0.8);
  border: 1px solid rgba(36,48,68,0.8);
  backdrop-filter: blur(8px);
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.35s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.item-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(240,165,0,0.15);
}
.card-img-wrap {
  aspect-ratio: 1 / 1; background: rgba(28,37,52,0.8);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-bottom: 1px solid var(--border);
}
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder { font-size: 3rem; opacity: 0.4; }
.card-body { padding: 14px; }
.card-category {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; color: var(--gold); opacity: 0.8; margin-bottom: 4px;
}
.card-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; color: var(--text); line-height: 1.3; }
.card-meta { display: flex; justify-content: space-between; align-items: center; }
.card-value {
  display: flex; align-items: center; gap: 4px;
  font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--gold);
}
.card-value-icon { font-size: 0.85rem; }
.card-demand {
  font-size: 0.7rem; font-weight: 600; padding: 2px 8px;
  border-radius: 99px; border: 1px solid;
}
.demand-very-low  { color: #94A3B8; border-color: #94A3B880; background: #94A3B811; }
.demand-low       { color: #60A5FA; border-color: #60A5FA80; background: #60A5FA11; }
.demand-medium    { color: #FBBF24; border-color: #FBBF2480; background: #FBBF2411; }
.demand-high      { color: #34D399; border-color: #34D39980; background: #34D39911; }
.demand-very-high { color: #F87171; border-color: #F8717180; background: #F8717111; }
.demand-godly     { color: #C084FC; border-color: #C084FC80; background: #C084FC11; }

/* ──────────── LOADING & EMPTY ──────────── */
.loading-state {
  grid-column: 1/-1; text-align: center;
  padding: 80px 0; color: var(--muted);
}
.gem-spinner { font-size: 3rem; animation: spin 1.5s linear infinite; display: block; margin-bottom: 12px; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.empty-state {
  text-align: center; padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-icon { font-size: 3.5rem; }
.empty-state h3 { font-size: 1.3rem; color: var(--text); }
.empty-state p { color: var(--muted); }
.btn-reset {
  margin-top: 8px; padding: 9px 20px; border-radius: var(--radius-sm);
  background: rgba(28,37,52,0.8); border: 1px solid var(--border);
  color: var(--text); font-size: 0.875rem; cursor: pointer;
  transition: all var(--transition);
}
.btn-reset:hover { border-color: var(--gold); color: var(--gold); }

/* ──────────── MODAL ──────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(13,17,23,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; max-width: 460px; width: 100%;
  overflow: hidden; position: relative;
  animation: modalIn 0.25s ease;
}
.modal-card.small { max-width: 340px; text-align: center; padding: 36px 28px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--panel2); border: 1px solid var(--border);
  border-radius: 99px; color: var(--muted); width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.8rem; transition: all var(--transition);
}
.modal-close:hover { color: var(--text); border-color: var(--muted); }
.modal-img-wrap {
  aspect-ratio: 16/9; background: var(--panel2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.modal-img { width: 100%; height: 100%; object-fit: cover; }
.modal-img-placeholder { font-size: 4rem; }
.modal-body { padding: 22px 24px 28px; }
.modal-category { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--gold); }
.modal-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; margin: 6px 0 20px; }
.modal-stats { display: flex; gap: 24px; margin-bottom: 16px; }
.modal-stat { display: flex; flex-direction: column; gap: 2px; }
.ms-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.ms-value { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.ms-value.gem { color: var(--gold); font-family: 'Playfair Display', serif; }
.ms-value.gem::before { content: '💎 '; font-family: 'Inter', sans-serif; font-size: 0.9rem; }
.modal-updated { font-size: 0.75rem; color: var(--muted); }
.modal-del-icon { font-size: 2.8rem; margin-bottom: 12px; }
.modal-del-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.modal-del-sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 24px; }
.modal-del-actions { display: flex; gap: 10px; justify-content: center; }

/* ──────────── PAGE OVERLAY (Legal / About) ──────────── */
.page-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10,13,20,0.9); backdrop-filter: blur(10px);
  overflow-y: auto; padding: 40px 24px;
}
.page-panel {
  max-width: 780px; margin: 0 auto;
  background: rgba(20,27,36,0.9);
  border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  animation: modalIn 0.25s ease;
}
.page-close {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: none; border: none; border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 0.85rem; cursor: pointer;
  transition: color var(--transition); width: 100%; text-align: left;
  font-family: 'Inter', sans-serif;
}
.page-close:hover { color: var(--text); }
.page-content { padding: 40px 48px 60px; }
@media (max-width: 600px) { .page-content { padding: 28px 24px 48px; } }

/* Legal page styles */
.legal-hero {
  text-align: center; margin-bottom: 48px;
  padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
.legal-icon { font-size: 3rem; display: block; margin-bottom: 16px; }
.legal-hero h1 {
  font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.legal-sub { color: var(--muted); font-size: 0.88rem; }

.legal-body h2 {
  font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700;
  color: var(--gold); margin: 32px 0 12px;
}
.legal-body p { color: var(--muted); line-height: 1.7; margin-bottom: 12px; font-size: 0.92rem; }
.legal-body ul { color: var(--muted); line-height: 1.7; margin: 0 0 12px 20px; font-size: 0.92rem; }
.legal-body ul li { margin-bottom: 6px; }
.legal-body strong { color: var(--text); }
.legal-link { color: var(--gold); text-decoration: none; }
.legal-link:hover { text-decoration: underline; }

/* About page */
.about-founder {
  display: flex; gap: 28px; align-items: flex-start;
  background: rgba(28,37,52,0.5); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 40px;
}
@media (max-width: 540px) { .about-founder { flex-direction: column; align-items: center; text-align: center; } }
.founder-avatar {
  font-size: 4rem; line-height: 1;
  background: rgba(240,165,0,0.1); border: 1px solid rgba(240,165,0,0.2);
  border-radius: 50%; width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.founder-name {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.founder-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); background: var(--gold-glow);
  border: 1px solid rgba(240,165,0,0.25); border-radius: 99px;
  padding: 2px 10px; margin-bottom: 12px;
}
.founder-info p { color: var(--muted); line-height: 1.7; font-size: 0.92rem; margin-bottom: 10px; }

.about-mission { margin-bottom: 40px; }
.about-mission h2, .about-team h2, .about-contact h2 {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
}
.about-mission > p, .about-team > p, .about-contact > p {
  color: var(--muted); line-height: 1.7; font-size: 0.92rem; margin-bottom: 24px;
}
.mission-pillars {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 16px;
}
.pillar {
  background: rgba(28,37,52,0.5); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.pillar-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.pillar h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.pillar p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.about-team { margin-bottom: 40px; }
.team-card {
  background: rgba(28,37,52,0.5); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.team-role {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text);
}
.team-role:last-child { border-bottom: none; }
.role-badge {
  font-size: 0.72rem; font-weight: 600; padding: 2px 10px;
  border-radius: 99px; background: rgba(28,37,52,0.8);
  border: 1px solid var(--border); color: var(--muted);
  white-space: nowrap;
}
.role-badge.lead { border-color: rgba(240,165,0,0.3); color: var(--gold); background: var(--gold-glow); }

.about-contact { margin-bottom: 8px; }
.contact-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ──────────── BUTTONS ──────────── */
.btn-primary {
  padding: 9px 22px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--navy); font-weight: 600; font-size: 0.875rem;
  border: none; cursor: pointer; transition: background var(--transition), transform var(--transition);
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: var(--gold-dim); transform: translateY(-1px); }
.btn-ghost {
  padding: 9px 22px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition); font-family: 'Inter', sans-serif;
}
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-danger {
  padding: 9px 22px; border-radius: var(--radius-sm);
  background: var(--danger); color: #fff; font-weight: 600; font-size: 0.875rem;
  border: none; cursor: pointer; transition: background var(--transition); font-family: 'Inter', sans-serif;
}
.btn-danger:hover { background: #dc2626; }

/* ──────────── FOOTER ──────────── */
.site-footer {
  border-top: 1px solid rgba(36,48,68,0.5);
  padding: 32px 24px;
  background: rgba(10,13,20,0.5);
  backdrop-filter: blur(8px);
}
.footer-inner {
  max-width: 1260px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-note { font-size: 0.78rem; color: var(--muted); }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.footer-text-link {
  color: var(--muted); text-decoration: none; font-size: 0.8rem;
  transition: color var(--transition);
}
.footer-text-link:hover { color: var(--gold); }
.footer-email-link {
  color: var(--muted); text-decoration: none; font-size: 0.8rem;
  transition: color var(--transition);
}
.footer-email-link:hover { color: var(--text); }

/* ──────────── TOAST ──────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--panel2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 24px;
  color: var(--text); font-size: 0.875rem; font-weight: 500;
  z-index: 9999; transition: transform 0.3s ease, opacity 0.3s ease; opacity: 0;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error   { border-color: var(--danger);  color: var(--danger);  }

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 600px) {
  .hero { padding: 60px 20px 24px; }
  .hero-stats { flex-direction: column; max-width: 260px; }
  .stat-divider { width: 100%; height: 1px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .sort-wrap { justify-content: flex-start; }
  .items-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .modal-stats { flex-direction: column; gap: 12px; }
  .cookie-inner { flex-direction: column; }
}

/* ──────────── REDUCED MOTION ──────────── */
@media (prefers-reduced-motion: reduce) {
  .gem-icon, .gem-spinner { animation: none; }
  .item-card { animation: none; }
}


/* ═══════════════════════════════════════════════════════════════
   COOKIE BANNER — neu gestaltet
═══════════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.45);
  padding: 20px 24px;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
}
.cookie-banner.hidden {
  display: none;
}
.cookie-banner.hiding {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}
.cookie-icon-wrap {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-copy strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.cookie-copy p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
}
.cookie-link {
  color: var(--gold);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}
.btn-cookie-decline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.65);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: inherit;
}
.btn-cookie-decline:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-cookie-accept {
  background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
  border: none;
  color: #0a0a0f;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
}
.btn-cookie-accept:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   AD SLOTS — wie ValueVaultX: volle Breite, saubere Trennung
═══════════════════════════════════════════════════════════════ */
.ad-section {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ad-label-bar {
  text-align: center;
  padding: 4px 0 0;
}
.ad-label-text {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.25);
}
.ad-banner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  padding: 8px 16px 14px;
}
/* Actual AdSense ins block needs to fill the wrap */
.ad-banner-wrap ins.adsbygoogle {
  width: 100%;
  max-width: 728px;
}
/* Demo placeholder shown until real ads are connected */
.ad-demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  max-width: 728px;
  width: 100%;
  justify-content: center;
}
.ad-demo-banner a {
  color: var(--gold);
  text-decoration: none;
}
.ad-demo-banner a:hover { text-decoration: underline; }
.ad-demo-icon { font-size: 1.1rem; }

@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}


/* ═══════════════════════════════════════════════════════════════
   CONTRIBUTORS TICKER SECTION
═══════════════════════════════════════════════════════════════ */
.contributors-section {
  width: 100%;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0 22px;
  overflow: hidden;
}
.contributors-header {
  text-align: center;
  margin-bottom: 14px;
}
.contributors-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35);
  font-family: 'Inter', sans-serif;
}
.contributors-track-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.contributors-track {
  display: flex;
  gap: 32px;
  width: max-content;
  padding: 4px 0;
  --ticker-distance: -50%;
}
.contributors-track:hover {
  animation-play-state: paused;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(var(--ticker-distance)); }
}
.contrib-ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 40px;
  padding: 6px 16px 6px 6px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.contrib-ticker-item:hover {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.2);
}
.contrib-ticker-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.contrib-ticker-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.contrib-ticker-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #8b6914);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0a0a0f;
  font-family: 'Inter', sans-serif;
}
.contrib-ticker-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.contrib-ticker-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.contrib-ticker-role {
  font-size: 0.7rem;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  opacity: 0.85;
}
.contrib-loading {
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
  padding: 8px 24px;
  font-family: 'Inter', sans-serif;
}
