/* =========================================================
   OnlyClans — OnlyFans-inspired type + color system
   Font: Nunito (rounded bold sans closest free match to OF wordmark)
   Brand blue: #00AFF0
   ========================================================= */

:root {
  --of-blue: #00AFF0;
  --of-blue-dark: #0090C8;
  --of-blue-deep: #0077A8;
  --of-blue-soft: rgba(0, 175, 240, 0.12);
  --of-blue-glow: rgba(0, 175, 240, 0.35);

  --bg: #0b0e13;
  --bg-elevated: #12161e;
  --bg-card: #161b24;
  --bg-card-hover: #1c2230;
  --bg-input: #0f131a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f2f5f8;
  --text-muted: #8b95a5;
  --text-dim: #5c6675;

  --success: #3dd68c;
  --warning: #f5c542;
  --danger: #ff6b7a;
  --accent-pink: #ff5c8a;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --nav-h: 72px;
  --notice-h: 0px;

  --font: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-notice {
  background: linear-gradient(90deg, #3d2a00, #5c3d00 40%, #2a1a00);
  border-bottom: 1px solid rgba(245, 197, 66, 0.45);
  color: #ffe8a8;
  font-size: 0.88rem;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 110;
}

.site-notice.hidden {
  display: none;
}

.site-notice-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.65rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-notice-inner strong {
  color: #ffd666;
  font-weight: 900;
  white-space: nowrap;
}

.site-notice-inner span {
  flex: 1;
  min-width: 200px;
  line-height: 1.4;
}

.site-notice-inner a {
  color: #fff0c2;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-notice-inner a:hover {
  color: #fff;
}

.footer-note a {
  color: var(--of-blue);
  font-weight: 700;
}

.site-notice-close {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffe8a8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.site-notice-close:hover {
  background: rgba(0, 0, 0, 0.4);
}

.analytics-table-wrap {
  overflow-x: auto;
}

.view-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 96px;
  margin-top: 0.5rem;
}

.view-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  min-width: 0;
}

.view-bar {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(180deg, #5ed4ff, var(--of-blue));
  border-radius: 6px 6px 2px 2px;
  min-height: 4px;
}

.view-bar-col span {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 700;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--of-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

/* ---------- Logo (OnlyFans-style wordmark) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
  color: inherit;
}

.logo-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Classic OnlyFans split: lighter "Only" + darker second word */
.logo-only {
  color: #5ed4ff;
}

.logo-clans {
  color: var(--of-blue);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  text-decoration: none !important;
  color: inherit;
  background: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, #1bc0ff 0%, var(--of-blue) 100%);
  color: #041018;
  box-shadow: 0 4px 20px var(--of-blue-glow);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #3dcbff 0%, #12b6f5 100%);
  box-shadow: 0 6px 28px var(--of-blue-glow);
}

.btn-accent {
  background: linear-gradient(180deg, #ff7aa3 0%, var(--accent-pink) 100%);
  color: #1a0610;
  box-shadow: 0 4px 20px rgba(255, 92, 138, 0.35);
}

.btn-accent:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--of-blue);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

.link-btn:hover {
  text-decoration: underline;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 14, 19, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-inner > .logo {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  text-decoration: none !important;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta-text {
  color: var(--of-blue) !important;
}

/* List Clan lives in nav-actions on desktop — only show in hamburger menu */
.nav-link-mobile-only {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Views ---------- */
.view {
  display: none;
  animation: fadeIn 0.28s ease;
}

.view.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 3.5rem 0 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 175, 240, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 30%, rgba(255, 92, 138, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(0, 175, 240, 0.06), transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--of-blue-soft);
  border: 1px solid rgba(0, 175, 240, 0.25);
  color: #9fe6ff;
  font-weight: 700;
  font-size: 0.85rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(61, 214, 140, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 214, 140, 0);
  }
}

.hero-title {
  margin-top: 1.25rem;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.gradient-text {
  background: linear-gradient(105deg, #5ed4ff 0%, var(--of-blue) 45%, #7adfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 1.1rem auto 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.08rem;
  font-weight: 500;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.search-bar:focus-within {
  border-color: rgba(0, 175, 240, 0.55);
  box-shadow: 0 0 0 3px var(--of-blue-soft), var(--shadow);
}

.search-icon {
  color: var(--text-dim);
  flex-shrink: 0;
}

.search-bar input[type="search"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.55rem 0.35rem;
}

.search-bar input::placeholder {
  color: var(--text-dim);
  font-weight: 500;
}

.search-bar select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  max-width: 150px;
}

.search-btn {
  flex-shrink: 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.muted {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
}

.tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.15s;
  font-family: inherit;
}

.tag:hover {
  border-color: rgba(0, 175, 240, 0.45);
  color: var(--of-blue);
  background: var(--of-blue-soft);
}

.hero-stats {
  position: relative;
  width: min(900px, calc(100% - 2rem));
  margin: 2.75rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1rem;
  text-align: center;
}

.stat-num {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--of-blue);
}

.stat-label {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 3.5rem 0;
}

.section.alt {
  background: linear-gradient(180deg, transparent, rgba(0, 175, 240, 0.03), transparent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-sub {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 520px;
}

/* Dual path */
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.path-card:hover {
  border-color: rgba(0, 175, 240, 0.35);
  transform: translateY(-2px);
}

.path-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.path-card h2 {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.path-card p {
  color: var(--text-muted);
  font-weight: 500;
  flex: 1;
  margin-bottom: 0.5rem;
}

.path-card .btn {
  width: 100%;
}

.path-owner {
  background:
    linear-gradient(145deg, rgba(255, 92, 138, 0.08), transparent 50%),
    var(--bg-card);
}

.path-player {
  background:
    linear-gradient(145deg, rgba(0, 175, 240, 0.08), transparent 50%),
    var(--bg-card);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.feature h3 {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Games */
.games-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.game-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: 0.18s;
  font-family: inherit;
  color: inherit;
  width: 100%;
}

.game-chip:hover {
  border-color: rgba(0, 175, 240, 0.5);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.game-emoji {
  font-size: 1.75rem;
  margin-bottom: 0.45rem;
}

.game-name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.game-count {
  margin-top: 0.25rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
}

/* CTA band */
.cta-band {
  margin: 1rem 0 0;
  padding: 3rem 0;
  background:
    linear-gradient(90deg, rgba(0, 175, 240, 0.15), rgba(255, 92, 138, 0.1)),
    var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.cta-band p {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 480px;
}

/* ---------- Clan cards ---------- */
.clan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.1rem;
}

.clan-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.clan-card-report {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  background: rgba(10, 12, 18, 0.75);
  border: 1px solid rgba(255, 107, 122, 0.4);
  color: #ff9aa5;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.clan-card-report:hover {
  background: rgba(255, 107, 122, 0.2);
}

.clan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  text-align: left;
  color: inherit;
  font-family: inherit;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.clan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 175, 240, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.clan-banner {
  height: 96px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.clan-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card), transparent 70%);
}

.clan-body {
  padding: 0 1.15rem 1.15rem;
  margin-top: -28px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.clan-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 3px solid var(--bg-card);
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.clan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.clan-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.clan-name {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.clan-tag {
  color: var(--of-blue);
  font-weight: 800;
  font-size: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-verified {
  background: var(--of-blue-soft);
  color: var(--of-blue);
  border: 1px solid rgba(0, 175, 240, 0.3);
}

.badge-open {
  background: rgba(61, 214, 140, 0.12);
  color: var(--success);
  border: 1px solid rgba(61, 214, 140, 0.3);
}

.badge-selective {
  background: rgba(245, 197, 66, 0.12);
  color: var(--warning);
  border: 1px solid rgba(245, 197, 66, 0.3);
}

.badge-boost {
  background: rgba(255, 92, 138, 0.12);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 92, 138, 0.3);
}

.clan-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.clan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  margin-top: 0.15rem;
}

.clan-members {
  font-weight: 800;
  font-size: 0.88rem;
}

.clan-members span {
  color: var(--text-dim);
  font-weight: 600;
}

.match-score {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--of-blue);
}

/* ---------- Browse ---------- */
.page-hero {
  padding: 2.25rem 0 1.5rem;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0, 175, 240, 0.12), transparent 60%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-weight: 500;
}

.browse-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
  align-items: start;
}

.filters {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filters-head h3 {
  font-weight: 900;
  font-size: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field.grow {
  flex: 1;
  min-width: 140px;
}

.field input,
.field select,
.field textarea,
.modal input,
.modal textarea,
.modal select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  padding: 0.65rem 0.8rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.modal input:focus,
.modal textarea:focus {
  border-color: rgba(0, 175, 240, 0.55);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.45;
}

.field input[type="range"] {
  padding: 0;
  accent-color: var(--of-blue);
  height: 1.25rem;
}

.range-val {
  font-size: 0.8rem;
  color: var(--of-blue);
  font-weight: 800;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.check input {
  accent-color: var(--of-blue);
  width: 1rem;
  height: 1rem;
}

.browse-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.results-count {
  color: var(--text-muted);
  font-weight: 600;
}

.results-count strong {
  color: var(--text);
  font-weight: 900;
}

.sort-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.sort-field select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.empty-state h3 {
  color: var(--text);
  font-weight: 900;
  margin-bottom: 0.35rem;
}

/* ---------- Match Me ---------- */
.match-wrap {
  max-width: 720px;
  padding-bottom: 3rem;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
}

.match-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.match-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--of-blue), #5ed4ff);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.match-step h2 {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.match-step p {
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  font-weight: 500;
}

.match-options {
  display: grid;
  gap: 0.55rem;
}

.match-opt {
  text-align: left;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
  font-family: inherit;
}

.match-opt:hover,
.match-opt.selected {
  border-color: rgba(0, 175, 240, 0.55);
  background: var(--of-blue-soft);
}

.match-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.25rem;
  gap: 0.75rem;
}

.match-results {
  padding-bottom: 2rem;
}

.match-results h2 {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.match-results .clan-grid {
  margin: 1.5rem 0;
}

/* ---------- List form ---------- */
.list-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  padding-bottom: 3rem;
  align-items: start;
}

.list-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-section h3 {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.form-section .field {
  margin-bottom: 0.85rem;
}

.form-section .form-row .field {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.form-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
}

.list-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.aside-card.accent {
  background: linear-gradient(160deg, rgba(255, 92, 138, 0.12), var(--bg-card));
  border-color: rgba(255, 92, 138, 0.25);
}

.aside-card h3 {
  font-weight: 900;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.aside-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.checklist,
.mini-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.checklist li,
.mini-list li {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--of-blue);
  font-weight: 900;
}

.mini-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--accent-pink);
  font-size: 0.75rem;
  top: 0.15rem;
}

.boost-badge {
  display: inline-block;
  background: var(--accent-pink);
  color: #1a0610;
  font-weight: 900;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

/* ---------- Clan detail page ---------- */
.clan-detail {
  padding-bottom: 3rem;
}

.detail-banner {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.detail-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 55%);
}

.detail-header {
  margin-top: -70px;
  position: relative;
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.detail-avatar {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 4px solid var(--bg);
  background: var(--bg-card);
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.detail-title-block {
  flex: 1;
  min-width: 200px;
  padding-bottom: 0.35rem;
}

.detail-title-block h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.detail-tag {
  color: var(--of-blue);
  font-weight: 800;
}

.detail-tagline {
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

.detail-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding-bottom: 0.35rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.panel h3 {
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.panel p {
  color: var(--text-muted);
  font-weight: 500;
  white-space: pre-wrap;
}

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.req-list li {
  padding: 0.55rem 0.75rem;
  background: var(--bg-input);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.mini-stat {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.75rem;
  text-align: center;
}

.mini-stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--of-blue);
}

.mini-stat span {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 700;
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--of-blue);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding: 2.75rem 0 2rem;
}

.footer-logo .logo-text {
  font-size: 1.35rem;
}

.footer-tag {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  max-width: 280px;
}

.footer h4 {
  font-weight: 900;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer a {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.45rem;
  text-decoration: none !important;
  cursor: pointer;
}

.footer a:hover {
  color: var(--of-blue);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  display: inline;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-bottom-links a:hover {
  color: var(--of-blue);
}

.footer .logo {
  margin-bottom: 0.35rem;
}

.footer-note {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  width: min(420px, 100%);
  position: relative;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.modal-sub {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.15rem;
  font-size: 0.95rem;
}

.modal .field {
  margin-bottom: 0.85rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.modal-close:hover {
  color: var(--text);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: #1a2433;
  border: 1px solid rgba(0, 175, 240, 0.4);
  color: var(--text);
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .path-grid,
  .features-grid,
  .detail-grid,
  .list-layout,
  .browse-layout {
    grid-template-columns: 1fr;
  }

  .games-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .filters {
    position: static;
  }

  .list-aside {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Collapse earlier so added tabs (Knightly, etc.) never crush the bar */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.25rem;
    z-index: 120;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
  }

  .nav-link-mobile-only {
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-guest .btn-ghost {
    display: none;
  }

  .account-name,
  .account-caret {
    display: none;
  }
}

@media (max-width: 720px) {
  /* keep mobile tweaks below; nav collapse handled at 1080px */

  .search-bar {
    flex-wrap: wrap;
    border-radius: var(--radius);
    padding: 0.65rem;
  }

  .search-bar select {
    max-width: none;
    width: 100%;
  }

  .search-btn {
    width: 100%;
  }

  .games-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .clan-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .detail-header {
    align-items: flex-start;
  }

  .detail-actions {
    width: 100%;
  }

  .detail-actions .btn {
    flex: 1;
  }

  .dash-grid,
  .profile-layout.list-layout,
  #profileRoot.list-layout {
    grid-template-columns: 1fr !important;
  }

  .owner-clan-row {
    flex-direction: column;
    align-items: flex-start !important;
  }
}

/* =========================================================
   Auth, account menu, dashboard, apps, notifications
   ========================================================= */

.nav-guest,
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-icon {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
}

.notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  line-height: 1;
}

.account-menu {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
  color: var(--text);
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.15s;
}

.account-trigger:hover {
  border-color: rgba(0, 175, 240, 0.45);
  background: var(--of-blue-soft);
}

.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.account-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.account-caret {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.45rem;
  z-index: 120;
  animation: fadeIn 0.15s ease;
}

.account-dropdown-head {
  padding: 0.65rem 0.75rem 0.55rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.35rem;
}

.account-dropdown-head strong {
  display: block;
  font-weight: 900;
  font-size: 0.95rem;
}

.account-dropdown-head span {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
}

.account-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.account-dropdown button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.account-dropdown button.danger {
  color: var(--danger);
}

.account-dropdown hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.35rem 0;
}

/* Auth modal */
.btn-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.35);
  gap: 0.55rem;
}

.btn-discord:hover {
  background: #4752c4;
  filter: none;
}

.auth-discord-only {
  text-align: center;
  padding: 0.35rem 0.15rem 0.25rem;
}

.auth-discord-icon {
  margin-bottom: 0.85rem;
}

.auth-discord-only h2 {
  margin-bottom: 0.4rem;
}

.auth-discord-only .modal-sub {
  margin-bottom: 1.25rem;
}

.auth-secure-note {
  margin-top: 1rem;
  line-height: 1.4;
}

.discord-setup-note {
  margin-top: 0.85rem;
  line-height: 1.45;
  text-align: left;
}

.discord-setup-note code {
  color: var(--of-blue);
  font-size: 0.85em;
}

.form-error {
  color: var(--danger);
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0.25rem 0 0.65rem;
}

.demo-creds {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.demo-fill {
  text-align: left;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--of-blue);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.demo-fill:hover {
  border-color: rgba(0, 175, 240, 0.45);
  background: var(--of-blue-soft);
}

.tiny {
  font-size: 0.78rem !important;
}

/* Dashboard */
.dash-layout {
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.dash-welcome-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.dash-welcome h2 {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.4rem;
}

.dash-welcome-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.15rem;
  align-items: start;
}

.dash-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.panel-head h3 {
  margin-bottom: 0;
}

.owner-clan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.owner-clan-row:first-of-type {
  border-top: none;
  padding-top: 0.25rem;
}

.owner-clan-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.owner-emoji {
  font-size: 1.4rem;
}

.owner-clan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.tools-grid {
  display: grid;
  gap: 0.75rem;
}

.tool-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.9rem;
}

.tool-card h4 {
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.tool-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.empty-inline {
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.5rem 0 0.25rem;
  font-size: 0.95rem;
}

/* Applications */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.app-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.app-row-main {
  min-width: 0;
  flex: 1;
}

.app-row-main strong {
  font-weight: 800;
}

.app-why {
  margin: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.app-row-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* Profile layout uses list-layout class dynamically */
#profileRoot.list-layout,
.profile-layout.list-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  padding-bottom: 3rem;
  align-items: start;
}

/* Notifications */
.modal-notifs {
  width: min(440px, 100%);
}

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.notif-head h2 {
  margin: 0;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 60vh;
  overflow-y: auto;
}

.notif-item {
  padding: 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.notif-item.unread {
  border-color: rgba(0, 175, 240, 0.35);
  background: var(--of-blue-soft);
}

.notif-item strong {
  display: block;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.notif-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

@media (max-width: 960px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Full product surfaces
   ========================================================= */

.footer-grid-5 {
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.activity-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--of-blue);
  box-shadow: 0 0 0 4px var(--of-blue-soft);
  flex-shrink: 0;
}

.event-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-mini {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.event-mini:hover {
  border-color: rgba(0, 175, 240, 0.4);
}

.event-date-chip {
  background: var(--of-blue-soft);
  color: var(--of-blue);
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  min-width: 52px;
  text-align: center;
}

.news-row,
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.news-card {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: 0.15s;
}

.news-card:hover {
  border-color: rgba(0, 175, 240, 0.4);
  transform: translateY(-2px);
}

.news-card h3 {
  font-weight: 900;
  margin: 0.45rem 0;
  letter-spacing: -0.02em;
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.news-emoji {
  font-size: 1.6rem;
}

.news-card.large h3 {
  font-size: 1.15rem;
}

.article h1 {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
}

.article-body {
  margin-top: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.65;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.15rem;
  padding-bottom: 3rem;
  align-items: start;
}

.sticky-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.lfg-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lfg-card {
  padding: 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.lfg-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.lfg-avatar {
  font-size: 1.4rem;
}

.lfg-card p {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.lfg-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.event-card h3 {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.event-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--of-blue), #5ed4ff);
  border-radius: 999px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lb-row {
  cursor: pointer;
}

.lb-row:hover {
  background: rgba(0, 175, 240, 0.05);
}

.inbox-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  padding-bottom: 3rem;
  min-height: 420px;
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.inbox-item {
  text-align: left;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.7rem 0.8rem;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.inbox-item.active,
.inbox-item:hover {
  border-color: rgba(0, 175, 240, 0.45);
  background: var(--of-blue-soft);
}

.msg-stream {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 360px;
  overflow-y: auto;
  margin: 0.75rem 0;
  padding-right: 0.25rem;
}

.msg-bubble {
  align-self: flex-start;
  max-width: 85%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 0.65rem 0.85rem;
}

.msg-bubble.mine {
  align-self: flex-end;
  background: var(--of-blue-soft);
  border-color: rgba(0, 175, 240, 0.3);
  border-radius: 12px 12px 4px 12px;
}

.msg-bubble p {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.msg-compose {
  display: flex;
  gap: 0.5rem;
}

.msg-compose input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 0.65rem 1rem;
  font-weight: 600;
  outline: none;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.15rem;
  padding-bottom: 3rem;
}

.danger-zone {
  border-color: rgba(255, 107, 122, 0.25);
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  padding-bottom: 3rem;
}

.ach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: center;
}

.ach-card.locked {
  opacity: 0.45;
  filter: grayscale(0.4);
}

.ach-card.unlocked {
  border-color: rgba(0, 175, 240, 0.35);
}

.ach-emoji {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.badge-soon {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.14);
  color: #ffc400;
  border: 1px solid rgba(255, 196, 0, 0.35);
  vertical-align: middle;
}

#eggEditFooterBtn {
  color: #00aff0;
  font-weight: 800;
}
#eggEditFooterBtn:hover {
  text-decoration: underline;
}

.coming-soon-banner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 196, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 196, 0, 0.08), transparent 50%),
    var(--bg-card);
}

.coming-soon-banner h2 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.coming-soon-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.coming-soon-list {
  margin: 0.85rem 0 0;
}

.coming-soon-actions {
  text-align: center;
  padding: 1rem;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}

.coming-soon-actions .btn {
  width: 100%;
  margin-bottom: 0.45rem;
}

.coming-soon-card {
  opacity: 0.92;
}

.coming-soon-card .btn:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

@media (max-width: 720px) {
  .coming-soon-banner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Knightly bot page ---------- */
.knightly-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}
.knightly-hero-copy h1 {
  margin: 0.5rem 0 0.65rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}
.knightly-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42rem;
}
.knightly-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.knightly-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.knightly-hero-card {
  background: linear-gradient(160deg, rgba(0, 175, 240, 0.12), rgba(20, 20, 28, 0.95));
  border: 1px solid rgba(0, 175, 240, 0.35);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.knightly-bot-face {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  margin-bottom: 0.35rem;
}
.knightly-hero-card h3 { margin: 0; font-size: 1.25rem; }
.knightly-hero-card .checklist { margin: 0.5rem 0 0.85rem; }
.knightly-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.knightly-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}
.knightly-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}
.knightly-feature {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
}
.knightly-feature strong {
  display: block;
  margin-bottom: 0.3rem;
}
.knightly-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.knightly-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.knightly-steps li strong {
  display: block;
  margin-bottom: 0.15rem;
}
.knightly-steps li span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.knightly-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: rgba(0, 175, 240, 0.12);
  color: var(--of-blue, #00aff0);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}
.knightly-cmds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.55rem;
}
.knightly-cmds > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.knightly-cmds code {
  font-weight: 800;
  color: var(--of-blue, #00aff0);
}
.knightly-cmds span {
  font-size: 0.85rem;
  color: var(--muted);
}
.knightly-bottom-cta {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 175, 240, 0.3);
  background: linear-gradient(90deg, rgba(0, 175, 240, 0.1), transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.knightly-bottom-cta h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}
.knightly-bottom-cta p { margin: 0; }

@media (max-width: 860px) {
  .knightly-hero,
  .knightly-grid,
  .knightly-feature-grid {
    grid-template-columns: 1fr;
  }
}

.boost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.boost-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: relative;
}

.boost-card.popular {
  border-color: rgba(0, 175, 240, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 175, 240, 0.15);
}

.boost-price {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.85rem;
  color: var(--of-blue);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.faq-item summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-weight: 500;
}

.legal-list {
  margin: 0.75rem 0 0 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.6;
}

.changelog-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.changelog-item ul {
  margin: 0.4rem 0 0 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.status-card.ok {
  border-color: rgba(61, 214, 140, 0.35);
}

.status-card.warn {
  border-color: rgba(245, 197, 66, 0.35);
}

.status-card span {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.roster-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.roster-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.45rem 0.55rem;
  background: var(--bg-input);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.status-dot.online {
  background: var(--success);
}

.status-dot.idle {
  background: var(--warning);
}

.status-dot.offline {
  background: var(--text-dim);
}

.review-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.review-item p {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  width: min(640px, calc(100% - 2rem));
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 0.4rem;
}

.modal-cmd {
  width: min(520px, 100%);
  padding-top: 1.1rem;
}

.modal-cmd input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  outline: none;
}

.modal-cmd input:focus {
  border-color: rgba(0, 175, 240, 0.55);
}

.cmd-results {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 320px;
  overflow-y: auto;
}

.cmd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  padding: 0.7rem 0.8rem;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cmd-item:hover,
.cmd-item.active {
  background: var(--of-blue-soft);
  border-color: rgba(0, 175, 240, 0.3);
}

.cmd-item code {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.onboarding-card {
  max-width: 560px;
  margin: 0 auto;
}

body[data-density="compact"] .clan-card .clan-tagline {
  -webkit-line-clamp: 1;
}

body[data-density="compact"] .section {
  padding: 2.25rem 0;
}

.prose-page {
  padding-bottom: 3rem;
}

.compare-wrap {
  overflow-x: auto;
  margin-bottom: 3rem;
}

/* Staff / report UI */
.report-modal-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.report-modal-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.report-clan-btn {
  border-color: rgba(255, 107, 122, 0.35) !important;
  color: #ff8a96 !important;
}

.report-clan-btn:hover {
  background: rgba(255, 107, 122, 0.12) !important;
}

.staff-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.staff-report {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.staff-report:first-of-type {
  border-top: none;
  padding-top: 0.25rem;
}

.staff-report-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.staff-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-start;
}

.staff-quick-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 420px;
  overflow-y: auto;
}

.staff-quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.staff-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav-admin-only {
  color: #ff8a96 !important;
}

@media (max-width: 960px) {
  .footer-grid-5 {
    grid-template-columns: 1fr 1fr;
  }
  .home-extra-grid,
  .split-layout,
  .inbox-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .sticky-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .footer-grid-5 {
    grid-template-columns: 1fr;
  }
  .data-table {
    font-size: 0.8rem;
  }
}
