* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #39ff14;
  --mint: #00ff88;
  --bg: #050505;
  --card: #0f1515;
  --border: rgba(57, 255, 20, 0.2);
  --border-hot: rgba(57, 255, 20, 0.6);
  --text: #f4fff1;
  --muted: #9aaa95;
  --max: 1200px;
  --page-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2339ff14' fill-opacity='0.045'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  /* ~90% vzhled bez zoom (ten rozbíjel layout) */
  font-size: 90%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(57, 255, 20, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 30%, rgba(0, 255, 136, 0.04), transparent 50%),
    radial-gradient(ellipse 60% 35% at 0% 70%, rgba(57, 255, 20, 0.035), transparent 50%),
    var(--page-pattern),
    linear-gradient(180deg, #050505 0%, #0a100c 45%, #050505 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #030403;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.loader__mark {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  position: relative;
  animation: pulse-glow 2s ease-in-out infinite;
}

.loader__mark::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px dashed rgba(57,255,20,0.35);
  border-radius: 12px;
  animation: rotate-border 6s linear infinite;
}

.loader__mark img {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(57,255,20,0.65));
  animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes rotate-border {
  to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 18px rgba(57,255,20,0.35));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 32px rgba(57,255,20,0.75));
  }
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

.loader__text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.45em;
  color: #9aaa95;
}

.loader__text-main {
  color: var(--green);
  text-shadow: 0 0 10px rgba(57,255,20,0.5);
}

.loader__dots::after {
  content: '';
  animation: dots 1.4s steps(4) infinite;
}

@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

.loader__bar {
  width: min(240px, 60vw);
  height: 2px;
  background: rgba(57,255,20,0.1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.loader__bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #39ff14, transparent);
  animation: bar-sweep 1.3s ease-in-out infinite;
}

@keyframes bar-sweep {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
  border: 1px solid var(--border);
  background: rgba(57, 255, 20, 0.08);
  overflow: hidden;
  border-radius: 2px;
  box-shadow: inset 0 0 8px rgba(57, 255, 20, 0.1);
}

.loader__bar span {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--green), var(--mint));
  animation: loadSweep 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  box-shadow: 0 0 12px var(--green);
}

@keyframes loadSweep {
  0% { transform: translateX(-110%); }
  50% { box-shadow: 0 0 20px var(--green); }
  100% { transform: translateX(250%); }
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  z-index: 999;
  background: linear-gradient(90deg, var(--green), var(--mint));
  box-shadow: 0 0 24px var(--green);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.95) 0%, rgba(15, 21, 21, 0.85) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.1);
}

.header-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: fit-content;
}

.brand__sigil {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: none;
  box-shadow: none;
  clip-path: none;
}

.brand__text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 32px;
  flex: 1;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav a:visited {
  color: var(--muted);
}

.nav a.active {
  color: var(--green);
}

.nav a.active::after {
  transform: scaleX(1);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav a:hover {
  color: var(--green);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-right {
  display: flex;
  gap: 12px;
}

.header-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--green), var(--mint));
  color: #020402;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(57, 255, 20, 0.4);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(5, 5, 5, 0.48) 0%, rgba(5, 5, 5, 0.38) 55%, rgba(5, 5, 5, 0.9) 100%),
    url("pozadi.png");
  background-position: center, center top;
  background-repeat: no-repeat;
  /* Celá HD fotka přes celou šířku */
  background-size: auto, 100% auto;
  padding: 64px clamp(24px, 4vw, 64px) 80px;
  border-bottom: 1px solid var(--border);
  min-height: calc(100vw * 941 / 1672);
  display: flex;
  align-items: center;
}

/* Kompaktní hero (A-Team) — full-width, bez zúžení přes aspect-ratio */
.hero-section--compact {
  width: 100%;
  min-height: clamp(260px, 28vw, 380px);
  max-height: none;
  aspect-ratio: auto;
  padding: 48px 24px;
  background-size: auto, cover;
  background-position: center, center;
  align-items: center;
  justify-content: center;
}

.hero-section--compact .hero-container {
  display: block;
  max-width: 760px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.hero-section--compact .hero-description {
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
}

.hero-section--compact::after {
  height: 80px;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
  z-index: 0;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 320px;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
  justify-content: space-between;
}

.hero-left {
  padding-top: 20px;
  max-width: 560px;
  justify-self: start;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  width: 100%;
  justify-self: end;
}

.hero-label {
  color: var(--green);
  font-size: 0.95rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-shadow: 0 0 16px rgba(57, 255, 20, 0.5);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  text-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
}

.hero-title .highlight {
  color: var(--green);
  display: block;
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.6);
}

.hero-description {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 32px;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--mint));
  color: #020402;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(57, 255, 20, 0.5);
}

.btn--secondary {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}

.btn--secondary:hover {
  background: rgba(57, 255, 20, 0.1);
}

.btn--full {
  width: 100%;
  margin-top: 16px;
}

/* ===== HERO RIGHT (SIDEBAR) ===== */

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid rgba(57, 255, 20, 0.2);
  color: var(--text);
  border-radius: 3px;
  font-size: 0.95rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.3);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  cursor: pointer;
}

.checkbox input {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.form-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 12px;
}

.form-footer a {
  color: var(--green);
  text-decoration: none;
}

/* ===== SOCIALS CARD ===== */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px;
}

.social-btn {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-decoration: none;
  border-radius: 12px;
  color: white;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-btn i {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.social-btn.tiktok {
  background: #000;
  color: #fff;
  border-color: rgba(37, 244, 238, 0.4);
}

.social-btn.youtube {
  background: #ff0000;
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.45);
}

.social-btn:active {
  transform: translateY(-2px) scale(1.05);
}

/* ===== TOP PLAYERS CARD ===== */

/* ===== FEATURES SECTION ===== */
.features-section {
  background: transparent;
  padding: 60px 24px;
  border-bottom: 1px solid rgba(57, 255, 20, 0.12);
}

.features-container {
  max-width: var(--max);
  margin: 0 auto;
}

.features-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-item {
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: var(--border-hot);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-item h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== FRACTIONS SECTION ===== */
.section {
  padding: 60px 24px;
  border-bottom: 1px solid rgba(57, 255, 20, 0.12);
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto 48px;
}

.section-heading h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 32px;
  font-weight: 700;
}

.faction-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.faction-card {
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.faction-card:hover {
  border-color: var(--border-hot);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.2);
  transform: translateY(-6px);
}

.icon-orbit {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: rgba(57, 255, 20, 0.12);
  border: 1.5px solid rgba(57, 255, 20, 0.35);
  border-radius: 50%;
  margin: 0 auto 16px;
  color: var(--green);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
  font-size: 1.4rem;
}

.faction-card h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.faction-card ul {
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.admin-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.feature-card {
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.admin-card {
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.feature-card:hover {
  border-color: var(--border-hot);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
  transform: translateY(-4px);
}

.admin-card:hover {
  border-color: var(--border-hot);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
  transform: translateY(-4px);
}

.admin-avatar {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  background: rgba(57, 255, 20, 0.12);
  border: 2px solid rgba(57, 255, 20, 0.35);
  border-radius: 50%;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.admin-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(57, 255, 20, 0.35);
  margin-bottom: 16px;
  object-fit: cover;
}

.admin-card h3 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.admin-role {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
}

.admin-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.animated-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: rgba(57, 255, 20, 0.12);
  border: 1.5px solid rgba(57, 255, 20, 0.35);
  border-radius: 4px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.feature-card h3 {
  color: var(--text);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== STEPS ===== */
.steps {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step {
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  transition: all 0.3s ease;
}

.step:hover {
  border-color: var(--border-hot);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
  transform: translateY(-4px);
}

.step span {
  display: block;
  font-size: 2.5rem;
  color: rgba(57, 255, 20, 0.4);
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: var(--max);
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.5) 0%, rgba(15, 21, 21, 0.2) 100%);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-list summary {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0 20px 20px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== RULES GRID ===== */
.rules-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.rule-card {
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.rule-card:hover {
  border-color: var(--border-hot);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
  transform: translateY(-4px);
}

.rule-card span {
  display: block;
  font-size: 1.4rem;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rule-card h3 {
  color: var(--text);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* ===== GALLERY ===== */
.section.gallery {
  background: transparent;
  padding: 80px 24px;
}

.masonry {
  max-width: 1060px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .masonry {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }
}

@media (max-width: 520px) {
  .masonry {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

.gallery-item {
  aspect-ratio: 16/9;
  max-width: 520px;
  margin: 0 auto;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item:hover {
  border-color: var(--border-hot);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
  transform: translateY(-6px);
}

.gallery-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-align: center;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

.gallery-item:hover span {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SPLIT SECTIONS ===== */
.split-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
}

.panel {
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  transition: all 0.3s ease;
}

.panel:hover {
  border-color: var(--border-hot);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
  transform: translateY(-4px);
}

.panel p.eyebrow {
  color: var(--green);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow: 0 0 16px rgba(57, 255, 20, 0.5);
}

.panel h2 {
  color: var(--text);
  font-size: 1.6rem;
  margin: 0 0 32px;
  font-weight: 700;
}

.section-heading p.eyebrow {
  color: var(--green);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-shadow: 0 0 16px rgba(57, 255, 20, 0.5);
}

.section-heading > p:last-of-type {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
}

/* ===== DISCORD CARD ===== */
.discord-card {
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.15);
  box-sizing: border-box;
  width: 100%;
}

.discord-header {
  background: linear-gradient(90deg, #5865f2, #7289da);
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.discord-header h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.discord-icon {
  font-size: 1.2rem;
}

.discord-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(57, 255, 20, 0.1);
}

.stat-item {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.5), rgba(15, 21, 21, 0.3));
}

.stat-item:first-child {
  border-right: 1px solid rgba(57, 255, 20, 0.1);
}

.stat-value {
  font-size: 2rem;
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 16px rgba(57, 255, 20, 0.4);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* ===== LIVE SECTION ===== */
.live-section {
  background: transparent;
  padding: 60px 24px;
  border-bottom: 1px solid rgba(57, 255, 20, 0.12);
}

.live-messages-container {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.live-message {
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 3px solid var(--green);
}

.live-message:last-child {
  margin-bottom: 0;
}

.live-message__header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.live-message__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.live-message__author-section {
  flex: 1;
  min-width: 0;
}

.live-message__title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.live-message__author {
  color: var(--green);
  font-weight: 700;
  font-size: 0.95rem;
}

.live-message__badge {
  background: rgba(57, 255, 20, 0.2);
  border: 1px solid rgba(57, 255, 20, 0.4);
  color: var(--green);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-message__date {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: auto;
}

.live-message__body {
  margin-left: 52px;
}

.live-message__content {
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
  white-space: pre-wrap;
  font-size: 0.9rem;
}

.live-message__content strong {
  color: #fff;
  font-weight: 700;
}

.live-message__content em {
  font-style: italic;
  color: var(--text);
}

.live-message__content code {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: var(--mint);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

.no-messages {
  text-align: center;
  color: var(--muted);
  padding: 40px;
}

.loading {
  text-align: center;
  color: var(--muted);
  padding: 20px;
}

/* ===== DISCORD CTA ===== */
.discord-cta {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.12), rgba(0, 255, 136, 0.04));
  border: 1px solid var(--border-hot);
  border-radius: 4px;
  margin: 24px;
}

.discord-cta__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.discord-cta p.eyebrow {
  color: var(--green);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow: 0 0 16px rgba(57, 255, 20, 0.5);
}

.discord-cta h2 {
  color: var(--text);
  font-size: 2.2rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.discord-cta > div > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn--large {
  padding: 14px 40px;
  font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-section {
    min-height: 0;
    background-size: auto, cover;
    background-position: center, center;
    padding: 48px 20px 64px;
  }

  .hero-section--compact {
    min-height: 220px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-left,
  .hero-right {
    justify-self: stretch;
    max-width: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .header-container {
    flex-direction: column;
    gap: 16px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .features-grid,
  .faction-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ===== BANLIST SECTION ===== */
.banlist-section {
  background: transparent;
  padding: 60px 24px;
  border-bottom: 1px solid var(--border);
  min-height: 100vh;
}

.banlist-container {
  max-width: var(--max);
  margin: 0 auto;
}

.banlist-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: center;
}

.banlist-title {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
}

.banlist-subtitle {
  color: var(--muted);
  font-size: 1rem;
}

.banlist-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat {
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-value {
  display: block;
  font-size: 2rem;
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 16px rgba(57, 255, 20, 0.4);
}

/* Search & Filter Controls */
.banlist-controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  margin-bottom: 32px;
  align-items: center;
}

.search-box {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.3);
}

/* Filter Buttons */
.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--green), var(--mint));
  color: #020402;
  border-color: var(--green);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.3);
}

/* Sort Select */
.sort-group {
  display: flex;
  gap: 8px;
}

.sort-select {
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.3);
}

/* Bans Container */
.banlist-content {
  display: flex;
  flex-direction: column;
}

.bans-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.ban-card {
  display: flex;
  flex-direction: column;
  background: rgba(18, 22, 20, 0.92);
  border: 1px solid rgba(57, 255, 20, 0.55);
  border-radius: 14px;
  padding: 18px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.08), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ban-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.18), 0 16px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.ban-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ban-player-avatar {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: visible;
  border: 2px solid var(--green);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.35);
  background: #0a0f0c;
}

.ban-player-avatar .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #121614;
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.7);
}

.ban-player-avatar.is-expired .avatar-status-dot {
  background: #7a7a7a;
  box-shadow: none;
}

.ban-player-avatar.is-active .avatar-status-dot {
  background: var(--green);
}

.ban-player-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.ban-player-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 14px rgba(57, 255, 20, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ban-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ban-status-badge,
.ban-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.3;
}

.ban-status-badge.active {
  background: rgba(57, 255, 20, 0.12);
  color: var(--green);
  border: 1px solid rgba(57, 255, 20, 0.45);
}

.ban-status-badge.expired {
  background: rgba(40, 40, 40, 0.9);
  color: #e8e8e8;
  border: 1px solid rgba(140, 140, 140, 0.45);
}

.ban-type-badge.permanent {
  background: rgba(255, 70, 70, 0.16);
  color: #ff6b6b;
  border: 1px solid rgba(255, 80, 80, 0.45);
}

.ban-type-badge.temporary {
  background: #c9851a;
  color: #1a1205;
  border: 1px solid #e0a12a;
}

.ban-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  margin-bottom: 16px;
}

.ban-reason-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.ban-reason-box {
  background: rgba(8, 10, 9, 0.85);
  border: 1px solid rgba(57, 255, 20, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
  min-height: 44px;
  word-break: break-word;
}

.ban-meta-list {
  display: flex;
  flex-direction: column;
}

.ban-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(57, 255, 20, 0.08);
  font-size: 0.88rem;
}

.ban-meta-row:last-child {
  border-bottom: none;
}

.ban-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ban-meta-icon {
  color: var(--green);
  width: 14px;
  text-align: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(57, 255, 20, 0.35));
}

.ban-meta-label {
  color: var(--muted);
  font-weight: 500;
}

.ban-meta-value {
  color: var(--text);
  text-align: right;
  word-break: break-word;
  max-width: 55%;
}

.ban-meta-value code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #c8ffc0;
  background: rgba(57, 255, 20, 0.06);
  border: 1px solid rgba(57, 255, 20, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
}

.ban-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.ban-status-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.ban-status-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.ban-status-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.ban-status-value.expired .ban-status-icon,
.ban-status-value.revoked .ban-status-icon {
  background: #e53935;
  color: #fff;
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.45);
}

.ban-status-value.active .ban-status-icon {
  background: rgba(57, 255, 20, 0.15);
  color: var(--green);
  border: 1px solid rgba(57, 255, 20, 0.45);
}

.ban-status-value.permanent .ban-status-icon {
  background: rgba(255, 70, 70, 0.18);
  color: #ff6b6b;
  border: 1px solid rgba(255, 80, 80, 0.4);
}

.ban-status-value.unknown .ban-status-icon {
  background: rgba(150, 150, 150, 0.2);
  color: #bbb;
}

.ban-card-footer {
  margin-top: auto;
  padding-top: 4px;
}

.ban-detail-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--green);
  color: #061006;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.35);
}

.ban-detail-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 26px rgba(57, 255, 20, 0.5);
  transform: translateY(-1px);
}

.ban-detail-btn:active {
  transform: translateY(0);
}

/* Loading & Error States */
.loading-state,
.error-state,
.no-bans-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.5) 0%, rgba(15, 21, 21, 0.2) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.error-state {
  color: #ff5050;
  border-color: rgba(255, 80, 80, 0.3);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: rgba(14, 18, 16, 0.98);
  border: 1px solid rgba(57, 255, 20, 0.45);
  border-radius: 16px;
  padding: 28px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 60px rgba(57, 255, 20, 0.16), 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.modal-close:hover {
  color: var(--green);
  border-color: var(--green);
}

.ban-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ban-detail-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 36px;
}

.ban-detail-avatar {
  width: 72px;
  height: 72px;
}

.ban-detail-kicker {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.ban-detail-title {
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 10px;
  text-shadow: 0 0 18px rgba(57, 255, 20, 0.3);
  word-break: break-word;
}

.ban-detail-reason .ban-reason-box {
  min-height: 56px;
  font-size: 0.95rem;
}

.ban-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ban-detail-panel {
  background: rgba(8, 10, 9, 0.65);
  border: 1px solid rgba(57, 255, 20, 0.14);
  border-radius: 12px;
  padding: 14px 16px;
}

.ban-detail-panel--full {
  grid-column: 1 / -1;
}

.ban-detail-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(57, 255, 20, 0.12);
}

.ban-detail-panel-title i {
  opacity: 0.9;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pagination-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.7) 0%, rgba(15, 21, 21, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Navigation Active State */
.nav a.active {
  color: var(--green);
}

.nav a.active::after {
  transform: scaleX(1);
}

/* Responsive Banlist */
@media (max-width: 1024px) {
  .banlist-header {
    grid-template-columns: 1fr;
  }

  .banlist-controls {
    grid-template-columns: 1fr;
  }

  .bans-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .banlist-title {
    font-size: 1.8rem;
  }

  .banlist-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .banlist-controls {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .bans-container {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 20px;
  }

  .ban-detail-grid {
    grid-template-columns: 1fr;
  }

  .ban-detail-hero {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 28px;
  }
}


/* ===== ANIMATIONS ===== */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: reveal 0.6s ease-out forwards;
}

/* ===== EDITABLE ===== */
[data-editable],
[data-page-edit-key] {
  transition: all 0.2s ease;
  position: relative;
}

[data-editable].editable,
[data-page-edit-key].editable {
  outline: 2px dashed var(--green);
  background: rgba(57, 255, 20, 0.05);
  cursor: text;
}

[data-editable].editable:hover,
[data-page-edit-key].editable:hover {
  background: rgba(57, 255, 20, 0.1);
}

.user-info {
  padding: 10px 12px;
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--green);
  font-weight: 600;
}

/* ===== SAVE BAR ===== */
.save-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  gap: 12px;
  z-index: 1000;
  padding: 16px;
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.95) 0%, rgba(15, 21, 21, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
}

/* ===== ADMIN PANEL ===== */
.admin-panel {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.98) 0%, rgba(15, 21, 21, 0.94) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  min-width: min(520px, 92vw);
  max-width: 92vw;
  max-height: 80vh;
  overflow: hidden;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(57, 255, 20, 0.3);
  color-scheme: dark;
}

.admin-panel.is-open {
  display: flex;
}

.admin-panel__content {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}

.admin-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-panel__header h3 {
  color: var(--green);
  margin: 0;
  display: flex;
  gap: 8px;
}

.admin-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.admin-close:hover {
  color: var(--green);
}

.user-form {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.user-form h4 {
  color: var(--green);
  margin: 0 0 8px 0;
  font-size: 1rem;
}

.user-form input,
.user-form select,
.theme-select,
.role-select {
  padding: 10px 12px;
  background: #0a100f;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 3px;
  font-size: 0.95rem;
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2339ff14' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.user-form input {
  background-image: none;
  padding-right: 12px;
}

.user-form select:focus,
.theme-select:focus,
.role-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.15);
}

.user-form select option,
.theme-select option,
.role-select option {
  background: #0a100f;
  color: var(--text);
}

.user-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(57, 255, 20, 0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.user-item__main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-item span {
  flex: 1;
  color: var(--text);
}

.role-picker {
  position: relative;
  flex-shrink: 0;
}

.role-picker__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 132px;
  padding: 8px 12px;
  background: #0a100f;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.role-picker__btn:hover:not(:disabled) {
  border-color: var(--border-hot);
  background: rgba(57, 255, 20, 0.08);
}

.role-picker__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.role-picker__btn i {
  color: var(--green);
  font-size: 0.7rem;
}

.role-picker.is-open .role-picker__btn {
  border-color: var(--green);
}

.role-picker__menu {
  background: #0a100f;
  border: 1px solid var(--border-hot);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  padding: 4px;
  display: grid;
  gap: 2px;
  max-height: min(280px, calc(100vh - 16px));
  overflow-y: auto;
}

.role-picker__menu[hidden] {
  display: none !important;
}

.role-picker__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: transparent;
  border: none;
  color: var(--text);
  border-radius: 3px;
  font-size: 0.88rem;
  cursor: pointer;
}

.role-picker__option:hover,
.role-picker__option.is-active {
  background: rgba(57, 255, 20, 0.14);
  color: var(--green);
}

.role-picker--create {
  width: 100%;
}

.role-picker--create .role-picker__btn {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.role-select {
  padding: 6px 34px 6px 10px;
  font-size: 0.85rem;
  min-width: 120px;
}

.user-perms {
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 4px;
  display: grid;
  gap: 12px;
}

.user-perms[hidden] {
  display: none !important;
}

.user-perms__head {
  display: grid;
  gap: 4px;
}

.user-perms__title {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.user-perms__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.user-perms__cat {
  padding: 10px 12px;
  background: rgba(57, 255, 20, 0.04);
  border: 1px solid rgba(57, 255, 20, 0.12);
  border-radius: 4px;
}

.user-perms__cat-label {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.user-perms__table {
  display: grid;
  gap: 6px;
}

.user-perms__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.user-perms__row--head {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 0 2px 4px;
  border-bottom: 1px solid rgba(57, 255, 20, 0.12);
}

.user-perms__mod-name {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.user-perms__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
  padding: 6px 8px;
  border: 1px solid rgba(57, 255, 20, 0.15);
  border-radius: 3px;
  background: rgba(10, 16, 15, 0.7);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.user-perms__check input {
  accent-color: var(--green);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.user-perms__check:has(input:checked) {
  color: var(--text);
  border-color: rgba(57, 255, 20, 0.55);
  background: rgba(57, 255, 20, 0.1);
}

.user-item--admin {
  border-color: rgba(57, 255, 20, 0.35);
}

.user-item__warn {
  display: inline-block;
  margin-left: 8px;
  color: #ffb020;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
}

.delete-user {
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 0.8rem;
}

.user-form input:focus,
.user-form select:focus {
  outline: none;
  border-color: var(--green);
}

.users-list h4 {
  color: var(--green);
  margin: 0 0 12px 0;
}

/* ===== EDIT BAR ===== */
.edit-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(10, 14, 14, 0.97);
  border-top: 2px solid var(--green);
  box-shadow: 0 -4px 30px rgba(57, 255, 20, 0.2);
  gap: 16px;
}
.edit-bar__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.edit-bar__label {
  color: var(--green);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.edit-bar__hint {
  color: var(--muted);
  font-size: 0.78rem;
}
.edit-bar__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.edit-bar__btn {
  padding: 9px 18px;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity 0.2s, transform 0.1s;
}
.edit-bar__btn:hover { opacity: 0.85; transform: translateY(-1px); }
.edit-bar__btn--save { background: var(--green); color: #000; }
.edit-bar__btn--cancel { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.edit-bar__btn--add { background: transparent; color: var(--green); border: 1px solid var(--green); }

/* editable elements highlight */
[data-editable][contenteditable="true"],
[data-page-edit-key][contenteditable="true"] {
  outline: 2px dashed var(--green) !important;
  outline-offset: 3px;
  border-radius: 3px;
  cursor: text;
  transition: background 0.2s;
}
[data-editable][contenteditable="true"]:hover,
[data-editable][contenteditable="true"]:focus,
[data-page-edit-key][contenteditable="true"]:hover,
[data-page-edit-key][contenteditable="true"]:focus {
  background: rgba(57, 255, 20, 0.07) !important;
}

/* ===== CONTENT BLOCKS ===== */
#custom-section:has(#custom-blocks:empty) {
  display: none;
}

#custom-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 0 32px 0;
}
.content-block {
  position: relative;
  background: rgba(57, 255, 20, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  transition: border-color 0.2s;
}
.content-block--text .block-content {
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}
.content-block--text .block-content[contenteditable="true"] {
  outline: 2px dashed var(--green);
  outline-offset: 3px;
  border-radius: 3px;
  min-height: 40px;
  cursor: text;
}
.block-title {
  color: var(--green);
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.block-title[contenteditable="true"] {
  outline: 2px dashed var(--green);
  outline-offset: 3px;
  border-radius: 3px;
  cursor: text;
}
.block-caption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
  text-align: center;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.block-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.block-btn {
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.block-btn:hover { opacity: 0.8; }
.block-btn--delete { background: rgba(255, 50, 50, 0.15); color: #ff5050; border: 1px solid rgba(255,50,50,0.3); }

/* ===== BLOCK TYPE PICKER ===== */
.block-type-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.block-type-btn {
  padding: 10px 16px;
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.block-type-btn.active,
.block-type-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(57, 255, 20, 0.1);
}

/* ===== MODAL BACKDROP ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: -1;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal-content {
  position: relative;
  background: #0f1515;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  width: 480px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(57, 255, 20, 0.2);
}
.modal-content h3 {
  color: var(--green);
  margin: 0 0 20px 0;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.modal-content .form-group {
  margin-bottom: 16px;
}
.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(57,255,20,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}
.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  outline: none;
  border-color: var(--green);
}
.modal-content label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--green); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 99999;
  padding: 12px 20px;
  background: rgba(10,14,14,0.97);
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(57,255,20,0.2);
}
.toast--error {
  border-color: #ff5050;
  color: #ff5050;
  box-shadow: 0 4px 20px rgba(255,80,80,0.2);
}
.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BTN OUTLINE (pro admin panel btn) ===== */
.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn--outline:hover {
  border-color: var(--green);
  color: var(--green);
}
.btn--active {
  background: rgba(57,255,20,0.15) !important;
}

/* ===== PROPERTIES PANEL ===== */
.properties-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(15, 21, 21, 0.97) 0%, rgba(15, 21, 21, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  width: 280px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
  display: none;
}

.properties-panel[style*="display: block"] {
  display: block !important;
}

.properties-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.properties-header h4 {
  color: var(--green);
  margin: 0;
  font-size: 0.95rem;
}

.properties-header button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.properties-content .prop-group {
  margin-bottom: 12px;
}

.properties-content label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.properties-content input,
.properties-content select {
  width: 100%;
  padding: 6px 8px;
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 3px;
  font-size: 0.85rem;
}

.properties-content input:focus,
.properties-content select:focus {
  outline: none;
  border-color: var(--green);
}

.visual-editor-active body {
  padding-bottom: 80px;
}

/* ===== VISUAL EDITOR ACTIVE STATE ===== */
.visual-editor-active #visualEditorToggle {
  background: #ff5050 !important;
  color: #fff !important;
}

/* ===== PROFILE CARD ===== */
.profile-card {
  max-width: 320px;
  margin: 80px auto 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(15,21,21,0.7) 0%, rgba(15,21,21,0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(57,255,20,0.1);
}

/* When profile card is inside hero-right slot, reset positioning */
#profile-slot {
  width: 100%;
  min-width: 0;
}

#profile-slot .profile-card {
  max-width: 100%;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Login on non-home pages — header dropdown (no page overlay strip) */
.profile-menu {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1301;
}

.profile-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.profile-menu__toggle:hover,
.profile-menu.is-open .profile-menu__toggle {
  border-color: var(--border-hot);
  background: rgba(57, 255, 20, 0.14);
  color: var(--green);
}

.profile-menu__toggle i {
  color: var(--green);
  font-size: 0.95rem;
}

.profile-menu__dropdown {
  position: fixed;
  width: min(320px, calc(100vw - 24px));
  z-index: 1400;
}

.profile-menu__dropdown[hidden] {
  display: none !important;
}

.profile-card--floating {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  margin: 0;
  overflow: visible;
  background: transparent;
  box-shadow: 0 0 30px rgba(57,255,20,0.12);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.profile-card--floating::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(15, 21, 21, 0.7);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  pointer-events: none;
}

.profile-card--floating .profile-header,
.profile-card--floating .profile-form {
  position: relative;
  z-index: 1;
}

.profile-card--floating .profile-form,
.profile-card--floating .form-group,
.profile-card--floating .form-group input,
.profile-card--floating .btn {
  max-width: 100%;
  box-sizing: border-box;
}

.profile-header {
  background: rgba(57,255,20,0.08);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.profile-header h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
}

.profile-icon {
  font-size: 1.1rem;
  color: var(--green);
}

.profile-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 768px) {
  .header-right {
    align-items: center;
  }

  .profile-menu__toggle .profile-menu__label {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-card--floating {
    max-width: none;
    width: 100%;
  }
}

/* ===== DRAG OVERLAY ===== */
#dragOverlay {
  pointer-events: none;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ============================================================ */
/* FLOATING BLOCKS (free-placement absolute blocks)             */
/* ============================================================ */
.floating-block {
  background: rgba(57, 255, 20, 0.04);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 6px;
  padding: 24px;
  box-sizing: border-box;
  pointer-events: auto;
}
.floating-block .block-content {
  color: var(--text, #e0e0e0);
  line-height: 1.7;
  font-size: 0.95rem;
}
.floating-block .block-title {
  color: var(--green, #39ff14);
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.floating-block .block-content[contenteditable="true"],
.floating-block .block-title[contenteditable="true"] {
  outline: 2px dashed var(--green, #39ff14);
  outline-offset: 3px;
  border-radius: 3px;
  cursor: text;
}

/* ============================================================ */
/* DISCORD MARKDOWN RENDERER                                    */
/* ============================================================ */
.live-message__channel {
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #8ea1e1;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
}

.live-message__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-heading {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 8px 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  line-height: 1.3;
}

.discord-para {
  color: var(--text, #dbdee1);
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}

.discord-spacer {
  height: 6px;
}

.discord-list-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text, #dbdee1);
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 1px 0;
}

.discord-list-item--sub {
  padding-left: 20px;
}

.discord-bullet {
  color: var(--muted, #80848e);
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.8rem;
}

.discord-quote {
  border-left: 4px solid rgba(255,255,255,0.15);
  padding: 4px 0 4px 12px;
  color: var(--muted, #80848e);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 2px 0;
}

.discord-code {
  background: rgba(30, 31, 34, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e3e5e8;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 0.82rem;
}

.discord-channel {
  background: rgba(88, 101, 242, 0.15);
  color: #8ea1e1;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 600;
  cursor: default;
}

.discord-mention {
  background: rgba(88, 101, 242, 0.15);
  color: #8ea1e1;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 600;
}

.discord-para strong,
.discord-list-item strong,
.discord-heading strong {
  color: #fff;
  font-weight: 700;
}

.discord-para em,
.discord-list-item em,
.discord-heading em,
.discord-quote em {
  font-style: italic;
  color: var(--text, #dbdee1);
}

.discord-para u,
.discord-list-item u,
.discord-heading u,
.discord-quote u {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.discord-para s,
.discord-list-item s,
.discord-heading s,
.discord-quote s {
  opacity: 0.5;
  text-decoration: line-through;
}

.discord-para--muted {
  color: var(--muted, #80848e);
  font-style: italic;
}

/* ============================================================ */
/* NAV MANAGEMENT MODAL                                         */
/* ============================================================ */
.nav-modal {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.nav-modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
}

.nav-modal-header h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-modal-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.nav-modal-back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.nav-modal-back:hover { color: var(--green); }

.nav-modal-section {
  padding: 16px 28px 8px;
}

.nav-modal-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}

.nav-modal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.nav-modal-item:hover {
  background: rgba(57,255,20,0.04);
  border-color: rgba(57,255,20,0.15);
}

.nav-modal-item--builtin {
  opacity: 0.6;
}

.nav-modal-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
  flex-shrink: 0;
}

.nav-modal-item-info {
  flex: 1;
  min-width: 0;
}

.nav-modal-item-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-modal-item-href {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-modal-item-tag {
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

.nav-modal-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.nav-modal-btn {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-modal-btn--edit:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(57,255,20,0.08);
}

.nav-modal-btn--delete:hover {
  border-color: #ff5050;
  color: #ff5050;
  background: rgba(255,80,80,0.08);
}

.nav-modal-add-btn {
  margin: 12px 28px 24px;
  padding: 12px 16px;
  background: rgba(57,255,20,0.08);
  border: 1px dashed rgba(57,255,20,0.3);
  border-radius: 8px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  width: calc(100% - 56px);
}

.nav-modal-add-btn:hover {
  background: rgba(57,255,20,0.14);
  border-color: rgba(57,255,20,0.5);
}

/* Create form */
.nav-modal-create-form {
  padding: 20px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slug-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.slug-input-wrapper:focus-within {
  border-color: var(--green);
}

.slug-prefix, .slug-suffix {
  padding: 10px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
  flex-shrink: 0;
}

.slug-input-wrapper input {
  border: none !important;
  background: transparent !important;
  flex: 1;
  min-width: 0;
  padding: 10px 6px !important;
}

.slug-input-wrapper input:focus {
  outline: none;
  box-shadow: none;
}

.nav-modal-url-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(57,255,20,0.05);
  border: 1px solid rgba(57,255,20,0.15);
  border-radius: 6px;
  margin: 8px 0 16px;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: monospace;
}

.nav-modal-url-preview i {
  color: var(--green);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ============================================================ */
/* BLOCK EDITOR MODAL                                           */
/* ============================================================ */
.block-editor-modal {
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
}

.block-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.block-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.block-type-card:hover {
  border-color: rgba(57,255,20,0.4);
  background: rgba(57,255,20,0.05);
}

.block-type-card.active {
  border-color: var(--green);
  background: rgba(57,255,20,0.1);
}

.block-type-card i {
  font-size: 1.4rem;
  color: var(--green);
}

.block-type-card__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.block-type-card__desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.block-placement-row {
  margin-bottom: 4px;
}

.block-placement-btns {
  display: flex;
  gap: 8px;
}

.placement-btn {
  flex: 1;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.placement-btn.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(57,255,20,0.08);
}

.block-subitem-field {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.02);
}

.block-subitem-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* ============================================================ */
/* BLOCK RENDER TYPES                                           */
/* ============================================================ */
.block-section-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.content-block--features {
  padding: 40px 0;
}

.content-block--features .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.content-block--factions {
  padding: 40px 0;
}

.content-block--factions .faction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.content-block--hero {
  padding: 60px 24px;
  text-align: center;
}

.block-hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.block-hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.block-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.content-block--divider {
  position: relative;
}

/* ============================================================
   PAGE BUILDER — Editor UI Styles
   ============================================================ */

/* Edit button (fixed bottom-right) */
#pb-edit-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9000;
  padding: 10px 20px;
  background: linear-gradient(135deg, #39ff14, #00ff88);
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(57,255,20,.4);
  transition: transform .15s, box-shadow .15s;
}
#pb-edit-btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(57,255,20,.6); }

/* ─── Canvas ─── */
#pb-canvas {
  position: relative;
  width: 100%;
  min-height: 200px;
  overflow: visible; /* let absolutely-positioned modules and their toolbars breathe */
}

/* ─── Overlay (toolbar + sidebars) ─── */
#pb-overlay { pointer-events: none; }

/* ─── Toolbar ─── */
#pb-toolbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: #0a0f0a;
  border-bottom: 1px solid rgba(57,255,20,.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 9900;
  gap: 12px;
  pointer-events: all;
}
.pb-tb-left, .pb-tb-right { display: flex; align-items: center; gap: 8px; }
.pb-tb-center { display: flex; gap: 4px; }
#pb-page-label { font-size: 13px; color: rgba(255,255,255,.6); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Sidebar ─── */
#pb-sidebar {
  position: fixed;
  top: 52px; left: 0; bottom: 0;
  width: 220px;
  background: #0a0f0a;
  border-right: 1px solid rgba(57,255,20,.15);
  overflow-y: auto;
  z-index: 9800;
  padding: 8px;
  pointer-events: all;
}
#pb-sidebar::-webkit-scrollbar { width: 4px; }
#pb-sidebar::-webkit-scrollbar-thumb { background: rgba(57,255,20,.3); border-radius: 2px; }

/* ─── Style Panel ─── */
#pb-style-panel {
  position: fixed;
  top: 52px; right: 0; bottom: 0;
  width: 264px;
  background: #0a0f0a;
  border-left: 1px solid rgba(57,255,20,.15);
  overflow-y: auto;
  z-index: 9800;
  display: flex;
  flex-direction: column;
  pointer-events: all;
}
#pb-style-panel::-webkit-scrollbar { width: 4px; }
#pb-style-panel::-webkit-scrollbar-thumb { background: rgba(57,255,20,.3); border-radius: 2px; }
#pb-style-body { padding: 8px; flex: 1; overflow-y: auto; }
#pb-style-body::-webkit-scrollbar { width: 4px; }
#pb-style-body::-webkit-scrollbar-thumb { background: rgba(57,255,20,.2); border-radius: 2px; }

/* ─── Panel header ─── */
.pb-panel { background: rgba(57,255,20,.04); border: 1px solid rgba(57,255,20,.1); border-radius: 6px; overflow: hidden; }
.pb-panel-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  font-size: 12px; font-weight: 700; color: var(--green);
  border-bottom: 1px solid rgba(57,255,20,.1);
  background: rgba(57,255,20,.06);
}

/* ─── Pages List ─── */
.pb-page-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; cursor: pointer; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .1s;
}
.pb-page-item:hover { background: rgba(57,255,20,.07); }
.pb-page-item.pb-active { background: rgba(57,255,20,.12); border-left: 2px solid var(--green); }
.pb-page-name { flex: 1; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-page-acts { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.pb-page-item:hover .pb-page-acts { opacity: 1; }

/* ─── Module Tree ─── */
.pb-tree-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; cursor: pointer; font-size: 12px; color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background .1s;
}
.pb-tree-item:hover { background: rgba(57,255,20,.07); }
.pb-tree-item.pb-active { background: rgba(57,255,20,.12); border-left: 2px solid var(--green); }
.pb-tree-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Buttons ─── */
.pb-btn {
  padding: 6px 14px; border: none; border-radius: 4px;
  font-size: 12px; font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.pb-btn:hover { opacity: .85; }
.pb-btn-primary { background: linear-gradient(135deg,#39ff14,#00ff88); color: #000; }
.pb-btn-secondary { background: rgba(255,255,255,.1); color: var(--text); }
.pb-btn-danger { background: rgba(255,60,60,.85); color: #fff; }
.pb-icon-btn {
  width: 24px; height: 24px; border: none; background: rgba(255,255,255,.07);
  border-radius: 4px; cursor: pointer; font-size: 12px; color: var(--text);
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.pb-icon-btn:hover { background: rgba(57,255,20,.15); }
.pb-icon-btn.pb-danger:hover { background: rgba(255,60,60,.3); }

/* ─── Device buttons ─── */
.pb-dev-btn {
  padding: 5px 10px; border: 1px solid rgba(57,255,20,.2); background: transparent;
  color: rgba(255,255,255,.6); border-radius: 4px; font-size: 11px; cursor: pointer; transition: all .15s;
}
.pb-dev-btn.pb-dev-active, .pb-dev-btn:hover { background: rgba(57,255,20,.15); color: var(--green); border-color: rgba(57,255,20,.5); }

/* ─── Badges ─── */
.pb-badge { padding: 1px 5px; border-radius: 3px; font-size: 10px; background: rgba(57,255,20,.15); color: var(--green); }
.pb-badge-glob { background: rgba(57,170,255,.15); color: #57aaff; }

/* ─── Hint ─── */
.pb-hint { font-size: 12px; color: rgba(255,255,255,.35); padding: 12px; text-align: center; }

/* ─── Edit mode layout ─── */
body.pb-edit-mode {
  overflow: hidden;
}

/* Hide all existing page chrome in edit mode — only the canvas workspace shows */
body.pb-edit-mode .loader,
body.pb-edit-mode .scroll-progress,
body.pb-edit-mode .site-header,
body.pb-edit-mode main > *:not(#pb-canvas),
body.pb-edit-mode .site-footer,
body.pb-edit-mode footer {
  display: none !important;
}

/* Main becomes the scrollable canvas viewport between toolbar and sidebars */
body.pb-edit-mode main {
  position: fixed !important;
  top: 52px;
  left: 220px;
  right: 264px;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #080d0a;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  height: auto !important;
}

body.pb-edit-mode #pb-canvas {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 52px);
  margin: 0;
  /* top padding = room for module toolbars above first module */
  padding: 48px 24px 120px;
}

/* ─── Module on canvas ─── */
.pb-module {
  position: absolute;
  box-sizing: border-box;
  transition: box-shadow .15s;
  overflow: visible; /* allow toolbar at top: -36px to show */
}
body.pb-edit-mode .pb-module {
  outline: 1px dashed rgba(57,255,20,.18);
  cursor: move;
}
body.pb-edit-mode .pb-module:hover {
  outline: 1px solid rgba(57,255,20,.5);
  z-index: 2;
}
.pb-module.pb-selected {
  outline: 2px solid var(--green) !important;
  box-shadow: 0 0 0 2px rgba(57,255,20,.15) !important;
}
.pb-module.pb-dragging {
  opacity: .85;
  box-shadow: 0 8px 32px rgba(0,0,0,.6), 0 0 20px rgba(57,255,20,.3) !important;
  z-index: 10000 !important;
}

/* ─── Module Toolbar ─── */
.pb-toolbar {
  display: none;
  position: absolute;
  top: -40px; left: 0;
  background: #0d1f0d;
  border: 1px solid rgba(57,255,20,.45);
  border-radius: 6px;
  gap: 2px;
  padding: 4px;
  z-index: 10100;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.pb-module.pb-selected .pb-toolbar,
.pb-module:hover .pb-toolbar { display: flex; }
.pb-toolbar button {
  background: transparent; border: none; cursor: pointer;
  padding: 3px 7px; border-radius: 4px; font-size: 13px;
  color: var(--text); transition: background .1s;
}
.pb-toolbar button:hover { background: rgba(57,255,20,.15); }
.pb-toolbar button.pb-danger:hover { background: rgba(255,60,60,.25); }

/* ─── Resize Handles ─── */
.pb-rh {
  position: absolute; background: var(--green);
  border-radius: 2px; z-index: 10002; opacity: 0; transition: opacity .15s;
}
.pb-module.pb-selected .pb-rh,
.pb-module:hover .pb-rh { opacity: 1; }
.pb-rh-se { width: 10px; height: 10px; bottom: -5px; right: -5px; cursor: se-resize; }
.pb-rh-s  { width: 16px; height: 6px; bottom: -3px; left: 50%; transform: translateX(-50%); cursor: s-resize; }
.pb-rh-e  { width: 6px; height: 16px; right: -3px; top: 50%; transform: translateY(-50%); cursor: e-resize; }
.pb-rh-ne { width: 10px; height: 10px; top: -5px; right: -5px; cursor: ne-resize; }
.pb-rh-sw { width: 10px; height: 10px; bottom: -5px; left: -5px; cursor: sw-resize; }
.pb-rh-nw { width: 10px; height: 10px; top: -5px; left: -5px; cursor: nw-resize; }
.pb-rh-n  { width: 16px; height: 6px; top: -3px; left: 50%; transform: translateX(-50%); cursor: n-resize; }
.pb-rh-w  { width: 6px; height: 16px; left: -3px; top: 50%; transform: translateY(-50%); cursor: w-resize; }

/* ─── Grid overlay in edit mode ─── */
body.pb-edit-mode #pb-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(57,255,20,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(57,255,20,.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Module content styles ─── */
.pb-heading { margin: 0; color: var(--text); }
.pb-text { margin: 0; color: var(--text); }
.pb-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.pb-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.pb-card-body { padding: 16px; }
.pb-card-body h3 { margin: 0 0 8px; color: var(--text); }
.pb-card-body p { margin: 0; color: var(--muted); font-size: 14px; }
.pb-markdown { color: var(--text); line-height: 1.6; }
.pb-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; height: 120px; background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.15); border-radius: 8px;
  color: rgba(255,255,255,.35); font-size: 14px;
}
.pb-placeholder i { font-size: 28px; }

/* ─── Style Panel Inputs ─── */
.pb-sp-section { border-bottom: 1px solid rgba(255,255,255,.05); padding: 10px 0; }
.pb-sp-section:last-child { border-bottom: none; }
.pb-sp-title { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.pb-sp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pb-sp-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.pb-sp-field label { font-size: 11px; color: rgba(255,255,255,.5); }
.pb-si {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: var(--text); border-radius: 4px; padding: 4px 6px; font-size: 12px; width: 100%;
  outline: none; transition: border-color .15s;
}
.pb-si:focus { border-color: rgba(57,255,20,.5); }
.pb-color-row { display: flex; gap: 6px; align-items: center; }
.pb-color-row input[type=color] { width: 30px; height: 26px; padding: 0; border: none; background: none; cursor: pointer; border-radius: 4px; }
.pb-fi-ta { resize: vertical; font-family: inherit; }
.pb-fi-code { font-family: monospace; font-size: 11px; }
.pb-toggle-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text); cursor: pointer; }
.pb-toggle-row input[type=checkbox] { accent-color: var(--green); width: 16px; height: 16px; cursor: pointer; }

/* ─── Module Picker Modal ─── */
.pb-modal-wrap {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 11000;
  display: flex; align-items: center; justify-content: center;
}
.pb-modal {
  background: #0d1a0d; border: 1px solid rgba(57,255,20,.3); border-radius: 10px;
  width: 480px; max-width: 96vw; max-height: 80vh; overflow: hidden; display: flex; flex-direction: column;
}
.pb-modal-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid rgba(57,255,20,.15);
}
.pb-modal-hdr h3 { margin: 0; font-size: 15px; color: var(--text); }
.pb-modal-body { padding: 16px; overflow-y: auto; flex: 1; }
.pb-modal-footer { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.06); display: flex; gap: 8px; justify-content: flex-end; }
.pb-mod-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 16px; }
.pb-mod-type-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 8px; background: rgba(57,255,20,.06);
  border: 1px solid rgba(57,255,20,.15); border-radius: 8px; cursor: pointer;
  color: var(--text); font-size: 12px; transition: all .15s;
}
.pb-mod-type-btn:hover { background: rgba(57,255,20,.15); border-color: rgba(57,255,20,.4); transform: translateY(-2px); }
.pb-mod-ico { font-size: 22px; }

/* ─── Edit Form ─── */
.pb-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.pb-form-group label { font-size: 12px; color: rgba(255,255,255,.6); }
.pb-fi {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: var(--text); border-radius: 5px; padding: 7px 10px; font-size: 13px; width: 100%;
  outline: none; transition: border-color .15s;
}
.pb-fi:focus { border-color: rgba(57,255,20,.5); }

/* ─── Responsive: collapse sidebars on small screens ─── */
@media (max-width: 900px) {
  body.pb-edit-mode main {
    left: 0;
    right: 0;
  }
  #pb-sidebar, #pb-style-panel { display: none; }
}

/* ===== DASHBOARD 4.1 ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-dashboard-41 .dash41 {
  padding: 100px 20px 60px;
  min-height: calc(100vh - 80px);
}

.dash41__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.dash41__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.dash41__eyebrow {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.dash41__title {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--green);
  text-shadow: 0 0 24px rgba(57, 255, 20, 0.25);
}

.dash41__subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}

.dash41__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 12px;
}

.dash41-stat {
  background: rgba(15, 21, 21, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 0;
}

.dash41-stat__label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.dash41-stat__value {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.dash41-stat__value small {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.dash41-stat__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash41-ring {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.dash41__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.dash41__panel--detail {
  position: sticky;
  top: 88px;
  z-index: 20;
  align-self: start;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dash41__panel--detail::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body.edit-mode-active .dash41__panel--detail {
  max-height: calc(100vh - 170px);
}

.dash41__modules {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.dash41__module {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
}

.dash41__module i {
  font-size: 0.85rem;
}

.dash41__module.is-active {
  background: rgba(57, 255, 20, 0.15);
  color: var(--green);
}

.dash41__module[hidden],
.dash41__module-panel[hidden],
.dash41__add-task[hidden],
.dash41__add-phase[hidden],
.dash41__add-job[hidden],
.dash41__add-sfp[hidden],
.dash41__add-change[hidden] {
  display: none !important;
}

.dash41__panel--roadmap {
  max-width: 720px;
}

.dash41__roadmap--wide {
  max-width: 640px;
}

.dash41__panel {
  background: rgba(10, 14, 14, 0.85);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.dash41__panel-head {
  margin-bottom: 14px;
}

.dash41__tabs {
  display: inline-flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 4px;
}

.dash41__tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.dash41__tab.is-active {
  background: rgba(57, 255, 20, 0.15);
  color: var(--green);
}

.dash41__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.dash41-filter {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.dash41-filter:hover {
  border-color: var(--border-hot);
  color: var(--text);
}

.dash41-filter.is-active {
  background: rgba(57, 255, 20, 0.12);
  border-color: var(--green);
  color: var(--green);
}

.dash41__tasks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash41__tasks--table {
  overflow-x: auto;
}

.dash41-task {
  display: grid;
  grid-template-columns: 20px 36px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  background: rgba(15, 21, 21, 0.95);
  border: 1px solid rgba(57, 255, 20, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s, transform 0.2s, opacity 0.2s;
  animation: dash41-fade-in 0.35s ease both;
  cursor: pointer;
}

.dash41-task:hover {
  border-color: rgba(57, 255, 20, 0.35);
}

.dash41-task.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.25), 0 0 18px rgba(57, 255, 20, 0.12);
  background: rgba(57, 255, 20, 0.06);
}

.dash41__tasks--sortable .dash41-task__handle {
  cursor: grab;
  color: rgba(57, 255, 20, 0.7);
}

.dash41-task.is-dragging {
  opacity: 0.45;
}

.dash41-task.is-drag-over {
  border-color: var(--green);
  transform: translateY(2px);
  box-shadow: inset 0 2px 0 var(--green);
}

.dash41-table__row {
  cursor: pointer;
}

.dash41-table__row.is-selected {
  outline: 1px solid rgba(57, 255, 20, 0.45);
  background: rgba(57, 255, 20, 0.08);
}

/* Task detail panel */
.dash41-detail-empty {
  min-height: 280px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
  color: var(--muted);
  padding: 24px;
}

.dash41-detail-empty i {
  font-size: 1.4rem;
  color: rgba(57, 255, 20, 0.55);
}

.dash41-detail-empty h2 {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.3rem;
  color: var(--text);
}

.dash41-detail__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.dash41-detail__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.dash41-detail__title {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
  outline: none;
}

.dash41-detail__close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.dash41-detail__close:hover {
  color: var(--text);
  border-color: var(--border-hot);
}

.dash41-detail__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.dash41-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash41-field__value {
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(57, 255, 20, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 38px;
  outline: none;
}

.dash41-detail__section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(57, 255, 20, 0.12);
}

.dash41-detail__section h3 {
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.dash41-detail__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.dash41-detail__section-head h3 {
  margin-bottom: 0;
}

.dash41-detail__text {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(57, 255, 20, 0.1);
  border-radius: 10px;
  padding: 12px;
  min-height: 72px;
  outline: none;
  white-space: pre-wrap;
}

.dash41-detail__text strong,
.dash41-detail__text b,
.dash41-phase__item strong,
.dash41-phase__item b {
  font-weight: 800;
  color: #fff;
}

.dash41-detail__text em,
.dash41-detail__text i,
.dash41-phase__item em,
.dash41-phase__item > span i,
.dash41-phase__item > span em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}

.dash41-formatbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 10px;
}

.dash41-formatbar__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-right: 4px;
}

.dash41-formatbar__btn {
  width: 30px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(57, 255, 20, 0.25);
  background: rgba(57, 255, 20, 0.08);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.dash41-formatbar__btn:hover {
  border-color: var(--green);
  background: rgba(57, 255, 20, 0.16);
  color: var(--green);
}

@keyframes dash41-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dash41-task__handle {
  color: rgba(154, 170, 149, 0.5);
  font-size: 0.75rem;
  cursor: grab;
}

.dash41-task__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.35), rgba(0, 255, 136, 0.15));
  border: 1px solid rgba(57, 255, 20, 0.4);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green);
}

.dash41-task__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
}

.dash41-task__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.dash41-task__tag {
  color: rgba(57, 255, 20, 0.85);
}

.dash41-task__creator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.dash41-task__creator i {
  font-size: 0.65rem;
  opacity: 0.8;
}

.dash41-task__activity {
  margin-top: 6px;
  font-size: 0.72rem;
  color: rgba(154, 170, 149, 0.9);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dash41-task__activity i {
  color: rgba(57, 255, 20, 0.65);
  font-size: 0.68rem;
  flex-shrink: 0;
}

.dash41-activity {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.dash41-activity__item {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0 10px 2px;
  border-bottom: 1px solid rgba(57, 255, 20, 0.08);
}

.dash41-activity__item:last-child {
  border-bottom: none;
}

.dash41-activity__dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.55);
}

.dash41-activity__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
  color: var(--text);
}

.dash41-activity__main strong {
  color: var(--green);
  font-weight: 700;
}

.dash41-activity__detail {
  color: var(--muted);
  font-size: 0.82rem;
}

.dash41-activity__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}

.dash41-activity__meta b {
  color: var(--text);
  font-weight: 600;
}

.dash41-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.dash41-badge.is-new {
  background: rgba(57, 255, 20, 0.15);
  color: var(--green);
}

.dash41-badge.is-planned {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.dash41-badge.is-progress {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
}

.dash41-badge.is-done {
  background: rgba(154, 170, 149, 0.2);
  color: #c5d4c0;
}

.dash41-status-select {
  background: #0a100f;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.75rem;
}

.dash41-task__menu,
.dash41-task__delete,
.dash41-phase__delete,
.dash41-item-delete,
.dash41__add-phase {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.dash41-task__delete:hover,
.dash41-phase__delete:hover,
.dash41-item-delete:hover {
  color: #ff6b6b;
}

.dash41__add-task {
  margin-top: 14px;
  width: 100%;
  border: 1px dashed rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.05);
  color: var(--green);
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.dash41__add-task:hover {
  background: rgba(57, 255, 20, 0.1);
  border-color: var(--green);
}

.dash41__roadmap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dash41__roadmap-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.dash41__roadmap-head h2 i {
  color: var(--green);
}

.dash41__roadmap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dash41-phase {
  position: relative;
  padding-left: 28px;
}

.dash41-phase__dot {
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.7);
  z-index: 1;
}

.dash41-phase__line {
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(57, 255, 20, 0.55), rgba(57, 255, 20, 0.08));
}

.dash41-phase__card {
  background: rgba(15, 21, 21, 0.95);
  border: 1px solid rgba(57, 255, 20, 0.14);
  border-radius: 12px;
  padding: 14px;
  animation: dash41-fade-in 0.45s ease both;
}

.dash41-phase__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.dash41-phase__title {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
}

.dash41-phase__subtitle {
  color: var(--muted);
  font-size: 0.85rem;
}

.dash41-phase__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.dash41-phase__count {
  margin-left: auto;
  color: rgba(57, 255, 20, 0.8);
}

.dash41-phase__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash41-check-paste {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px dashed rgba(57, 255, 20, 0.28);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.dash41-check-paste__input {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(57, 255, 20, 0.2);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  padding: 10px 12px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.dash41-check-paste__input:focus {
  outline: none;
  border-color: var(--green);
}

.dash41-phase__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
}

.dash41-phase__item.is-done span {
  text-decoration: line-through;
  color: var(--muted);
}

.dash41-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid rgba(154, 170, 149, 0.45);
  background: transparent;
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  cursor: pointer;
}

.dash41-check i {
  color: transparent !important;
  opacity: 0;
  font-style: normal !important;
}

.dash41-phase__item.is-done .dash41-check {
  background: rgba(57, 255, 20, 0.2);
  border-color: var(--green);
  color: var(--green);
}

.dash41-phase__item.is-done .dash41-check i {
  color: var(--green) !important;
  opacity: 1;
}

.dash41-add-item {
  margin-top: 10px;
  border: none;
  background: transparent;
  color: var(--green);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 0;
}

.dash41-sfp-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  margin: 0;
}

.dash41__sfp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash41__add-sfp {
  margin-top: 14px;
  width: 100%;
  border: 1px dashed rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.05);
  color: var(--green);
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.dash41__add-sfp:hover {
  background: rgba(57, 255, 20, 0.1);
  border-color: var(--green);
}

.dash41-sfp {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  background: rgba(15, 21, 21, 0.95);
  border: 1px solid rgba(57, 255, 20, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dash41-sfp:hover {
  border-color: rgba(57, 255, 20, 0.4);
}

.dash41-sfp.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.25);
  background: rgba(57, 255, 20, 0.06);
}

.dash41-sfp__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(57, 255, 20, 0.12);
  color: var(--green);
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.dash41-sfp__name {
  font-weight: 650;
  color: var(--text);
  font-size: 0.95rem;
}

.dash41-sfp__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.dash41-sfp__creator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(57, 255, 20, 0.85);
}

.dash41-sfp__creator i {
  font-size: 0.65rem;
}

.dash41-sfp__price {
  color: #f59e0b;
  font-weight: 600;
}

.dash41-sfp__desc {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.dash41-sfp-link {
  display: block;
  color: var(--green);
  word-break: break-all;
  font-size: 0.9rem;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(57, 255, 20, 0.1);
  border-radius: 10px;
  padding: 12px;
}

.dash41-sfp-link:hover {
  border-color: var(--green);
}

.dash41-badge.is-wanted {
  background: rgba(57, 255, 20, 0.15);
  color: var(--green);
}

.dash41-badge.is-considering {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.dash41-badge.is-bought {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
}

.dash41-badge.is-skipped {
  background: rgba(154, 170, 149, 0.2);
  color: #c5d4c0;
}

.dash41-changes-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  margin: 0;
}

.dash41__changes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash41__add-change {
  margin-top: 14px;
  width: 100%;
  border: 1px dashed rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.05);
  color: var(--green);
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.dash41__add-change:hover {
  background: rgba(57, 255, 20, 0.1);
  border-color: var(--green);
}

.dash41-change {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: rgba(15, 21, 21, 0.95);
  border: 1px solid rgba(57, 255, 20, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dash41-change:hover {
  border-color: rgba(57, 255, 20, 0.4);
}

.dash41-change.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.25);
  background: rgba(57, 255, 20, 0.06);
}

.dash41-change__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(57, 255, 20, 0.12);
  color: var(--green);
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.dash41-change__title {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  font-size: 1.05rem;
}

.dash41-change__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.dash41-change__creator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(57, 255, 20, 0.85);
}

.dash41-change__creator i {
  font-size: 0.65rem;
}

.dash41-change__check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(57, 255, 20, 0.9);
  font-weight: 600;
}

.dash41-change__check i {
  font-size: 0.7rem;
}

.dash41-change__desc {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash41-detail--log {
  font-family: "Rajdhani", "Consolas", monospace;
}

.dash41-log-paste {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px dashed rgba(57, 255, 20, 0.28);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.dash41-log-paste label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash41-log-paste__input {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(57, 255, 20, 0.2);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  padding: 10px 12px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.dash41-log-paste__input:focus {
  outline: none;
  border-color: var(--green);
}

.dash41-log {
  display: grid;
  gap: 18px;
}

.dash41-log-section {
  border: 1px solid rgba(57, 255, 20, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.dash41-log-section--dev {
  border-color: rgba(96, 165, 250, 0.28);
}

.dash41-log-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(57, 255, 20, 0.08);
  border-bottom: 1px solid rgba(57, 255, 20, 0.12);
}

.dash41-log-section--dev .dash41-log-section__head {
  background: rgba(96, 165, 250, 0.1);
  border-bottom-color: rgba(96, 165, 250, 0.18);
}

.dash41-log-section__head h3 {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--green);
}

.dash41-log-section--dev .dash41-log-section__head h3 {
  color: #93c5fd;
}

.dash41-log-section__mark {
  opacity: 0.7;
}

.dash41-log-section__body {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}

.dash41-log-group {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 21, 21, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.dash41-log-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dash41-log-group__name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  min-width: 0;
  flex: 1;
  outline: none;
}

.dash41-log-group__actions {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}

.dash41-log-lines {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 0 12px;
  display: grid;
  gap: 4px;
}

.dash41-log-line {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.dash41-log-line__bullet {
  color: var(--green);
  font-weight: 700;
}

.dash41-log-line__text {
  outline: none;
  color: rgba(220, 232, 216, 0.92);
  min-width: 0;
}

.dash41-log-line__text strong,
.dash41-log-line__text b {
  color: #fff;
  font-weight: 800;
}

.dash41-detail-empty code {
  color: var(--green);
  font-size: 0.85em;
}

.dash41-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 16px 4px;
}

/* ===== ECONOMY MODULE ===== */
.dash41-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash41-dot--legal {
  background: var(--green);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.dash41-dot--illegal {
  background: #ff4d4d;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.55);
}

.dash41-stat__icon {
  color: var(--green);
  font-size: 0.95rem;
}

.dash41__add-job {
  margin-top: 14px;
  width: 100%;
  border: 1px dashed rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.05);
  color: var(--green);
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.dash41__add-job:hover {
  background: rgba(57, 255, 20, 0.1);
  border-color: var(--green);
}

.dash41-jobs-section {
  margin-bottom: 22px;
}

.dash41-jobs-section:last-child {
  margin-bottom: 0;
}

.dash41-jobs-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dash41-jobs-section__head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.dash41-jobs-section--legal .dash41-jobs-section__head h3 {
  color: var(--green);
}

.dash41-jobs-section--illegal .dash41-jobs-section__head h3 {
  color: #ff6b6b;
}

.dash41-jobs-section--selling .dash41-jobs-section__head h3 {
  color: #f59e0b;
}

.dash41-jobs-section--gambling .dash41-jobs-section__head h3 {
  color: #a78bfa;
}

.dash41-jobs-section--quests .dash41-jobs-section__head h3 {
  color: #2dd4bf;
}

.dash41-jobs-section__count {
  color: var(--muted);
  font-size: 0.85rem;
}

.dash41-jobs-table__head {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(100px, 1fr) 110px 130px 28px;
  gap: 12px;
  padding: 0 14px 8px 62px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash41-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash41-job {
  display: grid;
  grid-template-columns: 40px minmax(0, 2.2fr) minmax(100px, 1fr) 110px 130px 28px;
  gap: 12px;
  align-items: center;
  background: rgba(15, 21, 21, 0.95);
  border: 1px solid rgba(57, 255, 20, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dash41-job.is-illegal {
  border-color: rgba(255, 77, 77, 0.18);
}

.dash41-job:hover {
  border-color: rgba(57, 255, 20, 0.4);
}

.dash41-job.is-illegal:hover {
  border-color: rgba(255, 77, 77, 0.45);
}

.dash41-job.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.25);
  background: rgba(57, 255, 20, 0.06);
}

.dash41-job.is-illegal.is-selected {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.25);
  background: rgba(255, 77, 77, 0.06);
}

.dash41-job__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.dash41-job__icon.is-legal {
  background: rgba(57, 255, 20, 0.12);
  color: var(--green);
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.dash41-job__icon.is-illegal {
  background: rgba(255, 77, 77, 0.12);
  color: #ff6b6b;
  border: 1px solid rgba(255, 77, 77, 0.3);
}

.dash41-job__icon.is-selling {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dash41-job__icon.is-gambling {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.dash41-job__icon.is-quests {
  background: rgba(45, 212, 191, 0.12);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.dash41-job__name {
  font-weight: 650;
  color: var(--text);
  font-size: 0.95rem;
}

.dash41-job__desc {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
}

.dash41-job__script {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
  padding: 4px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash41-job__type {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  width: fit-content;
}

.dash41-job__type.is-legal {
  background: rgba(57, 255, 20, 0.15);
  color: var(--green);
}

.dash41-job__type.is-illegal {
  background: rgba(255, 77, 77, 0.15);
  color: #ff6b6b;
}

.dash41-job__type.is-selling {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.dash41-job__type.is-gambling {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

.dash41-job__type.is-quests {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
}

.dash41-job__earnings {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.dash41-job__chevron {
  color: var(--muted);
  text-align: right;
  font-size: 0.8rem;
}

.edit-mode-active .dash41-job {
  grid-template-columns: 40px minmax(0, 2.2fr) minmax(100px, 1fr) 110px 130px 28px 32px;
}

.dash41-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 520px;
}

.dash41-table__head,
.dash41-table__row {
  display: grid;
  grid-template-columns: 2fr 0.7fr 0.8fr 0.9fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.dash41-table__head {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.dash41-table__row {
  background: rgba(15, 21, 21, 0.7);
  border-radius: 8px;
  font-size: 0.9rem;
}

body.page-dashboard-41.edit-mode-active #addBlockBtn {
  display: none !important;
}

body.page-dashboard-41.edit-mode-active .dash41-task__title.editable,
body.page-dashboard-41.edit-mode-active [contenteditable="true"] {
  outline: 1px dashed rgba(57, 255, 20, 0.45);
  border-radius: 4px;
  padding: 1px 4px;
}

@media (max-width: 980px) {
  .dash41__grid {
    grid-template-columns: 1fr;
  }

  .dash41__panel--detail {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .dash41__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .dash41-detail__fields {
    grid-template-columns: 1fr;
  }

  .dash41__modules {
    width: 100%;
  }

  .dash41__module {
    flex: 1;
    justify-content: center;
  }

  .dash41-jobs-table__head {
    display: none;
  }

  .dash41-job,
  .edit-mode-active .dash41-job {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "icon body type"
      "icon body earnings"
      "icon script chevron";
  }

  .dash41-job__icon { grid-area: icon; }
  .dash41-job__body { grid-area: body; }
  .dash41-job__type { grid-area: type; }
  .dash41-job__earnings { grid-area: earnings; justify-self: end; }
  .dash41-job__script { grid-area: script; }
  .dash41-job__chevron { grid-area: chevron; }
  .dash41-job .dash41-task__delete { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 640px) {
  .page-dashboard-41 .dash41 {
    padding-top: 90px;
  }

  .dash41__stats {
    grid-template-columns: 1fr 1fr;
  }

  .dash41-task {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "avatar title"
      "avatar meta"
      "badge badge";
  }

  .dash41-task__handle,
  .dash41-task__menu { display: none; }

  .dash41-task__avatar { grid-area: avatar; }
  .dash41-task__body { grid-area: title; }
  .dash41-badge,
  .dash41-status-select { grid-area: badge; justify-self: start; margin-top: 4px; }
}

