/* =========================================
   GlowFit OWNER panel — SaaS / ops aesthetic
   Distinct from the member portal (.app-shell)
   ========================================= */

:root {
  --ad-bg: #000000;
  --ad-surface: #0a0807;
  --ad-surface-2: #14100a;
  --ad-line: rgba(244, 234, 213, 0.08);
  --ad-line-soft: rgba(244, 234, 213, 0.04);
  --ad-text: #f4ead5;
  --ad-text-mute: rgba(244, 234, 213, 0.6);
  --ad-text-dim: rgba(244, 234, 213, 0.4);
  --ad-accent: #b19365;
  --ad-side-w: 220px;
}

.ad-shell {
  /* Tema CLARO glass (solo el panel; el login owner sigue oscuro) */
  --ad-bg: #ffffff;
  --ad-surface: rgba(255, 255, 255, 0.72);
  --ad-surface-2: rgba(255, 255, 255, 0.6);
  --ad-line: rgba(60, 45, 20, 0.1);
  --ad-line-soft: rgba(60, 45, 20, 0.06);
  --ad-text: #2a2419;
  --ad-text-mute: rgba(42, 36, 25, 0.6);
  --ad-text-dim: rgba(42, 36, 25, 0.42);
  --ad-accent: #9a7b3f;
  --ad-radius: 18px;
  --ad-side-w: 260px;

  display: grid;
  grid-template-columns: var(--ad-side-w) 1fr;
  min-height: 100vh;
  color: var(--ad-text);
  background: #ffffff;
}

.ad-content {
  min-width: 0;
}

/* Encabezados del panel: forzar texto oscuro (reset.css los pone en cream) */
.ad-shell h1,
.ad-shell h2,
.ad-shell h3,
.ad-shell h4 {
  color: var(--ad-text);
  /* Tipografía plana (sans) para los títulos del panel, en vez del serif ornamentado */
  font-family: var(--sans);
  letter-spacing: -0.012em;
}
/* Títulos de sección (Ingresos, Reservas recientes, etc.): peso más refinado */
.ad-shell h2,
.ad-shell h3,
.ad-shell h4 {
  font-weight: 600;
}
.ad-shell h1 em,
.ad-shell h2 em,
.ad-shell h3 em {
  color: var(--ad-accent);
}

/* ===== Sidebar ===== */
.ad-side {
  margin: 14px;
  border-radius: 24px;
  background: rgba(250, 248, 243, 0.72);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  border: 1px solid rgba(45, 36, 25, 0.08);
  box-shadow: 0 22px 48px -26px rgba(60, 45, 20, 0.3);
  /* ocupa toda la altura de la columna (sin blanco abajo al scrollear) */
  align-self: stretch;
}

.ad-side-inner {
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
}

.ad-side-head {
  padding: 20px 22px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ad-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ad-logo img {
  height: 40px;
  width: auto;
  /* el logo es dorado claro (#b19365); lo oscurecemos para que contraste */
  filter: brightness(0.62) saturate(1.15);
}

.ad-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.ad-logo-text strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ad-logo-text small {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ad-accent);
}

.ad-side-nav {
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
}

.ad-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-side-nav .section {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ad-text-dim);
  padding: 15px 8px 6px;
}

.ad-nav-item,
.ad-side-nav .ad-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 13px;
  color: #4f463a;
  font-size: 14.5px;
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s, border-color 0.16s;
}

.ad-nav-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #8a7c63;
  transition: color 0.16s;
}

.ad-nav-item:hover,
.ad-side-nav .ad-link-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #2a2419;
}

.ad-nav-item:hover .ad-nav-ico {
  color: var(--ad-accent);
}

.ad-nav-item.active {
  background: rgba(255, 255, 255, 0.92);
  color: #1f1a12;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px -14px rgba(90, 68, 32, 0.5);
}

.ad-nav-item.active .ad-nav-ico {
  color: #1f1a12;
}

.ad-side-foot {
  padding: 12px;
}

.ad-profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(45, 36, 25, 0.08);
  box-shadow: 0 12px 26px -18px rgba(60, 45, 20, 0.3);
}

.ad-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(150deg, #c2a36a 0%, #8a6c30 100%);
  overflow: hidden;
}
.ad-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
a.ad-profile-card { text-decoration: none; }
a.ad-profile-card:hover { border-color: rgba(154, 123, 63, 0.4); }

.ad-profile-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.ad-profile-meta strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ad-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-profile-meta small {
  font-size: 11px;
  color: var(--ad-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-profile-chev {
  color: var(--ad-text-dim);
  flex-shrink: 0;
}

.ad-avatar-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ad-accent);
  color: var(--ad-bg);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

/* ===== Topbar ===== */
.ad-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 10px 8px;
}

.ad-search {
  position: relative;
  flex: 1;
  max-width: 560px;
}

.ad-search input {
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(45, 36, 25, 0.1);
  box-shadow: 0 12px 28px -20px rgba(60, 45, 20, 0.28);
  border-radius: 999px;
  padding: 12px 18px 12px 44px;
  color: var(--ad-text);
  font-family: var(--sans);
  font-size: 14px;
  width: 100%;
}

.ad-search input::placeholder {
  color: var(--ad-text-dim);
}

.ad-search input:focus {
  outline: none;
  border-color: rgba(154, 123, 63, 0.5);
}

.ad-search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--ad-text-dim);
}

.ad-env-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(250, 248, 243, 0.85);
  border: 1px solid rgba(45, 36, 25, 0.1);
  color: var(--ad-accent);
  flex-shrink: 0;
}

/* ===== Main content ===== */
.ad-main {
  padding: 8px 28px 60px;
}

.ad-main .page {
  max-width: 1180px;
  margin: 0 auto;
}

.ad-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ad-line-soft);
}

.ad-page-head h1 {
  font-family: var(--sans);
  font-size: 30px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.ad-page-head p {
  color: var(--ad-text-mute);
  font-size: 13px;
  margin: 0;
}

/* ===== KPI cards ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.kpi {
  background: #ffffff;
  border: 1px solid rgba(45, 36, 25, 0.08);
  border-radius: 18px;
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 14px 30px -20px rgba(60, 45, 20, 0.22);
}

.kpi-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ad-text-dim);
}

.kpi-value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ad-text);
}

.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  color: var(--ad-text-mute);
  margin-top: 3px;
}

.kpi-trend.up {
  color: #b9e0c2;
}

.kpi-trend.down {
  color: #f3b8b8;
}

/* ===== Panels ===== */
.ad-panels {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.ad-panel {
  background: #ffffff;
  border: 1px solid rgba(45, 36, 25, 0.08);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 14px 30px -20px rgba(60, 45, 20, 0.22);
}

.ad-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.ad-panel-head h2 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.005em;
}

.ad-panel-head .ad-panel-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ad-text-dim);
}

/* ===== Chart (CSS-only bars) ===== */
.ad-chart {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), 1fr);
  gap: 10px;
  align-items: end;
  height: 160px;
  padding-top: 8px;
}

.ad-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.ad-chart-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--ad-accent) 0%, #6b563a 100%);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: opacity 0.2s;
  position: relative;
}

.ad-chart-bar:hover {
  opacity: 0.85;
}

.ad-chart-bar::after {
  content: attr(data-value);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ad-text-mute);
  white-space: nowrap;
}

.ad-chart-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ad-text-dim);
}

/* ===== Tables ===== */
.ad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.ad-table th {
  text-align: left;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ad-text-dim);
  border-bottom: 1px solid var(--ad-line);
  font-weight: 500;
}

.ad-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--ad-line-soft);
  vertical-align: middle;
  color: var(--ad-text);
}

.ad-table tr:hover td {
  background: rgba(244, 234, 213, 0.02);
}

.ad-table .right {
  text-align: right;
}

.ad-table .empty {
  text-align: center;
  color: var(--ad-text-dim);
  padding: 28px 12px;
  font-size: 12.5px;
}

.ad-table .muted {
  color: var(--ad-text-mute);
  font-size: 11.5px;
}

/* Pills inside admin */
.ad-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(244, 234, 213, 0.06);
  color: var(--ad-text-mute);
  border: 1px solid var(--ad-line);
}

.ad-pill.ok,
.ad-pill.converted,
.ad-pill.booked,
.ad-pill.going {
  color: #b9e0c2;
  border-color: rgba(120, 200, 140, 0.22);
  background: rgba(120, 200, 140, 0.05);
}

.ad-pill.warn,
.ad-pill.pending {
  color: #f9e4b0;
  border-color: rgba(220, 190, 120, 0.22);
  background: rgba(220, 190, 120, 0.05);
}

.ad-pill.err,
.ad-pill.rejected,
.ad-pill.cancelled {
  color: #f3b8b8;
  border-color: rgba(200, 100, 100, 0.22);
  background: rgba(200, 100, 100, 0.05);
}

/* Buttons */
.ad-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  background: #ffffff;
  border: 1px solid rgba(45, 36, 25, 0.12);
  box-shadow: 0 10px 22px -16px rgba(60, 45, 20, 0.28);
  color: var(--ad-text);
  text-decoration: none;
  white-space: nowrap;
}

.ad-btn:hover:not(:disabled) {
  border-color: var(--ad-accent);
  background: rgba(177, 147, 101, 0.08);
}

.ad-btn.primary {
  background: var(--ad-accent);
  color: var(--ad-bg);
  border-color: var(--ad-accent);
  font-weight: 600;
}

.ad-btn.primary:hover:not(:disabled) {
  background: #c2a47a;
}

.ad-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ad-btn-row {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* Forms in admin */
.ad-form {
  display: grid;
  gap: 10px;
}

.ad-form .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.ad-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ad-form label > span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ad-text-dim);
}

.ad-form input,
.ad-form select,
.ad-form textarea {
  background: var(--ad-surface-2);
  border: 1px solid var(--ad-line);
  border-radius: 6px;
  padding: 8px 11px;
  color: var(--ad-text);
  font-family: var(--sans);
  font-size: 13px;
}

.ad-form input:focus,
.ad-form select:focus,
.ad-form textarea:focus {
  outline: none;
  border-color: var(--ad-accent);
}

.ad-msg {
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 12.5px;
}

.ad-msg.ok {
  background: rgba(120, 200, 140, 0.08);
  color: #b9e0c2;
  border: 1px solid rgba(120, 200, 140, 0.22);
}

.ad-msg.err {
  background: rgba(200, 100, 100, 0.08);
  color: #f3b8b8;
  border: 1px solid rgba(200, 100, 100, 0.22);
}

/* User detail */
.ad-user-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

.ad-user-aside {
  background: var(--ad-surface);
  border: 1px solid var(--ad-line);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ad-user-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--ad-line);
}

.ad-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 12.5px;
}

.ad-meta dt {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ad-text-dim);
  margin: 0;
}

.ad-meta dd {
  margin: 0;
  color: var(--ad-text);
}

/* Photo thumbnail viewer */
.ad-photo-detail {
  max-width: 200px;
  border-radius: 6px;
  border: 1px solid var(--ad-line);
  margin-top: 8px;
}

/* Responsive admin */
@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ad-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .ad-shell {
    grid-template-columns: 1fr;
  }
  .ad-side {
    display: none;
  }
  .ad-topbar {
    padding: 12px 16px;
  }
  .ad-search input {
    width: 100%;
  }
  .ad-main {
    padding: 18px 16px 80px;
  }
  .ad-user-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Owner login — console style
   =========================== */
.ow-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(177, 147, 101, 0.06), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(177, 147, 101, 0.04), transparent 50%),
    var(--ad-bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.ow-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 234, 213, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 234, 213, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.ow-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--ad-line);
  background: rgba(6, 4, 3, 0.6);
  backdrop-filter: blur(12px);
}

.ow-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ad-text);
  text-decoration: none;
}

.ow-brand img {
  height: 34px;
  width: auto;
}

.ow-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ow-brand-text strong {
  font-size: 13.5px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.ow-brand-text small {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ad-accent);
}

.ow-env-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(177, 147, 101, 0.1);
  border: 1px solid var(--ad-line);
  color: var(--ad-accent);
}

.ow-card {
  position: relative;
  z-index: 2;
  margin: auto;
  width: 100%;
  max-width: 420px;
  padding: 36px 38px;
  background: var(--ad-surface);
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ow-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ad-accent);
}

.ow-card h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ad-text);
}

.ow-sub {
  margin: 0 0 6px;
  color: var(--ad-text-mute);
  font-size: 13.5px;
}

.ow-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ow-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ow-form label > span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ad-text-dim);
}

.ow-form input {
  background: var(--ad-surface-2);
  border: 1px solid var(--ad-line);
  border-radius: 6px;
  padding: 11px 13px;
  color: var(--ad-text);
  font-family: var(--sans);
  font-size: 14px;
}

.ow-form input:focus {
  outline: none;
  border-color: var(--ad-accent);
}

.ow-btn {
  background: var(--ad-accent);
  color: var(--ad-bg);
  border: 0;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  margin-top: 4px;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}

.ow-btn:hover:not(:disabled) {
  background: #c2a47a;
}

.ow-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ow-foot {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--ad-line-soft);
  text-align: center;
  font-size: 12.5px;
}

.ow-foot a {
  color: var(--ad-text-mute);
}

.ow-foot a:hover {
  color: var(--ad-text);
}

.ow-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 18px 32px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ad-text-dim);
  border-top: 1px solid var(--ad-line-soft);
}

@media (max-width: 600px) {
  .ow-top {
    padding: 14px 18px;
  }
  .ow-card {
    margin: 32px 18px;
    padding: 28px 24px;
  }
  .ow-bottom {
    padding: 14px 18px;
  }
}

/* ============ Admin overview extras ============ */
.kpi-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.ad-chart-bar-alt {
  background: linear-gradient(180deg, #c2af96 0%, #4a3722 100%);
}

.ad-member-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-member-cell img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ad-line);
}

.ad-avatar-dot.small {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

.ad-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ad-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: #f8f5ef;
  border: 1px solid rgba(45, 36, 25, 0.07);
  border-radius: 13px;
}

.ad-list li img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ad-line);
}

.ad-list li div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ad-list li strong {
  font-size: 13px;
  font-weight: 600;
}

.ad-list li small {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ad-text-mute);
}

.ad-list-empty {
  text-align: center !important;
  padding: 18px !important;
  color: var(--ad-text-dim) !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 12.5px;
}

.ad-panels-31 {
  grid-template-columns: 2fr 1fr;
}

.ad-member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ad-member-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  background: #f8f5ef;
  border: 1px solid rgba(45, 36, 25, 0.07);
  border-radius: 16px;
  color: var(--ad-text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ad-member-tile:hover {
  border-color: rgba(154, 123, 63, 0.4);
  box-shadow: 0 12px 26px -18px rgba(90, 68, 32, 0.5);
}

.ad-member-tile img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ad-line);
}

.ad-member-tile .ad-avatar-dot {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

.ad-member-tile strong {
  font-size: 12.5px;
  font-weight: 600;
}

.ad-member-tile small {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--ad-text-dim);
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  .kpi-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .kpi-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ad-panels-31 {
    grid-template-columns: 1fr;
  }
}

/* ============ Event attendees panel ============ */
.ad-event-attendees {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ad-event-row {
  display: grid;
  grid-template-columns: 1.5fr auto 180px;
  gap: 20px;
  align-items: center;
  padding: 14px 12px;
  border-bottom: 1px solid var(--ad-line-soft);
}

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

.ad-event-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-event-info strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ad-text);
}

.ad-event-info span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-attendee-stack {
  display: flex;
  align-items: center;
}

.ad-attendee-stack img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ad-surface);
  margin-left: -10px;
}

.ad-attendee-stack img:first-child {
  margin-left: 0;
}

.ad-attendee-count {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ad-text-mute);
  letter-spacing: 0.06em;
  padding: 4px 8px;
  background: var(--ad-surface-2);
  border-radius: 999px;
  border: 1px solid var(--ad-line);
}

.ad-attendee-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ad-attendee-num {
  font-size: 16px;
  font-weight: 600;
  color: var(--ad-text);
  letter-spacing: -0.01em;
}

.ad-attendee-num small {
  color: var(--ad-text-dim);
  font-size: 12px;
  font-weight: 400;
  margin-left: 2px;
}

.ad-attendee-bar {
  display: block;
  height: 4px;
  width: 100%;
  background: rgba(244, 234, 213, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.ad-attendee-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ad-accent), #c2af96);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .ad-event-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Fila de checkbox en formularios admin (Fase 4: publicar grabación / clase en vivo) */
.admin-form .checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.admin-form .checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.admin-form .checkbox-row span {
  font-size: 13px;
  color: var(--cream-mute);
}

/* Acciones en fila de tabla (Editar / Eliminar) */
.row-actions {
  display: inline-flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Modal de edición de clase */
.ad-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 1000;
}
.ad-modal {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  padding: 24px 26px 28px;
  box-shadow: 0 30px 70px -20px rgba(40, 30, 15, 0.45);
  color: #2a2419;
}
.ad-modal .admin-form label > span { color: rgba(42, 36, 25, 0.5); }
.ad-modal .admin-form input,
.ad-modal .admin-form select,
.ad-modal .admin-form textarea {
  background: #ffffff;
  border: 1px solid rgba(60, 45, 20, 0.16);
  color: #2a2419;
  border-radius: 10px;
}
.ad-modal h3 { color: #2a2419; }
.ad-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ad-modal-head h3 {
  margin: 0;
  font-size: 18px;
}
.ad-modal-x {
  background: none;
  border: none;
  color: rgba(42, 36, 25, 0.5);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.ad-modal-x:hover {
  color: #2a2419;
}
.ad-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

/* ===== Controles de transmisión en vivo (Mux) ===== */
.live-ctl {
  position: relative;
}
.live-panel {
  margin-top: 8px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(45, 36, 25, 0.1);
  border-radius: 14px;
  box-shadow: 0 14px 30px -20px rgba(60, 45, 20, 0.3);
  min-width: 360px;
  max-width: 420px;
}

/* Configuración por QR (Larix) */
.live-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.live-steps {
  margin: 0 0 4px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ad-text);
  line-height: 1.5;
  align-self: stretch;
}
.live-steps li { margin-bottom: 3px; }
.live-qr-img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 1px solid rgba(45, 36, 25, 0.1);
}
.live-manual {
  margin-top: 12px;
  border-top: 1px solid rgba(45, 36, 25, 0.08);
  padding-top: 10px;
}
.live-manual summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--ad-accent);
  margin-bottom: 8px;
}

/* Dos opciones de transmisión (Larix / OBS) */
.live-opt {
  border: 1px solid rgba(45, 36, 25, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: #faf8f3;
}
.live-opt-tag {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ad-text);
  margin-bottom: 8px;
}
.live-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.live-field > span {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ad-text-dim);
}
.live-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-copy code {
  flex: 1;
  font-family: var(--mono);
  font-size: 12.5px;
  background: #f4f0e8;
  border: 1px solid rgba(45, 36, 25, 0.1);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--ad-text);
  overflow-x: auto;
  white-space: nowrap;
}
.live-copy button {
  flex-shrink: 0;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(45, 36, 25, 0.12);
  background: #fff;
  cursor: pointer;
  color: var(--ad-text);
}
.live-copied {
  font-size: 12px;
  color: #2f8a4e;
}

/* Encabezado de bloque con acción a la derecha (ej. Crear usuario) */
.ad-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ad-block-head h2 {
  margin: 0;
}

/* =========================================================
   Tema CLARO — ajustes de contraste sobre fondo blanco
   (todo scoped a .ad-shell para no afectar el portal miembro)
   ========================================================= */
.ad-shell .kpi-trend.up { color: #2f8a4e; }
.ad-shell .kpi-trend.down { color: #c0504a; }

.ad-shell .ad-pill { background: rgba(60, 45, 20, 0.05); }
.ad-shell .ad-pill.ok,
.ad-shell .ad-pill.converted,
.ad-shell .ad-pill.booked,
.ad-shell .ad-pill.going {
  color: #2f8a4e;
  border-color: rgba(47, 138, 78, 0.3);
  background: rgba(47, 138, 78, 0.09);
}
.ad-shell .ad-pill.warn,
.ad-shell .ad-pill.pending {
  color: #9a6b16;
  border-color: rgba(154, 123, 63, 0.32);
  background: rgba(154, 123, 63, 0.1);
}
.ad-shell .ad-pill.err,
.ad-shell .ad-pill.rejected,
.ad-shell .ad-pill.cancelled {
  color: #c0504a;
  border-color: rgba(192, 80, 74, 0.3);
  background: rgba(192, 80, 74, 0.09);
}
.ad-shell .ad-msg.ok { color: #2f8a4e; }
.ad-shell .ad-msg.err { color: #c0504a; }

.ad-shell .ad-table tr:hover td { background: rgba(60, 45, 20, 0.035); }

/* Pills compartidas (.pill) usadas en la página Usuarios */
.ad-shell .pill {
  color: var(--ad-accent);
  background: rgba(154, 123, 63, 0.1);
  border-color: rgba(154, 123, 63, 0.32);
}
.ad-shell .pill-converted,
.ad-shell .pill-approved,
.ad-shell .pill-going,
.ad-shell .pill-booked {
  color: #2f8a4e;
  border-color: rgba(47, 138, 78, 0.3);
  background: rgba(47, 138, 78, 0.1);
}
.ad-shell .pill-rejected,
.ad-shell .pill-cancelled,
.ad-shell .pill-no_show {
  color: #c0504a;
  border-color: rgba(192, 80, 74, 0.3);
  background: rgba(192, 80, 74, 0.1);
}

/* =========================================================
   Páginas internas del admin (Usuarios, Clases, etc.) que usan
   clases compartidas de shell.css — adaptadas al tema claro glass.
   Scoped a .ad-main para NO tocar el portal de miembro.
   ========================================================= */
.ad-main .page-head h1 {
  font-family: var(--sans);
  color: var(--ad-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ad-main .page-head p { color: var(--ad-text-mute); }

.ad-main .stat,
.ad-main .block {
  background: #ffffff;
  border: 1px solid rgba(45, 36, 25, 0.08);
  box-shadow: 0 14px 30px -20px rgba(60, 45, 20, 0.22);
}
.ad-main .stat { border-radius: 18px; }
.ad-main .block { border-radius: 20px; }
.ad-main .stat-label { color: var(--ad-text-dim); }
.ad-main .stat-value { color: var(--ad-text); }
.ad-main .stat-hint { color: var(--ad-text-mute); }
.ad-main .block h2 { color: var(--ad-text); }

.ad-main .data-table th { color: var(--ad-text-dim); }
.ad-main .data-table th,
.ad-main .data-table td { border-bottom-color: var(--ad-line-soft); }
.ad-main .data-table td { color: var(--ad-text); }
.ad-main .data-table { font-size: 14.5px; }
.ad-main .data-table th { font-size: 11px; }
.ad-main .data-table .empty,
.ad-main .data-table-rich td .muted,
.ad-main .muted { color: var(--ad-text-mute); }

/* Subtitulos/labels en mono un poco mas grandes en el panel */
.ad-main .page-head p { font-size: 14.5px; }
.ad-panel-head .ad-panel-sub { font-size: 11px; }

/* Formularios compartidos (.admin-form) en claro */
.ad-main .admin-form label > span { color: var(--ad-text-dim); }
.ad-main .admin-form input,
.ad-main .admin-form select,
.ad-main .admin-form textarea {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--ad-line);
  color: var(--ad-text);
  border-radius: 11px;
}
.ad-main .admin-form input::placeholder,
.ad-main .admin-form textarea::placeholder { color: var(--ad-text-dim); }
.ad-main .admin-form input:focus,
.ad-main .admin-form select:focus,
.ad-main .admin-form textarea:focus { border-color: rgba(154, 123, 63, 0.5); }

/* Botón mini de tablas (Ver/Editar/Eliminar) legible en claro */
.ad-main .btn-mini {
  border: 1px solid var(--ad-line);
  color: var(--ad-text);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}
.ad-main .btn-mini:hover:not(:disabled) { background: rgba(154, 123, 63, 0.12); }
/* Variante destructiva (eliminar) */
.ad-main .btn-mini-danger { color: #c0392b; border-color: rgba(192, 57, 43, 0.4); }
.ad-main .btn-mini-danger:hover:not(:disabled) { background: rgba(192, 57, 43, 0.1); }

/* Mensajes de form */
.ad-main .cta-msg-ok { color: #2f8a4e; }
.ad-main .cta-msg-err { color: #c0504a; }

/* ===========================
   User detail (perfil de miembro) — tema claro
   La página usa clases sin prefijo (.user-grid, .user-aside, .action-row…)
   que por defecto heredan el tema oscuro de shell.css. Las re-tematizamos
   aquí dentro de .ad-main para que combinen con el panel claro.
   =========================== */
.ad-main .user-grid { gap: 18px; }

.ad-main .user-aside {
  background: var(--ad-surface);
  border: 1px solid var(--ad-line);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.ad-main .user-photo {
  border: 1px solid var(--ad-line);
  border-radius: 10px;
}
.ad-main .user-meta dt { color: var(--ad-text-dim); }
.ad-main .user-meta dd { color: var(--ad-text); }

/* Lista de reservas */
.ad-main .simple-list li {
  background: rgba(154, 123, 63, 0.06);
  border: 1px solid var(--ad-line-soft);
}
.ad-main .simple-list li > span:first-child { color: var(--ad-text); }
.ad-main .simple-list .muted { color: var(--ad-text-mute); }
.ad-main .simple-list .empty { color: var(--ad-text-dim); background: transparent; border: 0; }

/* Acciones: plan / monto / meses */
.ad-main .action-row label > span { color: var(--ad-text-dim); }
.ad-main .action-row input,
.ad-main .action-row select {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--ad-line);
  color: var(--ad-text);
  border-radius: 8px;
  padding: 9px 11px;
}
.ad-main .action-row input:focus,
.ad-main .action-row select:focus {
  outline: none;
  border-color: rgba(154, 123, 63, 0.5);
}
.ad-main .action-row select { min-width: 200px; }
.ad-main .action-hint { font-size: 12px; color: var(--ad-text-dim, #8a7f6c); margin: 14px 0 6px; }

/* Avatar de respaldo cuando el miembro no tiene foto */
.ad-main .user-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: rgba(154, 123, 63, 0.12);
  color: var(--ad-accent);
  font-family: var(--mono, monospace);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ===========================
   Recortador de foto de perfil (modal circular)
   =========================== */
.cropper-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 24, 14, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cropper-modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  /* El modal se renderiza con portal a <body> (fuera del tema admin), así que usa
     colores explícitos en vez de variables --ad-* que ahí no resuelven. */
  color: #1d1812;
  border: 1px solid rgba(40, 30, 15, 0.12);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 30px 70px -30px rgba(60, 45, 20, 0.5);
}
.cropper-modal h3 {
  margin: 0 0 2px;
  font-family: var(--sans);
  font-weight: 700;
  color: #1d1812;
}
.cropper-hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(29, 24, 18, 0.6);
}
.cropper-stage {
  position: relative;
  width: 100%;
  height: 300px;
  background: #1a1611;
  border-radius: 14px;
  overflow: hidden;
  user-select: none;
}
/* Indicador circular (solo recorte redondo, p. ej. foto de perfil). */
.cropper-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.cropper-zoom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 2px 4px;
}
.cropper-zoom > span {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(29, 24, 18, 0.5);
}
.cropper-zoom input[type="range"] {
  flex: 1;
  accent-color: #9a7b3f;
}
/* Botones del recortador con colores propios (portal fuera del tema admin). */
.cropper-actions .btn {
  color: #1d1812;
  border-color: rgba(40, 30, 15, 0.2);
  background: #fff;
}
.cropper-actions .btn-primary {
  color: #1d1812;
  background: linear-gradient(180deg, #d9b878, #c9963f);
  border-color: #c9963f;
}
.cropper-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* ===========================
   Foto de portada (subida) en formularios admin
   =========================== */
/* Editor de planes y precios */
.pricing-editor { display: flex; flex-direction: column; gap: 6px; }

/* Inputs/labels propios (no usa .admin-form): label arriba, input con borde. */
.pricing-editor .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.pricing-editor .row > label { flex: 1; min-width: 140px; }
.pricing-editor label { display: flex; flex-direction: column; gap: 5px; }
.pricing-editor label > span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ad-text-mute, rgba(42, 36, 25, 0.55));
}
.pricing-editor input,
.pricing-editor textarea,
.pricing-editor select {
  width: 100%;
  border: 1px solid var(--ad-line, rgba(40, 30, 15, 0.18));
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: #1d1812;
}
.pricing-editor input:focus,
.pricing-editor textarea:focus,
.pricing-editor select:focus { outline: none; border-color: #9a7b3f; }
.pricing-editor .checkbox-row { flex-direction: row; align-items: center; gap: 8px; }
.pricing-editor .checkbox-row input,
.pricing-editor .pe-check input { width: auto; }

.pe-card {
  border: 1px solid var(--ad-line, rgba(40, 30, 15, 0.12));
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  background: #fff;
  box-shadow: 0 10px 26px -22px rgba(60, 45, 20, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Fila de precios por frecuencia: campos compactos en una grilla que envuelve. */
.pe-freq {
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 12px;
  border: 1px solid var(--ad-line, rgba(40, 30, 15, 0.1));
  border-radius: 10px;
  background: rgba(154, 123, 63, 0.04);
}
.pe-freq > label { min-width: 92px; flex: 1; }

/* Bloque "qué incluye este plan" */
.pe-access {
  border-top: 1px dashed var(--ad-line, rgba(40, 30, 15, 0.18));
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pe-access-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a7b3f;
}
.pe-access-flags, .pe-access-disc { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pe-check { flex-direction: row; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.pe-check span { font-size: 13px; color: #1d1812; }
.pe-save {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pe-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pe-card-head strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ad-text-mute, rgba(42,36,25,0.6)); }
.pe-add {
  margin-top: 12px;
  align-self: flex-start;
  background: none;
  border: 1px dashed var(--ad-line, rgba(40,30,15,0.25));
  color: var(--ad-text, #2a2419);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12.5px;
  cursor: pointer;
}
.pe-add:hover { border-color: #9a7b3f; color: #9a7b3f; }
.pe-add-mini { margin-top: 6px; padding: 5px 12px; font-size: 11.5px; }
.pe-del {
  background: none;
  border: 1px solid rgba(180, 60, 50, 0.35);
  color: #b43c32;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  cursor: pointer;
}
.pe-del:hover { background: rgba(180, 60, 50, 0.08); }
.pe-del-mini { align-self: end; padding: 0; width: 30px; height: 30px; border-radius: 8px; }

.cover-upload { display: flex; flex-direction: column; gap: 10px; }
.cover-preview {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1; /* portada cuadrada 1080×1080 */
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(154, 123, 63, 0.08);
  border: 1px dashed var(--ad-line);
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-empty {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ad-text-dim);
}
.cover-actions { display: flex; gap: 10px; }
.cover-hint { margin: 2px 0 0; font-size: 11.5px; color: rgba(120, 110, 95, 0.85); }

/* Miniatura de portada en tablas (eventos / clases) */
.ev-cell { display: inline-flex; align-items: center; gap: 10px; }
.ev-thumb {
  width: 40px;
  height: 40px; /* miniatura cuadrada 1:1, igual que la portada */
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--ad-line);
}
.ev-thumb-empty { background: rgba(154, 123, 63, 0.1); display: inline-block; }

/* =========================================================
   REDISEÑO: barra lateral admin en NEGRO con texto blanco
   (el panel sigue con fondo blanco). + colapsar + móvil.
   ========================================================= */
.ad-side {
  background: #0c0a08;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 48px -26px rgba(0, 0, 0, 0.6);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ad-logo img { filter: none; }
.ad-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ad-side-nav .section { color: rgba(255, 255, 255, 0.4); }
.ad-nav-item,
.ad-side-nav .ad-link-btn { color: rgba(255, 255, 255, 0.72); }
.ad-nav-ico { color: rgba(255, 255, 255, 0.5); }
.ad-nav-item:hover,
.ad-side-nav .ad-link-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.ad-nav-item:hover .ad-nav-ico { color: #e3c889; }
.ad-nav-item.active {
  background: rgba(201, 162, 78, 0.16);
  color: #fff;
  border-color: rgba(201, 162, 78, 0.32);
  box-shadow: none;
}
.ad-nav-item.active .ad-nav-ico { color: #e3c889; }
.ad-profile-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.ad-profile-meta strong { color: #fff; }
.ad-profile-meta small { color: rgba(255, 255, 255, 0.5); }
.ad-profile-chev { color: rgba(255, 255, 255, 0.4); }
a.ad-profile-card:hover { border-color: rgba(201, 162, 78, 0.4); }

/* ---- Colapsar barra admin (escritorio) ---- */
.ad-shell.is-collapsed { grid-template-columns: 84px 1fr; }
.ad-shell.is-collapsed .ad-nav-label,
.ad-shell.is-collapsed .ad-side-nav .section,
.ad-shell.is-collapsed .ad-profile-meta,
.ad-shell.is-collapsed .ad-profile-chev,
.ad-shell.is-collapsed .ad-side-nav .ad-link-btn span { display: none; }
.ad-shell.is-collapsed .ad-nav-item,
.ad-shell.is-collapsed .ad-profile-card,
.ad-shell.is-collapsed .ad-side-nav .ad-link-btn { justify-content: center; }
.ad-shell.is-collapsed .ad-side-head { flex-direction: column; gap: 10px; }

/* ---- Móvil: ocultar barra, dejar la nav inferior (.mnav, en app.css) ---- */
@media (max-width: 900px) {
  .ad-shell { grid-template-columns: 1fr; }
  .ad-side { display: none; }
  .ad-main { padding-bottom: 90px; }
}

/* ===== Ajustes móvil del panel admin ===== */
@media (max-width: 700px) {
  /* Header de página: el título y los botones se apilan; los botones a lo ancho. */
  .ad-page-head { flex-direction: column; align-items: stretch; }
  .ad-page-head .ad-btn-row { justify-content: stretch; width: 100%; }
  .ad-btn-row { flex-wrap: wrap; }
  .ad-btn-row .ad-btn { flex: 1 1 0; justify-content: center; min-width: 0; }
  .ad-block-head { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Editor de planes: campos a ancho completo / 2 por fila para que no se aprieten. */
  .pricing-editor .row > label { min-width: 100%; }
  .pricing-editor .pe-freq > label { min-width: calc(50% - 6px); }
  .pe-card-head { gap: 10px; }

  /* Tablas como TARJETAS apiladas en móvil (sin scroll lateral): cada fila es
     una tarjeta y cada celda muestra "ETIQUETA: valor". */
  .data-table { display: block; }
  .data-table thead { display: none; }
  .data-table tbody { display: block; }
  .data-table tr {
    display: block;
    border: 1px solid rgba(45, 36, 25, 0.12);
    border-radius: 12px;
    padding: 8px 14px;
    margin-bottom: 10px;
    background: rgba(45, 36, 25, 0.015);
  }
  .data-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    border: 0;
    white-space: normal;
    text-align: right;
  }
  .data-table td::before {
    content: attr(data-label);
    color: rgba(45, 36, 25, 0.5);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    flex: 0 0 auto;
  }
  .data-table td:first-child {
    font-weight: 700;
    font-size: 15px;
    padding: 4px 0 8px;
    border-bottom: 1px solid rgba(45, 36, 25, 0.08);
    margin-bottom: 4px;
  }
  /* Celdas sin etiqueta (título con miniatura, controles): a la izquierda y sin
     pseudo-etiqueta (si no, el ::before vacío empuja el contenido a la derecha). */
  .data-table td:not([data-label]) { justify-content: flex-start; text-align: left; }
  .data-table td:not([data-label])::before { content: none; }
  .data-table td.right { justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
  .data-table td.right::before { content: none; }
  .data-table td.empty { justify-content: center; text-align: center; }
  .data-table td.empty::before { content: none; }
}

/* =========================================================
   Login owner — versión CLARA (fondo blanco)
   Anula el tema oscuro de consola del bloque .ow-* anterior.
   ========================================================= */
.ow-shell {
  /* Fondo cálido oscuro; los destellos dorados (sutiles) se mueven solos. */
  background-color: #0c0805;
  background-image: linear-gradient(140deg, #1c150c 0%, #120c06 55%, #080603 100%);
  overflow: hidden;
}
/* Capa de dorado animada (menos intensa, se desplaza lento) */
.ow-shell::before {
  content: "";
  display: block;
  position: absolute;
  inset: -25%;
  z-index: 0;
  background:
    radial-gradient(circle at 26% 30%, rgba(198, 166, 108, 0.22), transparent 46%),
    radial-gradient(circle at 78% 82%, rgba(208, 178, 118, 0.18), transparent 46%);
  filter: blur(26px);
  animation: ow-drift 20s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes ow-drift {
  0%   { transform: translate(-4%, -3%) scale(1.05); }
  50%  { transform: translate(4%, 3%) scale(1.14); }
  100% { transform: translate(2%, -2%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .ow-shell::before { animation: none; }
}

.ow-top {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(40, 30, 15, 0.08);
}
.ow-brand img { filter: none; }

.ow-card {
  background: #ffffff;
  border: 1px solid rgba(40, 30, 15, 0.1);
  box-shadow: 0 30px 70px -34px rgba(60, 45, 20, 0.3);
}
.ow-kicker { color: #9a7b3f; }
.ow-card h1 { color: #1d1812; font-family: var(--sans); letter-spacing: -0.02em; }

.ow-form label > span { color: rgba(29, 24, 18, 0.55); }
.ow-form input {
  background: #ffffff;
  border: 1px solid rgba(40, 30, 15, 0.16);
  color: #1d1812;
}
.ow-form input::placeholder { color: rgba(29, 24, 18, 0.38); }
.ow-form input:focus { border-color: rgba(154, 123, 63, 0.6); }

.ow-foot a { color: rgba(29, 24, 18, 0.6); }
.ow-foot a:hover { color: #9a7b3f; }

/* Login owner: logo centrado arriba de la caja (en vez de la esquina) */
.ow-center {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 420px;
  padding: 24px 24px 48px;
}
.ow-logo-top img { height: 58px; width: auto; }
.ow-center .ow-card { margin: 0; }

/* Menú contraído: logo más grande, avatar que encaja, todo centrado */
.ad-shell.is-collapsed { grid-template-columns: 112px 1fr; }
.ad-shell.is-collapsed .ad-side-head {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 26px 8px 10px;
}
.ad-shell.is-collapsed .ad-logo { width: 100%; justify-content: center; }
.ad-shell.is-collapsed .ad-logo img { width: 86px; height: auto; }
.ad-shell.is-collapsed .ad-side-nav { padding: 6px 10px; align-items: stretch; }
.ad-shell.is-collapsed .ad-nav-item { padding: 11px 0; }
.ad-shell.is-collapsed .ad-side-foot { padding: 12px 10px; }
.ad-shell.is-collapsed .ad-profile-card { padding: 9px; }
.ad-shell.is-collapsed .ad-profile-avatar { width: 44px; height: 44px; }

/* Badge de modalidad en la tabla de Clases */
.mod-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(201, 162, 78, 0.14);
  color: var(--gold-soft, #d8be7e);
  border: 1px solid var(--gold-line, rgba(177,147,101,0.22));
  white-space: nowrap;
}
.mod-badge.mod-live {
  background: rgba(201, 150, 63, 0.18);
  color: #dbb05f;
}

/* Editor de Horario (admin, tema claro) */
.hor-slots { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.hor-slot {
  display: grid;
  grid-template-columns: 120px 1.2fr 1.4fr 150px 34px;
  gap: 8px;
  align-items: center;
}
.hor-slot-head span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ad-text-dim, rgba(42,36,25,0.42));
}
.ad-main .hor-slot input,
.ad-main .hor-slot select {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--ad-line, rgba(60,45,20,0.1));
  color: var(--ad-text, #2a2419);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--sans);
  width: 100%;
}
.hor-del {
  height: 36px;
  border: 1px solid var(--ad-line, rgba(60,45,20,0.12));
  background: transparent;
  color: var(--ad-text-mute, rgba(42,36,25,0.6));
  border-radius: 9px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.hor-del:hover { border-color: #c0504a; color: #c0504a; }
.hor-empty { color: var(--ad-text-dim, rgba(42,36,25,0.42)); font-size: 13px; font-style: italic; }
.hor-save { margin-top: 8px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .hor-slot { grid-template-columns: 1fr 1fr; }
  .hor-slot select { grid-column: 1 / 2; }
  .hor-del { grid-column: 2 / 3; justify-self: end; width: 44px; }
  .hor-slot-head { display: none; }
}

.hor-hint { font-size: 13px; color: var(--ad-text-mute, rgba(42,36,25,0.6)); margin: -2px 0 12px; }

.hor-grouphead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ad-main .hor-grouplabel {
  flex: 1; font-family: var(--serif), serif; font-size: 16px; font-weight: 600;
  background: transparent; border: none; border-bottom: 1px solid var(--ad-line, rgba(60,45,20,0.12));
  color: var(--ad-text, #2a2419); padding: 5px 2px;
}
.hor-save { gap: 12px; }

/* Reservas (admin): grupos por clase con quién reservó */
.bk-groups { display: flex; flex-direction: column; gap: 14px; }
.bk-group {
  border: 1px solid var(--ad-line, rgba(60,45,20,0.12)); border-radius: 14px;
  background: var(--ad-card, #fff); overflow: hidden;
}
.bk-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--ad-line, rgba(60,45,20,0.12));
  background: rgba(154, 123, 63, 0.05);
}
.bk-group-title { display: flex; flex-direction: column; gap: 2px; }
.bk-group-title strong { font-size: 15px; color: var(--ad-text, #2a2419); }
.bk-when { font-size: 12px; color: var(--ad-muted, #8a7f6c); }
.bk-meta { display: flex; align-items: center; gap: 10px; }
.bk-count { font-size: 12px; font-weight: 700; color: var(--ad-gold, #9a7b3f); white-space: nowrap; }
.bk-att { list-style: none; margin: 0; padding: 8px 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.bk-att li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ad-text, #2a2419); padding: 5px 0; border-bottom: 1px solid rgba(60,45,20,0.06); }
.bk-att li:last-child { border-bottom: 0; }
.bk-att .muted { color: var(--ad-muted, #8a7f6c); font-size: 12px; }
