:root {
  --bg-color: #0B0F19; /* Deep Navy Dark */
  --bg-panel: #111827;
  --bg-light: #1F2937;
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  
  --primary: #4F46E5; /* Indigo/Blue for AP identity */
  --primary-hover: #4338CA;
  --accent: #FBBF24; /* Gold/Yellow for warnings/attention */
  --blue: #3B82F6;
  --purple: #8B5CF6;
  --green: #10B981;
  
  --border: #374151;
  --radius: 16px;
  --transition: all 0.2s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background Glow */
.bg-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, rgba(11, 15, 25, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #FFFFFF;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.text-highlight {
  color: var(--primary);
}

.text-green { color: var(--primary); }

p {
  line-height: 1.6;
  color: var(--text-muted);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }
.hidden { display: none !important; }
.mt-4 { margin-top: 16px; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 1000;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.logo-icon {
  color: var(--primary);
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 32px;
  }
  .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
  }
  .nav-links a:hover {
    color: #fff;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.05);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: 12px;
}

.btn-nav {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.block-btn {
  width: 100%;
  display: flex;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
  }
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.main-heading {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
}

.hero .subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  color: #D1D5DB;
}

.hero .subtitle strong {
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.micro-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.browser-warning {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #EF4444;
  font-size: 0.9rem;
  background: rgba(239, 68, 68, 0.1);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Dashboard Mockup */
.dashboard-mockup {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.mockup-header {
  height: 40px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.mockup-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mockup-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.insight-card {
  background: rgba(79, 70, 229, 0.05);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.insight-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.insight-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.insight-trend {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.insight-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.insight-title {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.title-copy {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
  margin-top: 8px;
}

/* Sections */
.section {
  padding: 100px 0;
}

.bg-light-alt {
  background-color: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 60px;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.benefit-card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.bg-blue-light { background: rgba(59, 130, 246, 0.1); }
.bg-green-light { background: rgba(16, 185, 129, 0.1); }
.bg-purple-light { background: rgba(139, 92, 246, 0.1); }

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Report Section */
.report-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}

@media (min-width: 1024px) {
  .report-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.report-text h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.feature-checklist {
  list-style: none;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-checklist li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.check-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-checklist strong {
  display: block;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* Glass Panel / Report Visual */
.glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.glass-header {
  height: 40px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.mac-dots {
  display: flex;
  gap: 6px;
}

.mac-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mac-dots i:nth-child(1) { background: #FF5F56; }
.mac-dots i:nth-child(2) { background: #FFBD2E; }
.mac-dots i:nth-child(3) { background: #27C93F; }

.glass-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.glass-body {
  padding: 24px;
}

.info-group label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

/* Price Suggest Box */
.price-suggest-box {
  background: rgba(79, 70, 229, 0.05);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.price-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.price-trend {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

/* List Rows */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #fff;
}

.title-text {
  font-weight: 500;
}

.badge {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  flex-shrink: 0;
}
.badge.green { background: rgba(16, 185, 129, 0.1); color: var(--primary); }
.badge.blue { background: rgba(59, 130, 246, 0.1); color: var(--blue); }

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #D1D5DB;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag svg {
  color: var(--primary);
}

.full-width { width: 100%; }

/* Pricing */
.bg-gradient {
  background: linear-gradient(to bottom, var(--bg-color) 0%, var(--bg-panel) 100%);
}

.pricing-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.pricing-card-wrapper {
  max-width: 450px;
  margin: 48px auto 0;
}

.pricing-card {
  background: #1F2937;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.pricing-card.premium {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.4), 0 20px 40px rgba(0,0,0,0.4);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.pricing-card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-price {
  margin: 32px 0;
  display: flex;
  align-items: flex-start;
  color: #fff;
}

.pricing-price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 8px;
  margin-right: 4px;
}

.pricing-price .amount {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.pricing-price .cents {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 8px;
}

.pricing-price .period {
  font-size: 1rem;
  color: var(--text-muted);
  align-self: flex-end;
  margin-bottom: 10px;
  margin-left: 8px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #D1D5DB;
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.secure-text {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 16px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================================================= */
/* DASHBOARD (ADMIN PANEL) STYLES */
/* ========================================================================= */

.dashboard-body {
  background-color: var(--bg-color);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden; /* App-like feel */
}

/* Layout */
.dashboard-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.sidebar {
  width: 260px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  flex: 1;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-item.active {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.nav-item svg {
  color: inherit;
}

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}

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

.btn-text {
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}
.btn-text:hover { color: #fff; }

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
  background-color: var(--bg-color);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.content-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.dashboard-tab {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}
.dashboard-tab.hidden {
  display: none !important;
}

/* Tables */
.table-container {
  overflow-x: auto;
  border-radius: 8px;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.data-table th {
  padding: 20px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}

.data-table td {
  padding: 20px 16px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

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

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

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

.btn-sm {
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-sm {
  max-width: 400px;
}

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

.modal-header h3 {
  font-size: 1.25rem;
  margin: 0;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-close:hover { color: #fff; }

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: var(--bg-panel);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 10000;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--primary);
}

.bg-red-500 { border-left-color: #EF4444; }
.bg-green-500 { border-left-color: var(--primary); }

.text-red { color: #EF4444; }

/* Utilities */
.flex { display: flex; }
.justify-center { justify-content: center; }
.gap-4 { gap: 16px; }
.text-center { text-align: center; }
.mb-6 { margin-bottom: 24px; }
.block { display: block; }
.mr-2 { margin-right: 8px; }

.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.font-semibold { font-weight: 600; }
.text-white { color: #fff; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }

/* Row Blocked Style */
.row-blocked td {
  opacity: 0.6;
  background: rgba(239, 68, 68, 0.05);
}
.row-blocked .font-semibold {
  color: #EF4444 !important;
  text-decoration: line-through;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Login Screen Override */
.login-screen {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.login-logo {
  display: flex;
  justify-content: center;
}

/* Ensure bg-glow shows inside login screen */
.login-screen .bg-glow {
  top: -20%;
  height: 80vh;
}
