/* ── Kill all tap highlights / focus rings inside the nav ── */
#main-nav, #main-nav * {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
#main-nav button:focus,
#main-nav button:focus-visible,
#main-nav a:focus,
#main-nav a:focus-visible {
  outline: none;
  box-shadow: none;
}

/* ── NEW SHARED NAV ──────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 52px;
  background: var(--night, #08151E);
  border-bottom: 0.5px solid transparent;
  transition: background 0.5s cubic-bezier(0.16,1,0.3,1),
              padding 0.5s cubic-bezier(0.16,1,0.3,1),
              border-color 0.5s cubic-bezier(0.16,1,0.3,1);
}

/* "scrolled" variant — used on index.html after hero scroll, or set as default on content pages */
#main-nav.nav--scrolled {
  padding: 16px 52px;
  background: var(--snow, #FEF8F5);
  border-bottom: 0.5px solid rgba(8,21,30,0.08);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
  font-weight: 400;
  text-transform: uppercase;
  color: #FEF8F5;
  text-decoration: none;
  transition: color 0.5s ease;
}
#main-nav.nav--scrolled .nav-logo { color: #08151E; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ── Globe language switcher ──────────────────────────────── */
.lang-globe-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(254,248,245,0.55);
  background: none;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition: color 0.5s ease;
}
.lang-globe-btn:hover { color: #FEF8F5; }
#main-nav.nav--scrolled .lang-globe-btn { color: rgba(8,21,30,0.5); }
#main-nav.nav--scrolled .lang-globe-btn:hover { color: #08151E; }
.lang-globe-label { text-transform: uppercase; }

.lang-globe-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--night, #08151E);
  border: 0.5px solid rgba(254,248,245,0.1);
  padding: 8px 0;
  min-width: 160px;
  z-index: 200;
}
.lang-globe-dropdown.open { display: block; }
.lang-globe-wrap { position: relative; }
.lang-globe-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(254,248,245,0.5);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.lang-globe-option:hover { color: #FEF8F5; }

/* ── MENU text button ─────────────────────────────────────── */
.hamburger-wrap { position: relative; }

.nav-menu-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(254,248,245,0.55);
  background: none;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition: color 0.5s ease;
  padding: 0;
}
.nav-menu-btn:hover { color: #FEF8F5; }
#main-nav.nav--scrolled .nav-menu-btn { color: rgba(8,21,30,0.5); }
#main-nav.nav--scrolled .nav-menu-btn:hover { color: #08151E; }

/* ── Sidebar drawer ───────────────────────────────────────── */
.hamburger-menu {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--night, #08151E);
  border-left: 0.5px solid rgba(254,248,245,0.08);
  padding: 80px 40px 40px;
  flex-direction: column;
  gap: 4px;
  z-index: 300;
  overflow-y: auto;
}
.hamburger-menu.open { display: flex; }

.hamburger-menu a,
.hamburger-menu button.menu-logout {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(254,248,245,0.5);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 0.5px solid rgba(254,248,245,0.06);
  transition: color 0.2s;
  background: none;
  border-right: none;
  border-top: none;
  border-left: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.hamburger-menu a:hover,
.hamburger-menu button.menu-logout:hover { color: #FEF8F5; }
.hamburger-menu a.nav-active { color: rgba(254,248,245,0.9); }

.hamburger-menu button.menu-logout {
  border-top: 0.5px solid rgba(254,248,245,0.08);
  margin-top: 8px;
  color: #C74B4E;
  opacity: 0.85;
}
.hamburger-menu button.menu-logout:hover { color: #E05558; opacity: 1; }

.hamburger-menu .lang-switcher {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.hamburger-menu .lang-switch {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(254,248,245,0.35);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.hamburger-menu .lang-switch:hover { color: #FEF8F5; }

/* ── Active nav link ──────────────────────────────────────── */
.nav-active { color: rgba(254,248,245,0.9) !important; }

/* ── Scan FAB ─────────────────────────────────────────────── */
.scan-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 999;
  display: block;
  text-decoration: none;
  background: transparent;
}
.scan-fab:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.scan-fab svg { width: 72px; height: 72px; border-radius: 50%; display: block; }

/* ── Rank badge ───────────────────────────────────────────── */
.rank-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: default;
}
.rank-badge:empty { display: none; }

/* ── Privacy notice card ──────────────────────────────────── */
.privacy-notice {
  display: flex;
  gap: 16px;
  background: rgba(8,21,30,0.04);
  border: 1px solid rgba(8,21,30,0.08);
  border-radius: 12px;
  padding: 20px 22px;
}
.privacy-notice-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #08151E;
  color: #FEF8F5;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.privacy-notice-title {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #08151E;
  margin-bottom: 10px;
}
.privacy-notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
}
.privacy-notice-list li {
  font-size: 13px;
  line-height: 1.6;
  color: #08151E;
  opacity: 0.65;
  padding-left: 14px;
  position: relative;
}
.privacy-notice-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  opacity: 0.4;
}

/* ── Footer (global) ──────────────────────────────────────── */
footer {
  background: #08151E;
  padding: 28px 52px;
  border-top: 0.5px solid rgba(254,248,245,0.06);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(254,248,245,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer a {
  color: rgba(254,248,245,0.25);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: rgba(254,248,245,0.65); }
.footer-links { display: flex; gap: 24px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  #main-nav { padding: 18px 24px; }
  #main-nav.nav--scrolled { padding: 14px 24px; }
}
@media (max-width: 600px) {
  #main-nav { padding: 16px 20px; }
  #main-nav.nav--scrolled { padding: 14px 20px; }
  .scan-fab { bottom: 20px; right: 20px; width: 60px; height: 60px; }
  .scan-fab svg { width: 60px; height: 60px; }
  footer { flex-direction: column; gap: 16px; padding: 24px 20px; text-align: center; }
}
