/* Visual-only premium layer. Existing structure, navigation and behavior remain unchanged. */
:root {
  --bg: #060608;
  --panel: #0e0e12;
  --panel-2: #131318;
  --panel-3: #19191f;
  --surface: rgba(17, 17, 22, .9);
  --surface-strong: rgba(24, 24, 30, .97);
  --text: #f8f8fa;
  --text-soft: #e7e7ec;
  --muted: #9999a5;
  --muted-blue: #a0a0ae;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .15);
  --accent: #f02d4f;
  --accent-2: #9f1731;
  --accent-soft: rgba(240, 45, 79, .12);
  --success: #37c978;
  --info: #f2b84b;
  --danger: #e13d4f;
  --shadow: 0 24px 64px rgba(0, 0, 0, .42);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, .24);
  --radius: 8px;
}

html { color-scheme: dark; }

body {
  background:
    linear-gradient(135deg, rgba(240, 45, 79, .055), transparent 34%),
    linear-gradient(180deg, #09090c 0%, #050506 100%);
}

body::before {
  opacity: .38;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .012) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

::selection {
  color: #fff;
  background: rgba(240, 45, 79, .55);
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #09090c; }
::-webkit-scrollbar-thumb {
  border: 2px solid #09090c;
  border-radius: 8px;
  background: #33333c;
}
::-webkit-scrollbar-thumb:hover { background: #4c2630; }

.app.is-ready { grid-template-columns: 272px minmax(0, 1fr); }

.sidebar {
  width: 272px;
  padding: 20px 14px 16px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(19, 19, 24, .98), rgba(7, 7, 9, .98));
  box-shadow: 16px 0 44px rgba(0, 0, 0, .22);
  scrollbar-width: thin;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 180px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: .65;
}

.sidebar .brand {
  gap: 12px;
  min-height: 72px;
  margin-bottom: 14px;
  padding: 8px 8px 18px;
  border-bottom-color: rgba(255, 255, 255, .08);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-color: rgba(240, 45, 79, .52);
  background: linear-gradient(145deg, #17171c, #08080a);
  box-shadow: 0 0 0 4px rgba(240, 45, 79, .07), 0 14px 28px rgba(0, 0, 0, .32);
}

.sidebar .brand h2 {
  font-size: 1.08rem;
  font-weight: 850;
}

.sidebar .brand p {
  color: #b1b1ba;
  font-size: .78rem;
}

.nav {
  gap: 5px;
  margin-top: 4px;
}

.navbtn {
  position: relative;
  gap: 11px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #aaaab5;
  font-size: .88rem;
  font-weight: 720;
  overflow: hidden;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.navbtn .icon {
  width: 19px;
  height: 19px;
  padding: 1px;
  color: #858590;
  transition: color .2s ease, transform .2s ease;
}

.navbtn::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(.35);
  transition: opacity .2s ease, transform .2s ease;
}

.navbtn:hover {
  color: #f2f2f5;
  border-color: rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .035);
  transform: translateX(2px);
}

.navbtn:hover .icon {
  color: #d7d7dc;
  transform: scale(1.05);
}

.navbtn.active {
  color: #fff;
  border-color: rgba(240, 45, 79, .26);
  background: linear-gradient(90deg, rgba(240, 45, 79, .18), rgba(240, 45, 79, .035));
  box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 8px 22px rgba(0, 0, 0, .16);
  transform: none;
}

.navbtn.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.navbtn.active .icon { color: #ff6a82; }

.sidebar-footer {
  gap: 8px;
  margin-top: 22px;
  padding-top: 15px;
  border-top-color: rgba(255, 255, 255, .08);
}

.sidebar-footer .btn {
  justify-content: flex-start;
  min-height: 42px;
  padding: 9px 11px;
  font-size: .78rem;
}

.main {
  max-width: 1800px;
  width: 100%;
  padding: 24px clamp(20px, 3vw, 44px) 44px;
}

.main::before {
  left: 272px;
  height: 104px;
  background: linear-gradient(180deg, rgba(6, 6, 8, .88), transparent);
  border-bottom: 0;
}

.topbar {
  top: 10px;
  z-index: 8;
  min-height: 76px;
  margin: 0 0 24px;
  padding: 14px 16px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 8px;
  background: rgba(13, 13, 17, .8);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(22px) saturate(120%);
}

.topbar h1 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 820;
}

.topbar .panel-subtitle {
  margin: 5px 0 0;
  font-size: .82rem;
}

.top-actions {
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.btn {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(240, 45, 79, .28);
  border-radius: 7px;
  background: linear-gradient(135deg, #f23b59, #b71836);
  box-shadow: 0 8px 20px rgba(154, 16, 44, .2), inset 0 1px rgba(255, 255, 255, .18);
  font-size: .84rem;
  font-weight: 760;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 12px 26px rgba(154, 16, 44, .28), inset 0 1px rgba(255, 255, 255, .2);
}

.btn:active { transform: translateY(0); }

.btn.secondary {
  color: #dedee4;
  border-color: rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.btn.secondary:hover {
  color: #fff;
  border-color: rgba(240, 45, 79, .28);
  background: rgba(240, 45, 79, .08);
}

.btn.danger {
  border-color: rgba(225, 61, 79, .28);
  background: rgba(225, 61, 79, .1);
  box-shadow: none;
}

.page.active { animation: premiumPageIn .32s cubic-bezier(.2, .8, .2, 1); }

@keyframes premiumPageIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-panel {
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
  border-color: rgba(240, 45, 79, .2);
  border-radius: 8px;
  background: linear-gradient(115deg, rgba(27, 18, 22, .98), rgba(14, 14, 18, .97) 48%, rgba(30, 14, 19, .94));
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, .035);
}

.hero-panel h2 {
  margin: 7px 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 850;
}

.eyebrow {
  color: #ff6b83;
  font-size: .7rem;
  letter-spacing: .14em;
}

.action-box {
  min-width: 220px;
  padding: 16px;
  border-color: rgba(255, 255, 255, .09);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(240, 45, 79, .055));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.action-box strong {
  margin: 7px 0 5px;
  font-size: 2.2rem;
}

.grid,
.weekly-grid,
.admin-grid { gap: 14px; }

.card {
  border-color: rgba(255, 255, 255, .085);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(20, 20, 25, .96), rgba(13, 13, 17, .96));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .025);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, .13);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .035);
}

.card-pad { padding: 18px; }

.metric {
  min-height: 126px;
  padding: 18px;
  border-color: rgba(255, 255, 255, .085);
  background: linear-gradient(145deg, rgba(22, 22, 27, .98), rgba(12, 12, 15, .98));
}

.metric::after {
  top: auto;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, var(--accent));
  opacity: .75;
}

.metric:nth-child(2)::after { background: linear-gradient(90deg, transparent, #6597ff); }
.metric:nth-child(3)::after { background: linear-gradient(90deg, transparent, #efb846); }
.metric:nth-child(4)::after { background: linear-gradient(90deg, transparent, #38c978); }

.metric span {
  color: #aaaab5;
  font-size: .78rem;
}

.metric span .icon { color: #dc5069; }

.metric strong {
  margin-top: 14px;
  font-size: 1.85rem;
  font-weight: 850;
}

.metric small { font-size: .73rem; }

.section-title {
  min-height: 34px;
  margin-bottom: 14px;
}

.section-title h2,
.section-title h3 {
  color: #f1f1f4;
  font-size: .98rem;
  font-weight: 800;
}

.toolbar {
  gap: 10px;
  padding: 10px;
  border-color: rgba(255, 255, 255, .085);
  border-radius: 8px;
  background: rgba(15, 15, 19, .86);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

input,
select,
textarea {
  min-height: 44px;
  border-color: rgba(255, 255, 255, .095);
  border-radius: 7px;
  color: #e9e9ed;
  background: rgba(7, 7, 10, .7);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:hover,
select:hover,
textarea:hover { border-color: rgba(255, 255, 255, .16); }

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(240, 45, 79, .52);
  background: rgba(11, 11, 14, .94);
  box-shadow: 0 0 0 3px rgba(240, 45, 79, .11);
}

textarea {
  width: 100%;
  min-height: 108px;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  font: inherit;
  line-height: 1.5;
}

.license-check-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: start;
}

.license-editor-card {
  position: sticky;
  top: 112px;
}

.license-check-results {
  min-width: 0;
}

.license-category-list {
  display: grid;
  gap: 12px;
}

.license-category {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(20, 20, 25, .96), rgba(13, 13, 17, .96));
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

.license-category summary {
  display: flex;
  min-height: 54px;
  padding: 13px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .18s ease, color .18s ease;
}

.license-category summary::-webkit-details-marker { display: none; }

.license-category summary:hover {
  background: rgba(255, 255, 255, .03);
}

.license-category summary::after {
  content: "›";
  color: #898993;
  font-size: 1.2rem;
  transform: rotate(90deg);
  transition: transform .2s ease, color .2s ease;
}

.license-category:not([open]) summary::after { transform: rotate(0); }
.license-category[open] summary::after { color: #e3e3e8; }

.license-category-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #ececf0;
  font-size: .9rem;
  font-weight: 820;
}

.license-category-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8d8d98;
  box-shadow: 0 0 0 4px rgba(141, 141, 152, .1);
}

.license-category-dot.status-clean { background: var(--success); box-shadow: 0 0 0 4px rgba(55, 201, 120, .1); }
.license-category-dot.status-suspicious { background: var(--info); box-shadow: 0 0 0 4px rgba(242, 184, 75, .1); }
.license-category-dot.status-cheat { background: var(--danger); box-shadow: 0 0 0 4px rgba(225, 61, 79, .11); }

.license-category-count {
  display: grid;
  min-width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0 8px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  color: #c7c7cf;
  background: rgba(255, 255, 255, .04);
  font-size: .72rem;
  font-weight: 850;
}

.license-category-items {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.license-category-items > :first-child {
  margin-top: 12px;
}

.license-check-toolbar {
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 240px) 44px;
}

.license-check-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid #8d8d98;
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(20, 20, 25, .96), rgba(13, 13, 17, .96));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.license-check-item[data-status="clean"] { border-left-color: var(--success); }
.license-check-item[data-status="suspicious"] { border-left-color: var(--info); }
.license-check-item[data-status="cheat"] { border-left-color: var(--danger); }

.license-check-title {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.license-check-title .license { color: #f0f0f4; }

.check-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #d7d7dd;
  background: rgba(255, 255, 255, .04);
  font-size: .7rem;
  font-weight: 800;
}

.check-status.status-clean { color: #8ce6b2; border-color: rgba(55, 201, 120, .32); background: rgba(55, 201, 120, .08); }
.check-status.status-suspicious { color: #f5cf7e; border-color: rgba(242, 184, 75, .32); background: rgba(242, 184, 75, .08); }
.check-status.status-cheat { color: #ff9aa7; border-color: rgba(225, 61, 79, .36); background: rgba(225, 61, 79, .1); }

.license-check-notes {
  margin: 10px 0 0;
  color: #d1d1d8;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.license-check-evidence {
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 6px;
  color: #aaaab5;
  background: rgba(255, 255, 255, .02);
  font-size: .78rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ban-item,
.user-row,
.whitelist-item,
.staff-row,
.podium-item,
.session-item,
.detail-line,
.check-row {
  border-color: rgba(255, 255, 255, .08);
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.ban-item:hover,
.user-row:hover,
.whitelist-item:hover,
.staff-row:hover,
.podium-item:hover,
.session-item:hover,
.check-row:hover {
  border-color: rgba(240, 45, 79, .22);
  background: rgba(240, 45, 79, .035);
  transform: translateY(-1px);
}

.ban-item {
  background:
    linear-gradient(90deg, rgba(240, 45, 79, .055), transparent 34%),
    rgba(16, 16, 21, .88);
}

.item-avatar,
.rank,
.podium-rank {
  background: linear-gradient(145deg, #ef3f5c, #8f142c);
  box-shadow: 0 8px 18px rgba(138, 16, 40, .2);
}

.session-item { padding: 14px 10px; }

.session-avatar {
  border-color: rgba(240, 45, 79, .42);
  box-shadow: 0 0 0 4px rgba(240, 45, 79, .06);
}

.role-badge {
  border-color: rgba(240, 45, 79, .3);
  background: rgba(240, 45, 79, .12);
}

.logs-card { border-radius: 8px; }

.log-item {
  border-bottom-color: rgba(255, 255, 255, .07);
  transition: background .18s ease;
}

.log-item:hover { background: rgba(255, 255, 255, .025); }

.empty {
  border-color: rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .018);
}

.modal-backdrop {
  background: rgba(3, 3, 5, .78);
  backdrop-filter: blur(8px);
}

.modal-panel,
.login-card {
  border-color: rgba(255, 255, 255, .11);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(24, 24, 30, .98), rgba(10, 10, 13, .98));
  box-shadow: 0 32px 80px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .04);
}

.login {
  background:
    linear-gradient(135deg, rgba(240, 45, 79, .08), transparent 38%),
    rgba(5, 5, 7, .97);
}

.login-card { padding: 32px; }

.toast {
  border-color: rgba(255, 255, 255, .12);
  border-left-color: var(--accent);
  border-radius: 7px;
  background: rgba(17, 17, 22, .97);
  backdrop-filter: blur(16px);
}

@media (max-width: 1120px) {
  .app.is-ready { grid-template-columns: 248px minmax(0, 1fr); }
  .sidebar { width: 248px; }
  .main::before { left: 248px; }
  .hero-panel { grid-template-columns: minmax(0, 1fr) minmax(190px, .45fr); }
  .hero-panel .action-box:last-child { grid-column: 1 / -1; }
  .license-check-layout { grid-template-columns: 1fr; }
  .license-editor-card { position: static; }
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, rgba(240, 45, 79, .07), transparent 240px),
      #060608;
  }

  .sidebar {
    width: min(300px, 88vw);
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    box-shadow: 28px 0 70px rgba(0, 0, 0, .62);
  }

  .main { padding: 12px 12px 32px; }
  .main::before { left: 0; }

  .topbar {
    top: 6px;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
  }

  .topbar > div:first-child {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .topbar .panel-subtitle { grid-column: 1 / -1; }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .hero-panel,
  .card-pad { padding: 16px; }

  .hero-panel { gap: 12px; }
  .hero-panel .action-box:last-child { grid-column: auto; }
  .action-box { padding: 14px; }
  .stats-grid { gap: 10px; }

  .metric {
    min-height: 114px;
    padding: 14px;
  }

  .metric strong { font-size: 1.6rem; }
  .sessions-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { padding: 8px; }
  .license-check-toolbar { grid-template-columns: 1fr; }
  .license-check-toolbar .icon-only { width: 100%; }
  .license-check-item { grid-template-columns: 1fr; }
  .license-check-item .item-actions { width: 100%; }
  .license-check-item .item-actions .btn { flex: 1; }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-title .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
