/* ==========================================================================
   PAYGRINGA PRO — Modern Dark Monochrome Design System
   ========================================================================== */

:root {
  --bg-black: #000000;
  --bg-dark: #09090b;
  --bg-card: #111114;
  --bg-card-hover: #18181c;
  --bg-glass: rgba(18, 18, 22, 0.85);
  
  --text-main: #ffffff;
  --text-secondary: #e4e4e7;
  --text-muted: #71717a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --accent-green: #22c55e;
  --accent-green-bg: rgba(34, 197, 94, 0.12);
  --accent-red: #ef4444;
  --accent-red-bg: rgba(239, 68, 68, 0.12);
  --accent-amber: #f59e0b;
  --accent-amber-bg: rgba(245, 158, 11, 0.12);

  --sidebar-w: 260px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-black);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Classes */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
}

/* ==================== LOGIN SCREEN ==================== */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: radial-gradient(circle at 50% 30%, #17171c 0%, #000000 70%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.brand-monogram {
  width: 48px;
  height: 48px;
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.login-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.login-header h2 span {
  font-weight: 400;
  color: var(--text-muted);
}

.login-header p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ==================== BUTTONS ==================== */
button, .btn {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #18181b;
  color: #ffffff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #27272a;
  border-color: var(--border-hover);
}

.btn-success {
  background: var(--accent-green);
  color: #000000;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 13px;
}

.btn-success:hover {
  background: #16a34a;
}

.btn-danger {
  background: #271414;
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}

.btn-danger:hover {
  background: #3f1a1a;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  background: transparent;
  color: var(--text-muted);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.btn-icon:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.w-full { width: 100%; }

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="file"],
select,
textarea {
  width: 100%;
  background: #121215;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: #ffffff;
  background: #17171c;
}

input::placeholder, textarea::placeholder {
  color: #52525b;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button input {
  flex: 1;
}

.checkbox-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-wrapper label {
  margin-bottom: 0;
  cursor: pointer;
  font-size: 13px;
}

/* ==================== SIDEBAR ==================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: #000000;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.sidebar-brand {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-brand .brand-monogram {
  width: 36px;
  height: 36px;
  font-size: 14px;
  margin-bottom: 0;
  border-radius: 8px;
}

.brand-text h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.badge-monochrome {
  font-size: 9px;
  font-weight: 700;
  background: #27272a;
  color: #a1a1aa;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.sidebar-menu {
  padding: 20px 14px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-label {
  font-size: 10px;
  font-weight: 700;
  color: #52525b;
  margin: 18px 8px 6px 8px;
  letter-spacing: 0.8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.nav-item:hover .nav-icon {
  opacity: 1;
}

.nav-item.active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

.nav-item.active .nav-icon {
  opacity: 1;
  stroke: #000000;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #18181b;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 13px; font-weight: 700; color: #ffffff; }
.user-role { font-size: 11px; color: var(--text-muted); }

/* ==================== MAIN CONTENT & TOPBAR ==================== */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 68px;
  background: #000000;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-left h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.bot-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #121215;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.bot-selector-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bot-selector-select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  padding: 0;
}

.bot-selector-select option {
  background: #121215;
  color: #ffffff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==================== PAGES ==================== */
.page-content {
  display: none;
  padding: 36px;
}

.page-content.active {
  display: block;
}

/* KPI Cards */
.grid-kpi, .kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.kpi-card {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  background: rgba(18, 18, 22, 0.7);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #18181b;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 12px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 6px;
  color: #ffffff;
}

.kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.text-success { color: var(--accent-green) !important; }
.text-danger { color: var(--accent-red) !important; }
.text-muted { color: var(--text-muted) !important; }

/* Content Cards */
.content-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.subcard-dark {
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.card-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.text-sm { font-size: 13px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.text-center { text-align: center; }

/* ==================== TABLES ==================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.status-pending {
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
}

.status-approved {
  background: var(--accent-green-bg);
  color: var(--accent-green);
}

.status-rejected {
  background: var(--accent-red-bg);
  color: var(--accent-red);
}

.funnel-slug {
  font-family: monospace;
  background: #18181b;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #fafafa;
  border: 1px solid var(--border-color);
}

/* ==================== BOTS GRID ==================== */
.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.bot-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bot-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bot-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.bot-avatar-fallback {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #18181b;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.bot-card-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.bot-card-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.bot-card-details {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #000000;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.bot-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* ==================== FUNNELS & MEDIA CARDS ==================== */
.funnels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.funnel-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.funnel-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.media-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.media-chip {
  background: #18181b;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.remove-chip {
  cursor: pointer;
  color: var(--text-muted);
  font-weight: bold;
}

.remove-chip:hover {
  color: var(--accent-red);
}

/* Media Send Mode Interactive Cards */
.media-mode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.media-mode-card {
  background: #121215;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.15s ease;
}

.media-mode-card:hover {
  border-color: var(--border-hover);
  background: #17171c;
}

.media-mode-card.active {
  border-color: #ffffff;
  background: #18181f;
}

.mode-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.mode-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.mode-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* ==================== PAYMENT GATEWAYS HUB ==================== */
.gateway-mode-card {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.mode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mode-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ffffff;
}

.mode-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.mode-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.mode-option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #121215;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-option-card:hover {
  border-color: var(--border-hover);
}

.mode-option-card input[type="radio"] {
  margin-top: 3px;
  accent-color: #ffffff;
}

.mode-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.mode-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.gateways-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gateway-box {
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.gateway-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #a1a1aa;
  background: #18181b;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.stripe-badge {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.12);
}

.gateway-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.info-callout {
  background: #000000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.info-callout code {
  color: #fafafa;
  font-size: 12px;
  font-family: monospace;
  word-break: break-all;
}

/* ==================== MODALS ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.modal-xl {
  max-width: 820px;
}

.modal-2xl {
  max-width: 1040px;
  width: 95vw;
}

.modal-nav-tabs {
  display: flex;
  gap: 8px;
  background: #0d0d11;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.modal-nav-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.modal-nav-tab.active {
  background: #22222a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.modal-nav-tab:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #ffffff;
}

.code-badge {
  font-family: monospace;
  background: #000000;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #ffffff;
}

.proof-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.proof-image-container {
  background: #000000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.proof-img {
  max-width: 100%;
  max-height: 380px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

/* Live Bot Preview inside Modal */
.bot-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #000000;
}

.bot-preview-avatar img,
.bot-fallback-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #18181b;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.2s ease forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== KPI 6-COLUMN GRID & BADGES ==================== */
.grid-kpi-6 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.text-accent { color: #818cf8 !important; }
.text-info { color: #38bdf8 !important; }
.text-danger { color: #f43f5e !important; }

/* ==================== CONVERSION PIPELINE ==================== */
.funnel-pipeline-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0;
}

.pipeline-step-box {
  flex: 1;
  min-width: 170px;
  background: #111115;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.pipeline-step-box:hover {
  border-color: var(--border-hover);
  background: #16161c;
}

.pipeline-step-box.highlight-success {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.04);
}

.step-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #1e1e24;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
}

.badge-success {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}

.step-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
}

.step-count {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.step-sub {
  font-size: 11px;
}

.pipeline-arrow {
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #27272a;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.bg-info { background: #38bdf8; }
.bg-accent { background: #818cf8; }
.bg-warning { background: #f59e0b; }
.bg-success { background: #22c55e; }

/* Gateways Stat Grid */
.gateways-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gateway-stat-card {
  background: #111115;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gateway-stat-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.gateway-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.gateway-stat-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Filter Toolbar */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: #111115;
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

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

.form-control-sm {
  background: #18181b;
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}

.form-control-sm:focus {
  border-color: #ffffff;
}

/* User status badges */
.badge-active-24h {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-active-7d {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-blocked {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-customer {
  background: rgba(129, 140, 248, 0.15);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
  .gateways-grid, .proof-view-grid, .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .funnel-pipeline-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .pipeline-arrow {
    text-align: center;
    transform: rotate(90deg);
  }
}

/* Bot filter banner & Bot card hash tags */
.bot-filter-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111115;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.badge-filter-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(129, 140, 248, 0.15);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.bot-hash-tag {
  display: inline-block;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: #18181b;
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

/* Filter Tabs for Transactions */
.filter-tabs {
  display: flex;
  gap: 6px;
  background: #111115;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.btn-filter-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filter-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-filter-tab.active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

/* Activity Feed (Live Generation Stream) */
.activity-feed {
  background: #09090b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-height: 220px;
  overflow-y: auto;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.feed-item:last-child {
  border-bottom: none;
}

/* Variable Tag Chips */
.var-chips-container {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.var-chip {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.var-chip:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.6);
  transform: translateY(-1px);
}

.badge-purple {
  display: inline-block;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.shrink-0 {
  flex-shrink: 0;
}

.ml-4 {
  margin-left: 16px;
}

/* ==================== FUNNEL CARDS CLEAN DESIGN ==================== */
.funnel-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(18, 18, 22, 0.75);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.funnel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.funnel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.funnel-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.funnel-slug-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 11px;
  color: #d4d4d8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.funnel-slug-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.funnel-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.funnel-pill {
  font-size: 11px;
  color: #a1a1aa;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

/* ==================== BADGE NEW PARA COMPROVANTES ==================== */
.badge-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  margin-left: 6px;
  vertical-align: middle;
  animation: pulseBadgeNew 2s infinite;
}

@keyframes pulseBadgeNew {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.96); }
}

/* ==================== TYPOGRAPHY BRANDING: ZUNOBOT ==================== */
.brand-zuno {
  font-weight: 900;
  letter-spacing: -0.6px;
  color: #ffffff;
}

.brand-bot {
  font-weight: 300;
  letter-spacing: 0.8px;
  color: #a1a1aa;
  opacity: 0.85;
}

