/* @version 2.0.2 */
/* @version 1.2.1 (generated 2025-09-01) */
/* Dark Blue Theme + Auth form styles (extends 1.2.0) */

/* Keep previous theme rules by importing nothing; we rewrite full sheet so it is self-contained. */

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --text: #E8DCC4;
  --muted: #C9B382;
  --border: rgba(212,175,55,.15);
  --primary: #D4AF37;
  --primary-700: #B8860B;
  --accent: #C9B382;
  --card: rgba(0,0,0,.85);
  --shadow: 0 8px 28px rgba(0,0,0,.6);
  --radius: 16px;
}
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: #000000;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width:100%; height:auto; display:block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3 { margin: 0 0 12px; line-height:1.2; }
h1 { font-size: clamp(32px, 4.2vw, 46px); font-weight: 900; letter-spacing:.2px; }
h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; }
h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; }

.container { max-width:1120px; margin:0 auto; padding:0 20px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top:0; z-index:50;
  background: rgba(0, 0, 0, .95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .container.inner {
  display:flex !important; align-items:center; gap:18px;
  min-height:72px;
}
/* brand + injected logo */
header.site .brand { display:inline-flex; align-items:center; gap:10px; margin-left:0 !important; color:var(--text); font-weight:800; }
header.site .brand svg { display:none !important; }
/* removed legacy brand pseudo */
/* header.site .brand::before */ header.site .brand::before {
  content:""; width:34px; height:34px; border-radius:10px;
  background:url('assets/logo.png') center/contain no-repeat;
  box-shadow: 0 6px 18px rgba(59,130,246,.35);
}
/* nav */

/* Header branding split: logo + name (non-members) */
header.site .brand-logo{ display:inline-flex; align-items:center; }
header.site .brand-logo img{ height:60px; width:200px; object-fit:cover; border-radius:8px; box-shadow: 0 8px 24px rgba(59,130,246,.4); }
header.site .brand-name{ margin-left:16px; color:var(--text); font-weight:800; font-size:1.3em; display:inline-flex; align-items:center; }
header.site .nav{ display:inline-flex; align-items:center; gap:16px; margin-left:12px; }
header.site .welcome{ color:var(--muted); padding:8px 10px; }

header.site nav { display:inline-flex; align-items:center; gap:16px; margin-left:6px; }
header.site nav a { color:#D4AF37; font-weight:600; padding:8px 10px; border-radius:10px; }
header.site nav a:hover { color:#B8860B; background:rgba(212,175,55,.08); text-decoration:none; }
/* top-right buttons - use flexbox margin-left: auto for natural alignment */
.auth-buttons, header.site .top-left {
  margin-left: auto !important;
  display:inline-flex; gap:10px;
}

/* Buttons */
.btn { display:inline-block; font-weight:800; padding:10px 16px; border-radius:12px;
  border:1px solid var(--border); background:rgba(255,255,255,.04); color:var(--text);
  box-shadow:0 1px 0 rgba(255,255,255,.03); transition:transform .06s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform:translateY(-1px); text-decoration:none; background:rgba(255,255,255,.06); }
.btn.primary { background:var(--primary); border-color:var(--primary); color:#000; box-shadow:0 8px 22px rgba(212,175,55,.35); }
.btn.primary:hover { background:var(--primary-700); }
.btn.ghost { background:rgba(255,255,255,.04); }

/* ---------- Hero ---------- */
.hero {
  background: transparent;
  padding: clamp(32px, 7vw, 80px) 0;
}
.hero .sub { color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); max-width:840px; margin-top:10px; }
.hero .cta { display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }

.badges { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.badge { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; border:1px solid var(--border);
  background:rgba(255,255,255,.04); color:var(--text); font-weight:600; font-size:13px; }
.badge.inline { border-radius:8px; }

/* KPIs */
.kpis { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; margin-top:18px; max-width:660px; }
.kpi { background: var(--card); border:1px solid var(--border); border-radius: var(--radius); padding:10px 12px; box-shadow: var(--shadow); }
.kpi .num { font-size:24px; font-weight:900; line-height:1; margin-bottom:2px; }

/* ---------- Sections ---------- */
.section { padding: clamp(36px, 6vw, 80px) 0; }
.section .card { background: var(--card); border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.section .card p { color: var(--muted); }
.section .card h3 { color: var(--text); }
.section .card hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
.grid.features { display:grid; gap:14px; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); margin-top:14px; }

/* ---------- Forms (Signup/Login) ---------- */
.auth-wrap { padding: clamp(36px, 6vw, 80px) 0; }
.auth-card { max-width: 560px; margin: 0 auto; background: var(--card); border:1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.auth-card h1 { margin-bottom: 4px; }
.auth-card p.lead { color: var(--muted); margin-bottom: 12px; }
.field { margin: 12px 0; }
.field label { display:block; font-weight:700; margin-bottom:6px; color: var(--muted); }
.input { width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--border);
  background: rgba(255,255,255,.04); color: var(--text); }
.input::placeholder { color: #8aa2c0; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.25); }
.form-actions { margin-top: 14px; }
.form-actions .btn { width: 100%; }
.form-msg { margin-top: 10px; color: var(--muted); font-weight: 700; }
.form-msg.error { color: #fca5a5; }
.form-footer { margin-top: 14px; color: var(--muted); text-align: center; }
.form-footer a { color: #c7d2fe; font-weight: 800; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: rgba(255,255,255,.02); border-top:1px solid var(--border); padding:20px 0; color:var(--muted); }
.footer a { color: inherit; font-weight:600; }
.footer a:hover { color: var(--text); text-decoration:none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  header.site nav { display:none; }
  .kpis { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2,1fr); }
  header.site .top-left { right: 12px; }
  header.site .container.inner { min-height: 64px; }
}

/* ---------- Non-flex fallback ---------- */
@supports not (display:flex) {
  header.site .container.inner { display:block !important; }
  header.site .top-left { position: static !important; float: right !important; margin-left: 12px; }
}


/* --- Merged header alignment fixes --- */
/* @version 1.0.1 (generated 2025-09-01) */
/* Global header fix: push Sign up | Login to the right on ALL pages */

/* 1) Flex-based layouts */
header nav, .site-header nav, #site-header nav, nav.top-nav, .top-nav, header .nav, header > nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

/* brand/logo stays left */
nav .brand, nav .logo, .nav-left { display: inline-flex; align-items: center; gap: 8px; }

/* If there's an .auth-buttons wrapper, shove it to the right */
.auth-buttons { margin-left: auto !important; display: inline-flex; gap: 10px; }

/* Fallback for when there's no wrapper: move first auth link to the right in flex containers */
header nav a[href*="login" i],
header nav a[href*="signin" i],
header nav a[href*="sign-in" i],
header nav a[href*="signup" i],
header nav a[href*="register" i] { margin-left: auto; }

/* 2) Non-flex fallback: float the auth links right so they separate from brand/menu */
header a[href*="login" i],
header a[href*="signin" i],
header a[href*="sign-in" i],
header a[href*="signup" i],
header a[href*="register" i] { float: right; margin-left: 12px; }

header::after, nav::after { content: ""; display: block; clear: both; }

/* Basic button styling (non-intrusive) */
.btn, .btn-outline, .btn-primary {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #d1d5db;
}
.btn-primary { background: #D4AF37; border-color: #D4AF37; color: #000; }


/* @version 1.0.0 */
/* Footer flex helpers */
.footer .footer-flex { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.footer .footer-links { display:flex; gap:12px; }


/* @version 2.0.1 additions: password visibility toggle */
.field { position: relative; }
.input.with-eye { padding-right: 42px; }
.pw-toggle { position:absolute; right:12px; top: calc(50% + 12px); transform: translateY(-50%); border:0; background:transparent; cursor:pointer; padding:6px; border-radius:8px; opacity:.85; }
.pw-toggle:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.pw-toggle:hover { opacity: 1; }
.pw-toggle svg { width:20px; height:20px; fill: currentColor; color: var(--muted); }
