/* ==========================================================================
   NAMASTÉ - PANEL DE AUDITORÍA Y CONTROL ADMINISTRATIVO
   Diseño ultra-compacto, minimalista y profesional.
   Muestra solo lo indispensable a simple vista para la dueña del Shala.
   ========================================================================== */

.admin-view {
  min-height: 100vh;
  background-color: var(--bg-canvas, #FBF8F3);
  color: var(--text-primary, #2A2421);
  display: flex;
  flex-direction: column;
}

/* --- Barra Superior Ultra Compacta --- */
.admin-navbar {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle, #E8E2D9);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.admin-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-brand-group {
  display: flex;
  align-items: center;
}

.admin-brand-group .brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-brand-group .brand-icon-img {
  width: 40px;
  height: 40px;
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-medium, #D5CCC0);
  background-color: var(--sand-50, #FAF7F2);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast, 0.2s);
  color: var(--text-primary, #2A2421);
  flex-shrink: 0;
}

.admin-hamburger-btn:hover {
  background-color: #EDE5DA;
  border-color: var(--terracotta, #C56A4B);
  color: var(--terracotta, #C56A4B);
}

.admin-hamburger-bar {
  width: 16px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.btn-admin-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid var(--border-medium, #D5CCC0);
  background-color: #FFFFFF;
  color: var(--text-primary, #2A2421);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s);
}

.btn-admin-nav.btn-primary-action {
  background-color: var(--terracotta, #C56A4B);
  color: #FFFFFF;
  border-color: var(--terracotta, #C56A4B);
}

.btn-admin-nav.btn-primary-action:hover {
  background-color: var(--terracotta-dark, #A04E30);
  border-color: var(--terracotta-dark, #A04E30);
}

/* --- Resumen de KPIs Ultra Compacto --- */
.admin-kpis-compact-section {
  padding: 0.75rem 0 0.4rem 0;
}

.admin-kpis-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.admin-mini-kpi {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle, #E8E2D9);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color var(--transition-fast, 0.2s);
}

.admin-mini-kpi:hover {
  border-color: var(--border-medium, #D5CCC0);
}

.mini-kpi-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #7A7067);
}

.mini-kpi-val-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.mini-kpi-number {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #2A2421);
  line-height: 1.1;
}

.mini-kpi-sub {
  font-size: 0.7rem;
  color: var(--text-secondary, #5C524C);
}

.mini-kpi-plans {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  margin-top: 0.1rem;
}

.kpi-mini-pill {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.08rem 0.35rem;
  border-radius: var(--radius-pill, 9999px);
  background-color: var(--sand-100, #ECE3D8);
  color: var(--text-secondary, #5C524C);
}

/* --- Pestañas Simplificadas --- */
.admin-tabs-section {
  padding-bottom: 2rem;
}

.admin-tabs-section .container,
.admin-kpis-compact-section .container {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.admin-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  border-bottom: 1.5px solid var(--border-subtle, #E8E2D9);
  margin: 0 auto 1.35rem auto;
  max-width: 600px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.admin-tabs-nav::-webkit-scrollbar {
  display: none;
}

.admin-tab-btn {
  background: none;
  border: none;
  padding: 0.65rem 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary, #5C524C);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all var(--transition-fast, 0.2s);
}

.admin-tab-btn span {
  white-space: nowrap !important;
}

.admin-tab-btn:hover {
  color: var(--terracotta, #B65E42);
}

.admin-tab-btn.active {
  color: var(--terracotta-dark, #8E3E28);
  border-bottom-color: var(--terracotta, #B65E42);
  font-weight: 700;
}

.admin-tab-count-badge {
  background-color: #F0EAE1;
  color: #5C524C;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.48rem;
  border-radius: var(--radius-pill, 9999px);
}

.admin-tab-btn.active .admin-tab-count-badge {
  background-color: #F8EFE9;
  color: #9C4B2E;
  font-weight: 700;
}

/* --- Tarjeta Contenedora Unificada de Tablas (Estilo Editorial Zen) --- */
.admin-table-card {
  background-color: #FFFFFF;
  border: 1px solid #EDE6DD;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(42, 36, 33, 0.06), 0 2px 6px rgba(42, 36, 33, 0.02);
  overflow: hidden;
  margin: 0 auto 2rem auto;
  max-width: 600px;
  width: 100%;
  padding: 1.25rem 1.15rem 0.65rem 1.15rem;
  box-sizing: border-box;
}

/* --- Barra de Filtros Compacta e Integrada --- */
.admin-toolbar-card {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 1rem 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.admin-search-wrap {
  position: relative;
  width: 100%;
}

.admin-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.45rem;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid #EAE2D7;
  background-color: #FAF8F5;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-primary, #2A2421);
  outline: none;
  transition: all var(--transition-fast, 0.2s);
  box-sizing: border-box;
}

.admin-search-input::placeholder {
  color: #A3968B;
  font-size: 0.82rem;
}

.admin-search-input:focus {
  background-color: #FFFFFF;
  border-color: var(--terracotta, #B65E42);
  box-shadow: 0 0 0 3px rgba(182, 94, 66, 0.1);
}

.admin-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9C8E82;
  pointer-events: none;
  transition: color 0.2s ease;
}

.admin-search-wrap:focus-within .admin-search-icon {
  color: var(--terracotta, #B65E42);
}

.admin-filter-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

.admin-filter-group::-webkit-scrollbar {
  display: none;
}

.admin-filter-pill {
  flex-shrink: 0;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid #EAE3D9;
  background-color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6C5F56;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}

.admin-filter-pill:hover {
  background-color: #FAF7F2;
  color: #2A2421;
  border-color: #D8CCC0;
}

.admin-filter-pill.active {
  background-color: var(--terracotta, #B65E42);
  color: #FFFFFF;
  border-color: var(--terracotta, #B65E42);
  box-shadow: 0 3px 10px rgba(182, 94, 66, 0.28);
  font-weight: 600;
}

/* --- Tabla de Alumnas y Gestión con Estilo Zen Editorial --- */
.admin-table-container {
  background-color: transparent;
  border: none;
  border-radius: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-shadow: none;
}

.admin-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  text-align: left;
}

.admin-table thead tr {
  background-color: #FAF7F2;
}

.admin-table th:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  padding-left: 0.85rem;
}

.admin-table th:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  padding-right: 0.85rem;
}

.admin-table th {
  background-color: #FAF7F2;
  padding: 0.65rem 0.65rem;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8C7B70;
  border: none;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid #F3EEE7;
  vertical-align: middle;
}

.admin-table td:first-child {
  padding-left: 0.85rem;
}

.admin-table td:last-child {
  padding-right: 0.85rem;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-user-row {
  transition: background-color var(--transition-fast, 0.15s);
}

.admin-user-row:hover {
  background-color: rgba(247, 242, 236, 0.55);
}

.admin-user-row.expanded {
  background-color: rgba(247, 242, 236, 0.8);
}

.col-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-clean-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1E1B18;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.col-user-plan {
  text-align: center;
}

.col-user-status {
  text-align: center;
}

.col-user-action {
  text-align: center;
}

/* Badges de Plan */
.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-badge.plan-esencia {
  background-color: #EDF6EF;
  color: #226E40;
  border: 1px solid rgba(34, 110, 64, 0.12);
}

.plan-badge.plan-refugio,
.plan-badge.plan-santuario {
  background-color: #FDF1EA;
  color: #A04A26;
  border: 1px solid rgba(160, 74, 38, 0.12);
}

.plan-badge.plan-sadhana {
  background-color: #F6EEF8;
  color: #783A85;
  border: 1px solid rgba(120, 58, 133, 0.12);
}

/* Badges de Estado */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.22rem 0.68rem;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.status-badge.active {
  background-color: #EAF5EE;
  color: #1B6338;
  border: none;
}

.status-badge.active .status-dot {
  background-color: #2E9457;
  box-shadow: none;
}

.status-badge.paused {
  background-color: #FDF5EB;
  color: #96540A;
  border: none;
}

.status-badge.paused .status-dot {
  background-color: #C87A1E;
}

.status-badge.pending {
  background-color: #FFF3E0;
  color: #B25E00;
  border: none;
}

.status-badge.pending .status-dot {
  background-color: #E65100;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

/* Badges de Formato (Video / Audio) */
.format-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.18rem 0.52rem;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.format-badge.video {
  background-color: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid rgba(29, 78, 216, 0.15);
}

.format-badge.audio {
  background-color: #FDF2F8;
  color: #9D174D;
  border: 1px solid rgba(157, 23, 77, 0.15);
}

/* Botón Circular Flechita para Detalles */
.btn-arrow-only {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #EBE4DA;
  background-color: #FAF7F2;
  color: #7A6A5E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  margin: 0 auto;
}

.btn-arrow-only:hover {
  background-color: #F0EAE1;
  color: #2A2421;
  border-color: #D8CCC0;
}

.btn-arrow-only .arrow-icon {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-user-row.expanded .btn-arrow-only .arrow-icon,
.btn-arrow-only.expanded .arrow-icon {
  transform: rotate(180deg);
}

/* --- Fila Expandible Ultra-Simplificada (Estilo Zen Refinado con Inter) --- */
.admin-user-details-row td {
  padding: 0 0.5rem 0.65rem 0.5rem !important;
  border-top: none !important;
  background-color: rgba(245, 239, 235, 0.45);
}

.user-expanded-card-simplified {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #FCFBF9;
  border: 1px solid #E8E0D5;
  border-left: 3.5px solid var(--terracotta, #B65E42);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  box-shadow: 0 3px 12px rgba(42, 36, 33, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  animation: adminRowExpand 0.18s ease-out;
}

@keyframes adminRowExpand {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.quick-details-grid {
  font-family: 'Inter', sans-serif;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.45rem 0.85rem;
}

.quick-detail-item {
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.4;
  overflow: hidden;
}

.qd-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #8C7E74;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.qd-val {
  font-family: 'Inter', sans-serif;
  color: #221D1A;
  font-weight: 600;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Código Resaltado Prominente */
.code-copy-btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  border: 1.5px solid #E59F82;
  background: linear-gradient(135deg, #FFF3EC 0%, #FEEBE0 100%);
  font-family: 'Inter', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: #A03E1D;
  cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(182, 94, 66, 0.16);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.code-copy-btn-mini:hover {
  background: #FFFFFF;
  border-color: #B65E42;
  color: #B65E42;
  box-shadow: 0 3px 8px rgba(182, 94, 66, 0.26);
  transform: translateY(-1px);
}

.code-copy-btn-mini svg {
  width: 12px;
  height: 12px;
  color: #B65E42;
}

/* Botón de Recibo Compacto (Solo Icono) */
.btn-receipt-icon-only {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  border: 1px solid #D8CFC8 !important;
  background-color: #FFFFFF !important;
  color: #7A6C62 !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-receipt-icon-only:hover {
  background-color: #B65E42 !important;
  color: #FFFFFF !important;
  border-color: #B65E42 !important;
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 3px 8px rgba(182, 94, 66, 0.28);
}

.btn-receipt-icon-only svg {
  pointer-events: none;
}

.badge-pending-compact {
  display: inline-block;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 99px;
  background: rgba(180, 80, 70, 0.12);
  color: #B45046;
  white-space: nowrap;
}

.quick-actions-row {
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.55rem;
  border-top: 1px solid #EBE4DA;
}

.mini-btn {
  font-family: 'Inter', sans-serif;
  padding: 0.25rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid #D8CFC3;
  background-color: #FFFFFF;
  color: #2A2421;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(42, 36, 33, 0.04);
}

.mini-btn:hover {
  background-color: #F8F4EE;
  border-color: #9C8E82;
  color: #1A1512;
  box-shadow: 0 2px 6px rgba(42, 36, 33, 0.08);
}

.mini-btn.btn-pause-toggle:hover {
  border-color: var(--terracotta, #B65E42);
  color: var(--terracotta-dark, #A04E30);
}

.mini-btn.danger {
  color: #DC2626;
  background-color: #FFF5F5;
  border-color: #FCA5A5;
  margin-left: auto;
}

.mini-btn.danger:hover {
  background-color: #FEE2E2;
  border-color: #EF4444;
  color: #B91C1C;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.18);
}

/* --- Tablas del Admin (Layout Fijo para evitar desbordes móviles) --- */
.admin-users-table,
.admin-classes-table,
.admin-transactions-table {
  width: 100% !important;
  table-layout: fixed !important;
}

.col-tx-amount {
  white-space: nowrap !important;
}

.receipt-code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--terracotta-dark, #A04E30);
  background-color: var(--sand-50, #F5EFEB);
  border: 1px solid var(--border-subtle, #E8E2D9);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

/* --- Menú Lateral / Admin Drawer --- */
.admin-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(36, 30, 26, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 310px;
  max-width: 86vw;
  height: 100%;
  background-color: #FAF7F2;
  box-shadow: -8px 0 32px rgba(42, 36, 33, 0.16);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid var(--border-medium, #D5CCC0);
  z-index: 1101;
}

.admin-drawer-backdrop.active .admin-drawer {
  transform: translateX(0);
}

.admin-drawer-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #ECE4DA;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #FFFFFF;
}

.admin-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #E2D9CE;
  background-color: #FAF7F2;
  color: #6C5F56;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-drawer-close-btn:hover {
  background-color: var(--terracotta, #B65E42);
  border-color: var(--terracotta, #B65E42);
  color: #FFFFFF;
}

.admin-drawer-body {
  padding: 1.25rem 1rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.admin-drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-drawer-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9C8E82;
  padding: 0 0.5rem;
}

.admin-drawer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-drawer-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary, #2A2421);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.admin-drawer-nav-btn:hover {
  background-color: #EDE5DA;
  color: #1A1512;
  border-color: #E2D9CE;
}

.admin-drawer-nav-btn.active {
  background-color: #FFFFFF;
  color: var(--terracotta-dark, #A04E30);
  border-color: rgba(182, 94, 66, 0.25);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(42, 36, 33, 0.05);
}

.admin-drawer-nav-btn svg {
  color: #8C7E74;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.admin-drawer-nav-btn:hover svg,
.admin-drawer-nav-btn.active svg {
  color: var(--terracotta, #B65E42);
}

.admin-drawer-footer {
  padding: 0.9rem 1rem;
  border-top: 1px solid #ECE4DA;
  background-color: #FFFFFF;
}

.admin-drawer-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #FECACA;
  background-color: #FFF5F5;
  color: #DC2626;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.admin-drawer-logout-btn:hover {
  background-color: #FEE2E2;
  border-color: #EF4444;
  color: #B91C1C;
}

/* --- Modales de Administración --- */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(36, 32, 30, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-modal-backdrop.active {
  display: flex;
}

.admin-modal-dialog {
  background-color: #FFFFFF;
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  animation: adminModalPop 0.2s ease-out;
}

@keyframes adminModalPop {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.admin-modal-header {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle, #E8E2D9);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  color: var(--text-primary, #2A2421);
}

.admin-modal-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Responsive Adaptations */
@media (max-width: 900px) {
  .admin-kpis-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .admin-tabs-section .container,
  .admin-kpis-compact-section .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .admin-tabs-nav {
    gap: 1.15rem;
    margin-bottom: 1.1rem;
  }
  .admin-tab-btn {
    font-size: 0.9rem;
    padding: 0.55rem 0.2rem;
  }
  .admin-table-card {
    padding: 1.1rem 0.9rem 0.5rem 0.9rem;
    border-radius: 18px;
  }
  .admin-kpis-compact-grid {
    grid-template-columns: 1fr;
  }
  .quick-details-grid {
    grid-template-columns: 1fr;
  }
  .quick-actions-row .mini-btn.danger {
    margin-left: 0;
  }
  .admin-table th {
    padding: 0.55rem 0.45rem;
    font-size: 0.65rem;
  }
  .admin-table th:first-child {
    padding-left: 0.65rem;
  }
  .admin-table th:last-child {
    padding-right: 0.65rem;
  }
  .admin-table td {
    padding: 0.75rem 0.45rem;
  }
  .admin-table td:first-child {
    padding-left: 0.65rem;
  }
  .admin-table td:last-child {
    padding-right: 0.65rem;
  }
  .user-clean-name {
    font-size: 0.88rem;
    font-weight: 700;
  }
  .plan-badge {
    padding: 0.18rem 0.55rem;
    font-size: 0.6rem;
  }
  .status-badge {
    padding: 0.18rem 0.58rem;
    font-size: 0.68rem;
  }
  .format-badge {
    padding: 0.16rem 0.48rem;
    font-size: 0.62rem;
  }
  .btn-arrow-only {
    width: 28px;
    height: 28px;
  }
  .btn-arrow-only svg {
    width: 12px;
    height: 12px;
  }
  .admin-transactions-table th,
  .admin-transactions-table td {
    padding: 0.55rem 0.2rem;
  }
  .btn-print-tx-receipt.btn-receipt-icon-only {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }
  .btn-print-tx-receipt.btn-receipt-icon-only svg {
    width: 12px;
    height: 12px;
  }
  .col-tx-amount {
    white-space: nowrap;
    padding-right: 0.15rem !important;
  }
  .tx-amount-number {
    font-size: 0.76rem;
  }
  .tx-amount-freq {
    font-size: 0.58rem;
  }
}

/* --- Modal Background Lock & Scroll Behavior --- */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
  overscroll-behavior: contain;
}

.admin-modal-dialog {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  touch-action: pan-y;
}

.admin-modal-body {
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* --- Editor de Video & Audio Mobile-First --- */
.media-editor-container {
  background: var(--sand-50, #FAF8F5);
  border: 1px solid var(--border-subtle, #E8E2D9);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-sizing: border-box;
}

.editor-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.editor-file-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
}

.editor-file-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary, #2A2421);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.editor-btn-change {
  background: #FFFFFF;
  border: 1px solid var(--border-medium, #D5CCC0);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary, #6B625B);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast, 0.15s ease);
}

.editor-btn-change:hover {
  border-color: var(--color-terracotta, #B86240);
  color: var(--color-terracotta, #B86240);
}

.editor-section-card {
  background: #FFFFFF;
  border: 1px solid rgba(232, 226, 217, 0.8);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.editor-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.editor-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary, #2A2421);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.editor-badge-info {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--sand-100, #F3EFEA);
  color: var(--color-terracotta, #B86240);
  font-weight: 600;
}

/* Range Sliders Mobile Friendly */
.editor-slider-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.editor-slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-secondary, #6B625B);
}

.editor-slider-val {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary, #2A2421);
}

.editor-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E8E2D9;
  outline: none;
  cursor: pointer;
  margin: 0.2rem 0;
}

.editor-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-terracotta, #B86240);
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.1s ease;
}

.editor-range-slider::-webkit-slider-thumb:hover,
.editor-range-slider::-webkit-slider-thumb:active {
  transform: scale(1.15);
}

.editor-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-terracotta, #B86240);
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Presets Pills */
.editor-pills-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.editor-pill-btn {
  background: var(--sand-50, #FAF8F5);
  border: 1px solid var(--border-medium, #D5CCC0);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary, #6B625B);
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s ease);
}

.editor-pill-btn:hover {
  border-color: var(--color-terracotta, #B86240);
  color: var(--color-terracotta, #B86240);
}

.editor-pill-btn.active {
  background: var(--color-terracotta, #B86240);
  border-color: var(--color-terracotta, #B86240);
  color: #FFFFFF;
}

/* Audio Wave Visualizer */
.editor-audio-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: #24201E;
  color: #FFFFFF;
  border-radius: 8px;
}

.editor-audio-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-terracotta, #B86240);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast, 0.15s ease);
}

.editor-audio-play-btn:hover {
  transform: scale(1.06);
}

.editor-wave-anim {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  flex: 1;
}

.editor-wave-bar {
  width: 3px;
  height: 6px;
  background: #E8B982;
  border-radius: 2px;
  transition: height 0.2s ease;
}

.editor-audio-bar.playing .editor-wave-bar:nth-child(1) { animation: waveBounce 0.6s infinite ease-in-out alternate; }
.editor-audio-bar.playing .editor-wave-bar:nth-child(2) { animation: waveBounce 0.4s infinite ease-in-out alternate 0.1s; }
.editor-audio-bar.playing .editor-wave-bar:nth-child(3) { animation: waveBounce 0.7s infinite ease-in-out alternate 0.2s; }
.editor-audio-bar.playing .editor-wave-bar:nth-child(4) { animation: waveBounce 0.5s infinite ease-in-out alternate 0.15s; }
.editor-audio-bar.playing .editor-wave-bar:nth-child(5) { animation: waveBounce 0.8s infinite ease-in-out alternate 0.25s; }
.editor-audio-bar.playing .editor-wave-bar:nth-child(6) { animation: waveBounce 0.4s infinite ease-in-out alternate 0.05s; }
.editor-audio-bar.playing .editor-wave-bar:nth-child(7) { animation: waveBounce 0.6s infinite ease-in-out alternate 0.3s; }

@keyframes waveBounce {
  0% { height: 4px; }
  100% { height: 18px; }
}

.editor-audio-time-badge {
  font-size: 0.72rem;
  font-family: monospace;
  color: #D5CCC0;
}

/* Portada Preview Card (Sin duplicados) */
.thumb-unified-card {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-medium, #D5CCC0);
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 120px;
}

.thumb-unified-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.thumb-unified-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
}

.thumb-unified-badge {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary, #2A2421);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.thumb-unified-btn {
  background: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-terracotta, #B86240);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.15s ease;
}

.thumb-unified-btn:hover {
  transform: scale(1.05);
}



/* ========================================================================
   SECCIÓN: GESTIÓN DE PLANES & MEMBRESÍAS (REDISEÑO PULIDO & ALINEADO)
   ======================================================================== */

.admin-plans-management-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light, #E8DFD5);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  box-shadow: 0 2px 10px rgba(42, 36, 33, 0.04);
  box-sizing: border-box;
  width: 100%;
  overflow: visible;
}

@media (min-width: 576px) {
  .admin-plans-management-card {
    padding: 1.5rem 1.35rem;
  }
}

/* Atajo rápido: PLANES arriba y 3 planes debajo en fila horizontal - Diseño Premium Segmented */
.admin-plans-switcher-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #FBF8F3 0%, #F5EFE6 100%);
  border: 1px solid #E6DCD1;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(42, 36, 33, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  box-sizing: border-box;
  width: 100%;
}

.admin-plans-switcher-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  color: #7A695E;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-left: 0.2rem;
  line-height: 1;
}

.admin-plans-switcher-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--terracotta, #B65E42);
}

.admin-plans-switcher-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  background: rgba(228, 219, 208, 0.45);
  padding: 0.3rem;
  border-radius: 999px;
  box-sizing: border-box;
  border: 1px solid rgba(210, 198, 185, 0.5);
}

.admin-plan-switch-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.52rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  color: #5C4E45;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
  user-select: none;
}

.admin-plan-switch-pill:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
  color: #2A2421;
}

.admin-plan-switch-pill.active {
  background: linear-gradient(135deg, #BE674B 0%, #A65237 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(166, 82, 55, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.admin-plan-switch-pill .pill-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.admin-plan-switch-pill.active .pill-num {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.admin-plan-switch-pill .pill-title {
  letter-spacing: 0.01em;
}

.admin-plan-switch-pill .pill-star {
  color: #E29A32;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.admin-plan-switch-pill.active .pill-star {
  color: #FFDE99;
}

/* Grilla de Planes */
.admin-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .admin-plans-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0.4rem 0.4rem 1.1rem 0.4rem;
    margin-left: -0.4rem;
    margin-right: -0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #DCCFBF transparent;
  }
  .admin-plan-card {
    min-width: 290px;
    width: 86vw;
    max-width: 345px;
    scroll-snap-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
  }
}

.admin-plan-card {
  background-color: #FAF7F2;
  border: 1.5px solid #E5DCD0;
  border-radius: 12px;
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

.admin-plan-card.recommended {
  border-color: var(--color-olive, #5B6B46);
  background-color: #FCFAF6;
  box-shadow: 0 4px 14px rgba(91, 107, 70, 0.09);
}

.admin-plan-card:hover {
  border-color: #CFC1B0;
  box-shadow: 0 6px 16px rgba(42, 36, 33, 0.08);
}

.admin-plan-card.recommended:hover {
  border-color: var(--color-olive-dark, #485637);
}

.admin-plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ECE3D8;
}

.admin-plan-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--terracotta, #B65E42);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-plan-card.recommended .admin-plan-step-num {
  background: var(--color-olive, #5B6B46);
}

.admin-plan-name-tag {
  font-family: var(--font-heading, "EB Garamond", serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #2A2421);
  margin: 0;
  line-height: 1.2;
}

.admin-plan-badge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background-color: #ECE4D8;
  color: #4A3E36;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.admin-plan-badge-pill.popular {
  background-color: var(--color-olive, #5B6B46);
  color: #FFFFFF;
}

/* Campos de Formulario */
.admin-plan-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-plan-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4F433C;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
}

.admin-plan-field label span.field-hint {
  font-size: 0.68rem;
  font-weight: 500;
  color: #8C7E74;
  text-transform: none;
}

.admin-plan-field input,
.admin-plan-field textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #DCCFBF;
  border-radius: 7px;
  background-color: #FFFFFF;
  font-size: 0.86rem;
  color: #2A2421;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.admin-plan-field input:focus,
.admin-plan-field textarea:focus {
  border-color: var(--color-olive, #5B6B46);
  box-shadow: 0 0 0 3px rgba(91, 107, 70, 0.14);
}

/* Fila de Precios Aligned */
.admin-plan-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.admin-price-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.admin-price-prefix {
  position: absolute;
  left: 0.65rem;
  color: #7A6C62;
  font-weight: 600;
  font-size: 0.88rem;
  pointer-events: none;
  z-index: 1;
}

.admin-price-input-wrap input {
  padding-left: 1.55rem;
  padding-right: 0.5rem;
  font-weight: 700;
  color: #2A2421;
  font-size: 0.88rem;
}

/* Enlaces Mercado Pago */
.admin-mp-input-wrap {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  width: 100%;
}

.admin-mp-input-wrap input {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  padding: 0.48rem 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.admin-btn-test-link {
  padding: 0.48rem 0.7rem;
  background-color: #ECE3D7;
  border: 1px solid #D5C8B8;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #3E322B;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.admin-btn-test-link:hover {
  background-color: #DFD3C4;
  color: #1F1713;
}

/* Beneficios Punto por Punto */
.admin-features-list-points {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-feature-point-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #FFFFFF;
  border: 1.5px solid #DCCFBF;
  border-radius: 7px;
  padding: 0.25rem 0.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-feature-point-row:focus-within {
  border-color: var(--color-olive, #5B6B46);
  box-shadow: 0 0 0 2px rgba(91, 107, 70, 0.12);
}

.admin-feature-point-row .feature-bullet-check {
  color: var(--color-olive, #5B6B46);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.admin-feature-point-row input.plan-feature-input {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  padding: 0.25rem 0.35rem;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--text-primary, #2A2421);
  box-shadow: none !important;
}

.admin-feature-point-row input.plan-feature-input:focus {
  outline: none;
  border: none;
}

.btn-remove-feature-point {
  background: none;
  border: none;
  font-size: 1.15rem;
  line-height: 1;
  color: #A3968B;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
}

.btn-remove-feature-point:hover {
  color: #C0392B;
  background-color: rgba(192, 57, 43, 0.08);
}

.btn-add-feature-point {
  background: none;
  border: none;
  color: var(--terracotta, #B65E42);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.btn-add-feature-point:hover {
  color: var(--terracotta-dark, #9C4B32);
  text-decoration: underline;
}

/* Barra de Acciones y Guardado */
.admin-plans-actions-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid #ECE3D8;
  gap: 1rem;
}

.admin-plans-save-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2D5A1E;
}

.admin-plans-save-status .status-icon-check {
  font-size: 0.95rem;
  color: #2D5A1E;
}

.admin-plans-btn-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-save-plans {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  background-color: var(--terracotta, #B65E42);
  color: #FFFFFF;
  border: 1px solid var(--terracotta-dark, #9C4B32);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-save-plans:hover {
  background-color: var(--terracotta-dark, #9C4B32);
  box-shadow: 0 4px 10px rgba(182, 94, 66, 0.25);
}

.btn-save-plans:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}


