/* ============================================
   SlothSMP — Royal theme, built off the actual logo colors (crowned sloth:
   violet cape + "SLOTH'S" text, teal "SMP" text, gold crown), not a generic
   Minecraft dirt palette.
   Palette: #130f21 (void), #1e1836 (panel), #291f47 (panel-raised),
            #423262 (line), #f4b342 (gold, crown), #c98a1a (gold-deep),
            #2dd4bf (teal, from "SMP"), #14a89a (teal-deep),
            #f3eefc (text/lavender-white), #b6a8d6 (muted/dusty lavender)
   Display face: Pixelify Sans (blocky, still legible) / Body: Inter
   Signature: numbered rules read like inventory slots; buttons have a
   Minecraft-button bevel (light top-left edge, dark bottom-right edge).
   The --moss/--moss-deep variable names are historical (this used to be a
   green jungle theme) but now hold the teal accent — kept as-is rather than
   renaming every reference across the templates.
   ============================================ */

:root {
  --void: #130f21;
  --panel: #1e1836;
  --panel-raised: #291f47;
  --line: #423262;
  --gold: #f4b342;
  --gold-deep: #c98a1a;
  --moss: #2dd4bf;
  --moss-deep: #14a89a;
  --text: #f3eefc;
  --muted: #b6a8d6;
  --danger: #ff6b81;
  --radius: 6px;
}

/* ---------- Seasonal themes ----------
   Every component is built on the CSS variables above, so a theme only
   needs to override those variables — buttons, pills, cards, everything
   re-themes automatically. Set from Admin -> Theme. */
[data-theme="halloween"] {
  --void: #150b08;
  --panel: #241209;
  --panel-raised: #33190d;
  --line: #5c2e12;
  --gold: #ff8c1a;
  --gold-deep: #cc6600;
  --moss: #9b59ff;
  --moss-deep: #6b32cc;
  --text: #f5ead2;
  --muted: #c9a184;
}
[data-theme="christmas"] {
  --void: #0a1410;
  --panel: #0f1f17;
  --panel-raised: #153223;
  --line: #1f4a30;
  --gold: #e63946;
  --gold-deep: #b4222e;
  --moss: #4caf50;
  --moss-deep: #2e7d32;
  --text: #f5faf2;
  --muted: #9fc9ab;
}
[data-theme="valentines"] {
  --void: #1a0a10;
  --panel: #2b0f1a;
  --panel-raised: #3d1526;
  --line: #5c2138;
  --gold: #ff4d6d;
  --gold-deep: #d6294a;
  --moss: #ff8fab;
  --moss-deep: #e0648a;
  --text: #ffeef2;
  --muted: #d9a8b8;
}
[data-theme="summer"] {
  --void: #0a1620;
  --panel: #0f2433;
  --panel-raised: #153347;
  --line: #1f4a63;
  --gold: #ffd166;
  --gold-deep: #f4a300;
  --moss: #06b6d4;
  --moss-deep: #0891b2;
  --text: #f0faff;
  --muted: #9fc9d9;
}

/* Falling-particle effect layer, toggled on/off independently of the theme colors */
.theme-fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}
.theme-fx-particle {
  position: absolute;
  top: -40px;
  animation: theme-fx-fall linear forwards;
  opacity: 0.85;
  will-change: transform;
}
@keyframes theme-fx-fall {
  to { transform: translateY(110vh) rotate(360deg); }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection { background: var(--gold); color: var(--void); }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
  position: relative;
  min-height: 100vh;
}

h1, h2, h3, h4, .brand-text, .display {
  font-family: 'Pixelify Sans', 'Inter', system-ui, sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 15% -10%, rgba(45,212,191,0.14), transparent 60%),
    radial-gradient(600px 500px at 90% 5%, rgba(244,179,66,0.14), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(120,80,220,0.10), transparent 60%),
    var(--void);
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 3px solid var(--line);
  background: rgba(19,15,33,0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 4px;
  image-rendering: pixelated;
  border: 2px solid var(--line);
  display: block;
}
.brand-text { font-weight: 700; font-size: 1.1rem; color: var(--gold); text-shadow: 2px 2px 0 rgba(0,0,0,0.4); }

.main-nav { display: flex; gap: 22px; flex: 1; align-items: center; min-width: 0; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.main-nav a:hover { color: var(--moss); text-decoration: none; }
.nav-links { display: flex; gap: 22px; align-items: center; overflow: hidden; }
.nav-more { position: relative; flex-shrink: 0; display: none; }
.nav-more.has-overflow { display: block; }
.nav-more-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 2px;
  white-space: nowrap;
}
.nav-more-btn:hover { color: var(--moss); }
.nav-more-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: var(--panel-raised);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  flex-direction: column;
  min-width: 160px;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.nav-more-menu.open { display: flex; }
.nav-more-menu a { padding: 8px 10px; border-radius: 6px; }
.nav-more-menu a:hover { background: var(--panel); text-decoration: none; }

.nav-auth { display: flex; align-items: center; gap: 10px; }
.user-chip {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--panel-raised);
  border: 2px solid var(--line);
  color: var(--text);
  display: inline-block;
  transition: border-color 0.15s ease;
}
.user-chip:hover { text-decoration: none; border-color: var(--gold); }
.user-chip i {
  font-style: normal;
  color: var(--role-color, var(--gold));
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ---------- Buttons (Minecraft-button bevel) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: 2px solid var(--line);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.12), inset -2px -2px 0 rgba(0,0,0,0.35);
}
.btn:hover { text-decoration: none; filter: brightness(1.12); transform: translateY(-1px); box-shadow: inset 2px 2px 0 rgba(255,255,255,0.12), inset -2px -2px 0 rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.3); }
.btn:active { transform: translateY(1px); box-shadow: inset 2px 2px 0 rgba(0,0,0,0.25); }
.btn-primary { background: var(--gold-deep); color: var(--void); border-color: #93650f; }
.btn-outline { border-color: var(--line); color: var(--text); background: var(--panel-raised); }
.btn-outline:hover { border-color: var(--moss); }
.btn-ghost { color: var(--moss); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { box-shadow: none; }
.btn-danger { background: rgba(255,107,129,0.15); color: var(--danger); border-color: rgba(255,107,129,0.4); }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-block { width: 100%; justify-content: center; }
button.btn { font-family: inherit; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero-logo {
  max-width: 130px;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  margin: 0 auto 22px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

.hero h1 {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  margin: 0 0 14px;
  color: var(--text);
}
.hero h1 span { color: var(--moss); }
.hero p.lede { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Server status card ---------- */
.status-card {
  max-width: 640px;
  margin: 40px auto 0;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: left;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.05), 0 12px 32px rgba(0,0,0,0.3);
}
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.status-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: 'Pixelify Sans', sans-serif; color: var(--gold); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius);
  border: 2px solid transparent;
  text-transform: uppercase;
}
.status-pill.online { background: rgba(45,212,191,0.15); color: var(--moss); border-color: rgba(45,212,191,0.4); }
.status-pill.offline { background: rgba(255,107,129,0.15); color: var(--danger); border-color: rgba(255,107,129,0.4); }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.status-block { background: var(--panel-raised); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.status-block .label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.status-block code {
  display: block; background: var(--void); border: 2px solid var(--line); border-radius: 4px;
  padding: 6px 8px; font-size: 0.85rem; margin-top: 4px; user-select: all; overflow-wrap: anywhere; color: var(--gold);
}
.status-players { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.status-players strong { color: var(--text); }
.player-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.player-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--void);
  border: 1px solid var(--line);
  color: var(--moss);
}

/* ---------- Sections / cards ---------- */
section.section { padding: 48px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: 1.7rem; margin: 0 0 10px; color: var(--gold); }
.section-head p { color: var(--muted); margin: 0 0 14px; }
.section-head::after {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--gold), var(--moss));
  border-radius: 2px;
}

.card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.05), 0 6px 18px rgba(0,0,0,0.22);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card + .card { margin-top: 16px; }

.post-card:hover, .announce-item:hover { border-color: var(--gold-deep); }

/* ---------- Announcements banner strip (home) ---------- */
.announce-strip { margin-top: 8px; }
.announce-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--panel-raised);
  border: 2px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  transition: border-color 0.15s ease;
}
.announce-icon { font-size: 1.3rem; line-height: 1; margin-top: 2px; }
.announce-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.announce-item h3 a { color: var(--text); }
.announce-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Rules ---------- */
.rules-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }
.rules-tabs button {
  font-family: 'Pixelify Sans', sans-serif;
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--muted);
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.08), inset -2px -2px 0 rgba(0,0,0,0.3);
}
.rules-tabs button.active { color: var(--void); border-color: var(--gold-deep); background: var(--gold); }

.rules-list { list-style: none; margin: 0; padding: 0; counter-reset: rule; }
.rules-list li {
  counter-increment: rule;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 2px dashed var(--line);
}
.rules-list li:last-child { border-bottom: none; }
.rules-list li::before {
  content: counter(rule);
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 4px;
  background: var(--void);
  border: 2px solid var(--line);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Pixelify Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.06);
}
.rules-panel { display: none; }
.rules-panel.active { display: block; }

/* ---------- Author tag (role pill + name), shown wherever a post/author is credited ---------- */
.author-tag { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.role-pill {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.author-name { font-weight: 600; color: var(--text); }
.role-pill-lg { font-size: 0.85rem; padding: 6px 14px; border-radius: 6px; }

/* ---------- Staff page: one card, flat [RANK] Name rows ---------- */
.staff-list { display: flex; flex-direction: column; }
.staff-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.staff-row:last-child { border-bottom: none; }
.staff-row .role-pill { flex-shrink: 0; min-width: 84px; text-align: center; }
.staff-row-name { font-weight: 700; color: var(--text); font-size: 0.95rem; }

/* ---------- Admin: drag-and-drop staff order ---------- */
.staff-order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.staff-order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  cursor: grab;
  user-select: none;
}
.staff-order-item:last-child { border-bottom: none; }
.staff-order-item.dragging { opacity: 0.4; background: var(--panel-raised); }
.staff-order-handle { color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: grab; }

/* ---------- Ticket conversation thread ---------- */
.ticket-thread { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.ticket-message {
  background: var(--panel);
  border: 2px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.ticket-message.staff { border-left-color: var(--gold); background: var(--panel-raised); }
.ticket-message-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ticket-message-body { white-space: pre-wrap; color: var(--text); font-size: 0.95rem; line-height: 1.5; }
.ticket-reply-form { margin-top: 20px; }
.ticket-guest-link {
  background: var(--void);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--gold);
  margin-top: 10px;
}

/* ---------- Posts ---------- */
.post-card { display: block; }
.post-meta { color: var(--muted); font-size: 0.8rem; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post-type-tag { background: rgba(45,212,191,0.15); color: var(--moss); padding: 2px 8px; border-radius: 4px; font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .04em; border: 1px solid rgba(45,212,191,0.3); }
.post-type-tag.announcement { background: rgba(244,179,66,0.15); color: var(--gold); border-color: rgba(244,179,66,0.35); }
.post-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.post-card h3 a { color: var(--text); }
.post-excerpt { color: var(--muted); margin: 0; }
.post-body { white-space: pre-wrap; }

/* ---------- Forms ---------- */
.auth-wrap { max-width: 420px; margin: 60px auto; padding: 0 24px; }
.form-card { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: inset 1px 1px 0 rgba(255,255,255,0.05), 0 12px 32px rgba(0,0,0,0.3); }
.form-card h1 { font-size: 1.45rem; margin: 0 0 6px; color: var(--gold); }
.form-card .sub { color: var(--muted); margin: 0 0 26px; font-size: 0.92rem; }

label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.field { margin-bottom: 18px; }
input[type=text], input[type=email], input[type=password], input[type=color], textarea, select {
  width: 100%;
  background: var(--void);
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}
input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, textarea:hover, select:hover { border-color: #5c4a86; }
textarea { resize: vertical; min-height: 120px; }
input:disabled { opacity: 0.6; cursor: not-allowed; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
}
.hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 2px solid;
}
.alert-error { background: rgba(255,107,129,0.1); border-color: rgba(255,107,129,0.4); color: #ffc2cf; }
.alert-success { background: rgba(45,212,191,0.12); border-color: rgba(45,212,191,0.4); color: var(--moss); }

.form-foot { margin-top: 18px; font-size: 0.88rem; color: var(--muted); text-align: center; }

/* Honeypot anti-spam field: invisible and unreachable for real visitors/screen readers,
   but a plain empty text input to simple bots, which fill in every field they find. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: calc(100vh - 130px); }
.admin-side {
  border-right: 2px solid var(--line);
  padding: 28px 16px;
}
.admin-side a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.admin-side a:hover, .admin-side a.active { background: var(--panel-raised); color: var(--gold); text-decoration: none; }
.admin-main { padding: 32px; }
.admin-main h1 { margin-top: 0; color: var(--gold); }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--panel-raised);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  transition: border-color 0.15s ease;
}
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.theme-option-emoji { font-size: 1.8rem; }
.theme-option.selected, .theme-option:has(input:checked) { border-color: var(--gold); background: var(--panel); }

table { width: 100%; border-collapse: collapse; }
table th, table td { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line); font-size: 0.9rem; }
table th { color: var(--muted); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
table tr { transition: background-color 0.1s ease; }
table tr:hover { background-color: rgba(255,255,255,0.025); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 4px; font-size: 0.72rem; font-weight: 700;
  border: 2px solid var(--line);
}
.role-swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

/* ---------- Admin: user search + compact list ---------- */
.user-search { display: flex; gap: 8px; margin: 18px 0 20px; max-width: 480px; }
.user-search input[type=text] { flex: 1; }
.user-list { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.user-row:last-child { border-bottom: none; }
.user-row-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.user-row-email { font-size: 0.85rem; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; font-weight: 500; }

.inline-form { display: inline; }

.muted { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 3px solid var(--line); margin-top: 60px; padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-inner .brand-mark { width: 30px; height: 30px; vertical-align: middle; margin-right: 6px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-contact { flex-direction: column; gap: 6px; font-size: 0.85rem; }
.footer-copy { width: 100%; margin-top: 10px; font-size: 0.8rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--panel-raised);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.partner-badge:hover { border-color: var(--gold); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; border-right: none; border-bottom: 2px solid var(--line); padding: 12px; gap: 4px; }
  .admin-side a { white-space: nowrap; margin-bottom: 0; }
}
@media (max-width: 760px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--panel); flex-direction: column; padding: 12px 24px; border-bottom: 2px solid var(--line); }
  .main-nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 14px; overflow: visible; }
  .nav-more { display: none !important; } /* on mobile every link just shows in the stacked list instead */
  .nav-toggle { display: block; }
  .status-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
