@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --secondary: #10b981;
  --bg-color: #030712;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --danger: #ef4444;
  --warning: #f59e0b;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.15), transparent 25%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: #a78bfa;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.flex-column { flex-direction: column; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: capitalize;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: white;
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(124, 58, 237, 0.5);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  color: white;
}

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

/* Glassmorphism Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: var(--transition);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

/* Navbar */
.navbar {
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.nav-links a:hover, .nav-links a.active {
  color: white;
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(to right, #a78bfa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid Layouts */
.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  min-height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar {
  padding: 0;
  overflow: hidden;
}

.sidebar-header {
  padding: 30px 20px;
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
}

.sidebar-avatar {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 15px auto;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.sidebar-menu {
  list-style: none;
  padding: 20px 0;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 30px;
  color: var(--text-muted);
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.sidebar-menu li a i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
  color: white;
  border-left-color: var(--primary);
}

/* Stats Dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.stat-icon.primary { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.stat-icon.secondary { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-icon.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.stat-icon.danger { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.stat-details h3 {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 500;
}

.stat-details p {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  font-family: var(--font-heading);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th, .table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.plan-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.plan-card:hover {
  transform: translateY(-10px);
}

.plan-header {
  padding: 30px;
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.plan-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.plan-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: white;
}

.plan-body {
  padding: 30px;
}

.plan-profit {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1;
}

.plan-profit span {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: 5px;
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
}

.plan-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-features li strong {
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Alert Boxes */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; }
.alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: #fbbf24; }

/* Steps Section */
.step-card {
  text-align: center;
  padding: 40px 20px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px auto;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .nav-links { display: none; }
  .hero-title { font-size: 3rem !important; }
}

/* FAQ Accordion */
.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: var(--text-muted);
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-item.active .faq-answer {
  padding: 0 25px 20px 25px;
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--primary);
}

/* Custom Cursor Glow */
#cursor-glow {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Button Shine Animation */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: none;
}

.btn:hover::after {
  animation: shine 0.7s forwards;
}

@keyframes shine {
  100% { left: 200%; }
}

/* Testimonials Slider */
.testimonials-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.testimonials-wrapper::before,
.testimonials-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.testimonials-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}

.testimonials-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

.testimonials-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollTestimonials 30s linear infinite;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes scrollTestimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 15px)); } /* Half of the track minus gap/2 */
}

.testimonial-card {
  padding: 30px;
  text-align: left;
  border-left: 4px solid var(--primary);
  width: 350px;
  flex-shrink: 0;
}

.stars {
  color: var(--warning);
  margin-bottom: 15px;
}

/* Footer Social Animations */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--glass-border);
}

.social-icon:hover {
  transform: translateY(-8px) scale(1.1) rotate(5deg);
  color: white;
  background: var(--primary);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
  border-color: var(--primary);
}

/* Calculator Style */
.calc-range {
  width: 100%;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 4px;
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary);
  transition: transform 0.2s;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-select {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.calc-select option {
  background-color: var(--bg-color);
}

.calc-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  text-align: center;
}
