/* ── WargameFinder · Shared styles ──────────────────────────────────────── */

/* ── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --bg-void:        #06080c;
  --bg-deep:        #0b0f16;
  --bg-panel:       #10151e;
  --bg-panel-hi:    #171d2a;
  --bg-card:        rgba(16,21,30,0.72);
  --bg-hover:       rgba(255,255,255,0.04);
  --border:         rgba(255,255,255,0.06);
  --border-hi:      rgba(255,255,255,0.1);
  --border-accent:  rgba(245,165,36,0.18);
  --text-primary:   #eaeef6;
  --text-secondary: #8e99b0;
  --text-muted:     #515c74;
  --accent:         #f5a524;
  --accent-hi:      #ffc044;
  --accent-glow:    rgba(245,165,36,0.3);
  --accent-dim:     rgba(245,165,36,0.08);
  --discord:        #5865f2;
  --win:            #34d399;
  --loss:           #f43f5e;
  --font-display:   'Chakra Petch', 'Segoe UI', sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Courier New', monospace;
  --max-w:          1600px;
  --gutter:         clamp(20px, 4vw, 48px);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg-void); scroll-behavior: smooth; }
body { color: var(--text-primary); font-family: var(--font-body); min-height: 100vh; overflow-x: hidden; }
input, textarea, button { font-family: inherit; }

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Keyframes ─────────────────────────────────────────────────────────── */
@keyframes drift1  { 100% { transform: translate(8vw, 6vw) scale(1.15); } }
@keyframes drift2  { 100% { transform: translate(-6vw, -4vw) scale(1.1); } }
@keyframes fadeIn  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.96) translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Aurora background ─────────────────────────────────────────────────── */
.aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(120px); }
.aurora-blob-1 {
  width: 50vw; height: 50vw; opacity: 0.12;
  background: radial-gradient(circle, rgba(245,165,36,0.4), transparent 60%);
  top: -20vw; left: -5vw;
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora-blob-2 {
  width: 40vw; height: 40vw; opacity: 0.08;
  background: radial-gradient(circle, rgba(88,101,242,0.3), transparent 60%);
  bottom: -15vw; right: -5vw;
  animation: drift2 32s ease-in-out infinite alternate;
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,8,12,0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; height: 60px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.brand-icon img { width: 36px; height: 36px; object-fit: contain; display: block; border-radius: 10px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; color: var(--text-primary); text-transform: uppercase; }
.brand-name span { color: var(--accent); }

.nav-tabs { display: flex; align-items: center; gap: 4px; justify-content: center; }
.nav-tab {
  padding: 7px 16px; border-radius: 8px;
  font-family: var(--font-display); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent; background: transparent;
  color: var(--text-muted); text-decoration: none; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.nav-tab:hover { color: var(--text-secondary); background: rgba(255,255,255,0.03); }
.nav-tab.active { background: var(--accent-dim); color: var(--accent); border-color: var(--border-accent); }

.nav-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.nav-link-subtle {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; color: var(--text-muted); text-decoration: none;
  padding: 6px 10px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-link-subtle:hover { color: var(--text-secondary); background: rgba(255,255,255,0.04); }
.nav-link-subtle svg { opacity: 0.7; }

.login-btn {
  padding: 8px 16px; border-radius: 10px;
  background: rgba(88,101,242,0.1); border: 1px solid rgba(88,101,242,0.25);
  color: var(--discord); font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; cursor: pointer; text-decoration: none;
  transition: all 0.15s;
}
.login-btn:hover { background: rgba(88,101,242,0.18); }

/* ── Notifications ─────────────────────────────────────────────────────── */
.notif-wrap { position: relative; }
.notif-btn {
  position: relative; padding: 8px;
  background: none; border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-muted);
  cursor: pointer; display: grid; place-items: center; transition: all 0.15s;
}
.notif-btn:hover { border-color: var(--border-hi); color: var(--text-secondary); background: rgba(255,255,255,0.02); }
.notif-dot {
  display: none; position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--loss); border: 2px solid var(--bg-void);
}
.notif-dot.visible { display: block; }

.notif-panel {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  width: 380px; max-height: 480px; overflow-y: auto;
  background: var(--bg-panel); border: 1px solid var(--border-hi);
  border-radius: 16px; z-index: 500;
  box-shadow: 0 16px 64px rgba(0,0,0,0.6);
}
.notif-panel.open { display: block; animation: fadeIn 0.15s ease; }
.notif-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px 14px; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.04em; color: var(--text-secondary); text-transform: uppercase;
}
.notif-mark-all {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-size: 0.68rem; font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.04em; padding: 0;
}
.notif-list { padding: 4px 0; }
.notif-item {
  display: flex; gap: 12px; padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  text-decoration: none; color: inherit; transition: background 0.12s; cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,0.02); }
.notif-item.unread { background: rgba(245,165,36,0.03); }
.notif-item-indicator { width: 8px; padding-top: 6px; flex-shrink: 0; }
.notif-unread-pip { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px rgba(245,165,36,0.4); }
.notif-item-content { flex: 1; min-width: 0; }
.notif-item-title { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.notif-item-body { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 4px; }
.notif-item-time { font-size: 0.66rem; color: var(--text-muted); }
.notif-empty { padding: 32px 16px; text-align: center; font-size: 0.8rem; color: var(--text-muted); }

/* ── Profile pill / Avatar ─────────────────────────────────────────────── */
.profile-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 14px 4px 4px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer; text-decoration: none; transition: all 0.15s;
}
.profile-pill:hover { border-color: var(--border-hi); background: rgba(255,255,255,0.05); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.7rem; color: #0d1117; flex-shrink: 0;
}
.profile-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.76rem; letter-spacing: 0.03em; color: var(--text-primary);
}

/* ── Guild tag button (navbar) ─────────────────────────────────────────── */
.guild-tag-btn {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted);
  background: none; border: 1px solid transparent; border-radius: 8px;
  padding: 5px 10px; cursor: pointer; transition: all 0.15s;
  white-space: nowrap; text-decoration: none; display: inline-block;
}
.guild-tag-btn:hover { color: var(--text-secondary); border-color: var(--border); }
.guild-tag-btn.active { color: var(--accent); border-color: var(--border-accent); background: var(--accent-dim); }

/* ── Main content ──────────────────────────────────────────────────────── */
.main {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: 36px var(--gutter) 80px;
}

/* ── Typography ────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.28em; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px; background: var(--accent); opacity: 0.6;
}
.page-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  text-transform: uppercase; margin-bottom: 24px;
}
.page-title .accent { color: var(--accent); }
.page-subtitle { color: var(--text-secondary); font-size: 0.9rem; }

/* ── Format chip ───────────────────────────────────────────────────────── */
.format-chip {
  font-family: var(--font-mono); font-size: 0.62rem;
  padding: 2px 9px; border-radius: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary); white-space: nowrap; display: inline-block;
}

/* ── Guild tag pills ───────────────────────────────────────────────────── */
.guild-tag {
  font-family: var(--font-mono); font-size: 0.58rem;
  padding: 2px 9px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; display: inline-block;
}
.gt-casual        { background: rgba(52,211,153,0.08);  border: 1px solid rgba(52,211,153,0.25);  color: #34d399; }
.gt-semi-hardcore { background: rgba(245,165,36,0.08);  border: 1px solid rgba(245,165,36,0.3);   color: var(--accent); }
.gt-hardcore      { background: rgba(244,63,94,0.08);   border: 1px solid rgba(244,63,94,0.28);   color: var(--loss); }
.gt-competitive   { background: rgba(88,101,242,0.08);  border: 1px solid rgba(88,101,242,0.28);  color: var(--discord); }
.gt-training      { background: rgba(148,163,184,0.06); border: 1px solid rgba(148,163,184,0.2);  color: #94a3b8; }

/* ── Region pills ──────────────────────────────────────────────────────── */
.region-pill {
  font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.1em; padding: 2px 7px; border-radius: 4px;
  vertical-align: middle; margin-left: 4px; font-weight: 600; text-transform: none;
}
.region-eu   { background: rgba(96,165,250,0.1);  color: #60a5fa; border: 1px solid rgba(96,165,250,0.25); }
.region-na   { background: rgba(245,165,36,0.1);  color: #f5a524; border: 1px solid rgba(245,165,36,0.25); }
.region-jpoc { background: rgba(244,114,182,0.1); color: #f472b6; border: 1px solid rgba(244,114,182,0.25); }

/* ── Status pills ──────────────────────────────────────────────────────── */
.status-pill {
  font-family: var(--font-mono); font-size: 0.6rem;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; white-space: nowrap;
}
.status-pending  { background: rgba(245,165,36,0.1);   border: 1px solid rgba(245,165,36,0.25);   color: var(--accent); }
.status-accepted { background: rgba(52,211,153,0.1);   border: 1px solid rgba(52,211,153,0.25);   color: var(--win); }
.status-declined { background: rgba(100,116,139,0.08); border: 1px solid rgba(100,116,139,0.18); color: #64748b; }
.status-upcoming { background: var(--accent-dim); border: 1px solid var(--border-accent); color: var(--accent); }
.status-played   { background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text-muted); }

/* ── Guild pill ────────────────────────────────────────────────────────── */
.guild-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 8px;
  background: var(--bg-panel-hi); border: 1px solid var(--border);
  cursor: pointer; text-decoration: none; transition: border-color 0.15s; font-family: inherit;
}
.guild-pill:hover { border-color: var(--border-hi); }
.guild-pill.active { border-color: var(--border-accent); background: var(--accent-dim); }
.guild-pill.active .guild-pill-name { color: var(--accent); }
.guild-pill-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.guild-pill-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.guild-pill-label { font-family: var(--font-mono); font-size: 0.56rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.guild-pill-name { font-size: 0.69rem; font-weight: 500; color: var(--text-primary); }

/* ── Guild avatar ──────────────────────────────────────────────────────── */
.guild-av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #f5a524, #b4791a);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; color: #0d1117;
}

/* ── Empty state (v2) ──────────────────────────────────────────────────── */
.es-v2 {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 140px; gap: 12px; text-align: center; padding: 32px 20px;
}
.es-icon-wrap {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-panel-hi); display: grid; place-items: center;
  color: var(--text-muted); flex-shrink: 0;
}
.es-title { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.es-sub { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5; max-width: 260px; }
.es-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.es-btn-primary {
  height: 36px; padding: 0 16px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #d48c0e); border: none;
  color: #0d1117; font-family: var(--font-display); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: opacity 0.15s;
}
.es-btn-primary:hover { opacity: 0.88; }
.es-btn-secondary {
  height: 36px; padding: 0 14px; border-radius: 10px;
  background: none; border: 1px solid var(--border);
  color: var(--text-secondary); font-family: var(--font-body); font-size: 0.78rem;
  cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; transition: all 0.15s;
}
.es-btn-secondary:hover { border-color: var(--border-hi); color: var(--text-primary); }

/* ── Loading ───────────────────────────────────────────────────────────── */
.loading-text { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; padding: 40px 0; text-align: center; }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--bg-panel); border: 1px solid var(--border-hi); border-radius: 12px;
  padding: 13px 22px; font-size: 0.83rem; color: var(--text-primary);
  z-index: 2000; display: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: fadeIn 0.2s ease; max-width: min(90vw, 480px);
}
.toast.visible { display: block; }
.toast.error   { border-color: rgba(244,63,94,0.3); color: var(--loss); }
.toast.success { border-color: rgba(52,211,153,0.25); color: var(--win); }
.toast a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ── Overlay / Modal base ──────────────────────────────────────────────── */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(6,8,12,0.85); backdrop-filter: blur(10px);
  z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.overlay.open { display: flex; }
.modal {
  background: var(--bg-panel); border: 1px solid var(--border-hi);
  border-radius: 20px; max-width: 540px; width: 100%;
  max-height: 88vh; overflow-y: auto; position: relative;
  animation: modalIn 0.25s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.modal-stripe {
  height: 2px; border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.modal-body { padding: 28px 32px; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-muted);
  cursor: pointer; padding: 6px; line-height: 0; transition: all 0.15s;
}
.modal-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.btn-back {
  padding: 13px 22px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text-secondary); cursor: pointer; font-size: 0.78rem;
  transition: all 0.15s; font-family: var(--font-body);
}
.btn-back:hover { border-color: var(--border-hi); color: var(--text-primary); }
.btn-primary {
  flex: 1; padding: 13px 22px;
  background: linear-gradient(135deg, var(--accent), #d48c0e);
  border: none; border-radius: 12px;
  color: #0d1117; font-family: var(--font-display); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s;
  box-shadow: 0 2px 12px rgba(245,165,36,0.2);
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(245,165,36,0.3); }
.btn-primary:disabled { background: rgba(245,165,36,0.2); cursor: not-allowed; color: rgba(0,0,0,0.3); box-shadow: none; }
.btn-danger {
  padding: 13px 22px; border-radius: 12px; border: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.06em; cursor: pointer; transition: all 0.15s;
  background: #f43f5e; color: #fff;
}
.btn-danger:hover { background: #fb5b74; }

/* ── Guilds page: modal overlay/box ────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,8,12,0.85);
  backdrop-filter: blur(10px); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.15s ease;
}
.modal-box {
  background: var(--bg-panel); border: 1px solid var(--border-hi);
  border-radius: 18px; max-width: 460px; width: 100%;
  overflow: hidden; animation: fadeIn 0.2s ease;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.modal-bar { height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.7; }
.modal-inner { padding: 24px 28px; }
.modal-hdr { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.03em; margin-bottom: 3px; }
.modal-sub { font-size: 0.76rem; color: var(--text-muted); }
.modal-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.modal-field { margin-bottom: 16px; }
.modal-label {
  font-family: var(--font-mono); font-size: 0.56rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); display: block; margin-bottom: 7px;
}
.modal-input {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: var(--text-primary); font-family: var(--font-body);
  font-size: 0.84rem; padding: 8px 12px; width: 100%;
  color-scheme: dark; outline: none; transition: border-color 0.15s; box-sizing: border-box;
}
.modal-input:focus { border-color: var(--border-accent); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.modal-success { text-align: center; padding: 28px 0; }
.success-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.25);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.success-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: #34d399; margin-bottom: 6px; }
.success-sub { font-size: 0.78rem; color: var(--text-muted); }
.btn-send {
  padding: 8px 22px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.76rem; letter-spacing: 0.04em;
  cursor: pointer; border: none; transition: all 0.15s;
}
.btn-send:not(:disabled) { background: var(--accent); color: #0d1117; }
.btn-send:not(:disabled):hover { background: var(--accent-hi); }
.btn-send:disabled { background: rgba(245,165,36,0.2); color: rgba(245,165,36,0.4); cursor: not-allowed; }

/* ── Form base ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  font-family: var(--font-mono); font-size: 0.56rem;
  letter-spacing: 0.2em; color: var(--text-muted);
  text-transform: uppercase; display: block; margin-bottom: 7px;
}
.form-input {
  width: 100%; padding: 10px 14px; font-size: 0.82rem; border-radius: 10px;
  color: var(--text-primary); font-family: var(--font-body);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  outline: none; transition: border-color 0.15s;
}
.form-input:focus { border-color: rgba(245,165,36,0.35); }
.form-input::placeholder { color: var(--text-muted); }
select.form-input { appearance: none; cursor: pointer; }
select.form-input option { background: var(--bg-panel); }
textarea.form-input { resize: vertical; min-height: 72px; }

/* ── Chip input ────────────────────────────────────────────────────────── */
.chip-input-wrap {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  min-height: 40px; padding: 6px 12px; cursor: text;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 10px; transition: border-color 0.15s;
}
.chip-input-wrap:focus-within { border-color: rgba(245,165,36,0.35); }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px 3px 10px; border-radius: 6px;
  font-size: 0.74rem; font-family: var(--font-mono);
}
.chip-you   { background: rgba(245,165,36,0.1); color: var(--accent); border: 1px solid rgba(245,165,36,0.25); }
.chip-other { background: rgba(88,101,242,0.1); color: var(--discord); border: 1px solid rgba(88,101,242,0.25); }
.chip-remove { background: none; border: none; color: inherit; cursor: pointer; padding: 0; line-height: 1; opacity: 0.6; font-size: 0.95rem; }
.chip-remove:hover { opacity: 1; }
.chip-bare {
  background: none; border: none; outline: none; color: var(--text-primary);
  font-size: 0.8rem; font-family: var(--font-body); min-width: 100px; flex: 1; padding: 1px 2px;
}
.chip-bare::placeholder { color: var(--text-muted); }
.chip-hint { font-family: var(--font-mono); font-size: 0.54rem; color: var(--text-muted); margin-top: 5px; letter-spacing: 0.08em; }

/* ── Merc role/class pills ─────────────────────────────────────────────── */
.merc-role-pill {
  font-family: var(--font-mono); font-size: 0.56rem; padding: 2px 8px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.merc-role-dps    { background: rgba(244,63,94,0.1);  color: #f43f5e; border: 1px solid rgba(244,63,94,0.2); }
.merc-role-healer { background: rgba(52,211,153,0.1); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.merc-role-tank   { background: rgba(96,165,250,0.1); color: #60a5fa; border: 1px solid rgba(96,165,250,0.2); }
.merc-class-chip {
  font-family: var(--font-mono); font-size: 0.58rem; padding: 2px 8px;
  border-radius: 6px; background: var(--bg-hover); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.merc-contact { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); margin-top: 4px; }

/* ── Discord buttons ───────────────────────────────────────────────────── */
.btn-discord-dm {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 7px; border: 1px solid rgba(88,101,242,0.2);
  background: rgba(88,101,242,0.08); color: #7289da; text-decoration: none;
  transition: all 0.15s; cursor: pointer;
}
.btn-discord-dm:hover { background: rgba(88,101,242,0.18); border-color: rgba(88,101,242,0.4); transform: translateY(-1px); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px 28px 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.footer-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 22px; border-radius: 10px;
  border: 1px solid rgba(245,165,36,0.2); background: rgba(245,165,36,0.03);
}
.footer-promo-left { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.footer-promo-logo {
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 700;
  color: var(--accent); letter-spacing: 0.02em;
}
.footer-promo-sub {
  font-family: var(--font-mono); font-size: 0.52rem;
  letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase;
}
.footer-promo-features { display: flex; gap: 20px; flex: 1; justify-content: center; }
.footer-promo-features span { font-size: 0.72rem; color: var(--text-secondary); }
.footer-promo-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 8px;
  font-size: 0.75rem; font-family: var(--font-body); font-weight: 600;
  background: var(--accent); color: #0b0f16; text-decoration: none;
  white-space: nowrap; transition: background 0.15s, transform 0.1s;
}
.footer-promo-cta:hover { background: var(--accent-hi); transform: translateY(-1px); }
.footer-links { text-align: center; font-size: 0.72rem; color: var(--text-muted); }
.footer-links a { color: var(--accent); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-sep { margin: 0 8px; opacity: 0.4; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) { .nav-tabs .nav-tab:not(.active) { display: none; } }
@media (max-width: 768px) {
  .footer-promo { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-promo-features { flex-direction: column; gap: 6px; }
  .footer-promo-cta { width: 100%; justify-content: center; }
  .nav-link-subtle span { display: none; }
  .modal-body { padding: 22px; }
}
@media (max-width: 700px) { .brand-name { display: none; } .guild-tag-btn { display: none; } }
