/* Admin control center — dark charcoal with restrained depth (no photo BG) */

/* Hide scrollbars; overflow remains scrollable */
html:has(body.admin-cc),
body.admin-cc,
body.admin-cc *,
.admin-cc-detail,
.admin-cc-detail-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html:has(body.admin-cc)::-webkit-scrollbar,
body.admin-cc::-webkit-scrollbar,
body.admin-cc *::-webkit-scrollbar,
.admin-cc-detail::-webkit-scrollbar,
.admin-cc-detail-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Lock document shell — overflow-x:hidden alone promotes overflow-y to auto
   and 100vh min-heights left an empty page scrollbar gutter. */
html:has(body.admin-cc) {
  height: 100%;
  overflow: hidden;
}

body.admin-cc {
  --admin-bg: #101214;
  --admin-surface: #16191c;
  --admin-surface-raised: #1a1e22;
  --admin-panel: rgba(22, 25, 28, 0.94);
  --admin-panel-soft: rgba(28, 32, 36, 0.9);
  --admin-stroke: rgba(255, 255, 255, 0.08);
  --admin-stroke-strong: rgba(255, 255, 255, 0.14);
  --admin-text: #f0f1ee;
  --admin-muted: #8b918c;
  --admin-soft: #c5c9c4;
  --admin-accent-pending: #c9a227;
  --admin-accent-approved: #3d9a6a;
  --admin-accent-rejected: #c45c5c;
  --admin-accent-allowlist: #6b7f8f;
  --admin-accent-staff: #7a848e;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  margin: 0;
  color: var(--admin-text);
  font-family: "Poppins", sans-serif !important;
  overflow: hidden;
  background: var(--admin-bg) !important;
}

/* Kill night-yard / city photo on admin only — solid charcoal gradient */
body.admin-cc.dashboard-page::before {
  background-color: #101214 !important;
  background-image:
    radial-gradient(ellipse 80% 50% at 12% -8%, rgba(255, 255, 255, 0.04), transparent 52%),
    radial-gradient(ellipse 60% 40% at 92% 5%, rgba(255, 255, 255, 0.025), transparent 48%),
    linear-gradient(168deg, #171a1d 0%, #101214 45%, #0c0e10 100%) !important;
  filter: none !important;
  opacity: 1 !important;
}

body.admin-cc.dashboard-page::after {
  opacity: 0.055 !important;
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 50%, transparent 88%);
}

body.admin-cc.admin-cc-detail-open {
  overflow: hidden;
}

.admin-cc-access {
  width: min(520px, calc(100% - 48px));
  margin: 120px auto;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--admin-stroke-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    linear-gradient(145deg, rgba(28, 32, 36, 0.96), rgba(14, 16, 18, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.4);
}

.admin-cc-app {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-cc-top {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--admin-stroke);
  background: rgba(14, 16, 18, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 8px 24px rgba(0, 0, 0, 0.2);
}

.admin-cc-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: #f4f5f2;
}

.admin-cc-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--admin-stroke-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.04em;
  color: var(--admin-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-cc-top-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.admin-cc-account {
  min-height: 44px !important;
  min-width: 196px;
  padding: 4px 10px 4px 6px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--admin-stroke-strong) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-cc-account-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.admin-cc-account-copy strong {
  font-size: 12px;
  line-height: 1.2;
}

.admin-cc-account-copy small {
  font-size: 10px;
  color: #d97878;
}

.admin-cc-body {
  flex: 1;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.admin-cc-sidebar {
  padding: 20px 14px;
  border-right: 1px solid var(--admin-stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%),
    rgba(12, 14, 16, 0.98);
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
}

.admin-cc-sidebar-label {
  margin: 0 8px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-stroke);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f7571;
}

.admin-cc-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 46px;
  padding: 9px 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #9aa09b;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.admin-cc-nav svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.admin-cc-nav:hover {
  color: #f0f1ee;
  background: rgba(255, 255, 255, 0.045);
}

.admin-cc-nav.is-active {
  color: #f6f7f4;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.2);
}

.admin-cc-nav.is-active svg {
  opacity: 1;
}

.admin-cc-nav.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #e6e8e4;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-cc-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.18);
  color: #e8d28a;
  border: 1px solid rgba(201, 162, 39, 0.28);
  font-size: 10px;
  font-weight: 650;
  font-style: normal;
  display: inline-grid;
  place-items: center;
}

.admin-cc-main {
  padding: 26px clamp(18px, 2.8vw, 36px) 40px;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.admin-cc-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.admin-cc-view[hidden] {
  display: none !important;
}

.admin-cc-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-cc-heading > div {
  min-width: 0;
  flex: 1;
}

.admin-cc-heading h1 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #f4f5f2;
}

.admin-cc-heading p {
  margin: 8px 0 0;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 42rem;
  font-weight: 400;
}

.admin-cc-refresh {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--admin-stroke-strong);
  background: rgba(255, 255, 255, 0.045);
  color: #e4e6e2;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-cc-refresh svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-cc-refresh:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-cc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-cc-stat {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  padding: 18px 18px 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--admin-stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 42%),
    linear-gradient(155deg, rgba(28, 32, 36, 0.95), rgba(16, 18, 20, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 28px rgba(0, 0, 0, 0.22);
}

.admin-cc-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: rgba(255, 255, 255, 0.22);
}

.admin-cc-stat span {
  display: block;
  color: var(--admin-muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 550;
}

.admin-cc-stat strong {
  display: block;
  margin-top: 14px;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #f5f6f3;
}

.admin-cc-stat i {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  opacity: 0.35;
  background: currentColor;
  mask-size: 16px 16px;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: 16px 16px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.admin-cc-stat .ico-clock {
  color: var(--admin-accent-pending);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2'/%3E%3C/svg%3E");
}

.admin-cc-stat .ico-check {
  color: var(--admin-accent-approved);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.admin-cc-stat .ico-x {
  color: var(--admin-accent-rejected);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E");
}

.admin-cc-stat .ico-users {
  color: var(--admin-accent-allowlist);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3.5 18c.8-2.4 2.8-4 5.5-4s4.7 1.6 5.5 4'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M15.2 18c.4-1.4 1.4-2.4 2.8-2.8'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3.5 18c.8-2.4 2.8-4 5.5-4s4.7 1.6 5.5 4'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M15.2 18c.4-1.4 1.4-2.4 2.8-2.8'/%3E%3C/svg%3E");
}

.admin-cc-stat--pending {
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.08), transparent 48%),
    linear-gradient(155deg, rgba(28, 32, 36, 0.95), rgba(16, 18, 20, 0.92));
  border-color: rgba(201, 162, 39, 0.18);
}
.admin-cc-stat--pending::before {
  background: var(--admin-accent-pending);
}

.admin-cc-stat--approved {
  background:
    linear-gradient(180deg, rgba(61, 154, 106, 0.09), transparent 48%),
    linear-gradient(155deg, rgba(28, 32, 36, 0.95), rgba(16, 18, 20, 0.92));
  border-color: rgba(61, 154, 106, 0.18);
}
.admin-cc-stat--approved::before {
  background: var(--admin-accent-approved);
}

.admin-cc-stat--rejected {
  background:
    linear-gradient(180deg, rgba(196, 92, 92, 0.09), transparent 48%),
    linear-gradient(155deg, rgba(28, 32, 36, 0.95), rgba(16, 18, 20, 0.92));
  border-color: rgba(196, 92, 92, 0.18);
}
.admin-cc-stat--rejected::before {
  background: var(--admin-accent-rejected);
}

.admin-cc-stat--allowlist,
.admin-cc-stat--staff {
  background:
    linear-gradient(180deg, rgba(107, 127, 143, 0.1), transparent 48%),
    linear-gradient(155deg, rgba(28, 32, 36, 0.95), rgba(16, 18, 20, 0.92));
  border-color: rgba(107, 127, 143, 0.2);
}
.admin-cc-stat--allowlist::before,
.admin-cc-stat--staff::before {
  background: var(--admin-accent-allowlist);
}

.admin-cc-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 4px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--admin-stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 50%),
    rgba(18, 20, 22, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-cc-quick-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #ececea;
  color: #121314;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.admin-cc-quick-btn:hover {
  background: #fff;
}

.admin-cc-quick-btn.secondary {
  background: transparent;
  color: #d8dcd7;
  border-color: rgba(255, 255, 255, 0.12);
  font-weight: 500;
}

.admin-cc-quick-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f0f1ee;
}

.admin-cc-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* Beat .dashboard-page label/input (specificity + !important background) */
.dashboard-page label.admin-cc-search,
label.admin-cc-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--admin-stroke);
  background: rgba(8, 9, 10, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.dashboard-page label.admin-cc-search:focus-within,
label.admin-cc-search:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
}

.dashboard-page label.admin-cc-search svg,
label.admin-cc-search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  fill: none;
  stroke: #8b918c;
  stroke-width: 1.7;
  align-self: center;
}

.dashboard-page .admin-cc-search input,
.admin-cc-search input {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #f0f1ee !important;
  outline: none;
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
  display: block;
  -webkit-appearance: none;
  appearance: none;
}

.dashboard-page .admin-cc-search input::placeholder,
.admin-cc-search input::placeholder {
  color: #8b918c;
  opacity: 1;
}

.dashboard-page .admin-cc-search input::-webkit-search-decoration,
.dashboard-page .admin-cc-search input::-webkit-search-cancel-button,
.admin-cc-search input::-webkit-search-decoration,
.admin-cc-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.dashboard-page .admin-cc-toolbar select,
.admin-cc-toolbar select {
  height: 44px;
  min-height: 44px;
  min-width: 148px;
  width: auto;
  margin: 0;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--admin-stroke);
  background: rgba(8, 9, 10, 0.55) !important;
  color: #e8ebe7 !important;
  font: inherit;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: block;
}

.admin-cc-table-wrap,
.admin-cc-content-form,
.admin-cc-content-table {
  border-radius: 14px;
  border: 1px solid var(--admin-stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 36%),
    linear-gradient(155deg, rgba(24, 27, 30, 0.96), rgba(14, 16, 18, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 36px rgba(0, 0, 0, 0.24);
}

.admin-cc-table-wrap {
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.admin-cc-table-wrap--full {
  width: 100%;
}

.admin-cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.admin-cc-table th {
  text-align: left;
  padding: 11px 14px;
  color: #7e8480;
  font-weight: 550;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--admin-stroke);
  background: rgba(0, 0, 0, 0.28);
}

.admin-cc-table th:first-child,
.admin-cc-table td:first-child {
  width: 64px;
  color: #8b918c;
  font-variant-numeric: tabular-nums;
}

.admin-cc-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
  color: var(--admin-soft);
  line-height: 1.35;
}

.admin-cc-table td:nth-child(2) {
  color: #f1f2ef;
  font-weight: 550;
}

.admin-cc-table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}

.admin-cc-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.012);
}

.admin-cc-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.admin-cc-table tbody tr.is-active {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 3px 0 0 #e4e6e2;
}

.admin-cc-table .player-cell {
  display: grid;
  gap: 2px;
}

.admin-cc-table .player-cell strong {
  font-size: 12.5px;
  font-weight: 600;
  color: #f1f2ef;
}

.admin-cc-table .player-cell small {
  color: #7e8480;
  font-size: 11px;
}

.admin-cc-empty {
  text-align: center !important;
  color: #8b918c;
  padding: 48px 16px !important;
  cursor: default !important;
}

.admin-cc-table-foot {
  margin-top: auto;
  padding: 11px 14px;
  color: var(--admin-muted);
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(0, 0, 0, 0.18);
}

.admin-cc-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.admin-cc-status.pending,
.admin-cc-status.reviewing {
  background: rgba(201, 162, 39, 0.12);
  color: #e0c56a;
  border-color: rgba(201, 162, 39, 0.24);
}

.admin-cc-status.approved {
  background: rgba(61, 154, 106, 0.14);
  color: #7dcea0;
  border-color: rgba(61, 154, 106, 0.26);
}

.admin-cc-status.rejected {
  background: rgba(196, 92, 92, 0.14);
  color: #e8a0a0;
  border-color: rgba(196, 92, 92, 0.26);
}

.admin-cc-status.wl-on {
  background: rgba(61, 154, 106, 0.14);
  color: #7dcea0;
  border-color: rgba(61, 154, 106, 0.22);
}

.admin-cc-status.wl-off {
  background: rgba(140, 148, 152, 0.1);
  color: #a8b0ac;
  border-color: rgba(140, 148, 152, 0.18);
}

.admin-cc-btn {
  flex: 1;
  min-width: 90px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--admin-stroke-strong);
  background: rgba(255, 255, 255, 0.055);
  color: #e8ebe7;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.admin-cc-btn.primary {
  background: #ececea;
  color: #121314;
  border-color: #ececea;
}

.admin-cc-btn.primary:hover {
  background: #fff;
}

.admin-cc-btn.danger {
  border-color: rgba(196, 92, 92, 0.4);
  color: #e8a8a8;
  background: rgba(196, 92, 92, 0.08);
}

.admin-cc-btn.danger:hover {
  background: rgba(196, 92, 92, 0.16);
}

.admin-cc-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-cc-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-cc-row-actions .admin-cc-btn {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 8px;
}

/* ——— Fullscreen detail overlay ——— */
.admin-cc-detail {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 255, 255, 0.03), transparent 55%),
    #101214;
  animation: admin-cc-detail-in 0.22s ease-out;
}

.admin-cc-detail[hidden] {
  display: none !important;
}

@keyframes admin-cc-detail-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-cc-detail-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: min(920px, 100%);
  margin: 0 auto;
}

.admin-cc-detail-bar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--admin-stroke);
  background: rgba(16, 18, 20, 0.96);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

.admin-cc-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 0 12px 0 8px;
  border-radius: 10px;
  border: 1px solid var(--admin-stroke-strong);
  background: rgba(255, 255, 255, 0.045);
  color: #e4e6e2;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-cc-detail-back:hover {
  background: rgba(255, 255, 255, 0.09);
}

.admin-cc-detail-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-cc-detail-bar-meta h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.admin-cc-detail-bar-meta p {
  margin: 3px 0 0;
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-cc-detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px clamp(16px, 3vw, 28px) 32px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.admin-cc-detail-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.admin-cc-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.admin-cc-detail-meta-item {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--admin-stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 55%),
    rgba(22, 25, 28, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-cc-detail-meta-item span {
  display: block;
  color: var(--admin-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 550;
}

.admin-cc-detail-meta-item strong {
  font-size: 13px;
  font-weight: 550;
  color: #eef0ec;
  word-break: break-word;
}

.admin-cc-detail-sections {
  display: grid;
  gap: 12px;
}

.admin-cc-detail-block {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--admin-stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    rgba(18, 20, 22, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.admin-cc-detail-block span {
  display: block;
  color: var(--admin-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 550;
}

.admin-cc-detail-block p {
  margin: 0;
  color: #d0d4d0;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.admin-cc-detail-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 11px;
  border: 1px solid rgba(107, 127, 143, 0.25);
  background: rgba(107, 127, 143, 0.08);
  color: #a8b2b8;
  font-size: 12px;
  line-height: 1.55;
}

.admin-cc-detail-foot {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px clamp(16px, 3vw, 28px);
  border-top: 1px solid var(--admin-stroke);
  background: rgba(14, 16, 18, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-cc-detail-foot .admin-cc-btn {
  flex: 1;
  min-width: 140px;
  max-width: 220px;
  min-height: 44px;
}

.admin-cc-content-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--admin-stroke);
  background: rgba(18, 20, 22, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.admin-cc-content-toolbar h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.admin-cc-content-toolbar select {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--admin-stroke);
  background: rgba(8, 9, 10, 0.55);
  color: #e8ebe7;
  font: inherit;
}

.admin-cc-content-form {
  padding: 18px;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-cc-content-form label {
  display: grid;
  gap: 6px;
  color: #a4aaa6;
  font-size: 11px;
  font-weight: 500;
}

.admin-cc-content-form input,
.admin-cc-content-form textarea {
  border-radius: 10px;
  border: 1px solid var(--admin-stroke);
  background: rgba(8, 9, 10, 0.55);
  color: #fff;
  padding: 11px 12px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-cc-content-form textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-cc-content-table {
  padding: 8px;
  flex: 1;
  min-height: 200px;
}

@media (max-width: 1100px) {
  .admin-cc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .admin-cc-body {
    grid-template-columns: 1fr;
  }
  .admin-cc-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--admin-stroke);
    padding: 10px;
    align-items: center;
  }
  .admin-cc-sidebar-label {
    display: none;
  }
  .admin-cc-nav {
    white-space: nowrap;
  }
  .admin-cc-nav.is-active::before {
    display: none;
  }
  .admin-cc-top {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  .admin-cc-pill {
    justify-self: center;
  }
  .admin-cc-main {
    min-height: 0;
    overflow-y: auto;
  }
  .admin-cc-detail-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .admin-cc-detail-foot .admin-cc-btn {
    max-width: none;
  }
  .admin-cc-quick {
    flex-direction: column;
  }
  .admin-cc-quick-btn {
    width: 100%;
  }
}
