/* ── Hamburger button ──────────────────────────────────── */
.hamburger-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0.65;
  transition: opacity 0.2s;
  margin-left: 4px;
}
.hamburger-btn:hover { opacity: 1; }

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--snow);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Dropdown menu ─────────────────────────────────────── */
.hamburger-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  background: var(--winter);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 190px;
  display: none;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  z-index: 200;
}
.hamburger-menu.open { display: flex; }

.hamburger-menu a,
.hamburger-menu .menu-logout {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--snow);
  text-decoration: none;
  padding: 11px 20px;
  opacity: 0.65;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: block;
}
.hamburger-menu a:hover,
.hamburger-menu .menu-logout:hover {
  opacity: 1;
  background: rgba(255,255,255,0.04);
}

.hamburger-menu .menu-logout {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
  padding-top: 14px;
  color: #C74B4E;
  opacity: 0.85;
}

/* ── Language switcher ───────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 2px;
  padding: 10px 20px 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
}
.lang-switch {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  color: var(--snow);
  padding: 5px 10px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s, background 0.15s;
}
.lang-switch:hover { opacity: 0.8; }
.lang-switch.active {
  opacity: 1;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

/* Active nav link */
.nav-active { opacity: 1 !important; }

/* ── Footer (global) ───────────────────────────────────── */
footer {
  text-align: center;
  padding: 28px 24px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(8, 21, 30, 0.45);
  border-top: 1px solid rgba(8, 21, 30, 0.1);
}
footer a {
  color: inherit;
  text-decoration: none;
}
footer a:hover {
  color: rgba(8, 21, 30, 0.8);
}

/* ── Rank badge (inline in page header) ────────────────── */
.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; }

/* ── Scan FAB (floating action button) ─────────────────── */
.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 img { width: 72px; height: 72px; border-radius: 50%; display: block; }

@media (max-width: 680px) {
  .scan-fab { bottom: 20px; right: 20px; width: 60px; height: 60px; }
  .scan-fab img { width: 60px; height: 60px; }
}

/* ── Privacy notice card (shared: install + privacy pages) ─ */
.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: var(--winter);
  color: var(--snow);
  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: var(--winter);
  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: var(--winter);
  opacity: 0.65;
  padding-left: 14px;
  position: relative;
}
.privacy-notice-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  opacity: 0.4;
}
