/* ========================================
   ZapZera - CSS Global
   ======================================== */

:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --primary-light: #a29bfe;
  --secondary: #00cec9;
  --secondary-dark: #00b5b0;
  --accent: #fd79a8;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --dark: #2d3436;
  --dark-light: #636e72;
  --gray: #b2bec3;
  --gray-light: #dfe6e9;
  --white: #ffffff;
  --bg: #0a0a1a;
  --bg-card: #12122a;
  --bg-input: #1a1a3e;
  --bg-sidebar: #0d0d22;
  --border: #2a2a5a;
  --text: #e0e0ff;
  --text-muted: #8888aa;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

/* ========================================
   LOGIN / REGISTRO
   ======================================== */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0a0a1a 100%);
  padding: 20px;
}

.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.auth-box .logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo-img {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  object-fit: cover;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.3);
}

.login-brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px;
}

.auth-box .logo p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-size: 15px;
}

.auth-tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

.auth-tab:hover {
  color: var(--primary-light);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #00a381);
  color: white;
}

.btn-success:hover {
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #d35400);
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), #e7b800);
  color: var(--dark);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.error-msg {
  background: rgba(225, 112, 85, 0.15);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 15px;
  display: none;
  border: 1px solid rgba(225, 112, 85, 0.3);
}

.success-msg {
  background: rgba(0, 184, 148, 0.15);
  color: var(--success);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 15px;
  display: none;
  border: 1px solid rgba(0, 184, 148, 0.3);
}

/* ========================================
   LAYOUT DO PAINEL
   ======================================== */

.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 270px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sidebar-logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.sidebar-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
}

.sidebar-logo-text .brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.sidebar-logo-text .brand-name .brand-name-accent {
  -webkit-text-fill-color: var(--text);
  font-weight: 700;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
  overflow-y: auto;
}

/* Grouped nav sections (admin) */
.sidebar-nav-group {
  margin-bottom: 14px;
}
.sidebar-nav-group:last-child { margin-bottom: 0; }
.sidebar-nav-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 4px 14px 6px;
  opacity: 0.65;
}
[data-theme="light"] .sidebar-nav-header { color: #8a93a0; }

/* Badge no item de menu (ex: depósitos pendentes) */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5);
  animation: nav-badge-pulse 2s ease-in-out infinite;
}
@keyframes nav-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(231,76,60,0); }
}

/* Avatar admin com gradiente roxo */
.sidebar-footer .user-avatar {
  background: linear-gradient(135deg, #6c5ce7, #5b4dd9) !important;
}

/* Mobile drawer (sidebar slide-in para admin) */
.admin-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.25s;
}
.admin-drawer-backdrop.open {
  opacity: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s;
  gap: 12px;
  border-radius: 10px;
  margin-bottom: 1px;
}

.sidebar-nav a:hover {
  background: rgba(108, 92, 231, 0.08);
  color: var(--text);
}

.sidebar-nav a.active {
  background: rgba(108, 92, 231, 0.12);
  color: var(--primary-light);
  font-weight: 600;
}

.sidebar-nav a .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.25s;
  flex-shrink: 0;
}

.sidebar-nav a .icon i {
  font-size: 16px;
  color: var(--text-muted);
}

.sidebar-nav a:hover .icon {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav a.active .icon {
  background: rgba(108, 92, 231, 0.15);
}

.sidebar-nav a.active .icon i {
  color: var(--primary-light);
}

.sidebar-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sidebar-footer .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.sidebar-footer .user-name {
  font-size: 13px;
  font-weight: 600;
}

.sidebar-footer .user-email {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-footer .btn-logout {
  width: 100%;
  padding: 8px;
  background: rgba(225, 112, 85, 0.15);
  color: var(--danger);
  border: 1px solid rgba(225, 112, 85, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s;
}

.sidebar-footer .btn-logout:hover {
  background: rgba(225, 112, 85, 0.3);
}

.main-content {
  margin-left: 270px;
  flex: 1;
  padding: 30px;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: calc(100vw - 270px);
}

/* ========================================
   CARDS E STATS
   ======================================== */

.page-header {
  margin-bottom: 25px;
}

.page-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-header-title > i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.18), rgba(0, 206, 201, 0.10));
  color: var(--primary-light);
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.page-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
  margin-left: 56px;
}

/* ========================================
   MINI STATS (Fase 5 - Slots/Base)
   ======================================== */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.mini-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}
.mini-stat:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-1px);
}
.ms-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ms-value {
  font-size: 18px; font-weight: 800; color: var(--text);
  line-height: 1.1;
}
.ms-value small { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.ms-label {
  font-size: 11px; color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
@media (max-width: 1100px) {
  .mini-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .ms-icon { width: 32px; height: 32px; font-size: 15px; }
  .ms-value { font-size: 15px; }
}

/* ========================================
   FILTER PILLS (Fase 7 - Depósitos)
   ======================================== */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-pill:hover {
  border-color: rgba(108, 92, 231, 0.4);
  color: var(--text);
}
.filter-pill.active {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.35);
}
.filter-pill i { font-size: 14px; }
.pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 11px;
  font-weight: 700;
}
.filter-pill:not(.active) .pill-badge {
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-light, #a29bfe);
}

/* Financial section grid (Fase 8) */
@media (max-width: 900px) {
  .financial-grid { grid-template-columns: 1fr !important; }
}

/* Settings tabs (Fase 12A) */
.settings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
}
.settings-tab {
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.settings-tab:hover {
  color: var(--text);
  background: rgba(108, 92, 231, 0.05);
}
.settings-tab.active {
  color: var(--primary-light, #a29bfe);
  border-bottom-color: var(--primary, #6c5ce7);
}
.settings-panel {
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .settings-tab { padding: 8px 12px; font-size: 12px; }
  #settings-panel-system > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  #settings-panel-general > .card > div[style*="grid-template-columns: 1fr 1fr"],
  #settings-panel-financial > .card > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   BULK ACTION BAR (Fase 4 - clientes)
   ======================================== */
.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.18), rgba(162, 155, 254, 0.12));
  border: 1px solid rgba(108, 92, 231, 0.4);
  border-radius: 14px;
  animation: bulk-bar-in 0.25s ease;
}
@keyframes bulk-bar-in {
  from { transform: translateY(-6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.bulk-bar-info {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-size: 14px;
}
.bulk-bar-info i { font-size: 22px; color: var(--primary-light); }
.bulk-bar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bulk-clear {
  background: rgba(149, 165, 166, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border);
  width: 32px; padding: 0 !important;
  display: flex; align-items: center; justify-content: center;
}
.bulk-clear:hover { background: rgba(149, 165, 166, 0.25); color: var(--text); }

/* ========================================
   CHECKBOX (Fase 4)
   ======================================== */
.dt-checkbox {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  vertical-align: middle;
}

/* ========================================
   USER MODAL V2 (Fase 4)
   ======================================== */
.modal-user-v2 .modal-header h3 {
  display: flex; align-items: center; gap: 8px;
}
.modal-user-v2 .modal-header h3 i { color: var(--primary-light); }

.user-modal-head {
  margin-bottom: 18px;
  padding: 16px;
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid rgba(108, 92, 231, 0.18);
  border-radius: 12px;
}
.user-modal-head-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-modal-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  flex-shrink: 0;
}
.user-modal-meta { flex: 1; min-width: 0; }
.user-modal-name {
  font-size: 16px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-modal-email {
  font-size: 12px; color: var(--text-muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-modal-row {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
}
.user-modal-balance {
  font-size: 15px; font-weight: 700; color: var(--success);
}

.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.user-stat-mini {
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}
.usm-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
  font-weight: 600;
}
.usm-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.user-modal-section { margin-bottom: 18px; }
.ums-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.ums-title i { color: var(--primary-light); }

.balance-adjust {
  display: flex; align-items: center; gap: 8px;
}
.balance-adjust input {
  flex: 1;
  padding: 9px 12px;
  background: var(--bg-input, rgba(0,0,0,0.18));
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
}
.balance-adjust input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}
.balance-adjust .btn { display: inline-flex; align-items: center; gap: 4px; }

/* Lista de transações */
.user-tx-list {
  max-height: 220px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.user-tx-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.user-tx-item:last-child { border-bottom: none; }
.user-tx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.user-tx-desc {
  font-size: 12px; color: var(--text); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-tx-date { font-size: 10px; color: var(--text-muted); }
.user-tx-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.user-tx-amt { font-size: 13px; font-weight: 700; }
.user-tx-status {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 6px; border-radius: 4px;
}
.user-tx-approved { background: rgba(0, 184, 148, 0.15); color: #00b894; }
.user-tx-pending  { background: rgba(253, 203, 110, 0.15); color: #fdcb6e; }
.user-tx-rejected { background: rgba(225, 112, 85, 0.15); color: #e17055; }

.user-modal-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.user-modal-actions .btn { flex: 1; min-width: 120px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

@media (max-width: 600px) {
  .user-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .balance-adjust { flex-wrap: wrap; }
  .balance-adjust input { flex: 1 1 100%; }
  .balance-adjust .btn { flex: 1; }
  .bulk-bar { flex-direction: column; align-items: stretch; }
  .bulk-bar-actions { justify-content: flex-end; }
}

/* ========================================
   DATA TABLE COMPONENT (busca/filtros/paginação/CSV)
   ======================================== */

.dt-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  margin-bottom: -1px;
}

/* Quando dt-toolbar está logo antes de um .table-container, alinha visualmente */
.dt-toolbar + .table-container {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.dt-search {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}
.dt-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
.dt-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  background: var(--bg-input, rgba(0,0,0,0.18));
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dt-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}
.dt-search input::placeholder { color: var(--text-muted); opacity: 0.7; }

.dt-filter select {
  padding: 9px 30px 9px 12px;
  background: var(--bg-input, rgba(0,0,0,0.18));
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23999' d='M3.2 5.6l4.8 4.8 4.8-4.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dt-filter select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.dt-toolbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dt-counter {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.dt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 10px;
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.dt-btn:hover {
  background: rgba(108, 92, 231, 0.22);
  border-color: rgba(108, 92, 231, 0.5);
}
.dt-btn-export i { font-size: 14px; }

/* Pagination */
.dt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px;
  margin-top: -1px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
}
.dt-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.dt-page-btn:hover:not(:disabled) {
  background: rgba(108, 92, 231, 0.1);
  color: var(--text);
  border-color: rgba(108, 92, 231, 0.2);
}
.dt-page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.dt-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.dt-page-ellipsis {
  padding: 0 6px;
  color: var(--text-muted);
  font-weight: 700;
}

/* Tabela com toolbar — remover top radius da .table-container */
.dt-toolbar + .table-container > table { border-radius: 0; }

@media (max-width: 700px) {
  .dt-toolbar { padding: 10px; gap: 8px; }
  .dt-search { min-width: 140px; max-width: none; flex: 1 1 100%; }
  .dt-filter { flex: 1 1 calc(50% - 4px); }
  .dt-filter select { width: 100%; }
  .dt-toolbar-right { width: 100%; justify-content: space-between; }
  .dt-pagination { flex-wrap: wrap; }
}

/* ========================================
   ADMIN DASHBOARD V2
   ======================================== */

/* Alerta de pendências */
.dash-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(253, 121, 168, 0.12), rgba(253, 203, 110, 0.12));
  border: 1px solid rgba(253, 121, 168, 0.3);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.dash-alert:hover {
  transform: translateY(-1px);
  border-color: rgba(253, 121, 168, 0.5);
  box-shadow: 0 4px 16px rgba(253, 121, 168, 0.15);
}
.dash-alert-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fd79a8, #fdcb6e);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  flex-shrink: 0;
}
.dash-alert-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dash-alert-body strong { color: var(--text); font-size: 14px; font-weight: 700; }
.dash-alert-body span { color: var(--text-muted); font-size: 12px; }
.dash-alert-chevron { color: var(--text-muted); font-size: 18px; }

/* Título de seção do dashboard */
.dash-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 28px 0 14px;
}
.dash-section-title i { color: var(--primary-light); font-size: 16px; }

/* KPIs principais (4 cards grandes) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}
.kpi-card {
  position: relative;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-color: rgba(108, 92, 231, 0.3);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6c5ce7, #a29bfe);
}
.kpi-revenue::before { background: linear-gradient(90deg, #00b894, #55efc4); }
.kpi-users::before   { background: linear-gradient(90deg, #6c5ce7, #a29bfe); }
.kpi-slots::before   { background: linear-gradient(90deg, #fd79a8, #fab1a0); }
.kpi-pending::before { background: linear-gradient(90deg, #fdcb6e, #ffeaa7); }

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.kpi-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: rgba(108, 92, 231, 0.12);
  color: var(--primary-light);
}
.kpi-revenue .kpi-icon { background: rgba(0, 184, 148, 0.12); color: #00b894; }
.kpi-slots .kpi-icon { background: rgba(253, 121, 168, 0.12); color: #fd79a8; }
.kpi-pending .kpi-icon { background: rgba(253, 203, 110, 0.15); color: #fdcb6e; }

.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
}
.kpi-trend i { font-size: 14px; margin-left: -2px; }
.kpi-trend-up { background: rgba(0, 184, 148, 0.15); color: #00b894; }
.kpi-trend-down { background: rgba(225, 112, 85, 0.15); color: #e17055; }
.kpi-trend-flat { background: rgba(149, 165, 166, 0.15); color: var(--text-muted); }

.kpi-action { color: var(--primary); font-size: 20px; opacity: 0.6; }

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.kpi-revenue .kpi-value { color: #00b894; }
.kpi-pending.has-pending .kpi-value { color: #fdcb6e; }

.kpi-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
}
.kpi-foot {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Atividade hoje (compacta em linha) */
.today-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.today-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}
.today-item:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-1px);
}
.today-item > i {
  font-size: 22px;
  flex-shrink: 0;
}
.today-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.today-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Saúde do sistema */
.health-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.health-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.health-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.health-head i { margin-right: 6px; color: var(--primary-light); }
.health-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.health-ok { color: #00b894; }
.health-warn { color: #fdcb6e; }
.health-error { color: #e17055; }

.health-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(149, 165, 166, 0.15);
  overflow: hidden;
  margin-bottom: 10px;
}
.health-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease, background 0.3s;
}
.bar-ok { background: linear-gradient(90deg, #00b894, #55efc4); }
.bar-warn { background: linear-gradient(90deg, #fdcb6e, #ffeaa7); }
.bar-danger { background: linear-gradient(90deg, #e17055, #ff7675); }

.health-foot {
  font-size: 11px;
  color: var(--text-muted);
}
.health-server-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
}
.health-server-info i { margin-right: 4px; color: var(--primary-light); }

/* Responsivo dashboard */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .today-grid { grid-template-columns: repeat(3, 1fr); }
  .health-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .today-grid { grid-template-columns: repeat(2, 1fr); }
  .health-grid { grid-template-columns: 1fr; }
  .kpi-value { font-size: 24px; }
}

/* =============================================
   DASHBOARD REDESIGN
   ============================================= */

/* Hero bar */
.dash-hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.dash-hero-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(108,92,231,0.08), transparent 60%);
  pointer-events: none;
}
.dash-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-hero-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  flex-shrink: 0;
}
.dash-hero-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.dash-hero-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 3px 0 0;
}
.dash-hero-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}
.dash-hero-stat { text-align: center; }
.dash-hero-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.dash-hero-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.dash-hero-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* KPI glow effect */
.kpi-glow {
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 0.3s;
}
.kpi-card:hover .kpi-glow { opacity: 0.2; }
.kpi-revenue .kpi-glow { background: #00b894; }
.kpi-users   .kpi-glow { background: #6c5ce7; }
.kpi-slots   .kpi-glow { background: #fd79a8; }
.kpi-pending .kpi-glow { background: #fdcb6e; }

/* Bigger KPI icon & value */
.kpi-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  font-size: 20px !important;
}
.kpi-value { font-size: 30px !important; }

/* Two-column layout */
.dash-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

/* Panel container */
.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.dash-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-panel-title i { color: var(--primary-light); }

/* Today grid (2 cols × 3 rows) */
.today-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.today-item2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}
.today-item2:hover {
  border-color: rgba(108,92,231,0.3);
  transform: translateY(-1px);
}
.today-icon2 {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.today-val2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.today-lbl2 {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Health list */
.health-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.health-item2 {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s;
}
.health-item2:hover { border-color: rgba(108,92,231,0.3); }
.health-item2-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.health-item2:last-child .health-item2-head { margin-bottom: 0; }
.health-item2 .health-bar { margin-bottom: 0; }
.health-icon2 {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.health-item2-info { flex: 1; min-width: 0; }
.health-item2-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.health-item2-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.health-item2-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-left: auto;
  flex-shrink: 0;
}

/* Responsivo novo dashboard */
@media (max-width: 1100px) {
  .dash-two-col { grid-template-columns: 1fr; }
  .dash-hero-right { display: none; }
}
@media (max-width: 700px) {
  .dash-hero-bar { flex-direction: column; align-items: flex-start; }
  .today-grid2 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-light);
}

.stat-card .stat-icon i {
  font-size: 20px;
}

/* Cores individuais por posição */
.stat-card:nth-child(1) .stat-icon { background: rgba(108, 92, 231, 0.15); color: #a29bfe; }
.stat-card:nth-child(2) .stat-icon { background: rgba(0, 206, 201, 0.15); color: #00cec9; }
.stat-card:nth-child(3) .stat-icon { background: rgba(0, 184, 148, 0.15); color: #00b894; }
.stat-card:nth-child(4) .stat-icon { background: rgba(253, 121, 168, 0.15); color: #fd79a8; }
.stat-card:nth-child(5) .stat-icon { background: rgba(9, 132, 227, 0.12); color: #74b9ff; }
.stat-card:nth-child(6) .stat-icon { background: rgba(253, 203, 110, 0.15); color: #fdcb6e; }
.stat-card:nth-child(7) .stat-icon { background: rgba(225, 112, 85, 0.15); color: #e17055; }

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 18px;
  font-weight: 600;
}

/* ========================================
   TABELA
   ======================================== */

.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

table thead {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(0, 206, 201, 0.05));
}

table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid rgba(108, 92, 231, 0.2);
  white-space: nowrap;
}

table td {
  padding: 13px 18px;
  text-align: left;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

table tbody tr {
  transition: background 0.2s;
}

table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

table tbody tr:hover {
  background: rgba(108, 92, 231, 0.06);
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* ========================================
   BADGES / STATUS
   ======================================== */

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-active,
.badge-approved,
.badge-connected {
  background: rgba(0, 184, 148, 0.15);
  color: var(--success);
}

.badge-pending,
.badge-waiting {
  background: rgba(253, 203, 110, 0.15);
  color: var(--warning);
}

.badge-expired,
.badge-rejected,
.badge-disconnected,
.badge-failed {
  background: rgba(225, 112, 85, 0.15);
  color: var(--danger);
}

.badge-available {
  background: rgba(0, 206, 201, 0.15);
  color: var(--secondary);
}

.badge-in_use {
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-light);
}

/* ========================================
   SLOTS GRID
   ======================================== */

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s;
}

.slot-card:hover {
  border-color: var(--primary);
}

.slot-card .slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.slot-card .slot-phone {
  font-size: 16px;
  font-weight: 600;
}

.slot-card .slot-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 15px;
}

.slot-card .slot-info-item {
  display: flex;
  flex-direction: column;
}

.slot-card .slot-info-item span:first-child {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.slot-card .slot-info-item span:last-child {
  font-weight: 600;
  margin-top: 2px;
}

.slot-card .slot-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.slot-card .slot-actions .btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
}

/* ========================================
   QR CODE
   ======================================== */

.qr-container {
  text-align: center;
  padding: 20px;
}

.qr-container img {
  max-width: 256px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}

.qr-container p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 10px;
}

/* ========================================
   MODAL
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

/* ========================================
   DEPÓSITO / PIX
   ======================================== */

.pix-info {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin: 15px 0;
}

.pix-info .pix-key {
  font-family: monospace;
  font-size: 14px;
  color: var(--secondary);
  word-break: break-all;
  margin-top: 8px;
}

/* Dashboard top grid */
.dash-top-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  align-items: stretch;
}

.balance-card {
  background: linear-gradient(135deg, var(--primary), #6c5ce7);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  grid-row: 1;
  grid-column: 1;
}

.balance-card-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.balance-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.balance-card-label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 2px;
}

.balance-card-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.mini-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  transition: all 0.3s;
  border-top: 3px solid var(--accent);
}

.mini-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.mini-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.mini-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

/* Mini stat icon */
.mini-stat-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

/* Mini stat clickable */
.mini-stat-clickable {
  cursor: pointer;
}
.mini-stat-clickable:hover {
  border-color: rgba(253,203,110,.4);
  transform: translateY(-2px);
}

/* Client slot alerts (pending / disconnected) */
.client-slot-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  animation: fadeSlideIn .35s ease both;
}
.client-slot-alert:hover { filter: brightness(1.08); transform: translateY(-1px); }
.client-slot-alert-pending {
  background: rgba(253,203,110,.1);
  border-color: rgba(253,203,110,.3);
  color: #fdcb6e;
}
.client-slot-alert-disconnected {
  background: rgba(225,112,85,.1);
  border-color: rgba(225,112,85,.3);
  color: #e17055;
}
.client-slot-alert-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
}
.client-slot-alert-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.client-slot-alert-body strong { font-size: 14px; font-weight: 700; }
.client-slot-alert-body span { font-size: 12px; opacity: .75; }
.client-slot-alert > .bi-chevron-right { font-size: 16px; opacity: .5; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Legacy balance-display (keep for compat) */
.balance-display { display: none; }

/* ======== ACTIVITY FEED ======== */
.act-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  animation: fadeSlideIn 0.3s ease both;
}
.act-item:last-child { border-bottom: none; }
.act-item:hover { background: var(--bg-secondary); border-radius: 10px; }
.act-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.act-body { flex: 1; min-width: 0; }
.act-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.act-msg {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.act-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ======== NOTIFY TYPE OPTIONS ======== */
.notify-type-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s;
  font-size: 13px;
}
.notify-type-opt:hover { border-color: rgba(108,92,231,.4); }
.notify-type-opt input { display: none; }
.notify-type-opt:has(input:checked) { border-color: var(--primary); background: rgba(108,92,231,.08); }
.badge-info    { color: #74b9ff; font-weight: 700; }
.badge-success { color: #00b894; font-weight: 700; }
.badge-warning { color: #fdcb6e; font-weight: 700; }
.badge-danger  { color: #e17055; font-weight: 700; }

/* ========================================
   BUY SLOT - STEP DESIGN
   ======================================== */

/* Nav group labels */
.nav-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 16px 20px 6px;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════
   BUY SLOT — Neon Premium
   ═══════════════════════════════════════════════ */

/* Section — always dark neon */
.nx-sec {
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, #050510 0%, #0a0f2c 60%, #0d1238 100%);
  border-radius: 20px;
  --nx-text: #ffffff;
  --nx-muted: rgba(255,255,255,0.45);
  --nx-border: rgba(255,255,255,0.07);
  --nx-glass: rgba(255,255,255,0.035);
  --nx-neon: #6c5ce7;
  --nx-neon-lt: #a29bfe;
  --nx-cyan: #00cec9;
  --nx-green: #00e676;
}

/* BG orbs */
.nx-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.nx-orb { position: absolute; border-radius: 50%; filter: blur(100px); }
.nx-orb--1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(108,92,231,0.18), transparent 70%); top: -140px; left: 10%; }
.nx-orb--2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(0,206,201,0.14), transparent 70%); top: 250px; right: 5%; }
.nx-orb--3 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(9,132,227,0.1), transparent 70%); bottom: 80px; left: 35%; }

/* Header */
.nx-hd { text-align: center; padding: 44px 20px 38px; position: relative; z-index: 1; }
.nx-label {
  display: block; font-size: 11px; font-weight: 600; color: var(--nx-neon-lt);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; opacity: 0.7;
}
.nx-title { font-size: 38px; font-weight: 700; color: var(--nx-text); margin: 0 0 12px; letter-spacing: -0.5px; }
.nx-title span {
  background: linear-gradient(135deg, var(--nx-neon-lt), var(--nx-cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nx-sub { font-size: 15px; font-weight: 400; color: var(--nx-muted); margin: 0 0 24px; }
.nx-wallet {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--nx-muted); padding: 8px 20px; border-radius: 50px;
  background: var(--nx-glass); border: 1px solid var(--nx-border);
}
.nx-wallet i { color: var(--nx-neon-lt); }
.nx-wallet strong { color: var(--nx-green); font-weight: 600; }

/* ── Plans Grid ── */
.nx-plans {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-bottom: 44px; position: relative; z-index: 1; padding: 0 4px;
}

/* Card — glass */
.nx-sec .pc-card {
  position: relative;
  background: var(--nx-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--nx-border);
  border-radius: 20px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
}
.nx-sec .pc-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108,92,231,0.3);
  box-shadow: 0 0 30px rgba(108,92,231,0.08), 0 24px 64px rgba(0,0,0,0.25);
}
.nx-sec .pc-card.selected {
  border-color: rgba(108,92,231,0.5);
  box-shadow: 0 0 0 1px rgba(108,92,231,0.3), 0 0 40px rgba(108,92,231,0.1), 0 24px 64px rgba(0,0,0,0.2);
  background: rgba(108,92,231,0.06);
}
.nx-sec .pc-card.selected .nx-btn {
  background: linear-gradient(135deg, #6c5ce7, #0984e3);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 24px rgba(108,92,231,0.35);
}

/* Card body */
.nx-card-body { padding: 28px 22px 0; flex: 1; display: flex; flex-direction: column; }
.nx-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.nx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); flex-shrink: 0; }
.nx-card-name { font-size: 13px; font-weight: 500; color: var(--nx-text); opacity: 0.55; letter-spacing: 0.3px; }

/* Price */
.nx-card-pricing { display: flex; align-items: baseline; gap: 2px; margin-bottom: 4px; }
.nx-cur { font-size: 15px; font-weight: 400; color: var(--nx-muted); margin-right: 2px; }
.nx-sec .pc-amount { font-size: 42px; font-weight: 700; color: var(--nx-text); line-height: 1; letter-spacing: -2px; }
.nx-sec .pc-cents { font-size: 18px; font-weight: 500; color: var(--nx-muted); }

/* Period */
.nx-per { font-size: 12px; font-weight: 400; color: var(--nx-muted); margin: 0 0 20px; opacity: 0.55; }
.nx-sec .pc-period { margin: 0; }

/* Separator */
.nx-sep { height: 1px; background: var(--nx-border); margin-bottom: 16px; }

/* Features — neon green checks */
.nx-feats { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.nx-feats li {
  font-size: 12.5px; font-weight: 400; color: var(--nx-muted);
  padding: 5px 0; display: flex; align-items: center; gap: 8px;
}
.nx-feats li i { font-size: 14px; color: var(--nx-green); flex-shrink: 0; }

/* Button */
.nx-btn {
  display: block; width: calc(100% - 44px); margin: 0 22px 22px;
  padding: 11px; border: 1px solid var(--nx-border);
  border-radius: 12px; background: rgba(255,255,255,0.03);
  color: var(--nx-text); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.3s;
}
.nx-btn:hover {
  background: rgba(108,92,231,0.08); border-color: rgba(108,92,231,0.3);
  box-shadow: 0 0 20px rgba(108,92,231,0.1);
}
.nx-btn--glow {
  background: linear-gradient(135deg, #6c5ce7, #0984e3);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 24px rgba(108,92,231,0.3);
}
.nx-btn--glow:hover {
  box-shadow: 0 8px 36px rgba(108,92,231,0.45);
}

/* ═══ HERO CARD ═══ */
.nx-card--hero {
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(10, 14, 40, 0.92), rgba(10, 14, 40, 0.92)) padding-box,
    linear-gradient(135deg, #6c5ce7, #0984e3, #00cec9) border-box;
  box-shadow: 0 0 60px rgba(108,92,231,0.12), 0 24px 64px rgba(0,0,0,0.25);
  z-index: 2;
}
.nx-card--hero .nx-card-body { padding-top: 36px; }
.nx-card--hero .pc-amount { font-size: 48px !important; }
.nx-card--hero:hover {
  box-shadow: 0 0 80px rgba(108,92,231,0.2), 0 32px 80px rgba(0,0,0,0.3);
}
.nx-card--hero.selected {
  box-shadow: 0 0 0 1px rgba(108,92,231,0.4), 0 0 80px rgba(108,92,231,0.2), 0 32px 80px rgba(0,0,0,0.3);
}

/* Animated popular badge */
.nx-pop-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 20px; border-radius: 0 0 12px 12px;
  background: linear-gradient(135deg, #6c5ce7, #0984e3);
  color: #fff; z-index: 3; white-space: nowrap;
  animation: nx-badge-pulse 2.5s ease-in-out infinite;
}
@keyframes nx-badge-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(108,92,231,0.3); }
  50% { box-shadow: 0 4px 28px rgba(108,92,231,0.6), 0 0 48px rgba(108,92,231,0.15); }
}

/* Best cost badge */
.nx-best-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 9px; font-weight: 600; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 50px;
  background: rgba(0,184,148,0.12); color: #00b894; z-index: 1;
}

/* ── Bottom ── */
.nx-bottom {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 18px; align-items: start; position: relative; z-index: 1;
}
.nx-bottom-l { display: flex; flex-direction: column; gap: 16px; }
.nx-bottom-r { position: sticky; top: 20px; }

/* Glass box */
.nx-box {
  background: var(--nx-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--nx-border); border-radius: 18px; padding: 24px;
}
.nx-box-title { font-size: 15px; font-weight: 600; color: var(--nx-text); margin: 0 0 4px; }
.nx-box-sub { font-size: 12px; font-weight: 400; color: var(--nx-muted); margin: 0 0 18px; }

/* ═══ QTY CHIPS ═══ */
.nx-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nx-sec .qty-card-v2 {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--nx-border);
  border-radius: 14px; padding: 14px 16px;
  cursor: pointer; transition: all 0.3s; text-align: left;
}
.nx-sec .qty-card-v2:hover {
  border-color: rgba(108,92,231,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 24px rgba(108,92,231,0.06);
}
.nx-sec .qty-card-v2.selected {
  border-color: rgba(108,92,231,0.5);
  background: rgba(108,92,231,0.06);
  box-shadow: 0 0 0 1px rgba(108,92,231,0.25), 0 8px 32px rgba(108,92,231,0.1);
}
.nx-chip-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(108,92,231,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--nx-neon-lt); flex-shrink: 0;
}
.nx-chip-info { flex: 1; min-width: 0; }
.nx-chip-name { display: block; font-size: 13px; font-weight: 600; color: var(--nx-text); }
.nx-chip-desc { display: block; font-size: 11px; font-weight: 400; color: var(--nx-muted); }
.nx-chip-price { font-size: 12px; font-weight: 600; color: var(--nx-neon-lt); white-space: nowrap; }
.nx-chip-price small { font-weight: 400; font-size: 10px; color: var(--nx-muted); }
.nx-chip-badge {
  position: absolute; top: -6px; right: 8px;
  font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 50px;
  background: rgba(0,230,118,0.12); color: var(--nx-green);
}
.nx-chip-badge--hot { background: rgba(253,203,110,0.1); color: #fdcb6e; }
.nx-chip-badge--best { background: rgba(232,67,147,0.1); color: #e84393; }

/* Coupon */
.nx-coupon { display: flex; gap: 8px; }
.nx-coupon input {
  flex: 1; padding: 11px 16px;
  border: 1px solid var(--nx-border); border-radius: 10px;
  background: rgba(255,255,255,0.03); color: var(--nx-text);
  font-size: 13px; outline: none; transition: all 0.2s;
}
.nx-coupon input:focus { border-color: rgba(108,92,231,0.4); box-shadow: 0 0 16px rgba(108,92,231,0.08); }
.nx-coupon input::placeholder { color: var(--nx-muted); opacity: 0.5; }
.nx-coupon button {
  padding: 11px 22px; border: none; border-radius: 10px;
  background: rgba(108,92,231,0.1); color: var(--nx-neon-lt);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.nx-coupon button:hover { background: rgba(108,92,231,0.2); box-shadow: 0 0 16px rgba(108,92,231,0.1); }

/* ── Summary ── */
.nx-sum-line {
  display: flex; justify-content: space-between;
  padding: 7px 0; font-size: 13px; color: var(--nx-muted);
}
.nx-sum-line span:last-child, .nx-sum-line strong { color: var(--nx-text); font-weight: 500; }
.nx-sum-sep { height: 1px; background: var(--nx-border); margin: 10px 0; }
.nx-sum-total { padding: 8px 0 0; }
.nx-sum-total strong {
  font-size: 24px; font-weight: 700;
  background: linear-gradient(135deg, var(--nx-neon-lt), var(--nx-cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nx-sum-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 18px; padding: 14px;
  border: none; border-radius: 12px;
  background: linear-gradient(135deg, #6c5ce7, #0984e3);
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(108,92,231,0.25);
}
.nx-sum-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(108,92,231,0.4);
}
.nx-sum-btn:disabled { opacity: 0.3; cursor: not-allowed; box-shadow: none; }
.nx-sum-btn i { font-size: 16px; }
.nx-trust {
  display: flex; justify-content: center; gap: 16px; margin-top: 14px; flex-wrap: wrap;
}
.nx-trust span {
  font-size: 10px; font-weight: 400; color: var(--nx-muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.nx-trust i { color: var(--nx-green); font-size: 11px; }

/* Deposit amount grid */
.deposit-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.deposit-amount-btn {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.deposit-amount-btn:hover {
  border-color: var(--primary);
  background: rgba(108,92,231,0.08);
}

.deposit-amount-btn.selected {
  border-color: var(--primary);
  background: rgba(108,92,231,0.12);
  color: var(--primary-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.pricing-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(18, 18, 42, 0.8) 100%);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.2);
}

.pricing-card.selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.12) 0%, rgba(108, 92, 231, 0.04) 100%);
  box-shadow: 0 0 0 1px var(--primary), 0 12px 40px rgba(108, 92, 231, 0.25);
  transform: translateY(-6px);
}

.pricing-card.selected .pricing-btn {
  background: var(--primary);
  color: white;
}

/* Popular card */
.pricing-popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.08) 0%, var(--bg-card) 100%);
}

.pricing-popular::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Badge */
.pricing-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
  z-index: 2;
  white-space: nowrap;
}

.pricing-badge-best {
  background: linear-gradient(135deg, var(--success), #00a381);
}

/* Card Header */
.pricing-card-header {
  text-align: center;
  padding: 28px 12px 8px;
}

.pricing-icon {
  margin-bottom: 6px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.12);
}

.pricing-icon i {
  font-size: 26px;
  color: var(--primary-light);
}

/* Cores por plano */
.pricing-card:nth-child(1) .pricing-icon { background: rgba(253, 203, 110, 0.15); }
.pricing-card:nth-child(1) .pricing-icon i { color: #fdcb6e; }
.pricing-card:nth-child(2) .pricing-icon { background: rgba(225, 112, 85, 0.15); }
.pricing-card:nth-child(2) .pricing-icon i { color: #e17055; }
.pricing-card:nth-child(3) .pricing-icon { background: rgba(108, 92, 231, 0.15); }
.pricing-card:nth-child(3) .pricing-icon i { color: #a29bfe; }
.pricing-card:nth-child(4) .pricing-icon { background: rgba(0, 206, 201, 0.15); }
.pricing-card:nth-child(4) .pricing-icon i { color: #00cec9; }
.pricing-card:nth-child(5) .pricing-icon { background: rgba(253, 121, 168, 0.15); }
.pricing-card:nth-child(5) .pricing-icon i { color: #fd79a8; }

.pricing-plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Card Body */
.pricing-card-body {
  text-align: center;
  padding: 8px 16px 16px;
  flex: 1;
}

.pricing-days {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-days-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
}

.pricing-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.pricing-cents {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-per-day {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  text-align: left;
  padding: 0;
}

.pricing-features li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

/* Card Footer */
.pricing-card-footer {
  padding: 0 16px 16px;
}

.pricing-btn {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.pricing-btn:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary-light);
}

.pricing-btn-popular {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary-light);
}

/* ========================================
   QUANTITY PROMO SECTION
   ======================================== */

.qty-promo-section {
  margin-bottom: 14px;
}

.qty-promo-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.qty-promo-title i {
  color: var(--primary-light);
}

.qty-promo-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.qty-promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.qty-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(18, 18, 42, 0.8) 100%);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.qty-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.15);
}

.qty-card.selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.12) 0%, rgba(108, 92, 231, 0.04) 100%);
  box-shadow: 0 0 0 1px var(--primary), 0 8px 30px rgba(108, 92, 231, 0.25);
  transform: translateY(-4px);
}

.qty-card.qty-popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.08) 0%, var(--bg-card) 100%);
}

.qty-badge {
  position: absolute;
  top: -10px;
  right: 4px;
  background: linear-gradient(135deg, var(--primary), #5b4cdb);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.qty-badge-pop {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.qty-badge-best {
  background: linear-gradient(135deg, var(--success), #00a381);
}

.qty-amount {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
}

.qty-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.qty-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.qty-price small {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
}

.qty-card.selected .qty-amount {
  color: #fff;
}

.qty-card.selected .qty-price {
  color: var(--success);
}

/* Checkout button */
.pricing-checkout {
  text-align: center;
}

.btn-checkout {
  background: linear-gradient(135deg, var(--success), #00a381);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px 48px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 184, 148, 0.3);
  min-width: 280px;
}

.btn-checkout:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 184, 148, 0.4);
}

.btn-checkout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-checkout:active:not(:disabled) {
  transform: translateY(0);
}

/* ========================================
   LOADING
   ======================================== */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  min-width: 300px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--primary); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ========================================
   MOBILE HEADER & BOTTOM NAV (hidden on desktop)
   ======================================== */

.mobile-header {
  display: none;
}

.mobile-nav {
  display: none;
}

/* ========================================
   DESKTOP: FIT VIEWPORT (no page scroll)
   ======================================== */

@media (min-width: 769px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }

  .dashboard {
    height: 100vh;
  }

  .main-content {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .section {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    scrollbar-width: none;
  }
  .section::-webkit-scrollbar {
    display: none;
  }

  /* Slots: grid scrollable */
  #section-slots .slots-grid {
    overflow-y: auto;
  }
}

/* ========================================
   RESPONSIVE: MOBILE (≤768px)
   ======================================== */

@media (max-width: 768px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }

  /* Show mobile header */
  .mobile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #0d0d24, #0a0a1a);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 56px;
  }

  .mobile-header-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .mobile-header-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
  }

  .mobile-header-balance {
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
    background: rgba(0, 184, 148, 0.12);
    border: 1px solid rgba(0, 184, 148, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
  }

  /* Show mobile bottom nav */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, #0d0d24, #08081a);
    border-top: 1px solid var(--border);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    height: auto;
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s;
  }

  .mobile-nav-item i {
    font-size: 20px;
  }

  .mobile-nav-item.active {
    color: var(--primary-light);
  }

  .mobile-nav-item.active i {
    filter: drop-shadow(0 0 6px rgba(162, 155, 254, 0.5));
  }

  /* Hide sidebar by default on mobile */
  .sidebar {
    display: none;
  }

  /* Admin: sidebar as slide-in drawer */
  body.admin .sidebar,
  .dashboard:has(.admin-drawer-backdrop) .sidebar {
    display: flex;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    max-width: 85vw;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    box-shadow: 2px 0 24px rgba(0,0,0,0.4);
  }
  body.admin .sidebar.open,
  .dashboard:has(.admin-drawer-backdrop.open) .sidebar,
  .sidebar.open {
    transform: translateX(0);
  }
  .admin-drawer-backdrop.open {
    display: block;
  }

  /* Main content: full width, account for header + bottom nav */
  .dashboard {
    height: 100vh;
  }

  .main-content {
    margin-left: 0;
    max-width: 100%;
    width: 100%;
    padding: 16px;
    padding-top: 68px;
    padding-bottom: 72px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* Sections */
  .section {
    display: block;
  }

  /* Page header compact */
  .page-header {
    margin-bottom: 16px;
  }

  .page-header-title > i {
    width: 34px;
    height: 34px;
    font-size: 16px;
    border-radius: 10px;
  }

  .page-header h1 {
    font-size: 18px;
  }

  .page-header p {
    font-size: 12px;
    margin-left: 46px;
    margin-top: 4px;
  }

  /* Dash top grid mobile */
  .dash-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .balance-card {
    grid-column: 1 / -1;
    padding: 16px 18px;
    flex-direction: row;
  }

  .balance-card-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .balance-card-value {
    font-size: 22px;
  }

  .mini-stat {
    padding: 12px 8px;
  }

  .mini-stat-value {
    font-size: 20px;
  }

  .mini-stat-label {
    font-size: 10px;
  }

  /* Cards compact */
  .card {
    padding: 16px;
    margin-bottom: 14px;
  }

  .card-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .card-header h2 {
    font-size: 15px;
  }

  .nx-plans { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .nx-card--hero { grid-column: span 2; }
  .nx-card--hero .pc-amount { font-size: 42px !important; }
  .nx-hd { padding: 28px 16px 24px; }
  .nx-title { font-size: 30px; }
  .nx-bottom { grid-template-columns: 1fr; }
  .nx-bottom-r { position: static; }
  .nx-chips { grid-template-columns: 1fr 1fr; }

  .deposit-amount-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .deposit-amount-btn {
    padding: 10px;
    font-size: 13px;
  }

  /* Legacy pricing (keep) */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }

  .pricing-card-header {
    padding: 22px 8px 4px;
  }

  .pricing-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .pricing-icon i {
    font-size: 20px;
  }

  .pricing-plan-name {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .pricing-card-body {
    padding: 6px 10px 12px;
  }

  .pricing-days-num {
    font-size: 22px;
  }

  .pricing-amount {
    font-size: 24px;
  }

  .pricing-cents {
    font-size: 14px;
  }

  .pricing-per-day {
    font-size: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .pricing-features li {
    font-size: 10px;
    padding: 2px 0;
    padding-left: 16px;
  }

  .pricing-card-footer {
    padding: 0 10px 12px;
  }

  .pricing-btn {
    padding: 8px;
    font-size: 11px;
  }

  .pricing-badge {
    font-size: 8px;
    padding: 3px 10px;
  }

  /* Checkout button */
  .pricing-checkout {
    margin-bottom: 20px;
  }

  .btn-checkout {
    padding: 14px 24px;
    font-size: 15px;
    min-width: unset;
    width: 100%;
  }

  /* Buy header mobile: stack vertically */
  .buy-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .buy-header-sub {
    font-size: 12px;
  }

  /* Pricing balance bar */
  .pricing-balance-inner {
    font-size: 13px;
    padding: 8px 16px;
  }

  /* Table container horizontal scroll */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Slots grid: 1 column */
  .slots-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .slot-card {
    padding: 16px;
  }

  .slot-card .slot-phone {
    font-size: 14px;
  }

  .slot-card .slot-info {
    font-size: 12px;
    gap: 8px;
  }

  .slot-card .slot-actions {
    flex-direction: column;
  }

  .slot-card .slot-actions .btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
  }

  /* Tables */
  table th {
    padding: 10px 12px;
    font-size: 10px;
  }

  table td {
    padding: 10px 12px;
    font-size: 11px;
  }

  /* PIX shortcuts */
  .pix-amount-shortcuts {
    flex-wrap: wrap;
  }

  .pix-amount-shortcuts .btn {
    flex: 1;
    min-width: 60px;
  }

  /* Modal */
  .modal {
    width: 95%;
    padding: 20px;
    max-width: 400px;
  }

  .modal-header h3 {
    font-size: 16px;
  }

  /* QR Code */
  .qr-container img {
    max-width: 200px;
  }

  /* Toasts */
  .toast-container {
    top: 62px;
    right: 10px;
    left: 10px;
  }

  .toast {
    min-width: unset;
    width: 100%;
    font-size: 13px;
    padding: 10px 14px;
  }

  /* Deposit form */
  .form-group input {
    font-size: 16px;
    padding: 14px 16px;
  }
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
  .dash-top-grid {
    gap: 8px;
  }

  .balance-card {
    padding: 14px;
  }

  .balance-card-value {
    font-size: 20px;
  }

  .mini-stat-value {
    font-size: 18px;
  }

  .nx-plans { grid-template-columns: 1fr; gap: 12px; }
  .nx-card--hero { grid-column: span 1; }
  .nx-sec .pc-amount { font-size: 36px; }
  .nx-card--hero .pc-amount { font-size: 40px !important; }
  .nx-feats li { font-size: 12px; }
  .nx-chips { grid-template-columns: 1fr; }
  .nx-title { font-size: 24px; }
  .nx-sub { font-size: 13px; }
  .nx-hd { padding: 24px 14px 20px; }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pricing-amount {
    font-size: 20px;
  }

  .qty-amount {
    font-size: 22px;
  }
}

/* ======== MATURACAO ======== */
.warmth-slot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.warmth-slot:last-child { border-bottom: none; }

.warmth-phone {
  min-width: 130px;
  font-weight: 600;
  font-size: 14px;
}
.warmth-phone small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

.warmth-bar-wrap {
  flex: 1;
  background: var(--bg-input);
  border-radius: 12px;
  height: 24px;
  overflow: hidden;
  position: relative;
}
.warmth-bar {
  height: 100%;
  border-radius: 12px;
  transition: width 1s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  min-width: 40px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.warmth-bar.cold { background: linear-gradient(90deg, #636e72, #b2bec3); }
.warmth-bar.warming { background: linear-gradient(90deg, #fdcb6e, #f39c12); }
.warmth-bar.warm { background: linear-gradient(90deg, #f39c12, #e67e22); }
.warmth-bar.hot { background: linear-gradient(90deg, #e67e22, #e74c3c); }

/* ═══ Warmth Card — clean minimal ═══ */
.warmth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: all 0.25s ease;
}
.warmth-card:hover {
  border-color: var(--bar);
  transform: translateY(-1px);
}
.warmth-card-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.warmth-card-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--bar);
  background: color-mix(in srgb, var(--bar) 12%, transparent);
  flex-shrink: 0;
}
.warmth-card-phone {
  flex: 1; min-width: 0;
  font-weight: 600; font-size: 14px; color: var(--text); letter-spacing: 0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.warmth-score-value {
  font-size: 18px; font-weight: 700; color: var(--bar);
  line-height: 1; letter-spacing: -0.5px; flex-shrink: 0;
}
.warmth-score-value small { font-size: 11px; font-weight: 500; opacity: 0.6; margin-left: 1px; }
.warmth-card-bar {
  height: 6px; background: var(--bg-input); border-radius: 4px; overflow: hidden;
}
.warmth-card-bar-fill {
  height: 100%; border-radius: 4px;
  background: var(--bar);
  transition: width 1.5s cubic-bezier(.4,0,.2,1);
}

[data-theme="light"] .warmth-card {
  background: #ffffff;
  border-color: #e8eaf0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
[data-theme="light"] .warmth-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--bar);
}
[data-theme="light"] .warmth-card-bar { background: #f0f2f5; }

.warmth-label {
  min-width: 80px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
}
.warmth-label.cold { color: #b2bec3; }
.warmth-label.warming { color: #fdcb6e; }
.warmth-label.warm { color: #e67e22; }
.warmth-label.hot { color: #e74c3c; }

/* Atividade do dia */
.activity-slot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.activity-slot:last-child { border-bottom: none; }

.activity-phone {
  min-width: 130px;
  font-weight: 600;
  font-size: 14px;
}

.activity-stats {
  display: flex;
  gap: 20px;
  flex: 1;
}
.activity-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.activity-stat i {
  font-size: 16px;
}
.activity-stat.sent { color: #00b894; }
.activity-stat.recv { color: #74b9ff; }
.activity-stat.total { color: var(--text-muted); }

.activity-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.activity-badge.active { background: rgba(0,184,148,0.15); color: #00b894; }
.activity-badge.idle { background: rgba(178,190,195,0.15); color: #b2bec3; }


/* ======== MODAL DE ATIVIDADE ======== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 95%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--secondary);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
}
.modal-close:hover { color: var(--secondary); }

/* Gráfico de barras simples */
.hour-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100px;
  padding: 10px 0;
}
.hour-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
  justify-content: flex-end;
}
.hour-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: height 0.5s;
}
.hour-bar.sent { background: #00b894; }
.hour-bar.recv { background: #74b9ff; }
.hour-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Stats grid do modal */
.activity-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.activity-stat-box {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.activity-stat-box .val {
  font-size: 24px;
  font-weight: 700;
  display: block;
}
.activity-stat-box .lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Daily chart */
.daily-chart {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.daily-bar-wrap {
  flex: 1;
  text-align: center;
}
.daily-bars {
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
}
.daily-bar {
  border-radius: 3px;
  min-height: 1px;
}
.daily-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}
.daily-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--secondary);
}


/* ======== TEMA CLARO ======== */
[data-theme="light"] {
  --bg: #f0f2f5;
  --bg-card: #ffffff;
  --bg-input: #f5f6fa;
  --bg-sidebar: #ffffff;
  --border: #e1e4e8;
  --text: #2d3436;
  --text-muted: #636e72;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border);
  box-shadow: 1px 0 12px rgba(0,0,0,0.03);
}

[data-theme="light"] .sidebar-logo {
  border-bottom-color: var(--border);
}

[data-theme="light"] .sidebar-nav a {
  color: #636e72;
}

[data-theme="light"] .sidebar-nav a:hover {
  background: rgba(108, 92, 231, 0.06);
  color: var(--primary);
}

[data-theme="light"] .sidebar-nav a.active {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
}

[data-theme="light"] .sidebar-nav a .icon i {
  color: #8a93a0;
}

[data-theme="light"] .sidebar-nav a:hover .icon {
  background: rgba(108, 92, 231, 0.08);
}

[data-theme="light"] .sidebar-nav a.active .icon i {
  color: var(--primary);
}

[data-theme="light"] .nav-group-label {
  color: #8a93a0;
}

[data-theme="light"] .sidebar-footer {
  background: rgba(0,0,0,0.02);
  border-top-color: var(--border);
}

[data-theme="light"] .sidebar-footer .user-name {
  color: var(--text);
}

[data-theme="light"] .sidebar-footer .user-email {
  color: var(--text-muted);
}

[data-theme="light"] .stat-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-theme="light"] .mini-stat {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ═══ Light theme — Neon section adapts to white ═══ */
[data-theme="light"] .nx-sec {
  background: linear-gradient(170deg, #f8f9ff 0%, #eef0ff 60%, #f5f3ff 100%);
  --nx-text: #1a1a2e;
  --nx-muted: rgba(26,26,46,0.55);
  --nx-border: rgba(108,92,231,0.12);
  --nx-glass: rgba(255,255,255,0.7);
}
[data-theme="light"] .nx-orb--1 { background: radial-gradient(circle, rgba(108,92,231,0.18), transparent 70%); }
[data-theme="light"] .nx-orb--2 { background: radial-gradient(circle, rgba(0,206,201,0.14), transparent 70%); }
[data-theme="light"] .nx-orb--3 { background: radial-gradient(circle, rgba(9,132,227,0.1), transparent 70%); }

[data-theme="light"] .nx-sec .pc-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(108,92,231,0.1);
  box-shadow: 0 4px 24px rgba(108,92,231,0.04);
}
[data-theme="light"] .nx-sec .pc-card:hover {
  border-color: rgba(108,92,231,0.3);
  box-shadow: 0 0 30px rgba(108,92,231,0.08), 0 24px 64px rgba(108,92,231,0.12);
}
[data-theme="light"] .nx-sec .pc-card.selected {
  border-color: rgba(108,92,231,0.5);
  background: rgba(108,92,231,0.04);
  box-shadow: 0 0 0 1px rgba(108,92,231,0.2), 0 0 40px rgba(108,92,231,0.08), 0 24px 64px rgba(108,92,231,0.1);
}
[data-theme="light"] .nx-card--hero {
  background:
    linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)) padding-box,
    linear-gradient(135deg, #6c5ce7, #0984e3, #00cec9) border-box;
  box-shadow: 0 0 60px rgba(108,92,231,0.1), 0 24px 64px rgba(108,92,231,0.12);
}
[data-theme="light"] .nx-btn {
  background: rgba(108,92,231,0.04);
  border-color: rgba(108,92,231,0.15);
  color: #1a1a2e;
}
[data-theme="light"] .nx-btn:hover {
  background: rgba(108,92,231,0.08);
  border-color: rgba(108,92,231,0.3);
}
[data-theme="light"] .nx-box {
  background: rgba(255,255,255,0.85);
  border-color: rgba(108,92,231,0.1);
  box-shadow: 0 4px 24px rgba(108,92,231,0.04);
}
[data-theme="light"] .nx-sec .qty-card-v2 {
  background: rgba(255,255,255,0.6);
  border-color: rgba(108,92,231,0.1);
}
[data-theme="light"] .nx-sec .qty-card-v2:hover {
  border-color: rgba(108,92,231,0.3);
  background: rgba(255,255,255,0.85);
}
[data-theme="light"] .nx-sec .qty-card-v2.selected {
  background: rgba(108,92,231,0.05);
  border-color: rgba(108,92,231,0.4);
}
[data-theme="light"] .nx-coupon input {
  background: rgba(255,255,255,0.6);
  border-color: rgba(108,92,231,0.12);
  color: #1a1a2e;
}
[data-theme="light"] .nx-coupon input::placeholder { color: rgba(26,26,46,0.4); }
[data-theme="light"] .nx-feats li i { color: #00b894; }
[data-theme="light"] .nx-trust i { color: #00b894; }
[data-theme="light"] .nx-wallet strong { color: #00b894; }
[data-theme="light"] .nx-sum-total strong {
  background: linear-gradient(135deg, #6c5ce7, #00cec9);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

[data-theme="light"] .brand-name-accent {
  -webkit-text-fill-color: #2d3436 !important;
}

[data-theme="light"] .balance-card {
  box-shadow: 0 4px 16px rgba(108,92,231,0.2);
}

[data-theme="light"] .client-slot-alert-pending {
  background: rgba(253,203,110,.18);
  border-color: rgba(200,150,0,.4);
  color: #8a6000;
}
[data-theme="light"] .client-slot-alert-pending .client-slot-alert-body strong { color: #6b4900; }
[data-theme="light"] .client-slot-alert-pending .client-slot-alert-body span { color: #7a5500; }
[data-theme="light"] .client-slot-alert-pending .client-slot-alert-icon { background: rgba(180,130,0,.12); color: #8a6000; }

[data-theme="light"] .client-slot-alert-disconnected {
  background: rgba(225,112,85,.15);
  border-color: rgba(180,60,30,.35);
  color: #8b2e10;
}
[data-theme="light"] .client-slot-alert-disconnected .client-slot-alert-body strong { color: #6d1e06; }
[data-theme="light"] .client-slot-alert-disconnected .client-slot-alert-body span { color: #7a2a10; }
[data-theme="light"] .client-slot-alert-disconnected .client-slot-alert-icon { background: rgba(180,60,30,.1); color: #8b2e10; }

[data-theme="light"] .card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-theme="light"] table thead th {
  background: #f5f6fa;
  color: #636e72;
}

[data-theme="light"] table tbody tr:hover {
  background: rgba(108, 92, 231, 0.04);
}

[data-theme="light"] .mobile-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .btn-secondary {
  background: #e1e4e8;
  color: #2d3436;
}

[data-theme="light"] .slot-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-theme="light"] .pricing-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

[data-theme="light"] .warmth-bar.cold { background: linear-gradient(90deg, #b2bec3, #dfe6e9); }

[data-theme="light"] .modal-overlay {
  background: rgba(0,0,0,0.4);
}

[data-theme="light"] .badge-active { background: rgba(0,184,148,0.12); }
[data-theme="light"] .badge-pending { background: rgba(108,92,231,0.12); }
[data-theme="light"] .badge-expired { background: rgba(225,112,85,0.12); }

/* ========================================
   SIDEBAR FOOTER ACTIONS
   ======================================== */
.sidebar-footer-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-theme-sidebar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}
.btn-theme-sidebar:hover {
  background: var(--primary);
  color: white;
}

.sidebar-footer .btn-logout {
  flex: 1;
}

/* ========================================
   MOBILE HEADER BUTTONS & USER MENU
   ======================================== */
.mobile-header-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.mobile-header-btn:hover {
  background: var(--primary);
  color: white;
}
/* Avatar variant: shows user initials instead of icon */
.mobile-header-btn--avatar {
  background: linear-gradient(135deg, #6c5ce7, #5b4dd9);
  border-color: transparent;
  padding: 0;
}
.mobile-header-btn--avatar:hover {
  background: linear-gradient(135deg, #5b4dd9, #4834c9);
  transform: scale(1.05);
}
.mobile-header-btn--avatar .user-avatar {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.mobile-user-menu {
  display: none;
  position: fixed;
  top: 56px;
  right: 0;
  left: 0;
  z-index: 99;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.mobile-user-menu-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mobile-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.mobile-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.mobile-user-email {
  font-size: 12px;
  color: var(--text-muted);
}
.mobile-user-menu-btn {
  width: 100%;
  padding: 10px 16px;
  background: rgba(225, 112, 85, 0.15);
  color: var(--danger);
  border: 1px solid rgba(225, 112, 85, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.mobile-user-menu-btn:hover {
  background: rgba(225, 112, 85, 0.3);
}

/* Hide old floating theme toggle (replaced) */
.theme-toggle { display: none !important; }

[data-theme="light"] .mobile-header-btn {
  background: rgba(0,0,0,0.06);
  border-color: var(--border);
}
[data-theme="light"] .mobile-user-menu {
  background: var(--bg-card);
}

/* ════════════════════════════════════════════
   AFFILIATES · Indicação (estilo moderno fintech)
   ════════════════════════════════════════════ */
.aff-wrap {
  max-width: 560px; margin: 0 auto;
  padding: 8px 0 32px;
  display: flex; flex-direction: column; gap: 14px;
}

.aff-head {
  text-align: center; padding: 8px 0 4px;
}
.aff-head h1 {
  font-size: 22px; font-weight: 700;
  color: var(--text); margin: 0 0 4px;
  letter-spacing: -0.4px;
}
.aff-head p {
  font-size: 13px; color: var(--text-muted);
  margin: 0; font-weight: 500;
}

/* Hero card */
.aff-hero {
  position: relative;
  background: linear-gradient(140deg, #6c5ce7 0%, #5b4dd9 60%, #4834c9 100%);
  border-radius: 18px;
  padding: 20px 22px 18px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(108,92,231,0.25);
}
.aff-hero::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.aff-hero::after {
  content: ''; position: absolute; bottom: -60%; left: -10%;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  pointer-events: none;
}
.aff-hero-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
  position: relative;
}
.aff-hero-label {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase; letter-spacing: 1px;
}
.aff-hero-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.2);
  font-size: 11px; font-weight: 700;
  backdrop-filter: blur(6px);
}
.aff-hero-amount {
  display: flex; align-items: baseline; gap: 6px;
  position: relative;
  margin-bottom: 14px;
}
.aff-hero-cur {
  font-size: 20px; font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.aff-hero-val {
  font-size: 44px; font-weight: 800;
  letter-spacing: -1.5px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.aff-hero-mini {
  display: flex; align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  position: relative;
}
.aff-mini { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.aff-mini-lbl {
  font-size: 10px; color: rgba(255,255,255,0.7);
  text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600;
}
.aff-mini strong {
  font-size: 15px; font-weight: 700; color: #fff;
}
.aff-mini-sep {
  width: 1px; height: 28px; background: rgba(255,255,255,0.2);
}
.aff-hero-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
}
.aff-act-btn {
  padding: 11px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
}
.aff-act-btn:hover { background: rgba(255,255,255,0.18); }
.aff-act-btn i { font-size: 14px; }
.aff-act-btn--primary {
  background: #fff; color: #6c5ce7;
  border-color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.aff-act-btn--primary:hover {
  background: #fff; transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.2);
}

/* Share card */
.aff-share {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.aff-share-hd {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--text);
}
.aff-share-hd i { color: #6c5ce7; font-size: 16px; }

.aff-share-link {
  display: flex; gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 4px 4px 12px;
  transition: border-color 0.2s;
}
.aff-share-link:focus-within { border-color: #6c5ce7; }
.aff-share-link input {
  flex: 1; border: none; background: transparent;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 12px; color: var(--text);
  outline: none;
  min-width: 0;
}
.aff-share-link button {
  width: 34px; height: 34px; border-radius: 7px;
  border: none; cursor: pointer;
  background: #6c5ce7; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.aff-share-link button:hover { background: #5b4dd9; }
.aff-share-link button.copied { background: #00b894; }

.aff-share-actions {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.aff-share-btn {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.aff-share-btn i { font-size: 14px; }
.aff-share-btn:hover { border-color: var(--text-muted); }
.aff-share-btn--wpp { color: #25d366; border-color: rgba(37,211,102,0.3); }
.aff-share-btn--wpp:hover { background: rgba(37,211,102,0.08); border-color: #25d366; }
.aff-share-btn--tg { color: #0088cc; border-color: rgba(0,136,204,0.3); }
.aff-share-btn--tg:hover { background: rgba(0,136,204,0.08); border-color: #0088cc; }

.aff-share-code {
  font-size: 11px; color: var(--text-muted);
  text-align: center; padding-top: 2px;
}
.aff-share-code strong {
  color: var(--text); font-family: monospace;
  background: var(--bg-input);
  padding: 2px 8px; border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Collapsibles */
.aff-collapse {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.aff-collapse-hd {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
}
.aff-collapse-hd:hover { background: rgba(108,92,231,0.04); }
.aff-collapse-title {
  display: inline-flex; align-items: center; gap: 8px;
}
.aff-collapse-title i:first-child { color: #6c5ce7; font-size: 15px; }
.aff-count {
  font-style: normal; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(108,92,231,0.12);
  color: #6c5ce7;
  margin-left: 4px;
}
.aff-collapse-chev {
  color: var(--text-muted); font-size: 14px;
  transition: transform 0.2s;
}
.aff-collapse.open .aff-collapse-chev { transform: rotate(180deg); }
.aff-collapse-body {
  display: none;
  border-top: 1px solid var(--border);
  padding: 4px 0 8px;
}
.aff-collapse.open .aff-collapse-body { display: block; }
.aff-collapse-body .table-container { border: none; border-radius: 0; }
.aff-collapse-body table { margin: 0; }

/* Mobile */
@media (max-width: 540px) {
  .aff-wrap { padding: 4px 0 24px; }
  .aff-head h1 { font-size: 20px; }
  .aff-hero { padding: 18px 18px 16px; border-radius: 16px; }
  .aff-hero-val { font-size: 38px; }
  .aff-hero-cur { font-size: 18px; }
  .aff-mini strong { font-size: 14px; }
  .aff-act-btn { font-size: 12px; padding: 10px 6px; }
  .aff-share { padding: 14px; }
  .aff-share-actions { gap: 6px; }
  .aff-share-btn { font-size: 11px; padding: 9px 4px; gap: 4px; }
  .aff-share-btn i { font-size: 13px; }
}

/* ════════════════════════════════════════════
   DEPOSIT · PIX SCREEN (estilo Nubank/Mercado Pago)
   ════════════════════════════════════════════ */
.dep-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 8px 0 32px;
}

/* Header */
.dep-head {
  position: relative;
  text-align: center;
  margin-bottom: 18px;
  padding: 8px 0;
}
.dep-head h1 {
  font-size: 22px; font-weight: 700;
  color: var(--text); margin: 0 0 2px;
  letter-spacing: -0.4px;
}
.dep-head p {
  font-size: 13px; color: var(--text-muted);
  margin: 0; font-weight: 500;
}
.dep-back {
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}
.dep-back:hover {
  border-color: #6c5ce7; color: #6c5ce7;
}

/* Saldo atual pill */
.dep-balance-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 0 auto 18px;
  width: fit-content;
  font-size: 13px;
  color: var(--text-muted);
}
.dep-balance-pill i { color: #6c5ce7; font-size: 14px; }
.dep-balance-pill strong {
  color: var(--text); font-weight: 700;
  margin-left: 2px;
}

/* Main card */
.dep-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  gap: 16px;
}

.dep-amount-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  text-align: center;
  margin: 0;
}

/* Big amount display */
.dep-amount-display {
  display: flex; align-items: baseline; justify-content: center;
  gap: 6px;
  padding: 4px 0 0;
  user-select: none;
  cursor: text;
}
.dep-amount-display .dep-amount-cur {
  font-size: 22px; font-weight: 600;
  color: var(--text-muted);
}
.dep-amount-display .dep-amount-val {
  font-size: 56px; font-weight: 800;
  color: var(--text);
  letter-spacing: -2px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dep-amount-display.empty .dep-amount-val { color: var(--text-muted); opacity: 0.4; }
.dep-amount-display--lg .dep-amount-val { font-size: 44px; }
.dep-amount-display--lg .dep-amount-cur { font-size: 18px; }

/* Custom amount input */
.dep-amount-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--text);
  font-size: 14px; font-weight: 600;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.dep-amount-input::-webkit-outer-spin-button,
.dep-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.dep-amount-input:focus {
  border-color: #6c5ce7; border-style: solid;
  background: rgba(108,92,231,0.04);
}
.dep-amount-input::placeholder { color: var(--text-muted); font-weight: 500; }

/* Quick-select chips */
.dep-chips {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.dep-chip {
  padding: 11px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.dep-chip:hover {
  border-color: rgba(108,92,231,0.5);
  background: rgba(108,92,231,0.04);
}
.dep-chip.selected {
  border-color: #6c5ce7;
  background: rgba(108,92,231,0.1);
  color: #6c5ce7;
}

.dep-min {
  text-align: center; font-size: 11px;
  color: var(--text-muted); margin-top: -4px;
}

/* Primary CTA */
.dep-cta {
  width: 100%;
  padding: 15px 16px;
  border-radius: 12px;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, #6c5ce7, #5b4dd9);
  color: #fff; font-size: 15px; font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(108,92,231,0.35);
  margin-top: 4px;
}
.dep-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108,92,231,0.5);
}
.dep-cta:disabled {
  background: var(--bg-input); color: var(--text-muted);
  box-shadow: none; cursor: not-allowed;
}
.dep-cta i { font-size: 17px; }

/* === Step 2: PIX === */
.dep-card--pix {
  align-items: stretch;
  padding: 24px 20px 20px;
}

.dep-qr-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin: 4px auto 6px;
  display: flex; align-items: center; justify-content: center;
  width: fit-content;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}
.dep-qr-wrap img {
  display: block; width: 220px; height: 220px;
  image-rendering: pixelated;
}

.dep-cta--copy {
  background: #6c5ce7;
  box-shadow: 0 3px 12px rgba(108,92,231,0.25);
}
.dep-cta--copy.copied {
  background: #00b894;
  box-shadow: 0 3px 12px rgba(0,184,148,0.3);
}

.dep-pix-code-hidden {
  position: absolute; left: -9999px; top: -9999px;
  opacity: 0; pointer-events: none; width: 1px; height: 1px;
}

/* Status + timer */
.dep-status {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  margin-top: 4px;
}
.dep-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fdcb6e;
  box-shadow: 0 0 0 0 rgba(253,203,110,0.6);
  animation: dep-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dep-pulse {
  0% { box-shadow: 0 0 0 0 rgba(253,203,110,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(253,203,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(253,203,110,0); }
}
.dep-status-text {
  color: var(--text); font-weight: 600; flex: 1;
}
.dep-status-timer {
  color: var(--text-muted); font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.dep-status-timer strong {
  color: var(--text); font-weight: 700;
}
.dep-status.expiring .dep-status-dot {
  background: #e74c3c;
  animation: dep-pulse-red 1s ease-in-out infinite;
}
.dep-status.expiring .dep-status-timer strong { color: #e74c3c; }
.dep-status.confirmed .dep-status-dot {
  background: #00b894; animation: none;
  box-shadow: 0 0 0 4px rgba(0,184,148,0.2);
}
.dep-status.confirmed .dep-status-text { color: #00a382; }
@keyframes dep-pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(231,76,60,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(231,76,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}

/* Trust line */
.dep-trust {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  padding: 4px 0;
}
.dep-trust i { color: #00b894; font-size: 13px; }

/* Confirm payment button (secondary) */
.dep-confirm {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.dep-confirm:hover {
  border-color: #00b894; color: #00b894;
  background: rgba(0,184,148,0.05);
}

/* Mobile */
@media (max-width: 540px) {
  .dep-wrap { padding: 4px 0 24px; }
  .dep-head h1 { font-size: 20px; }
  .dep-card { padding: 22px 18px; }
  .dep-amount-display .dep-amount-val { font-size: 48px; }
  .dep-amount-display--lg .dep-amount-val { font-size: 38px; }
  .dep-qr-wrap img { width: 200px; height: 200px; }
  .dep-chips { gap: 6px; }
  .dep-chip { padding: 10px 6px; font-size: 12px; }
}

/* ════════════════════════════════════════════
   BUY SLOT · E-COMMERCE SHOP
   ════════════════════════════════════════════ */
.sh-sec { padding: 6px 4px 24px; }

/* Top bar */
.sh-topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.sh-title {
  font-size: 26px; font-weight: 800; color: var(--text);
  margin: 0 0 4px; display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.5px;
}
.sh-title i { color: #6c5ce7; font-size: 24px; }
.sh-subtitle { font-size: 14px; color: var(--text-muted); margin: 0; }
.sh-balance {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 12px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
}
.sh-balance-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #00b894, #00cec9);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}
.sh-balance-info { display: flex; flex-direction: column; }
.sh-balance-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.sh-balance-value { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }

/* Trust strip */
.sh-trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px;
}
.sh-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted); font-weight: 500;
  padding: 4px 8px;
}
.sh-trust-item i { font-size: 15px; color: var(--text-muted); flex-shrink: 0; opacity: 0.7; }

/* Product grid */
.sh-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 10px; margin-bottom: 12px;
}

/* Product card */
.sh-product {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex; flex-direction: column;
}
.sh-product:hover {
  transform: translateY(-3px);
  border-color: rgba(108,92,231,0.4);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.sh-product.selected {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108,92,231,0.15), 0 12px 24px rgba(108,92,231,0.18);
}
.sh-product.selected::after {
  content: '✓';
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #6c5ce7; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  box-shadow: 0 3px 10px rgba(108,92,231,0.5);
  z-index: 5;
}

/* Tag (top-left) — refined pill style */
.sh-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px;
  display: inline-flex; align-items: center; gap: 5px;
  z-index: 4;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.sh-tag i { font-size: 10px; }
.sh-tag--new {
  background: #6c5ce7;
}
.sh-tag--bestseller {
  background: linear-gradient(135deg, #6c5ce7, #5b4dd9);
  box-shadow: 0 2px 10px rgba(108,92,231,0.4);
}
.sh-tag--bestseller::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.18), transparent);
  opacity: 0; animation: tag-shine 3s ease-in-out infinite;
}
@keyframes tag-shine {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}
.sh-tag--best {
  background: #00b894;
}

/* Product image area · big number style */
.sh-product-img {
  height: 88px;
  background: linear-gradient(135deg, var(--c), var(--c2));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.sh-img-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2), transparent 40%),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,0.04) 12px 13px);
  pointer-events: none;
}
.sh-img-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; line-height: 1;
}
.sh-img-num {
  font-size: 44px; font-weight: 900;
  color: #fff; letter-spacing: -2px;
  text-shadow: 0 3px 14px rgba(0,0,0,0.25);
  line-height: 1;
}
.sh-img-unit {
  font-size: 11px; font-weight: 800; letter-spacing: 3px;
  color: rgba(255,255,255,0.95);
  margin-top: 2px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.sh-img-corner {
  position: absolute; bottom: 8px; right: 10px;
  font-size: 14px; color: rgba(255,255,255,0.35);
  z-index: 2;
}

/* Product body */
.sh-product-body {
  padding: 12px 14px 10px;
  flex: 1;
  display: flex; flex-direction: column;
}
.sh-product-stars {
  display: flex; align-items: center; gap: 1px;
  margin-bottom: 6px;
  font-size: 10px;
}
.sh-product-stars i { color: #fdcb6e; }
.sh-product-stars .bi-star { color: rgba(253,203,110,0.3); }
.sh-stars-count {
  margin-left: 4px; font-size: 10px;
  color: var(--text-muted); font-weight: 500;
}
.sh-product-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin: 0 0 1px; letter-spacing: -0.2px;
}
.sh-product-desc {
  font-size: 11px; color: var(--text-muted);
  margin: 0 0 8px; line-height: 1.3;
}
.sh-product-feats {
  list-style: none; padding: 0; margin: 0 0 10px;
  display: flex; flex-direction: column; gap: 3px;
}
.sh-product-feats li {
  font-size: 11px; color: var(--text);
  display: flex; align-items: center; gap: 5px;
  line-height: 1.3;
}
.sh-product-feats li i {
  color: #00b894; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}

/* Price */
.sh-product-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: auto; padding-top: 6px;
  border-top: 1px dashed var(--border);
}
.sh-price-now {
  display: inline-flex; align-items: baseline;
  font-weight: 800; color: #00b894;
  letter-spacing: -1px;
}
.sh-price-cur { font-size: 12px; margin-right: 2px; }
.sh-price-now .pc-amount { font-size: 20px; line-height: 1; }
.sh-price-now .pc-cents { font-size: 12px; }
.sh-price-period {
  font-size: 10px; color: var(--text-muted);
  margin-left: 4px; font-weight: 500;
}
.sh-product-installment {
  font-size: 10px; color: var(--text-muted);
  margin: 3px 0 0; font-weight: 500;
}

/* Product button — neutral, primary fill on selected */
.sh-product-btn {
  margin: 0 14px 14px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); cursor: pointer;
  background: transparent; color: var(--text);
  font-size: 12px; font-weight: 600; letter-spacing: 0.2px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s;
}
.sh-product-btn:hover { border-color: #6c5ce7; color: #6c5ce7; background: rgba(108,92,231,0.06); }
.sh-product-btn--hero { border-color: rgba(108,92,231,0.4); color: #6c5ce7; }
.sh-product-btn--hero:hover { background: rgba(108,92,231,0.1); }
.sh-product.selected .sh-product-btn {
  background: #6c5ce7; color: #fff; border-color: #6c5ce7;
}
.sh-product.selected .sh-product-btn::before {
  content: '✓ ';
  font-weight: 700;
}

/* Hero card highlight */
.sh-product--hero { border-color: rgba(108,92,231,0.4); }
.sh-product--hero .sh-product-img { height: 100px; }
.sh-product--hero .sh-img-num { font-size: 52px; }
.sh-product--hero .sh-img-unit { font-size: 12px; letter-spacing: 4px; }

/* === QUANTITY BLOCK — clean single-column card === */
.sh-qty-block {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.sh-qty-block-left { min-width: 0; }

/* Footer: coupon link + buy button, centered max-width */
.sh-qty-block-foot {
  width: 100%; max-width: 460px;
  margin: 4px auto 0;
  display: flex; flex-direction: column;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

/* Coupon — collapsible link style */
.sh-coupon-toggle {
  background: none; border: none; padding: 12px 0 8px; cursor: pointer;
  color: var(--text-muted); font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: color 0.2s;
  align-self: center;
}
.sh-coupon-toggle:hover { color: #6c5ce7; }
.sh-coupon-toggle i { font-size: 12px; transition: transform 0.2s; }
.sh-coupon-toggle .bi-chevron-down { transition: transform 0.2s; }
.sh-coupon-toggle.open .bi-chevron-down { transform: rotate(180deg); }
.sh-qty-coupon {
  display: none; gap: 8px; margin: 4px 0 8px;
}
.sh-qty-coupon.open { display: flex; }
.sh-qty-coupon input {
  flex: 1; padding: 10px 12px; border-radius: 8px;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; outline: none;
  transition: border-color 0.2s;
}
.sh-qty-coupon input:focus { border-color: #6c5ce7; }
.sh-qty-coupon button {
  padding: 10px 16px; border-radius: 8px;
  background: transparent; color: var(--text); border: 1px solid var(--border); cursor: pointer;
  font-size: 13px; font-weight: 600; transition: all 0.2s;
}
.sh-qty-coupon button:hover { border-color: #6c5ce7; color: #6c5ce7; background: rgba(108,92,231,0.05); }
.sh-qty-block-foot .sh-coupon-msg,
.sh-qty-block-foot .sh-coupon-summary { margin-bottom: 8px; font-size: 12px; text-align: center; }
.sh-qty-block-foot .sh-coupon-msg:empty,
.sh-qty-block-foot .sh-coupon-summary:empty { display: none; }

/* Primary CTA — bold button */
.sh-qty-block-foot .sh-cart-btn {
  width: 100%; margin: 6px 0 0;
  padding: 15px 16px; border-radius: 10px;
  background: #6c5ce7; color: #fff; border: none;
  font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: none;
}
.sh-qty-block-foot .sh-cart-btn:hover:not(:disabled) { background: #5b4dd9; }
.sh-qty-block-foot .sh-cart-btn:disabled {
  background: var(--bg-input); color: var(--text-muted); cursor: not-allowed;
}
.sh-qty-block-foot .sh-cart-trust { padding: 10px 0 0; text-align: center; font-size: 11px; color: var(--text-muted); }
.sh-qty-block-foot .sh-cart-trust i { color: var(--text-muted); opacity: 0.7; }
.sh-qty-block-hd {
  margin-bottom: 16px;
}
.sh-qty-block-hd h3 {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin: 0;
}
.sh-qty-block-hd h3 i { display: none; }
.sh-qty-block-hd p { display: none; }
.sh-qty-block .sh-qty-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.sh-qty-block .sh-qty {
  padding: 12px 10px 10px;
}
.sh-qty-block .sh-qty-num { font-size: 20px; }
.sh-qty-block .sh-qty-label { font-size: 10px; margin-bottom: 4px; }
.sh-qty-block .sh-qty-price { font-size: 11px; }
.sh-qty-block-foot { max-width: 380px; }

/* === BOTTOM SECTION (unused, cart moved into qty-block) === */

.sh-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.sh-block-hd { margin-bottom: 10px; }
.sh-block-hd h3 {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin: 0 0 2px; display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.2px;
}
.sh-block-hd h3 i { color: #6c5ce7; font-size: 16px; }
.sh-block-hd p { font-size: 12px; color: var(--text-muted); margin: 0; }

/* Quantity grid · clean & minimal */
.sh-qty-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sh-qty {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 12px 14px;
  cursor: pointer;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: all 0.2s ease;
}
.sh-qty:hover {
  border-color: rgba(108,92,231,0.5);
  background: rgba(108,92,231,0.03);
}
.sh-qty.selected {
  border-color: #6c5ce7;
  background: rgba(108,92,231,0.06);
  box-shadow: 0 0 0 1px #6c5ce7 inset;
}
.sh-qty-num {
  font-size: 26px; font-weight: 700; color: var(--text);
  line-height: 1; letter-spacing: -1px;
}
.sh-qty.selected .sh-qty-num { color: #6c5ce7; }
.sh-qty-label {
  font-size: 11px; font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-bottom: 6px;
  text-transform: none;
}
.sh-qty-price {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0; line-height: 1;
}
.sh-qty-price small {
  font-size: 10px; font-weight: 500; opacity: 0.7;
  margin-left: 1px; letter-spacing: 0;
}
/* Discount badge — single accent style */
.sh-qty-badge {
  position: absolute; top: -8px; right: 8px; left: auto; transform: none;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(108,92,231,0.15);
  color: #6c5ce7;
  font-size: 10px; font-weight: 700; letter-spacing: 0.2px;
  border: 1px solid rgba(108,92,231,0.3);
  box-shadow: none;
  white-space: nowrap;
}
.sh-qty-badge--hot,
.sh-qty-badge--best {
  background: rgba(0,184,148,0.12);
  color: #00a382;
  border-color: rgba(0,184,148,0.3);
  box-shadow: none;
}

/* Coupon */
.sh-coupon {
  display: flex; gap: 8px;
}
.sh-coupon input {
  flex: 1;
  padding: 12px 14px; border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text); font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.sh-coupon input:focus { border-color: #6c5ce7; }
.sh-coupon button {
  padding: 12px 18px; border-radius: 10px;
  background: #2d3436; color: #fff; border: none; cursor: pointer;
  font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.2s;
}
.sh-coupon button:hover { background: #1a1d1f; }
.sh-coupon-msg, .sh-coupon-summary { margin-top: 10px; font-size: 13px; padding: 0; }
.sh-coupon-msg:empty, .sh-coupon-summary:empty { display: none; }

/* === Cart (legacy, only for fallback) === */
.sh-cart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: 340px; min-width: 280px;
}
.sh-cart-hd {
  padding: 14px 18px;
  background: var(--bg-input);
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.sh-cart-hd i { font-size: 14px; color: var(--text-muted); }
.sh-cart-hd h3 { font-size: 13px; font-weight: 700; margin: 0; }

.sh-cart-empty {
  padding: 20px 16px; text-align: center;
}
.sh-cart-empty i {
  font-size: 28px; color: var(--text-muted); opacity: 0.5;
  display: block; margin-bottom: 8px;
}
.sh-cart-empty p {
  font-size: 12px; color: var(--text); font-weight: 600;
  margin: 0 0 3px;
}
.sh-cart-empty small { font-size: 11px; color: var(--text-muted); }

.sh-cart-content { padding: 10px 14px 0; }
.sh-cart-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; font-size: 12px;
}
.sh-cart-line span { color: var(--text-muted); }
.sh-cart-line strong { color: var(--text); font-weight: 600; }
.sh-cart-divider {
  height: 1px; background: var(--border);
  margin: 6px 0;
}
.sh-cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
}
.sh-cart-total span {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.sh-cart-total strong {
  font-size: 20px; font-weight: 800; color: #00b894;
  letter-spacing: -0.5px;
}

.sh-cart-btn {
  width: calc(100% - 28px); margin: 8px 14px;
  padding: 13px; border-radius: 10px; border: none; cursor: pointer;
  background: #6c5ce7;
  color: #fff; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s;
}
.sh-cart-btn:hover:not(:disabled) { background: #5b4dd9; }
.sh-cart-btn:disabled {
  background: var(--bg-input); color: var(--text-muted);
  cursor: not-allowed;
}
.sh-cart-btn i { font-size: 14px; }

.sh-cart-trust {
  padding: 0 14px 10px;
  text-align: center; font-size: 11px;
  color: var(--text-muted);
}
.sh-cart-trust i { color: #00b894; }

/* === Light theme === */
[data-theme="light"] .sh-product,
[data-theme="light"] .sh-block,
[data-theme="light"] .sh-qty-block,
[data-theme="light"] .sh-balance,
[data-theme="light"] .sh-cart {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-theme="light"] .sh-product:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
[data-theme="light"] .sh-qty { background: #fafbfc; }

/* === Responsive === */
@media (max-width: 1280px) {
  .sh-grid { grid-template-columns: repeat(3, 1fr); }
  .sh-qty-block { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  /* qty-block transparente: qty-block-left vira cell direto da grid,
     ao lado do 30 dias, contendo TUDO (qty + cupom + botão) */
  .sh-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sh-qty-block { display: contents; }

  .sh-qty-block-left {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 8px;
    min-width: 0;
    display: flex; flex-direction: column;
    justify-content: flex-start;
  }
  .sh-qty-block-hd { margin-bottom: 6px; text-align: center; }
  .sh-qty-block-hd h3 { font-size: 10px; letter-spacing: 0.5px; }
  .sh-qty-block-hd p { display: none; }

  /* Qty chips em 2x2 */
  .sh-qty-block-left .sh-qty-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .sh-qty-block-left .sh-qty {
    padding: 8px 4px 6px;
    border-radius: 10px;
  }
  .sh-qty-block-left .sh-qty-num { font-size: 17px; font-weight: 800; }
  .sh-qty-block-left .sh-qty-label { font-size: 9px; margin-bottom: 2px; }
  .sh-qty-block-left .sh-qty-price { font-size: 10px; font-weight: 600; }
  .sh-qty-block-left .sh-qty-price small { font-size: 8px; }
  .sh-qty-block-left .sh-qty-badge { font-size: 7px; padding: 1px 5px; top: -5px; right: 4px; }

  /* Footer dentro do mesmo cell, compacto */
  .sh-qty-block-left .sh-qty-block-foot {
    max-width: none; width: 100%;
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .sh-qty-block-left .sh-coupon-toggle { font-size: 10px; padding: 4px 0; gap: 4px; }
  .sh-qty-block-left .sh-coupon-toggle i { font-size: 10px; }
  .sh-qty-block-left .sh-qty-coupon { gap: 4px; margin: 2px 0 4px; }
  .sh-qty-block-left .sh-qty-coupon input { padding: 7px 8px; font-size: 11px; }
  .sh-qty-block-left .sh-qty-coupon button { padding: 7px 10px; font-size: 11px; }
  .sh-qty-block-left .sh-cart-btn {
    padding: 14px 10px; font-size: 14px;
    margin-top: 6px;
    background: linear-gradient(135deg, #6c5ce7, #5b4dd9);
    box-shadow: 0 4px 14px rgba(108,92,231,0.35);
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    animation: sh-btn-pulse 2.4s ease-in-out infinite;
  }
  .sh-qty-block-left .sh-cart-btn:disabled {
    background: var(--bg-input); box-shadow: none; animation: none;
  }
  .sh-qty-block-left .sh-cart-btn i { font-size: 15px; }
  @keyframes sh-btn-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(108,92,231,0.35); }
    50% { box-shadow: 0 6px 22px rgba(108,92,231,0.6); }
  }
  .sh-qty-block-left .sh-cart-trust { font-size: 9px; padding: 6px 0 0; }

  .sh-topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sh-balance { width: 100%; }
}

@media (max-width: 480px) {
  .sh-qty-block-left .sh-qty { padding: 7px 2px 5px; }
  .sh-qty-block-left .sh-qty-num { font-size: 15px; }
  .sh-qty-block-left .sh-qty-label { font-size: 8px; }
  .sh-qty-block-left .sh-qty-price { font-size: 9px; }
}

/* ════════════════════════════════════════════
   BUY SLOT · INTERACTIVE CONFIGURATOR (legado, não usado)
   ════════════════════════════════════════════ */
.cfg-sec {
  position: relative;
  min-height: 100vh;
  padding: 24px 4px 60px;
}
.cfg-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.cfg-orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.4;
  animation: cfgFloat 18s ease-in-out infinite;
}
.cfg-orb--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #6c5ce7 0%, transparent 70%);
  top: -200px; left: -150px;
}
.cfg-orb--2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #00cec9 0%, transparent 70%);
  bottom: -150px; right: -120px;
  animation-delay: -9s;
}
@keyframes cfgFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.08); }
}

/* Header */
.cfg-hd {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: 32px;
  padding: 8px 4px;
}
.cfg-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary-light);
  padding: 6px 12px; border-radius: 50px;
  background: rgba(108,92,231,0.1); border: 1px solid rgba(108,92,231,0.25);
  margin-bottom: 14px;
}
.cfg-title {
  font-size: 38px; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px;
  color: var(--text); margin: 0 0 8px;
}
.cfg-title span {
  background: linear-gradient(135deg, #a29bfe, #6c5ce7, #00cec9);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cfg-sub { font-size: 14px; color: var(--text-muted); margin: 0; max-width: 480px; }
.cfg-wallet {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(0,206,201,0.08));
  border: 1px solid rgba(108,92,231,0.2);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.cfg-wallet-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #6c5ce7, #00cec9);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  box-shadow: 0 4px 14px rgba(108,92,231,0.4);
}
.cfg-wallet > div { display: flex; flex-direction: column; gap: 2px; }
.cfg-wallet-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; font-weight: 500; }
.cfg-wallet-value { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }

/* Grid */
.cfg-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 380px; gap: 24px;
  align-items: start;
}
.cfg-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cfg-side { position: sticky; top: 24px; }

/* Card */
.cfg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
  transition: border-color 0.3s ease;
}
.cfg-card:hover { border-color: rgba(108,92,231,0.3); }
.cfg-card-hd {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.cfg-step {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
  background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(108,92,231,0.05));
  color: var(--primary-light);
  border: 1px solid rgba(108,92,231,0.2);
  flex-shrink: 0;
}
.cfg-card-title { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 2px; letter-spacing: -0.2px; }
.cfg-card-sub { font-size: 12px; color: var(--text-muted); margin: 0; }

/* === Step 1: Days pills === */
.cfg-pills {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.cfg-pill {
  position: relative;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 8px 14px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: all 0.25s ease;
  color: var(--text);
}
.cfg-pill:hover {
  border-color: rgba(108,92,231,0.4);
  transform: translateY(-2px);
}
.cfg-pill.is-selected {
  border-color: var(--primary-light);
  background: linear-gradient(135deg, rgba(108,92,231,0.18), rgba(0,206,201,0.08));
  box-shadow: 0 6px 20px rgba(108,92,231,0.25), inset 0 0 0 1px rgba(108,92,231,0.4);
}
.cfg-pill-num { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.cfg-pill-unit { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; }
.cfg-pill.is-selected .cfg-pill-unit { color: var(--primary-light); }
.cfg-pill-tag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 50px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  box-shadow: 0 2px 8px rgba(108,92,231,0.4);
  white-space: nowrap;
}
.cfg-pill-tag--best { background: linear-gradient(135deg, #00b894, #00cec9); box-shadow: 0 2px 8px rgba(0,184,148,0.4); }

/* === Step 2: Quantity === */
.cfg-qty-display {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 8px 0 28px;
}
.cfg-qty-btn {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text); font-size: 16px;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.cfg-qty-btn:hover {
  border-color: var(--primary-light); background: rgba(108,92,231,0.1);
  transform: scale(1.05);
}
.cfg-qty-btn:active { transform: scale(0.95); }
.cfg-qty-value {
  display: flex; align-items: baseline; gap: 8px;
  min-width: 140px; justify-content: center;
}
.cfg-qty-value input {
  width: 90px; text-align: center;
  font-size: 48px; font-weight: 800; letter-spacing: -2px;
  background: transparent; border: none; outline: none;
  color: var(--text); padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.cfg-qty-value input::-webkit-outer-spin-button,
.cfg-qty-value input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cfg-qty-suffix { font-size: 14px; color: var(--text-muted); font-weight: 500; }

.cfg-slider-wrap {
  position: relative; padding: 8px 0 30px;
  margin-bottom: 20px;
}
.cfg-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 6px;
  background: var(--bg-input);
  outline: none; position: relative; z-index: 2;
}
.cfg-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
  cursor: grab;
  box-shadow: 0 4px 14px rgba(108,92,231,0.5), 0 0 0 4px rgba(108,92,231,0.15);
  border: 3px solid #fff;
  transition: transform 0.15s;
}
.cfg-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.cfg-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.05); }
.cfg-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
  cursor: grab; border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(108,92,231,0.5);
}
.cfg-slider-track-fill {
  position: absolute; top: 8px; left: 0; height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #6c5ce7, #00cec9);
  pointer-events: none; z-index: 1;
  transition: width 0.2s ease;
}
.cfg-slider-ticks {
  position: absolute; top: 8px; left: 0; right: 0; height: 6px;
  pointer-events: none;
}
.cfg-tick {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
}
.cfg-slider-labels {
  position: absolute; bottom: 0; left: 0; right: 0; height: 18px;
  pointer-events: none;
}
.cfg-slider-labels span {
  position: absolute; transform: translateX(-50%);
  font-size: 11px; color: var(--text-muted); font-weight: 500;
}

/* Tier badge */
.cfg-tier {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(0,206,201,0.04));
  border: 1px solid rgba(108,92,231,0.18);
  transition: all 0.3s ease;
}
.cfg-tier-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(108,92,231,0.15); color: var(--primary-light); font-size: 16px;
  flex-shrink: 0;
}
.cfg-tier-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cfg-tier-name { font-size: 14px; font-weight: 700; color: var(--text); }
.cfg-tier-desc { font-size: 12px; color: var(--text-muted); }
.cfg-tier-discount {
  font-size: 16px; font-weight: 800; color: var(--text);
  letter-spacing: -0.3px;
}
.cfg-tier-discount small { font-size: 11px; font-weight: 500; opacity: 0.6; }

/* Insight */
.cfg-insight {
  margin-top: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(253,203,110,0.1), rgba(243,156,18,0.05));
  border: 1px solid rgba(253,203,110,0.25);
  font-size: 13px; color: var(--text);
}
.cfg-insight i { color: #fdcb6e; font-size: 16px; flex-shrink: 0; }

/* Coupon */
.cfg-coupon {
  display: flex; gap: 8px;
}
.cfg-coupon input {
  flex: 1;
  padding: 12px 16px; border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text); font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.cfg-coupon input:focus { border-color: var(--primary-light); }
.cfg-coupon button {
  padding: 12px 20px; border-radius: 10px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff; border: none; cursor: pointer;
  font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 0.15s, box-shadow 0.2s;
}
.cfg-coupon button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(108,92,231,0.4); }
.cfg-coupon-result, .cfg-coupon-summary {
  margin-top: 10px; padding: 0 4px;
  font-size: 13px;
}
.cfg-coupon-result:empty, .cfg-coupon-summary:empty { display: none; }

/* === Sticky Summary === */
.cfg-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.cfg-summary::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #6c5ce7, #00cec9, #a29bfe);
}
.cfg-summary-hd {
  padding: 20px 24px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.cfg-summary-hd i { font-size: 18px; color: var(--primary-light); }
.cfg-summary-hd h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; letter-spacing: -0.2px; }

.cfg-summary-empty {
  padding: 50px 24px; text-align: center;
}
.cfg-empty-icon {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 14px;
  background: rgba(108,92,231,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--primary-light);
  animation: cfgPulse 2.5s ease-in-out infinite;
}
@keyframes cfgPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}
.cfg-summary-empty p { color: var(--text-muted); font-size: 13px; margin: 0; }

.cfg-summary-content { padding: 24px; }

.cfg-total-display {
  text-align: center; padding: 4px 0 20px;
  border-bottom: 1px dashed var(--border); margin-bottom: 18px;
}
.cfg-total-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); display: block; margin-bottom: 4px;
}
.cfg-total-value {
  font-size: 38px; font-weight: 800; letter-spacing: -1.5px; line-height: 1;
  background: linear-gradient(135deg, #a29bfe, #6c5ce7, #00cec9);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: inline-block;
}
.cfg-total-original {
  display: block; margin-top: 4px;
  font-size: 13px; color: var(--text-muted); text-decoration: line-through;
}

.cfg-summary-lines {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 20px;
}
.cfg-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.cfg-line span {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted);
}
.cfg-line span i { font-size: 13px; opacity: 0.7; }
.cfg-line strong { color: var(--text); font-weight: 700; font-size: 13px; }
.cfg-line--discount strong, .cfg-line--coupon strong { color: #00b894; }

.cfg-cta {
  width: 100%; padding: 16px; border-radius: 12px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff; border: none; cursor: pointer;
  font-weight: 700; font-size: 15px; letter-spacing: 0.2px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 8px 24px rgba(108,92,231,0.35);
}
.cfg-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(108,92,231,0.5);
}
.cfg-cta:active:not(:disabled) { transform: translateY(0); }
.cfg-cta:disabled { opacity: 0.5; cursor: not-allowed; }
.cfg-cta i { font-size: 16px; }

.cfg-trust {
  margin-top: 16px;
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  font-size: 11px; color: var(--text-muted);
}
.cfg-trust span { display: inline-flex; align-items: center; gap: 4px; }
.cfg-trust i { color: #00b894; }

/* === Light theme === */
[data-theme="light"] .cfg-orb { opacity: 0.25; }
[data-theme="light"] .cfg-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-theme="light"] .cfg-card:hover {
  box-shadow: 0 8px 24px rgba(108,92,231,0.1);
}
[data-theme="light"] .cfg-pill { background: #fafbfc; }
[data-theme="light"] .cfg-pill.is-selected {
  background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,206,201,0.05));
}
[data-theme="light"] .cfg-tick { background: #fff; }
[data-theme="light"] .cfg-summary {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
[data-theme="light"] .cfg-wallet {
  background: linear-gradient(135deg, rgba(108,92,231,0.06), rgba(0,206,201,0.04));
}

/* === Responsive === */
@media (max-width: 1024px) {
  .cfg-grid { grid-template-columns: 1fr; }
  .cfg-side { position: static; }
}
@media (max-width: 768px) {
  .cfg-hd { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cfg-title { font-size: 28px; }
  .cfg-pills { grid-template-columns: repeat(3, 1fr); }
  .cfg-pills .cfg-pill:nth-child(4),
  .cfg-pills .cfg-pill:nth-child(5) { grid-column: span 1; }
  .cfg-card { padding: 20px; }
  .cfg-qty-value input { font-size: 38px; width: 70px; }
  .cfg-total-value { font-size: 32px; }
  .cfg-wallet { width: 100%; }
}
@media (max-width: 480px) {
  .cfg-pills { grid-template-columns: repeat(2, 1fr); }
  .cfg-pill-num { font-size: 22px; }
  .cfg-coupon { flex-direction: column; }
  .cfg-coupon button { width: 100%; justify-content: center; }
}

