:root {
  --bg: #0d0d0f;
  --panel: #17171b;
  --panel-soft: #202027;
  --text: #f7f1e8;
  --muted: #b6ad9d;
  --gold: #d09a40;
  --gold-strong: #f0bd68;
  --line: rgba(255, 255, 255, 0.10);
  --danger: #d9534f;
  --success: #3fb37f;
}

* {
  box-sizing: border-box;
}

body.club-app,
body.club-auth {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.club-app {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.ui-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

button,
input,
textarea,
select {
  font: inherit;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.78)),
    url("/images/Encontrar-sugar-daddy-hoy.webp") center / cover fixed;
}

.auth-card {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 16, 20, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #15110a;
  background: var(--gold);
  font-weight: 900;
}

.auth-title,
.page-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
}

.auth-copy,
.page-copy,
.muted {
  color: var(--muted);
}

.auth-copy {
  margin: 0 0 24px;
}

.registration-limited {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.registration-limited h2 {
  margin: 0;
  font-size: 24px;
}

.registration-limited p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field textarea,
.field select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.field input[readonly] {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.field input[type="date"],
.field input[type="datetime-local"],
.field input[type="time"] {
  padding-right: 8px;
  font-size: 14px;
}

.field select,
select.field {
  color-scheme: dark;
}

.field select option,
select.field option {
  color: var(--text);
  background: var(--panel-soft);
}

.field select option:checked,
select.field option:checked {
  color: #17110a;
  background: var(--gold);
}

.field input[type="file"]::file-selector-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-right: 10px;
  padding: 8px 10px;
  color: #17110a;
  background: var(--gold);
  cursor: pointer;
  font-weight: 750;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(208, 154, 64, 0.8);
  box-shadow: 0 0 0 3px rgba(208, 154, 64, 0.14);
}

.field-error {
  color: #ffaaa7;
  font-size: 13px;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.check-row input {
  margin-top: 3px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.choice-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.choice-check:hover {
  border-color: rgba(208, 154, 64, 0.45);
  background: rgba(208, 154, 64, 0.10);
}

.choice-check input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  padding: 0;
  accent-color: var(--gold);
}

.choice-check span {
  min-width: 0;
}

.btn {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 750;
  text-align: center;
}

.btn-primary {
  color: #17110a;
  background: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-strong);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.btn-danger {
  color: #fff;
  background: var(--danger);
}

.btn-link {
  color: var(--gold-strong);
  font-weight: 700;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.app-shell {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: #0a0a0c;
}

.sidebar > .brand {
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.sidebar .notification-menu {
  flex: 0 0 auto;
  z-index: 500;
}

.sidebar-menu .notification-panel {
  z-index: 900;
}

.nav-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  gap: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 10px 0;
  padding-right: 2px;
  scrollbar-color: rgba(208, 154, 64, 0.35) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

.nav-list::-webkit-scrollbar {
  width: 6px;
}

.nav-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.nav-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(208, 154, 64, 0.32);
}

.nav-list::-webkit-scrollbar-thumb:hover {
  background: rgba(208, 154, 64, 0.48);
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--muted);
}

.sidebar .nav-link {
  min-height: 36px;
  padding: 8px 10px;
}

.nav-badge {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 7px;
  color: #17110a;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(208, 154, 64, 0.14);
}

.sidebar-footer {
  position: static;
  flex: 0 0 auto;
  margin-top: 10px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #17110a;
  background: var(--gold);
  font-weight: 900;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-area {
  min-width: 0;
  max-width: 100%;
  padding: 28px;
}

.topbar {
  display: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.notification-menu {
  position: relative;
}

.notification-menu summary {
  list-style: none;
}

.notification-menu summary::-webkit-details-marker {
  display: none;
}

.notification-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.notification-trigger:hover,
.notification-menu[open] .notification-trigger {
  color: var(--text);
  border-color: rgba(208, 154, 64, 0.45);
  background: rgba(208, 154, 64, 0.14);
}

.notification-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
}

.notification-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 12px;
  height: 11px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 3px 3px;
}

.notification-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 1px;
  width: 8px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 3px 3px 0 -1px currentColor;
}

.notification-label {
  flex: 1;
  font-weight: 750;
}

.notification-badge {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 6px;
  color: #17110a;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.notification-panel {
  position: absolute;
  z-index: 200;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111115;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.46);
}

.topbar-menu .notification-panel {
  right: 0;
  left: auto;
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.notification-read-button {
  border: 0;
  color: var(--gold-strong);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.notification-list {
  max-height: 380px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
  background: rgba(208, 154, 64, 0.10);
}

.notification-avatar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  font-size: 13px;
}

.notification-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-copy strong {
  font-size: 14px;
}

.notification-copy span,
.notification-copy small,
.notification-empty {
  color: var(--muted);
  font-size: 13px;
}

.notification-empty {
  padding: 18px 14px;
}

.notification-all-link {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.notification-all-link:hover {
  background: rgba(208, 154, 64, 0.10);
}

.notification-page-list {
  display: grid;
  gap: 12px;
}

.notification-page-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.notification-page-item.unread {
  border-color: rgba(208, 154, 64, 0.45);
  background: rgba(208, 154, 64, 0.10);
}

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

.grid {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.grid > *,
.panel,
.page-head > *,
.filter-bar > * {
  min-width: 0;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-2-compact {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.marketing-form .grid-2-compact {
  grid-template-columns: 1fr;
}

.marketing-form .field input[type="datetime-local"] {
  max-width: 100%;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--panel);
}

.panel-soft {
  background: var(--panel-soft);
}

.platform-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.platform-control h2 {
  margin: 10px 0 8px;
}

.platform-control p {
  margin: 0;
}

.stat {
  display: grid;
  gap: 4px;
}

.stat strong {
  font-size: 30px;
}

.stat-card-link {
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.stat-card-link:hover,
.stat-card-link.active {
  border-color: rgba(208, 154, 64, 0.52);
  background: rgba(208, 154, 64, 0.12);
  transform: translateY(-1px);
}

.account-audit-grid {
  margin-bottom: 18px;
}

.account-audit-summary,
.account-audit-item {
  display: grid;
  gap: 14px;
}

.account-audit-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.account-audit-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.account-audit-item > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.profile-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.profile-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.profile-card-name {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.profile-card-name strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.country-flag {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 14px;
  line-height: 1;
}

.photo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #d09a40, #775323);
}

.photo-carousel-card {
  border-radius: 16px 16px 0 0;
}

.photo-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.photo-track::-webkit-scrollbar {
  display: none;
}

.photo-slide {
  aspect-ratio: 4 / 5;
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  color: #19130b;
  font-size: 44px;
  font-weight: 900;
}

.photo-carousel-profile .photo-slide {
  max-height: 680px;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slide-empty {
  background: linear-gradient(145deg, #d09a40, #775323);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.carousel-arrow-prev {
  left: 10px;
}

.carousel-arrow-next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.carousel-dots span.active {
  background: #fff;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions form {
  margin: 0;
}

.profile-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-top: 2px;
}

.profile-card-actions form {
  margin: 0;
}

.pagination-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.pagination-summary {
  color: var(--muted);
  font-size: 13px;
}

.pagination-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.pagination-link,
.pagination-ellipsis {
  min-width: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.pagination-link:hover {
  border-color: rgba(208, 154, 64, 0.5);
  background: rgba(208, 154, 64, 0.14);
}

.pagination-link-current {
  color: #17110a;
  border-color: rgba(208, 154, 64, 0.75);
  background: var(--gold);
}

.pagination-link-current:hover {
  background: var(--gold);
}

.pagination-link-disabled,
.pagination-ellipsis {
  color: rgba(247, 241, 232, 0.42);
  pointer-events: none;
}

.icon-action {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.icon-action:hover,
.icon-action:focus-visible {
  border-color: rgba(208, 154, 64, 0.58);
  background: rgba(208, 154, 64, 0.16);
  transform: translateY(-1px);
  outline: none;
}

.icon-action-primary {
  color: #17110a;
  border-color: rgba(208, 154, 64, 0.72);
  background: var(--gold);
}

.icon-action-primary:hover,
.icon-action-primary:focus-visible {
  background: var(--gold-strong);
}

.icon-action-muted:hover,
.icon-action-muted:focus-visible {
  border-color: rgba(217, 83, 79, 0.55);
  background: rgba(217, 83, 79, 0.14);
}

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

.photo-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.photo-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-tile form,
.photo-tile .photo-caption {
  margin: 10px;
}

.photo-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.photo-review-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.photo-review-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.photo-review-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.promotion-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.promotion-row > * {
  min-width: 0;
}

.promotion-row:last-child {
  border-bottom: 0;
}

.membership-plan-list {
  display: grid;
  gap: 14px;
}

.membership-plan-list > div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.membership-plan-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.alert-success {
  border-color: rgba(63, 179, 127, 0.35);
  background: rgba(63, 179, 127, 0.14);
}

.alert-error {
  border-color: rgba(217, 83, 79, 0.35);
  background: rgba(217, 83, 79, 0.14);
}

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

.conversation-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.message-stack {
  display: grid;
  gap: 10px;
}

.message {
  max-width: 72%;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--panel-soft);
}

.message.mine {
  justify-self: end;
  color: #17110a;
  background: var(--gold);
}

.admin-chat-participants {
  display: grid;
  gap: 12px;
}

.admin-chat-participants .mini-profile strong,
.panel.mini-profile strong {
  display: block;
}

.admin-message-stack {
  gap: 14px;
}

.admin-message {
  max-width: 100%;
  width: 100%;
}

.admin-message p {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.admin-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.mini-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-active {
  color: var(--success);
  border-color: rgba(63, 179, 127, 0.35);
  background: rgba(63, 179, 127, 0.12);
}

.status-suspended {
  color: #ffaaa7;
  border-color: rgba(217, 83, 79, 0.35);
  background: rgba(217, 83, 79, 0.12);
}

.status-banned,
.status-report-open {
  color: #ffaaa7;
  border-color: rgba(217, 83, 79, 0.35);
  background: rgba(217, 83, 79, 0.12);
}

.status-report-reviewing {
  color: var(--gold-strong);
  border-color: rgba(208, 154, 64, 0.35);
  background: rgba(208, 154, 64, 0.12);
}

.status-report-resolved {
  color: var(--success);
  border-color: rgba(63, 179, 127, 0.35);
  background: rgba(63, 179, 127, 0.12);
}

.status-report-dismissed {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 180px auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.danger-zone {
  border-color: rgba(217, 83, 79, 0.35);
  background: rgba(217, 83, 79, 0.08);
}

.modal {
  width: min(92vw, 460px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.modal-body {
  padding: 20px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow: hidden;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #0a0a0c;
  }

  .topbar .brand {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .topbar .brand span:last-child {
    display: none;
  }

  .topbar-nav {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .topbar-nav::-webkit-scrollbar {
    display: none;
  }

  .topbar-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .topbar-menu .notification-label {
    display: none;
  }

  .topbar-menu .notification-trigger {
    width: 44px;
    justify-content: center;
    padding: 9px;
  }

  .topbar-menu .notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
  }

  .main-area {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 20px 16px 84px;
  }

  .page-head,
  .grid-2,
  .grid-2-compact,
  .grid-3,
  .grid-4,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .page-head {
    display: grid;
  }

  .platform-control {
    display: grid;
  }

  .platform-control form,
  .platform-control .btn,
  .filter-bar .btn {
    width: 100%;
  }

  .promotion-row {
    display: grid;
  }

  .account-audit-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-area {
    padding-inline: 12px;
  }

  .page-title {
    font-size: 30px;
  }

  .panel {
    padding: 14px;
    border-radius: 14px;
  }

  .table-wrap {
    border-radius: 12px;
  }

  .data-table {
    min-width: 720px;
  }

  .data-table th,
  .data-table td {
    padding: 11px 12px;
  }

  .admin-chat-participants {
    gap: 10px;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}
