@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&display=swap");

:root {
  --bg-a: #3d2a1a;
  --bg-b: #cc9966;
  --bg-c: #d9ad80;
  --panel: rgba(25, 16, 8, 0.78);
  --panel-line: rgba(204, 153, 102, 0.4);
  --text: #f5ede4;
  --muted: #c4a988;
  --gold: #cc9966;
  --ok: #3ec97f;
  --danger: #ef5350;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background: #0d0a07;
  overflow-x: hidden;
}

body[data-page="home"] {
  background: #0e0b07;
}

body:not([data-page="home"]) {
  background:
    radial-gradient(ellipse 42% 52% at 28% 18%, rgba(204, 153, 102, 0.12), rgba(12, 8, 4, 0) 66%),
    radial-gradient(ellipse 36% 48% at 72% 74%, rgba(204, 160, 110, 0.10), rgba(12, 8, 4, 0) 69%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #120e08 0%, #100c07 58%, #0d0a07 100%);
}

.runtime-alert {
  position: sticky;
  top: 0;
  z-index: 1600;
  margin: 0;
  padding: 10px 16px;
  background: linear-gradient(145deg, rgba(204, 153, 102, 0.94), rgba(180, 130, 80, 0.94));
  color: #1a1208;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid rgba(240, 220, 190, 0.7);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(15, 10, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(204, 153, 102, 0.3);
}

body[data-page="admin-turf-zones"] .topbar {
  background: rgba(15, 10, 5, 0.95);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 14px;
  background: rgba(24, 16, 8, 0.75);
  border: 1px solid rgba(204, 170, 120, 0.45);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.35);
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.25rem;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #f0e0d0;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 160ms ease;
}

.nav a:hover {
  border-color: var(--panel-line);
  background: rgba(204, 153, 102, 0.15);
}

.nav a.active {
  border-color: rgba(204, 170, 120, 0.75);
  background: linear-gradient(145deg, rgba(180, 130, 80, 0.35), rgba(120, 85, 55, 0.35));
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.topbar-actions.auth-resolved {
  opacity: 1;
}

.account-menu {
  position: relative;
}

.account-menu-trigger {
  min-width: 200px;
  max-width: 260px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid rgba(204, 170, 120, 0.3);
  background: linear-gradient(145deg, rgba(28, 20, 12, 0.94), rgba(18, 12, 6, 0.94));
  color: var(--text);
  padding: 8px 11px;
  font: inherit;
  cursor: pointer;
}

.account-menu-trigger:hover {
  border-color: rgba(220, 190, 150, 0.55);
}

.account-caret {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0.85;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1601;
  width: 240px;
  padding: 12px 0;
  border-radius: 16px;
  border: 1px solid rgba(204, 170, 120, 0.25);
  background: linear-gradient(145deg, rgba(20, 14, 8, 0.98), rgba(14, 10, 5, 0.98));
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.45);
}

.account-dropdown-label {
  margin: 0;
  padding: 0 14px;
  font-size: 0.95rem;
  color: #b8a08a;
}

.account-dropdown-name {
  margin: 4px 0 12px;
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.account-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: #f5ede4;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(180, 140, 100, 0.2);
  text-decoration: none;
  padding: 12px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.account-dropdown-item:hover {
  background: rgba(204, 153, 102, 0.12);
}

.account-dropdown-item.current {
  color: #cc9966;
}

.account-logout {
  color: #f5ede4;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  letter-spacing: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  font-size: 20px;
  line-height: 1;
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

.account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(220, 190, 150, 0.65);
  object-fit: cover;
}

.account-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  font-size: 0.92rem;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-discord {
  --shiny-x: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(204, 170, 120, 0.3);
  background: radial-gradient(circle at 50% 0%, rgba(204, 153, 102, 0.1) 0%, transparent 60%);
  background-color: rgba(15, 10, 5, 0.85);
  box-shadow: none;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
  animation: shinySlide 3s ease-in-out infinite;
}

.btn-discord:hover {
  box-shadow: 0 0 20px rgba(204, 153, 102, 0.1);
}

/* Shiny text mask sweep */
.btn-discord {
  -webkit-mask-image: linear-gradient(
    -75deg,
    rgba(204, 153, 102, 1) calc(var(--shiny-x) + 20%),
    transparent calc(var(--shiny-x) + 30%),
    rgba(204, 153, 102, 1) calc(var(--shiny-x) + 100%)
  );
}

/* Shiny border sweep */
.btn-discord::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background-image: linear-gradient(
    -75deg,
    rgba(204, 153, 102, 0.1) calc(var(--shiny-x) + 20%),
    rgba(204, 153, 102, 0.5) calc(var(--shiny-x) + 25%),
    rgba(204, 153, 102, 0.1) calc(var(--shiny-x) + 100%)
  );
  -webkit-mask:
    linear-gradient(#000, #000) content-box exclude,
    linear-gradient(#000, #000);
  mask:
    linear-gradient(#000, #000) content-box exclude,
    linear-gradient(#000, #000);
}

@keyframes shinySlide {
  0% {
    --shiny-x: 100%;
  }
  50% {
    --shiny-x: -100%;
  }
  50.01%, 100% {
    --shiny-x: 100%;
  }
}

@property --shiny-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

.btn-gold {
  background: linear-gradient(145deg, #d9ad80, var(--gold) 54%, #a67a4d);
  color: #1a1208;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(204, 170, 120, 0.45);
}

.btn-danger {
  background: rgba(239, 83, 80, 0.2);
  border: 1px solid rgba(239, 83, 80, 0.6);
  color: #ffd8d7;
}

.hidden {
  display: none !important;
}

main {
  flex: 1;
  width: min(1180px, 100% - 28px);
  margin: 30px auto 50px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.panel {
  padding: clamp(18px, 4vw, 28px);
  border-radius: 24px;
  border: 1px solid var(--panel-line);
  background: linear-gradient(165deg, var(--panel), rgba(25, 18, 10, 0.7));
  box-shadow: var(--shadow);
}

h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.section-text {
  margin-top: 0;
  color: #e5d0ba;
}

.whitelist-locked-panel {
  max-width: 900px;
  margin-inline: auto;
  background: linear-gradient(165deg, rgba(18, 12, 6, 0.92), rgba(14, 10, 5, 0.92));
  border-color: rgba(180, 140, 100, 0.24);
}

.whitelist-locked-text {
  margin: 0;
  color: #e5d0ba;
  font-size: 1.1rem;
}

.whitelist-locked-text a {
  color: #d9ad80;
  font-weight: 700;
  text-decoration: none;
}

.whitelist-locked-text a:hover {
  color: #e5c49a;
  text-decoration: underline;
}

.form-panel form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid rgba(204, 170, 120, 0.42);
  background: rgba(22, 14, 6, 0.72);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.steam-link-field {
  display: grid;
  gap: 8px;
}

.steam-link-label {
  font-weight: 600;
}

.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(27, 40, 56, 0.6);
  background: linear-gradient(145deg, #1b2838, #171a21);
  color: #c7d5e0;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: fit-content;
}

.btn-steam:hover {
  border-color: rgba(102, 153, 204, 0.5);
  background: linear-gradient(145deg, #233347, #1b2838);
}

.steam-linked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(62, 201, 127, 0.3);
  background: rgba(62, 201, 127, 0.1);
  color: #3ec97f;
  font-weight: 600;
  font-size: 0.9rem;
  width: fit-content;
}

.linked-accounts-list {
  display: grid;
  gap: 12px;
}

.linked-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(204, 170, 120, 0.2);
  background: rgba(22, 14, 6, 0.5);
}

.linked-account-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.linked-account-info img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.linked-account-name {
  font-weight: 600;
  color: var(--text);
}

.linked-account-id {
  font-size: 0.82rem;
  color: #8a7a6a;
}

.linked-account-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3ec97f;
}

.linked-account-status.not-linked {
  color: #8a7a6a;
}

.btn-unlink {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(239, 83, 80, 0.4);
  background: rgba(239, 83, 80, 0.12);
  color: #ef5350;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-unlink:hover {
  background: rgba(239, 83, 80, 0.25);
  border-color: rgba(239, 83, 80, 0.6);
}

input[readonly] {
  opacity: 0.9;
  cursor: not-allowed;
}

.form-section-title {
  margin: 8px 0 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
}

.feedback {
  min-height: 24px;
  margin: 4px 0 0;
  font-weight: 700;
}

.feedback.ok {
  color: var(--ok);
}

.feedback.error {
  color: #ff9f9d;
}

.rules-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #eedcc8;
}

.rules-list li {
  margin-bottom: 8px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-grid.stack {
  margin-top: 14px;
  grid-template-columns: 1fr;
}

.profile-card {
  border: 1px solid rgba(204, 170, 120, 0.34);
  background: rgba(20, 14, 8, 0.58);
  border-radius: 16px;
  padding: 14px;
}

.profile-card h3 {
  margin: 0 0 10px;
}

.user-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(220, 190, 150, 0.52);
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.status-pending {
  background: rgba(204, 153, 102, 0.22);
  border: 1px solid rgba(204, 153, 102, 0.62);
  color: #e5d0ba;
}

.status-approved {
  background: rgba(62, 201, 127, 0.2);
  border: 1px solid rgba(62, 201, 127, 0.6);
  color: #c4f2da;
}

.status-rejected {
  background: rgba(239, 83, 80, 0.2);
  border: 1px solid rgba(239, 83, 80, 0.6);
  color: #ffd5d4;
}

.status-blacklisted {
  background: rgba(239, 83, 80, 0.2);
  border: 1px solid rgba(239, 83, 80, 0.65);
  color: #ffd5d4;
}

.status-clear {
  background: rgba(62, 201, 127, 0.2);
  border: 1px solid rgba(62, 201, 127, 0.6);
  color: #c4f2da;
}

.blacklist-form {
  margin-top: 10px;
  margin-bottom: 14px;
  display: grid;
  gap: 10px;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  min-width: 28px;
  text-align: center;
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(204, 153, 102, 0.2);
  border: 1px solid rgba(204, 170, 120, 0.46);
  font-weight: 700;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(204, 170, 120, 0.18);
  font-size: 0.95rem;
}

th {
  color: #e0cbb5;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.inline-link {
  color: #d9ad80;
  font-weight: 700;
  text-decoration: none;
}

.inline-link:hover {
  color: #e5c49a;
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

.recruiter-toolbar {
  margin: 10px 0 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.recruiter-search {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid rgba(180, 140, 100, 0.24);
  background: rgba(16, 11, 6, 0.88);
  padding: 9px 10px;
}

.recruiter-search input {
  border: 0;
  background: transparent;
  padding: 0;
}

.recruiter-search input:focus {
  outline: none;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.icon-action-btn {
  width: 36px;
  height: 34px;
  padding: 0;
}

.icon-action-btn .material-symbols-outlined {
  font-size: 19px;
}

.btn-small {
  padding: 6px 10px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.recruiter-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.recruiter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 2, 0.76);
}

.recruiter-modal-panel {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(84vh, 860px);
  overflow: auto;
}

.recruiter-dossier-body {
  margin-top: 10px;
}

.recruiter-dossier-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recruiter-dossier-grid .wide {
  grid-column: 1 / -1;
}

.recruiter-dossier-grid strong {
  display: block;
  margin-bottom: 5px;
  color: #e5d0ba;
}

.recruiter-dossier-grid p {
  margin: 0;
  color: #f0e0d0;
}

.player-manage-modal-panel {
  width: min(1100px, 100%);
  max-height: min(88vh, 980px);
}

.player-manage-body {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.player-manage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(180, 140, 100, 0.22);
  border-radius: 12px;
  background: rgba(18, 12, 6, 0.55);
  padding: 12px;
}

.player-manage-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-manage-card {
  border-color: rgba(180, 140, 100, 0.24);
  background: rgba(16, 11, 6, 0.72);
}

.player-manage-form {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-section-panel {
  background:
    radial-gradient(circle at 20% 0%, rgba(204, 153, 102, 0.06), transparent 48%),
    linear-gradient(165deg, rgba(14, 10, 5, 0.96), rgba(10, 7, 3, 0.96));
  border-color: rgba(180, 140, 100, 0.35);
}

.admin-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-grid-s3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

.admin-card {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  border-radius: 14px;
  border: 1px solid rgba(180, 140, 100, 0.28);
  background: linear-gradient(145deg, rgba(28, 20, 12, 0.92), rgba(18, 13, 7, 0.92));
  color: #f5ede4;
  text-decoration: none;
  padding: 14px 16px 16px;
  display: grid;
  gap: 8px;
  transition: transform 140ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.admin-card:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 180, 130, 0.6);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

.admin-card .material-symbols-outlined {
  font-size: 20px;
  color: #e5d0ba;
}

.admin-card strong {
  font-size: 1.52rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  line-height: 1;
}

.admin-card p {
  margin: 0;
  color: #d5bfa5;
  max-width: 92%;
}

.admin-metric {
  margin-top: auto;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(204, 170, 120, 0.36);
  background: rgba(180, 130, 80, 0.2);
  padding: 3px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f0e0d0;
}

.admin-mark {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 72px;
  height: 72px;
  opacity: 0.2;
  filter: saturate(0.9) contrast(1.08);
  pointer-events: none;
}

.admin-purple {
  border-color: rgba(195, 145, 100, 0.6);
  background: linear-gradient(145deg, rgba(50, 30, 16, 0.82), rgba(20, 14, 8, 0.92));
}

.admin-violet {
  border-color: rgba(190, 150, 110, 0.55);
  background: linear-gradient(145deg, rgba(45, 28, 14, 0.84), rgba(18, 12, 6, 0.92));
}

.admin-amber {
  border-color: rgba(220, 170, 100, 0.58);
  background: linear-gradient(145deg, rgba(55, 35, 15, 0.86), rgba(20, 14, 8, 0.92));
}

.admin-red {
  border-color: rgba(239, 83, 80, 0.56);
  background: linear-gradient(145deg, rgba(60, 18, 15, 0.86), rgba(22, 14, 8, 0.92));
}

.admin-cyan {
  border-color: rgba(204, 170, 120, 0.58);
  background: linear-gradient(145deg, rgba(40, 28, 14, 0.86), rgba(18, 12, 6, 0.92));
}

.admin-green {
  border-color: rgba(120, 180, 87, 0.54);
  background: linear-gradient(145deg, rgba(32, 40, 11, 0.84), rgba(18, 14, 8, 0.92));
}

.admin-orange {
  border-color: rgba(204, 153, 102, 0.6);
  background: linear-gradient(145deg, rgba(55, 33, 14, 0.86), rgba(20, 14, 8, 0.92));
}

.admin-magenta {
  border-color: rgba(220, 130, 100, 0.56);
  background: linear-gradient(145deg, rgba(55, 20, 15, 0.86), rgba(22, 14, 8, 0.92));
}

.turf-main {
  width: min(1260px, 100% - 28px);
  margin: 30px auto 50px;
  display: grid;
  gap: 16px;
}

.turf-hero-panel {
  background:
    radial-gradient(ellipse 42% 60% at 8% 0%, rgba(204, 153, 102, 0.10), transparent 68%),
    linear-gradient(165deg, rgba(12, 8, 4, 0.96), rgba(16, 11, 6, 0.92));
}

.turf-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.turf-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.turf-toolbar {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.turf-search {
  margin: 0;
}

.turf-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.turf-filter-btn.is-active {
  border-color: rgba(204, 170, 120, 0.68);
  background: linear-gradient(145deg, rgba(150, 100, 60, 0.35), rgba(60, 40, 20, 0.64));
}

.turf-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid rgba(180, 140, 100, 0.3);
  background: rgba(14, 10, 5, 0.82);
  padding: 8px 11px;
  color: #e5d3be;
  font-weight: 600;
}

.turf-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.turf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(330px, 0.92fr);
  gap: 16px;
  align-items: stretch;
}

.turf-map-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-bottom: 16px;
}

.turf-map-shell {
  border-radius: 18px;
  border: 1px solid rgba(180, 140, 100, 0.34);
  background: rgba(8, 5, 2, 0.96);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(150, 110, 70, 0.14);
}

.turf-map-shell:fullscreen,
.turf-map-shell:-webkit-full-screen,
.turf-map-shell.is-fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #080604;
}

.turf-svg {
  width: 100%;
  display: block;
  aspect-ratio: 1000 / 680;
}

.gang-map {
  width: 100%;
  min-height: 440px;
  height: min(72vh, 760px);
  background: #0d0a05;
}

.turf-map-shell:fullscreen .gang-map,
.turf-map-shell:-webkit-full-screen .gang-map,
.turf-map-shell.is-fullscreen .gang-map {
  min-height: 100vh;
  height: 100vh;
}

.gang-map.leaflet-container {
  font-family: "Barlow", sans-serif;
  background: #0d0a05;
}

.gang-map .leaflet-control-zoom a {
  background: rgba(14, 10, 5, 0.92);
  color: #e5d3be;
  border-color: rgba(180, 140, 100, 0.34);
}

.gang-map .leaflet-control-zoom a:hover {
  background: rgba(35, 25, 15, 0.95);
}

.gang-map .leaflet-control-attribution {
  background: rgba(12, 8, 4, 0.84);
  color: #d5c0a8;
}

.gang-map .leaflet-control-attribution a {
  color: #efe4d6;
}

.turf-emoji-marker {
  background: transparent;
  border: 0;
}

.turf-emoji-chip {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(204, 170, 120, 0.52);
  background: rgba(12, 8, 4, 0.86);
  box-shadow: 0 8px 16px rgba(5, 3, 1, 0.55);
  font-size: 20px;
  line-height: 1;
  user-select: none;
}

.turf-map-tiles {
  filter: saturate(1.07) contrast(1.02) brightness(0.82);
}

.turf-map-tile {
  image-rendering: auto;
}

.turf-map-overlay {
  fill: rgba(10, 6, 2, 0.34);
  pointer-events: none;
}

.turf-coastline {
  fill: rgba(40, 28, 14, 0.26);
  stroke: rgba(180, 140, 100, 0.24);
  stroke-width: 2;
}

.turf-road {
  fill: none;
  stroke: rgba(204, 170, 120, 0.18);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
}

.turf-zone {
  stroke: rgba(240, 220, 190, 0.38);
  stroke-width: 1.6;
  cursor: pointer;
  transition: transform 130ms ease, filter 160ms ease, opacity 140ms ease, stroke-color 140ms ease;
  transform-origin: center;
}

.turf-zone:hover {
  filter: brightness(1.12);
}

.turf-zone.is-active {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 15px rgba(204, 153, 102, 0.42));
}

.turf-zone.is-muted {
  opacity: 0.25;
}

.turf-zone.is-contested {
  stroke-dasharray: 10 7;
  animation: turfPulseStroke 1.7s linear infinite;
}

.turf-zone-label {
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  fill: #f5ede4;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(10, 6, 2, 0.9);
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 140ms ease, fill 140ms ease;
}

.turf-zone-label.is-active {
  fill: #ffffff;
  stroke: rgba(14, 10, 5, 0.98);
}

.turf-legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.turf-map-credit {
  margin-top: 10px;
  margin-bottom: 0;
  color: #b8a08a;
  font-size: 0.82rem;
}

.turf-map-credit a {
  color: #e5d0ba;
}

.turf-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(180, 140, 100, 0.3);
  background: rgba(12, 8, 4, 0.78);
  color: #e5d3be;
  font-size: 0.85rem;
  font-weight: 600;
}

.turf-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.turf-swatch-gang {
  background: #f97373;
}

.turf-swatch-institution {
  background: #a78bfa;
}

.turf-swatch-hood {
  background: #fb7185;
}

.turf-swatch-enterprise {
  background: #f59e0b;
}

.turf-swatch-government {
  background: #38bdf8;
}

.turf-swatch-business {
  background: #f59e0b;
}

.turf-swatch-neutral {
  background: #a78bfa;
}

.turf-swatch-contested {
  background: repeating-linear-gradient(
    135deg,
    #f8c36b 0 4px,
    #ff5b5b 4px 8px
  );
}

.turf-side-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  max-height: min(76vh, 920px);
  overflow: hidden;
  min-height: 0;
}

.turf-details {
  border: 1px solid rgba(180, 140, 100, 0.26);
  background: rgba(12, 8, 4, 0.8);
  border-radius: 14px;
  padding: 12px;
}

.turf-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.turf-details-grid strong {
  display: block;
  margin-top: 2px;
  color: #f5ede4;
  font-size: 1rem;
  line-height: 1.2;
}

.turf-details-note {
  margin-top: 10px;
  color: #d5c0a8;
  font-size: 0.92rem;
}

.turf-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(204, 170, 120, 0.35);
  background: rgba(150, 100, 60, 0.23);
  padding: 4px 8px;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.turf-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 8px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.turf-list-item {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(180, 140, 100, 0.28);
  background: linear-gradient(145deg, rgba(22, 16, 10, 0.9), rgba(14, 10, 6, 0.9));
  padding: 10px;
  color: #f0e5d8;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
}

.turf-list-item:hover {
  border-color: rgba(220, 180, 130, 0.56);
}

.turf-list-item.is-active {
  border-color: rgba(230, 200, 160, 0.74);
  box-shadow: 0 8px 20px rgba(10, 6, 2, 0.48);
}

.turf-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.turf-list-title {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  font-size: 1.35rem;
  line-height: 1;
}

.turf-list-meta {
  color: #d0b898;
  font-size: 0.86rem;
}

.turf-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(204, 170, 120, 0.32);
  background: rgba(150, 100, 60, 0.2);
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.turf-status.stable {
  border-color: rgba(74, 222, 128, 0.48);
  background: rgba(30, 116, 67, 0.28);
  color: #ccf5de;
}

.turf-status.contested {
  border-color: rgba(248, 113, 113, 0.58);
  background: rgba(145, 34, 52, 0.35);
  color: #ffe1de;
}

.turf-status.cooldown {
  border-color: rgba(251, 191, 36, 0.58);
  background: rgba(117, 77, 18, 0.32);
  color: #ffecc7;
}

.turf-admin-main {
  width: min(1400px, 100% - 28px);
}

.turf-admin-layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.92fr);
}

.turf-admin-map {
  min-height: 520px;
  height: min(74vh, 880px);
}

.turf-admin-draw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.turf-admin-draw-toolbar .muted {
  margin-left: auto;  
  flex: 1;
  min-width: 220px;
}

.turf-admin-side-panel {
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  max-height: none;
  min-height: min(88vh, 1120px);
  overflow: visible;
}

.turf-admin-side-panel .turf-list {
  min-height: 260px;
  max-height: min(42vh, 560px);
}

.turf-admin-form {
  display: grid;
  gap: 10px;
}

.turf-admin-form .field {
  margin: 0;
}

.turf-admin-form textarea {
  min-height: 84px;
  resize: vertical;
}

.turf-color-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.turf-color-input-row input[type="color"] {
  width: 52px;
  min-width: 52px;
  height: 40px;
  padding: 4px;
  border-radius: 10px;
  cursor: pointer;
}

@keyframes turfPulseStroke {
  0% {
    stroke-opacity: 0.45;
  }
  50% {
    stroke-opacity: 1;
  }
  100% {
    stroke-opacity: 0.45;
  }
}

.home-main {
  flex: 1;
  width: 100%;
  margin: 0;
  display: block;
}

.home-hero {
  position: relative;
  min-height: calc(100vh - 82px);
  overflow: hidden;
}

.home-hero-media,
.home-hero-overlay {
  position: absolute;
  inset: 0;
}

.home-hero-media {
  background-image: url("https://images.unsplash.com/photo-1533658280853-e4a10c25a30d?q=80&w=1026&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-position: center center;
}

.home-hero-overlay {
  background:
    linear-gradient(180deg, rgba(10, 7, 3, 0.66) 0%, rgba(10, 7, 3, 0.52) 34%, rgba(10, 7, 3, 0.82) 100%),
    radial-gradient(circle at center, rgba(204, 153, 102, 0.2), rgba(10, 7, 3, 0.9) 70%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 82px);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 32px 20px;
}

.home-overline {
  margin: 0 0 12px;
  color: #e5d0ba;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-weight: 700;
  font-size: 0.86rem;
}

.home-mark {
  margin: 0;
  width: min(620px, 88vw);
  line-height: 1;
}

.home-mark-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-stats-compact {
  margin-top: 20px;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-inline: auto;
  text-align: center;
}

.home-stat-item {
  min-width: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-stat-line {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: #efe2d2;
  list-style: none;
}

.home-stat-line::before,
.home-avatar-circles::before,
.home-stat-subtitle::before {
  content: none !important;
}

.home-stats-compact *::marker {
  content: "";
}

.home-stat-line + .home-stat-line {
  margin-top: 8px;
}

.home-stat-line strong {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-stat-subtitle {
  margin: 2px 0 0;
  color: #b8a08a;
  font-size: 0.9rem;
  text-transform: lowercase;
}

.home-avatar-circles {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}

.home-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(14, 10, 6, 0.9);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.home-avatar-circle + .home-avatar-circle {
  margin-left: -10px;
}

.home-avatar-circle-placeholder {
  display: inline-block;
  background: radial-gradient(circle at 28% 28%, rgba(210, 170, 125, 0.55), rgba(120, 85, 52, 0.55));
}

.home-avatar-circle-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(204, 153, 102, 0.42), rgba(120, 85, 52, 0.42));
  color: #fff8ef;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0 7px;
  min-width: 42px;
}

.home-cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: min(980px, 100%);
  margin-inline: auto;
}

.home-btn {
  min-width: 210px;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(204, 170, 120, 0.3);
  transition: transform 120ms ease, box-shadow 160ms ease;
}

.home-btn:hover {
  transform: translateY(-1px);
}

.home-btn-primary {
  background: linear-gradient(145deg, rgba(40, 28, 16, 0.92), rgba(28, 20, 12, 0.92));
  box-shadow: 0 10px 24px rgba(8, 5, 2, 0.55);
}

/* ═══ TRAILER SECTION ═══ */

.home-trailer-section {
  width: min(1180px, 100% - 28px);
  margin: 50px auto 0;
}

.home-trailer-section .hero-video-dialog {
  max-width: 820px;
  margin: 16px auto 0;
}

.hero-video-dialog {
  margin-top: 16px;
}

.hero-video-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(15, 10, 5, 0.6);
  border: 1px solid rgba(204, 170, 120, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: brightness 0.2s ease;
}

.hero-video-thumb-btn:hover {
  filter: brightness(0.8);
}

.hero-video-thumb-btn:hover .hero-video-play-circle {
  transform: scale(1.15);
}

.hero-video-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: inherit;
}

.hero-video-play-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-video-play-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-video-thumb-btn:hover .hero-video-play-circle {
  background: rgba(0, 0, 0, 0.6);
}

.hero-video-play-icon {
  width: 34px;
  height: 34px;
  margin-left: 3px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Overlay / Dialog */
.hero-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  animation: hvdFadeIn 0.25s ease;
}

.hero-video-dialog-box {
  position: relative;
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: hvdScaleIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-video-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-video-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.hero-video-close:hover {
  background: rgba(60, 60, 60, 0.7);
}

@keyframes hvdFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hvdScaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ═══ USEFUL WRAP ═══ */

.home-useful-wrap {
  width: min(1180px, 100% - 28px);
  margin: 30px auto 50px;
}

.home-useful-head h2 {
  margin: 0;
  font-family: "Barlow", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.home-useful-head p {
  margin: 8px 0 0;
  color: #b8a08a;
  font-size: 1rem;
}

.home-useful-wrap .useful-links {
  margin-top: 16px;
}

.home-useful-wrap .useful-link-card {
  background: linear-gradient(145deg, rgba(22, 16, 10, 0.96), rgba(16, 11, 6, 0.96));
}

.home-staff-section {
  margin-top: 30px;
}

.home-staff-grid {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-staff-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-staff-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(180, 140, 100, 0.15);
}

.home-staff-group-badge {
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.home-staff-group-count {
  font-size: 0.82rem;
  color: #8a7a6a;
  font-weight: 500;
}

.home-staff-group-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-staff-card {
  text-decoration: none;
  color: #f2e8dc;
  border-radius: 14px;
  border: 1px solid rgba(180, 140, 100, 0.2);
  background: linear-gradient(155deg, rgba(22, 16, 10, 0.95), rgba(12, 9, 5, 0.95));
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: transform 140ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-staff-card:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 190, 140, 0.5);
  box-shadow: 0 12px 28px rgba(5, 3, 1, 0.55);
}

.home-staff-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(220, 190, 150, 0.5);
  flex-shrink: 0;
}

.home-staff-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  width: 100%;
}

.home-staff-copy strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.home-staff-copy small {
  color: #8a7a6a;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.home-staff-role-admin {
  background: rgba(204, 153, 102, 0.16);
  border-color: rgba(204, 153, 102, 0.58);
  color: #e5c49a;
}

.home-staff-role-moderator {
  background: rgba(180, 140, 100, 0.16);
  border-color: rgba(180, 140, 100, 0.58);
  color: #dcc8b0;
}

.home-staff-role-staff {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.58);
  color: #bfdbfe;
}

.home-staff-role-recruiter {
  background: rgba(62, 201, 127, 0.16);
  border-color: rgba(62, 201, 127, 0.58);
  color: #c9f2dd;
}

.home-staff-role-default {
  background: rgba(160, 140, 120, 0.18);
  border-color: rgba(160, 140, 120, 0.54);
  color: #e0ccb5;
}

.home-staff-empty {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(180, 140, 100, 0.28);
  background: rgba(16, 11, 6, 0.76);
  padding: 14px;
}

body[data-page="reglement"] {
  background:
    radial-gradient(ellipse 38% 50% at 20% 12%, rgba(204, 153, 102, 0.10), rgba(12, 8, 4, 0) 66%),
    radial-gradient(ellipse 34% 44% at 82% 76%, rgba(180, 130, 80, 0.08), rgba(12, 8, 4, 0) 72%),
    linear-gradient(180deg, #120e08 0%, #0e0b07 100%);
}

.gitbook-main {
  width: min(1500px, 100% - 28px);
}

.gitbook-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
}

.gitbook-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  border: 1px solid rgba(180, 140, 100, 0.25);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 16, 10, 0.96), rgba(16, 11, 6, 0.96));
  padding: 14px;
}

.gitbook-sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #f5ede4;
  font-weight: 700;
}

.gitbook-server-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 14px;
  color: #cc9966;
  border: 1px solid rgba(180, 140, 100, 0.26);
  background: rgba(150, 100, 60, 0.14);
  font-weight: 700;
}

.gitbook-nav {
  display: grid;
  gap: 4px;
}

.gitbook-nav-group {
  margin: 12px 0 6px;
  font-size: 0.78rem;
  color: #a8907a;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.gitbook-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #e5d3be;
  border: 1px solid transparent;
  transition: 140ms ease;
  font-size: 0.95rem;
}

.gitbook-nav-link:hover {
  border-color: rgba(180, 140, 100, 0.38);
  background: rgba(150, 100, 60, 0.12);
}

.gitbook-nav-link.active {
  border-color: rgba(204, 170, 120, 0.58);
  background: rgba(180, 130, 80, 0.2);
  color: #f5ede4;
}

.docs-sidebar-group {
  border-radius: 10px;
  border: 1px solid rgba(160, 120, 80, 0.2);
  background: rgba(22, 16, 10, 0.62);
}

.docs-sidebar-group + .docs-sidebar-group {
  margin-top: 6px;
}

.docs-sidebar-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  color: #e0ccb5;
  font-weight: 600;
}

.docs-sidebar-group summary::-webkit-details-marker {
  display: none;
}

.docs-group-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.docs-group-link:hover {
  color: #f5ede4;
}

.docs-sidebar-group .chev {
  flex-shrink: 0;
  transition: transform 160ms ease;
}

.docs-sidebar-group[open] .chev {
  transform: rotate(90deg);
}

.docs-subnav {
  display: grid;
  gap: 4px;
  padding: 0 10px 10px 36px;
}

.docs-subnav-link {
  text-decoration: none;
  color: #b8a08a;
  border-radius: 8px;
  padding: 7px 9px;
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.docs-subnav-link:hover {
  border-color: rgba(180, 140, 100, 0.36);
  color: #ebe0d2;
  background: rgba(150, 100, 60, 0.14);
}

.docs-subnav-link.active {
  border-color: rgba(204, 170, 120, 0.52);
  color: #f5ede4;
  background: rgba(180, 130, 80, 0.22);
}

.gitbook-sidebar-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(160, 120, 80, 0.25);
  color: #b09880;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gitbook-content {
  display: grid;
  gap: 14px;
}

.gitbook-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(160, 120, 80, 0.24);
  border-radius: 14px;
  background: rgba(22, 16, 10, 0.92);
  padding: 10px;
}

.gitbook-search {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid rgba(180, 140, 100, 0.24);
  background: rgba(16, 11, 6, 0.88);
  padding: 8px 10px;
}

.gitbook-search input {
  background: transparent;
  border: 0;
  padding: 0;
}

.gitbook-search input:focus {
  outline: none;
}

.gitbook-kbd {
  margin-left: auto;
  border: 1px solid rgba(180, 140, 100, 0.3);
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 0.78rem;
  color: #b09880;
  font-weight: 700;
}

.gitbook-toolbar-actions {
  display: flex;
  gap: 8px;
}

.gitbook-toolbar-btn {
  text-decoration: none;
  color: #f2e8dc;
  border-radius: 10px;
  border: 1px solid rgba(180, 140, 100, 0.32);
  padding: 9px 14px;
  font-weight: 700;
  background: linear-gradient(145deg, rgba(150, 100, 60, 0.28), rgba(100, 65, 35, 0.28));
}

.gitbook-toolbar-btn.secondary {
  background: rgba(28, 20, 12, 0.88);
}

.gitbook-article {
  border: 1px solid rgba(160, 120, 80, 0.25);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 16, 10, 0.96), rgba(16, 12, 6, 0.96));
  padding: clamp(18px, 4vw, 30px);
}

.gitbook-breadcrumb {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8907a;
  font-weight: 700;
}

.gitbook-article h1 {
  margin: 10px 0 8px;
  font-family: "Barlow", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: 0;
}

.gitbook-lead {
  margin: 0;
  color: #dcc8b0;
  line-height: 1.6;
}

.gitbook-callout {
  margin-top: 16px;
  border: 1px solid rgba(180, 140, 100, 0.28);
  background: rgba(150, 100, 60, 0.12);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.gitbook-callout p {
  margin: 0;
  color: #e5d0ba;
  line-height: 1.5;
}

.docs-cards {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.docs-card {
  text-decoration: none;
  color: #f0e5d8;
  border-radius: 12px;
  border: 1px solid rgba(180, 140, 100, 0.25);
  background: rgba(22, 16, 10, 0.86);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
}

.docs-card:hover {
  border-color: rgba(204, 170, 120, 0.55);
  background: rgba(30, 22, 14, 0.9);
}

.docs-card strong {
  display: block;
  margin-bottom: 3px;
}

.docs-card p {
  margin: 0;
  color: #d0b898;
  font-size: 0.92rem;
}

.docs-card .arrow {
  margin-left: auto;
}

.useful-links {
  margin-top: 18px;
}

.useful-links-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: #b09880;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

.useful-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.useful-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid rgba(180, 140, 100, 0.24);
  background: linear-gradient(145deg, rgba(22, 16, 10, 0.96), rgba(16, 12, 6, 0.96));
  padding: 14px;
  color: #f0e5d8;
  text-decoration: none;
}

.useful-link-card:hover {
  border-color: rgba(204, 170, 120, 0.52);
  background: linear-gradient(145deg, rgba(30, 22, 14, 0.96), rgba(22, 16, 10, 0.96));
}

.useful-link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(180, 140, 100, 0.24);
  background: rgba(30, 22, 14, 0.86);
  color: #dcc8b0;
  font-size: 26px;
}

.useful-link-copy {
  display: grid;
  gap: 2px;
}

.useful-link-copy strong {
  font-size: 1.05rem;
}

.useful-link-copy small {
  color: #b8a08a;
  font-size: 0.9rem;
}

.useful-link-arrow {
  margin-left: auto;
  color: #b8a08a;
}

.rule-accordion {
  margin-top: 12px;
  border: 1px solid rgba(160, 120, 80, 0.26);
  border-radius: 12px;
  background: rgba(18, 13, 7, 0.84);
  overflow: hidden;
}

.rule-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 14px;
  font-weight: 700;
  color: #e5d0ba;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-accordion summary::-webkit-details-marker {
  display: none;
}

.rule-accordion summary::before {
  content: ">";
  color: #cc9966;
  font-weight: 700;
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.rule-accordion[open] summary::before {
  transform: rotate(90deg);
}

.rule-content {
  padding: 0 14px 14px;
  color: #d5bfa5;
}

.rule-content p {
  margin: 0;
  line-height: 1.6;
}

.gitbook-faq {
  margin-top: 12px;
  border: 1px solid rgba(160, 120, 80, 0.24);
  border-radius: 12px;
  background: rgba(16, 11, 6, 0.86);
  padding: 0 12px;
}

.gitbook-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  color: #d9ad80;
  font-weight: 700;
}

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

.gitbook-faq p {
  margin: 0 0 12px;
  color: #e0ccb5;
}

.gitbook-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(160, 120, 80, 0.24);
}

.gitbook-section h2 {
  margin: 0 0 10px;
  font-family: "Barlow", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  letter-spacing: 0;
}

.gitbook-section .rules-list {
  margin: 0;
  padding-left: 18px;
}

.gitbook-section .rules-list li {
  color: #e5d3be;
  margin-bottom: 8px;
}

.gitbook-pagination {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gitbook-page-link {
  text-decoration: none;
  color: #efe4d6;
  border-radius: 12px;
  border: 1px solid rgba(180, 140, 100, 0.26);
  background: rgba(24, 18, 10, 0.88);
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}

.gitbook-page-link:hover {
  border-color: rgba(204, 170, 120, 0.48);
}

.gitbook-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  border-left: 1px solid rgba(160, 120, 80, 0.24);
  padding-left: 14px;
}

.gitbook-toc-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a8907a;
  font-weight: 700;
}

.gitbook-toc-link {
  display: block;
  text-decoration: none;
  color: #c8b098;
  padding: 5px 0;
  font-size: 0.92rem;
}

.gitbook-toc-link:hover {
  color: #ede2d4;
}

.footer {
  margin-top: auto;
  border-top: 1px solid rgba(204, 153, 102, 0.2);
  background: rgba(10, 7, 3, 0.6);
  backdrop-filter: blur(10px);
  color: #c4a988;
  padding: 40px clamp(16px, 4vw, 40px) 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(24, 16, 8, 0.75);
  border: 1px solid rgba(204, 170, 120, 0.35);
  padding: 4px;
}

.footer-title {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.footer-tagline {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #8a7a6a;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-label {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(204, 170, 120, 0.7);
  margin-bottom: 4px;
}

.footer-links a {
  text-decoration: none;
  color: #c4a988;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(204, 170, 120, 0.25);
  background: rgba(25, 16, 8, 0.7);
  color: #c4a988;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover {
  border-color: rgba(204, 170, 120, 0.6);
  color: var(--text);
  background: rgba(204, 153, 102, 0.12);
}

.footer-bottom {
  border-top: 1px solid rgba(204, 153, 102, 0.12);
  text-align: center;
  padding: 16px 0;
}

.footer-bottom small {
  font-size: 0.78rem;
  color: #6a5a4a;
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-links {
    align-items: center;
  }
  .footer-socials {
    align-items: center;
  }
  .footer-social-icons {
    justify-content: center;
  }
}

/* ═══ WEB TV ═══ */

.webtv-main {
  flex: 1;
  width: min(1280px, 100% - 28px);
  margin: 30px auto 50px;
  display: grid;
  gap: 18px;
}

.webtv-shell {
  display: grid;
  gap: 18px;
}

.webtv-hero {
  display: flex;
}

.webtv-hero-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.webtv-hero-head h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
}

.webtv-hero-head h1 .material-symbols-outlined {
  font-size: 32px;
  color: #cc9966;
}

.webtv-featured {
  border: 1px solid rgba(204, 170, 120, 0.32);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(22, 16, 10, 0.96), rgba(14, 10, 5, 0.96));
  padding: 16px;
  display: grid;
  gap: 12px;
}

.webtv-featured-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.webtv-featured-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.webtv-player {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 7, 3, 0.6);
}

.webtv-player iframe {
  display: block;
}

.webtv-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.webtv-toolbar .recruiter-search {
  flex: 1;
  min-width: 200px;
}

.webtv-filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.webtv-filter.is-active {
  border-color: rgba(204, 170, 120, 0.68);
  background: linear-gradient(145deg, rgba(150, 100, 60, 0.35), rgba(60, 40, 20, 0.64));
  color: #f5ede4;
}

.webtv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding-top: 15px;
}

.webtv-card {
  border: 1px solid rgba(180, 140, 100, 0.26);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(22, 16, 10, 0.94), rgba(14, 10, 5, 0.94));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 140ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.webtv-card:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 180, 130, 0.5);
  box-shadow: 0 14px 30px rgba(5, 3, 1, 0.45);
}

.webtv-card-top {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 16px 10px;
}

.webtv-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(220, 190, 150, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.webtv-platform-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.webtv-platform-badge .material-symbols-outlined {
  font-size: 15px;
}

.webtv-card-body {
  padding: 6px 16px 10px;
  text-align: center;
  flex: 1;
}

.webtv-card-name {
  display: block;
  font-size: 1.14rem;
  color: #f5ede4;
}

.webtv-card-desc {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #c4a988;
  line-height: 1.4;
}

.webtv-card-channel {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: #b09880;
}

.webtv-card-actions {
  padding: 10px 16px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  border-top: 1px solid rgba(180, 140, 100, 0.16);
}

.webtv-card-admin {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}

.webtv-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.webtv-empty {
  padding: 40px 0;
}

/* ═══ VOCAL PANEL ═══ */

.vocal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.vocal-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(180, 140, 100, 0.22);
  background: linear-gradient(165deg, rgba(22, 16, 10, 0.92), rgba(14, 10, 5, 0.92));
}

.vocal-stat-card .material-symbols-outlined {
  font-size: 28px;
  opacity: 0.85;
}

.vocal-stat-card strong {
  display: block;
  font-size: 1.6rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1;
}

.vocal-stat-card small {
  font-size: 0.82rem;
  color: #c4a988;
}

.vocal-stat-pending .material-symbols-outlined { color: #e6a740; }
.vocal-stat-pending strong { color: #e6a740; }

.vocal-stat-second .material-symbols-outlined { color: #5ba8ff; }
.vocal-stat-second strong { color: #5ba8ff; }

.vocal-stat-validated .material-symbols-outlined { color: #3ec97f; }
.vocal-stat-validated strong { color: #3ec97f; }

.vocal-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.btn-ok {
  background: linear-gradient(145deg, rgba(62, 201, 127, 0.35), rgba(30, 120, 70, 0.55));
  border: 1px solid rgba(62, 201, 127, 0.5);
  color: #e0ffee;
}

.btn-ok:hover {
  background: linear-gradient(145deg, rgba(62, 201, 127, 0.5), rgba(30, 120, 70, 0.7));
  border-color: rgba(62, 201, 127, 0.7);
}

.btn-warning {
  background: linear-gradient(145deg, rgba(91, 168, 255, 0.3), rgba(40, 90, 180, 0.5));
  border: 1px solid rgba(91, 168, 255, 0.45);
  color: #d0e8ff;
}

.btn-warning:hover {
  background: linear-gradient(145deg, rgba(91, 168, 255, 0.45), rgba(40, 90, 180, 0.65));
  border-color: rgba(91, 168, 255, 0.65);
}

.status-badge.status-ok {
  background: rgba(62, 201, 127, 0.18);
  color: #3ec97f;
  border: 1px solid rgba(62, 201, 127, 0.3);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge.status-warning {
  background: rgba(91, 168, 255, 0.15);
  color: #5ba8ff;
  border: 1px solid rgba(91, 168, 255, 0.3);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge.status-pending {
  background: rgba(230, 167, 64, 0.15);
  color: #e6a740;
  border: 1px solid rgba(230, 167, 64, 0.3);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.vocal-note-preview {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c4a988;
  font-size: 0.86rem;
  cursor: help;
}

.vocal-second-chance-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(91, 168, 255, 0.15);
  color: #5ba8ff;
  border: 1px solid rgba(91, 168, 255, 0.3);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.vocal-second-chance-tag .material-symbols-outlined {
  font-size: 14px;
}

.vocal-validated-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(62, 201, 127, 0.15);
  color: #3ec97f;
  border: 1px solid rgba(62, 201, 127, 0.3);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.vocal-validated-tag .material-symbols-outlined {
  font-size: 14px;
}

.vocal-pending-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(230, 167, 64, 0.15);
  color: #e6a740;
  border: 1px solid rgba(230, 167, 64, 0.3);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.vocal-pending-tag .material-symbols-outlined {
  font-size: 14px;
}

/* ═══ REJECTION REASON BOX ═══ */

.rejection-reason-box {
  border: 1px solid rgba(239, 83, 80, 0.35);
  border-radius: 12px;
  background: rgba(239, 83, 80, 0.08);
  padding: 12px 16px;
}

.rejection-reason-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ef5350;
  margin-bottom: 6px;
}

.rejection-reason-header .material-symbols-outlined {
  font-size: 18px;
}

.rejection-reason-header strong {
  font-size: 0.88rem;
}

.rejection-reason-text {
  margin: 0;
  color: #e0b0ae;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

@media (max-width: 1260px) {
  .gitbook-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .gitbook-toc {
    display: none;
  }
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
  }

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

  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .turf-layout {
    grid-template-columns: 1fr;
  }

  .gang-map {
    height: min(66vh, 620px);
    min-height: 380px;
  }

  .turf-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .turf-side-panel {
    max-height: none;
  }

  .turf-list {
    max-height: 320px;
  }

  .turf-admin-map {
    min-height: 420px;
    height: min(68vh, 640px);
  }

  .turf-admin-draw-toolbar .muted {
    margin-left: 0;
    flex-basis: 100%;
  }

  .turf-admin-side-panel {
    min-height: 0;
    overflow: hidden;
  }

  .turf-admin-side-panel .turf-list {
    min-height: 180px;
    max-height: 360px;
  }

  .home-hero,
  .home-hero-content {
    min-height: calc(100vh - 128px);
  }

  .home-stats-compact {
    width: min(980px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gitbook-layout {
    grid-template-columns: 1fr;
  }

  .gitbook-sidebar {
    position: static;
    max-height: none;
  }

  .home-staff-group-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .webtv-grid {
    grid-template-columns: 1fr;
  }

  .webtv-hero-head {
    flex-direction: column;
    align-items: stretch;
  }

  .webtv-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-text span {
    display: none;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn,
  .account-menu,
  .account-menu-trigger,
  .home-btn {
    width: 100%;
  }

  .account-menu-trigger {
    max-width: none;
    min-width: 0;
  }

  .account-dropdown {
    width: 100%;
  }

  .home-btn {
    min-width: 0;
  }

  .home-mark {
    width: min(430px, 92vw);
  }

  .home-stats-compact {
    width: 100%;
    grid-template-columns: 1fr;
  }


  .turf-main {
    width: min(1260px, 100% - 20px);
    margin: 16px auto 28px;
  }

  .gang-map {
    height: min(58vh, 500px);
    min-height: 320px;
  }

  .turf-hero-head {
    flex-direction: column;
    align-items: stretch;
  }

  .turf-filter-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .turf-filter-btn {
    width: 100%;
  }

  .turf-details-grid {
    grid-template-columns: 1fr;
  }

  .turf-admin-map {
    min-height: 320px;
    height: min(56vh, 520px);
  }

  .turf-admin-side-panel .turf-list {
    min-height: 140px;
    max-height: 300px;
  }

  .home-useful-wrap {
    margin: 18px auto 34px;
  }

  .gitbook-main {
    margin-top: 8px;
  }

  .gitbook-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .gitbook-content {
    order: 1;
  }

  .gitbook-sidebar {
    order: 2;
  }

  .gitbook-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .gitbook-toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gitbook-toolbar-btn {
    text-align: center;
  }

  .gitbook-pagination {
    grid-template-columns: 1fr;
  }

  .useful-links-grid {
    grid-template-columns: 1fr;
  }

  .home-staff-group-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid,
  .admin-grid-s3 {
    grid-template-columns: 1fr;
  }

  .recruiter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .recruiter-dossier-grid {
    grid-template-columns: 1fr;
  }

  .player-manage-grid {
    grid-template-columns: 1fr;
  }

  .player-manage-header {
    flex-direction: column;
    align-items: stretch;
  }
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  margin-top: 3px;
}

.badge-discord-only {
  background: rgba(88, 101, 242, 0.18);
  color: #7289da;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.badge-registered {
  background: rgba(87, 242, 135, 0.12);
  color: #57f287;
  border: 1px solid rgba(87, 242, 135, 0.25);
}

tr.discord-only-row {
  opacity: 0.75;
}

/* ── Boutique (public) ── */

@keyframes shopFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shopGlowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, 0) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, 0) scale(1.08); }
}

@keyframes shopBorderShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.shop-hero {
  text-align: center;
  padding: 0px 20px 20px;
  animation: shopFadeUp 0.5s ease both;
}

.shop-hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  letter-spacing: 0.06em;
  color: #f2e8dc;
  background: linear-gradient(135deg, #f2e8dc 30%, #cc9966 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shop-hero-sub {
  color: #a89880;
  font-size: 1.05rem;
  margin-top: 8px;
}

.shop-content {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px 80px;
  animation: shopFadeUp 0.6s ease 0.1s both;
}

.shop-empty {
  text-align: center;
  padding: 40px 0;
}

.shop-subscription-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(204, 153, 102, 0.5), rgba(140, 100, 60, 0.15), rgba(204, 153, 102, 0.5));
  background-size: 200% 200%;
  animation: shopBorderShimmer 4s linear infinite;
}

.shop-card-inner {
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(26, 20, 12, 0.98) 0%, rgba(10, 8, 4, 0.99) 100%);
  overflow: hidden;
}

.shop-card-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 180px;
  background: radial-gradient(ellipse, rgba(204, 153, 102, 0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: shopGlowPulse 4s ease-in-out infinite;
}

.shop-card-header {
  position: relative;
  text-align: center;
  padding: 44px 28px 24px;
}

.shop-card-icon {
  font-size: 52px;
  color: #cc9966;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(204, 153, 102, 0.35));
}

.shop-card-header h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: #f2e8dc;
  margin: 0;
}

.shop-price {
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #cc9966;
  text-shadow: 0 0 16px rgba(204, 153, 102, 0.25);
}

.shop-card-divider {
  height: 1px;
  margin: 0 28px;
  background: linear-gradient(90deg, transparent, rgba(204, 153, 102, 0.3), transparent);
}

.shop-card-body {
  padding: 28px 32px;
}

.shop-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@keyframes shopPerkIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.shop-perks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.98rem;
  color: #e0d4c4;
  transition: background 0.2s ease;
  animation: shopPerkIn 0.4s ease both;
}

.shop-perks li:hover {
  background: rgba(204, 153, 102, 0.06);
}

.shop-perk-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(204, 153, 102, 0.2), rgba(180, 140, 100, 0.12));
  border: 1px solid rgba(204, 153, 102, 0.35);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(204, 153, 102, 0.12), inset 0 0 6px rgba(204, 153, 102, 0.06);
}

.shop-perk-badge .material-symbols-outlined {
  font-size: 18px;
  color: #cc9966;
  font-weight: 700;
}

.shop-card-footer {
  text-align: center;
  padding: 24px 28px 36px;
  position: relative;
}

.shop-card-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(204, 153, 102, 0.3), transparent);
}

.shop-cta-text {
  color: #a89880;
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

.shop-support-block {
  margin-bottom: 16px;
  text-align: left;
}

.shop-support-title {
  margin: 0 0 10px;
  color: #e0ccb5;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.shop-support-circles {
  min-height: 38px;
}

.shop-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.shop-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204, 153, 102, 0.25);
}

/* ── Boutique Admin ── */

.shop-admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.shop-admin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shop-admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-admin-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #c8b8a0;
}

.shop-admin-field input[type="text"] {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(180, 140, 100, 0.3);
  background: rgba(12, 9, 5, 0.8);
  color: #f2e8dc;
  font-size: 0.95rem;
}

.shop-admin-field input[type="text"]:focus {
  outline: none;
  border-color: rgba(204, 153, 102, 0.6);
}

.shop-perks-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-perk-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.shop-perk-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(180, 140, 100, 0.3);
  background: rgba(12, 9, 5, 0.8);
  color: #f2e8dc;
  font-size: 0.92rem;
}

.shop-perk-input:focus {
  outline: none;
  border-color: rgba(204, 153, 102, 0.6);
}

.shop-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  color: #c8b8a0;
}

.shop-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #cc9966;
}

.feedback-ok {
  color: #57f287;
}

.feedback-error {
  color: #ed4245;
}

@media (max-width: 600px) {
  .shop-admin-row {
    grid-template-columns: 1fr;
  }
}

