/* CSS Reset & General styling */
:root {
  --bg-dark: #07090e;
  --bg-panel: rgba(16, 20, 30, 0.6);
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-glass-active: rgba(99, 102, 241, 0.25);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  /* Harmonious Palette */
  --neon-blue: #6366f1; /* Indigo */
  --neon-blue-glow: rgba(99, 102, 241, 0.35);
  --neon-green: #06b6d4; /* Cyan */
  --neon-green-glow: rgba(6, 182, 212, 0.35);
  --neon-red: #ef4444; /* Soft Red */
  --neon-red-glow: rgba(239, 68, 68, 0.35);
  --neon-orange: #f59e0b; /* Amber */
  
  --font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  --transition-speed: 0.25s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 5% 5%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
    radial-gradient(at 95% 95%, rgba(6, 182, 212, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--neon-green) !important; }
.text-danger { color: var(--neon-red) !important; }
.margin-top { margin-top: 1.5rem; }
.span-2 { grid-column: span 2; }

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism Containers */
.glass-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-speed) ease;
}
.btn-primary {
  background: var(--neon-blue);
  color: #fff;
  box-shadow: 0 0 15px var(--neon-blue-glow);
}
.btn-primary:hover {
  background: #33b5ff;
  box-shadow: 0 0 25px var(--neon-blue-glow);
  transform: translateY(-2px);
}
.btn-success {
  background: var(--neon-green);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 15px var(--neon-green-glow);
}
.btn-success:hover {
  background: #33ff99;
  box-shadow: 0 0 25px var(--neon-green-glow);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 6px;
}
.btn-block {
  width: 100%;
}

/* Alert States */
.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert.error {
  background: rgba(255, 61, 0, 0.1);
  border: 1px solid rgba(255, 61, 0, 0.3);
  color: #ff8a65;
}

/* 1. LOGIN VIEW */
#login-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  background: var(--bg-dark);
}
.login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}
.login-glass-card {
  background: rgba(18, 22, 32, 0.45);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.login-header {
  margin-bottom: 2rem;
}
.logo-glow {
  width: 64px;
  height: 64px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.logo-icon {
  font-size: 1.8rem;
  color: var(--neon-blue);
}
.login-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
}
.login-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.input-icon-wrapper {
  position: relative;
  width: 100%;
}
.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}
.input-icon-wrapper input,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-speed);
}
.form-group select,
.form-group textarea,
.form-group input:not([type="email"]):not([type="password"]) {
  padding-left: 1rem; /* Sin icono */
}
.input-icon-wrapper input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 162, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
}

/* 2. MAIN APP LAYOUT */
#app-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  background: rgba(12, 15, 23, 0.85);
  border-right: 1px solid var(--border-glass);
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-main);
  margin-bottom: 2rem;
  padding-left: 0.5rem;
}
.brand-icon {
  color: var(--neon-blue);
  font-size: 1.4rem;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-bottom: 2rem;
}
.user-profile-badge .avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 162, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-blue);
  font-size: 1.2rem;
  border: 1px solid var(--border-glass-active);
}
.user-profile-badge .user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.user-profile-badge .user-info .name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.user-profile-badge .user-info .role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-speed);
}
.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}
.nav-item.active {
  color: #fff;
  background: rgba(0, 162, 255, 0.1);
  border: 1px solid var(--border-glass-active);
}
.nav-item.active i {
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue-glow);
}

/* Content Area */
.content-area {
  padding: 2rem 2.5rem;
  overflow-y: auto;
  height: 100vh;
}
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.content-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
}

/* KPI METRIC LIST (Vertical Stack) */
.kpi-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}
.kpi-row {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kpi-row-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}
@media (max-width: 576px) {
  .kpi-row-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
.kpi-row-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 150px;
}
.kpi-row-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.kpi-row-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: right;
}
@media (max-width: 576px) {
  .kpi-row-subtext {
    text-align: left;
  }
}

/* Upgrade List (Vertical Stack for Billing) */
.upgrade-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}
.upgrade-item {
  position: relative;
  background: rgba(18, 22, 32, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.upgrade-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

/* Charts styles */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 992px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}
.chart-container {
  height: 350px;
  display: flex;
  flex-direction: column;
}
.chart-container h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.chart-container canvas {
  flex: 1;
  max-height: calc(100% - 2.5rem);
}

/* Tab contents toggling */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* TABLES STYLING */
.table-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.table-section .section-header h3 {
  font-size: 1.1rem;
}
.link-more {
  color: var(--neon-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition-speed);
}
.link-more:hover {
  color: #33b5ff;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.table th,
.table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-glass);
  vertical-align: middle;
}
.table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.table tbody tr {
  transition: background-color var(--transition-speed);
}
.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Transaction badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.val-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}
.val-badge.purchase, .badge.purchase {
  background: rgba(255, 61, 0, 0.15);
  color: #ff7043;
  border: 1px solid rgba(255, 61, 0, 0.2);
}
.val-badge.sale, .badge.sale {
  background: rgba(0, 230, 118, 0.15);
  color: #69f0ae;
  border: 1px solid rgba(0, 230, 118, 0.2);
}
.badge.confirmed {
  background: rgba(0, 230, 118, 0.1);
  color: var(--neon-green);
}
.badge.pending {
  background: rgba(255, 145, 0, 0.1);
  color: var(--neon-orange);
}
.badge.ticketmaster {
  background: rgba(0, 162, 255, 0.1);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 162, 255, 0.2);
}
.badge.stubhub {
  background: rgba(145, 0, 255, 0.1);
  color: #d500f9;
  border: 1px solid rgba(145, 0, 255, 0.2);
}
.badge.axs {
  background: rgba(255, 235, 59, 0.1);
  color: #ffee58;
  border: 1px solid rgba(255, 235, 59, 0.2);
}

/* Action icons inside tables */
.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}
.btn-icon.delete:hover {
  background: rgba(255, 61, 0, 0.1);
  color: var(--neon-red);
}

/* Filter bar styles */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.filter-group {
  flex: 1;
  min-width: 180px;
}
.filter-group input,
.filter-group select {
  width: 100%;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-main);
  outline: none;
  font-size: 0.85rem;
}
.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--neon-blue);
}

/* 3. INGEST PAGE STYLES */
.ingest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .ingest-grid {
    grid-template-columns: 1fr;
  }
}
.imap-status-card {
  padding: 1.25rem;
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.imap-status-card.info {
  background: rgba(0, 162, 255, 0.06);
  border: 1px solid rgba(0, 162, 255, 0.15);
}
.status-icon {
  font-size: 1.3rem;
  color: var(--neon-blue);
}
.status-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.status-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.code-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: monospace;
  font-size: 0.85rem;
}
.btn-copy {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: color var(--transition-speed);
}
.btn-copy:hover {
  color: var(--neon-blue);
}

.status-list {
  list-style: none;
  margin-top: 0.75rem;
}
.status-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.active {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green-glow);
}

/* Drag and Drop Zone */
.drag-drop-zone {
  border: 2px dashed var(--border-glass);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: all var(--transition-speed);
  margin-bottom: 1.5rem;
}
.drag-drop-zone:hover, .drag-drop-zone.dragover {
  border-color: var(--neon-blue);
  background: rgba(0, 162, 255, 0.03);
}
.cloud-icon {
  font-size: 2.2rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  transition: color var(--transition-speed);
}
.drag-drop-zone:hover .cloud-icon {
  color: var(--neon-blue);
}
.drag-drop-zone p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 1.5rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-glass);
}
.divider:not(:empty)::before { margin-right: .75em; }
.divider:not(:empty)::after { margin-left: .75em; }

/* Parsed Result Display */
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.result-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.parsed-data-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-glass);
}
.data-item label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.data-item span, .data-item strong {
  font-size: 0.95rem;
}
.result-actions {
  display: flex;
  gap: 1rem;
}

/* 4. MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 1;
  transition: opacity var(--transition-speed);
}
.modal-overlay.hidden {
  display: none;
  opacity: 0;
}
.modal-glass-card {
  width: 100%;
  max-width: 600px;
  background: rgba(18, 22, 32, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.75rem;
}
.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition-speed);
}
.close-btn:hover {
  color: var(--neon-red);
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Responsive sidebar adaptations */
@media (max-width: 768px) {
  #app-container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .content-area {
    padding: 1.5rem 1rem;
  }
}

/* ==========================================
   SAAS LANDING & PRICING PAGE STYLES
   ========================================== */
.navbar {
  width: 100%;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(7, 9, 14, 0.5);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo-svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-logo:hover .brand-logo-svg {
  transform: rotate(5deg) scale(1.08);
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #fff 40%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-nav-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  transition: color var(--transition-speed);
}
.btn-nav-link:hover {
  color: #fff;
}

.landing-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
}

.hero-section {
  text-align: center;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.announcement-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 30px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.5rem;
  transition: all var(--transition-speed);
}
.announcement-pill:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.1);
}
.pill-badge {
  background: var(--neon-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
}
.pill-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
}
.hero-section h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}
.gradient-text {
  background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto;
}

/* Sandbox / ROI Section */
.sandbox-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}
.section-title-wrap {
  text-align: center;
  max-width: 600px;
}
.section-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon-blue);
  margin-bottom: 0.5rem;
  display: block;
}
.section-title-wrap h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #fff;
}
.section-title-wrap p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.sandbox-container {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
}
@media (max-width: 768px) {
  .sandbox-container {
    grid-template-columns: 1fr;
  }
}
.sandbox-card {
  background: rgba(16, 20, 30, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sandbox-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sandbox-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group-custom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group-custom label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group-custom input {
  width: 100%;
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  transition: all var(--transition-speed);
}
.form-group-custom input:focus {
  outline: none;
  border-color: var(--border-glass-active);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.1);
}
.input-prefix-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-symbol {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.input-prefix-wrapper input {
  padding-left: 2rem;
}

/* Ledger Preview Card styling */
.ledger-preview-card {
  border-color: rgba(99, 102, 241, 0.15);
}
.ledger-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ledger-badge {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--neon-green);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dot-blink {
  width: 6px;
  height: 6px;
  background-color: var(--neon-green);
  border-radius: 50%;
  animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
  50% { opacity: 0.3; }
}

.ledger-row-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 9, 14, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}
.ledger-node {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 2;
}
.p-node { align-items: flex-start; }
.s-node { align-items: flex-end; }
.node-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.node-platform {
  font-size: 0.95rem;
  font-weight: 600;
}
.node-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.ledger-connector {
  position: absolute;
  left: 20%;
  right: 20%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.connector-line {
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-glass), var(--border-glass) 6px, transparent 6px, transparent 12px);
}
.connector-tag {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--neon-blue);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.ledger-metric-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
}
.summary-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.text-right { text-align: right; }
.summary-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.summary-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.summary-val.accent {
  color: var(--neon-green);
}

/* Walkthrough Pipeline styling */
.pipeline-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  align-items: center;
}
.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 800px;
}
.pipeline-step-item {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: rgba(16, 20, 30, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  align-items: flex-start;
  transition: all var(--transition-speed);
}
.pipeline-step-item:hover {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(16, 20, 30, 0.45);
}
.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--neon-blue);
  line-height: 1;
}
.step-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.step-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}
.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* SaaS Pricing Table */
.pricing-section {
  width: 100%;
  text-align: center;
}
.pricing-section h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.pricing-section > p {
  color: var(--text-muted);
  margin-bottom: 3rem;
}
/* SaaS Pricing List (Vertical Stack) */
.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-item {
  position: relative;
  background: rgba(18, 22, 32, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.pricing-item.popular {
  border-color: var(--neon-blue);
}
.popular-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--neon-blue);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.pricing-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pricing-item-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}
.plan-desc {
  color: var(--text-muted);
  font-size: 0.90rem;
  margin: 0;
}
.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.plan-features-list li {
  font-size: 0.9rem;
  color: var(--text-main);
}
.plan-features-list li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}

/* ==========================================
   SAAS BILLING & PLAN METER STYLES
   ========================================== */
.billing-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
}
@media (max-width: 992px) {
  .billing-grid {
    grid-template-columns: 1fr;
  }
}
.usage-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.usage-metric {
  margin-top: 0.5rem;
}
.usage-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.usage-progress-container {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}
.usage-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), #33ffaa);
  border-radius: 10px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.1, 0.8, 0.25, 1);
}
.usage-progress-bar.warning {
  background: linear-gradient(90deg, var(--neon-orange), var(--neon-red));
}

/* Plan Toggle Form View */
.form-footer-toggle {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.form-footer-toggle a {
  color: var(--neon-blue);
  text-decoration: none;
  font-weight: 500;
}
.form-footer-toggle a:hover {
  text-decoration: underline;
}

/* Stripe Checkout Simulated Modal */
.checkout-card {
  max-width: 450px !important;
}
.card-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
.stripe-logo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  color: #635bff; /* Stripe Purple */
  font-size: 1.3rem;
  font-weight: 700;
}
.stripe-logo-header i {
  font-size: 1.8rem;
}

/* Payment processing checkmark animation */
.payment-success-animation {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.1);
  border: 2px solid var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--neon-green);
  animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ==========================================
   ADMIN PANEL DASHBOARD
   ========================================== */
/* Admin Stats List (Vertical Stack) */
.admin-stats-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}
.admin-kpi-row {
  padding: 1.25rem 1.5rem;
  background: rgba(12, 16, 26, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-kpi-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-right: 1.5rem;
}
@media (max-width: 576px) {
  .admin-kpi-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
.admin-kpi-row i {
  font-size: 1.25rem;
  color: var(--neon-blue);
  opacity: 0.8;
}

/* Keyframe Animations */
@keyframes scaleUp {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

