/* ═══════════════════════════════════════════════════════════════════════════
   World Wide Band — main.css
   Analog Studio aesthetic · Purple + Turquoise palette
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds — deep blacks for studio feel */
  --bg:         #0a0a10;
  --bg-2:       #14141c;
  --bg-3:       #1d1d28;
  --bg-rack:    linear-gradient(180deg, #1f1f2a, #14141c);
  --bg-rack-h:  linear-gradient(180deg, #25253200, #1a1a2400);

  --border:     rgba(255,255,255,0.06);
  --border-2:   rgba(255,255,255,0.14);
  --border-3:   #000;   /* hard black separator (analog look) */
  --inset-top:  inset 0 1px 0 rgba(255,255,255,0.06);

  /* Brand colors — purple primary + turquoise secondary */
  --accent:       #a855f7;   /* purple */
  --accent-2:     #c084fc;   /* purple light */
  --accent-deep:  #7e22ce;   /* purple dark — hover */
  --accent-glow:  rgba(168,85,247,0.45);

  --cyan:         #2dd4bf;   /* turquoise */
  --cyan-2:       #5eead4;   /* turquoise light */
  --cyan-deep:    #14b8a6;
  --cyan-glow:    rgba(45,212,191,0.4);

  /* Status colors */
  --green:      #4ade80;
  --red:        #ef4444;
  --amber:      #facc15;   /* used very sparingly */

  /* Text — improved contrast over previous palette */
  --text:       #ecedf3;
  --text-2:     #b0b3c2;
  --text-3:     #7e8398;

  /* Geometry */
  --radius:     6px;        /* tighter — analog look */
  --radius-lg:  10px;
  --shadow:     0 6px 24px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.05) inset;

  /* Typography */
  --font-display: 'Audiowide', 'Heebo', sans-serif;
  --font-body:    'Rajdhani', 'Heebo', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; scrollbar-gutter: stable; }

/* ── Custom scrollbars ──────────────────────────────────────────────────────── */
::-webkit-scrollbar              { width: 6px; height: 6px; }
::-webkit-scrollbar-track        { background: #0a0a10; }
::-webkit-scrollbar-thumb        { background: linear-gradient(180deg, #7e22ce, #a855f7); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: linear-gradient(180deg, #a855f7, #2dd4bf); }
::-webkit-scrollbar-corner       { background: #0a0a10; }
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: #7e22ce #0a0a10; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Subtle horizontal scanlines — adds analog studio feel without distraction */
  background-image:
    radial-gradient(ellipse at top, rgba(168,85,247,0.06), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(45,212,191,0.04), transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; }

a { color: var(--cyan-2); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--cyan); }

img { max-width: 100%; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { flex: 1; padding: 2rem 0; }

/* ── Navbar — Brushed Metal Rack ───────────────────────────────────────────── */
.navbar {
  background: linear-gradient(180deg, #1f1f2a 0%, #15151e 100%);
  border-bottom: 1px solid #000;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 2px 12px rgba(0,0,0,0.4);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  padding: 0 2rem;
  display: flex; align-items: center;
  height: 64px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  display: flex; align-items: center; gap: 12px;
  letter-spacing: 0.03em;
}
.nav-logo {
  height: 44px; width: auto; display: block;
  filter: drop-shadow(0 0 8px rgba(45,212,191,0.4));
  transition: filter 0.25s;
}
.nav-brand:hover .nav-logo {
  filter: drop-shadow(0 0 14px rgba(45,212,191,0.7)) drop-shadow(0 0 4px rgba(168,85,247,0.5));
}
.nav-brand-text { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.nav-brand-text em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 560px) { .nav-brand-text { display: none; } }

.nav-links { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.nav-link {
  color: var(--text-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.15s;
  position: relative;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
}
.nav-link i { font-size: 1rem; color: var(--cyan); }
.nav-link-muted { color: var(--text-3); text-transform: none; letter-spacing: 0; font-size: 0.85rem; }

.badge-dot {
  position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px;
  background: var(--accent); color: #fff;
  border-radius: 50%; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 8px var(--accent-glow);
  font-family: var(--font-mono);
}

/* ── Flash Messages ────────────────────────────────────────────────────────── */
.flash-container { max-width: 1100px; margin: 0 auto 1rem; padding: 0 1.5rem; }
.flash {
  padding: 12px 16px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem; margin-bottom: 8px;
  font-family: var(--font-body); font-weight: 500;
  border: 1px solid;
  box-shadow: var(--inset-top);
}
.flash i { font-size: 1.1rem; }
.flash-success { background: rgba(74,222,128,0.08);  border-color: rgba(74,222,128,0.35); color: #86efac; }
.flash-error   { background: rgba(239,68,68,0.08);   border-color: rgba(239,68,68,0.35);  color: #fca5a5; }
.flash-info    { background: rgba(168,85,247,0.08);  border-color: rgba(168,85,247,0.35); color: var(--accent-2); }

/* ── Buttons — Console hardware feel ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; border: 1px solid #000;
  transition: transform 0.08s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 2px 0 rgba(0,0,0,0.4),
    0 3px 6px rgba(0,0,0,0.3);
}
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 1px 0 rgba(0,0,0,0.4); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  border-color: var(--accent-deep);
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 2px 0 rgba(0,0,0,0.4),
    0 0 18px var(--accent-glow);
}

.btn-cyan {
  background: linear-gradient(180deg, var(--cyan-2), var(--cyan));
  color: #042f2e;
  border-color: var(--cyan-deep);
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}
.btn-cyan:hover {
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 2px 0 rgba(0,0,0,0.4),
    0 0 18px var(--cyan-glow);
}

.btn-outline {
  background: linear-gradient(180deg, #2a2a35, #1a1a24);
  border-color: #000;
  color: var(--text-2);
}
.btn-outline:hover {
  background: linear-gradient(180deg, #32323e, #1f1f2a);
  color: var(--text);
}

.btn-danger {
  background: linear-gradient(180deg, #f87171, #dc2626);
  color: #fff; border-color: #7f1d1d;
}
.btn-success {
  background: linear-gradient(180deg, #6ee7a3, #16a34a);
  color: #042713; border-color: #14532d;
}
.btn-gold {  /* legacy name kept for compatibility — now turquoise */
  background: linear-gradient(180deg, var(--cyan-2), var(--cyan));
  color: #042f2e; border-color: var(--cyan-deep);
}
.btn-sm  { padding: 6px 14px; font-size: 0.78rem; letter-spacing: 0.08em; }
.btn-lg  { padding: 14px 30px; font-size: 1rem; }
.btn-icon { padding: 9px; }

/* ── Cards — Rack panel feel ───────────────────────────────────────────────── */
.card {
  background: var(--bg-rack);
  border: 1px solid var(--border-3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow:
    var(--inset-top),
    0 4px 16px rgba(0,0,0,0.35);
  position: relative;
}
.card-sm { padding: 1rem; }
.card-hover { transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.card-hover:hover {
  border-color: #000;
  transform: translateY(-2px);
  box-shadow:
    var(--inset-top),
    0 8px 24px rgba(0,0,0,0.5),
    0 0 0 1px rgba(168,85,247,0.18);
}

/* ── Forms — Recessed inputs ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 8px;
}
.form-control {
  width: 100%; padding: 11px 14px;
  background: #0a0a10;
  border: 1px solid #000;
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4), 0 0 0 3px rgba(168,85,247,0.18);
}
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ── Instrument Picker — analog tile look ─────────────────────────────────── */
.instrument-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px; margin-top: 8px;
}
.instrument-option { display: none; }
.instrument-label {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 14px 8px;
  background: linear-gradient(180deg, #25252f, #181822);
  border: 1px solid #000;
  border-radius: var(--radius); cursor: pointer;
  text-align: center; font-size: 0.78rem; color: var(--text-2);
  font-family: var(--font-body); font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: var(--inset-top), 0 2px 0 rgba(0,0,0,0.3);
  transition: all 0.15s;
}
.instrument-label i { font-size: 1.7rem; color: var(--text-3); transition: color 0.15s, text-shadow 0.15s; }
.instr-icon-img {
  width: 40px; height: 40px; object-fit: contain;
  filter: invert(1) sepia(1) saturate(1.5) hue-rotate(230deg) brightness(0.85);
  transition: filter 0.15s;
}
.instrument-label:hover .instr-icon-img {
  filter: invert(1) sepia(1) saturate(3) hue-rotate(150deg) brightness(1.1);
}
.instrument-option:checked + .instrument-label .instr-icon-img {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(230deg) brightness(1.2) drop-shadow(0 0 5px var(--accent-glow));
}
.instr-icon-img.accent-display {
  width: 16px; height: 16px;
  filter: invert(1) sepia(1) saturate(5) hue-rotate(230deg) brightness(1.1);
}
.instr-icon-img.accent-display-lg {
  width: 22px; height: 22px;
  filter: invert(1) sepia(1) saturate(5) hue-rotate(230deg) brightness(1.2) drop-shadow(0 0 4px rgba(168,85,247,0.5));
}
.instrument-label:hover {
  background: linear-gradient(180deg, #2c2c38, #1d1d28);
  color: var(--text);
}
.instrument-label:hover i { color: var(--cyan); }
.instrument-option:checked + .instrument-label {
  background: linear-gradient(180deg, rgba(168,85,247,0.25), rgba(168,85,247,0.08));
  border-color: var(--accent);
  color: var(--text);
  box-shadow:
    var(--inset-top),
    0 0 0 1px var(--accent-glow),
    0 0 14px var(--accent-glow);
}
.instrument-option:checked + .instrument-label i { color: var(--accent-2); text-shadow: 0 0 8px var(--accent-glow); }

/* ── Project Card ──────────────────────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
/* ── Project card ────────────────────────────────────────────────────────── */
.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  cursor: pointer;
  transition: border-color .15s, transform .12s, box-shadow .15s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168,85,247,.15);
}
.demo-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  background: rgba(124,58,237,.88);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
  line-height: 1.6;
}
/* Inner <a> for div-based cards — fills remaining space */
.project-card > a[href] {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 0;
}
/* Title row — fixed height, centered */
.proj-card-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem; color: var(--text);
  height: 2.4rem;
  flex-shrink: 0;
  overflow: hidden;
}
.proj-card-title-row > span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Body row — flex:1, cover spans it via absolute */
.proj-card-body {
  position: relative;
  flex: 1;
  min-height: 80px;
  overflow: hidden;
}
.proj-card-body.has-cover {
  padding-right: 135px;
}
.project-card-meta {
  font-size: .8rem; color: var(--text-3);
  display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
  margin-bottom: .4rem;
}
.proj-card-desc {
  font-size: .78rem; color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: .3rem;
}
/* Cover — absolute, flush to right card edge, spans body height */
.proj-card-cover-wrap {
  position: absolute;
  right: -0.85rem;
  top: 0;
  bottom: 0;
  width: 140px;
  overflow: hidden;
}
.proj-card-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  pointer-events: none;
}
/* Member chips — fixed height, centered bottom row */
.proj-members-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  height: 2rem;
  min-height: 0;
  flex-shrink: 0;
  margin-top: 0.4rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.proj-member-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep, #7e22ce), var(--cyan-deep, #14b8a6));
  font-family: var(--font-display, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.12);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  flex-shrink: 0;
}
.proj-member-chip:hover {
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(168,85,247,0.5);
  z-index: 1;
}

.project-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid;
}
.project-status-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 6px currentColor;
}
.status-open      { background: rgba(74,222,128,0.12);  color: #86efac; border-color: rgba(74,222,128,0.4); }
.status-recording { background: rgba(239,68,68,0.12);   color: #fca5a5; border-color: rgba(239,68,68,0.4); }
.status-mixing    { background: rgba(45,212,191,0.12);  color: var(--cyan-2); border-color: rgba(45,212,191,0.4); }
.status-done      { background: rgba(168,85,247,0.12);  color: var(--accent-2); border-color: rgba(168,85,247,0.4); }

/* ── Member Avatars ────────────────────────────────────────────────────────── */
.avatar-row { display: flex; }
.avatar-row .avatar:not(:first-child) { margin-left: -10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #2a2a35, #1a1a24);
  border: 2px solid var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.78rem;
  color: var(--cyan-2);
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Section headings ──────────────────────────────────────────────────────── */
.section-heading {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 12px;
  color: var(--text);
}
.section-heading::before {
  content: ''; width: 18px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  box-shadow: 0 0 6px var(--accent-glow);
}
.section-heading i { color: var(--accent); }

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: 10px 20px;
  background: none; border: none;
  color: var(--text-2);
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-glow);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  text-align: center; padding: 2rem 0;
  color: var(--text-3); font-size: 0.78rem;
  font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  border-top: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  margin-top: auto;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  max-width: 800px; margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 22px;
  padding: 6px 16px;
  border: 1px solid rgba(45,212,191,0.4);
  border-radius: 4px;
  background: rgba(45,212,191,0.05);
  box-shadow: inset 0 0 12px rgba(45,212,191,0.06), 0 0 14px rgba(45,212,191,0.18);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 3.2rem; font-weight: 400;
  letter-spacing: 0.01em; line-height: 1.1;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-2), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 14px var(--accent-glow));
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Hero — large brand logo block (for landing page) ──────────────────────── */
.hero-logo {
  width: 210px; height: 210px;
  display: block; margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 22px rgba(45,212,191,0.5)) drop-shadow(0 0 8px rgba(168,85,247,0.3));
  animation: heroLogoGlow 4s ease-in-out infinite;
}
@keyframes heroLogoGlow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(45,212,191,0.45)) drop-shadow(0 0 6px rgba(168,85,247,0.25)); }
  50%      { filter: drop-shadow(0 0 28px rgba(45,212,191,0.65)) drop-shadow(0 0 12px rgba(168,85,247,0.4)); }
}

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.text-muted   { color: var(--text-2); }
.text-sm      { font-size: 0.85rem; }
.text-xs      { font-size: 0.75rem; }
.text-center  { text-align: center; }
.text-mono    { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display); letter-spacing: 0.04em; }
.text-cyan    { color: var(--cyan); }
.text-accent  { color: var(--accent-2); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .hero-logo { width: 150px; height: 150px; }
}

/* ── Range Slider — Fader styled ──────────────────────────────────────────── */
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: linear-gradient(180deg, #000, #14141c);
  border: 1px solid #000;
  border-radius: 2px; outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #6a6a78, #2a2a35);
  border: 1px solid #000;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 1px 3px rgba(0,0,0,0.6);
}
input[type=range]::-moz-range-thumb {
  width: 16px; height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #6a6a78, #2a2a35);
  border: 1px solid #000;
  cursor: pointer;
}

/* ── Select ────────────────────────────────────────────────────────────────── */
select.form-control {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232dd4bf' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

/* ── LED indicator (utility) ──────────────────────────────────────────────── */
.led {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  vertical-align: 2px;
  box-shadow: 0 0 6px currentColor, inset 0 0 2px rgba(0,0,0,0.3);
}
.led-green { color: var(--green); background: var(--green); }
.led-red   { color: var(--red);   background: var(--red);   }
.led-cyan  { color: var(--cyan);  background: var(--cyan);  animation: ledPulse 2s ease-in-out infinite; }
.led-purple{ color: var(--accent); background: var(--accent); }
@keyframes ledPulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.5; }
}

/* ── Console label (small monospace caption) ──────────────────────────────── */
.console-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.console-label::before {
  content: ''; width: 12px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 4px var(--cyan);
}

/* ══ Invite search UI ════════════════════════════════════════════════════════ */
.invite-search-row {
  display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.invite-search-row .form-control { flex: 1; min-width: 140px; }

/* Results: 3-row grid, horizontal scroll with arrow */
.invite-results-outer {
  position: relative; overflow: hidden; margin-top: 0.5rem;
  width: 100%; max-width: 100%;
}
.invite-results-track {
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 0.35rem 0.5rem;
  transition: transform 0.3s ease;
}
.invite-scroll-right {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-deep); border: none; cursor: pointer;
  color: #fff; font-size: 1rem; display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 0 8px rgba(168,85,247,0.4);
  z-index: 2;
}
.invite-scroll-right.visible { display: flex; }
.invite-scroll-left {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-deep); border: none; cursor: pointer;
  color: #fff; font-size: 1rem; display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 0 8px rgba(168,85,247,0.4);
  z-index: 2;
}
.invite-scroll-left.visible { display: flex; }
.invite-user-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  min-width: 0; overflow: hidden;
}
.invite-user-initials {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-deep), var(--cyan-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  color: #fff; text-transform: uppercase;
}
.invite-user-name { flex: 1; min-width: 0; font-size: 0.88rem; font-weight: 600; color: var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.invite-avatar-wrap { position: relative; flex-shrink: 0; display: flex; align-items: center; }
.invite-avatar-img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--border);
  cursor: default; display: block;
}
.invite-avatar-placeholder {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-3); display: block;
  border: 1.5px solid var(--border);
}
.invite-bio-tooltip {
  display: none;
  position: fixed;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.65rem 0.75rem;
  width: 320px; min-height: 74px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  z-index: 9999; pointer-events: none;
  flex-direction: row; gap: 0.65rem; align-items: flex-start;
}
.invite-bio-tooltip-img {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 7px; object-fit: cover;
  border: 1.5px solid var(--border);
}
.invite-bio-tooltip-placeholder {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 7px; background: var(--bg-3);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase;
}
.invite-bio-tooltip-text {
  flex: 1; min-width: 0;
  font-size: 0.81rem; color: var(--text-3); line-height: 1.55;
  white-space: normal; word-break: break-word;
}
.invite-bio-tooltip-name {
  font-size: 0.83rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.25rem; display: block;
}
/* tooltip shown via JS (position: fixed) — no CSS hover needed */
.invite-arrow-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-deep); border: none; cursor: pointer;
  color: #fff; font-size: 1rem;
  transition: background 0.15s, transform 0.12s;
}
.invite-arrow-btn:hover { background: var(--accent); transform: scale(1.1); }

/* ── Profile passport photo ──────────────────────────────────────────────── */
.profile-passport {
  width: 80px; height: 80px; border-radius: 10px; object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.profile-passport-placeholder {
  width: 80px; height: 80px; border-radius: 10px;
  background: var(--bg-3); border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 1.6rem; cursor: pointer;
  flex-shrink: 0;
}
.profile-passport-placeholder:hover { border-color: var(--accent); color: var(--accent); }

/* ── Onboarding ─────────────────────────────────────────────────────────────── */

/* Dark overlay behind everything */
.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 9980;
  background: rgba(10, 10, 20, 0.80);
  animation: ob-fade 0.28s ease;
  pointer-events: all;
}
@keyframes ob-fade { from { opacity:0 } to { opacity:1 } }

/* Spotlight ring on highlighted element */
.ob-spot {
  box-shadow: 0 0 0 3px var(--accent), 0 0 28px rgba(168,85,247,.55) !important;
  border-radius: var(--radius-lg, 10px) !important;
  transition: box-shadow .2s;
}

/* Tooltip bubble */
.ob-bubble {
  position: fixed;
  z-index: 9992;
  max-width: 270px;
  min-width: 200px;
  background: linear-gradient(140deg, #1c0a32 0%, #0d0d1a 100%);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 1rem 1.2rem 0.85rem;
  box-shadow: 0 8px 40px rgba(168,85,247,.35), 0 2px 8px rgba(0,0,0,.6);
  font-family: var(--font-display, sans-serif);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text);
  animation: ob-pop .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: all;
}
.ob-bubble--center {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  max-width: 340px;
  text-align: center;
}
@keyframes ob-pop {
  from { opacity:0; transform:scale(.82) }
  to   { opacity:1; transform:scale(1)   }
}
.ob-bubble--center { animation: ob-pop-c .32s cubic-bezier(.34,1.56,.64,1); }
@keyframes ob-pop-c {
  from { opacity:0; transform:translate(-50%,-50%) scale(.82) }
  to   { opacity:1; transform:translate(-50%,-50%) scale(1)   }
}
.ob-text { margin: 0 0 0.75rem; }
.ob-got-it {
  display: inline-block;
  padding: 0.4rem 1.05rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-display, sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--accent) 0%, #7e22ce 100%);
  transition: transform .12s, box-shadow .12s;
}
.ob-got-it:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(168,85,247,.45); }

/* Animated directional arrows */
.ob-arrow {
  position: absolute;
  z-index: 9991;
  font-size: 2rem;
  color: var(--accent);
  pointer-events: none;
  line-height: 1;
  text-shadow: 0 0 12px rgba(168,85,247,.7);
}
.ob-arrow--right { animation: ob-bx .65s ease-in-out infinite alternate; }
.ob-arrow--right::after { content: '→'; }
.ob-arrow--down  { animation: ob-by .65s ease-in-out infinite alternate; }
.ob-arrow--down::after  { content: '↓'; }
@keyframes ob-bx { from{transform:translateX(0)} to{transform:translateX(10px)} }
@keyframes ob-by { from{transform:translateY(0)} to{transform:translateY(10px)} }

/* Mic calibration modal */
.ob-mic-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 9995;
  width: min(380px, 92vw);
  background: linear-gradient(140deg, #1c0a32 0%, #0d0d1a 100%);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 2rem 2.2rem 1.75rem;
  box-shadow: 0 14px 60px rgba(168,85,247,.42);
  text-align: center;
  animation: ob-pop-c .35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: all;
}
.ob-mic-icon  { font-size: 2.8rem; margin-bottom: .5rem; }
.ob-mic-title {
  font-family: var(--font-display, sans-serif);
  font-size: 1.2rem; color: var(--text); margin: 0 0 .7rem;
}
.ob-mic-desc {
  font-size: .85rem; color: var(--text-2);
  line-height: 1.65; margin-bottom: 1.35rem;
}
.ob-mic-note { display:block; font-size:.76rem; color:var(--text-3); margin-top:.5rem; }
.ob-mic-actions { display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; }
.ob-mic-btn {
  display: inline-block;
  padding: .45rem 1.2rem;
  border-radius: 9px;
  font-family: var(--font-display, sans-serif);
  font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: transform .12s, box-shadow .12s;
  text-decoration: none;
}
.ob-mic-btn:hover { transform: scale(1.05); }
.ob-mic-btn--primary {
  background: linear-gradient(90deg, var(--accent) 0%, var(--cyan) 100%);
  color: #fff; border: none;
}
.ob-mic-btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-3);
}

/* ── Projects page — fixed sidebar (does not affect main content width) ──── */
.projects-sidebar {
  position: fixed;
  right: 1rem;
  top: 72px;
  width: 190px;
  z-index: 100;
}

@media (max-width: 1380px) {
  .projects-sidebar { display: none; }
}

/* ── Leaderboard card ─────────────────────────────────────────────────────── */
.leaderboard-card {
  background: linear-gradient(160deg, #1a0a2e 0%, #0d0d1a 100%);
  border: 1px solid rgba(168,85,247,.25);
  border-radius: 16px;
  padding: 1.1rem 1rem 0.8rem;
  box-shadow: 0 4px 24px rgba(168,85,247,.08);
}
.leaderboard-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.9rem;
}
.leaderboard-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  transition: background .15s;
  font-size: 0.88rem;
}
.leaderboard-row:hover { background: rgba(168,85,247,.08); }
.leaderboard-top-1 { background: rgba(255,215,0,.06); }
.leaderboard-top-2 { background: rgba(192,192,192,.05); }
.leaderboard-top-3 { background: rgba(205,127,50,.05); }
.leaderboard-medal { font-size: 1.15rem; flex-shrink: 0; width: 1.6rem; text-align: center; }
.leaderboard-rank  {
  display: inline-block; width: 1.25rem; text-align: center;
  font-size: 0.78rem; font-weight: 700; color: var(--text-3);
}
.leaderboard-name {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.leaderboard-name:hover { color: var(--accent); }
.leaderboard-count {
  font-size: 0.82rem; font-weight: 700;
  color: var(--cyan); flex-shrink: 0;
}
.leaderboard-count-label { font-weight: 400; color: var(--text-3); font-size: 0.75rem; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE / RESPONSIVE FOUNDATION  (Phase 0b — added 2026-07-10)
   Desktop-first + ADDITIVE. Every rule below is either the hidden hamburger
   (display:none on desktop) or scoped inside a max-width media query, so wide
   (desktop) screens are NEVER affected. Site-wide breakpoints:
     1024px = tablet · 768px = mobile/hamburger · 480px = small phone
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop, revealed ≤768px. */
.nav-toggle {
  display: none;
  position: relative;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.04); border-color: var(--border-2); }

@media (max-width: 768px) {
  /* ── Navbar → hamburger drawer ── */
  .nav-toggle { display: flex; margin-left: auto; width: 44px; height: 44px; }
  .nav-inner  { padding: 0 1rem; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin-left: 0;
    padding: 0.5rem 1rem 0.9rem;
    background: linear-gradient(180deg, #1f1f2a 0%, #15151e 100%);
    border-bottom: 1px solid #000;
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link,
  .nav-links .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 0.95rem;
    min-height: 44px;                 /* comfortable touch target */
  }
  .nav-links .badge-dot { position: static; margin-left: auto; }

  /* ── Global mobile guards ── */
  body { overflow-x: clip; }          /* never scroll sideways; clip (not hidden) keeps sticky nav working */
  .container       { padding: 0 1rem; }
  .main-content    { padding: 1.25rem 0; }
  .flash-container { padding: 0 1rem; }

  /* Wide content scrolls inside its own box instead of stretching the page */
  table, pre { display: block; max-width: 100%; overflow-x: auto; }
}

@media (max-width: 480px) {
  html       { font-size: 15px; }     /* slightly smaller base on tiny screens */
  .nav-logo  { height: 38px; }
}

/* Landing hero — remove horizontal-overflow sources on mobile.
   Both override inline styles (hence !important); desktop keeps the inline
   nowrap + scale untouched because these rules live inside the media query. */
@media (max-width: 768px) {
  .hero h1 span             { white-space: normal !important; }   /* let the long title wrap instead of overflowing right */
  .hero .text-center img    { transform: none !important; max-width: 82% !important; }  /* drop scale(1.5) that pushed past the viewport */

  /* .container already pads 1rem each side — trim the hero's own side padding
     so its content isn't squeezed into a doubly-padded narrow strip.
     Tighter top/bottom + smaller gap under the logo pull the carousel up into
     view sooner on a phone. */
  .hero                { padding: 1rem 0.5rem 1.25rem; }
  .hero > .text-center { margin-bottom: 0.6rem !important; }   /* gap under the logo (inline 1.5rem) */
  .hero p              { font-size: 1rem; }
  .section-heading     { font-size: 1.05rem; }   /* keeps "Completed projects" + View all on one row */

  /* "How it works" cards — nudge both the title and the description up a bit
     so they read comfortably on a phone (h3 uses an inline 1rem → needs !important). */
  .grid-3 .card-sm h3 { font-size: 1.15rem !important; }
  .grid-3 .card-sm p  { font-size: 0.95rem; }
}
