:root {
  --color-bg: #0b0b0b;
  --color-surface: #121212;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.7);
  --color-success: #00c853;
  --color-success-hover: #23d96c;
  --color-success-soft: rgba(0, 200, 83, 0.12);
  --color-gold: #DAAF37;
  --color-warning: #FFB84D;
  --color-danger: #FF4D6D;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 200, 83, 0.08), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(218, 175, 55, 0.05), transparent 20%),
    var(--color-bg);
  color: var(--color-text);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.bg-dark-card {
  background-color: var(--color-surface) !important;
}

.text-success {
  color: var(--color-success) !important;
}

.text-muted {
  color: var(--color-muted) !important;
}

.btn {
  transition: all 0.25s ease;
  font-weight: 600;
}

.btn-success {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: #000;
}

.btn-success:hover {
  background-color: var(--color-success-hover);
  border-color: var(--color-success-hover);
  color: #000;
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-text);
}

.btn-outline-light:hover {
  border-color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Forms */
.form-control,
.form-select,
textarea.form-control {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--color-text) !important;
  font-family: 'Poppins', sans-serif;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: var(--color-success) !important;
  background: rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 200, 83, 0.25) !important;
  color: var(--color-text);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Navbar */
.navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
}

.navbar {
  transition: all 0.25s ease;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text) !important;
}

/* Responsive */
@media (max-width: 991px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 576px) {
  section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  h1 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }

  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

.hero-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  font-size: 0.85rem;
}

.dashboard-hero-card {
  max-width: 600px;
}

.dashboard-mockup {
  position: relative;
}

.dashboard-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.chart-badge {
  font-size: 0.82rem;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-graph {
  position: relative;
  min-height: 220px;
}

.graph-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.graph-bar {
  position: absolute;
  bottom: 24px;
  width: 10%;
  background: linear-gradient(180deg, var(--color-success-hover), var(--color-success));
  border-radius: 2rem 2rem 0 0;
}

.graph-bar.bar-1 { left: 8%; height: 48%; }
.graph-bar.bar-2 { left: 24%; height: 62%; }
.graph-bar.bar-3 { left: 40%; height: 36%; }
.graph-bar.bar-4 { left: 56%; height: 72%; }
.graph-bar.bar-5 { left: 72%; height: 56%; }
.graph-bar.bar-6 { left: 88%; height: 84%; }

.section-block {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-dark {
  background: rgba(255, 255, 255, 0.02);
}

.feature-card,
.stats-widget,
.plan-card,
.contact-card,
.dashboard-panel,
.auth-wrapper {
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover,
.stats-widget:hover,
.plan-card:hover,
.contact-card:hover,
.dashboard-panel:hover {
  transform: translateY(-6px);
}

.feature-card {
  min-height: 220px;
}

.icon-box {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--color-success-soft);
  font-size: 1.25rem;
}

.chart-area {
  min-height: 220px;
}

.chart-grid {
  position: absolute;
  inset: 1rem 1rem 1rem 1rem;
  background-image: linear-gradient(to top, rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 40px, 40px 100%;
}

.chart-bar {
  width: 16%;
  background: linear-gradient(180deg, rgba(0,200,83,0.52), rgba(0,200,83,0.96));
  border-radius: 0.75rem 0.75rem 0 0;
  position: absolute;
  bottom: 1.5rem;
}

.chart-bar.bar-lg { left: 20%; height: 68%; }
.chart-bar.bar-md { left: 42%; height: 54%; }
.chart-bar.bar-sm { left: 64%; height: 80%; }

.chart-curve {
  position: absolute;
  inset: 1.5rem 1.5rem 2rem 1.5rem;
  pointer-events: none;
  background: radial-gradient(circle at bottom left, rgba(0, 200, 83, 0.15), transparent 35%);
}

.plan-card {
  min-height: 340px;
}

.plan-tag {
  z-index: 1;
}

.btn-success {
  background-color: var(--color-success);
  border-color: var(--color-success);
}

.btn-success:hover {
  background-color: var(--color-success-hover);
  border-color: var(--color-success-hover);
}

.btn-outline-light {
  border-color: rgba(255,255,255,0.18);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
}

.table td, .table th {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-link {
  color: var(--color-muted);
  margin-left: 1rem;
}

.footer-link:hover {
  color: var(--color-text);
}

.form-control,
.form-select,
textarea.form-control {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--color-text);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: var(--color-success);
  box-shadow: 0 0 0 0.15rem rgba(0, 200, 83, 0.18);
}

.textarea-lg {
  min-height: 120px;
}

.form-floating > label {
  color: var(--color-muted);
}

.form-control:valid,
.form-control.is-valid,
.form-select.is-valid,
textarea.form-control.is-valid {
  border-color: var(--color-success);
}

.form-control:invalid,
.form-control.is-invalid,
.form-select.is-invalid,
textarea.form-control.is-invalid {
  border-color: #ff4d6d;
}

.modal-content {
  background: rgba(18, 18, 18, 0.98);
}

.modal-header,
.modal-body {
  border-color: rgba(255,255,255,0.08);
}

@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 575.98px) {
  .navbar .navbar-nav {
    margin-top: 1rem;
  }
  .dashboard-hero-card {
    padding: 1.75rem;
  }
  .plan-card {
    min-height: auto;
  }
}
