/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
@layer properties;
.collapse {
  visibility: collapse;
}
.visible {
  visibility: visible;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.relative {
  position: relative;
}
.static {
  position: static;
}
.container {
  width: 100%;
}
.block {
  display: block;
}
.contents {
  display: contents;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.inline-block {
  display: inline-block;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.flex-shrink {
  flex-shrink: 1;
}
.flex-grow {
  flex-grow: 1;
}
.border-collapse {
  border-collapse: collapse;
}
.transform {
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
}
.cursor-pointer {
  cursor: pointer;
}
.resize {
  resize: both;
}
.flex-wrap {
  flex-wrap: wrap;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overflow-hidden {
  overflow: hidden;
}
.border {
  border-style: var(--tw-border-style);
  border-width: 1px;
}
.text-center {
  text-align: center;
}
.text-end {
  text-align: end;
}
.text-right {
  text-align: right;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.outline {
  outline-style: var(--tw-outline-style);
  outline-width: 1px;
}
.filter {
  filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
}
.backdrop-filter {
  backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
}
.transition {
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
  transition-timing-function: var(--tw-ease, ease);
  transition-duration: var(--tw-duration, 0s);
}
.select-all {
  -webkit-user-select: all;
  -moz-user-select: all;
       user-select: all;
}
:root {
  --primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --primary-solid: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
  --success: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --warning: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --danger: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: rgba(0, 0, 0, 0.08);
  --bg-primary: var(--slate-50);
  --bg-secondary: #ffffff;
  --bg-tertiary: var(--slate-100);
  --text-primary: var(--slate-900);
  --text-secondary: var(--slate-800);
  --text-muted: var(--slate-600);
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition-fast: 0.1s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 0 4px rgba(79, 70, 229, 0.06);
  --glass-blur: 12px;
  --glass-opacity: 0.1;
  --glass-reflect: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
}
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-md);
}
.glass-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.premium-gradient {
  background: var(--primary);
  color: white;
}
.premium-card {
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
}
.premium-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--glass-reflect);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.premium-card:hover::after {
  opacity: 0.2;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--slate-200);
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 10px 0 30px var(--glass-shadow);
}
.main-content {
  margin-left: 240px;
  min-height: 100vh;
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
}
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--slate-50);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-solid);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
}
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.875rem;
}
.nav-item:hover {
  background: var(--slate-50);
  color: var(--text-secondary);
}
.nav-item.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}
.nav-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  opacity: 0.8;
}
.nav-item.active svg {
  color: #ffffff !important;
  opacity: 1;
}
.nav-item.has-submenu {
  position: relative;
  display: flex;
  justify-content: space-between;
}
.nav-item.has-submenu .chevron-icon {
  margin-left: auto;
  transition: transform var(--transition-base);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.nav-item.has-submenu.expanded .chevron-icon {
  transform: rotate(180deg);
}
.submenu-container {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding-left: 12px;
}
.submenu-container.expanded {
  max-height: 500px;
  margin-bottom: 8px;
}
.submenu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.8125rem;
  font-weight: 500;
}
.submenu-item:hover {
  color: var(--text-secondary);
  background: var(--slate-50);
}
.submenu-item.active {
  color: #4f46e5;
  font-weight: 600;
}
.submenu-item svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  min-height: 44px;
  position: sticky;
  top: 10px;
  z-index: 50;
}
.header-left {
  display: flex;
  flex-direction: column;
}
.page-title {
  font-size: 1.1rem;
  font-weight: 850;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.search-box {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  min-width: 300px;
  transition: all var(--transition-base);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}
.search-box:focus-within {
  border-color: var(--primary-solid);
  box-shadow: var(--shadow-glow), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}
.search-box svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-box input {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 100%;
  font-size: 0.95rem;
  font-weight: 500;
}
.search-box input::-moz-placeholder {
  color: var(--text-muted);
}
.search-box input::placeholder {
  color: var(--text-muted);
}
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23475569%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%276 9 12 15 18 9%27%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  transition: all var(--transition-base);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.form-select:hover {
  border-color: #94a3b8;
  background-color: #f8fafc;
}
.form-select:focus {
  outline: none;
  border-color: var(--primary-solid);
  box-shadow: var(--shadow-glow);
  background-color: var(--bg-secondary);
}
button {
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
  filter: brightness(1.1);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  padding: 9px 23px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-premium {
  background: var(--primary) !important;
  background-image: var(--primary) !important;
  color: white !important;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 10;
}
.btn-premium:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.45);
}
.btn-text {
  background: transparent;
  border: none;
  color: #4f46e5;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.btn-text:hover {
  background: rgba(79, 70, 229, 0.05);
  color: #4338ca;
}
.content-view {
  display: none;
}
.content-view.active {
  display: block;
  animation: fadeIn var(--transition-base);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sidebar-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--glass-border);
}
.user-profile {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-avatar svg {
  width: 20px;
  height: 20px;
  stroke: white;
}
.user-info {
  display: flex;
  flex-direction: column;
}
.user-name {
  font-weight: 600;
  font-size: 0.875rem;
}
.user-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.btn-icon {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
}
.btn-icon:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}
.btn-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: white;
  font-size: 0.70rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 90;
  animation: fadeIn 0.3s ease;
}
@media (max-width: 640px) {
  .modal-content {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
  }
  .modal-header {
    padding: 1rem !important;
  }
  .modal-body {
    padding: 1rem !important;
    flex: 1;
    overflow-y: auto;
  }
  .modal-footer {
    padding: 1rem !important;
    flex-direction: column;
    gap: 10px;
  }
  .modal-footer button {
    width: 100%;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
    width: 280px !important;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 1rem !important;
    padding-top: 75px !important;
  }
  .mobile-header {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    z-index: 1000;
    padding: 0 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  .view-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    min-height: auto !important;
    padding: 1.25rem !important;
    position: relative !important;
    top: 0 !important;
    margin-bottom: 1.25rem !important;
  }
  .header-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .search-box {
    min-width: 100% !important;
    height: 44px;
  }
}
@media (max-width: 640px) {
  .page-title {
    font-size: 1.25rem !important;
  }
  .page-subtitle {
    font-size: 0.75rem !important;
  }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0.75rem !important;
    padding-top: 75px !important;
  }
  .sidebar {
    width: 85% !important;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-header.error-header {
  background: linear-gradient(135deg, #ef4444 0%, #be123c 100%);
  color: white;
  padding: 24px;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header.error-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.modal-header.error-header .close-btn {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
.modal-header.error-header .close-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(90deg);
}
.error-alert-box {
  background: #fff1f2;
  border-left: 4px solid #f43f5e;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.error-alert-label {
  display: block;
  font-size: 0.70rem;
  text-transform: uppercase;
  color: #be123c;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.error-alert-message {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #881337;
  line-height: 1.5;
}
.error-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.error-stat-item {
  background: #f8fafc;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.error-stat-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
.error-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
.error-stat-value.danger {
  color: #e11d48;
}
.btn-error-action {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
  transition: all 0.3s ease;
}
.btn-error-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.4);
}
.modal-header.payment-header {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: white;
  padding: 24px;
  border-bottom: none;
}
.modal-header.payment-header h3 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 800;
}
.modal-header.payment-header .close-btn {
  color: rgba(255, 255, 255, 0.8);
}
.modal-header.payment-header .close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.input-premium {
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.input-premium:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.input-premium:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  background: #ffffff;
}
.input-with-icon {
  position: relative;
  width: 100%;
}
.input-with-icon .icon {
  pointer-events: none;
  transition: color 0.3s ease;
}
.input-with-icon input:focus+.icon,
.input-with-icon input:focus~.icon {
  color: #4f46e5 !important;
}
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px;
}
.search-results-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.search-result-item {
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}
.search-result-item:hover {
  background: #f1f5f9;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item .client-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.search-result-item .client-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}
.search-result-item .client-meta {
  font-size: 0.8rem;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}
.search-result-item .client-badge {
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.search-results-dropdown::-webkit-scrollbar {
  width: 6px;
}
.search-results-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.search-results-dropdown::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.search-results-dropdown::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}
.modal.active .modal-content {
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#payment-modal .modal-body {
  height: 500px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}
#payment-search-results {
  flex: 1;
  overflow-y: auto;
  margin-top: 10px;
}
.financial-clock-premium {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.clock-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.clock-date {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  text-transform: capitalize;
  margin-top: 2px;
}
.income-breakdown-container {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.income-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  padding: 8px;
}
.method-item {
  padding: 10px !important;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}
.method-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.5);
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.method-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.method-info {
  display: flex;
  flex-direction: column;
}
.method-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.02em;
}
.method-amount {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  margin-top: 0;
}
.method-card.cash .method-icon {
  background: #dcfce7;
  color: #166534;
}
.method-card.cash:hover {
  border-color: #22c55e;
}
.method-card.transfer .method-icon {
  background: #e0f2fe;
  color: #0369a1;
}
.method-card.transfer:hover {
  border-color: #3b82f6;
}
.method-card.usd .method-icon {
  background: #fef9c3;
  color: #854d0e;
}
.method-card.usd:hover {
  border-color: #eab308;
}
.method-card.cards .method-icon {
  background: #f3e8ff;
  color: #7e22ce;
}
.method-card.cards:hover {
  border-color: #a855f7;
}
.payments-list-.table-container-premium {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}
.premium-data-table thead {
  background: linear-gradient(to right, #f8fafc, #f1f5f9) !important;
  border-bottom: 2px solid #e2e8f0 !important;
}
.premium-data-table th {
  color: var(--slate-800) !important;
  font-weight: 800 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 18px 20px !important;
}
.premium-data-table tr {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.premium-data-table tr:nth-child(even) {
  background-color: rgba(248, 250, 252, 0.5) !important;
}
.premium-data-table tr:hover {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 1) 100%) !important;
  box-shadow: inset 4px 0 0 var(--primary-solid), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  transform: translateX(4px) !important;
}
.premium-data-table th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-bottom: 2px solid #e2e8f0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 0.75rem !important;
  color: #475569 !important;
  padding: 18px 20px !important;
}
.premium-data-table td {
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
}
.payments-list-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.payments-list-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e2e8f0;
}
.payments-list-table td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.client-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.action-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.action-btn i {
  font-size: 1.05rem !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) !important;
}
.action-btn.history {
  background: linear-gradient(145deg, #818cf8, #4f46e5) !important;
}
.action-btn.pay {
  background: linear-gradient(145deg, #34d399, #059669) !important;
}
.action-btn.edit {
  background: linear-gradient(145deg, #60a5fa, #2563eb) !important;
}
.action-btn.suspend {
  background: linear-gradient(145deg, #fbbf24, #d97706) !important;
}
.action-btn.delete {
  background: linear-gradient(145deg, #f87171, #dc2626) !important;
}
.action-btn:hover {
  transform: translateY(-4px) scale(1.15) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  filter: brightness(1.1) !important;
  z-index: 10 !important;
}
.action-btn:active {
  transform: translateY(0) scale(0.95) !important;
}
.client-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #475569;
}
.client-info .client-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}
.client-info .client-code {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}
.badge-status-table {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.badge-status-table.verified {
  background: #dcfce7;
  color: #166534;
}
.badge-status-table.pending {
  background: #fef9c3;
  color: #854d0e;
}
.status-badge-table.online {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  font-weight: 800 !important;
}
.status-badge-table.offline {
  background: rgba(148, 163, 184, 0.1) !important;
  color: #475569 !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
}
.badge-status-table.failed {
  background: #fee2e2;
  color: #991b1b;
}
.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-main-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.result-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.result-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}
.result-sub-row {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 12px;
}
.result-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.badge-premium {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-premium i {
  font-size: 0.65rem;
}
.badge-premium.status-active {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.badge-premium.status-suspended {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.badge-premium.router {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}
.badge-premium.plan {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}
.badge-premium.zone {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}
.segmented-control {
  display: flex;
  padding: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  gap: 4px;
}
.segment-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.segment-btn:hover {
  color: var(--primary-color);
  background: rgba(var(--primary-rgb), 0.05);
}
.segment-btn.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}
.module-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
  margin-top: 10px;
}
.module-tabs .tab-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  outline: none;
}
.module-tabs .tab-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
}
.module-tabs .tab-btn:focus {
  outline: none;
}
.module-tabs .tab-btn.active {
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 600;
}
.module-tabs .tab-btn i {
  font-size: 1rem;
}
.clients-toolbar .filter-item label {
  font-size: 0.8rem !important;
  margin-bottom: 6px !important;
}
.clients-toolbar .select-premium,
.clients-toolbar .input-premium {
  padding: 12px 16px !important;
  height: 48px !important;
  font-size: 1rem !important;
}
.clients-toolbar .btn-icon {
  width: 48px !important;
  height: 48px !important;
}
.clients-toolbar .btn-premium {
  height: 48px !important;
  font-size: 1.05rem !important;
}
.premium-data-table td {
  padding: 12px 20px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 0.8rem !important;
  color: #334155 !important;
}
.client-real-name {
  font-weight: 700 !important;
  color: #1e293b !important;
  font-size: 0.85rem !important;
  display: block !important;
}
.client-code {
  font-size: 0.65rem !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
}
.ip-premium-badge span {
  font-weight: 700 !important;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace !important;
  font-size: 0.75rem !important;
}
.mac-text-mini {
  font-size: 0.6rem !important;
  color: #94a3b8 !important;
}
.router-name {
  font-weight: 700 !important;
  color: #475569 !important;
  font-size: 0.75rem !important;
}
.collector-tag {
  font-size: 0.65rem !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.balance-amount {
  font-size: 0.9rem !important;
  font-weight: 800 !important;
}
.plan-bold {
  font-weight: 800 !important;
  color: #1e293b !important;
  font-size: 0.8rem !important;
}
.traffic-item {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
}
.clients-header-wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 24px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
  min-height: 60px !important;
}
.client-stats-bar {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
}
.stat-pill {
  padding: 8px 16px !important;
  border-radius: 12px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.3s ease !important;
  background: white !important;
}
.stat-pill:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05) !important;
}
.stat-pill i {
  font-size: 1rem !important;
}
.stat-pill.total {
  color: #6366f1 !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
  background: rgba(99, 102, 241, 0.05) !important;
}
.stat-pill.active {
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
  background: rgba(16, 185, 129, 0.05) !important;
}
.stat-pill.online {
  color: #3b82f6 !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
  background: rgba(59, 130, 246, 0.05) !important;
}
.stat-pill.offline {
  color: #94a3b8 !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  background: rgba(148, 163, 184, 0.05) !important;
}
.stat-pill.warning {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
  background: rgba(239, 68, 68, 0.05) !important;
}
.stat-pill:hover.total {
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3) !important;
}
.stat-pill:hover.active {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3) !important;
}
.stat-pill:hover.online {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3) !important;
}
.stat-pill:hover.warning {
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3) !important;
}
@media (max-width: 1100px) {
  .clients-header-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
}
.bulk-actions-bar {
  padding: 10px 24px !important;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98)) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  animation: fadeInScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 60px !important;
  display: none;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  border-top: 2px solid rgba(255, 255, 255, 0.05) !important;
  z-index: 1000 !important;
}
.bulk-actions-bar.active {
  display: flex !important;
}
@keyframes fadeInScaleUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.bulk-info {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white !important;
}
.selected-badge {
  background: var(--primary-solid) !important;
  color: white !important;
  padding: 2px 10px !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4) !important;
}
.selected-text {
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  opacity: 0.8 !important;
}
.bulk-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.select-premium-mini {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  outline: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.select-premium-mini option {
  background-color: #1e293b !important;
  color: white !important;
}
.select-premium-mini:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--primary-solid) !important;
}
.btn-premium-mini {
  background: var(--primary-solid) !important;
  color: white !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3) !important;
}
.btn-premium-mini:hover {
  transform: translateY(-2px) scale(1.1) !important;
  filter: brightness(1.1) !important;
}
.btn-secondary-mini {
  background: rgba(255, 255, 255, 0.05) !important;
  color: white !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}
.btn-secondary-mini:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border-color: #f87171 !important;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.btn-icon-action {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.btn-icon-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.btn-icon-action i {
  font-size: 0.95rem;
}
.btn-success-icon {
  background: #10b981 !important;
  color: white !important;
}
.btn-success-icon:hover {
  background: #059669 !important;
}
.btn-danger-icon {
  background: #ef4444 !important;
  color: white !important;
}
.btn-danger-icon:hover {
  background: #dc2626 !important;
}
.btn-premium-icon {
  background: #6366f1 !important;
  color: white !important;
}
.btn-premium-icon:hover {
  background: #4f46e5 !important;
}
.btn-warning-icon {
  background: #f59e0b !important;
  color: white !important;
}
.btn-warning-icon:hover {
  background: #d97706 !important;
}
.btn-secondary-icon {
  background: #64748b !important;
  color: white !important;
}
.btn-secondary-icon:hover {
  background: #475569 !important;
}
.date-range-minimalist {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.date-range-minimalist input[type="date"] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  min-width: 105px;
  width: 105px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background-image: none !important;
}
.date-range-minimalist input::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
  opacity: 0;
}
.date-range-minimalist .input-minimal {
  position: relative;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  outline: none;
  display: flex;
  align-items: center;
}
.clients-toolbar .toolbar-group {
  flex-wrap: nowrap !important;
}
div.swal2-container {
  z-index: 10000 !important;
}
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    width: 260px;
    box-shadow: none;
  }
  .sidebar.active {
    transform: translateX(0);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    backdrop-filter: blur(2px);
  }
  .sidebar-overlay.active {
    display: block;
  }
  .mobile-header {
    display: flex !important;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 16px !important;
  }
  .charts-grid {
    grid-template-columns: 1fr !important;
  }
  .tech-metric-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #router-details-modal .form-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 768px) {
  .main-content {
    padding: 12px !important;
  }
  .view-header {
    margin-bottom: 16px;
  }
  .view-header .page-title {
    font-size: 1.1rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .stat-card {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .stat-value {
    font-size: 1.1rem;
  }
  .stat-icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .stat-icon-circle i {
    font-size: 0.8rem;
  }
  .chart-card {
    padding: 14px;
  }
  .chart-container {
    height: 200px !important;
  }
  .card-header h3 {
    font-size: 0.95rem;
  }
  .table-responsive,
    .table-container,
    .premium-data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-overlay .modal-content,
    .premium-compact-modal {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  .modal-body {
    max-height: calc(100vh - 140px) !important;
    overflow-y: auto !important;
  }
  .modal-header {
    padding: 16px 20px !important;
  }
  .modal-body-compact {
    padding: 10px 16px 20px !important;
  }
  .modal-footer {
    padding: 16px 20px !important;
  }
  .date-range-minimalist {
    flex-wrap: wrap;
    gap: 6px;
  }
  .sidebar-footer {
    padding: 12px 16px;
  }
  .user-info .user-name {
    font-size: 0.8rem;
  }
  .user-info .user-role {
    font-size: 0.7rem;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  .stat-card {
    flex-direction: row;
    align-items: center;
  }
  .mobile-header {
    padding: 10px 14px !important;
  }
  .mobile-header .logo-text {
    font-size: 1rem;
  }
  .sub-pill {
    font-size: 0.6rem;
    padding: 1px 4px;
  }
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  backdrop-filter: blur(2px);
}
@media screen and (max-width: 1100px) {
  html,
    body {
    overflow-x: hidden !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  main.main-content,
    .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    position: relative !important;
    padding: 16px !important;
  }
  div#dashboard-view {
    width: 100% !important;
    margin: 0 !important;
  }
}
@media screen and (max-width: 1100px) {
  *,
    *::before,
    *::after {
    box-sizing: border-box !important;
  }
  .main-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    padding: 12px !important;
    overflow: hidden;
  }
  .sidebar {
    display: none !important;
  }
  .sidebar.active {
    display: flex !important;
  }
  .mobile-header {
    width: 100% !important;
    left: 0 !important;
    margin: 0 !important;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
}
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}
.reports-stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
@media (max-width: 768px) {
  .reports-premium-header {
    padding: 15px !important;
  }
  .reports-toolbar-premium {
    grid-template-columns: 1fr !important;
  }
  .reports-stats-container {
    grid-template-columns: 1fr !important;
  }
}
.expenses-card-premium {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.expenses-card-premium .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.expenses-card-premium .expense-monto {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ef4444;
}
.expenses-card-premium .expense-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.8rem;
  color: #64748b;
}
.servers-status {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 25px !important;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 12px;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.elegant-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  padding: 8px 0 !important;
}
@media (max-width: 1200px) {
  .elegant-list {
    grid-template-columns: 1fr !important;
  }
}
.elegant-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}
.elegant-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06) !important;
  border-color: #cbd5e1 !important;
}
.router-name-premium {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  cursor: pointer;
}
.router-name-premium:hover {
  color: #4f46e5;
}
.router-ip-premium {
  color: #94a3b8;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
.router-cli-count {
  font-size: 0.95rem;
  font-weight: 800;
  color: #6366f1;
}
.router-cli-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 2px;
}
.router-mini-card {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
}
.router-mini-card:hover {
  filter: brightness(0.95);
  transform: scale(1.05);
}
.router-mini-card.active {
  background: #e0f2fe;
  color: #0369a1;
}
.router-mini-card.online {
  background: #dcfce7;
  color: #15803d;
}
.router-mini-card.offline {
  background: #fee2e2;
  color: #b91c1c;
}
.router-mini-card.alert-pulse {
  animation: critical-pulse 1.5s infinite;
}
@keyframes critical-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}
.router-mini-card i {
  font-size: 0.6rem;
}
.router-alert-icon {
  color: #ef4444;
  font-size: 0.9rem;
  cursor: pointer;
  animation: pulse-danger 2s infinite;
}
@keyframes pulse-danger {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.elegant-item:hover .router-mini-card {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.premium-data-table th.sortable {
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
}
.premium-data-table th.sortable:hover {
  background: rgba(79, 70, 229, 0.05);
  color: #4f46e5;
}
.premium-data-table th.sortable .sort-icon {
  margin-left: 8px;
  font-size: 0.75rem;
  opacity: 0.3;
  transition: all 0.2s ease;
}
.premium-data-table th.sortable:hover .sort-icon {
  opacity: 0.6;
}
.premium-data-table th.sortable.active {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.03);
}
.premium-data-table th.sortable.active .sort-icon {
  opacity: 1;
  color: #4f46e5;
}
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 0 0 20px 20px;
  border-top: 1px solid #f1f5f9;
}
.pagination-info {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}
.pagination-info span {
  color: #1e293b;
  font-weight: 700;
}
.pagination-actions {
  display: flex;
  gap: 8px;
}
.btn-pagination {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-pagination:hover:not(:disabled) {
  border-color: #6366f1;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-1px);
}
.btn-pagination:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f8fafc;
}
.btn-pagination.active {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  margin-right: 6px;
}
.status-dot-pulse.online {
  background: #10b981;
}
.status-dot-pulse.offline {
  background: #94a3b8;
}
.status-dot-pulse.online::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: inherit;
  border-radius: 50%;
  animation: pulse-status 2s infinite;
}
@keyframes pulse-status {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(3);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
    }
  }
}
/* ============================================================================   Dashboard Specific Styles   ============================================================================ */
/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.view-header {
    margin-bottom: 24px;
}

.view-header .page-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
}

.view-header .page-subtitle {
    font-size: 0.8rem;
    color: #64748b;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    border-color: #e2e8f0;
    background: #fcfdfe;
    transform: translateY(-2px);
}

.stat-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
    flex-shrink: 0;
}

.stat-icon-circle i {
    font-size: 1rem;
}

.stat-icon-circle.text-success {
    background: #f0fdf4;
    color: #10b981;
}

.stat-icon-circle.text-danger {
    background: #fef2f2;
    color: #ef4444;
}

.stat-icon-circle.text-warning {
    background: #fffbeb;
    color: #f59e0b;
}

.stat-icon-circle.text-primary {
    background: #f5f3ff;
    color: #4f46e5;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.stat-sub-info {
    display: flex;
    gap: 6px;
    margin-top: 2px;
    align-items: center;
}

.sub-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sub-pill.success {
    background: #f0fdf4;
    color: #16a34a;
}

.sub-pill.danger {
    background: #fef2f2;
    color: #dc2626;
}

.sub-pill.muted {
    background: #f8fafc;
    color: #64748b;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-trend.positive {
    color: #00f2fe;
}

.stat-trend.negative {
    color: #f5576c;
}

.stat-trend svg {
    width: 14px;
    height: 14px;
}

/* ============================================================================   Dashboard Mobile Adaptations   ============================================================================ */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .view-header .page-title {
        font-size: 1.5rem;
    }
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.chart-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.time-selector {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.time-selector:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chart-container {
    height: 300px;
    position: relative;
}

/* Servers Status */
.servers-status {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.status-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    display: none;
    /* Hidden by default */
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.status-indicator.online {
    background: #10b981;
    /* Premium Green */
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.status-indicator.warning {
    background: #fee140;
    box-shadow: 0 0 12px rgba(254, 225, 64, 0.4);
}

.status-indicator.offline {
    background: #f5576c;
    box-shadow: 0 0 12px rgba(245, 87, 108, 0.5);
}

/* Active pulse only for offline state */
.status-indicator.offline::after {
    display: block;
    animation: pulse 2s infinite;
}


.servers-mini-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.server-mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: all var(--transition-base);
}

.server-mini-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.server-mini-item.online {
    border-left-color: #00f2fe;
}

.server-mini-item.offline {
    border-left-color: #f5576c;
}

.server-mini-info {
    display: flex;
    flex-direction: column;
}

.server-mini-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.server-mini-ip {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.server-mini-status {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.server-mini-status.online {
    background: rgba(0, 242, 254, 0.15);
    color: #00f2fe;
}

.server-mini-status.offline {
    background: rgba(245, 87, 108, 0.15);
    color: #f5576c;
}

/* Activity Card */
.activity-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.activity-card:hover {
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 16px;
    position: relative;
}

.activity-list::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.02));
    border-radius: 2px;
    z-index: 0;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    z-index: 1;
}

.activity-item:hover {
    background: rgba(99, 102, 241, 0.04);
    transform: translateX(4px);
}

.activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.activity-icon.payment {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

.activity-icon.suspended {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    box-shadow: 0 3px 10px rgba(244, 63, 94, 0.35);
}

.activity-icon.client {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
}

.activity-icon.system {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.35);
}

.activity-icon.alert {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

.activity-icon.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.activity-icon.success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.activity-icon.warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.activity-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.activity-content {
    flex: 1;
}

.activity-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    margin-right: 5px;
    vertical-align: middle;
    animation: livePulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.activity-list::-webkit-scrollbar {
    width: 4px;
}

.activity-list::-webkit-scrollbar-track {
    background: transparent;
}

.activity-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.15);
    border-radius: 4px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.3);
}

.activity-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.activity-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

.btn-text {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-text:hover {
    color: #764ba2;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    stroke: var(--text-muted);
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.empty-state-description {
    color: var(--text-secondary);
}

.detail-value-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

/* --- Super Premium Router Details Modal --- */
#router-details-modal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

#router-details-modal .modal-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.02) 0%, rgba(30, 41, 59, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 24px 32px;
}

#router-details-modal .modal-tabs {
    background: rgba(148, 163, 184, 0.08);
    padding: 6px;
    border-radius: 14px;
    display: inline-flex;
    gap: 4px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

#router-details-modal .tab-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#router-details-modal .tab-btn i {
    font-size: 1rem;
    opacity: 0.7;
}

#router-details-modal .tab-btn.active {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

#router-details-modal .tab-btn.active i {
    opacity: 1;
    color: #4f46e5;
}

#router-details-modal .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

#router-details-modal .form-group label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

/* Technical Metrics Cards */
.tech-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.tech-metric-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease;
}

.tech-metric-card:hover {
    transform: translateY(-2px);
    border-color: #e2e8f0;
}

.tech-metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
}

.tech-metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.tech-metric-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-top: 4px;
}

.tech-metric-footer {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.tech-metric-progress {
    height: 100%;
    background: #4f46e5;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.tech-metric-progress.warning {
    background: #f59e0b;
}

.tech-metric-progress.danger {
    background: #ef4444;
}

.tech-metric-progress.success {
    background: #10b981;
}

#router-details-modal .modal-footer {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 24px 32px;
    border-radius: 0 0 24px 24px;
}

/* Refined Table */
#router-details-modal .premium-data-table {
    border: none;
    width: 100%;
}

#router-details-modal .premium-data-table th {
    background: transparent;
    border-bottom: 2px solid #f1f5f9;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 12px 16px;
}

#router-details-modal .premium-data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.875rem;
}

/* Log View Styling */
#router-logs-container {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

#router-logs-container .log-entry {
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 4px;
}

#router-logs-container .log-time {
    color: #64748b;
    margin-right: 10px;
}

#router-logs-container .log-msg {
    color: #e2e8f0;
}

#router-logs-container .log-tag {
    color: #38bdf8;
    font-weight: 600;
    margin-right: 8px;
}

/* --- Premium Compact Modal Styles (Moved from HTML) --- */
.premium-compact-modal {
    max-width: 440px !important;
    width: 90%;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    position: relative;
}

.modal-header-compact {
    padding: 24px 28px 15px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.header-bg-glow {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.header-content-row {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
}

.header-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.header-titles h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.header-titles p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.close-btn-compact {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
    transition: color 0.2s;
    z-index: 2;
}

.close-btn-compact:hover {
    color: #f43f5e;
}

.modal-body-compact {
    padding: 10px 28px 24px;
}

/* Detection Card */
.detection-summary-card {
    background: #f0fdf4;
    border: 1px dashed #86efac;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.detection-summary-card span {
    font-size: 0.9rem;
    color: #166534;
    font-weight: 600;
}

.detection-summary-card strong {
    color: #14532d;
    font-weight: 800;
}

/* Strategy Switcher */
.section-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.strategy-switcher {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    display: flex;
    position: relative;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.switch-option {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
}

.switch-option.active {
    color: #4f46e5;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.switch-option i {
    font-size: 0.9rem;
}

/* Inputs */
.options-container-compact {
    min-height: 90px;
    animation: fadeIn 0.3s ease;
}

.form-control-premium-compact {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s;
    outline: none;
    font-weight: 500;
}

.form-control-premium-compact:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.pl-8 {
    padding-left: 36px;
}

.input-wrapper-compact,
.select-wrapper-compact {
    position: relative;
}

.input-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.input-icon-left-static {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.8rem;
    pointer-events: none;
}

.option-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
    margin-left: 2px;
}

.option-hint.warning {
    color: #f59e0b;
    font-weight: 500;
}

.mt-4 {
    margin-top: 16px;
}

/* Footer */
.modal-footer-compact {
    padding: 16px 28px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fff;
}

.btn-ghost-compact {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost-compact:hover {
    background: #f1f5f9;
    color: #334155;
}

.btn-primary-compact {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-primary-compact:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* HOTFIX MÓVIL BRUTE FORCE */
@media screen and (max-width: 1100px) {
    .charts-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .stat-card,
    .chart-card {
        width: 100% !important;
        max-width: none !important;
    }
}
/* Ultra-Premium Theme for Routers Module */
:root {
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.3);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-blue: #4f46e5;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --glow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Grid Layout */
.routers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.75rem;
    padding: 0.5rem 0;
}

/* Premium Glass Card */
.router-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.router-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 70, 229, 0.4);
    background: rgba(255, 255, 255, 0.9);
}

.router-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.router-card:hover::after {
    opacity: 0.2;
}

/* Status Bar & Indication */
.card-status-bar {
    height: 3px;
    width: 100%;
    background: #f1f5f9;
}

.router-card.online .card-status-bar {
    background: var(--accent-green);
}

.router-card.offline .card-status-bar {
    background: var(--accent-red);
}

/* Main Content */
.router-main {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Header */
.router-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.router-identity {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.router-name-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.status-dot-mini {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #cbd5e1;
}

.router-card.online .status-dot-mini {
    background: var(--accent-green);
}

.router-alias {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0;
}

.router-ip {
    font-size: 0.6rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}

/* Actions */
.router-actions {
    display: flex;
    gap: 0.1rem;
}

.action-btn.minimal {
    background: transparent;
    border: none;
    color: #cbd5e1;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.router-card:hover .action-btn.minimal {
    color: #94a3b8;
}

.action-btn.minimal:hover {
    background: #f8fafc;
    color: var(--accent-blue) !important;
}

/* Stats Minimal */
.router-stats-minimal {
    display: flex;
    gap: 0.75rem;
}

.stat-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.stat-label {
    font-size: 0.52rem;
    color: #94a3b8;
    font-weight: 800;
    text-transform: uppercase;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
}

.progress-bar-minimal {
    height: 3px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-minimal .bar {
    height: 100%;
    transition: width 0.5s ease;
}

/* Meta Grid */
.router-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    padding-top: 0.6rem;
    border-top: 1px solid #f8fafc;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    color: #cbd5e1;
    font-weight: 800;
}

.meta-value {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 700;
}

.uptime-value {
    font-size: 0.58rem;
    white-space: nowrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    border: 1px dashed var(--card-border);
    border-radius: 12px;
    color: var(--text-secondary);
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.btn-primary.glow-effect {
    margin-top: 1rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}
/* ============================================================================
   Clients Module Style - Table & Management View
   ============================================================================ */

/* View Container */
#clients-view {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Toolbar de Filtros - Premium Glass */
.clients-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    transition: all 0.3s ease;
}

.clients-toolbar:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
}

.toolbar-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-item label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.select-premium {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    background-color: #f8fafc;
    cursor: pointer;
    min-width: 140px;
    transition: all 0.2s ease;
    outline: none;
}

.select-premium:hover,
.select-premium:focus {
    border-color: #4f46e5;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Premium Search Interface - Minimalist Refinement */
.premium-search-container {
    margin-left: auto;
    width: 320px;
    /* Fixed width to prevent shifting neighboring buttons */
    transition: transform 0.3s ease;
}

.search-glass-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    /* Slightly more transparent */
    backdrop-filter: blur(16px);
    /* Increased blur */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    /* Balanced radius */
    padding: 0;
    /* Minimalist: padding managed by input */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.search-glass-wrapper:focus-within {
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow:
        0 0 0 3px rgba(79, 70, 229, 0.08),
        0 8px 12px -4px rgba(79, 70, 229, 0.08);
    transform: translateY(-1px);
}

.premium-search-container:focus-within {
    transform: translateY(-1px);
}

.search-icon {
    margin-left: 12px;
    color: #94a3b8;
    font-size: 0.85rem;
    /* Slightly smaller */
    transition: color 0.3s ease;
}

.search-glass-wrapper:focus-within .search-icon {
    color: #4f46e5;
}

.search-glass-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 12px;
    /* More compact height */
    font-size: 0.875rem;
    /* Smaller font */
    font-weight: 500;
    color: #1e293b;
    outline: none;
}

.search-glass-wrapper input::-moz-placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-glass-wrapper input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.clear-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 5px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.search-glass-wrapper input:not(:-moz-placeholder)~.clear-btn {
    opacity: 1;
    pointer-events: auto;
}

.search-glass-wrapper input:not(:placeholder-shown)~.clear-btn {
    opacity: 1;
    pointer-events: auto;
}

.clear-btn:hover {
    background: #f1f5f9;
    color: #475569;
}


.toolbar-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

/* Client Stats Bar - Compact Pills */
.client-stats-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 8px 0;
}

.client-stats-bar.compact {
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.stat-pill i {
    font-size: 0.8rem;
}

.stat-pill span {
    font-weight: 850;
    font-size: 0.85rem;
}

.stat-pill.online i {
    color: #10b981;
}

.stat-pill.online span {
    color: #059669;
}

.stat-pill.offline i {
    color: #94a3b8;
}

.stat-pill.offline span {
    color: #475569;
}

.stat-pill.suspended i {
    color: #f59e0b;
}

.stat-pill.suspended span {
    color: #d97706;
}

.stat-pill.total i {
    color: #4f46e5;
}

.stat-pill.total span {
    color: #4f46e5;
}

.stat-pill.active i {
    color: #10b981;
}

.stat-pill.active span {
    color: #059669;
}

.stat-pill.warning i {
    color: #ef4444;
}

.stat-pill.warning span {
    color: #dc2626;
}

.stat-pill.secondary i {
    color: #6366f1;
}

.stat-pill.secondary span {
    color: #4f46e5;
}

/* Interactivity & Active States */
.stat-pill {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.stat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #4f46e5;
    background: #f8fafc;
}

.stat-pill:active {
    transform: translateY(0);
}

/* Logic for active filtering visual feedback */
/* Since we don't have a specific .active class injected via JS yet (handled by select sync), 
   we can just rely on the hover for now or add a class in JS if needed. 
   But the user requested "dynamica" so let's add the active class logic in JS too if needed. 
*/
.stat-pill.active-filter {
    border-color: #4f46e5;
    background: #eef2ff;
    outline: 2px solid #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}



.debt-amount {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 2px;
}

.debt-amount.negative {
    color: #ef4444;
}

.debt-amount.positive {
    color: #10b981;
}

/* Modal Styles */
.clients-table-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
}

.clients-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.clients-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.clients-table td {
    padding: 8px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.clients-table tr:hover {
    background-color: #f8fafc;
}

/* Estilos para Sincronización de IP en Importación */
.ip-sync-container {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.ip-sync-container.dual-ip {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.ip-diff {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ip-old {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.ip-new {
    color: #ef4444;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

.ip-arrow {
    color: #94a3b8;
    font-size: 0.7rem;
}

.btn-sync-ip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.btn-sync-ip:hover {
    background: #e2e8f0;
    color: #3b82f6;
    border-color: #3b82f6;
    transform: rotate(180deg);
}

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

/* Cell Content Styles */
.client-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-real-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.85rem;
}

.client-code {
    font-size: 0.75rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

.ip-badge {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
    display: inline-block;
}

.ip-display {
    font-weight: 600;
    color: #334155;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.credential-text {
    font-size: 0.8rem;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.status-badge-table {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge-table.active {
    background: #d1fae5;
    color: #059669;
}

.status-badge-table.suspended {
    background: #fef3c7;
    color: #d97706;
}

.status-badge-table.online {
    background: #dbeafe;
    color: #2563eb;
}

/* Blue for connected state */
.status-badge-table.offline {
    background: #f1f5f9;
    color: #94a3b8;
}

.traffic-mini {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100px;
    /* Fixed width to stabilize actions column */
}

.traffic-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    justify-content: flex-start;
}

.traffic-row span {
    min-width: 65px;
    /* Fixed width for values */
    text-align: left;
}

.traffic-up {
    color: #10b981;
}

.traffic-down {
    color: #3b82f6;
}

.action-menu {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #eef2ff;
}

.action-btn.delete:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

@media (max-width: 1100px) {
    #clients-view {
        padding: 1rem;
    }

    .view-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1.5rem !important;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .premium-search-container {
        width: 100% !important;
        margin-left: 0;
    }

    .header-actions .btn-premium {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .clients-toolbar {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-group {
        width: 100%;
        gap: 10px;
    }

    .filter-item {
        flex: 1;
        min-width: 100%;
    }

    .select-premium {
        width: 100%;
        height: 44px;
        /* Better for touch */
    }

    .clients-table th:nth-child(3),
    .clients-table td:nth-child(3),
    .clients-table th:nth-child(4),
    .clients-table td:nth-child(4) {
        display: none;
        /* Hide columns on mobile if table is accidentally visible */
    }

    .client-stats-bar {
        padding: 10px 5px;
        margin-bottom: 15px;
    }
}

.last-seen-text {
    font-size: 0.7rem;
    color: #94a3b8;
    font-style: italic;
    margin-top: -2px;
}

/* Field Sync Button and Group */
.input-group-premium {
    display: flex;
    gap: 8px;
    align-items: center;
}

.flex-grow {
    flex-grow: 1;
}

.btn-sync-field {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sync-field:hover {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #4f46e5;
    transform: rotate(30deg);
}

.btn-sync-field:active {
    transform: scale(0.95);
}

.btn-sync-field i {
    font-size: 0.9rem;
}

@keyframes field-highlight {
    0% {
        background-color: rgba(79, 70, 229, 0.2);
        border-color: #4f46e5;
    }

    100% {
        background-color: transparent;
        border-color: #e2e8f0;
    }
}

.field-highlight {
    animation: field-highlight 1s ease-out;
}


/* Bulk Actions are now managed globally and integrated in core.css */

/* ============================================================================
   Premium Alert - Auto-Provisioning Feedback
   ============================================================================ */

.premium-alert {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    border: 1px solid #fde68a;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.premium-alert .alert-icon {
    width: 48px;
    height: 48px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    margin: 0 0 4px 0;
    color: #92400e;
    font-size: 1rem;
    font-weight: 800;
}

.alert-content p {
    margin: 0;
    color: #b45309;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d97706;
    color: white;
    padding: 0 8px;
    min-width: 24px;
    height: 24px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.85rem;
    cursor: pointer;
    vertical-align: middle;
    margin: 0 2px;
}

.alert-actions {
    display: flex;
    gap: 12px;
}

.btn-alert-sync {
    background: white;
    color: #d97706;
    border: 1px solid #fde68a;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-alert-sync:hover {
    background: #fffbeb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.needs-provision-row {
    background-color: rgba(245, 158, 11, 0.03);
}
/** * Toast Notification Styles * DiseÃ±o ultra-premium con glassmorphism *//* Container */.toast-container {    position: fixed;    top: 20px;    right: 20px;    z-index: 10000;    display: flex;    flex-direction: column;    gap: 12px;    pointer-events: none;}/* Toast Base */.toast {    display: flex;    align-items: center;    gap: 12px;    min-width: 320px;    max-width: 420px;    padding: 16px 20px;    background: rgba(20, 20, 30, 0.95);    backdrop-filter: blur(20px);    border-radius: 12px;    border: 1px solid rgba(255, 255, 255, 0.1);    box-shadow:        0 8px 32px rgba(0, 0, 0, 0.4),        0 2px 8px rgba(0, 0, 0, 0.2),        inset 0 1px 0 rgba(255, 255, 255, 0.05);    pointer-events: all;    opacity: 0;    transform: translateX(100px);    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);}.toast.show {    opacity: 1;    transform: translateX(0);}/* Toast Icon */.toast-icon {    flex-shrink: 0;    width: 24px;    height: 24px;    border-radius: 50%;    display: flex;    align-items: center;    justify-content: center;    padding: 4px;}.toast-icon svg {    width: 100%;    height: 100%;}/* Toast Content */.toast-content {    flex: 1;    min-width: 0;}.toast-message {    margin: 0;    font-size: 14px;    font-weight: 500;    color: #ffffff;    line-height: 1.4;    word-wrap: break-word;}/* Close Button */.toast-close {    flex-shrink: 0;    width: 24px;    height: 24px;    padding: 0;    background: rgba(255, 255, 255, 0.05);    border: 1px solid rgba(255, 255, 255, 0.1);    border-radius: 6px;    cursor: pointer;    transition: all 0.2s ease;    display: flex;    align-items: center;    justify-content: center;}.toast-close svg {    width: 14px;    height: 14px;    stroke: rgba(255, 255, 255, 0.6);}.toast-close:hover {    background: rgba(255, 255, 255, 0.1);    border-color: rgba(255, 255, 255, 0.2);}.toast-close:hover svg {    stroke: #ffffff;}/* Success Type */.toast-success {    border-left: 3px solid #00E096;}.toast-success .toast-icon {    background: linear-gradient(135deg, #00E096 0%, #00A86B 100%);    color: #ffffff;}/* Error Type */.toast-error {    border-left: 3px solid #FF3D71;}.toast-error .toast-icon {    background: linear-gradient(135deg, #FF3D71 0%, #C30052 100%);    color: #ffffff;}/* Warning Type */.toast-warning {    border-left: 3px solid #FFAA00;}.toast-warning .toast-icon {    background: linear-gradient(135deg, #FFAA00 0%, #FF8800 100%);    color: #ffffff;}/* Info Type */.toast-info {    border-left: 3px solid #00D4FF;}.toast-info .toast-icon {    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);    color: #ffffff;}/* Responsive */@media (max-width: 768px) {    .toast-container {        top: 10px;        right: 10px;        left: 10px;    }    .toast {        min-width: 0;        max-width: none;        width: 100%;    }}/* Animation Keyframes */@keyframes slideInRight {    from {        opacity: 0;        transform: translateX(100px);    }    to {        opacity: 1;        transform: translateX(0);    }}@keyframes slideOutRight {    from {        opacity: 1;        transform: translateX(0);    }    to {        opacity: 0;        transform: translateX(100px);    }}

/** * Modal Styles - Premium Design * Estilos para modales profesionales con glassmorphism */
/* Modal Overlay - Dynamic Blur & Depth */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    /* Slate 900 tint */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fix: Ensure SweetAlert2 is always on top of system modals */
.swal2-container {
    z-index: 1000000 !important;
}

/* Modal Overlay - Centralized backdrop control */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9998;
    /* Just below .modal (9999) */
    display: none;
    pointer-events: none;
}

.modal-overlay.active {
    display: block;
    pointer-events: all;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Content - Ultra-Premium Glassmorphism */
.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.08), 0 4px 12px -6px rgba(0, 0, 0, 0.03);
    max-width: 600px;
    width: 95%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.96);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-content.large-modal {
    max-width: 1300px;
    height: 85vh;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Modal Header */
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 750;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.modal-subtitle-text {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Caja de resumen del cliente en el header */
.modal-client-summary-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 10px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-info-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.header-info-divider {
    color: #cbd5e1;
    font-weight: 300;
}

.summary-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-info-ip,
.header-info-id {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
}

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.3);
    color: #FF4757;
}

/* Modal Body */
.modal-body {
    padding: 16px 20px;
    /* Optimized: gain vertical space, keep side breathing room */
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* Modal Tabs - Minimalist Glass Pills */
.modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.tab-btn:hover {
    color: #475569;
    background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.tab-btn.active i {
    color: #4f46e5;
    opacity: 1;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High Density Form Grid (4 Columns) */
.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 16px;
    /* Final precision gap */
}

.form-grid.compact-grid {
    gap: 12px 16px;
    /* Expanded "Sweet Spot" - No Scroll */
}

.form-grid .span-4 {
    grid-column: span 4;
}

.form-grid .span-3 {
    grid-column: span 3;
}

.form-grid .span-2 {
    grid-column: span 2;
}

.form-grid .span-1 {
    grid-column: span 1;
}

.form-grid .span-full {
    grid-column: 1 / -1;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    /* Precise internal gap */
}

/* Form Control - High Fidelity Refinement */
.form-group label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    opacity: 0.85;
    margin-bottom: 3px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 5;
}

.form-control {
    width: 100%;
    padding: 11px 16px 11px 44px;
    /* Clean proportional padding */
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    color: #1e293b;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01);
}

.form-control:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(79, 70, 229, 0.25);
}

/* Liquid Glow Focus State */
.form-control:focus {
    outline: none;
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.06), 0 10px 15px -3px rgba(79, 70, 229, 0.08), 0 4px 6px -2px rgba(79, 70, 229, 0.04);
    transform: translateY(-1px);
}

.form-control:focus~.field-icon {
    color: #4f46e5;
    transform: scale(1.1);
}

/* Frosted Depth for Read-only */
.readonly-glass {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.04) !important;
    color: #64748b !important;
    cursor: default !important;
    backdrop-filter: blur(12px) !important;
}

.form-text-premium {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 2px;
    display: block;
}

/* --- Premium Info Cards (Router Details) --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.info-card.full-width {
    grid-column: 1 / -1;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.info-icon.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.info-icon.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.info-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.info-icon.orange {
    background: #ffedd5;
    color: #ea580c;
}

.info-icon.gray {
    background: #f1f5f9;
    color: #64748b;
}

.info-data {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.info-value.font-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.info-mini-group {
    display: flex;
    flex-direction: column;
}

.badge {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.online {
    background: #dcfce7;
    color: #16a34a;
}

.badge.offline {
    background: #fee2e2;
    color: #dc2626;
}

.badge.warning {
    background: #fef3c7;
    color: #d97706;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Select - High Fidelity Refinement */
select.form-control {
    cursor: pointer;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%2364748b%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%276 9 12 15 18 9%27%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 40px;
}

/* Input with Addon */
.input-with-addon {
    position: relative;
    display: flex;
}

.input-with-addon .addon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    pointer-events: none;
}

.input-with-addon .form-control {
    padding-left: 32px;
}

/* Form Text */
.form-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 32px;
    /* Balanced top/bottom reach */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    /* Precision separation */
}

.modal-footer .btn-secondary,
.modal-footer .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-footer svg {
    width: 18px;
    height: 18px;
}

/* Loading State in Modal */
.loading-overlay-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 16px;
    z-index: 10;
}

.loading-overlay-modal .spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00D4FF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-overlay-modal p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Refinements */
@media (max-width: 1200px) {
    .modal-content.large-modal {
        width: 98% !important;
        height: 95vh !important;
    }
}

@media (max-width: 1100px) {
    .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .modal-content.large-modal {
        height: 100vh !important;
    }

    .modal-header {
        padding: 1rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        position: relative !important;
    }

    .modal-header .header-titles {
        padding-right: 40px;
        /* Space for close btn */
    }

    .modal-client-summary-box {
        width: 100% !important;
        justify-content: space-between !important;
        padding: 8px 15px !important;
        margin-top: 5px !important;
    }

    .modal-header .close-btn {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
    }

    .modal-body {
        padding: 1rem !important;
    }

    .modal-footer {
        padding: 1rem !important;
        flex-direction: column-reverse !important;
        gap: 0.5rem !important;
    }

    .modal-footer button {
        width: 100% !important;
        justify-content: center !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .form-grid>div {
        grid-column: span 1 !important;
    }

    .modal-tabs {
        flex-wrap: wrap !important;
        gap: 4px !important;
        padding: 4px !important;
        border-radius: 10px !important;
    }

    .tab-btn {
        padding: 8px !important;
        font-size: 0.75rem !important;
        min-width: 48% !important;
    }
}

/* ============================================================================   Ultra-Premium Tables & Lists   ============================================================================ */
.history-list-premium {
    min-height: 200px;
    background: rgba(248, 250, 252, 0.5);
}

.premium-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    /* Vertical gap between rows */
    margin: 0;
}

.premium-data-table thead th {
    padding: 16px 24px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    text-align: left;
    background: transparent;
    border: none;
}

.premium-row {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-row td {
    padding: 18px 24px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.premium-row td:first-child {
    border-left: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 16px 0 0 16px;
}

.premium-row td:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 0 16px 16px 0;
}

.premium-row:hover {
    transform: translateY(-2px) scale(1.005);
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.06));
}

.premium-row:hover td {
    background: #ffffff;
    border-color: rgba(79, 70, 229, 0.1);
}

/* Premium Status Badges - Refined & Glowing */
.premium-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.premium-status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.premium-status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.premium-status-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.premium-status-badge.secondary {
    background: rgba(148, 163, 184, 0.1);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Amount Cells - High Definition */
.amount-cell-premium {
    display: flex;
    flex-direction: column;
}

.amount-main {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.amount-sub {
    font-size: 0.6rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Action Buttons Mini */
.action-btn-mini {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn-mini:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.action-btn-mini.success:hover {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-alert-sync:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 152, 0, 0.4);
    filter: brightness(1.1);
}

.btn-alert-sync i {
    font-size: 1.1rem;
}

/* Interactive Count Badge */
.alert-count-badge {
    background: #f59e0b;
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    margin: 0 4px;
}

.alert-count-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.5);
    background: #d97706;
}

/* --- Premium Dashboard Metrics - Minimalist Refinement --- */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
    /* Precise high-end spacing */
}

.metric-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.metric-card .icon {
    width: 24px;
    /* Ultra compact */
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.metric-card.fee .icon {
    background: rgba(168, 85, 247, 0.15);
    color: #9333ea;
}

.metric-card.balance .icon {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.metric-card.balance.debt .icon {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.metric-card.due .icon {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.metric-card.payment .icon {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.metric-label {
    font-size: 0.575rem;
    /* Extreme reduction */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    opacity: 0.8;
}

.metric-value {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    line-height: 1;
}

.metric-subtext {
    font-size: 0.7rem;
    /* Reduced from 0.75rem */
    color: #94a3b8;
    font-weight: 500;
}

.metric-value.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.text-success {
    color: #10b981 !important;
}

.text-danger {
    color: #ef4444 !important;
}

/* Refined History Grid */
.history-grid-refined {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 24px;
}

.modern-panel {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.panel-header-modern {
    padding: 8px 16px;
    /* Ultra-compact header */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title i {
    color: #4f46e5;
}

.panel-body-modern {
    padding: 12px 16px;
    /* Reduced from 24px */
}

.alert-count-badge:active {
    transform: translateY(0);
}

/* History Dashboard Styles */
.history-dashboard {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}

.history-panel {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    /* Smoother */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
}

.panel-body {
    padding: 16px;
    flex: 1;
}

.compact-table-container {
    max-height: 250px;
    overflow-y: auto;
}

.compact-history-table {
    width: 100%;
    font-size: 11px;
    /* Smaller typography */
    border-collapse: collapse;
}

.compact-history-table th {
    text-align: left;
    padding: 6px 8px;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

.compact-history-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f8fafc;
}

/* Ultra-Compact Billing Specific Overrides */
.tab-billing .metrics-row {
    margin-bottom: 20px;
    gap: 10px;
}

.tab-billing .metric-card {
    padding: 12px 14px;
}

.tab-billing .metric-label {
    font-size: 0.55rem;
    margin-bottom: 2px;
}

/* Report Tab Highlights */
.metric-card.availability {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-color: rgba(34, 197, 94, 0.2);
}

.metric-card.availability .icon {
    background: #22c55e;
    color: white;
}

.metric-card.availability .metric-value {
    color: #15803d;
}

.metric-card.consumption-total {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(30, 64, 175, 0.05) 100%);
    border-color: rgba(30, 64, 175, 0.2);
}

.metric-card.consumption-total .icon {
    background: #1e40af;
    color: white;
}

.metric-card.consumption-total .metric-value {
    color: #1e3a8a;
}

.table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.table-compact th {
    text-align: left;
    padding: 8px;
    border-bottom: 2px solid #f1f5f9;
    color: #64748b;
}

.table-compact td {
    padding: 8px;
    border-bottom: 1px solid #f8fafc;
}

.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Diagnostic Badges */
.cause-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.cause-local {
    background: #fef3c7;
    color: #92400e;
}

/* Amarillo: Corte local */
.cause-system {
    background: #fee2e2;
    color: #b91c1c;
}

/* Rojo: Falla de Red */
.cause-maintenance {
    background: #e0e7ff;
    color: #3730a3;
}

/* Azul: Mantenimiento */
.health-ring {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    border: 3px solid #f1f5f9;
}

.health-ring.good {
    border-color: #22c55e;
    color: #16a34a;
}

.health-ring.warning {
    border-color: #f59e0b;
    color: #d97706;
}

.health-ring.critical {
    border-color: #ef4444;
    color: #dc2626;
}

.tab-billing .metric-value {
    font-size: 1.1rem;
}

.tab-billing .metric-subtext {
    font-size: 0.65rem;
    margin-top: 2px;
}

.tab-billing .modern-panel {
    padding: 12px;
}

.tab-billing .modern-panel .panel-header {
    margin-bottom: 12px;
}

.tab-billing .modern-panel .panel-header h3 {
    font-size: 0.8rem;
}

.tab-billing .chart-container-modal {
    height: 150px !important;
}

.tab-billing .compact-history-table th,
.tab-billing .compact-history-table td {
    padding: 6px 8px;
}

.select-mini {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.traffic-summary {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.mt-6 {
    margin-top: 24px;
}

@media (max-width: 1200px) {
    .history-grid {
        grid-template-columns: 1fr;
    }
}

/* Panel de Inteligencia IA */
.premium-intelligence-panel {
    margin: 16px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    backdrop-filter: blur(4px);
}

.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-title {
    font-size: 1rem;
    font-weight: 850;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ai-pulse {
    color: #3b82f6;
    animation: brain-pulse 2s infinite ease-in-out;
    font-size: 1.2rem;
}

@keyframes brain-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(59, 130, 246, 0));
    }

    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(59, 130, 246, 0));
    }
}

.ai-badge {
    background: #0f172a;
    color: #38bdf8;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ai-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.ai-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #3b82f633;
}

.ai-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.ai-value {
    font-size: 1rem;
    font-weight: 850;
    color: #0f172a;
    margin-bottom: 2px;
    line-height: 1;
}

.ai-trend {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-trend::before {
    content: "â—";
    font-size: 8px;
    color: #3b82f6;
}

/* ============================================================================   Refined Dashboard & Metrics (Inside Modals)   ============================================================================ */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
}

.metric-card .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #4f46e5;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.metric-card:hover .icon {
    background: #4f46e5;
    color: white;
    transform: rotate(10deg);
}

.metric-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 2px;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 850;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.metric-subtext {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    margin-top: 6px;
}

/* Modal Tabs - Glass Pills UI */
.modal-tabs {
    display: flex;
    gap: 10px;
    padding: 6px;
    background: rgba(241, 245, 249, 0.8);
    border-radius: 18px;
    margin-bottom: 2rem;
    width: -moz-fit-content;
    width: fit-content;
    border: 1px solid #f1f5f9;
}

.tab-btn {
    padding: 10px 22px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 750;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tab-btn i {
    font-size: 0.9rem;
    opacity: 0.6;
}

.tab-btn:hover:not(.active) {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.6);
}

.tab-btn.active {
    background: white;
    color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.tab-btn.active i {
    opacity: 1;
    color: #4f46e5;
}
/* ============================================================================   SGUBM-V1 - Payments Module Styles   Ultra-Premium Glassmorphism Design   ============================================================================ */.payments-dashboard {    display: flex;    flex-direction: column;    gap: var(--spacing-xl);    margin-bottom: var(--spacing-2xl);}.financial-stats {    display: grid;    grid-template-columns: repeat(6, 1fr);    gap: 12px;}.dashboard-middle-row {    display: grid;    grid-template-columns: 1fr 1fr;    gap: 12px;    align-items: stretch;}/* FIX: Ensure stats and charts are HIDDEN when not in Reports Tab */.finance-tab:not(.active) .financial-stats,.finance-tab:not(.active) .dashboard-middle-row {    display: none !important;}.payments-chart-container {    background: var(--glass-bg);    backdrop-filter: blur(20px);    -webkit-backdrop-filter: blur(20px);    border: 1px solid var(--glass-border);    border-radius: var(--radius-xl);    padding: var(--spacing-xl);    height: 380px;    display: flex;    flex-direction: column;}.revenue-chart-area {    flex: 1;    position: relative;    width: 100%;}.payment-stat-card {    background: #ffffff;    border: 1px solid #e2e8f0;    border-radius: 12px;    padding: 10px 14px;    display: flex;    justify-content: space-between;    align-items: center;    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);    position: relative;    border-left: 4px solid #cbd5e1;    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);}.payment-stat-card:hover {    transform: translateY(-2px);    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.08);}.payment-stat-icon {    width: 36px;    height: 36px;    border-radius: 50%;    display: flex;    align-items: center;    justify-content: center;    font-size: 1rem;    color: white;}.payment-stat-card.today {    border-left-color: #6366f1;}.payment-stat-card.month {    border-left-color: #10b981;}.payment-stat-card.pending {    border-left-color: #f43f5e;}.payment-stat-card.total {    border-left-color: #8b5cf6;}.payment-stat-card.clients-paid {    border-left-color: #0ea5e9;}.payment-stat-card.clients-pending {    border-left-color: #f59e0b;}.payment-stat-card.today .payment-stat-icon {    background: rgba(99, 102, 241, 0.1);    color: #6366f1;}.payment-stat-card.month .payment-stat-icon {    background: rgba(16, 185, 129, 0.1);    color: #10b981;}.payment-stat-card.pending .payment-stat-icon {    background: rgba(244, 63, 94, 0.1);    color: #f43f5e;}.payment-stat-card.total .payment-stat-icon {    background: rgba(139, 92, 246, 0.1);    color: #8b5cf6;}.payment-stat-card.clients-paid .payment-stat-icon {    background: rgba(14, 165, 233, 0.1);    color: #0ea5e9;}.payment-stat-card.clients-pending .payment-stat-icon {    background: rgba(245, 158, 11, 0.1);    color: #f59e0b;}.payment-stat-info {    display: flex;    flex-direction: column;}.payment-stat-info h4 {    color: #64748b;    font-size: 0.65rem;    font-weight: 700;    text-transform: uppercase;    letter-spacing: 0.05em;    margin-top: 2px;}.payment-stat-value {    font-size: 1.1rem;    font-weight: 850;    color: #0f172a;    line-height: 1;}/* ============================================================================   Payments Table   ============================================================================ */.payments-table-container {    background: var(--glass-bg);    backdrop-filter: blur(20px);    -webkit-backdrop-filter: blur(20px);    border: 1px solid var(--glass-border);    border-radius: var(--radius-xl);    padding: var(--spacing-xl);    overflow: hidden;}.table-header {    display: flex;    justify-content: space-between;    align-items: center;    margin-bottom: var(--spacing-xl);}.table-actions {    display: flex;    gap: var(--spacing-md);}.btn-premium {    background: linear-gradient(135deg, var(--primary), var(--secondary));    color: white;    border: none;    padding: var(--spacing-sm) var(--spacing-xl);    border-radius: var(--radius-md);    font-weight: 600;    cursor: pointer;    transition: all var(--transition-base);    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);    display: flex;    align-items: center;    gap: var(--spacing-sm);}.btn-premium:hover {    transform: translateY(-2px);    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);}.payments-list-table {    width: 100%;    border-collapse: collapse;}.payments-list-table th {    text-align: left;    padding: var(--spacing-md);    color: var(--text-secondary);    font-weight: 500;    font-size: 0.875rem;    border-bottom: 1px solid var(--glass-border);}.payments-list-table td {    padding: var(--spacing-lg) var(--spacing-md);    border-bottom: 1px solid rgba(0, 0, 0, 0.03);}.client-cell {    display: flex;    align-items: center;    gap: var(--spacing-md);}.client-avatar {    width: 32px;    height: 32px;    border-radius: 50%;    background: var(--bg-primary);    color: var(--text-primary);    display: flex;    align-items: center;    justify-content: center;    font-weight: 700;    font-size: 0.75rem;}.amount-cell {    font-weight: 700;    color: #4f46e5;}.method-badge {    padding: 4px 12px;    border-radius: 20px;    font-size: 0.75rem;    font-weight: 600;}.method-badge.efectivo {    background: rgba(59, 130, 246, 0.1);    color: #2563eb;}.method-badge.transferencia {    background: rgba(147, 51, 234, 0.1);    color: #9333ea;}.method-badge.otros {    background: rgba(0, 0, 0, 0.05);    color: var(--text-secondary);}.status-badge {    padding: 4px 12px;    border-radius: 20px;    font-size: 0.75rem;    font-weight: 600;}.status-badge.completed {    background: rgba(16, 185, 129, 0.1);    color: #059669;}/* Payment Registration Modal & Search */.search-input-wrapper {    position: relative;    width: 100%;}.search-results-dropdown {    position: absolute;    top: calc(100% + 5px);    left: 0;    right: 0;    background: rgba(255, 255, 255, 0.95);    backdrop-filter: blur(20px);    border: 1px solid var(--glass-border);    border-radius: var(--radius-md);    max-height: 250px;    overflow-y: auto;    z-index: 1000;    display: none;    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);}.search-results-dropdown.active {    display: block;}.search-result-item {    padding: 12px 15px;    cursor: pointer;    transition: all 0.2s;    border-bottom: 1px solid rgba(0, 0, 0, 0.05);    display: flex;    justify-content: space-between;    align-items: center;}.search-result-item:hover {    background: rgba(79, 70, 229, 0.05);}.search-result-item .client-info {    display: flex;    flex-direction: column;}.search-result-item .client-name {    font-weight: 600;    color: var(--text-primary);}.search-result-item .client-meta {    font-size: 0.8em;    color: var(--text-muted);}.search-result-item .client-badge {    font-size: 0.7em;    background: rgba(79, 70, 229, 0.1);    color: #4f46e5;    padding: 2px 8px;    border-radius: 10px;}.selected-item-card {    background: var(--bg-primary);    border-radius: var(--radius-md);    padding: 15px;    display: flex;    justify-content: space-between;    align-items: center;    border: 1px solid rgba(79, 70, 229, 0.2);    margin: 15px 0;}.selected-item-card .item-main {    display: flex;    flex-direction: column;}.selected-item-card .name {    font-weight: 700;    font-size: 1.1em;    color: var(--text-primary);}.selected-item-card .code {    font-size: 0.85em;    color: #4f46e5;}.selected-item-card .item-sub {    font-size: 0.85em;    color: var(--text-muted);}.form-row {    display: grid;    grid-template-columns: 1fr 1fr;    gap: 20px;}/* Monthly Detail Modal Styles */.month-stats-grid {    display: grid;    grid-template-columns: repeat(4, 1fr);    gap: 15px;    margin-bottom: 25px;}.month-stat-mini {    background: #f8fafc;    border: 1px solid #e2e8f0;    border-radius: 12px;    padding: 15px;    display: flex;    flex-direction: column;}.month-stat-mini .label {    font-size: 0.6rem;    color: #64748b;    text-transform: uppercase;    font-weight: 700;    margin-bottom: 5px;}.month-stat-mini .value {    font-size: 1.1rem;    font-weight: 800;}.month-stat-mini .value.success {    color: #10b981;}.month-stat-mini .value.warning {    color: #ef4444;    /* Consistent Red */}.month-stat-mini .value.secondary {    color: #6366f1;}.month-efficiency-bar {    height: 12px;    background: #e2e8f0;    border-radius: 6px;    overflow: hidden;    position: relative;    margin-top: 5px;}.efficiency-fill {    height: 100%;    background: linear-gradient(90deg, #6366f1, #10b981);    transition: width 1s ease-out;}.efficiency-text {    position: absolute;    right: 0;    top: -18px;    font-size: 0.7rem;    font-weight: 700;    color: #64748b;}.history-table-container.compact {    max-height: 400px;    overflow-y: auto;}.history-table-container.compact thead {    position: sticky;    top: 0;    background: white;    z-index: 10;}/* ============================================================================   Premium Invoices Table Styles   ============================================================================ */.table-container-premium {    padding: 10px;    background: white;    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);    margin-top: 10px;}.premium-data-table {    width: 100%;    border-collapse: separate;    border-spacing: 0 8px;    /* Espaciado entre filas */}.premium-data-table th {    padding: 8px 12px;    font-size: 0.65rem;    font-weight: 800;    color: #94a3b8;    text-transform: uppercase;    letter-spacing: 0.05em;    border-bottom: 2px solid #f1f5f9;}.premium-row {    background: white;    transition: all 0.2s ease;}.premium-row:hover {    background: #f8fafc;    transform: scale(1.002);}.premium-row td {    padding: 8px 12px;    border-bottom: 1px solid #f1f5f9;    vertical-align: middle;}/* ID Badge */.id-badge {    font-family: 'JetBrains Mono', 'Monaco', monospace;    background: #f1f5f9;    color: #64748b;    padding: 4px 8px;    border-radius: 6px;    font-size: 0.8rem;    font-weight: 700;}/* Client Cell */.client-cell-premium {    display: flex;    align-items: center;    gap: 15px;}.avatar-mini {    width: 28px;    height: 28px;    border-radius: 8px;    background: linear-gradient(135deg, #6366f1, #4f46e5);    color: white;    display: flex;    align-items: center;    justify-content: center;    font-weight: 800;    font-size: 0.85rem;    box-shadow: 0 2px 5px rgba(99, 102, 241, 0.2);}.client-info-stack {    display: flex;    flex-direction: column;}.client-name-text {    font-weight: 800;    color: #1e293b;    font-size: 0.85rem;}.client-sub-text {    font-size: 0.65rem;    color: #94a3b8;    font-weight: 600;}/* Date Components */.date-wrapper {    display: flex;    align-items: center;    gap: 8px;    color: #64748b;    font-size: 0.85rem;    font-weight: 600;}.date-wrapper i {    color: #cbd5e1;    font-size: 0.9rem;}.date-wrapper.due {    color: #475569;}.date-wrapper.due i {    color: #94a3b8;}/* Amount Premium */.amount-cell-premium {    text-align: left;}.amount-main {    font-size: 0.95rem;    font-weight: 900;    color: #0f172a;}.amount-sub {    font-size: 0.6rem;    font-weight: 800;    color: #94a3b8;    margin-top: -3px;}/* Status Badges */.premium-status-badge {    display: inline-flex;    align-items: center;    gap: 4px;    padding: 4px 10px;    border-radius: 6px;    font-size: 0.65rem;    font-weight: 850;    text-transform: uppercase;}.premium-status-badge.warning {    background: #fff7ed;    color: #f59e0b;}.premium-status-badge.success {    background: #f0fdf4;    color: #16a34a;}.premium-status-badge.danger {    background: #fef2f2;    color: #dc2626;}.premium-status-badge.secondary {    background: #f8fafc;    color: #64748b;}/* Actions Flex */.action-flex-right {    display: flex;    justify-content: flex-end;    gap: 8px;}.action-btn-mini {    width: 32px;    height: 32px;    border-radius: 10px;    border: 1px solid #e2e8f0;    background: white;    color: #64748b;    display: flex;    align-items: center;    justify-content: center;    cursor: pointer;    transition: all 0.2s;}.action-btn-mini:hover {    background: #f1f5f9;    color: #1e293b;    border-color: #cbd5e1;}.action-btn-mini.success {    color: #16a34a;    border-color: #bcf0da;}.action-btn-mini.success:hover {    background: #f0fdf4;}/* ============================================================================   Premium Search Results   ============================================================================ */.search-result-item-premium {    display: flex;    align-items: center;    gap: 15px;    padding: 12px 16px;    cursor: pointer;    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);    border-radius: 12px;    margin: 2px 8px;}.search-result-item-premium:hover {    background: #f1f5f9;    transform: translateX(4px);}.search-result-item-premium .res-avatar {    width: 40px;    height: 40px;    border-radius: 12px;    display: flex;    align-items: center;    justify-content: center;    font-weight: 800;    font-size: 0.9rem;    flex-shrink: 0;}.search-result-item-premium .res-content {    flex: 1;    min-width: 0;}.search-result-item-premium .res-name {    font-weight: 750;    color: #1e293b;    font-size: 0.95rem;    white-space: nowrap;    overflow: hidden;    text-overflow: ellipsis;}.search-result-item-premium .res-meta {    display: flex;    gap: 12px;    margin-top: 2px;}.search-result-item-premium .res-meta span {    font-size: 0.75rem;    color: #64748b;    font-weight: 600;    display: flex;    align-items: center;    gap: 4px;}.search-result-item-premium .res-meta i {    color: #cbd5e1;}.search-result-item-premium .res-status-tag {    padding: 4px 10px;    border-radius: 8px;    font-size: 0.65rem;    font-weight: 850;    text-transform: uppercase;    letter-spacing: 0.03em;}.search-result-item-premium .res-status-tag.success {    background: #f0fdf4;    color: #16a34a;    border: 1px solid #dcfce7;}.search-result-item-premium .res-status-tag.danger {    background: #fef2f2;    color: #dc2626;    border: 1px solid #fee2e2;}.search-result-item-premium .res-status-tag.secondary {    background: #f8fafc;    color: #64748b;    border: 1px solid #f1f5f9;}/* ============================================================================   Premium Search v3 Redesign   ============================================================================ */.search-container-premium {    position: relative;    width: 100%;    max-width: 700px;    margin: 0 auto;}.search-input-group-ultra {    display: flex;    align-items: center;    background: white;    border: 2px solid #e2e8f0;    border-radius: 16px;    padding: 6px;    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);}.search-input-group-ultra:focus-within {    border-color: #3b82f6;    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.04);    transform: translateY(-2px);}.search-icon-box {    width: 44px;    height: 44px;    display: flex;    align-items: center;    justify-content: center;    color: #94a3b8;    font-size: 1.1rem;}.search-input-large {    flex: 1;    border: none;    outline: none;    padding: 8px;    font-size: 1.05rem;    font-weight: 600;    color: #1e293b;    background: transparent;}.search-action-btn {    background: linear-gradient(135deg, #3b82f6, #2563eb);    color: white;    border: none;    padding: 0 20px;    height: 44px;    border-radius: 12px;    font-weight: 800;    font-size: 0.75rem;    letter-spacing: 0.05em;    display: flex;    align-items: center;    gap: 8px;    cursor: pointer;    transition: all 0.3s;}.search-action-btn:hover {    transform: scale(1.02);    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);    filter: brightness(1.1);}.search-results-floating-panel {    display: none;    position: absolute;    top: calc(100% + 15px);    left: 0;    right: 0;    background: rgba(255, 255, 255, 0.95);    backdrop-filter: blur(10px);    border-radius: 20px;    border: 1px solid rgba(255, 255, 255, 0.5);    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);    z-index: 1000;    overflow: hidden;    max-height: 450px;    animation: slideDownFade 0.3s ease-out;}@keyframes slideDownFade {    from {        opacity: 0;        transform: translateY(-10px);    }    to {        opacity: 1;        transform: translateY(0);    }}.spinner-premium {    width: 40px;    height: 40px;    border: 3px solid rgba(59, 130, 246, 0.1);    border-top-color: #3b82f6;    border-radius: 50%;    animation: spin 0.8s linear infinite;}.search-result-item-premium {    display: flex;    align-items: center;    gap: 15px;    padding: 8px 16px;    cursor: pointer;    transition: all 0.2s;    border-bottom: 1px solid rgba(0, 0, 0, 0.03);}.search-result-item-premium:hover {    background: rgba(59, 130, 246, 0.05);}.search-result-item-premium:last-child {    border-bottom: none;}.res-avatar {    width: 44px;    height: 44px;    border-radius: 12px;    display: flex;    align-items: center;    justify-content: center;    font-weight: 800;    font-size: 0.9rem;}.res-content {    flex: 1;}.res-name {    font-weight: 750;    color: #1e293b;    font-size: 0.95rem;    margin-bottom: 2px;}.res-meta {    display: flex;    gap: 12px;    font-size: 0.75rem;    color: #94a3b8;    font-weight: 500;}.res-meta i {    margin-right: 4px;    opacity: 0.7;}.res-status-tag {    font-size: 0.65rem;    font-weight: 800;    padding: 4px 10px;    border-radius: 8px;    letter-spacing: 0.02em;}.res-status-tag.success {    background: #d1fae5;    color: #065f46;}.res-status-tag.danger {    background: #fee2e2;    color: #991b1b;}.res-status-tag.secondary {    background: #f1f5f9;    color: #475569;}/* Improved Grid for Stats */.financial-stats {    display: grid;    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));    gap: 16px;    margin-bottom: 24px;}/* Polished Stat Card */.payment-stat-card {    background: #ffffff;    border: 1px solid #e2e8f0;    border-radius: 16px;    padding: 16px;    display: flex;    justify-content: space-between;    align-items: center;    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);    position: relative;    border-left: 4px solid transparent;    /* Defined by specific classes */    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);}.payment-stat-card:hover {    transform: translateY(-3px);    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);}.payment-stat-info h4 {    font-size: 0.7rem;    text-transform: uppercase;    letter-spacing: 0.05em;    color: #64748b;    margin: 4px 0 0 0;    font-weight: 700;}.payment-stat-value {    font-size: 1.25rem;    font-weight: 800;    color: #1e293b;    line-height: 1;}/* Method Breakdown Cards (New Ultra Premium) */.method-card {    flex: 1;    min-width: 200px;    display: flex;    justify-content: space-between;    align-items: center;    padding: 16px 20px;    background: #ffffff;    border-radius: 16px;    border: 1px solid #e2e8f0;    transition: all 0.2s ease;    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);}.method-card:hover {    border-color: #cbd5e1;    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);    transform: translateY(-1px);}.method-card-left {    display: flex;    align-items: center;    gap: 12px;}.method-icon-box {    width: 42px;    height: 42px;    border-radius: 12px;    background: rgba(99, 102, 241, 0.1);    color: #6366f1;    display: flex;    align-items: center;    justify-content: center;    font-size: 1.1rem;}.method-info {    display: flex;    flex-direction: column;}.method-name {    font-weight: 700;    color: #334155;    font-size: 0.9rem;}.method-count {    font-size: 0.75rem;    color: #94a3b8;}.method-amount {    font-weight: 800;    font-size: 1.1rem;    color: #0f172a;    letter-spacing: -0.02em;}

/*  * Plans Module Styles - Premium Design System * Focus: High contrast, elegant card layouts, and intuitive plan management */

/* Plans Grid / Table Wrapper */
.plans-wrapper {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    margin-top: 24px;
}

/* Premium Table Styles */
.premium-plans-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.premium-plans-table thead th {
    background: #f8fafc;
    padding: 16px 24px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.premium-plans-table tbody td {
    padding: 18px 24px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.premium-plans-table tbody tr:hover td {
    background: #f8fafc;
}

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

/* Plan Name & ID Cell */
.plan-name-cell {
    display: flex;
    flex-direction: column;
}

.plan-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.plan-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    width: -moz-fit-content;
    width: fit-content;
}

/* Speed Badges */
.speed-badge-group {
    display: flex;
    gap: 8px;
}

.speed-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.speed-badge.download {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.speed-badge.upload {
    background: #eff6ff;
    color: #3b82f6;
    border: 1px solid #dbeafe;
}

.speed-badge i {
    font-size: 0.75rem;
}

/* Price Cell */
.price-display {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #1e293b;
    font-size: 1rem;
}

.currency-tag {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    margin-left: 4px;
}

/* Service Type Badges */
.service-badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-badge.pppoe {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.service-badge.simple_queue {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.service-badge.hotspot {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

/* Clients Counter */
.clients-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.clients-counter-pill:hover {
    background: #e0e7ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.clients-counter-pill.has-clients {
    background: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}

/* Action Buttons */
.plan-actions-cell {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-icon-soft {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
    color: #94a3b8;
}

.btn-icon-soft:hover {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

.btn-icon-soft.edit {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.05);
}

.btn-icon-soft.edit:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.btn-icon-soft.delete {
    color: #ef4444;
}

.btn-icon-soft.delete:hover {
    background: #fef2f2;
    border-color: #fee2e2;
    transform: translateY(-2px);
}

.btn-icon-soft.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Form Styles */
.form-text-premium {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    color: #94a3b8;
    font-style: italic;
}

/* Mobile Adaptations */
@media (max-width: 1024px) {
    .plans-wrapper {
        display: none !important;
    }

    .plans-cards-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 20px;
    }

    .view-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }

    .view-header .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Stats Row Mobile */
    .metrics-row {
        flex-direction: column !important;
    }
}

/* Reusing mobile card styles from clients for consistency */
.plan-card-mobile {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plans-cards-grid {
    display: none;
}
/* ============================================================================   SGUBM-V1 - NANO-DENSO OVERRIDE STYLES   Minimalismo Extremo para Monitoreo Profesional   ============================================================================ */
:root {
    --spacing-xs: 0.1rem !important;
    --spacing-sm: 0.2rem !important;
    --spacing-md: 0.4rem !important;
    --spacing-lg: 0.6rem !important;
    --spacing-xl: 0.8rem !important;
    --spacing-2xl: 1rem !important;
    --radius-lg: 8px !important;
    --font-size-base: 0.72rem !important;
    /* ReducciÃ³n de base */
}

body {
    font-size: var(--font-size-base) !important;
    line-height: 1.15 !important;
}

/* Sidebar Ultra-Minimal */
.sidebar {
    width: 170px !important;
}

.sidebar-header {
    padding: 0.8rem !important;
}

.logo-text {
    font-size: 1.1rem !important;
}

.main-content {
    margin-left: 200px !important;
    padding: 0.6rem 1rem !important;
}

/* ============================================================================   SGUBM-V1 - PREMIUM COMPACT STYLES   Equilibrio entre Legibilidad y Densidad   ============================================================================ */
/* ReducciÃ³n radical de la cabecera principal */
.view-header {
    padding: 0.6rem 1rem !important;
    min-height: 54px !important;
    margin-bottom: 0.6rem !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 12px !important;
    gap: 0.8rem !important;
    overflow: hidden !important;
}

.page-subtitle {
    display: none !important;
    /* Ocultar para ganar espacio */
}

.view-header .stats-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    width: auto !important;
}

.view-header .stat-card {
    padding: 0.2rem 0.8rem !important;
    min-height: 24px !important;
    height: auto !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 0.3rem !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 0 !important;
    align-items: center !important;
    margin: 0 !important;
}

.view-header .stat-card:last-child {
    border-right: none !important;
}

.view-header .stat-icon {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.view-header .stat-icon svg {
    width: 14px !important;
    height: 14px !important;
    opacity: 0.7 !important;
}

.view-header .stat-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.3rem !important;
}

.view-header .stat-label {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    opacity: 0.7 !important;
    text-transform: uppercase;
}

.view-header .stat-value {
    font-size: 1.1rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

/* Ocultar elementos extra en cabecera */
.view-header .stat-card .btn-icon-mini,
.view-header .stat-card br {
    display: none !important;
}

/* TÃ­tulo Dashboard super compacto */
.view-header .page-title {
    font-size: 1.2rem !important;
    white-space: nowrap !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    margin-right: 1.5rem !important;
}

/* Stats Cards Nano */
.stats-grid {
    gap: 0.4rem !important;
    margin-bottom: 0.4rem !important;
}

.stat-card {
    padding: 0.4rem 0.6rem !important;
    min-height: 50px !important;
}

.stat-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
}

.stat-icon svg {
    width: 16px !important;
    height: 16px !important;
}

.stat-value {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
}

.stat-label {
    font-size: 0.68rem !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Dashboard Metrics Text */
.stat-subtext {
    font-size: 0.6rem !important;
    margin-top: -2px !important;
}

/* GrÃ¡ficos Nano */
.charts-grid {
    gap: 0.4rem !important;
    margin-bottom: 0.5rem !important;
}

.chart-card {
    padding: 0.5rem !important;
}

.chart-container {
    height: 130px !important;
}

/* Listas de control */
.server-mini-item,
.activity-item {
    padding: 0.3rem 0.5rem !important;
}

/* ============================================================================   SGUBM-V1 - SPACIOUS MINIMALIST (BIG CARD, SMALL TEXT)   ============================================================================ */
/* Fichas minimalistas consistentes con Reportes */
.view-header .stat-card {
    padding: 12px 16px !important;
    height: 54px !important;
    flex: 1 1 auto !important;
    min-width: 100px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease !important;
}

.view-header .stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.view-header .stats-grid {
    flex: 1 1 auto !important;
    display: flex !important;
    gap: 12px !important;
    margin-left: 0.5rem !important;
}

/* Evitar recortes */
.view-header {
    overflow: visible !important;
    display: flex !important;
    width: 100% !important;
}

.view-header .stat-value {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
}

.view-header .stat-label {
    font-size: 0.55rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    opacity: 0.6 !important;
}

/* Iconos de las fichas - mÃ¡s pequeÃ±os */
.view-header .stat-icon {
    width: 28px !important;
    height: 28px !important;
    opacity: 0.85 !important;
}

/* Colores minimalistas - borde izquierdo de color */
/* 1. Servidores Activos */
.view-header .stat-card:nth-child(1) {
    border-left: 3px solid #6366f1 !important;
}

.view-header .stat-card:nth-child(1) .stat-value {
    color: #4f46e5 !important;
}

.view-header .stat-card:nth-child(1) .stat-icon {
    color: #6366f1 !important;
}

/* 2. Clientes Activos */
.view-header .stat-card:nth-child(2) {
    border-left: 3px solid #0ea5e9 !important;
}

.view-header .stat-card:nth-child(2) .stat-value {
    color: #0284c7 !important;
}

.view-header .stat-card:nth-child(2) .stat-icon {
    color: #0ea5e9 !important;
}

/* 3. Suspendidos */
.view-header .stat-card:nth-child(3) {
    border-left: 3px solid #ef4444 !important;
}

.view-header .stat-card:nth-child(3) .stat-value {
    color: #dc2626 !important;
}

.view-header .stat-card:nth-child(3) .stat-icon {
    color: #ef4444 !important;
}

/* 4. FacturaciÃ³n */
.view-header .stat-card:nth-child(4) {
    border-left: 3px solid #10b981 !important;
}

.view-header .stat-card:nth-child(4) .stat-value {
    color: #059669 !important;
}

.view-header .stat-card:nth-child(4) .stat-icon {
    color: #10b981 !important;
}

/* 5. Cartera Pendiente */
.view-header .stat-card:nth-child(5) {
    border-left: 3px solid #f59e0b !important;
}

.view-header .stat-card:nth-child(5) .stat-value {
    color: #d97706 !important;
}

.view-header .stat-card:nth-child(5) .stat-icon {
    color: #f59e0b !important;
}

/* GrÃ¡ficos con buen tamaÃ±o */
.chart-container {
    height: 160px !important;
}

.server-mini-name {
    font-size: 0.78rem !important;
}

.server-mini-ip {
    font-size: 0.65rem !important;
}

/* Botones Nano */
.action-btn {
    width: 24px !important;
    height: 24px !important;
}

.action-btn i {
    font-size: 10px !important;
}

/* Modales Nano */
.modal-content {
    padding: 0.5rem !important;
}

.form-group {
    margin-bottom: 3px !important;
}

.form-group label {
    font-size: 0.72rem !important;
    margin-bottom: 1px !important;
}

.form-control,
.form-select,
.input-premium {
    padding: 5px 8px !important;
    font-size: 0.8rem !important;
}

/* Navigation compacta */
.sidebar-nav {
    padding: 0.4rem !important;
    gap: 1px !important;
}

.nav-item {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.82rem !important;
}

.nav-item svg {
    width: 16px !important;
    height: 16px !important;
}

/* Footer de Usuario */
.sidebar-footer {
    padding: 0.4rem !important;
}

.user-avatar {
    width: 28px !important;
    height: 28px !important;
}

/* Tablas Densas Nano-Text */
.table th,
.table td,
.clients-table th,
.clients-table td {
    padding: 3px 6px !important;
    vertical-align: middle !important;
}

.table th,
.clients-table th {
    font-size: 0.65rem !important;
    letter-spacing: 0.04em !important;
}

.client-real-name {
    font-size: 0.82rem !important;
    font-weight: 750 !important;
}

.ip-badge,
.client-code {
    font-size: 0.7rem !important;
}

.credential-text {
    font-size: 0.68rem !important;
}

.plan-name,
.badge-status-table,
.status-badge-table {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
}

.debt-amount {
    font-size: 0.72rem !important;
}

.client-avatar {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
}

/* CorrecciÃ³n de MenÃº de Acciones (Fix Recorte) */
.action-menu {
    display: flex !important;
    gap: 2px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    min-width: 135px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

.table td:last-child,
.clients-table td:last-child {
    min-width: 140px !important;
    width: 140px !important;
    overflow: visible !important;
}

/* Botones Nano aÃºn mÃ¡s precisos */
.action-btn {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

.action-btn i {
    font-size: 9px !important;
}

/* Fix: Iconos solapados en inputs de modales */
.input-icon-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.input-icon-wrapper .field-icon {
    position: absolute !important;
    left: 10px !important;
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.input-icon-wrapper .form-control,
.input-icon-wrapper input,
.input-group-premium input,
.input-with-icon input {
    padding-left: 44px !important;
    /* Espacio amplio para el icono */
}

/* Ajuste para textarea con icono */
.input-icon-wrapper textarea.form-control {
    padding-top: 10px !important;
}

.input-icon-wrapper .field-icon.fa-map-marked-alt,
.input-icon-wrapper .field-icon.fa-map-pin {
    top: 12px !important;
    transform: none !important;
}

/* Mobile Payments Grid "Ultra-Premium" */
.cards-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    padding: 10px;
    margin-top: 8px;
}

.payment-card-premium,
.invoice-card-premium {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.invoice-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.invoice-card-premium .card-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.invoice-card-premium .client-info-premium {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoice-card-premium .avatar-premium {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #38bdf8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.invoice-card-premium .client-meta-premium {
    display: flex;
    flex-direction: column;
}

.invoice-card-premium .client-name-premium {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.invoice-card-premium .subscriber-code-premium {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.invoice-card-premium .status-pill-premium {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-pill-premium.success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #10b98133;
}

.status-pill-premium.warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #f59e0b33;
}

.status-pill-premium.danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #ef444433;
}

.status-pill-premium.secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e133;
}

.invoice-card-premium .amount-section-premium {
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-card-premium .amount-label-premium {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.invoice-card-premium .amount-value-premium {
    font-size: 1.35rem;
    font-weight: 900;
    color: #4f46e5;
    letter-spacing: -0.02em;
}

.invoice-card-premium .date-grid-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.invoice-card-premium .date-item-premium {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.invoice-card-premium .date-label-premium {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
}

.invoice-card-premium .date-value-premium {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.invoice-card-premium .card-actions-premium {
    margin-top: 4px;
    display: flex;
    gap: 10px;
}

.card-actions-premium .btn-premium-action {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-actions-premium .btn-premium-action:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-2px);
}

.card-actions-premium .btn-premium-action.primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Menú Contextual (Tres Puntos) para Tarjetas */
.card-menu-container {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.btn-menu-trigger {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(241, 245, 249, 0.8);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-menu-trigger:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.card-context-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    display: none;
    flex-direction: column;
    padding: 6px;
    z-index: 100;
}

.card-context-menu.active {
    display: flex;
    animation: slideInDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item-premium {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.menu-item-premium:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.menu-item-premium i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.menu-item-premium.danger {
    color: #dc2626;
}

.menu-item-premium.danger:hover {
    background: #fef2f2;
}

/* Tarjetas de Pagos Premium - Ultra Refined */
.payment-card-premium {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--success);
    opacity: 0.8;
}

.payment-card-premium .card-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding-bottom: 10px;
}

.payment-card-premium .receipt-id {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    color: #1e293b;
    font-size: 0.85rem;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
}

.payment-card-premium .card-body-premium {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-card-premium .main-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.payment-card-premium .amount-value-premium {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 850;
    color: #059669 !important;
    letter-spacing: -0.02em;
    line-height: 1;
}

.payment-card-premium .amount-value-premium .currency {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-left: 2px;
}

.payment-card-premium .method-badge-premium {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.payment-card-premium .meta-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(0, 0, 0, 0.015);
    padding: 10px;
    border-radius: 12px;
}

.payment-card-premium .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 600;
}

.payment-card-premium .meta-item i {
    width: 14px;
    text-align: center;
    color: #94a3b8;
}

.payment-card-premium .meta-item.full-width {
    grid-column: span 2;
    border-top: 1px dashed #e2e8f0;
    padding-top: 6px;
    margin-top: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
}

.payment-card-premium .card-footer-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 5px;
}

.payment-card-premium .card-action-btn {
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
}

.payment-card-premium .card-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.payment-card-premium .card-action-btn.success:hover {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.payment-card-premium .card-action-btn.danger:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividad para Toolbar de Facturas */
@media (max-width: 1100px) {
    .clients-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    .toolbar-group {
        flex-direction: column !important;
        width: 100% !important;
    }

    .filter-item {
        width: 100% !important;
        min-width: 0 !important;
    }

    .toolbar-actions {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .toolbar-actions .btn-premium {
        flex: 1 !important;
    }
}

/* Mobile Dropdown Menu */
.mobile-dropdown-container {
    position: relative;
    display: inline-block;
}

.mobile-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    bottom: 100%;
    margin-bottom: 5px;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 50;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: slideUpFade 0.2s ease-out;
}

.mobile-dropdown-menu.show {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-menu .dropdown-item {
    color: #1e293b;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.mobile-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu .dropdown-item:active {
    background-color: #f8fafc;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- Premium Compact Modal Styles --- */
.premium-compact-modal {
    max-width: 440px !important;
    width: 90%;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    position: relative;
}

.modal-header-compact {
    padding: 24px 28px 15px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.header-bg-glow {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.header-content-row {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
}

.header-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.header-titles h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.header-titles p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.close-btn-compact {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
    transition: color 0.2s;
    z-index: 2;
}

.close-btn-compact:hover {
    color: #f43f5e;
}

.modal-body-compact {
    padding: 10px 28px 24px;
}

/* Detection Card */
.detection-summary-card {
    background: #f0fdf4;
    border: 1px dashed #86efac;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    gap: 12px;
    margin-bottom: 24px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.detection-summary-card span {
    font-size: 0.9rem;
    color: #166534;
    font-weight: 600;
}

.detection-summary-card strong {
    color: #14532d;
    font-weight: 800;
}

/* Strategy Switcher */
.section-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.strategy-switcher {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    display: flex;
    position: relative;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.switch-option {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
}

.switch-option.active {
    color: #4f46e5;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.switch-option i {
    font-size: 0.9rem;
}

/* Inputs */
.options-container-compact {
    min-height: 90px;
    animation: fadeIn 0.3s ease;
}

.form-control-premium-compact {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s;
    outline: none;
    font-weight: 500;
    appearance: none;
    /* Hide default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-control-premium-compact:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.pl-8 {
    padding-left: 36px;
}

.input-wrapper-compact,
.select-wrapper-compact {
    position: relative;
}

.input-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.input-icon-left-static {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.8rem;
    pointer-events: none;
}

.option-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
    margin-left: 2px;
}

.option-hint.warning {
    color: #f59e0b;
    font-weight: 500;
}

.mt-4 {
    margin-top: 16px;
}

/* Footer */
.modal-footer-compact {
    padding: 16px 28px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fff;
}

.btn-ghost-compact {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost-compact:hover {
    background: #f1f5f9;
    color: #334155;
}

.btn-primary-compact {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-primary-compact:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Medium Sized Premium Modal */
.premium-modal-medium {
    max-width: 800px !important;
    width: 95%;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    /* Prevent modal from being taller than viewport */
}

.modal-body-compact.scrollable {
    overflow-y: auto;
    flex: 1;
    /* Allow body to take available space */
    padding-top: 10px;
}

/* Premium Form Grid for larger modals */
.form-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
}

.form-grid-premium .span-2 {
    grid-column: span 2;
}

.input-label-premium {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #64748b;
    /* Slate 500 */
    font-weight: 800;
    letter-spacing: 0.05em;
    /* Slightly wider tracking */
    margin-bottom: 6px;
    margin-left: 2px;
}

/* Tab Content Visibility */
.tab-content-router {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content-router.active {
    display: block;
}

/* Toggle Password Eye Fix */
.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}

.password-toggle-icon:hover {
    color: #4f46e5;
}

/* Large Sized Premium Modal (Router Details) */
.premium-modal-large {
    max-width: 900px !important;
    width: 95%;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

/* Enhancing Strategy Switcher for more tabs */
.strategy-switcher .switch-option span {
    display: inline-block;
}

@media (max-width: 640px) {
    .strategy-switcher .switch-option span {
        display: none;
    }
    .strategy-switcher .switch-option i {
        font-size: 1.2rem;
    }
}

.premium-row:hover {
    background: rgba(79, 70, 229, 0.02);
}
