/* ============================================================
   LOBBY69 — VIVID NIGHTS EDITION — Design System
   Versión: 1.0.0
   ============================================================ */

:root {
  --color-ivory: #FAF9F6;
  --color-white: #FFFFFF;
  --color-cream: #FFF8F0;
  --color-hot-pink: #FF1493;
  --color-coral: #FF6B6B;
  --color-turquoise: #00D9FF;
  --color-purple: #9B59B6;
  --color-navy: #2C3E50;
  --color-gray: #7F8C8D;
  --color-light-gray: #BDC3C7;
  --color-success: #27AE60;
  --color-warning: #F39C12;
  --color-danger: #E74C3C;
  --color-info: #3498DB;
  --gradient-party: linear-gradient(135deg, #FF1493 0%, #9B59B6 100%);
  --gradient-sunset: linear-gradient(135deg, #FF6B6B 0%, #FFD166 100%);
  --gradient-ocean: linear-gradient(135deg, #00D9FF 0%, #4ECDC4 100%);
  --gradient-navy: linear-gradient(135deg, #2C3E50 0%, #1a252f 100%);
  --font-base: 'Inter', system-ui, sans-serif;
  --font-display: 'Montserrat', 'Inter', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 12px rgba(44, 62, 80, 0.08);
  --shadow-md: 0 10px 30px rgba(44, 62, 80, 0.12);
  --shadow-lg: 0 18px 48px rgba(44, 62, 80, 0.16);
  --shadow-xl: 0 24px 64px rgba(44, 62, 80, 0.2);
}

/* ============================================================
   LOBBY69 — SISTEMA DE TEMAS DÍA / NOCHE
   Variables --theme-* usadas en todas las vistas
   ============================================================ */

/* Modo día (default) */
[data-theme="light"],
:root {
  --theme-bg:        #FAF9F6;
  --theme-card:      #FFFFFF;
  --theme-card-alt:  #F3F4F6;
  --theme-border:    rgba(44, 62, 80, 0.12);
  --theme-text:      #2C3E50;
  --theme-text-soft: #4B5563;
  --theme-muted:     #9CA3AF;
  --theme-input:     #FFFFFF;
  --theme-hover:     rgba(139, 92, 246, 0.06);
  --theme-shadow:    0 4px 16px rgba(44, 62, 80, 0.10);
  --theme-navbar:    #FFFFFF;
  --theme-overlay:   rgba(44, 62, 80, 0.75);
}

/* Modo noche */
[data-theme="dark"] {
  --theme-bg:        #0f0d1a;
  --theme-card:      #1a1728;
  --theme-card-alt:  #221f33;
  --theme-border:    rgba(255, 255, 255, 0.08);
  --theme-text:      #F0EEF8;
  --theme-text-soft: #C4BFDA;
  --theme-muted:     #7C7A8E;
  --theme-input:     #221f33;
  --theme-hover:     rgba(139, 92, 246, 0.12);
  --theme-shadow:    0 4px 16px rgba(0, 0, 0, 0.40);
  --theme-navbar:    #14111f;
  --theme-overlay:   rgba(0, 0, 0, 0.85);
}

/* ── Aplicar tema al body y elementos base ── */
body {
  background-color: var(--theme-bg) !important;
  color: var(--theme-text) !important;
}

/* Navbar */
.navbar {
  background: var(--theme-navbar) !important;
  border-bottom: 1px solid var(--theme-border);
}
.navbar__brand-text,
.navbar__link {
  color: var(--theme-text) !important;
}
.navbar__link:hover {
  background: var(--theme-hover) !important;
  color: var(--theme-text) !important;
}
[data-theme="dark"] .navbar__toggle span {
  background: var(--theme-text);
}
[data-theme="dark"] .navbar__menu {
  background: var(--theme-navbar);
}

/* Cards genéricas */
.card {
  background: var(--theme-card) !important;
  border: 1px solid var(--theme-border) !important;
  color: var(--theme-text) !important;
}

/* Formularios */
.form-control {
  background: var(--theme-input) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}
.form-label {
  color: var(--theme-text) !important;
}

/* Modales genéricos del layout */
[data-theme="dark"] .modal,
[data-theme="dark"] .modal__header {
  background: var(--theme-card) !important;
  color: var(--theme-text) !important;
}
[data-theme="dark"] .modal__body p,
[data-theme="dark"] .modal__body li {
  color: var(--theme-text-soft) !important;
}
[data-theme="dark"] .modal__header,
[data-theme="dark"] .modal__footer {
  border-color: var(--theme-border) !important;
}

/* Textos globales */
h1, h2, h3, h4, h5, h6,
p, span, label, td, th, li {
  color: inherit;
}

/* Inputs select y textarea */
select, textarea, input[type="text"],
input[type="email"], input[type="password"],
input[type="number"], input[type="tel"] {
  background: var(--theme-input) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}

/* Scrollbar modo noche */
[data-theme="dark"] ::-webkit-scrollbar {
  width: 8px;
  background: var(--theme-card);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #3b3556;
  border-radius: 4px;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-base); font-size: var(--text-base); line-height: 1.6; color: var(--color-navy); background-color: var(--color-ivory); min-height: 100vh; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; padding: 0; }

h1, .h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; line-height: 1.2; }
h2, .h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; line-height: 1.3; }
h3, .h3 { font-size: var(--text-xl); font-weight: 600; line-height: 1.4; }
h4, .h4 { font-size: var(--text-lg); font-weight: 600; line-height: 1.5; }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-muted { color: var(--color-gray); }
.text-center { text-align: center; }
.link { color: var(--color-coral); font-weight: 600; }
.link:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-4); }
.card { background: var(--color-white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.card:hover { box-shadow: var(--shadow-md); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0.75rem 1.5rem; border: none; border-radius: var(--radius-full); font-weight: 600; font-size: var(--text-sm); cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-coral); color: var(--color-white); }
.btn--primary:hover { background: #e55a5a; box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--color-coral); border: 2px solid var(--color-coral); }
.btn--secondary:hover { background: var(--color-coral); color: var(--color-white); }
.btn--ghost { background: transparent; color: var(--color-navy); border: 1px solid rgba(44, 62, 80, 0.12); }
.btn--pink { background: var(--color-hot-pink); color: var(--color-white); }
.btn--sm { min-height: 36px; padding: 0.5rem 1rem; font-size: var(--text-xs); }
.btn--lg { min-height: 52px; padding: 1rem 2rem; font-size: var(--text-base); }
.btn--block { width: 100%; }

.badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 700; }
.badge--verified { background: rgba(0, 217, 255, 0.12); color: var(--color-turquoise); }
.badge--vip { background: rgba(155, 89, 182, 0.14); color: var(--color-purple); }
.badge--new { background: rgba(39, 174, 96, 0.12); color: var(--color-success); }

.form-group { margin-bottom: var(--space-4); }
.form-label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-navy); margin-bottom: var(--space-2); }
.form-control { width: 100%; min-height: 48px; padding: 0.75rem 1rem; border: 2px solid rgba(44, 62, 80, 0.12); border-radius: var(--radius-sm); background: var(--color-white); color: var(--color-navy); font-size: var(--text-base); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-control:focus { border-color: var(--color-turquoise); box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.15); }
.form-control--error { border-color: var(--color-danger); }
.form-error { font-size: var(--text-xs); color: var(--color-danger); margin-top: var(--space-1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.avatar { width: 48px; height: 48px; border-radius: var(--radius-full); object-fit: cover; }
.avatar--sm { width: 32px; height: 32px; }
.avatar--lg { width: 72px; height: 72px; }
.avatar--xl { width: 120px; height: 120px; }

/* ── NAVBAR ── */
.navbar { position: sticky; top: 0; z-index: 100; background: var(--color-white); box-shadow: var(--shadow-sm); }
.navbar__container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar__brand { display: flex; align-items: center; gap: var(--space-2); }
.navbar__logo { height: 40px; width: auto; }
.navbar__brand-text { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--color-navy); }
.navbar__menu { display: flex; align-items: center; gap: var(--space-4); }
.navbar__link { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); color: var(--color-gray); font-weight: 500; border-radius: var(--radius-sm); transition: all 0.2s ease; background: none; border: none; cursor: pointer; font-size: var(--text-sm); }
.navbar__link:hover { color: var(--color-navy); background: rgba(44, 62, 80, 0.05); }
.navbar__link--logout { color: var(--color-danger); }
.navbar__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: var(--space-2); }
.navbar__toggle span { width: 24px; height: 2px; background: var(--color-navy); border-radius: 2px; transition: all 0.3s ease; }
@media (max-width: 768px) {
  .navbar__toggle { display: flex; }
  .navbar__menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-white); flex-direction: column; padding: var(--space-4); box-shadow: var(--shadow-md); }
  .navbar__menu.navbar__menu--open { display: flex; }
}

/* ── LANDING HERO ── */

/* ── LANDING HERO ── */
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  overflow: hidden;
  background: var(--gradient-navy);
}

.landing-hero--with-image {
  background: linear-gradient(rgba(58, 67, 74, 0.7), rgba(26, 37, 47, 0.8)),
              url('/img/hero.png') center/cover no-repeat;
}

.landing-hero__overlay {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.landing-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 20px 80px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.landing-hero__logo {
  margin-bottom: 10px;
}

.landing-hero__logo-img {
  height: 160px;
  width: auto;
  margin: 0 auto;
  opacity: 0.95;
}

.landing-hero__subtitle {
  font-size: var(--text-2xl);
  font-weight: 700;
  background: var(--gradient-party);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1.3;
}

.landing-hero__description {
  font-size: var(--text-lg);
  opacity: 0.9;
  line-height: 1.8;
  margin: 0;
  max-width: 650px;
}

.landing-hero__badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.landing-hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Responsive: móvil */
@media (max-width: 768px) {
  .landing-hero {
    min-height: 90vh;
  }
  .landing-hero__content {
    padding: 100px 16px 60px;
    gap: 18px;
  }
  .landing-hero__logo-img {
    height: 40px;
  }
  .landing-hero__subtitle {
    font-size: var(--text-xl);
  }
  .landing-hero__description {
    font-size: var(--text-base);
  }
}


/* ── SECTION TITLE ── */
.section-title { text-align: center; margin-bottom: var(--space-2); }
.section-subtitle { text-align: center; color: var(--color-gray); margin-bottom: var(--space-12); font-size: var(--text-lg); }

/* ── DIFFERENTIALS ── */
.section-differentials { padding: var(--space-16) 0; background: var(--color-white); }
.differentials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.differential-card { padding: var(--space-8); text-align: center; }
.differential-card__icon { font-size: 3rem; color: var(--color-coral); margin-bottom: var(--space-4); }
.differential-card h3 { margin-bottom: var(--space-3); }
.differential-card p { color: var(--color-gray); }

/* ── PLANS ── */
.section-memberships {
  padding: 80px 0;
  background: var(--color-ivory);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.plan-card {
  padding: 24px 16px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plan-card--featured {
  border: 2px solid var(--color-coral);
  transform: scale(1.03);
}

.plan-card__badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-coral);
  color: var(--color-white);
  padding: 3px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.plan-card__icon {
  font-size: 28px;
  color: var(--color-purple);
  margin-bottom: 8px;
}

.plan-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-card__desc {
  color: var(--color-gray);
  font-size: 12px;
  margin-bottom: 12px;
  line-height: 1.3;
  min-height: 32px;
}

.plan-card__price {
  margin-bottom: 4px;
}

.plan-card__price-current {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
}

.plan-card__price-normal {
  font-size: 12px;
  color: var(--color-light-gray);
  text-decoration: line-through;
  margin-left: 6px;
}

.plan-card__duration {
  color: var(--color-gray);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  word-break: break-word;
}

.plan-card .btn {
  font-size: 12px;
  min-height: 38px;
  padding: 8px 16px;
  width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .plan-card--featured {
    transform: none;
  }
}

@media (max-width: 500px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}


/* ── CTA ── */
.section-cta { padding: var(--space-16) 0; background: var(--gradient-navy); color: var(--color-white); text-align: center; }
.section-cta h2 { margin-bottom: var(--space-4); }
.section-cta p { font-size: var(--text-lg); margin-bottom: var(--space-6); opacity: 0.85; }

/* ── AUTH ── */
.auth-section { min-height: calc(100vh - 64px); display: flex; align-items: center; padding: var(--space-8) 0; }
.auth-card { max-width: 480px; margin: 0 auto; padding: var(--space-8); }
.auth-card__header { text-align: center; margin-bottom: var(--space-8); }
.auth-card__logo { height: 60px; width: auto; margin: 0 auto var(--space-4); }
.auth-card__header h1 { margin-bottom: var(--space-2); }
.auth-card__header p { color: var(--color-gray); }
.auth-card__footer { text-align: center; margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid rgba(44, 62, 80, 0.08); }

/* ── RADIO & CHECKBOX ── */
.radio-group { display: flex; flex-direction: column; gap: var(--space-2); }
.radio-label { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 2px solid rgba(44, 62, 80, 0.12); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s ease; }
.radio-label:hover { border-color: var(--color-turquoise); }
.radio-label input[type="radio"] { accent-color: var(--color-coral); width: 18px; height: 18px; }
.checkbox-label { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.checkbox-label input[type="checkbox"] { accent-color: var(--color-coral); width: 18px; height: 18px; margin-top: 3px; }

/* ── DASHBOARD ── */
.dashboard { display: grid; grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-6) 0; }
@media (min-width: 1024px) { .dashboard { grid-template-columns: 280px 1fr 320px; } }
.profile-summary-card { padding: var(--space-4); }
.profile-summary-card__header { display: flex; align-items: center; gap: var(--space-3); }

/* ── TOAST ── */
.toast { position: fixed; top: 80px; right: var(--space-4); z-index: 200; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: var(--text-sm); font-weight: 500; animation: slideIn 0.3s ease; }
.toast--success { background: #d4edda; color: #155724; border-left: 4px solid var(--color-success); }
.toast--error { background: #f8d7da; color: #721c24; border-left: 4px solid var(--color-danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── FOOTER ── */
.footer { background: var(--color-white); border-top: 1px solid rgba(44, 62, 80, 0.08); padding: var(--space-8) 0; margin-top: var(--space-8); }
.footer__container { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; }
.footer__logo { height: 32px; width: auto; margin: 0 auto var(--space-2); }
.footer__links { display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; }
.footer__link { color: var(--color-gray); font-size: var(--text-sm); }
.footer__link:hover { color: var(--color-coral); }
.footer__copy p { font-size: var(--text-sm); color: var(--color-gray); }

@media (max-width: 768px) {
  .plan-card--featured { transform: none; }
  .plans-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LOBBY69 — SISTEMA DE TEMAS DÍA / NOCHE
   ============================================================ */

/* ── MODO DÍA (default) ── */
:root,
[data-theme="light"] {
    --theme-bg:           #faf9f7;
    --theme-bg-2:         #f3f0f7;
    --theme-surface:      #ffffff;
    --theme-surface-2:    #f8f5fc;
    --theme-surface-3:    #f0ebf8;
    --theme-border:       rgba(180, 60, 120, 0.15);
    --theme-border-soft:  rgba(0, 0, 0, 0.07);
    --theme-text:         #1a1523;
    --theme-text-2:       #4a3f5c;
    --theme-text-3:       #7c6e8a;
    --theme-text-muted:   #a394b0;
    --theme-accent:       #c0392b;
    --theme-accent-2:     #8e44ad;
    --theme-accent-soft:  rgba(192, 57, 43, 0.1);
    --theme-pink:         #d63080;
    --theme-pink-soft:    rgba(214, 48, 128, 0.1);
    --theme-pink-border:  rgba(214, 48, 128, 0.25);
    --theme-success:      #16a34a;
    --theme-warning:      #d97706;
    --theme-danger:       #dc2626;
    --theme-online:       #16a34a;
    --theme-shadow:       0 4px 20px rgba(100, 50, 120, 0.1);
    --theme-shadow-md:    0 8px 32px rgba(100, 50, 120, 0.14);
    --theme-shadow-lg:    0 16px 48px rgba(100, 50, 120, 0.18);
    --theme-navbar-bg:    rgba(255, 255, 255, 0.97);
    --theme-navbar-text:  #1a1523;
    --theme-navbar-border:rgba(180, 60, 120, 0.2);
    --theme-dropdown-bg:  #ffffff;
    --theme-gradient:     linear-gradient(135deg, #c0392b, #8e44ad);
    --theme-ring-opacity: 0.6;
    --theme-icon-opacity: 0.7;
}

/* ── MODO NOCHE ── */
[data-theme="dark"] {
    --theme-bg:           #0f0a1a;
    --theme-bg-2:         #150d26;
    --theme-surface:      #1e1232;
    --theme-surface-2:    #251840;
    --theme-surface-3:    #2d1e4e;
    --theme-border:       rgba(180, 60, 120, 0.22);
    --theme-border-soft:  rgba(255, 255, 255, 0.06);
    --theme-text:         #f0eaf8;
    --theme-text-2:       #d4c8e8;
    --theme-text-3:       #a992c4;
    --theme-text-muted:   #7a6690;
    --theme-accent:       #e05060;
    --theme-accent-2:     #a855f7;
    --theme-accent-soft:  rgba(224, 80, 96, 0.15);
    --theme-pink:         #e056a0;
    --theme-pink-soft:    rgba(224, 86, 160, 0.12);
    --theme-pink-border:  rgba(224, 86, 160, 0.25);
    --theme-success:      #22c55e;
    --theme-warning:      #f59e0b;
    --theme-danger:       #ef4444;
    --theme-online:       #22c55e;
    --theme-shadow:       0 4px 20px rgba(0, 0, 0, 0.4);
    --theme-shadow-md:    0 8px 32px rgba(0, 0, 0, 0.5);
    --theme-shadow-lg:    0 16px 48px rgba(0, 0, 0, 0.6);
    --theme-navbar-bg:    rgba(15, 10, 26, 0.97);
    --theme-navbar-text:  #f0eaf8;
    --theme-navbar-border:rgba(180, 60, 120, 0.25);
    --theme-dropdown-bg:  #1e1232;
    --theme-gradient:     linear-gradient(135deg, #c0392b, #8e44ad);
    --theme-ring-opacity: 0.5;
    --theme-icon-opacity: 0.85;
}

/* ── Transición suave al cambiar tema ── */
*, *::before, *::after {
    transition: background-color 0.25s ease,
                border-color 0.25s ease,
                color 0.2s ease,
                box-shadow 0.25s ease;
}
/* Excluir elementos donde la transición genera glitch */
img, svg, video, canvas,
[class*="fa-"],
.dsb-progress-fill,
.l69-nav__search-wrap { transition: none !important; }

/* ── Body con variables de tema ── */
body {
    background-color: var(--theme-bg) !important;
    color: var(--theme-text) !important;
}


/* ══════════════════════════════════════════════════════════
   SISTEMA DE TEMAS — LOBBY69
   El toggle aplica data-theme="dark" en <html>
   Por defecto: modo claro (day)
   ══════════════════════════════════════════════════════════ */

/* MODO DÍA (default) */
:root,
html[data-theme="light"],
html:not([data-theme="dark"]) {
    --bg-body:        #faf9f7;
    --bg-card:        #ffffff;
    --bg-card-hover:  #f5f3ef;
    --bg-sidebar:     #ffffff;
    --bg-navbar:      rgba(255, 255, 255, 0.95);
    --bg-input:       #f0eee8;
    --text-primary:   #1a1523;
    --text-secondary: #5a5470;
    --text-muted:     #9590a8;
    --text-on-accent: #ffffff;
    --border-color:   rgba(26, 21, 35, 0.10);
    --shadow-card:    0 2px 12px rgba(0,0,0,0.08);
    --shadow-navbar:  0 2px 20px rgba(0,0,0,0.08);
    --overlay-bg:     rgba(0,0,0,0.5);
    --toggle-bg:      #e8e4f0;
    --toggle-icon:    "🌙";
}

/* MODO NOCHE */
html[data-theme="dark"] {
    --bg-body:        #0f0a1e;
    --bg-card:        rgba(255, 255, 255, 0.06);
    --bg-card-hover:  rgba(255, 255, 255, 0.10);
    --bg-sidebar:     rgba(255, 255, 255, 0.04);
    --bg-navbar:      rgba(15, 10, 30, 0.95);
    --bg-input:       rgba(255, 255, 255, 0.08);
    --text-primary:   #f0eaf8;
    --text-secondary: #c4b8d8;
    --text-muted:     #8a7fa0;
    --text-on-accent: #ffffff;
    --border-color:   rgba(255, 255, 255, 0.10);
    --shadow-card:    0 2px 12px rgba(0,0,0,0.40);
    --shadow-navbar:  0 2px 20px rgba(0,0,0,0.50);
    --overlay-bg:     rgba(0,0,0,0.75);
    --toggle-bg:      rgba(255, 255, 255, 0.12);
    --toggle-icon:    "☀️";
}

/* ── Aplicar variables al DOM ─────────────────────────────── */
body {
    background-color: var(--bg-body) !important;
    color:            var(--text-primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card, .sidebar-card, .profile-card,
[class*="bg-white"], [class*="bg-card"] {
    background-color: var(--bg-card) !important;
    color:            var(--text-primary) !important;
    border-color:     var(--border-color) !important;
}

.navbar, nav {
    background: var(--bg-navbar) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-navbar) !important;
}

input, textarea, select, .search-input {
    background-color: var(--bg-input) !important;
    color:            var(--text-primary) !important;
    border-color:     var(--border-color) !important;
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted) !important;
}

p, span, h1, h2, h3, h4, h5, h6, label, td, th, li {
    color: var(--text-primary);
}

.text-muted, .text-secondary {
    color: var(--text-secondary) !important;
}

/* ── Botón toggle tema ─────────────────────────────────────── */
#theme-toggle {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           36px;
    height:          36px;
    border-radius:   50%;
    background:      var(--toggle-bg);
    border:          1px solid var(--border-color);
    cursor:          pointer;
    font-size:       16px;
    transition:      all 0.2s ease;
    flex-shrink:     0;
    position:        relative; /* NO absolute */
    z-index:         10;
}

#theme-toggle:hover {
    transform: scale(1.1);
    background: var(--bg-card-hover) !important;
}

/* ══════════════════════════════════════════════════════
   SISTEMA DE TEMAS LOBBY69
   Soporta: --theme-*, --bg-*, --text-* (todos los alias)
   ══════════════════════════════════════════════════════ */

/* MODO DÍA (default) */
:root,
html:not([data-theme="dark"]) {
    /* Fondos */
    --bg-body:              #f5f0fa;
    --bg-card:              #ffffff;
    --bg-card-hover:        #faf7ff;
    --bg-sidebar:           #ffffff;
    --bg-input:             #f0eaf8;
    --bg-navbar:            rgba(255,255,255,0.97);

    /* Textos */
    --text-primary:         #1a1523;
    --text-secondary:       #5a5470;
    --text-muted:           #9590a8;
    --text-on-accent:       #ffffff;

    /* Bordes y sombras */
    --border-color:         rgba(26,21,35,0.10);
    --shadow-card:          0 2px 12px rgba(0,0,0,0.08);
    --shadow-navbar:        0 2px 20px rgba(0,0,0,0.08);

    /* Toggle */
    --toggle-bg:            #ede8f5;

    /* Aliases para compatibilidad con navbar/sidebar */
    --theme-navbar-bg:      rgba(255,255,255,0.97);
    --theme-navbar-border:  rgba(26,21,35,0.10);
    --theme-navbar-text:    #1a1523;
    --theme-text:           #1a1523;
    --theme-text-muted:     #9590a8;
    --theme-accent:         #e056a0;
    --theme-accent-2:       #9B59B6;
    --theme-pink:           #e056a0;
    --theme-pink-soft:      rgba(224,86,160,0.08);
    --theme-dropdown-bg:    #ffffff;
    --theme-surface-2:      #f5f0fa;
    --theme-shadow-md:      0 4px 20px rgba(0,0,0,0.10);
    --theme-border:         rgba(26,21,35,0.10);
}

/* MODO NOCHE */
html[data-theme="dark"] {
    /* Fondos */
    --bg-body:              #0f0a1e;
    --bg-card:              rgba(255,255,255,0.06);
    --bg-card-hover:        rgba(255,255,255,0.10);
    --bg-sidebar:           rgba(255,255,255,0.04);
    --bg-input:             rgba(255,255,255,0.08);
    --bg-navbar:            rgba(15,10,30,0.97);

    /* Textos */
    --text-primary:         #f0eaf8;
    --text-secondary:       #c4b8d8;
    --text-muted:           #8a7fa0;
    --text-on-accent:       #ffffff;

    /* Bordes y sombras */
    --border-color:         rgba(255,255,255,0.10);
    --shadow-card:          0 2px 12px rgba(0,0,0,0.40);
    --shadow-navbar:        0 2px 20px rgba(0,0,0,0.50);

    /* Toggle */
    --toggle-bg:            rgba(255,255,255,0.12);

    /* Aliases para compatibilidad */
    --theme-navbar-bg:      rgba(15,10,30,0.97);
    --theme-navbar-border:  rgba(255,255,255,0.10);
    --theme-navbar-text:    #f0eaf8;
    --theme-text:           #f0eaf8;
    --theme-text-muted:     #8a7fa0;
    --theme-accent:         #e056a0;
    --theme-accent-2:       #a855f7;
    --theme-pink:           #e056a0;
    --theme-pink-soft:      rgba(224,86,160,0.12);
    --theme-dropdown-bg:    #1e1530;
    --theme-surface-2:      rgba(255,255,255,0.06);
    --theme-shadow-md:      0 4px 20px rgba(0,0,0,0.40);
    --theme-border:         rgba(255,255,255,0.10);
}

/* ── Aplicar fondos y textos base ── */
html, body {
    background-color: var(--bg-body) !important;
    color:            var(--text-primary) !important;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* ── Cards y superficies ── */
.card, .sidebar-card, .profile-card, .l69-card,
.feed-card, .stat-card, .activity-card, .sidebar-section {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-card) !important;
    color: var(--text-primary) !important;
}

/* ── Navbar ── */
.l69-nav, nav.l69-nav {
    background: var(--bg-navbar) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-navbar) !important;
}

/* ── Inputs ── */
input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),
textarea, select, .l69-search-input {
    background: var(--bg-input) !important;
    color:       var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
input::placeholder, textarea::placeholder {
    color: var(--text-muted) !important;
}

/* ── Textos secundarios ── */
.text-muted, .l69-muted, small {
    color: var(--text-muted) !important;
}

/* ── Toggle button ── */
#theme-toggle {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           36px;
    height:          36px;
    min-width:       36px;
    border-radius:   50%;
    background:      var(--toggle-bg) !important;
    border:          1px solid var(--border-color);
    cursor:          pointer;
    font-size:       18px;
    line-height:     1;
    transition:      transform 0.2s ease;
    flex-shrink:     0;
    position:        static !important;
}
#theme-toggle:hover { transform: scale(1.12); }

/* ══════════════════════════════════════════════════════
   LOBBY69 — SISTEMA DE TEMAS (light / dark)
   ══════════════════════════════════════════════════════ */

/* MODO DÍA */
:root,
html:not([data-theme="dark"]) {
    --bg-body:           #f5f0fa;
    --bg-card:           #ffffff;
    --bg-card-hover:     #faf7ff;
    --bg-sidebar:        #ffffff;
    --bg-input:          #ede8f5;
    --bg-navbar:         rgba(255,255,255,0.97);
    --text-primary:      #1f1f21;
    --text-secondary:    #5a5470;
    --text-muted:        #180460;
    --border-color:      rgba(26,21,35,0.10);
    --shadow-card:       0 2px 12px rgba(0,0,0,0.08);
    --shadow-navbar:     0 2px 20px rgba(0,0,0,0.08);
    --toggle-bg:         #ede8f5;
    --theme-text:        #1a1523;
    --theme-text-muted:  #9590a8;
    --theme-surface-2:   #f5f0fa;
    --theme-navbar-bg:   rgba(255,255,255,0.97);
    --theme-navbar-border: rgba(26,21,35,0.10);
    --theme-navbar-text: #1a1523;
    --theme-accent:      #c0392b;
    --theme-accent-2:    #8e44ad;
    --theme-pink:        #e056a0;
    --theme-pink-soft:   rgba(224,86,160,0.08);
    --theme-dropdown-bg: #ffffff;
    --theme-shadow-md:   0 4px 20px rgba(0,0,0,0.10);
    --theme-border:      rgba(26,21,35,0.10);
}

/* MODO NOCHE */
html[data-theme="dark"] {
    --bg-body:           #0f0a1e;
    --bg-card:           rgba(255,255,255,0.06);
    --bg-card-hover:     rgba(255,255,255,0.10);
    --bg-sidebar:        rgba(255,255,255,0.04);
    --bg-input:          rgba(255,255,255,0.08);
    --bg-navbar:         rgba(15,10,30,0.97);
    --text-primary:      #f0eaf8;
    --text-secondary:    #c4b8d8;
    --text-muted:        #8a7fa0;
    --border-color:      rgba(255,255,255,0.10);
    --shadow-card:       0 2px 12px rgba(0,0,0,0.40);
    --shadow-navbar:     0 2px 20px rgba(0,0,0,0.50);
    --toggle-bg:         rgba(255,255,255,0.12);
    --theme-text:        #f0eaf8;
    --theme-text-muted:  #8a7fa0;
    --theme-surface-2:   rgba(255,255,255,0.06);
    --theme-navbar-bg:   rgba(15,10,30,0.97);
    --theme-navbar-border: rgba(255,255,255,0.10);
    --theme-navbar-text: #f0eaf8;
    --theme-accent:      #c0392b;
    --theme-accent-2:    #a855f7;
    --theme-pink:        #e056a0;
    --theme-pink-soft:   rgba(224,86,160,0.12);
    --theme-dropdown-bg: #1e1530;
    --theme-shadow-md:   0 4px 20px rgba(0,0,0,0.40);
    --theme-border:      rgba(255,255,255,0.10);
}

/* ── Base ── */
html, body {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* ── Navbar ── */
.l69-nav {
    background: var(--bg-navbar) !important;
    border-bottom-color: var(--border-color) !important;
    box-shadow: var(--shadow-navbar) !important;
}

/* ── Sidebar cards ── */
.l69-sidebar-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

/* ── Sidebar nav items: texto legible en ambos modos ── */
.l69-sidebar-nav__item a,
.l69-sidebar-nav__item button {
    color: var(--text-secondary) !important;
}
.l69-sidebar-nav__item a:hover,
.l69-sidebar-nav__item button:hover {
    background: var(--theme-pink-soft) !important;
    color: var(--text-primary) !important;
}
.l69-sidebar-nav__item a.is-active {
    color: var(--theme-pink) !important;
}

/* ── Mini perfil nick/tipo ── */
.l69-mini-profile__nick { color: var(--text-primary) !important; }
.l69-mini-profile__type { color: var(--theme-pink) !important; }

/* ── Stats sidebar ── */
.l69-stat {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}
.l69-stat__label { color: var(--text-muted) !important; }

/* ── Quick buttons ── */
.l69-quick-btn {
    color: var(--text-secondary) !important;
    background: var(--theme-pink-soft) !important;
    border-color: rgba(224,86,160,0.20) !important;
}
.l69-quick-btn:hover {
    color: var(--text-primary) !important;
}

/* ── Inputs ── */
input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),
textarea, select {
    background: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
input::placeholder, textarea::placeholder {
    color: var(--text-muted) !important;
}

/* ── Cards generales ── */
.card, .l69-card, .feed-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* ── Títulos sidebar ── */
.l69-sidebar-card__title {
    color: var(--theme-pink) !important;
}

/* ── Toggle ── */
#theme-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: var(--toggle-bg) !important;
    border: 1px solid var(--border-color) !important;
    cursor: pointer !important;
    font-size: 17px !important;
    flex-shrink: 0 !important;
    position: static !important;
    transition: transform 0.2s ease !important;
}
#theme-toggle:hover { transform: scale(1.1) !important; }

/* ── Progress bar ── */
.l69-profile-progress__label { color: var(--text-muted) !important; }
.l69-profile-progress__bar { background: var(--border-color) !important; }

/* ══ SIDEBAR DERECHO — legibilidad modo día ══ */
[data-theme="light"] .l69-sidebar-card {
    background: #ffffff;
    border-color: rgba(180, 60, 120, 0.12);
}
[data-theme="light"] .l69-sidebar-card__title {
    color: rgba(140, 40, 100, 0.8);
}
[data-theme="light"] .l69-stat {
    background: #f9f5ff;
    border-color: rgba(180, 60, 120, 0.1);
}
[data-theme="light"] .l69-stat__value {
    color: #c0392b;
}
[data-theme="light"] .l69-stat__label {
    color: #6b7280;
}
[data-theme="light"] .l69-sidebar-nav__item a,
[data-theme="light"] .l69-sidebar-nav__item button {
    color: #374151;
}
[data-theme="light"] .l69-sidebar-nav__item a:hover,
[data-theme="light"] .l69-sidebar-nav__item button:hover {
    background: rgba(180, 60, 120, 0.08);
    color: #1f2937;
}
[data-theme="light"] .l69-sidebar-nav__item a.is-active {
    background: rgba(180, 60, 120, 0.12);
    color: #b43c78;
}
[data-theme="light"] .l69-mini-profile__nick {
    color: #1f2937;
}
[data-theme="light"] .l69-mini-profile__type {
    color: #b43c78;
}
[data-theme="light"] .l69-profile-progress__label {
    color: #6b7280;
}
[data-theme="light"] .l69-quick-btn {
    background: rgba(180, 60, 120, 0.06);
    border-color: rgba(180, 60, 120, 0.15);
    color: #374151;
}
[data-theme="light"] .l69-quick-btn:hover {
    background: rgba(180, 60, 120, 0.12);
    color: #1f2937;
}
/* Textos de consejos en sidebar derecho modo día */
[data-theme="light"] .l69-sidebar-card ul li {
    color: #4b5563 !important;
}
[data-theme="light"] .l69-membership-badge--trial {
    background: rgba(107,114,128,0.12);
    color: #6b7280;
    border-color: rgba(107,114,128,0.2);
}

/* ── Fix scroll horizontal global ── */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
.l69-layout {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

/* ── Layout 3 columnas ── */
.l69-layout {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 1.25rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}
.l69-sidebar--left,
.l69-sidebar--right {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
}
@media (max-width: 1100px) {
    .l69-layout {
        grid-template-columns: 220px 1fr;
    }
    .l69-sidebar--right {
        display: none;
    }
}
@media (max-width: 768px) {
    .l69-layout {
        grid-template-columns: 1fr;
    }
    .l69-sidebar--left {
        display: none;
    }
}

/* ── Layout 3 columnas gallery ── */
.l69-layout { display:grid; grid-template-columns:260px 1fr 260px; gap:1.25rem; align-items:start; max-width:1400px; margin:0 auto; padding:0 1rem; }
.l69-sidebar--left, .l69-sidebar--right { position:sticky; top:1rem; max-height:calc(100vh - 2rem); overflow-y:auto; scrollbar-width:thin; }
.l69-layout__content { min-width:0; }
@media(max-width:1100px){ .l69-layout{ grid-template-columns:220px 1fr; } .l69-sidebar--right{ display:none; } }
@media(max-width:768px){ .l69-layout{ grid-template-columns:1fr; } .l69-sidebar--left{ display:none; } }

/* ============================================================
   LOBBY69 — ALIASES DE COMPATIBILIDAD v2
   Valores directos — no dependen de --theme-* contaminado
   ============================================================ */

/* Modo día — textos oscuros sobre fondos claros */
[data-theme="light"],
:root {
  --card-bg:      #ffffff;
  --text-main:    #1a1523;
  --text-muted:   #6b7280;
  --border-light: rgba(26, 21, 35, 0.10);
  --input-bg:     #f8f7fc;
  --hover-bg:     rgba(233, 30, 140, 0.06);
  --bs-pink:      #e91e8c;
}

/* Modo noche — textos claros sobre fondos oscuros */
[data-theme="dark"] {
  --card-bg:      #1a1728;
  --text-main:    #f0eaf8;
  --text-muted:   #8a7fa0;
  --border-light: rgba(255, 255, 255, 0.08);
  --input-bg:     #221f33;
  --hover-bg:     rgba(233, 30, 140, 0.10);
  --bs-pink:      #e91e8c;
}
/* ═══════════════════════════════════════════════════════════
   DISPONIBLE HOY — Badge y Widget
   ═══════════════════════════════════════════════════════════ */

/* ── Badge inline ──────────────────────────────────────────── */
.avail-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(46, 213, 115, .15);
    border: 1px solid rgba(46, 213, 115, .4);
    color: #2ed573;
    border-radius: 20px;
    padding: .18rem .55rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
}
.avail-badge--sm { padding: .12rem .38rem; font-size: .65rem; }

.avail-badge__dot {
    width: 7px; height: 7px;
    background: #2ed573;
    border-radius: 50%;
    animation: availPulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
.avail-badge--sm .avail-badge__dot { width: 5px; height: 5px; }

@keyframes availPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.4); }
}

/* ── Sección "Disponibles ahora" en dashboard ───────────────── */
.avail-section {
    margin: 1.2rem 0 .5rem;
    padding: .8rem 1rem;
    background: var(--theme-card, #1a1a2e);
    border-radius: 14px;
    border: 1px solid rgba(46, 213, 115, .2);
}

.avail-section__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .8rem;
}

.avail-section__dot {
    width: 9px; height: 9px;
    background: #2ed573;
    border-radius: 50%;
    animation: availPulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

.avail-section__title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--theme-text, #fff);
    margin: 0;
    flex: 1;
}

.avail-section__count {
    background: rgba(46, 213, 115, .2);
    color: #2ed573;
    border-radius: 20px;
    padding: .1rem .45rem;
    font-size: .72rem;
    font-weight: 700;
}

.avail-section__list {
    display: flex;
    gap: .7rem;
    overflow-x: auto;
    padding-bottom: .3rem;
    scrollbar-width: none;
}
.avail-section__list::-webkit-scrollbar { display: none; }

/* ── Card individual ─────────────────────────────────────────── */
.avail-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    text-decoration: none;
    flex-shrink: 0;
    width: 64px;
    transition: transform .2s;
}
.avail-card:hover { transform: translateY(-2px); }

.avail-card__avatar-wrap {
    position: relative;
    width: 52px; height: 52px;
}

.avail-card__avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2ed573;
}

.avail-card__dot {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 11px; height: 11px;
    background: #2ed573;
    border: 2px solid var(--theme-card, #1a1a2e);
    border-radius: 50%;
    animation: availPulse 1.8s ease-in-out infinite;
}

.avail-card__name {
    font-size: .68rem;
    font-weight: 600;
    color: var(--theme-text, #fff);
    text-align: center;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avail-card__time {
    font-size: .62rem;
    color: #2ed573;
    font-weight: 600;
}

/* ── Botones de duración en el panel de disponibilidad ── */
.avail-duration-btn {
    display: inline-block;
    padding: .25rem .55rem;
    border-radius: 20px;
    border: 1px solid rgba(46,213,115,.3);
    color: rgba(226,217,243,.6);
    font-size: .75rem;
    font-weight: 600;
    transition: all .15s;
    user-select: none;
}
.avail-duration-radio:checked + .avail-duration-btn {
    background: rgba(46,213,115,.2);
    border-color: #2ed573;
    color: #2ed573;
}
.avail-duration-btn:hover {
    border-color: rgba(46,213,115,.6);
    color: rgba(226,217,243,.9);
}

/* ═══════════════════════════════════════════════════════════════
   DISPONIBILIDAD — estilos con soporte modo día y modo noche
   ════════════════════════════════════════════════════════════ */

/* ── Dot indicador en título ── */
.avail-dot-indicator {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--theme-muted, #9CA3AF);
    margin-right: .4rem;
    vertical-align: middle;
    flex-shrink: 0;
}
.avail-dot-indicator.is-active {
    background: #16a34a;
    animation: availPulse 1.8s ease-in-out infinite;
}
@keyframes availPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
    50%       { box-shadow: 0 0 0 5px rgba(22,163,74,0); }
}

/* ── Estado activo ── */
.avail-active-state {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.avail-active-slot {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .65rem;
    border-radius: 10px;
    background: rgba(22,163,74,.12);
    border: 1px solid rgba(22,163,74,.25);
}
.avail-slot-icon   { font-size: 1rem; line-height: 1; }
.avail-slot-text   {
    font-size: .82rem;
    font-weight: 700;
    color: #15803d;                         /* verde oscuro — legible en día */
}
[data-theme="dark"] .avail-slot-text { color: #4ade80; }

.avail-expires-label {
    font-size: .74rem;
    color: var(--theme-text-2, #4a3f5c);   /* oscuro en día, suave en noche */
    margin: 0;
}
[data-theme="dark"] .avail-expires-label { color: var(--theme-text-soft, #C4BFDA); }

.avail-message-display {
    font-size: .76rem;
    font-style: italic;
    color: var(--theme-text-3, #7c6e8a);
    margin: 0;
    padding: .35rem .55rem;
    border-left: 2px solid rgba(22,163,74,.4);
    background: rgba(22,163,74,.05);
    border-radius: 0 6px 6px 0;
}

/* ── Etiqueta del formulario ── */
.avail-form-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--theme-text, #1a1523);
    margin: 0 0 .6rem;
}
[data-theme="dark"] .avail-form-label { color: var(--theme-text-soft, #C4BFDA); }

/* ── Grid de slots ── */
.avail-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .7rem;
}

/* ── Píldora de slot ── */
.avail-slot-pill {
    cursor: pointer;
    user-select: none;
}
.avail-slot-pill input[type="radio"] { display: none; }

.avail-slot-pill__inner {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .65rem;
    border-radius: 20px;
    border: 1.5px solid var(--theme-border, rgba(0,0,0,.12));
    background: var(--theme-surface-2, #f8f5fc);
    color: var(--theme-text-2, #4a3f5c);       /* ← texto oscuro en modo día */
    font-size: .74rem;
    font-weight: 500;
    transition: all .18s ease;
    white-space: nowrap;
}

/* Hover */
.avail-slot-pill:hover .avail-slot-pill__inner {
    border-color: #16a34a;
    color: #14532d;                             /* verde muy oscuro, legible en día */
    background: rgba(22,163,74,.08);
}
[data-theme="dark"] .avail-slot-pill:hover .avail-slot-pill__inner {
    border-color: #4ade80;
    color: #4ade80;
    background: rgba(74,222,128,.1);
}

/* Seleccionado */
.avail-slot-pill input[type="radio"]:checked + .avail-slot-pill__inner {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;                             /* blanco sobre verde — ratio 7:1 */
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(22,163,74,.35);
}
[data-theme="dark"] .avail-slot-pill input[type="radio"]:checked + .avail-slot-pill__inner {
    background: #15803d;
    border-color: #4ade80;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(74,222,128,.25);
}

/* Texto e icono dentro de la píldora */
.avail-slot-pill__icon { font-size: .85rem; line-height: 1; }
.avail-slot-pill__text { line-height: 1.2; }

/* ── Input de mensaje ── */
.avail-msg-input {
    width: 100%;
    padding: .45rem .65rem;
    border-radius: 9px;
    border: 1.5px solid var(--theme-border, rgba(0,0,0,.12));
    background: var(--theme-input, #ffffff);
    color: var(--theme-text, #1a1523);         /* texto oscuro en día */
    font-size: .78rem;
    box-sizing: border-box;
    margin-bottom: .6rem;
    transition: border-color .18s;
    outline: none;
}
.avail-msg-input::placeholder {
    color: var(--theme-text-muted, #a394b0);
}
.avail-msg-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}

/* ── Fila de notificación ── */
.avail-notify-row {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    color: var(--theme-text-2, #4a3f5c);       /* legible en día */
    margin-bottom: .7rem;
    cursor: pointer;
}
[data-theme="dark"] .avail-notify-row { color: rgba(226,217,243,.75); }
.avail-notify-row input[type="checkbox"] { accent-color: #16a34a; }

/* ── Botones ── */
.avail-btn {
    width: 100%;
    padding: .55rem;
    border-radius: 9px;
    border: none;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.avail-btn:active { transform: scale(.98); }

.avail-btn--on {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(22,163,74,.3);
}
.avail-btn--on:hover { opacity: .9; }

.avail-btn__dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    animation: availPulse 1.8s ease-in-out infinite;
}

.avail-btn--off {
    background: transparent;
    border: 1.5px solid rgba(220,38,38,.4);
    color: #b91c1c;                             /* rojo oscuro — legible en día */
    font-size: .8rem;
}
[data-theme="dark"] .avail-btn--off { color: #f87171; border-color: rgba(239,68,68,.4); }
.avail-btn--off:hover { background: rgba(220,38,38,.08); }

/* ── Badge compacto (feed, perfil) ── */
.avail-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .55rem;
    border-radius: 20px;
    background: rgba(22,163,74,.12);
    border: 1px solid rgba(22,163,74,.3);
    font-size: .72rem;
    font-weight: 600;
    color: #14532d;                             /* muy oscuro, legible en día */
}
[data-theme="dark"] .avail-badge { color: #4ade80; }

.avail-badge--sm { font-size: .65rem; padding: .15rem .4rem; }

.avail-badge__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
    animation: availPulse 1.8s ease-in-out infinite;
}
.avail-badge__text { line-height: 1.2; }