@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
/* ============================================
   ROOT & GLOBAL STYLES
   ============================================ */

:root {
  --primary: #3b82f6;
  --primary-dark: #1e40af;
  --secondary: #1f2937;
  --success: #10b981;
  --success-dark: #059669;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

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

html {
  scroll-behavior: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--secondary);
  line-height: 1.6;
  background-color: var(--gray-50);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1rem;
}

a {
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ============================================
   BUTTONS
   ============================================ */

button,
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

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

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

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-block {
  width: 100%;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

input,
textarea,
select {
  padding: 0.75rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  cursor: pointer;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */

.card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-hover {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-header {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 1rem;
}

/* ============================================
    HEADER & NAVIGATION
    ============================================ */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  box-shadow: 0 1px 18px rgba(15, 23, 42, 0.08);
}

header .container {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  flex-direction: column;
  padding: 1rem 0.75rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

nav.nav-open,
nav.open {
  display: flex;
  gap: 1rem;
  font-size: 1rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  color: var(--gray-700);
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
}

.nav-link.active {
  background: rgba(59, 130, 246, 0.18);
  color: var(--primary);
}

.menu-btn {
  display: block;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  margin-left: 1rem;
}

.menu-btn.active {
  color: var(--primary);
}

@media (min-width: 768px) {
  nav {
    display: flex;
    /* Overrides mobile styles to show on desktop */
    position: static;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
  }

  /* Hide the hamburger button on desktop */
  .menu-btn {
    display: none;
  }
}

nav {
  background: rgba(255, 255, 255, 0.98);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  color: var(--gray-700);
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
}

.nav-link.active {
  background: rgba(59, 130, 246, 0.18);
  color: var(--primary);
}

/* Profile Dropdown */
.profile-btn {
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  background: var(--gray-100);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
}

.profile-btn:hover {
  background: var(--gray-200);
  color: var(--gray-800);
  transform: translateY(-1px);
}

.dropdown {
  position: absolute;
  display: block;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  min-width: 180px;
  z-index: 1000;
}

.dropdown.hidden {
  display: none !important;
}

.dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--secondary);
  text-decoration: none;
  transition: background 0.3s;
}

.dropdown a:hover {
  background: var(--gray-100);
}

.hidden {
  display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 6rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 10rem;
  height: 10rem;
  background-color: white;
  border-radius: 50%;
  filter: blur(5rem);
  opacity: 0.1;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 10rem;
  height: 10rem;
  background-color: white;
  border-radius: 50%;
  filter: blur(5rem);
  opacity: 0.1;
}

.hero-content {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

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

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 3.75rem;
  }
}

.hero-text p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.cta-button {
  background: var(--primary);
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: #2563eb;
}

.cta-secondary {
  background: var(--success);
  transition: background-color 0.2s ease;
}

.cta-secondary:hover {
  background-color: var(--success-dark);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 5rem 1rem;
}

.section-container {
  max-width: 80rem;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   Home & CARDS
   ============================================ */

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial-card {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary);
}

.testimonial-card .rating {
  color: #fbbf24;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-card p {
  color: var(--gray-700);
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-card .author {
  font-weight: 600;
}

.testimonial-card .verified {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ============================================
   PRICING
   ============================================ */

.pricing-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 2px solid var(--gray-200);
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
  transform: scale(1.05);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.5rem 0;
}

.pricing-card .price .unit {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.pricing-card ul {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.pricing-card li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* ============================================
    FAQ - Hiding the Native Arrow
    ============================================ */
details summary {
  list-style: none;
}

details summary::marker {
  display: none;
  content: "";
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: #111827;
  color: white;
  padding: 4rem 1rem;
}

footer .container {
  max-width: 80rem;
  margin: 0 auto;
}

footer .grid {
  margin-bottom: 2rem;
  gap: 2rem;
}

footer h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--gray-400);
}

footer a:hover {
  color: white;
}

footer .footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   LOGIN/SIGNUP PAGE
   ============================================ */

body.auth-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-container {
  width: 100%;
  max-width: 28rem;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo .icon {
  display: inline-block;
  background: white;
  padding: 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  font-size: 2.25rem;
}

.auth-logo h1 {
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
}

.auth-logo p {
  color: rgba(255, 255, 255, 0.9);
}

.auth-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.tab-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
}

.tab-btn {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--secondary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.password-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 0.5rem;
  transition: width 0.3s, background-color 0.3s;
}

.password-strength.weak {
  width: 33%;
  background-color: var(--danger);
}

.password-strength.medium {
  width: 66%;
  background-color: var(--warning);
}

.password-strength.strong {
  width: 100%;
  background-color: var(--success);
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */

body.admin {
  background-color: var(--gray-900);
  color: white;
}

.admin-container {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 16rem;
  background-color: var(--gray-800);
  padding: 1.5rem;
  border-right: 1px solid var(--gray-700);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar h1 {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-nav button {
  text-align: left;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.admin-nav button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.admin-nav button.active {
  background-color: var(--gray-700);
}

.admin-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.admin-header {
  margin-bottom: 2rem;
}

.admin-header h2 {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
}

.stat-change {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.admin-table {
  background-color: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 0.5rem;
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-700);
  font-weight: 600;
  font-size: 0.875rem;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-700);
  font-size: 0.875rem;
}

.admin-table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* ============================================
   MODALS
   ============================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: 90%;
  max-width: 31.25rem;
  color: white;
}

.modal-header {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

.text-white {
  color: white;
}

.text-gray-600 {
  color: var(--gray-600);
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.rounded {
  border-radius: 0.5rem;
}

.rounded-lg {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

.shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.transition {
  transition: all 0.3s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    margin-bottom: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--gray-700);
  }

  .admin-container {
    flex-direction: column;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  button,
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }
}

/* === Added Login Page Custom Styles === */

:root {
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
}

body.auth-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.auth-page .card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}

.auth-page .password-strength {
  height: 6px;
  border-radius: 999px;
  transition: width .25s ease, background-color .25s ease;
}

.auth-page .ps-weak { width: 33%; background:#ef4444 }
.auth-page .ps-med { width: 66%; background:#f59e0b }
.auth-page .ps-strong { width: 100%; background:#10b981 }

@media (max-width:640px) {
  .auth-page .max-w-md { padding:1rem }
  .auth-page header .nav-link { display:none }
}

/* ============================================
   PAYMENT METHOD CARDS
   ============================================ */

.paymentOption {
  display: block;
  cursor: pointer;
}

.payment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px 16px;
  transition: all 0.3s ease;
}

.payment-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.payment-card.border-blue-500 {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.payment-card.shadow-lg {
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.payment-card .text-4xl {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.payment-card .font-semibold {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.payment-card .text-xs {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 4px;
}

#paymentDetails {
  background: var(--gray-50);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-size: 0.875rem;
  color: var(--gray-700);
}

#selectedPaymentText {
  font-weight: 600;
  color: var(--primary);
}
