:root {
  --pine: #0f241c;
  --moss: #1c3d30;
  --fern: #2f5c48;
  --mist: #c5d4cb;
  --fog: #e8efe9;
  --gold: #d4b56a;
  --gold-soft: #e8d5a3;
  --ink: #14241c;
  --muted: #7a9286;
  --danger: #c45c5c;
  --warn: #c4a35c;
  --glass: rgba(15, 36, 28, 0.78);
  --line: rgba(212, 181, 106, 0.16);
  --line-strong: rgba(212, 181, 106, 0.38);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--fog);
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 70% 45% at 18% -5%, rgba(47, 92, 72, 0.55), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(212, 181, 106, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(15, 36, 28, 0.9), transparent 60%),
    linear-gradient(165deg, #06110d 0%, var(--pine) 42%, #0a1a14 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 22px 72px;
  animation: rise 0.55s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

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

h1, h2, .brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f5f8f6;
  margin: 0;
}

h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.15; }
h2 { font-size: 1.35rem; margin: 0 0 14px; }

.muted {
  color: rgba(197, 212, 203, 0.58);
  font-weight: 300;
  font-size: 0.92rem;
}

.shell-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 6px;
}

.shell-head .eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-top: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  animation: fadeIn 0.4s var(--ease) both;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 20px 0 4px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(8, 20, 16, 0.45);
  border: 1px solid rgba(212, 181, 106, 0.1);
}

.nav button, .btn {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(232, 239, 233, 0.78);
  padding: 9px 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.nav button:hover, .btn:hover:not(:disabled) {
  background: rgba(212, 181, 106, 0.1);
  color: var(--gold-soft);
}

.nav button.active {
  background: rgba(212, 181, 106, 0.2);
  border-color: var(--line-strong);
  color: var(--gold-soft);
}

.nav button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-align: center;
  color: #1a1208;
  background: var(--gold);
}

.btn {
  border-color: var(--line);
  background: rgba(212, 181, 106, 0.08);
  color: var(--gold-soft);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(212, 181, 106, 0.35), rgba(212, 181, 106, 0.18));
  border-color: rgba(212, 181, 106, 0.5);
  color: #fff8e8;
}

.btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(212, 181, 106, 0.48), rgba(212, 181, 106, 0.25));
}

.btn.ghost {
  background: transparent;
  border-color: rgba(197, 212, 203, 0.2);
  color: var(--mist);
}

.btn.danger {
  border-color: rgba(196, 92, 92, 0.45);
  color: #f0c0c0;
  background: rgba(196, 92, 92, 0.12);
}

.btn.danger:hover:not(:disabled) {
  background: rgba(196, 92, 92, 0.22);
}

.btn:disabled { opacity: 0.42; cursor: default; }

.btn:active:not(:disabled) { transform: translateY(1px); }

.nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 4px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

.stat {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(47, 92, 72, 0.22), transparent 60%),
    rgba(8, 20, 16, 0.55);
  border: 1px solid rgba(212, 181, 106, 0.12);
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 181, 106, 0.45), transparent);
}

.stat b {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--gold-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(197, 212, 203, 0.62);
}

.stat.warn b { color: #f0d89a; }
.stat.danger b { color: #f0b0b0; }

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.filters input,
.filters select {
  flex: 1;
  min-width: 120px;
}

input, select, textarea {
  font: inherit;
  color: var(--fog);
  background: rgba(8, 20, 16, 0.85);
  border: 1px solid rgba(212, 181, 106, 0.2);
  border-radius: 11px;
  padding: 11px 13px;
  min-width: 0;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(212, 181, 106, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 181, 106, 0.12);
}

input { flex: 1; min-width: 160px; }
select { cursor: pointer; }
textarea { width: 100%; min-height: 80px; resize: vertical; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid rgba(212, 181, 106, 0.1);
  vertical-align: top;
}

th {
  color: rgba(212, 181, 106, 0.72);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover td {
  background: rgba(212, 181, 106, 0.05);
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(197, 212, 203, 0.22);
  color: var(--mist);
  background: rgba(197, 212, 203, 0.06);
}

.badge.active {
  border-color: rgba(47, 92, 72, 0.7);
  color: #b8dcc8;
  background: rgba(47, 92, 72, 0.25);
}

.badge.banned {
  border-color: rgba(196, 92, 92, 0.5);
  color: #f0c0c0;
  background: rgba(196, 92, 92, 0.15);
}

.badge.paused {
  border-color: rgba(196, 163, 92, 0.5);
  color: #f0e0b0;
  background: rgba(196, 163, 92, 0.12);
}

.badge.open {
  border-color: rgba(212, 181, 106, 0.55);
  color: var(--gold-soft);
  background: rgba(212, 181, 106, 0.12);
}

.badge.reviewed, .badge.dismissed, .badge.actioned {
  opacity: 0.85;
}

.login-page {
  min-height: calc(100svh - 56px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.login-wrap {
  width: min(400px, 100%);
  text-align: center;
  padding: 36px 32px 32px;
}

.login-wrap .brand {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 6px;
}

.login-wrap .tagline {
  margin: 0 0 28px;
  color: rgba(197, 212, 203, 0.55);
  font-weight: 300;
  font-size: 0.95rem;
}

.login-wrap label {
  display: block;
  text-align: left;
  margin: 14px 0 7px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(197, 212, 203, 0.6);
}

.login-wrap input { width: 100%; text-align: left; }

.login-wrap .btn {
  width: 100%;
  margin-top: 22px;
  padding: 13px 16px;
  font-size: 1rem;
}

.err {
  color: #f0c0c0;
  margin-top: 14px;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(196, 92, 92, 0.12);
  border: 1px solid rgba(196, 92, 92, 0.28);
}

.mod-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mod-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(8, 20, 16, 0.45);
  border: 1px solid rgba(212, 181, 106, 0.12);
}

.mod-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mod-photos {
  gap: 12px;
}

.photo-tile {
  position: relative;
  margin: 0;
}

.photo-tile img {
  width: 112px;
  height: 142px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(212, 181, 106, 0.22);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.photo-tile.is-new img {
  border-color: rgba(212, 181, 106, 0.85);
  box-shadow: 0 0 0 2px rgba(212, 181, 106, 0.35), 0 8px 18px rgba(0, 0, 0, 0.25);
}

.photo-tile figcaption {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1208;
  background: var(--gold);
  pointer-events: none;
}

.photo-zoom {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 14, 11, 0.88);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}

.lightbox img {
  max-width: min(920px, 100%);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(212, 181, 106, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(212, 181, 106, 0.35);
  background: rgba(15, 36, 28, 0.8);
  color: var(--gold-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.photos img {
  width: 96px;
  height: 122px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(212, 181, 106, 0.22);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 10px 0 4px;
  font-size: 0.92rem;
}

.counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.counts span {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(8, 20, 16, 0.55);
  border: 1px solid rgba(212, 181, 106, 0.12);
  color: rgba(197, 212, 203, 0.75);
}

.linkish {
  background: none;
  border: none;
  color: var(--gold-soft);
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 181, 106, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.linkish:hover {
  color: #fff;
  border-bottom-color: rgba(212, 181, 106, 0.75);
}

.report-reason {
  margin-top: 6px;
  color: rgba(232, 239, 233, 0.88);
}

.actions-col .row {
  margin-bottom: 0;
}

.empty {
  text-align: center;
  padding: 36px 12px;
  color: rgba(197, 212, 203, 0.5);
  font-weight: 300;
}

@media (max-width: 640px) {
  #app { padding: 18px 14px 56px; }
  .login-wrap { padding: 28px 20px 24px; }
  .login-wrap .brand { font-size: 2.5rem; }
  .nav { gap: 6px; }
  .nav-user { width: 100%; margin-left: 0; justify-content: space-between; padding: 4px 2px 0; }
  th:nth-child(4), td:nth-child(4) { display: none; }
  .card { padding: 16px; border-radius: 14px; }
}
