/* ==========================================================================
   OmniPanel Cloud - Dedicated Tenant Portal Stylesheet
   Modern Caelestia / Fluent Glassmorphism (Responsive Desktop & Mobile)
   ========================================================================== */

:root {
  --bg-deep: #000000;
  --bg-card: rgba(14, 14, 18, 0.88);
  --bg-card-hover: rgba(22, 22, 28, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-highlight: rgba(56, 189, 248, 0.4);

  /* Pastel Accent Colors */
  --pastel-sky: #7dd3fc;
  --pastel-sky-glow: rgba(125, 211, 252, 0.25);
  --pastel-violet: #c084fc;
  --pastel-violet-glow: rgba(192, 132, 252, 0.22);
  --pastel-mint: #86efac;
  --pastel-mint-glow: rgba(134, 239, 172, 0.2);
  --pastel-peach: #fca5a5;
  --pastel-amber: #fde047;

  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --primary-glow: rgba(125, 211, 252, 0.25);

  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: #f59e0b;
  --danger: #ef4444;
  --accent-purple: #c084fc;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --transition-smooth: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(at 15% 15%, rgba(125, 211, 252, 0.08) 0px, transparent 55%),
    radial-gradient(at 85% 20%, rgba(192, 132, 252, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 85%, rgba(134, 239, 172, 0.06) 0px, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Layout Container */
.portal-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 4rem 1.25rem;
  flex: 1;
}

/* Glass Card */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: var(--transition-smooth);
}

/* Header (Sticky / Fixed at top) */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1.5rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-badge .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--pastel-sky), var(--pastel-violet));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px var(--pastel-sky-glow);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--pastel-sky);
  display: block;
  letter-spacing: 0.02em;
}

.header-user-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.active,
.status-badge.paid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.pending,
.status-badge.pending_payment,
.status-badge.pending_approval {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  min-height: 44px;
  /* WCAG touch target */
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8, var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
  box-shadow: 0 4px 14px var(--success-glow);
}

.btn-success:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-block {
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-helper {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Auth Cards */
.auth-wrapper {
  max-width: 440px;
  margin: 2rem auto;
}

.auth-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.auth-tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Plan Selection Cards */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.plan-card {
  position: relative;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
}

.plan-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.08) 0%, rgba(18, 24, 38, 0.95) 100%);
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.15);
}

.plan-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 1rem 0 0.5rem 0;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  margin: 1.5rem 0;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.plan-features li .check-icon {
  color: var(--success);
  font-weight: 700;
}

/* Payment Checkout View */
.checkout-wrapper {
  max-width: 680px;
  margin: 1.5rem auto;
}

.payment-methods-tabs {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.pm-tab-btn {
  flex: 1;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.pm-tab-btn:hover {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.15);
}

.pm-tab-btn.active {
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.bank-details-box {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.bank-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.bank-item:last-child {
  border-bottom: none;
}

.bank-item .label {
  color: var(--text-muted);
}

.bank-item .value {
  color: #fff;
  font-weight: 600;
}

/* Dashboard Summary Cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.15rem;
  transition: all 0.2s ease;
}

.metric-title {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.uptime-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.6rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-full);
  color: #10b981;
  font-size: 0.9rem;
  font-weight: 700;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-top: 0.6rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* ZIP Upload Drag & Drop Zone */
.dropzone-container {
  border: 2px dashed rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.03);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: 1.5rem;
}

.dropzone-container:hover,
.dropzone-container.dragover {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
  transform: scale(1.005);
}

.dropzone-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Radio Mode Selector */
.mode-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.mode-toggle-card {
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.7);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mode-toggle-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.mode-toggle-card.selected {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
}

.mode-toggle-card input[type="radio"] {
  margin-right: 0.5rem;
}

/* Site & DB Cards */
.items-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.item-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.item-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.item-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.item-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.item-title:hover {
  color: var(--primary);
}

.item-credentials {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.85rem;
  margin: 0.75rem 0;
}

.cred-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

/* Alert Boxes */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.alert-info {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Zenith Modern Commercial Landing & Navigation Styles
   ========================================================================== */

.header-public-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-public-nav a.nav-link,
.header-public-nav .nav-link {
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.header-public-nav a.nav-link:hover,
.header-public-nav .nav-link:hover {
  color: var(--pastel-sky) !important;
}

.btn-nav-login {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.btn-nav-login:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pastel-sky);
  color: var(--pastel-sky);
}

.btn-pastel-primary {
  background: linear-gradient(135deg, var(--pastel-sky), #818cf8);
  color: #080c14;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 16px rgba(125, 211, 252, 0.25);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-pastel-primary:hover {
  background: linear-gradient(135deg, #bae6fd, #a5b4fc);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(125, 211, 252, 0.4);
  color: #030712;
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
  min-height: 48px;
}

/* ==========================================================================
   Off-Canvas Auth Drawer (Sidebar Derecho Reactivo)
   ========================================================================== */

.auth-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: rgba(13, 19, 33, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.75);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.auth-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-badge-mini {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-icon-mini {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--pastel-sky), var(--pastel-violet));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.btn-close-drawer {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 1.1rem;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-close-drawer:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}

.drawer-body {
  padding: 1.75rem 1.5rem 2rem 1.5rem;
  flex: 1;
}

.auth-drawer-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.85);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.drawer-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.drawer-tab-btn.active {
  background: linear-gradient(135deg, var(--pastel-sky), #38bdf8);
  color: #080c14;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--pastel-sky-glow);
}

.auth-drawer-title-box {
  margin-bottom: 1.5rem;
}

.auth-drawer-title-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.auth-drawer-title-box p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Hero Section Modern (Wide, Minimalista & Flat Badges)
   ========================================================================== */

.landing-hero-modern {
  text-align: center;
  max-width: 960px;
  margin: 1.5rem auto 4rem auto;
  padding: 1.5rem 1rem 0 1rem;
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.1rem;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pastel-sky);
  margin-bottom: 1.75rem;
}

.hero-headline {
  font-size: clamp(2.4rem, 4.5vw + 0.5rem, 4.1rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.pastel-gradient {
  background: linear-gradient(135deg, var(--pastel-sky) 0%, var(--pastel-violet) 50%, var(--pastel-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  color: #94a3b8;
  max-width: 780px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Fila de Badges Planos (Flat Badges Bar) */
.hero-flat-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 920px;
  margin: 0 auto;
}

.flat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  color: #cbd5e1;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.flat-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-sky {
  background: var(--pastel-sky);
  box-shadow: 0 0 8px var(--pastel-sky-glow);
}

.dot-mint {
  background: var(--pastel-mint);
  box-shadow: 0 0 8px var(--pastel-mint-glow);
}

.dot-violet {
  background: var(--pastel-violet);
  box-shadow: 0 0 8px var(--pastel-violet-glow);
}

.dot-peach {
  background: var(--pastel-peach);
  box-shadow: 0 0 8px rgba(252, 165, 165, 0.6);
}

.dot-amber {
  background: var(--pastel-amber);
  box-shadow: 0 0 8px rgba(253, 224, 71, 0.6);
}

/* ==========================================================================
   Sections, Pricing & Services
   ========================================================================== */

.landing-section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.65rem;
}

.pastel-tag-sky {
  color: var(--pastel-sky);
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.25);
}

.pastel-tag-violet {
  color: var(--pastel-violet);
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.pastel-tag-mint {
  color: var(--pastel-mint);
  background: rgba(134, 239, 172, 0.1);
  border: 1px solid rgba(134, 239, 172, 0.25);
}

.pastel-tag-peach {
  color: var(--pastel-peach);
  background: rgba(252, 165, 165, 0.1);
  border: 1px solid rgba(252, 165, 165, 0.25);
}

.section-title {
  font-size: clamp(1.7rem, 2.7vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.6rem;
  line-height: 1.55;
}

/* Pricing Cards */
.plan-category {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.plan-card.featured {
  border-color: rgba(125, 211, 252, 0.45);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.08) 0%, rgba(18, 24, 38, 0.95) 100%);
  box-shadow: 0 0 35px rgba(125, 211, 252, 0.15);
}

.plan-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pastel-sky), var(--pastel-violet));
  color: #080c14;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pastel-price {
  color: var(--pastel-sky) !important;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-box {
  padding: 2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.service-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.icon-sky {
  background: rgba(125, 211, 252, 0.15);
  border: 1px solid rgba(125, 211, 252, 0.3);
}

.icon-violet {
  background: rgba(192, 132, 252, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.icon-mint {
  background: rgba(134, 239, 172, 0.15);
  border: 1px solid rgba(134, 239, 172, 0.3);
}

.icon-amber {
  background: rgba(253, 224, 71, 0.15);
  border: 1px solid rgba(253, 224, 71, 0.3);
}

.icon-peach {
  background: rgba(252, 165, 165, 0.15);
  border: 1px solid rgba(252, 165, 165, 0.3);
}

.feature-upcoming {
  border-style: dashed;
  border-color: rgba(192, 132, 252, 0.35);
}

.upcoming-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pastel-violet);
  background: rgba(192, 132, 252, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

/* About Us Section */
.about-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  padding: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-card {
    grid-template-columns: 1fr;
  }
}

.about-stats-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-pill {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.pastel-text-sky {
  color: var(--pastel-sky);
}

.pastel-text-mint {
  color: var(--pastel-mint);
}

.pastel-text-violet {
  color: var(--pastel-violet);
}

.stat-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* Support Section */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.support-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.support-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* Roadmap Banner */
.roadmap-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  margin-top: 2.5rem;
  padding: 2rem 2.2rem;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.1) 0%, rgba(125, 211, 252, 0.08) 100%);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: var(--radius-lg);
}

.roadmap-icon {
  font-size: 2.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.roadmap-text h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.roadmap-text p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Landing Footer */
.landing-footer {
  margin-top: 4.5rem;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 1.5rem 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--pastel-sky);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .header-public-nav .nav-link {
    display: none;
  }
}

@media (max-width: 768px) {
  .portal-container {
    padding: 5rem 0.75rem 3rem 0.75rem;
  }

  .roadmap-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .hero-flat-badges {
    gap: 0.5rem;
  }

  .mode-toggle-group {
    grid-template-columns: 1fr;
  }

  .payment-methods-tabs {
    flex-direction: column;
  }
}



/* ==========================================================================
   Dual Theme Overrides (Light Mode Adaptation)
   ========================================================================== */
[data-theme="light"] {
  --bg-deep: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --border-subtle: #e2e8f0;
  --border-highlight: rgba(37, 99, 235, 0.4);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
}

[data-theme="light"] .form-control {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .auth-tabs {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .auth-tab-btn {
  color: #64748b;
}

[data-theme="light"] .auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .plan-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .plan-card.featured {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .bank-details-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .bank-item {
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .dropzone-container {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] #zip-drop-text {
  color: #0f172a !important;
}

[data-theme="light"] .mode-toggle-card {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .mode-toggle-card.selected {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

[data-theme="light"] .metric-box {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .site-item,
[data-theme="light"] .db-item {
  background: #ffffff;
  border-color: #e2e8f0;
}


/* ==========================================================================
   Refined Auth Card & UX Styles (Per rediseño.md)
   ========================================================================== */

/* 1. Suavizado y Contraste de las Pestañas de Autenticación */
.auth-tabs {
  display: flex !important;
  gap: 0.35rem;
  background: rgba(18, 18, 24, 0.75) !important;
  padding: 0.3rem !important;
  border-radius: 10px !important;
  /* Suavizar el redondeado para armonizar con la tarjeta */
  margin-bottom: 1.5rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8 !important;
  /* Alto contraste para que sea intuitivo que es interactivo */
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-tab-btn:hover {
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(99, 102, 241, 0.22) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.2) !important;
}

/* Modo Claro para las Pestañas */
[data-theme="light"] .auth-tabs {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .auth-tab-btn {
  color: #64748b !important;
}

[data-theme="light"] .auth-tab-btn:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .auth-tab-btn.active {
  background: #ffffff !important;
  color: #0284c7 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* 2. Jerarquía de Textos en Formularios (13px, font-weight: 500, #94a3b8) */
.form-label {
  display: block;
  font-size: 0.82rem !important;
  /* ~13px */
  font-weight: 500 !important;
  color: #94a3b8 !important;
  /* Gris claro elegante */
  margin-bottom: 0.45rem !important;
  letter-spacing: 0.01em;
}

[data-theme="light"] .form-label {
  color: #64748b !important;
}

/* 3. Input Wrapper para Ver Contraseña */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-wrapper .form-control {
  padding-right: 2.85rem !important;
}

.btn-toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.15s ease;
  z-index: 2;
  border-radius: 4px;
}

.btn-toggle-password:hover {
  color: #38bdf8;
  transform: translateY(-50%) scale(1.08);
}

[data-theme="light"] .btn-toggle-password {
  color: #64748b;
}

[data-theme="light"] .btn-toggle-password:hover {
  color: #0284c7;
}

/* 4. Enlace de Contraseña Olvidada */
.forgot-password-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: #38bdf8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.forgot-password-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

[data-theme="light"] .forgot-password-link {
  color: #0284c7;
}

[data-theme="light"] .forgot-password-link:hover {
  color: #0369a1;
}

/* ==========================================================================
   Secondary Buttons High-Contrast & Dynamic Interactive Submit Button
   ========================================================================== */

/* Botón de toggle en el label de contraseña */
.btn-label-toggle-pass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: #f1f5f9 !important;
  cursor: pointer;
  padding: 0.15rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.btn-label-toggle-pass:hover {
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.15);
}

[data-theme="light"] .btn-label-toggle-pass {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155 !important;
}

[data-theme="light"] .btn-label-toggle-pass:hover {
  color: #0284c7 !important;
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}

/* Alto contraste en pestañas secundarias en modo oscuro */
.auth-tab-btn {
  color: #f1f5f9 !important;
  /* Alto contraste nítido sobre fondo oscuro */
  font-weight: 600;
}

.auth-tab-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="light"] .auth-tab-btn {
  color: #475569 !important;
}

[data-theme="light"] .auth-tab-btn:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

/* Alto contraste en botones secundarios (Volver al Sitio Web, outline, etc.) */
.btn-back-delicate {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  font-size: 0.88rem;
  font-weight: 550 !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-back-delicate:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-1px);
}

.btn-outline {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  font-weight: 550 !important;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-1px);
}

[data-theme="light"] .btn-back-delicate {
  color: #0f172a !important;
  background: transparent !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .btn-back-delicate:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: #94a3b8 !important;
}

[data-theme="light"] .btn-outline {
  color: #0f172a !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .btn-outline:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}

/* Botón Principal: Estado Inactivo (Gris Básico) vs Estado Listo (Azul con Degradado) */
.btn-auth-submit {
  width: 100%;
  background: #27272a !important;
  /* Gris neutro básico */
  color: #a1a1aa !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.82rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  opacity: 0.85;
}

.btn-auth-submit:hover {
  background: #323238 !important;
  color: #d4d4d8 !important;
  box-shadow: none !important;
  transform: none !important;
}

[data-theme="light"] .btn-auth-submit {
  background: #e2e8f0 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .btn-auth-submit:hover {
  background: #cbd5e1 !important;
  color: #334155 !important;
}

.auth-btn-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Cuando se llenan los campos, vuelve al color azul / degradado corporativo */
.btn-auth-submit.is-ready {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4), 0 2px 8px rgba(99, 102, 241, 0.28) !important;
  opacity: 1 !important;
  transform: translateY(0);
}

.btn-auth-submit.is-ready:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #4f46e5 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 26px rgba(14, 165, 233, 0.5), 0 4px 14px rgba(99, 102, 241, 0.38) !important;
  color: #ffffff !important;
}

.btn-auth-submit.is-ready:hover .auth-btn-icon {
  transform: scale(1.1);
}

.btn-auth-submit.is-ready:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.3) !important;
}

/* ==========================================================================
   PORTAL 2.0: MODULAR HUB NAVIGATION & CLOUD CONSOLE
   ========================================================================== */

.portal-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.portal-nav-tabs::-webkit-scrollbar {
  display: none;
}

.portal-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.portal-nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.portal-nav-tab.active {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
}

.pill-balance {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.pill-count {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
}

/* ==========================================================================
   BILLETERA & CRÉDITOS HERO CARD
   ========================================================================== */

.wallet-hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.85rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.75) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.wallet-hero-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.wallet-balance-amount {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.wallet-balance-bs {
  font-size: 1rem;
  font-weight: 500;
  color: #34d399;
}

.wallet-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Selector de Ciclos con Descuentos */
.cycle-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.cycle-pill-btn {
  flex: 1 1 auto;
  min-width: 110px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.cycle-pill-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.cycle-pill-btn.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.cycle-pill-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.cycle-pill-off {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  margin-top: 0.2rem;
}

/* Tabla de Recibos y Comprobantes */
.receipts-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.receipts-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.receipts-table th {
  background: rgba(15, 23, 42, 0.8);
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.receipts-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.receipts-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Modal de Comprobante Digital (Proforma) */
.receipt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.receipt-sheet {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  color: #f8fafc;
}

.receipt-stamp-paid {
  display: inline-block;
  border: 2px solid #10b981;
  color: #10b981;
  padding: 0.25rem 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(-4deg);
}

.receipt-disclaimer-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 1.5rem;
}

/* Soporte Tickets */
.tickets-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ticket-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
}

.ticket-item-row:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(56, 189, 248, 0.4);
}

/* Asistente Flotante Gemini AI */
.ai-fab-button {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(2, 132, 199, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 990;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-fab-button:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.55);
}

.ai-chat-window {
  position: fixed;
  bottom: 5.75rem;
  right: 1.75rem;
  width: 380px;
  max-width: calc(100vw - 2.5rem);
  height: 520px;
  max-height: calc(100vh - 7.5rem);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  z-index: 995;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.25s ease forwards;
}

[data-theme="light"] .ai-chat-window {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-chat-header {
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="light"] .ai-chat-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.ai-chat-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

[data-theme="light"] .ai-chat-title {
  color: #0f172a;
}

.ai-chat-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ai-chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-bubble-assistant,
.ai-bubble-bot {
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px 14px 14px 2px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  max-width: 88%;
  line-height: 1.45;
}

[data-theme="light"] .ai-bubble-assistant,
[data-theme="light"] .ai-bubble-bot {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.ai-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border-radius: 14px 14px 2px 14px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #ffffff;
  max-width: 88%;
  line-height: 1.45;
}

.ai-chat-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface);
}

[data-theme="light"] .ai-chat-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.ai-chat-footer input {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

[data-theme="light"] .ai-chat-footer input {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

@media print {
  body * {
    visibility: hidden;
  }

  .receipt-sheet,
  .receipt-sheet * {
    visibility: visible;
  }

  .receipt-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    color: #000000 !important;
    background: #ffffff !important;
  }
}


/* ==========================================================================
   ALEXHOST-STYLE CLOUD CONSOLE ARCHITECTURE (DESKTOP & MOBILE)
   ========================================================================== */

.console-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg-deep);
  position: relative;
}

/* Sidebar */
.console-sidebar {
  width: 250px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}

.console-sidebar.collapsed {
  width: 72px;
}

.console-sidebar.collapsed .sidebar-header {
  padding: 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.console-sidebar.collapsed .sidebar-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.console-sidebar.collapsed .brand-logo-collapsed {
  display: block !important;
  width: 32px;
  height: 32px;
  margin: 0 auto;
}

.console-sidebar.collapsed .btn-sidebar-collapse {
  margin: 0 auto;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.console-sidebar.collapsed .btn-sidebar-collapse svg {
  transform: rotate(180deg);
}

.btn-sidebar-collapse svg {
  transition: transform 0.25s ease;
}

.console-sidebar.collapsed .sidebar-text,
.console-sidebar.collapsed .sidebar-section-title,
.console-sidebar.collapsed .sidebar-badge-count {
  display: none !important;
}

.console-sidebar.collapsed .sidebar-nav {
  padding: 0.75rem 0.4rem;
}

.console-sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 0.75rem 0;
  margin: 0.25rem 0;
  border-radius: var(--radius-md);
  position: relative;
}

.console-sidebar.collapsed .sidebar-link .sidebar-icon {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tooltips para iconos en sidebar colapsado */
.console-sidebar.collapsed .sidebar-link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  z-index: 1000;
}

.console-sidebar.collapsed .sidebar-link:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.console-sidebar.collapsed .sidebar-footer {
  padding: 0.75rem 0.4rem;
}

.console-sidebar.collapsed .sidebar-footer .sidebar-link {
  justify-content: center;
  padding: 0.75rem 0;
}

.console-sidebar.collapsed .sidebar-brand-name {
  display: none !important;
}

.sidebar-header {
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
}

.sidebar-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #ffffff;
  font-size: 1rem;
}

.sidebar-brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.btn-sidebar-collapse {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-sidebar-collapse:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav {
  padding: 1rem 0.75rem;
  flex: 1;
}

.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.85rem 0.65rem 0.35rem 0.65rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  margin-bottom: 0.2rem;
  background: transparent;
  width: 100%;
  text-align: left;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  font-weight: 600;
}

.sidebar-link .sidebar-icon {
  font-size: 1.15rem;
  min-width: 24px;
  text-align: center;
}

.sidebar-badge-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
}

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

/* Console Main & Topbar */
.console-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

.console-topbar {
  height: 64px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.35rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-balance-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.topbar-balance-pill:hover {
  background: rgba(16, 185, 129, 0.18);
  transform: translateY(-1px);
}

.topbar-user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-size: 0.85rem;
  color: var(--text-primary);
}

.console-stage {
  flex: 1;
  padding: 1.75rem 2rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* Service Detail Console (AlexHost Style) */
.service-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-hero-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.service-domain-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.service-meta-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.service-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-subtabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1px;
}

.service-subtab-btn {
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.service-subtab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.service-subtab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(56, 189, 248, 0.08);
}

/* Direct Checkout Modal Styles */
.checkout-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.checkout-direct-card {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-direct-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.checkout-direct-card.active {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 0 2px var(--primary);
}

.checkout-method-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.checkout-method-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.checkout-method-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.bcv-rate-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Off-canvas Drawer Mobile */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 49;
}

@media (max-width: 768px) {
  .console-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: none;
  }

  .console-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
  }

  .drawer-backdrop.active {
    display: block;
  }

  .topbar-hamburger {
    display: block;
  }

  .console-stage {
    padding: 1rem 0.85rem;
  }

  .service-hero-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-methods-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   HIGH-CONTRAST LIGHT MODE REFINEMENTS (WCAG AAA)
   ========================================================================== */

[data-theme="light"] .console-layout {
  background-color: #f8fafc;
}

[data-theme="light"] .console-sidebar {
  background-color: #ffffff;
  border-right-color: #e2e8f0;
}

[data-theme="light"] .console-topbar {
  background-color: #ffffff;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .sidebar-link {
  color: #475569;
}

[data-theme="light"] .sidebar-link:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .sidebar-link.active {
  background-color: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

[data-theme="light"] .service-hero-card,
[data-theme="light"] .metric-box,
[data-theme="light"] .glass-panel,
[data-theme="light"] .checkout-direct-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .service-subtab-btn {
  color: #64748b;
}

[data-theme="light"] .service-subtab-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

[data-theme="light"] .service-subtab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
  background: #e0f2fe;
}

[data-theme="light"] .topbar-user-pill {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .portal-section {
  color: #0f172a;
}

/* ==========================================================================
   SLEEK THEME TOGGLE BUTTON & ICONS
   ========================================================================== */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  padding: 0;
  outline: none;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* En modo oscuro, mostrar icono de luna */
[data-theme="dark"] .light-icon {
  display: none !important;
}

[data-theme="dark"] .dark-icon {
  display: inline-flex !important;
}

/* En modo claro, mostrar icono de sol */
[data-theme="light"] .light-icon {
  display: inline-flex !important;
}

[data-theme="light"] .dark-icon {
  display: none !important;
}

[data-theme="light"] .theme-toggle-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

/* Banner de Tasa BCV Oficial en Billetera & Facturación */
.bcv-billing-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  gap: 1rem;
}

@media (max-width: 640px) {
  .bcv-billing-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

[data-theme="light"] .bcv-billing-banner {
  background: #fffbeb !important;
  border-color: #fde68a !important;
}

/* ==========================================================================
   ALEXHOST / FLUENT SERVICE METRICS GRID (4-COL DESKTOP, 2X2 MOBILE)
   ========================================================================== */
.service-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  width: 100%;
  margin-top: 1rem;
}

.service-metric-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.service-metric-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4);
}

.service-metric-card:hover::before {
  opacity: 1;
}

.metric-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.metric-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.metric-card-icon {
  font-size: 1.05rem;
  opacity: 0.85;
}

.metric-card-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.metric-card-value.text-emerald {
  color: #10b981;
}

.metric-card-value.text-sky {
  color: #38bdf8;
}

.metric-card-value.text-indigo {
  color: #818cf8;
}

.metric-card-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.metric-card-sub.text-emerald {
  color: #10b981;
}

.pulse-dot-inline {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

/* ==========================================================================
   MODAL ARCHITECTURE (CENTRAL DIALOG, BACKDROP BLUR, FLUENT GLASSMORPHISM)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: modalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-dialog {
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopIn 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 90vh;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: scale(1.05);
}

.modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* ==========================================================================
   CHECKOUT MODAL: PLAN & CYCLE PILLS (OLED FLUENT / LIGHT MODE AAA)
   ========================================================================== */
.cycle-pills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.cycle-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-secondary);
  font-family: inherit;
  text-align: center;
  user-select: none;
  min-height: 54px;
  outline: none;
}

.cycle-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.cycle-pill:active {
  transform: scale(0.98);
}

.cycle-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(37, 99, 235, 0.22) 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3), inset 0 0 12px rgba(56, 189, 248, 0.15);
  transform: translateY(-1px);
}

.cycle-pill .cycle-name {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
}

.cycle-pill .cycle-discount {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.25);
  line-height: 1.2;
}

.cycle-pill.active .cycle-discount {
  background: #38bdf8;
  color: #030712;
  border-color: #38bdf8;
  box-shadow: 0 2px 6px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   CHECKOUT SUMMARY CARD
   ========================================================================== */
.checkout-summary-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}

/* ==========================================================================
   CHECKOUT PAYMENT METHOD CARDS (PROFESSIONAL MICRO-ANIMATIONS)
   ========================================================================== */
.checkout-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 0.85rem 0 1.25rem 0;
}

.checkout-direct-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 0.65rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  outline: none;
  user-select: none;
}

.checkout-direct-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px -4px rgba(0, 0, 0, 0.5);
}

.checkout-direct-card:active {
  transform: scale(0.97);
}

.checkout-direct-card.active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px #38bdf8, 0 8px 24px rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.checkout-method-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-direct-card:hover .checkout-method-icon-box {
  transform: scale(1.12);
}

.checkout-direct-card.active .checkout-method-icon-box {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.checkout-method-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.checkout-method-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.checkout-direct-card.active .checkout-method-sub {
  color: #38bdf8;
  font-weight: 600;
}

/* ==========================================================================
   QUICK ACTIONS & SERVER SPECS (SUBTAB VISIÓN GENERAL)
   ========================================================================== */
.quick-action-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-action-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.3);
}

.quick-action-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.quick-action-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.25;
}

.quick-action-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.server-specs-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.server-spec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.server-spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */
@media (max-width: 900px) {
  .service-metrics-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .checkout-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hide-mobile {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .service-metrics-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .service-metric-card {
    padding: 0.85rem 0.9rem;
  }

  .metric-card-value {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   LIGHT MODE OVERRIDES (WCAG AAA HIGH CONTRAST)
   ========================================================================== */
[data-theme="light"] .service-metric-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .service-metric-card:hover {
  background: #f8fafc;
  border-color: #38bdf8;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .modal-overlay {
  background: rgba(15, 23, 42, 0.5);
}

[data-theme="light"] .modal-dialog {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

[data-theme="light"] .modal-header {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .modal-header h3 {
  color: #0f172a;
}

[data-theme="light"] .btn-close-modal {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

[data-theme="light"] .btn-close-modal:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

[data-theme="light"] .cycle-pill {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .cycle-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .cycle-pill.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.18);
}

[data-theme="light"] .cycle-pill .cycle-discount {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .cycle-pill.active .cycle-discount {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

[data-theme="light"] .checkout-summary-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .checkout-direct-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .checkout-direct-card:hover {
  background: #f8fafc;
  border-color: #38bdf8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .checkout-direct-card.active {
  background: #f0f9ff;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px #0284c7, 0 6px 18px rgba(2, 132, 199, 0.18);
}

[data-theme="light"] .checkout-method-icon-box {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .checkout-direct-card.active .checkout-method-icon-box {
  background: #e0f2fe;
  border-color: #bae6fd;
}

[data-theme="light"] .checkout-direct-card.active .checkout-method-sub {
  color: #0284c7;
}

[data-theme="light"] .quick-action-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .quick-action-card:hover {
  background: #f8fafc;
  border-color: #0284c7;
}

[data-theme="light"] .server-specs-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .server-spec-item {
  border-bottom-color: #e2e8f0;
}

/* ==========================================================================
   DB ENGINE SELECTOR & MODAL CREATION STYLES
   ========================================================================== */
.db-engines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .db-engines-grid {
    grid-template-columns: 1fr;
  }
}

.db-engine-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.db-engine-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.4);
}

.db-engine-card.active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px #38bdf8, 0 6px 20px rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.db-engine-icon {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.db-engine-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.db-engine-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.db-engine-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.db-engine-badge.included {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.db-engine-badge.locked {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.engine-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 14, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  cursor: not-allowed;
  z-index: 5;
}

/* Tooltip / Aviso de PayPal < $5 */
.paypal-min-tooltip {
  font-size: 0.68rem;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 4px;
  padding: 0.3rem 0.45rem;
  margin-top: 0.35rem;
  line-height: 1.25;
}

/* Light Theme Overrides para Nuevos Componentes */
[data-theme="light"] .db-engine-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .db-engine-card:hover {
  background: #f8fafc;
  border-color: #38bdf8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .db-engine-card.active {
  background: #f0f9ff;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px #0284c7, 0 6px 18px rgba(2, 132, 199, 0.18);
}

[data-theme="light"] .engine-lock-overlay {
  background: rgba(248, 250, 252, 0.92);
}

[data-theme="light"] .dns-promo-panel {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06) 0%, rgba(99, 102, 241, 0.04) 100%) !important;
  border-color: #bae6fd !important;
}

/* =========================================================================
   UTILITIES & TAILWIND REPLACEMENT CLASSES
   ========================================================================= */
.hidden { display: none !important; }
@media (min-width: 640px) {
  .sm\:inline { display: inline !important; }
}

/* =========================================================================
   SIDEBAR BRAND LOGO (FULL LOGO & COLLAPSED ICON SUPPORT)
   ========================================================================= */
.sidebar-brand-img,
.brand-logo-full {
  transition: opacity 0.2s ease;
}
.brand-logo-collapsed {
  display: none !important;
}

.console-sidebar.collapsed .brand-logo-full {
  display: none !important;
}
.console-sidebar.collapsed .brand-logo-collapsed {
  display: block !important;
}

[data-theme="light"] .brand-dark-only {
  display: none !important;
}
[data-theme="light"] .brand-light-only {
  display: block !important;
}
[data-theme="dark"] .brand-dark-only {
  display: block !important;
}
[data-theme="dark"] .brand-light-only {
  display: none !important;
}

/* =========================================================================
   ADD-ONS (SERVICIOS ADICIONALES EN CHECKOUT)
   ========================================================================= */
.addons-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.65rem;
}

.addon-option-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.addon-option-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.85);
}

.addon-option-card input[type="checkbox"] {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.addon-option-info {
  flex: 1;
}

.addon-option-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.addon-option-desc {
  font-size: 0.71rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.2;
}

.addon-option-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: #38bdf8;
  white-space: nowrap;
}

[data-theme="light"] .addon-option-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .addon-option-card:hover {
  border-color: #0284c7;
  background: #f8fafc;
}

[data-theme="light"] .addon-option-price {
  color: #0284c7;
}

/* =========================================================================
   LIGHT THEME CONTRAST REFINEMENTS (WCAG AAA)
   ========================================================================= */
[data-theme="light"] .receipts-table th {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .receipts-table td {
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .receipts-table tr:hover td {
  background: #f8fafc !important;
}

[data-theme="light"] .wallet-hero-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .wallet-balance-amount {
  color: #0f172a !important;
}

/* =========================================================================
   AI CHAT TYPING ANIMATION (CLEAN CSS)
   ========================================================================= */
.ai-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* =========================================================================
   ALEXHOST 2-COLUMN SERVICE CONSOLE GRID
   ========================================================================= */
.service-console-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.service-nav-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 80px;
}

[data-theme="light"] .service-nav-panel {
  background: #ffffff;
  border-color: #e2e8f0;
}

.service-nav-group-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.75rem 0.65rem 0.25rem 0.65rem;
}

.service-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  transform: translateX(2px);
}

[data-theme="light"] .service-nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.service-nav-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15);
}

[data-theme="light"] .service-nav-item.active {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #0284c7;
}

.service-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

.service-workspace-content {
  min-width: 0;
}

/* Adaptación Mobile-First */
@media (max-width: 860px) {
  .service-console-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-nav-panel {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem;
    gap: 0.5rem;
    border-radius: var(--radius-md);
  }

  .service-nav-group-title {
    display: none;
  }

  .service-nav-item {
    white-space: nowrap;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  .service-nav-item:hover {
    transform: none;
  }
}
