/* Vipluck Club — UI chrome (nav, footer, tweaks) */

/* ---------- Pre-opening bar ---------- */
.preopen-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 51; background: var(--accent); color: var(--accent-ink); border-bottom: 1px solid rgba(0,0,0,0.18); font-size: 13px; }
.preopen-inner { display: flex; align-items: center; gap: 16px; padding: 10px 24px; }
.preopen-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); box-shadow: 0 0 0 4px rgba(0,0,0,0.12); flex-shrink: 0; animation: preopenPulse 2.4s ease-in-out infinite; }
@keyframes preopenPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.preopen-text { flex: 1; letter-spacing: 0.005em; }
.preopen-text strong { font-weight: 600; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; margin-right: 4px; }
.preopen-link { color: var(--accent-ink); font-weight: 600; white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.preopen-link:hover { opacity: 0.75; }
@media (max-width: 720px) { .preopen-text strong { display: block; margin-bottom: 2px; } .preopen-inner { gap: 10px; padding: 10px 16px; } }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 40px; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(7,8,11,0.75); backdrop-filter: saturate(140%) blur(18px); -webkit-backdrop-filter: saturate(140%) blur(18px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--ink-0); }
.logo-mark { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 16px var(--accent); transform: rotate(45deg); }
.logo-text-accent { color: var(--ink-2); font-weight: 400; margin-left: 2px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; color: var(--ink-1); position: relative; padding: 6px 0; transition: color .2s; }
.nav-link:hover, .nav-link.is-active { color: var(--ink-0); }
.nav-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); }
.nav-cta { margin-left: 8px; padding: 10px 16px; font-size: 13px; }

.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 16px; height: 1px; background: var(--ink-0); display: block; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 64px 16px auto 16px; flex-direction: column; align-items: stretch; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; gap: 12px; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all .25s; }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 80px 0 32px; background: var(--bg-1); margin-top: 80px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 48px; align-items: start; }
.footer-brand { max-width: 320px; }
.footer-tag { margin-top: 16px; color: var(--ink-2); font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-1); }
.footer-col .mono { margin-bottom: 6px; color: var(--ink-2); }
.footer-col a { color: var(--ink-1); transition: color .2s; }
.footer-col a:hover { color: var(--ink-0); }
.footer-line { color: var(--ink-1); font-size: 14px; }
.footer-muted { color: var(--ink-2); }
.footer-socials { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 16px; }
.footer-legal { display: flex; gap: 22px; font-size: 13px; color: var(--ink-2); }
.footer-legal a:hover { color: var(--ink-0); }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Tweaks panel ---------- */
.tweaks-panel { position: fixed; bottom: 20px; right: 20px; z-index: 60; width: 280px; background: rgba(12,14,19,0.92); backdrop-filter: blur(18px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 14px; transform: translateY(16px); opacity: 0; pointer-events: none; transition: all .3s; }
.tweaks-panel.is-open { transform: none; opacity: 1; pointer-events: auto; }
.tweaks-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tweaks-body { padding-top: 14px; display: flex; flex-direction: column; gap: 16px; }
.tweaks-row label { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 10px; }
.swatches { display: flex; gap: 6px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--ink-1); transition: all .2s; }
.swatch span { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.swatch:hover { border-color: var(--line-strong); color: var(--ink-0); }
.swatch[data-active="true"] { border-color: var(--accent); color: var(--ink-0); background: var(--accent-soft); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 70; max-width: 860px; margin: 0 auto; background: rgba(12,14,19,0.96); backdrop-filter: blur(18px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 22px 24px; transform: translateY(20px); opacity: 0; transition: all .4s cubic-bezier(.2,.8,.2,1); }
.cookie-banner.is-visible { transform: none; opacity: 1; }
.cookie-body { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 620px) {
  .cookie-body { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
}
