﻿/* ════════════════════════════════════════════════════════════
   SANLILAS · CENTRO DE ADMINISTRACIÓN
   Liquid Glass · Quiet Luxury · Minimalismo Premium
   ════════════════════════════════════════════════════════════ */

:root {
  --ad-bg: #161616;
  --ad-bg-2: #1C1B1A;
  --ad-glass: rgba(255, 255, 255, 0.045);
  --ad-glass-2: rgba(255, 255, 255, 0.08);
  --ad-line: rgba(255, 255, 255, 0.09);
  --ad-line-2: rgba(255, 255, 255, 0.16);
  --ad-gold: #C8A46A;
  --ad-gold-soft: rgba(200, 164, 106, 0.16);
  --ad-text: #EDE8E1;
  --ad-muted: rgba(237, 232, 225, 0.55);
  --ad-muted-2: rgba(237, 232, 225, 0.32);
  --ad-ok: #7FB48F;
  --ad-ok-soft: rgba(127, 180, 143, 0.14);
  --ad-warn: #C89B5A;
  --ad-warn-soft: rgba(200, 155, 90, 0.14);
  --ad-err: #B1574B;
  --ad-err-soft: rgba(177, 87, 75, 0.14);
  --ad-font: 'Inter', system-ui, sans-serif;
  --ad-display: 'Cormorant Garamond', Georgia, serif;
  --ad-radius: 28px;
  --ad-blur: blur(30px) saturate(160%);
  --ad-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body.page-admin {
  background: var(--ad-bg);
  color: var(--ad-text);
  font-family: var(--ad-font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; color: inherit; }

/* ── scrollbar ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 99px; border: 3px solid var(--ad-bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ═══════════════════ LOGIN ═══════════════════ */
.ad-login {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(100% 60% at 50% -10%, rgba(200, 164, 106, 0.14), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(127, 180, 143, 0.06), transparent 55%),
    linear-gradient(180deg, #141413 0%, #0F0F0E 100%);
  overflow: hidden;
  z-index: 50;
}

.ad-login__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: adDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
.ad-login__aurora--1 { width: 520px; height: 360px; left: -8%; top: 22%; background: radial-gradient(circle, rgba(200, 164, 106, 0.3), transparent 70%); }
.ad-login__aurora--2 { width: 480px; height: 340px; right: -10%; bottom: 8%; background: radial-gradient(circle, rgba(237, 232, 225, 0.16), transparent 70%); animation-delay: -11s; }
@keyframes adDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, -3vh, 0) scale(1.12); }
}

.ad-login__canvas { position: absolute; inset: 0; opacity: 0.7; pointer-events: none; }

.ad-login__glass {
  position: relative;
  width: min(430px, 100%);
  padding: 3rem 2.6rem 2.3rem;
  border-radius: var(--ad-radius);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--ad-blur);
  -webkit-backdrop-filter: var(--ad-blur);
  border: 1px solid var(--ad-line-2);
  box-shadow: var(--ad-shadow);
  text-align: center;
  animation: adUp 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.ad-login__glass::before {
  content: '';
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.ad-login__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.ad-login__brand-img {
  width: 62px; height: 62px;
  object-fit: contain;
  border-radius: 50%;
  padding: 5px;
  background: var(--ad-gold-soft);
  border: 1px solid rgba(200, 164, 106, 0.5);
  box-shadow: 0 0 34px rgba(200, 164, 106, 0.35);
}
.ad-login__brand-txt { text-align: left; }
.ad-login__brand-txt strong {
  font-family: var(--ad-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ad-text);
  display: block;
  line-height: 1.05;
}
.ad-login__brand-txt small {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ad-gold);
}

.ad-login__title {
  font-family: var(--ad-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ad-gold);
  margin: 0 0 1.5rem;
  letter-spacing: 0.04em;
}

/* campos con icono + ojo */
.ad-login__field { display: flex; flex-direction: column; gap: 0.45rem; text-align: left; }
.ad-login__field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ad-muted);
}
.ad-login__input {
  position: relative;
  display: flex;
  align-items: center;
}
.ad-login__input svg {
  position: absolute;
  left: 1rem;
  color: var(--ad-muted-2);
  pointer-events: none;
  transition: color 0.3s;
}
.ad-login__input:focus-within svg { color: var(--ad-gold); }
.ad-login__input input {
  width: 100%;
  padding: 0.95rem 3rem 0.95rem 2.7rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ad-line);
  border-radius: 16px;
  outline: none;
  color: var(--ad-text);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.ad-login__input input:focus {
  border-color: rgba(200, 164, 106, 0.6);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(200, 164, 106, 0.12);
}
.ad-login__eye {
  position: absolute;
  right: 0.6rem;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  color: var(--ad-muted-2);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
}
.ad-login__eye:hover { color: var(--ad-gold); background: rgba(200, 164, 106, 0.12); }

.ad-login__submit { width: 100%; margin-top: 0.4rem; position: relative; overflow: hidden; }
.ad-login__submit::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: adShine 3.6s ease infinite;
}
@keyframes adShine { 0%, 55% { left: -120%; } 100% { left: 160%; } }

/* error: animación de sacudida */
.ad-login__glass.is-shake { animation: adShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes adShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.ad-login__sub {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ad-muted);
  margin-bottom: 2rem;
}

/* forms */
.ad-form { display: flex; flex-direction: column; gap: 1.1rem; text-align: left; }
.ad-form--row { flex-direction: row; flex-wrap: wrap; gap: 0.8rem; align-items: flex-end; }
.ad-form--row .ad-form__field { flex: 1 1 160px; }
.ad-form__field { display: flex; flex-direction: column; gap: 0.45rem; }
.ad-form__field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ad-muted);
}
.ad-form__error { font-size: 0.8rem; color: var(--ad-err); min-height: 1em; }
.ad-form__hint { font-size: 0.72rem; color: var(--ad-muted-2); }

.ad-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ad-line);
  border-radius: 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.ad-input:focus {
  border-color: rgba(200, 164, 106, 0.6);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(200, 164, 106, 0.12);
}
.ad-input--sel { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23EDE8E1' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.ad-input--sel option { background: #1C1B1A; color: var(--ad-text); }
.ad-input--color { height: 48px; padding: 0.3rem; }

/* buttons */
.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.35s, background 0.35s, border-color 0.35s, color 0.35s;
  will-change: transform;
  white-space: nowrap;
}
.ad-btn:hover { transform: translateY(-2px); }
.ad-btn--primary {
  background: linear-gradient(135deg, var(--ad-gold), #B0864F);
  color: #171410;
  box-shadow: 0 16px 40px rgba(200, 164, 106, 0.3);
}
.ad-btn--primary:hover { box-shadow: 0 22px 50px rgba(200, 164, 106, 0.42); }
.ad-btn--gold {
  background: var(--ad-gold-soft);
  border-color: rgba(200, 164, 106, 0.5);
  color: var(--ad-gold);
}
.ad-btn--gold:hover { background: rgba(200, 164, 106, 0.24); box-shadow: 0 14px 34px rgba(200, 164, 106, 0.25); }
.ad-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ad-line-2);
  color: var(--ad-text);
}
.ad-btn--ghost:hover { background: rgba(255, 255, 255, 0.09); }
.ad-btn--danger { background: var(--ad-err-soft); border-color: rgba(177, 87, 75, 0.4); color: var(--ad-err); }
.ad-btn--danger:hover { background: rgba(177, 87, 75, 0.22); }
.ad-btn--sm { padding: 0.55rem 1rem; font-size: 0.78rem; }
.ad-btn--block { width: 100%; }
.ad-btn:disabled { opacity: 0.5; pointer-events: none; }
.ad-btn[data-danger] { background: var(--ad-err-soft); border-color: rgba(177, 87, 75, 0.45); color: var(--ad-err); }
.ad-btn[data-danger]:hover { background: rgba(177, 87, 75, 0.24); }

/* Estado de publicación en el servidor */
.ad-pub-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ad-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
}
.ad-pub-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.85;
}

/* login meta */
.ad-login__meta {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--ad-muted);
  border-top: 1px solid var(--ad-line);
  padding-top: 1.4rem;
}
.ad-login__meta span { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.ad-login__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ad-muted-2); }
.ad-login__dot--ok { background: var(--ad-ok); box-shadow: 0 0 10px rgba(127, 180, 143, 0.8); }
.ad-login__last { font-size: 0.72rem; }

@keyframes adUp {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════ APP LAYOUT ═══════════════════ */
.ad-app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

.ad-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.1rem 1.2rem;
  background: rgba(20, 20, 18, 0.82);
  backdrop-filter: var(--ad-blur);
  -webkit-backdrop-filter: var(--ad-blur);
  border-right: 1px solid var(--ad-line);
  z-index: 30;
}

.ad-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 0.5rem 1.5rem;
}
.ad-sidebar__mark {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(200, 164, 106, 0.3), rgba(200, 164, 106, 0.08));
  border: 1px solid rgba(200, 164, 106, 0.45);
  color: var(--ad-gold);
  font-family: var(--ad-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.ad-sidebar__brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.ad-sidebar__brand-txt strong { font-family: var(--ad-display); font-size: 1.35rem; font-weight: 500; letter-spacing: 0.28em; }
.ad-sidebar__brand-txt small { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ad-gold); }

.ad-sidebar__nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 0.2rem; }
.ad-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ad-muted);
  background: transparent;
  border: none;
  border-radius: 14px;
  text-align: left;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  position: relative;
}
.ad-sidebar__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ad-muted-2);
  transition: background 0.3s, box-shadow 0.3s;
}
.ad-sidebar__link:hover { background: rgba(255, 255, 255, 0.06); color: var(--ad-text); transform: translateX(2px); }
.ad-sidebar__link:hover .ad-sidebar__dot { background: var(--ad-gold); }
.ad-sidebar__link.is-active { background: var(--ad-gold-soft); color: var(--ad-gold); }
.ad-sidebar__link.is-active .ad-sidebar__dot { background: var(--ad-gold); box-shadow: 0 0 12px rgba(200, 164, 106, 0.9); }
.ad-sidebar__link.is-active::before {
  content: '';
  position: absolute;
  left: -0.45rem; top: 20%; bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--ad-gold), transparent);
}

.ad-sidebar__foot { border-top: 1px solid var(--ad-line); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.ad-sidebar__user { display: flex; align-items: center; gap: 0.7rem; padding: 0 0.4rem; }
.ad-sidebar__avatar {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ad-gold-soft);
  border: 1px solid rgba(200, 164, 106, 0.45);
  color: var(--ad-gold);
  font-weight: 600;
  text-transform: uppercase;
}
.ad-sidebar__user-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ad-sidebar__user-txt strong { font-size: 0.85rem; }
.ad-sidebar__user-txt small { font-size: 0.68rem; color: var(--ad-gold); }
.ad-sidebar__logout {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ad-err);
  background: var(--ad-err-soft);
  border: 1px solid rgba(177, 87, 75, 0.3);
  border-radius: 14px;
  transition: background 0.3s, transform 0.3s;
}
.ad-sidebar__logout:hover { background: rgba(177, 87, 75, 0.24); transform: translateY(-1px); }
.ad-sidebar__scrim { display: none; }

/* ═══════════ MAIN ═══════════ */
.ad-main { min-width: 0; display: flex; flex-direction: column; }

/* topbar */
.ad-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem clamp(1.2rem, 3vw, 2.4rem);
  background: rgba(22, 22, 22, 0.72);
  backdrop-filter: var(--ad-blur);
  -webkit-backdrop-filter: var(--ad-blur);
  border-bottom: 1px solid var(--ad-line);
}
.ad-top__burger { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--ad-glass-2); border: 1px solid var(--ad-line-2); border-radius: 12px; }
.ad-top__burger span { width: 16px; height: 1.6px; background: var(--ad-text); border-radius: 2px; }
.ad-top__title { min-width: 0; }
.ad-top__title small { display: block; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ad-gold); }
.ad-top__title h1 { font-family: var(--ad-display); font-size: 1.5rem; font-weight: 500; }
.ad-top__right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }

/* global search */
.ad-search { position: relative; width: min(330px, 40vw); }
.ad-search input {
  width: 100%;
  padding: 0.72rem 1rem 0.72rem 2.6rem;
  font-size: 0.86rem;
  background: var(--ad-glass-2);
  border: 1px solid var(--ad-line);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.ad-search input:focus { border-color: rgba(200, 164, 106, 0.5); box-shadow: 0 0 0 4px rgba(200, 164, 106, 0.1); background: rgba(255,255,255,0.06); }
.ad-search__icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ad-muted-2); }
.ad-search__drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: rgba(28, 27, 26, 0.96);
  backdrop-filter: var(--ad-blur);
  -webkit-backdrop-filter: var(--ad-blur);
  border: 1px solid var(--ad-line-2);
  border-radius: 20px;
  box-shadow: var(--ad-shadow);
  overflow: hidden;
  z-index: 60;
  display: none;
  max-height: 60vh;
  overflow-y: auto;
}
.ad-search__drop.is-open { display: block; animation: adUp 0.35s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.ad-search__group-title { padding: 0.6rem 1.1rem 0.2rem; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ad-gold); }
.ad-search__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 1.1rem;
  background: none;
  border: none;
  text-align: left;
  color: var(--ad-text);
  font-size: 0.85rem;
  transition: background 0.2s;
}
.ad-search__row:hover { background: var(--ad-gold-soft); }
.ad-search__row small { color: var(--ad-muted); margin-left: auto; font-size: 0.72rem; }
.ad-search__empty { padding: 1.2rem; text-align: center; color: var(--ad-muted); font-size: 0.85rem; }

/* bell */
.ad-bell { position: relative; }
.ad-bell__btn { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--ad-glass-2); border: 1px solid var(--ad-line-2); border-radius: 50%; color: var(--ad-text); transition: background 0.3s, transform 0.3s; }
.ad-bell__btn:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.ad-bell__badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  font-size: 0.64rem; font-weight: 700;
  color: #171410;
  background: var(--ad-gold);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(200, 164, 106, 0.7);
}
.ad-bell__drop {
  position: absolute;
  right: 0; top: calc(100% + 10px);
  width: 320px;
  background: rgba(28, 27, 26, 0.96);
  backdrop-filter: var(--ad-blur);
  -webkit-backdrop-filter: var(--ad-blur);
  border: 1px solid var(--ad-line-2);
  border-radius: 20px;
  box-shadow: var(--ad-shadow);
  z-index: 60;
  max-height: 420px;
  overflow-y: auto;
  display: none;
}
.ad-bell__drop.is-open { display: block; animation: adUp 0.35s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.ad-bell__item { display: flex; gap: 0.7rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--ad-line); align-items: flex-start; cursor: pointer; transition: background 0.2s; }
.ad-bell__item:hover { background: var(--ad-gold-soft); }
.ad-bell__item.is-unread::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ad-gold); margin-top: 5px; flex: 0 0 auto; }
.ad-bell__mark { width: 34px; height: 34px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1rem; background: var(--ad-glass-2); }
.ad-bell__txt { min-width: 0; }
.ad-bell__txt strong { display: block; font-size: 0.82rem; font-weight: 600; }
.ad-bell__txt span { font-size: 0.72rem; color: var(--ad-muted); }

/* session chip */
.ad-session { display: flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; font-weight: 600; color: var(--ad-muted); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; background: var(--ad-glass-2); border: 1px solid var(--ad-line); padding: 0.5rem 0.85rem; border-radius: 999px; }
.ad-session__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ad-ok); box-shadow: 0 0 12px rgba(127, 180, 143, 0.9); animation: adPulse 2.4s ease-in-out infinite; }
@keyframes adPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.82); } }

/* sections */
.ad-sections { padding: clamp(1.2rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 2rem; max-width: 1500px; width: 100%; margin: 0 auto; }
.sec { display: none; }
.sec.is-active { display: block; animation: adFade 0.5s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
@keyframes adFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.sec-head__txt h2 { font-family: var(--ad-display); font-size: 2rem; font-weight: 500; line-height: 1.1; }
.sec-head__txt p { color: var(--ad-muted); font-size: 0.86rem; margin-top: 0.2rem; }
.sec-head__seg { display: flex; gap: 4px; background: var(--ad-glass-2); border: 1px solid var(--ad-line); border-radius: 999px; padding: 4px; }
.sec-head__seg button { padding: 0.5rem 1rem; font-size: 0.78rem; font-weight: 600; color: var(--ad-muted); background: transparent; border: none; border-radius: 999px; transition: background 0.3s, color 0.3s; }
.sec-head__seg button.is-active { background: var(--ad-gold-soft); color: var(--ad-gold); }

.sec-subhead { font-family: var(--ad-display); font-size: 1.3rem; font-weight: 500; margin: 1.5rem 0 0.8rem; color: var(--ad-text); }

.sec-tools { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.sec-tools .ad-input { flex: 1 1 180px; max-width: 360px; }

/* glass card base */
.glass {
  background: var(--ad-glass);
  backdrop-filter: var(--ad-blur);
  -webkit-backdrop-filter: var(--ad-blur);
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius);
  box-shadow: var(--ad-shadow);
}

/* metrics */
.ad-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.ad-metrics--sm { grid-template-columns: repeat(3, 1fr); }
.ad-metric {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 1.5rem;
  border-radius: 22px;
  background: var(--ad-glass);
  backdrop-filter: var(--ad-blur);
  -webkit-backdrop-filter: var(--ad-blur);
  border: 1px solid var(--ad-line);
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.35s;
}
.ad-metric:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255,255,255,0.08); }
.ad-metric::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 106, 0.16), transparent 70%);
  transform: translate(30%, -30%);
}
.ad-metric__icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--ad-gold-soft); border: 1px solid rgba(200, 164, 106, 0.4); color: var(--ad-gold); font-size: 1.1rem; margin-bottom: 0.9rem; }
.ad-metric__value { font-family: var(--ad-display); font-size: 2.1rem; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.ad-metric__label { color: var(--ad-muted); font-size: 0.78rem; margin-top: 0.4rem; }
.ad-metric__trend { display: inline-block; margin-top: 0.5rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; }
.ad-metric__trend--up { color: var(--ad-ok); }
.ad-metric__trend--warn { color: var(--ad-warn); }

/* widgets */
.ad-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ad-widget {
  padding: 1.4rem 1.5rem;
  border-radius: 22px;
  background: var(--ad-glass);
  backdrop-filter: var(--ad-blur);
  -webkit-backdrop-filter: var(--ad-blur);
  border: 1px solid var(--ad-line);
  display: flex;
  flex-direction: column;
}
.ad-widget--wide { grid-column: span 2; }
.ad-widget__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ad-widget__head h3 { font-family: var(--ad-display); font-size: 1.15rem; font-weight: 500; }
.ad-widget__link { background: none; border: none; font-size: 0.76rem; font-weight: 600; color: var(--ad-gold); letter-spacing: 0.02em; transition: opacity 0.3s; }
.ad-widget__link:hover { opacity: 0.75; }
.ad-widget__body { min-width: 0; }

/* tables */
.ad-table-wrap { overflow: auto; padding: 1.1rem; }
.ad-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.ad-table th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ad-muted);
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--ad-line);
  white-space: nowrap;
}
.ad-table td {
  padding: 0.9rem 0.9rem;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.ad-table tr:hover td { background: rgba(255, 255, 255, 0.03); }
.ad-table--tight { min-width: 0; }
.ad-table--tight td, .ad-table--tight th { padding: 0.6rem 0.6rem; }
.ad-cell-name { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.ad-cell-name strong { font-weight: 600; }
.ad-cell-name small { display: block; color: var(--ad-muted); font-size: 0.72rem; }
.ad-thumb { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; background: rgba(255,255,255,0.06); border: 1px solid var(--ad-line); flex: 0 0 auto; }
.ad-thumb--round { border-radius: 50%; }
.ad-empty { text-align: center; padding: 2.2rem 1rem; color: var(--ad-muted); font-size: 0.9rem; }

/* badges / estados */
.ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  white-space: nowrap;
}
.ad-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ad-badge--ok { background: var(--ad-ok-soft); color: var(--ad-ok); }
.ad-badge--warn { background: var(--ad-warn-soft); color: var(--ad-warn); }
.ad-badge--err { background: var(--ad-err-soft); color: var(--ad-err); }
.ad-badge--gold { background: var(--ad-gold-soft); color: var(--ad-gold); }
.ad-badge--mut { background: rgba(255, 255, 255, 0.06); color: var(--ad-muted); }
.ad-badge--tag { background: rgba(255,255,255,0.05); color: var(--ad-muted); border: 1px solid var(--ad-line); }

/* links / mini actions in table */
.ad-link { background: none; border: none; color: var(--ad-gold); font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.4rem; border-radius: 8px; transition: background 0.2s, color 0.2s; }
.ad-link:hover { background: var(--ad-gold-soft); color: var(--ad-gold); }
.ad-link--danger { color: var(--ad-err); }
.ad-link--danger:hover { background: var(--ad-err-soft); }
.ad-cell-actions { display: flex; gap: 2px; flex-wrap: wrap; }

/* pagination */
.ad-pagination { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 1rem 0 0.2rem; flex-wrap: wrap; }
.ad-page { min-width: 34px; height: 34px; padding: 0 0.6rem; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; color: var(--ad-muted); background: transparent; border: none; border-radius: 10px; transition: background 0.25s, color 0.25s; }
.ad-page:hover { background: var(--ad-glass-2); color: var(--ad-text); }
.ad-page.is-active { background: var(--ad-gold-soft); color: var(--ad-gold); }
.ad-page:disabled { opacity: 0.3; pointer-events: none; }
.ad-page--dots { pointer-events: none; }

/* colecciones grid */
.ad-coll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ad-coll-grid--sm { grid-template-columns: repeat(4, 1fr); }
.ad-coll-card { position: relative; overflow: hidden; border-radius: 22px; min-height: 190px; background: var(--ad-glass-2); border: 1px solid var(--ad-line); display: flex; align-items: flex-end; transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.35s, border-color 0.35s; }
.ad-coll-card:hover { transform: translateY(-4px); border-color: rgba(200, 164, 106, 0.4); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.ad-coll-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.ad-coll-card__veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12, 12, 11, 0.9) 100%); }
.ad-coll-card__body { position: relative; width: 100%; padding: 1.1rem 1.2rem; }
.ad-coll-card__name { font-family: var(--ad-display); font-size: 1.25rem; font-weight: 500; }
.ad-coll-card__meta { font-size: 0.72rem; color: var(--ad-muted); margin: 0.2rem 0 0.7rem; }
.ad-coll-card__actions { display: flex; gap: 6px; }

/* masters list / items compact */
.ad-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.ad-item:last-child { border-bottom: none; }
.ad-item__grow { flex: 1; min-width: 0; }
.ad-item__grow strong { display: block; font-size: 0.87rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-item__grow small { font-size: 0.72rem; color: var(--ad-muted); }
.ad-item__val { font-size: 0.84rem; font-weight: 600; color: var(--ad-gold); }

/* stock bar */
.ad-stockbar { width: 100%; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 0.3rem; }
.ad-stockbar > i { display: block; height: 100%; border-radius: 99px; transition: width 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.ad-stockbar > i.ok { background: linear-gradient(90deg, var(--ad-ok), #9CC7A9); }
.ad-stockbar > i.warn { background: linear-gradient(90deg, var(--ad-warn), #D9B27A); }
.ad-stockbar > i.crit { background: linear-gradient(90deg, var(--ad-err), #D06A5C); }

/* messages */
.ad-msg { display: flex; flex-direction: column; gap: 0.8rem; }
.ad-msg__item { display: flex; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: 20px; background: var(--ad-glass); border: 1px solid var(--ad-line); transition: border-color 0.3s, background 0.3s; }
.ad-msg__item:hover { border-color: rgba(200, 164, 106, 0.35); }
.ad-msg__av { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #171410; background: linear-gradient(135deg, var(--ad-gold), #D9B27A); flex: 0 0 auto; }
.ad-msg__meta { flex: 1; min-width: 0; }
.ad-msg__meta header { display: flex; justify-content: space-between; gap: 1rem; }
.ad-msg__meta header strong { font-size: 0.92rem; }
.ad-msg__meta header time { font-size: 0.72rem; color: var(--ad-muted); white-space: nowrap; }
.ad-msg__meta p { color: var(--ad-muted); font-size: 0.86rem; margin-top: 0.3rem; }
.ad-msg__is-unread { border-left: 3px solid var(--ad-gold); }
.ad-msg__actions { display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; }

/* config */
.ad-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.4rem; }
.ad-tabs button { padding: 0.6rem 1.1rem; font-size: 0.8rem; font-weight: 600; color: var(--ad-muted); background: var(--ad-glass-2); border: 1px solid var(--ad-line); border-radius: 999px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.ad-tabs button.is-active { background: var(--ad-gold-soft); color: var(--ad-gold); border-color: rgba(200, 164, 106, 0.5); }
.ad-tab { display: flex; flex-direction: column; gap: 1rem; }
.ad-tab[style*="display:none"] { display: none; }
.ad-rtab { display: flex; flex-direction: column; gap: 1rem; }
.ad-rtab[style*="display:none"] { display: none; }

/* ── resortwear content lists ── */
.ad-res-list { display: flex; flex-direction: column; gap: 0.8rem; }
.ad-res-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  background: var(--ad-glass);
  border: 1px solid var(--ad-line);
  transition: border-color 0.3s, background 0.3s;
}
.ad-res-item:hover { border-color: rgba(200, 164, 106, 0.35); }
.ad-res-item__img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; background: rgba(255,255,255,0.06); border: 1px solid var(--ad-line); flex: 0 0 auto; }
.ad-res-item__grow { flex: 1; min-width: 0; }
.ad-res-item__grow strong { display: block; font-size: 0.92rem; font-weight: 600; }
.ad-res-item__grow small { display: block; font-size: 0.76rem; color: var(--ad-muted); margin-top: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-res-item__acts { display: flex; gap: 2px; flex: 0 0 auto; }

/* ── mapa de imágenes de la página ── */
.ad-img-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.ad-img-slot {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.9rem;
  border-radius: 20px;
  background: var(--ad-glass);
  border: 1px solid var(--ad-line);
  transition: border-color 0.3s, background 0.3s;
}
.ad-img-slot:hover { border-color: rgba(200, 164, 106, 0.4); }
.ad-img-slot__img { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; background: linear-gradient(135deg, #F2E9DB, #DCC9A6); }
.ad-img-slot__ph { width: 100%; height: 150px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px dashed var(--ad-line-2); color: var(--ad-muted-2); font-size: 0.8rem; }
.ad-img-slot__info { min-width: 0; }
.ad-img-slot__info strong { display: block; font-size: 0.86rem; font-weight: 600; }
.ad-img-slot__info small { display: block; font-size: 0.7rem; color: var(--ad-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 0.2rem; }
.ad-img-slot .ad-btn { align-self: flex-start; }

.ad-grid-config { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: start; }
.ad-card { padding: 1.5rem 1.6rem; border-radius: 22px; display: flex; flex-direction: column; gap: 1rem; }
.ad-card--wide { grid-column: 1 / -1; }
.ad-card__title { font-family: var(--ad-display); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.4rem; }
.ad-card__txt { font-size: 0.85rem; color: var(--ad-muted); line-height: 1.6; }

/* toggles */
.ad-toggles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.ad-toggle { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.85rem 1rem; background: rgba(255,255,255,0.04); border: 1px solid var(--ad-line); border-radius: 16px; }
.ad-toggle label { font-size: 0.87rem; font-weight: 500; cursor: pointer; }
.ad-toggle input { position: relative; appearance: none; width: 42px; height: 24px; background: rgba(255,255,255,0.14); border-radius: 999px; cursor: pointer; transition: background 0.3s; flex: 0 0 auto; }
.ad-toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1); }
.ad-toggle input:checked { background: var(--ad-gold); }
.ad-toggle input:checked::after { transform: translateX(18px); background: #171410; }

/* stat lists */
.ad-stat-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ad-stat-row:last-child { border-bottom: none; }
.ad-stat-row__rank { width: 26px; height: 26px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; border-radius: 8px; background: var(--ad-gold-soft); color: var(--ad-gold); }
.ad-stat-row__grow { flex: 1; min-width: 0; }
.ad-stat-row__grow strong { display: block; font-size: 0.86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-stat-row__grow small { font-size: 0.72rem; color: var(--ad-muted); }
.ad-stat-row__val { font-size: 0.86rem; font-weight: 700; }
.ad-stat-total { font-family: var(--ad-display); font-size: 2.4rem; font-weight: 600; }
.ad-stat-total small { display: block; font-family: var(--ad-font); font-size: 0.78rem; color: var(--ad-muted); font-weight: 400; margin-top: 0.3rem; }

/* modal */
.ad-modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 1.4rem; }
.ad-modal.is-open { display: flex; }
.ad-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 8, 7, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: adFade 0.3s both; }
.ad-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: rgba(26, 25, 23, 0.98);
  backdrop-filter: var(--ad-blur);
  -webkit-backdrop-filter: var(--ad-blur);
  border: 1px solid var(--ad-line-2);
  box-shadow: var(--ad-shadow);
  animation: adUp 0.45s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
.ad-modal__panel--wide { width: min(980px, 100%); }
.ad-modal__close { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--ad-muted); background: var(--ad-glass-2); border: 1px solid var(--ad-line-2); border-radius: 50%; transition: background 0.3s, color 0.3s, transform 0.3s; }
.ad-modal__close:hover { color: var(--ad-text); background: rgba(255,255,255,0.12); transform: rotate(90deg); }
.ad-modal__body { overflow-y: auto; padding: 1.8rem; display: flex; flex-direction: column; gap: 1.4rem; }

.ad-modal__title { font-family: var(--ad-display); font-size: 1.6rem; font-weight: 500; }

/* product / look editor */
.ad-p-editor { display: flex; flex-direction: column; gap: 1rem; }
.ad-p-editor__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }

/* ── VISTA PREVIA EN VIVO (cómo lo verá el cliente) ── */
.pm-preview {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(200, 164, 106, 0.4);
}
.pm-preview__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ad-gold);
}
.pm-preview__card {
  width: 240px;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #2a201a, #1a1512);
  border: 1px solid rgba(216, 196, 163, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.pm-preview__img {
  position: relative;
  height: 150px;
  background: linear-gradient(150deg, #3a322b, #241f1a);
  overflow: hidden;
}
.pm-preview__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-preview__ph {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ad-muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.pm-preview__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: linear-gradient(135deg, #C8A46A, #B0864F);
  color: #171410;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 999px;
}
.pm-preview__tag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px);
  color: #e6d3b2; font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.pm-preview__body { padding: 12px 14px 14px; }
.pm-preview__name { font-weight: 600; color: #f5efe6; font-size: 0.92rem; line-height: 1.25; }
.pm-preview__sub { color: var(--ad-muted-2); font-size: 0.7rem; margin-top: 2px; }
.pm-preview__swatches { display: flex; gap: 5px; margin: 0.55rem 0; }
.pm-preview__swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); }
.pm-preview__row { display: flex; align-items: center; gap: 0.5rem; }
.pm-preview__price { color: #e6d3b2; font-weight: 700; font-size: 0.9rem; }
.pm-preview__old { color: var(--ad-muted-2); font-size: 0.7rem; text-decoration: line-through; }
.pm-preview__buy {
  margin-left: auto;
  background: linear-gradient(135deg, #C8A46A, #B0864F);
  color: #171410; font-size: 0.66rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}

/* ── Opciones avanzadas plegables del formulario de producto ── */
.ad-pf-more {
  grid-column: 1 / -1;
  border: 1px dashed rgba(200, 164, 106, 0.35);
  border-radius: 16px;
  padding: 0 1rem 0.4rem;
  background: rgba(255, 255, 255, 0.02);
}
.ad-pf-more summary {
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ad-gold);
  padding: 0.9rem 0 0.6rem;
  list-style: none;
  user-select: none;
}
.ad-pf-more summary::-webkit-details-marker { display: none; }
.ad-pf-more summary::before { content: '▸ '; }
.ad-pf-more[open] summary::before { content: '▾ '; }
.ad-pf-more__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  padding: 0.4rem 0 1rem;
}
@media (max-width: 900px) { .ad-pf-more__body { grid-template-columns: 1fr; } }
.ad-pf-field { display: flex; flex-direction: column; gap: 0.4rem; }
.ad-pf-field label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ad-muted); }
.ad-pf-field--wide { grid-column: span 2; }
.ad-pf-field--full { grid-column: 1 / -1; }
.ad-pf-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.55rem; background: rgba(255,255,255,0.04); border: 1px solid var(--ad-line); border-radius: 14px; margin-bottom: 0.5rem; }
.ad-pf-row .ad-input { flex: 1 1 140px; min-width: 0; }
.ad-pf-row .ad-input--sm { flex: 0 1 90px; }
.ad-pf-inline { display: flex; gap: 0.5rem; align-items: center; }
.ad-pf-inline .ad-input { flex: 1; }
.ad-swatch { width: 44px; height: 44px; padding: 2px; border: 1px solid var(--ad-line); border-radius: 12px; background: rgba(255,255,255,0.05); cursor: pointer; }
.ad-modal__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; border-top: 1px solid var(--ad-line); padding-top: 1rem; }

/* modal form grids */
.ad-m-form { display: flex; flex-direction: column; gap: 1.2rem; }
.ad-m-section { border-top: 1px solid var(--ad-line); padding-top: 1.2rem; }
.ad-m-section__title { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ad-gold); margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.ad-m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }

/* variant builder */
.ad-variants { display: flex; flex-direction: column; gap: 0.7rem; }
.ad-variant-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; padding: 0.7rem; background: rgba(255,255,255,0.04); border: 1px solid var(--ad-line); border-radius: 16px; }
.ad-variant-row input { width: 120px; }
.ad-variant-row .ad-input--sm { width: 90px; padding: 0.55rem 0.8rem; font-size: 0.82rem; }
.ad-variant-del { width: 34px; height: 34px; border-radius: 10px; background: var(--ad-err-soft); border: 1px solid rgba(177,87,75,0.35); color: var(--ad-err); font-size: 1rem; transition: background 0.25s; }
.ad-variant-del:hover { background: rgba(177, 87, 75, 0.24); }

/* images manager */
.ad-imgdrop { border: 1.5px dashed var(--ad-line-2); border-radius: 18px; padding: 1.4rem; text-align: center; color: var(--ad-muted); font-size: 0.85rem; cursor: pointer; transition: border-color 0.3s, background 0.3s; }
.ad-imgdrop:hover { border-color: rgba(200, 164, 106, 0.55); background: var(--ad-gold-soft); }
.ad-imggrid { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.8rem; }
.ad-imgcard { position: relative; width: 96px; height: 96px; border-radius: 16px; overflow: hidden; border: 1px solid var(--ad-line); background: rgba(255,255,255,0.05); }
.ad-imgcard img { width: 100%; height: 100%; object-fit: cover; }
.ad-imgcard__main { position: absolute; left: 6px; bottom: 6px; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--ad-gold); color: #171410; }
.ad-imgcard__bar { position: absolute; top: 6px; right: 6px; left: 6px; display: flex; justify-content: space-between; gap: 4px; }
.ad-imgcard__btn { width: 26px; height: 26px; border-radius: 8px; background: rgba(10,10,9,0.6); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; transition: background 0.25s; }
.ad-imgcard__btn:hover { background: rgba(10,10,9,0.9); }

/* order detail */
.ad-od-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.ad-od-items { display: flex; flex-direction: column; gap: 0.5rem; }
.ad-od-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* ── resortwear hero ── */
.ad-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(90% 120% at 80% -20%, rgba(200, 164, 106, 0.35), transparent 55%),
    radial-gradient(70% 90% at 10% 110%, rgba(127, 180, 143, 0.16), transparent 60%),
    linear-gradient(135deg, #1E1C19 0%, #161616 55%, #14150F 100%);
  border: 1px solid var(--ad-line-2);
  box-shadow: var(--ad-shadow);
}
.ad-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.ad-hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 12, 0.15) 30%, rgba(14, 14, 12, 0.88) 100%); }
.ad-hero__body { position: relative; width: 100%; padding: 2rem 2.2rem; }
.ad-hero__kicker { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ad-gold); margin-bottom: 0.5rem; }
.ad-hero__body h2 { font-family: var(--ad-display); font-size: 2.6rem; font-weight: 500; line-height: 1.05; }
.ad-hero__body p { color: var(--ad-muted); font-size: 0.88rem; margin-top: 0.4rem; max-width: 560px; }
.ad-hero__stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--ad-line); }
.ad-hero__stat-v { font-family: var(--ad-display); font-size: 1.5rem; font-weight: 600; color: var(--ad-gold); line-height: 1.1; }
.ad-hero__stat-l { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ad-muted); }

/* ── resortwear window preview ── */
.ad-window {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.4rem;
}
.ad-window__card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--ad-glass-2);
  border: 1px solid var(--ad-line);
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}
.ad-window__card:hover { transform: translateY(-4px); border-color: rgba(200, 164, 106, 0.4); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.ad-window__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.ad-window__badge {
  position: absolute;
  top: 0.7rem; left: 0.7rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(12, 12, 11, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ad-gold);
  border: 1px solid rgba(200, 164, 106, 0.35);
}
.ad-window__info { padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.ad-window__info strong { font-size: 0.84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-window__info span { font-family: var(--ad-display); font-size: 1.05rem; font-weight: 600; color: var(--ad-gold); }

/* toasts */
.ad-toasts { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 0.6rem; align-items: center; pointer-events: none; }
.ad-toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 999px;
  color: var(--ad-text);
  background: rgba(30, 29, 27, 0.96);
  backdrop-filter: var(--ad-blur);
  -webkit-backdrop-filter: var(--ad-blur);
  border: 1px solid var(--ad-line-2);
  box-shadow: var(--ad-shadow);
  animation: adToast 3.4s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  pointer-events: auto;
}
.ad-toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ad-gold); box-shadow: 0 0 10px rgba(200,164,106,0.8); }
.ad-toast--err::before { background: var(--ad-err); box-shadow: 0 0 10px rgba(177,87,75,0.8); }
.ad-toast--ok::before { background: var(--ad-ok); box-shadow: 0 0 10px rgba(127,180,143,0.8); }
@keyframes adToast {
  0% { opacity: 0; transform: translateY(16px); }
  12%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(6px); }
}

/* ── responsive ── */
@media (max-width: 1200px) {
  .ad-metrics { grid-template-columns: repeat(2, 1fr); }
  .ad-widgets { grid-template-columns: repeat(2, 1fr); }
  .ad-coll-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-coll-grid--sm { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
  .ad-app { grid-template-columns: 1fr; }
  .ad-p-editor__cols { grid-template-columns: repeat(2, 1fr); }
  .ad-sidebar {
    position: fixed;
    left: 0; top: 0;
    width: 280px;
    transform: translateX(-102%);
    transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1);
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
  }
  .ad-sidebar.is-open { transform: translateX(0); }
  .ad-sidebar__scrim { display: block; position: fixed; inset: 0; background: rgba(8,8,7,0.6); backdrop-filter: blur(4px); z-index: 25; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .ad-sidebar__scrim.is-open { opacity: 1; pointer-events: auto; }
  .ad-top__burger { display: flex; }
  .ad-grid-config { grid-template-columns: 1fr; }
  .ad-m-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .ad-metrics, .ad-metrics--sm { grid-template-columns: repeat(2, 1fr); }
  .ad-widgets { grid-template-columns: 1fr; }
  .ad-widget--wide { grid-column: span 1; }
  .ad-coll-grid, .ad-coll-grid--sm { grid-template-columns: 1fr; }
  .ad-search { width: auto; flex: 1; min-width: 0; }
  .ad-session { display: none; }
  .ad-m-grid { grid-template-columns: 1fr; }
  .ad-p-editor__cols { grid-template-columns: 1fr; }
  .ad-od-grid { grid-template-columns: 1fr; }
  .ad-top__title { display: none; }
  .ad-search__drop { position: fixed; left: 1rem; right: 1rem; top: 4.2rem; }
}