/* ============================================
   HEMP GHOST CMD v2 · Custom Styles
   ============================================ */

:root {
  --hg-bg: #0a0a0a;
  --hg-pink: #FF2D92;
  --hg-cyan: #00E5FF;
  --hg-danger: #FF3366;
  --hg-success: #B4F82A;
  --hg-text: #FFFFFF;
  --hg-muted: rgba(255,255,255,0.40);
  --hg-muted-2: rgba(255,255,255,0.25);
  --hg-surface: rgba(255,255,255,0.03);
  --hg-border: rgba(255,255,255,0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--hg-bg);
  color: var(--hg-text);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Font utilities */
.font-goldman { font-family: 'Goldman', 'Inter', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }
.tabular-nums { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--hg-pink); }

::selection { background: var(--hg-pink); color: white; }

/* ============================================
   BACKGROUND AMBIENT (subtle cyan/pink glow)
   ============================================ */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,45,146,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   LAYOUT
   ============================================ */
.app-shell {
  position: relative;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: #0f0f14;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-overlay {
  display: none;
}

.main {
  flex: 1;
  margin-left: 260px;
  padding: 28px 32px 80px;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,0.7); }
  .main { margin-left: 0; padding: 72px 16px 80px; }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 100;
    display: none;
  }
  .sidebar-overlay.open { display: block; }
}

/* ============================================
   BRAND
   ============================================ */
.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px 20px;
  border-bottom: 1px solid #141414;
  margin-bottom: 16px;
}
.brand-title {
  font-family: 'Goldman', sans-serif;
  font-size: 18px;
  letter-spacing: 0.25em;
  color: var(--hg-text);
}
.brand-accent {
  background: linear-gradient(135deg, #FF2D92, #00E5FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-subtitle {
  font-family: 'Goldman', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}
.brand-divider {
  height: 1px;
  background: linear-gradient(90deg, #FF2D92, #00E5FF, transparent);
  margin-top: 8px;
}

/* ============================================
   NAV LINKS
   ============================================ */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: 'Goldman', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: all 0.2s ease;
}
.nav-link:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,1);
}
.nav-link.active {
  background: rgba(255,45,146,0.08);
  border-color: rgba(255,45,146,0.20);
  color: var(--hg-cyan);
  box-shadow: inset 2px 0 0 var(--hg-cyan);
}
.nav-link .icon { font-size: 16px; }

/* ============================================
   SIDEBAR USER / LOGOUT
   ============================================ */
.user-block {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid #141414;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF2D92, #00E5FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Goldman', sans-serif;
  font-weight: 700;
  color: #0a0a0a;
}
.user-info { flex: 1; min-width: 0; }
.user-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: white;
}
.user-role {
  font-family: 'Goldman', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  margin-top: 2px;
}
.logout-btn {
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.logout-btn:hover { color: var(--hg-danger); }

/* ============================================
   MOBILE HAMBURGER
   ============================================ */
.hamburger {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 250;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(10,10,10,0.9);
  border: 1px solid #1e1e1e;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: white;
  margin: 3px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .hamburger { display: flex; }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.page-title {
  font-family: 'Goldman', sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 0.06em;
  color: white;
  text-transform: uppercase;
  margin: 0;
}
.page-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ============================================
   CARDS / SURFACES
   ============================================ */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card.hoverable {
  cursor: pointer;
}
.card.hoverable:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ============================================
   KPI CARDS
   ============================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (min-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.kpi-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 16px 10px;
  position: relative;
  overflow: visible;
  transition: all 0.25s ease;
  text-align: center;
  min-width: 0;
}
@media (max-width: 720px) {
  .kpi-card { padding: 14px 6px; }
}
.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.02) 100%);
  pointer-events: none;
}
.kpi-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.kpi-label {
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.kpi-value {
  font-family: 'Goldman', sans-serif;
  font-size: clamp(16px, 4.5vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: visible;
  text-align: center;
  width: 100%;
}
.kpi-value.cyan { color: var(--hg-cyan); text-shadow: 0 0 24px rgba(0,229,255,0.25); }
.kpi-value.pink { color: var(--hg-pink); text-shadow: 0 0 24px rgba(255,45,146,0.25); }
.kpi-value.success { color: var(--hg-success); text-shadow: 0 0 24px rgba(180,248,42,0.20); }
.kpi-value.danger { color: var(--hg-danger); text-shadow: 0 0 24px rgba(255,51,102,0.25); }
.kpi-trend {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   HERO CLOCK CARD (dashboard)
   ============================================ */
.hero-clock {
  position: relative;
  overflow: hidden;
  background: #08080a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  padding: 36px 32px;
  margin-bottom: 24px;
}
.hero-clock::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,229,255,0.12), transparent 70%);
  pointer-events: none;
}
.hero-clock::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,45,146,0.10), transparent 70%);
  pointer-events: none;
}
.hero-clock-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.clock-value {
  font-family: 'Goldman', sans-serif;
  font-size: clamp(42px, 9vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: white;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(255,255,255,0.08);
}
.clock-greeting {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.clock-date {
  font-family: 'Goldman', sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--hg-cyan);
  text-transform: uppercase;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.clock-date::before {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(0,229,255,0.5);
}

/* ============================================
   STATUS PILL (SYSTEM ONLINE)
   ============================================ */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(180,248,42,0.08);
  border: 1px solid rgba(180,248,42,0.25);
}
.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hg-success);
  box-shadow: 0 0 10px var(--hg-success);
  animation: pulse-dot 2s ease-in-out infinite;
}
.status-pill .label {
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--hg-success);
  text-transform: uppercase;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ============================================
   CTA BUTTONS / QUICK ACTIONS
   ============================================ */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.cta-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: white;
  transition: all 0.25s ease;
  cursor: pointer;
}
.cta-tile:hover {
  background: rgba(255,45,146,0.06);
  border-color: rgba(255,45,146,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,45,146,0.15);
}
.cta-tile .icon { font-size: 26px; }
.cta-tile .label {
  font-family: 'Goldman', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: 'Goldman', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* btn-primary standalone (cuando no hay .btn base) también redondeado */
.btn-primary:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: 'Goldman', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #FF2D92, #c21a70);
  color: white;
  box-shadow: 0 4px 20px rgba(255,45,146,0.25);
}
.btn-primary:not(.btn):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,45,146,0.45);
}

/* Buttons grandes (en forms) también pill */
.btn-big { border-radius: 999px !important; padding: 16px 24px !important; }
.btn-primary {
  background: linear-gradient(135deg, #FF2D92, #c21a70);
  color: white;
  box-shadow: 0 4px 20px rgba(255,45,146,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,45,146,0.45);
}
.btn-cyan {
  background: rgba(0,229,255,0.10);
  border: 1px solid rgba(0,229,255,0.30);
  color: var(--hg-cyan);
}
.btn-cyan:hover {
  background: rgba(0,229,255,0.18);
  box-shadow: 0 4px 20px rgba(0,229,255,0.25);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  color: white;
  background: rgba(255,255,255,0.03);
}
.btn:focus-visible {
  outline: 2px solid var(--hg-cyan);
  outline-offset: 2px;
}

/* ============================================
   INPUTS
   ============================================ */
.input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
}
.input::placeholder { color: rgba(255,255,255,0.25); }
.input:focus {
  border-color: rgba(0,229,255,0.5);
  background: rgba(0,229,255,0.03);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.12);
}

.search-wrap {
  position: relative;
  margin-bottom: 20px;
}
.search-wrap .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.25);
  pointer-events: none;
}
.search-wrap .input { padding-left: 42px; }

/* ============================================
   TABLES
   ============================================ */
.table-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table thead tr {
  background: linear-gradient(90deg, rgba(255,45,146,0.08), rgba(255,45,146,0.02));
  border-bottom: 1px solid rgba(255,45,146,0.15);
}
.table thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
}
.table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s ease;
}
.table tbody tr:last-child { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255,255,255,0.04); }
.table tbody td {
  padding: 14px 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.table tbody td.num {
  font-family: 'Goldman', sans-serif;
  font-variant-numeric: tabular-nums;
}

/* Mobile: table becomes cards */
@media (max-width: 768px) {
  .table-wrap { border: 0; background: transparent; }
  .table, .table thead, .table tbody, .table tr, .table td, .table th {
    display: block;
  }
  .table thead { display: none; }
  .table tbody tr {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
  }
  .table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: 0;
  }
  .table tbody td::before {
    content: attr(data-label);
    font-family: 'Goldman', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
  }
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid;
}
.badge-cyan { background: rgba(0,229,255,0.10); color: var(--hg-cyan); border-color: rgba(0,229,255,0.30); }
.badge-pink { background: rgba(255,45,146,0.10); color: var(--hg-pink); border-color: rgba(255,45,146,0.30); }
.badge-success { background: rgba(180,248,42,0.10); color: var(--hg-success); border-color: rgba(180,248,42,0.25); }
.badge-warning { background: rgba(251,191,36,0.10); color: #fbbf24; border-color: rgba(251,191,36,0.25); }
.badge-danger { background: rgba(255,51,102,0.10); color: var(--hg-danger); border-color: rgba(255,51,102,0.30); }
.badge-grey { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.08); }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty {
  text-align: center;
  padding: 60px 20px;
}
.empty .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.empty h3 {
  font-family: 'Goldman', sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: white;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.empty p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  max-width: 320px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

/* ============================================
   LOGIN SPECIFIC
   ============================================ */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 44px 32px;
  backdrop-filter: blur(24px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,45,146,0.05),
    inset 0 1px 0 rgba(255,255,255,0.05);
}
.login-logo {
  font-family: 'Goldman', sans-serif;
  font-size: 28px;
  letter-spacing: 0.25em;
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FF2D92, #00E5FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-subtitle {
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-align: center;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.login-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,45,146,0.4), rgba(0,229,255,0.4), transparent);
  margin-bottom: 32px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.login-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
}
.login-error {
  background: rgba(255,51,102,0.08);
  border: 1px solid rgba(255,51,102,0.25);
  color: var(--hg-danger);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  text-align: center;
}
.login-footer {
  text-align: center;
  margin-top: 32px;
  font-family: 'Goldman', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.15);
  text-transform: uppercase;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fade-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 160ms; }
.delay-3 { animation-delay: 240ms; }
.delay-4 { animation-delay: 320ms; }

/* ============================================
   FILTERS ROW
   ============================================ */
.filters-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filters-row .input { flex: 1; min-width: 240px; }
.filters-row select.input {
  min-width: 180px;
  flex: 0 1 auto;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 36px;
}

/* ============================================
   PDF LINK / INLINE ACTION
   ============================================ */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--hg-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}
.icon-btn:hover {
  background: rgba(0,229,255,0.18);
  transform: translateY(-1px);
}
.icon-btn.danger {
  background: rgba(255,51,102,0.08);
  border-color: rgba(255,51,102,0.25);
  color: var(--hg-danger);
}

/* ============================================
   FORMS (append — agregado 2026-04-19)
   ============================================ */
.page-eyebrow {
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--hg-cyan, #00E5FF);
  margin-bottom: 6px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-family: 'Goldman', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.form-card {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  padding: 28px;
  backdrop-filter: blur(8px);
  margin-top: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.span-2 { grid-column: span 2; }
@media (max-width: 720px) {
  .field.span-2 { grid-column: span 1; }
}

.field-label {
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--hg-cyan, #00E5FF);
  background: rgba(0,229,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}
.field textarea {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300E5FF' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

.form-error {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,51,102,0.08);
  border: 1px solid rgba(255,51,102,0.25);
  color: rgba(255,150,170,0.95);
  font-size: 13px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Page header: add justify-content:space-between when has action button */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ============================================
   SONNY RECONECTAR
   ============================================ */
.sonny-page { padding: 4px 0; }
.sonny-wrap { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

/* Header */
.sonny-header { display: flex; align-items: center; justify-content: space-between; }
.sonny-header-left { display: flex; align-items: center; gap: 14px; }
.sonny-icon-box {
  width: 48px; height: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(255,45,146,0.10));
  border: 1px solid rgba(0,229,255,0.28);
  font-size: 22px;
  box-shadow: 0 0 24px rgba(0,229,255,0.15);
}
.sonny-title {
  margin: 0;
  font-family: 'Goldman', sans-serif;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}
.sonny-subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.30);
  text-transform: uppercase;
}

/* Status card */
.sonny-status-card {
  border-radius: 20px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s, border-color 0.3s;
}
@media (min-width: 768px) {
  .sonny-status-card { flex-direction: row; align-items: center; justify-content: space-between; }
}
.sonny-status-card.state-online   { background: rgba(180,248,42,0.06);  border-color: rgba(180,248,42,0.30); }
.sonny-status-card.state-online .sonny-status-msg { color: var(--hg-success); }
.sonny-status-card.state-online .sonny-status-dot { background: var(--hg-success); box-shadow: 0 0 10px rgba(180,248,42,0.65); }

.sonny-status-card.state-expired  { background: rgba(255,51,102,0.06);  border-color: rgba(255,51,102,0.35); }
.sonny-status-card.state-expired .sonny-status-msg { color: #ff8aa3; }
.sonny-status-card.state-expired .sonny-status-dot { background: var(--hg-danger); box-shadow: 0 0 10px rgba(255,51,102,0.65); }

.sonny-status-card.state-down     { background: rgba(255,51,102,0.06);  border-color: rgba(255,51,102,0.35); }
.sonny-status-card.state-down .sonny-status-msg { color: #ff8aa3; }
.sonny-status-card.state-down .sonny-status-dot { background: var(--hg-danger); box-shadow: 0 0 10px rgba(255,51,102,0.65); }

.sonny-status-card.state-error    { background: rgba(251,191,36,0.07); border-color: rgba(251,191,36,0.35); }
.sonny-status-card.state-error .sonny-status-msg { color: #fbbf24; }
.sonny-status-card.state-error .sonny-status-dot { background: #fbbf24; box-shadow: 0 0 10px rgba(251,191,36,0.65); }

.sonny-status-card.state-loading  { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.10); }
.sonny-status-card.state-loading .sonny-status-msg { color: rgba(255,255,255,0.55); }
.sonny-status-card.state-loading .sonny-status-dot { background: rgba(255,255,255,0.30); }

.sonny-status-left { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1; }
.sonny-status-text { min-width: 0; flex: 1; }
.sonny-status-msg {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
.sonny-status-dot {
  width: 12px; height: 12px; border-radius: 50%;
  flex-shrink: 0; margin-top: 4px;
  animation: sonny-pulse 2s ease-in-out infinite;
}
@keyframes sonny-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.sonny-status-pills {
  display: flex; flex-wrap: wrap;
  column-gap: 12px; row-gap: 4px;
  margin-top: 6px;
}
.sonny-pill {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
}
.sonny-pill b { font-weight: 700; }
.sonny-pill b.ok   { color: var(--hg-success); }
.sonny-pill b.bad  { color: var(--hg-danger); }
.sonny-pill b.warn { color: #fbbf24; }

.sonny-status-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
}
@media (min-width: 768px) {
  .sonny-status-actions { flex-wrap: nowrap; }
}

.sonny-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.sonny-btn .i { font-size: 14px; }
.sonny-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sonny-btn-cyan {
  background: rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.30);
  color: var(--hg-cyan);
}
.sonny-btn-cyan:hover:not(:disabled) { background: rgba(0,229,255,0.16); }
.sonny-btn-danger {
  background: rgba(255,51,102,0.08);
  border-color: rgba(255,51,102,0.30);
  color: #ff6680;
}
.sonny-btn-danger:hover:not(:disabled) { background: rgba(255,51,102,0.16); }
.sonny-btn-neutral {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.65);
}
.sonny-btn-neutral:hover:not(:disabled) { background: rgba(255,255,255,0.07); color: white; }

/* Warning */
.sonny-warning {
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,51,102,0.06);
  border: 1px solid rgba(255,51,102,0.25);
}
.sonny-warning-title { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: #ff8aa3; }
.sonny-warning-sub   { margin: 0; font-size: 11px; color: rgba(255,255,255,0.35); }

/* Flash */
.sonny-flash {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
}
.sonny-flash.ok  { background: rgba(180,248,42,0.08); border: 1px solid rgba(180,248,42,0.30); color: var(--hg-success); }
.sonny-flash.err { background: rgba(255,51,102,0.10); border: 1px solid rgba(255,51,102,0.30); color: #ff6680; }

/* Main card */
.sonny-main-card {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  padding: 32px 24px;
}
.sonny-pane { display: none; }
.sonny-main-card[data-state="idle"] .sonny-pane-idle { display: block; }
.sonny-main-card[data-state="auto"] .sonny-pane-auto { display: block; }

.sonny-idle-inner { text-align: center; max-width: 420px; margin: 0 auto; }
.sonny-idle-lead {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}
.sonny-cta-primary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 16px 28px;
  border-radius: 18px;
  font-family: 'Goldman', sans-serif;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--hg-pink) 0%, var(--hg-cyan) 100%);
  color: #0a0a0a;
  box-shadow: 0 0 32px rgba(255,45,146,0.30), 0 0 32px rgba(0,229,255,0.18);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  margin-bottom: 12px;
}
.sonny-cta-primary:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(255,45,146,0.45), 0 0 40px rgba(0,229,255,0.28);
}
.sonny-cta-primary:disabled {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.25);
  box-shadow: none;
  cursor: not-allowed;
}
.sonny-cta-sub {
  margin: 0 0 32px;
  font-size: 11px;
  color: rgba(255,255,255,0.30);
}

.sonny-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.sonny-divider-line { flex: 1; height: 1px; background: rgba(255,255,255,0.10); }
.sonny-divider-label {
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
}

.sonny-steps { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.sonny-step {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.40);
}
.sonny-step .n { color: var(--hg-cyan); font-weight: 700; }

/* Auto pane */
.sonny-auto-inner { max-width: 480px; margin: 0 auto; }
.sonny-auto-head { text-align: center; margin-bottom: 22px; }
.sonny-auto-emoji { font-size: 44px; margin-bottom: 10px; line-height: 1; }
.sonny-auto-title {
  margin: 0 0 6px;
  font-family: 'Goldman', sans-serif;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}
.sonny-auto-message {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.50);
}

.sonny-auto-form { display: flex; flex-direction: column; gap: 14px; }
.sonny-auto-link-wrap { text-align: center; }
.sonny-auto-link {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 12px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.30);
  color: var(--hg-cyan);
  font-family: 'Goldman', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.sonny-auto-link:hover { background: rgba(0,229,255,0.16); }

.sonny-code-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: #0a0a0a;
  border: 2px solid rgba(0,229,255,0.30);
  color: var(--hg-cyan);
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sonny-code-input:focus {
  border-color: var(--hg-cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.18);
}
.sonny-code-input::placeholder { color: rgba(0,229,255,0.30); }

.sonny-auto-back { text-align: center; margin-top: 12px; }

/* Footer */
.sonny-footer {
  text-align: center;
  font-size: 10px;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* Logs modal */
.sonny-logs-overlay {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.80);
  padding: 16px;
}
.sonny-logs-modal {
  width: 100%; max-width: 960px; max-height: 80vh;
  border-radius: 18px;
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sonny-logs-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #1a1a1a;
}
.sonny-logs-head-left { display: flex; align-items: center; gap: 8px; }
.sonny-logs-title {
  margin: 0;
  font-family: 'Goldman', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.80);
}
.sonny-logs-head-right { display: flex; align-items: center; gap: 10px; }
.sonny-logs-action {
  background: transparent; border: 0; cursor: pointer;
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.40);
  transition: color 0.2s;
}
.sonny-logs-action:hover { color: white; }
.sonny-logs-x { font-size: 16px; letter-spacing: 0; }
.sonny-logs-pre {
  flex: 1;
  overflow: auto;
  margin: 0;
  padding: 16px 20px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #ccc;
  background: #050505;
}

/* Nav secondary (bottom) - link a Sonny Reconectar */
.nav-secondary {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.nav-link-secondary {
  font-size: 10px !important;
  color: rgba(255,255,255,0.55) !important;
  letter-spacing: 0.18em !important;
}
.nav-link-secondary:hover {
  color: rgba(0,229,255,0.95) !important;
  background: rgba(0,229,255,0.04) !important;
}

/* ==========================================================
   GHOST GLOW ADMIN PANEL (v2)
   Paleta Hemp Ghost: cyan #00E5FF + pink #FF2D92 + bg #0a0a0a
   ========================================================== */

.glow-admin { display: flex; flex-direction: column; gap: 1.5rem; }
.glow-admin .hidden { display: none !important; }

/* Hero */
.glow-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(135deg, rgba(0,229,255,0.06) 0%, rgba(10,10,10,0.95) 40%, rgba(255,45,146,0.05) 100%);
  padding: 1.75rem;
}
.glow-hero-blur {
  position: absolute; width: 10rem; height: 10rem; border-radius: 9999px; filter: blur(80px); pointer-events: none;
}
.glow-hero-blur-cyan { top: 0; right: 0; background: rgba(0,229,255,0.08); }
.glow-hero-blur-pink { bottom: 0; left: 0; background: rgba(255,45,146,0.08); }
.glow-hero-content { position: relative; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.glow-hero-emoji { font-size: 2.25rem; }
.glow-hero-title {
  font-family: Goldman, sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(135deg, #ffffff, #00E5FF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
  margin: 0;
}
.glow-hero-subtitle { color: rgba(255,255,255,0.5); font-size: 0.875rem; margin: 0.25rem 0 0; }
.glow-hero-status { margin-left: auto; font-size: 0.85rem; }
.glow-status-green { color: #B4F82A; background: rgba(180,248,42,0.08); border: 1px solid rgba(180,248,42,0.3); padding: 0.35rem 0.75rem; border-radius: 9999px; }
.glow-status-red   { color: #FF3366; background: rgba(255,51,102,0.1); border: 1px solid rgba(255,51,102,0.4); padding: 0.35rem 0.75rem; border-radius: 9999px; }

/* Banner fraude */
.glow-fraud-banner {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(127,29,29,0.3);
  border: 1px solid rgba(239,68,68,0.5);
  border-radius: 1rem;
  color: #fecaca;
  font-size: 0.9rem;
}
.glow-fraud-icon { font-size: 1.25rem; }
.glow-fraud-link { margin-left: auto; color: #FF2D92; text-decoration: underline; }

/* KPIs */
.glow-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.75rem;
}
@media (min-width: 900px) { .glow-kpi-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.glow-kpi-card {
  padding: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
}
.glow-kpi-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
}
.glow-kpi-value {
  font-family: Goldman, sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1;
}

/* Tabs */
.glow-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  overflow-x: auto;
}
.glow-tab {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.glow-tab:hover { background: rgba(255,255,255,0.08); }
.glow-tab.active {
  background: #FF2D92; color: #0a0a0a; border-color: #FF2D92; font-weight: 600;
}
.glow-tab-count {
  background: rgba(0,0,0,0.25); padding: 0.1rem 0.45rem;
  border-radius: 9999px; font-size: 0.7rem;
}
.glow-tab.active .glow-tab-count { background: rgba(10,10,10,0.2); color: #0a0a0a; }
.glow-tab-count-alert.is-pulsing {
  background: #ef4444 !important; color: #fff !important;
  animation: glow-pulse 1.6s infinite;
}
@keyframes glow-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

.is-pulsing { animation: glow-pulse 1.6s infinite; }

/* Search */
.glow-search-wrap { position: relative; }
.glow-search {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.9rem;
}
.glow-search:focus { outline: none; border-color: #00E5FF; }
.glow-search:disabled { opacity: 0.5; cursor: not-allowed; }

/* Tab content */
.glow-tab-content > .glow-tab-panel { display: block; }
.glow-tab-panel.hidden { display: none; }
.glow-empty { color: rgba(255,255,255,0.45); padding: 2.5rem 1rem; text-align: center; border: 1px dashed rgba(255,255,255,0.08); border-radius: 1rem; }
.glow-empty-inline { padding: 1rem; border: none; text-align: left; }

/* Estanco cards */
.glow-estanco-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.glow-estanco-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.glow-estanco-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; flex: 1 1 auto; }
.glow-estanco-name { font-family: Goldman, sans-serif; font-weight: 700; color: #fff; font-size: 1.05rem; }
.glow-estanco-city { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.glow-estanco-code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  padding: 0.15rem 0.6rem;
  border-radius: 0.5rem;
  color: #00E5FF;
  font-size: 0.75rem;
}
.glow-qr-toggle {
  padding: 0.4rem 0.8rem;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 0.6rem;
  color: #00E5FF;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.glow-qr-toggle:hover { background: rgba(0,229,255,0.15); }

.glow-estanco-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.5rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 700px) { .glow-estanco-stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.glow-stat {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0.6rem;
}
.glow-stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.4); }
.glow-stat-val { font-family: Goldman, sans-serif; font-weight: 700; font-size: 1.1rem; }

.glow-progress {
  position: relative; height: 1.25rem;
  background: rgba(255,255,255,0.06);
  border-radius: 0.6rem;
  overflow: hidden;
}
.glow-progress-bar { height: 100%; transition: width 0.4s ease-out; }
.glow-progress-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.72rem; mix-blend-mode: difference;
}

.glow-qr-panel {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
  margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.glow-qr-img { width: 220px; height: 220px; background: #000; border-radius: 0.6rem; }
.glow-qr-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.glow-qr-url { font-family: ui-monospace, monospace; font-size: 0.75rem; color: rgba(255,255,255,0.4); word-break: break-all; margin: 0; }

/* Registration rows */
.glow-reg-row {
  display: grid;
  grid-template-columns: 2.5rem 2fr 2fr auto auto auto;
  gap: 0.75rem; align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.glow-reg-row:hover { background: rgba(255,255,255,0.06); border-color: rgba(0,229,255,0.2); }
@media (max-width: 700px) { .glow-reg-row { grid-template-columns: 2rem 1fr; gap: 0.5rem; } .glow-reg-badges, .glow-reg-code, .glow-reg-ip, .glow-reg-date { grid-column: 2; } }
.glow-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #00E5FF, #FF2D92);
  color: #0a0a0a; font-weight: 700; font-family: Goldman;
}
.glow-avatar-lg { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; }
.glow-reg-name { font-weight: 600; color: #fff; }
.glow-reg-email { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.glow-reg-badges { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.glow-reg-code { font-family: ui-monospace, monospace; padding: 0.15rem 0.55rem; border: 1px solid rgba(0,229,255,0.3); color: #00E5FF; border-radius: 0.4rem; font-size: 0.75rem; }
.glow-reg-ip { font-family: ui-monospace, monospace; font-size: 0.7rem; color: rgba(255,255,255,0.4); }
.glow-reg-date { color: rgba(255,255,255,0.55); font-size: 0.75rem; }

/* Badges */
.glow-badge {
  display: inline-flex; align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 0.72rem;
}
.glow-badge-success { background: rgba(180,248,42,0.12); border-color: rgba(180,248,42,0.4); color: #B4F82A; }
.glow-badge-warn    { background: rgba(234,179,8,0.12); border-color: rgba(234,179,8,0.4); color: #eab308; }
.glow-badge-danger  { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.4); color: #fca5a5; }
.glow-badge-fuchsia { background: rgba(255,45,146,0.12); border-color: rgba(255,45,146,0.4); color: #FF2D92; }

/* Redemption rows */
.glow-redemp-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.75rem; align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
}
.glow-redemp-icon { font-size: 1.3rem; }
.glow-redemp-name { font-weight: 600; color: #fff; }
.glow-redemp-email { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.glow-redemp-flavors { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.35rem; }
.glow-redemp-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.glow-redemp-code { font-family: ui-monospace, monospace; color: #00E5FF; }
.glow-redemp-ts { color: rgba(255,255,255,0.4); }

.glow-flavor-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,229,255,0.25);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.72rem;
}
.glow-code-pill {
  display: inline-flex; align-items: center;
  padding: 0.15rem 0.55rem;
  background: rgba(255,45,146,0.08);
  border: 1px solid rgba(255,45,146,0.3);
  color: #FF2D92;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
}

/* Alerts */
.glow-alerts-block { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.glow-alerts-title { font-family: Goldman, sans-serif; font-size: 1rem; color: #fff; margin: 0 0 0.25rem; }
.glow-ip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.glow-ip-list li {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.6rem 0.85rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.6rem;
}
.glow-ip-mono { font-family: ui-monospace, monospace; color: #00E5FF; }
.glow-ip-code { color: rgba(255,255,255,0.65); font-size: 0.8rem; }
.glow-ip-count { margin-left: auto; color: rgba(255,255,255,0.45); font-size: 0.75rem; }

.glow-alert-card {
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  margin-bottom: 0.5rem;
}
.glow-severity-critical { border-color: #ef4444; background: rgba(127,29,29,0.25); }
.glow-severity-high     { border-color: #f97316; background: rgba(154,52,18,0.25); }
.glow-severity-medium   { border-color: #eab308; background: rgba(113,63,18,0.2); }
.glow-severity-low      { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.glow-alert-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.glow-alert-type { font-weight: 600; color: #fff; }
.glow-alert-sev { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); }
.glow-alert-desc { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-bottom: 0.5rem; }
.glow-alert-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-bottom: 0.6rem; }
.glow-alert-meta code { color: #00E5FF; font-family: ui-monospace, monospace; }

/* Buttons */
.glow-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: #FF2D92; color: #0a0a0a;
  border: 1px solid #FF2D92;
  border-radius: 0.6rem;
  font-weight: 600; font-size: 0.8rem; cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.glow-btn:hover { filter: brightness(1.1); }
.glow-btn-outline { background: transparent; color: #00E5FF; border-color: rgba(0,229,255,0.4); }
.glow-btn-outline:hover { background: rgba(0,229,255,0.1); }
.glow-btn-resolve { background: #B4F82A; border-color: #B4F82A; color: #0a0a0a; }

/* Drawer */
.glow-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); z-index: 40;
}
.glow-drawer {
  position: fixed; top: 0; right: 0;
  width: 100%; max-width: 28rem; height: 100vh;
  background: #0a0a0a;
  border-left: 1px solid rgba(255,255,255,0.08);
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  z-index: 50;
  overflow-y: auto;
}
.glow-drawer.open { transform: translateX(0); }
.glow-drawer-inner { position: relative; padding: 2rem 1.5rem; }
.glow-drawer-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 2rem; height: 2rem; border-radius: 9999px;
  background: rgba(255,255,255,0.06); color: #fff; border: none;
  cursor: pointer; font-size: 0.9rem;
}
.glow-drawer-close:hover { background: rgba(255,255,255,0.12); }
.glow-drawer-loading { color: rgba(255,255,255,0.5); padding: 2rem 0; text-align: center; }
.glow-drawer-header { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1.25rem; }
.glow-drawer-name { font-family: Goldman, sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; }
.glow-drawer-email { color: rgba(255,255,255,0.55); font-size: 0.8rem; }
.glow-drawer-estanco { color: rgba(0,229,255,0.9); font-size: 0.75rem; margin-top: 0.15rem; }
.glow-drawer-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.5rem; margin-bottom: 1.25rem; }
.glow-drawer-section { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.06); margin-bottom: 1rem; }
.glow-section-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.45); margin-bottom: 0.5rem; }
.glow-drawer-shopify { display: flex; gap: 0.5rem; align-items: center; }
.glow-drawer-shopify code { background: rgba(0,229,255,0.08); color: #00E5FF; padding: 0.2rem 0.6rem; border-radius: 0.4rem; font-family: ui-monospace, monospace; }
.glow-flavor-wrap { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.glow-timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.glow-timeline-item {
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0.55rem;
}
.glow-timeline-date { font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-bottom: 0.2rem; }
.glow-timeline-body { font-size: 0.82rem; color: #fff; }
.glow-timeline-flavors { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 0.15rem; }
.glow-drawer-meta {
  margin-top: 1rem; padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 0.5rem;
  font-size: 0.72rem; color: rgba(255,255,255,0.5);
  display: flex; flex-direction: column; gap: 0.2rem;
}
.glow-drawer-meta code { color: #00E5FF; font-family: ui-monospace, monospace; }

/* ========================================
   WOW Dashboard + Analítica v2 (Apr 19 2026)
   ======================================== */

/* KPI cards WOW */
.kpi-grid-wow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
@media (max-width: 1100px) { .kpi-grid-wow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .kpi-grid-wow { grid-template-columns: 1fr; } }
.kpi-card-wow {
  position: relative;
  background: linear-gradient(140deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px 22px 16px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s, border-color 0.3s;
}
.kpi-card-wow::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(0,229,255,0.2), transparent 40%, rgba(255,45,146,0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0.6;
}
.kpi-card-wow:hover {
  transform: translateY(-3px);
  border-color: rgba(0,229,255,0.3);
  box-shadow: 0 12px 30px rgba(0,229,255,0.15);
}
.kpi-card-wow .kpi-label {
  font-family: 'Goldman', sans-serif;
  font-size: 10px; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55); text-transform: uppercase;
  margin-bottom: 10px;
}
.kpi-card-wow .kpi-value {
  font-family: 'Goldman', sans-serif;
  font-size: 28px; font-weight: 700; line-height: 1.1;
  letter-spacing: -0.01em;
}
.kpi-card-wow .kpi-value.cyan    { color: #00E5FF; text-shadow: 0 0 20px rgba(0,229,255,0.35); }
.kpi-card-wow .kpi-value.success { color: #B4F82A; text-shadow: 0 0 20px rgba(180,248,42,0.3); }
.kpi-card-wow .kpi-value.danger  { color: #FF3366; text-shadow: 0 0 20px rgba(255,51,102,0.3); }
.kpi-card-wow .kpi-value.pink    { color: #FF2D92; text-shadow: 0 0 20px rgba(255,45,146,0.3); }
.kpi-card-wow .kpi-trend {
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: rgba(255,255,255,0.4); margin-top: 4px;
}
.spark-wrap {
  position: absolute; bottom: 10px; right: 14px;
  width: 160px; height: 40px; opacity: 0.85;
}
.gauge-wrap {
  position: absolute; bottom: 8px; right: 10px;
  width: 80px; height: 80px;
}

/* Sections */
.dashboard-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 20px 22px;
}
.section-head { margin-bottom: 14px; }
.section-title {
  font-family: 'Goldman', sans-serif;
  font-size: 16px; letter-spacing: 0.08em;
  color: #fff; text-transform: uppercase;
  margin: 0 0 4px 0;
}
.section-sub {
  font-size: 12px; color: rgba(255,255,255,0.45);
  font-family: 'Inter', sans-serif;
}
.chart-container {
  position: relative;
  width: 100%;
  min-height: 320px;
}

/* Widgets row (dashboard 3-col) */
.widgets-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 18px;
}
@media (max-width: 1100px) { .widgets-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .widgets-row { grid-template-columns: 1fr; } }
.widget-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px 20px;
}
.widget-head { margin-bottom: 12px; }
.widget-title {
  font-family: 'Goldman', sans-serif;
  font-size: 13px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85); text-transform: uppercase;
  margin: 0 0 2px 0;
}
.widget-sub {
  font-size: 11px; color: rgba(255,255,255,0.4);
}
.donut-wrap { position: relative; }
.donut-container { min-height: 220px; }
.donut-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Goldman', sans-serif;
  font-size: 15px; color: #00E5FF; font-weight: 700;
  pointer-events: none;
}

/* Activity list */
.activity-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 260px; overflow-y: auto;
}
.activity-item {
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  font-size: 12px; color: rgba(255,255,255,0.8);
  opacity: 0; transform: translateY(8px);
  animation: fadeSlideIn 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
  display: flex; justify-content: space-between; gap: 10px;
  align-items: center;
}
.activity-item .act-label { font-weight: 600; color: #fff; }
.activity-item .act-subject { color: rgba(255,255,255,0.6); font-size: 11px; }
.activity-item .act-time {
  font-size: 10px; color: rgba(0,229,255,0.7);
  font-family: 'Goldman', sans-serif; letter-spacing: 0.05em;
  white-space: nowrap;
}
.activity-empty {
  padding: 20px; text-align: center;
  color: rgba(255,255,255,0.3); font-size: 12px;
}
@keyframes fadeSlideIn {
  to { opacity: 1; transform: translateY(0); }
}

/* CTA WOW tiles */
.cta-grid-wow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 700px) { .cta-grid-wow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cta-tile-wow {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  gap: 8px; padding: 22px 14px;
  background: linear-gradient(140deg, rgba(0,229,255,0.04), rgba(255,45,146,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: #fff; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cta-tile-wow:hover {
  transform: translateY(-2px);
  border-color: rgba(0,229,255,0.5);
  box-shadow: 0 10px 25px rgba(0,229,255,0.15);
}
.cta-tile-wow .icon { font-size: 24px; }
.cta-tile-wow .label {
  font-family: 'Goldman', sans-serif;
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* ========================================
   /analitica page
   ======================================== */
.analitica-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 20px; flex-wrap: wrap;
  padding: 12px 0 0;
}
.page-title {
  font-family: 'Goldman', sans-serif;
  font-size: 22px; letter-spacing: 0.12em;
  color: #fff; text-transform: uppercase;
  margin: 0 0 4px 0;
}
.page-sub {
  font-size: 12px; color: rgba(255,255,255,0.45);
}
.period-pills {
  display: flex; gap: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 4px; border-radius: 10px;
}
.period-pill {
  background: transparent;
  border: none;
  font-family: 'Goldman', sans-serif;
  font-size: 11px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6); text-transform: uppercase;
  padding: 8px 14px; border-radius: 7px;
  cursor: pointer; transition: all 0.2s;
}
.period-pill:hover { color: #fff; background: rgba(255,255,255,0.04); }
.period-pill.active {
  background: linear-gradient(135deg, #00E5FF, #FF2D92);
  color: #0a0a0a; font-weight: 700;
}

/* Termómetro */
.therm-wrap { display: flex; flex-direction: column; gap: 10px; }
.therm-track {
  position: relative; height: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; overflow: hidden;
}
.therm-bar {
  height: 100%;
  background: linear-gradient(90deg, #00E5FF 0%, #FF2D92 60%, #FF3366 100%);
  background-size: 200% 100%;
  border-radius: 20px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  animation: shimmer 2.5s infinite linear;
  box-shadow: 0 0 20px rgba(0,229,255,0.35);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.therm-info { font-size: 13px; color: rgba(255,255,255,0.75); }

/* Two-col (chart + table) */
.analitica-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) { .analitica-two-col { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.hg-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
}
.hg-table thead th {
  background: rgba(0,229,255,0.05);
  color: rgba(255,255,255,0.65);
  font-family: 'Goldman', sans-serif;
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hg-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
}
.hg-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.bar-wrap {
  position: relative;
  background: rgba(255,255,255,0.06);
  height: 18px; border-radius: 10px; overflow: hidden;
  min-width: 80px;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00E5FF, #B4F82A);
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.bar-wrap span {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px; font-weight: 700;
  color: #0a0a0a;
  text-shadow: 0 0 4px rgba(255,255,255,0.5);
}

/* Heatmap */
.heatmap {
  display: flex; flex-direction: column; gap: 4px;
  font-family: 'Inter', sans-serif;
}
.heatmap .hm-head, .heatmap .hm-row {
  display: grid;
  grid-template-columns: 40px repeat(8, 1fr);
  gap: 4px; align-items: center;
}
.heatmap .hm-col-label, .heatmap .hm-row-label {
  font-size: 10px; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45);
  font-family: 'Goldman', sans-serif;
  text-align: center;
}
.heatmap .hm-row-label { text-align: right; padding-right: 6px; }
.heatmap .hm-cell {
  height: 32px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.15s, border-color 0.15s;
  cursor: help;
}
.heatmap .hm-cell:hover {
  transform: scale(1.1);
  border-color: rgba(0,229,255,0.6);
  z-index: 2;
}

/* Export */
.export-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 700px) { .export-grid { grid-template-columns: 1fr; } }
.export-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 20px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  color: #fff;
}
.export-btn:hover {
  border-color: rgba(0,229,255,0.5);
  background: rgba(0,229,255,0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,229,255,0.12);
}
.export-icon { font-size: 26px; }
.export-label {
  font-family: 'Goldman', sans-serif;
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.export-sub {
  font-size: 10px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

/* Delay helpers */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
