:root {
  --bg: #0b0d10;
  --panel: #12161b;
  --panel-2: #171c22;
  --border: #252b32;
  --text: #f2f2f2;
  --muted: #8e969f;
  --accent: #ff6a00;
  --accent-2: #ff8533;
  --accent-soft: #e8a268;
  --green: #3ecf8e;
  --red: #ff5d5d;
  --topbar-h: 64px;
}
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.topbar {
  position: relative;
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; column-gap: 16px;
  row-gap: 8px;
  padding: 14px 24px;
  background: rgba(18, 22, 27, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  min-height: var(--topbar-h);
}
header.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,106,0,0.6) 20%, rgba(255,133,51,0.4) 50%, rgba(255,106,0,0.6) 80%, transparent);
  opacity: 0.7;
}
header.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.3px; color: #fff; text-decoration: none; transition: color 0.25s ease; white-space: nowrap; }
header.topbar .brand:hover { text-decoration: none; color: var(--accent); }
header.topbar .brand-logo {
  height: 34px; width: 34px; border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
header.topbar .brand:hover .brand-logo {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(255,106,0,0.12), 0 4px 14px rgba(255,106,0,0.2);
  transform: rotate(-4deg) scale(1.05);
}
header.topbar nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; justify-self: center; min-width: 0; }
.nav-sep { width: 1px; height: 22px; background: var(--border); align-self: center; }
header.topbar nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text); font-size: 0.92rem; text-decoration: none; text-align: center;
  font-family: 'Rajdhani', 'Segoe UI', sans-serif; font-weight: 600; letter-spacing: 0.3px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
header.topbar nav a::after {
  content: "";
  position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.28s ease, left 0.28s ease;
}
header.topbar nav a:hover { color: #fff; text-decoration: none; border-color: var(--accent-soft); background: var(--panel-2); }
header.topbar nav a:hover::after { width: calc(100% - 24px); left: 12px; }
header.topbar .userbox { color: var(--muted); font-size: 0.88rem; justify-self: end; }
.user-dd .dd-toggle { cursor: pointer; transition: color 0.2s ease; }
.user-dd .dd-toggle:hover { color: #fff; }
.user-dd .nav-dd-menu { left: auto; right: 0; transform: translateY(-22px); min-width: 140px; }

.nav-dd { position: relative; }
.nav-dd-menu {
  position: absolute; top: 100%; left: 50%; margin-top: 0;
  background: rgba(23, 28, 34, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 8px;
  min-width: 200px; padding: 14px 6px 6px; z-index: 200;
  box-shadow: 0 14px 32px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-22px);
  transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
}
header.topbar .nav-dd-menu a { display: block; position: static; padding: 8px 10px; border: none; border-radius: 7px; font-size: 0.88rem; white-space: nowrap; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
header.topbar .nav-dd-menu a::after { display: none; }
header.topbar .nav-dd-menu a:hover { background: rgba(255,106,0,0.1); border: none; color: var(--accent); text-decoration: none; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.user-dd:hover .nav-dd-menu, .user-dd:focus-within .nav-dd-menu { transform: translateY(0); }

.brand-dd { position: relative; display: flex; align-items: center; padding-bottom: 10px; margin-bottom: -10px; justify-self: start; min-width: 0; }
.brand-dd-caret {
  margin-left: 6px;
  font-size: 0.62rem;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.25s ease;
}
.brand-dd:hover .brand-dd-caret, .brand-dd:focus-within .brand-dd-caret { color: var(--accent); transform: rotate(180deg); }
.brand-dd-menu {
  display: flex; gap: 10px;
  position: absolute; top: 100%; left: 0;
  background: transparent;
  padding: 6px;
  z-index: 200;
  white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-22px);
  transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
}
.brand-dd:hover .brand-dd-menu, .brand-dd:focus-within .brand-dd-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.brand-dd-menu { align-items: center; padding: 10px 12px; }
@property --bdd-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes brand-dd-spin { to { --bdd-angle: 360deg; } }
.brand-dd-box {
  position: relative;
  isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  width: 108px; padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.92rem; font-weight: 600;
  font-family: 'Rajdhani', 'Segoe UI', sans-serif; letter-spacing: 0.3px;
  color: var(--text); text-align: center; text-decoration: none;
  border: 1px solid var(--border);
  transform: perspective(600px) translateY(0) rotateX(0deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease, color 0.25s ease;
}
.brand-dd-box::before {
  content: "";
  position: absolute; inset: -1px;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--bdd-angle), var(--accent), var(--accent-2), transparent 35%, transparent 65%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: brand-dd-spin 3s linear infinite paused;
}
.brand-dd-box:hover {
  transform: perspective(600px) translateY(-4px) rotateX(6deg);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35), 0 0 18px rgba(255,106,0,0.18);
  border-color: transparent; color: #fff;
  text-decoration: none;
}
.brand-dd-box:hover::before { opacity: 1; animation-play-state: running; }

.brand-cj-idle { position: relative; width: 22px; height: 40px; flex-shrink: 0; }
.brand-cj-idle .bcj-head { position: absolute; top: 0; left: 6px; width: 11px; height: 11px; background: #a5673f; border-radius: 50%; }
.brand-cj-idle .bcj-head::before { content: ""; position: absolute; top: -3px; left: -1px; width: 13px; height: 6px; background: #191512; border-radius: 7px 7px 0 0; }
.brand-cj-idle .bcj-torso { position: absolute; top: 13px; left: 5px; width: 12px; height: 16px; background: #f0f0ec; border-radius: 3px 3px 2px 2px; }
.brand-cj-idle .bcj-arm { position: absolute; top: 15px; width: 5px; height: 14px; background: #a5673f; border-radius: 2px; transform-origin: top center; animation: brand-cj-swing 0.32s ease-in-out infinite alternate; }
.brand-cj-idle .bcj-arm-l { left: 1px; animation-direction: alternate-reverse; }
.brand-cj-idle .bcj-arm-r { left: 16px; }
.brand-cj-idle .bcj-leg { position: absolute; bottom: 0; width: 6px; height: 15px; background: #3a5a96; border-radius: 2px; transform-origin: top center; animation: brand-cj-swing 0.32s ease-in-out infinite alternate; }
.brand-cj-idle .bcj-leg-l { left: 4px; }
.brand-cj-idle .bcj-leg-r { left: 12px; animation-direction: alternate-reverse; }
@keyframes brand-cj-swing { 0% { transform: rotate(-20deg); } 100% { transform: rotate(20deg); } }

.topbar-toggle {
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  width: 42px; height: 38px;
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; justify-self: end;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.topbar-toggle:hover { border-color: var(--accent-soft); background: var(--panel-2); }
.topbar-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
header.topbar.nav-open .topbar-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.topbar.nav-open .topbar-toggle span:nth-child(2) { opacity: 0; }
header.topbar.nav-open .topbar-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1400px) {
  header.topbar nav { flex-wrap: nowrap; }
}

@media (min-width: 1000px) and (max-width: 1399px) {
  header.topbar { grid-template-columns: 1fr auto; }
  header.topbar nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
  }
  header.topbar .userbox { grid-row: 1; }
}

@media (max-width: 999px) {
  header.topbar { grid-template-columns: 1fr auto; }
  .topbar-toggle { display: flex; }
  header.topbar nav, header.topbar .userbox {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  header.topbar.nav-open nav {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 4px; padding-top: 12px;
  }
  header.topbar.nav-open .userbox {
    display: block;
    padding-top: 10px; margin-top: 8px;
    border-top: 1px solid var(--border);
    justify-self: stretch; text-align: left;
  }
  header.topbar nav a { width: 100%; min-width: 0; justify-content: flex-start; }
  header.topbar nav a::after { display: none; }
  .nav-dd-menu {
    position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    display: none; background: var(--panel-2); box-shadow: none;
    margin: 2px 0 6px 14px; padding: 4px;
  }
  .nav-dd.dd-mobile-open > .nav-dd-menu { display: block; }
  .user-dd .nav-dd-menu { left: 0; right: auto; transform: none; }
}

.game-zone {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 480px;
  margin: 0 auto;
}

.game-back {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px 7px 13px;
  margin-bottom: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: 'Rajdhani', 'Segoe UI', sans-serif; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.2px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.game-back span { display: inline-block; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.game-back:hover {
  color: #fff; border-color: var(--accent-soft); background: var(--panel);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(255,106,0,0.18);
}
.game-back:hover span { transform: translateX(-4px); }

main { max-width: 1400px; margin: 0 auto; padding: 30px 24px 80px; }

.card {
  background: var(--panel);
  border: 1px solid rgba(232,162,104,0.35);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 14px 0;
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.section-nav {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 7px;
  z-index: 150;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}
.section-nav a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  font-size: 1.15rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.section-nav a:hover { background: var(--panel-2); transform: scale(1.08); }
.section-nav a.active { background: var(--accent); color: #0f1115; }
.section-nav a.active:hover { background: var(--accent); }
.section-nav a:hover::after {
  content: attr(title);
  position: absolute;
  right: 46px;
    border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}
.section-nav a { position: relative; }
@media (max-width: 1100px) {
  .section-nav { display: none; } /* not enough room beside the content */
}

/* Admin editor pages: same floating strip, but every page (14 items) needs 2 columns to stay short */
.admin-section-nav {
  display: grid;
  grid-template-columns: repeat(2, 36px);
  grid-auto-flow: row;
}

h1 { font-size: 1.6rem; color: #fff; margin: 0 0 18px; }
h2 { font-size: 1.15rem; color: #fff; margin: 0 0 10px; }

table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.92rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { background: var(--panel-2); color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; }

code {
  background: #11141b;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  color: var(--green);
}

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; }
.pill-ok   { background: rgba(62,207,142,0.15); color: var(--green); }
.pill-good { background: rgba(158,209,62,0.15); color: #9ed13e; }
.pill-warn { background: rgba(255,156,51,0.15); color: #ff9c33; }
.pill-bad  { background: rgba(255,93,93,0.15);  color: var(--red); }
.pill-lvl  { background: var(--panel-2); border: 1px solid var(--accent); color: var(--accent-2); font-family: monospace; }
.pill-vip  { background: rgba(255,215,0,0.15); border: 1px solid #FFD700; color: #FFD700; }

.meter { position: relative; display: inline-block; vertical-align: middle; width: 70px; height: 8px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.meter-fill.ok   { background: var(--green); }
.meter-fill.good { background: #9ed13e; }
.meter-fill.warn { background: #ff9c33; }
.meter-fill.bad  { background: var(--red); }
.meter-label { margin-left: 8px; font-size: 0.82rem; color: var(--muted); }

.skin-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.skin-box {
  width: 165px; height: 300px;
    border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.78rem; text-align: center;
  overflow: hidden;
  flex-shrink: 0;
}
.skin-box img { width: 100%; height: 100%; object-fit: cover; }

table.skin-collection td { text-align: center; vertical-align: middle; }
table.skin-collection th { text-align: center; }
.skin-thumb-box {
  width: 64px; height: 110px;
  margin: 0 auto;
    border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.68rem; text-align: center;
  overflow: hidden;
}
.skin-thumb-box img { width: 100%; height: 100%; object-fit: cover; }

.caravan-box {
  width: 200px; height: 150px;
    border-radius: 0;
  text-align: center; vertical-align: middle;
  overflow: hidden;
}
.caravan-box img { width: 100%; height: 100%; object-fit: contain; }

.vehicle-thumb {
  width: 110px; height: 70px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2);
}
.vehicle-thumb img { width: 100%; height: 100%; object-fit: contain; }

.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  width: 340px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 28px;
}
.login-card h1 { text-align: center; font-size: 1.4rem; margin-bottom: 22px; }
.login-card label { display: block; font-size: 0.85rem; color: var(--muted); margin: 12px 0 4px; }
.login-card input {
  width: 100%; padding: 9px 12px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 0.95rem;
}
.login-card button {
  width: 100%; margin-top: 18px; padding: 10px;
  background: var(--accent); border: none; border-radius: 8px;
  color: #0f1115; font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.login-card button:hover { opacity: 0.9; }
.error-box {
  background: rgba(255,93,93,0.1); border: 1px solid var(--red); color: var(--red);
  padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 14px;
}

.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.auth-modal-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.auth-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,9,11,0.72);
  backdrop-filter: blur(6px);
}
.auth-modal-card {
  position: relative; z-index: 1;
  width: 920px; max-width: 100%;
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,106,0,0.06);
  overflow: hidden;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.auth-modal-overlay.is-open .auth-modal-card { transform: scale(1) translateY(0); }
.auth-modal-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
}
.auth-modal-body { display: flex; }
.auth-modal-form-col { flex: 1; min-width: 0; padding: 40px 32px 30px; display: flex; flex-direction: column; justify-content: center; }
.auth-modal-image-col {
  width: 480px; flex-shrink: 0;
  padding: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2);
  border-left: 1px solid var(--border);
}
@media (max-width: 720px) {
  .auth-modal-card { width: 100%; }
  .auth-modal-body { flex-direction: column-reverse; }
  .auth-modal-image-col { width: 100%; border-left: none; border-top: 1px solid var(--border); padding: 16px 0; }
}
@keyframes auth-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.auth-modal-card.shake { animation: auth-shake 0.45s; }
.auth-modal-logo { display: block; width: 420px; height: 420px; max-width: 100%; margin: 0; border-radius: 12px; border: none; object-fit: cover; }
.auth-modal-title {
  text-align: center; margin: 0 0 22px;
  font-size: 1.2rem; font-weight: 700; letter-spacing: 0.3px; color: #fff;
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
}
.auth-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 50%;
  color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.auth-modal-close:hover { background: rgba(255,93,93,0.12); border-color: var(--red); color: var(--red); transform: rotate(90deg); }
.auth-tabs {
  position: relative; display: flex; gap: 4px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 11px;
  padding: 4px; margin-bottom: 22px;
}
.auth-tabs-indicator {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
}
.auth-tab {
  position: relative; z-index: 1; flex: 1;
  padding: 9px; border-radius: 8px;
  background: transparent; border: none;
  color: var(--muted); font-weight: 700; cursor: pointer;
  font-family: 'Rajdhani', 'Segoe UI', sans-serif; letter-spacing: 0.3px; font-size: 0.92rem;
  transition: color 0.2s ease;
}
.auth-tab.active { color: #0f1115; }
.auth-modal-error {
  background: rgba(255,93,93,0.1); border: 1px solid var(--red); color: var(--red);
  padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 16px;
}
.auth-field { position: relative; margin-bottom: 14px; }
.auth-field-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 0.9rem; opacity: 0.55; pointer-events: none;
}
.auth-field input {
  width: 100%; padding: 11px 14px 11px 38px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,0,0.15); }
.auth-submit {
  width: 100%; margin-top: 8px; padding: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none; border-radius: 10px;
  color: #0f1115; font-weight: 700; font-size: 0.98rem; cursor: pointer;
  font-family: 'Rajdhani', 'Segoe UI', sans-serif; letter-spacing: 0.3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.auth-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,106,0,0.35); }
.auth-submit:disabled { opacity: 0.7; cursor: default; }
.auth-terms { margin-top: 14px; font-size: 0.76rem; color: var(--muted); text-align: center; line-height: 1.5; }
.auth-register-info { text-align: center; }
.auth-register-info p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; margin: 0 0 14px; }
.auth-register-info p strong { color: #fff; font-family: 'Rajdhani', 'Segoe UI', sans-serif; letter-spacing: 0.3px; }
.auth-register-info p a { color: var(--accent); font-weight: 700; }
.auth-connect-btn { display: block; text-decoration: none; text-align: center; margin-top: 8px; }

footer { text-align: center; padding: 24px; color: var(--muted); font-size: 0.8rem; }

/* Admin editor pages (/ucp/admin/*.php) */
nav.subtabs { position: sticky; top: var(--topbar-h); z-index: 90; display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--border); margin-bottom: 16px; }
nav.subtabs a { background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; font-size: 0.85rem; color: var(--text); }
nav.subtabs a:hover { color: var(--accent); border-color: var(--accent-soft); text-decoration: none; }
nav.subtabs a.active { background: var(--accent); border-color: var(--accent-soft); color: #0f1115; font-weight: 600; }
table.edittable input[type=text], table.edittable input[type=number] {
  width: 100%; min-width: 70px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 7px; color: var(--text); font-size: 0.86rem;
}
table.edittable select { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 5px 7px; color: var(--text); font-size: 0.86rem; }
table.edittable td { vertical-align: middle; }
table.edittable .chk { text-align: center; vertical-align: middle; width: 1%; white-space: nowrap; }
.save-btn { background: var(--accent); border: none; border-radius: 6px; padding: 6px 14px; color: #0f1115; font-weight: 700; font-size: 0.82rem; cursor: pointer; }
.save-btn:hover { opacity: 0.9; }
.flash { padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.92rem; }
.flash.ok { background: rgba(62,207,142,0.1); border: 1px solid var(--green); color: var(--green); }
.flash.err { background: rgba(255,93,93,0.1); border: 1px solid var(--red); color: var(--red); }

/* Forum (/ucp/forum*.php) */
.forum-avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #0f1115; font-weight: 700; flex-shrink: 0; }

.forum-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0 0 18px;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
}
.forum-breadcrumb a { color: var(--muted); transition: color 0.15s ease; }
.forum-breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.forum-breadcrumb a:first-child { color: var(--text); font-weight: 600; }
.forum-breadcrumb a:first-child:hover { color: var(--accent); }
.forum-breadcrumb .crumb-sep { color: var(--border); font-size: 0.78rem; }
.forum-breadcrumb .crumb-current { color: var(--text); font-weight: 600; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none; border-radius: 10px;
  color: #0f1115; font-weight: 700; font-size: 0.98rem;
  font-family: 'Rajdhani', 'Segoe UI', sans-serif; letter-spacing: 0.4px;
  cursor: pointer; overflow: hidden;
  box-shadow: 0 6px 18px rgba(255,106,0,0.28);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, filter 0.2s ease;
}
.btn::before {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,106,0,0.4); filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: 0 4px 12px rgba(255,106,0,0.3); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; filter: none; }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.btn-sm { display: inline-block; background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 0.8rem; padding: 5px 10px; cursor: pointer; }
.btn-sm:hover { opacity: 0.85; }
.btn-sm:disabled { opacity: 0.35; cursor: default; }
.forum-reorder { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.forum-reorder form { display: inline; }
.forum-reorder .btn-sm { padding: 1px 7px; line-height: 1.4; }

.forum-cat-row { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--border); }
.forum-cat-row:last-child { border-bottom: none; }
.forum-cat-icon { font-size: 1.8rem; width: 48px; text-align: center; flex-shrink: 0; }
.forum-cat-main { flex: 1; min-width: 0; }
.forum-cat-title { font-size: 1.05rem; font-weight: 700; color: #fff; }
.forum-cat-title:hover { color: var(--accent); text-decoration: none; }
.forum-cat-desc { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.forum-cat-stats { width: 90px; text-align: center; color: var(--muted); font-size: 0.82rem; flex-shrink: 0; }
.forum-cat-stats strong { display: block; color: var(--text); font-size: 1rem; }
.forum-cat-last { width: 220px; flex-shrink: 0; font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.forum-cat-last a { color: var(--text); font-weight: 600; display: block; }
.forum-cat-last a:hover { color: var(--accent); }
.forum-cat-last-empty { color: var(--muted); font-size: 0.8rem; width: 220px; flex-shrink: 0; }
@media (max-width: 760px) { .forum-cat-stats, .forum-cat-last, .forum-cat-last-empty { display: none; } }

.forum-topic-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.forum-topic-row:last-child { border-bottom: none; }
.forum-topic-icon { width: 28px; text-align: center; font-size: 1.1rem; flex-shrink: 0; }
.forum-topic-main { flex: 1; min-width: 0; }
.forum-topic-title { font-weight: 600; color: #fff; }
.forum-topic-title:hover { color: var(--accent); text-decoration: none; }
.forum-topic-meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.forum-topic-status { width: 100px; flex-shrink: 0; text-align: center; }
.forum-topic-replies { width: 70px; flex-shrink: 0; text-align: center; color: var(--muted); font-size: 0.85rem; }
.forum-topic-last { width: 200px; flex-shrink: 0; font-size: 0.78rem; color: var(--muted); }
.forum-topic-last strong { color: var(--text); display: block; font-weight: 600; }
@media (max-width: 800px) { .forum-topic-status, .forum-topic-replies, .forum-topic-last { display: none; } }

.forum-post { display: flex; gap: 16px; padding: 18px; border-bottom: 1px solid var(--border); }
.forum-post:nth-child(even) { background: rgba(255,255,255,0.015); }
.forum-post:last-child { border-bottom: none; }
.forum-post-user { width: 120px; flex-shrink: 0; text-align: center; }
.forum-post-user .forum-avatar { margin: 0 auto 8px; font-size: 1.3rem; }
.forum-post-username { font-weight: 700; font-size: 0.88rem; word-break: break-word; }
.forum-post-content { flex: 1; min-width: 0; }
.forum-post-meta { color: var(--muted); font-size: 0.78rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.forum-post-body { white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
@media (max-width: 600px) {
  .forum-post { flex-direction: column; }
  .forum-post-user { width: auto; display: flex; align-items: center; gap: 10px; text-align: left; }
  .forum-post-user .forum-avatar { margin: 0; }
}
