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

body {
  font-family: 'Merriweather', serif;
  margin: 0;
  padding: 0;
  /* Brand background image - fixed, centered, cover */
  background: url('https://res.cloudinary.com/dartioq8x/image/upload/v1747208424/Background_ygpede.png') no-repeat center center fixed;
  background-size: cover;
  color: #333;
  min-height: 100vh;
  line-height: 1.6;
}

/* DrakoTrove Card - White content boxes for readability */
.dt-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  color: #4b0082;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }

p { margin-bottom: 1rem; }

a {
  color: #4b0082;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover { color: #6a1ba8; }

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

@keyframes fadeInTitle {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInLogo {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

.fade-in-delay {
  animation: fadeIn 0.8s ease 0.3s forwards;
  opacity: 0;
}

/* Top Navigation Bar */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #4b0082 0%, #6a1ba8 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-logo a:hover {
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  opacity: 0.8;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ========================================
   LANDING PAGE STYLES - Modern SaaS Design
   ======================================== */

/* Landing Navigation */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(75, 0, 130, 0.1);
}

.landing-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-brand a {
  font-size: 1.75rem;
  font-weight: 800;
  color: #4b0082;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1001;
}

.nav-brand a:hover {
  color: #6a1ba8;
}

/* Hamburger Menu Button (Hidden on Desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  width: 30px;
  height: 3px;
  background: #4b0082;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop Navigation Menu */
.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: #555;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: #4b0082;
}

.nav-menu .nav-cta {
  background: #4b0082;
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-menu .nav-cta:hover {
  background: #6a1ba8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 0, 130, 0.25);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    max-width: 80vw;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px 0 0 12px;
    transition: right 0.3s ease;
    align-items: stretch;
  }
  
  .nav-menu-active {
    right: 0;
  }
  
  .nav-menu a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.125rem;
  }
  
  .nav-menu a:last-child {
    border-bottom: none;
  }
  
  .nav-menu .nav-cta {
    margin: 0.5rem 1rem;
    padding: 1rem 1.5rem;
    text-align: center;
    border-radius: 10px;
  }
  
  .nav-menu .nav-cta:hover {
    transform: none;
  }
  
  .landing-nav .nav-container {
    padding: 0 1.5rem;
  }
  
  .nav-brand a {
    font-size: 1.5rem;
  }
}

/* Landing Hero - 2 Column Layout */
.landing-hero {
  padding: 3rem 2rem;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(75, 0, 130, 0.15);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-heading {
  font-size: 3.25rem;
  font-weight: 800;
  color: #4b0082;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: 1.375rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
}

.hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.5;
}

.check-icon {
  width: 24px;
  height: 24px;
  color: #4b0082;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.05rem;
}

.link-learn {
  color: #4b0082;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-left: 0.5rem;
}

.link-learn:hover {
  color: #6a1ba8;
}

/* Hero Visual - Banner Image (Replaces Mascot) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.hero-banner-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

/* Features Section */
.landing-features {
  padding: 3rem 2rem;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(75, 0, 130, 0.12);
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: #faf9fc;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: #4b0082;
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(75, 0, 130, 0.1);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4b0082;
  margin-bottom: 0.875rem;
}

.feature-desc {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* How It Works Section */
.landing-steps {
  padding: 3rem 2rem;
}

.steps-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(75, 0, 130, 0.12);
  padding: 3rem 2rem;
}

.steps-heading {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #4b0082;
  margin-bottom: 3.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step-card {
  background: #faf9fc;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 2px solid transparent;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(75, 0, 130, 0.15);
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #4b0082 0%, #6a1ba8 100%);
  color: white;
  font-size: 1.75rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #4b0082;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .hero-container {
    gap: 3rem;
  }
  
  .hero-heading {
    font-size: 2.75rem;
  }
  
  .hero-tagline {
    font-size: 1.25rem;
  }
  
  .hero-image {
    max-width: 360px;
  }
  
  .features-container {
    gap: 2rem;
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .landing-nav {
    padding: 1rem 0;
  }
  
  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .nav-menu .nav-cta {
    padding: 0.5rem 1rem;
  }
  
  .landing-hero {
    padding: 2rem 1.5rem;
    min-height: auto;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-heading {
    font-size: 2.25rem;
  }
  
  .hero-tagline {
    font-size: 1.125rem;
  }
  
  .hero-benefits li {
    text-align: left;
    font-size: 1rem;
  }
  
  .hero-cta {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
  }
  
  .link-learn {
    margin-left: 0;
  }
  
  .hero-visual {
    min-height: auto;
  }
  
  .hero-banner-img {
    max-width: 90%;
    max-height: 350px;
  }
  
  .landing-features {
    padding: 2.5rem 1.5rem;
  }
  
  .features-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
  
  .landing-steps {
    padding: 2.5rem 1.5rem;
  }
  
  .steps-container {
    padding: 2rem 1.5rem;
  }
  
  .steps-heading {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .dt-card {
    padding: 1.5rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .nav-brand a {
    font-size: 1.375rem;
  }
  
  .nav-menu {
    gap: 0.75rem;
    font-size: 0.85rem;
  }
  
  .hero-heading {
    font-size: 1.875rem;
  }
  
  .hero-tagline {
    font-size: 1rem;
  }
  
  .hero-image {
    max-width: 240px;
  }
  
  .feature-icon {
    font-size: 3rem;
  }
  
  .feature-title {
    font-size: 1.25rem;
  }
}

/* ========================================
   END LANDING PAGE STYLES
   ======================================== */

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 100px 20px 80px;
  max-width: 1000px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  color: #4b0082;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  animation: fadeInTitle 1s ease forwards;
  opacity: 0;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeInSubtitle 1s ease 0.3s forwards;
  opacity: 0;
}

/* Hero Logo - Professional SaaS Icon Sizing */
.hero-logo {
  margin: 3rem 0;
  animation: fadeInLogo 1s ease 0.6s forwards;
  opacity: 0;
}

.hero-logo-img {
  /* Desktop: 380-420px (approx. 2-3 inches at 96 DPI) */
  width: 400px;
  height: 400px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  /* Maintain crisp rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeIn 1s ease 0.9s forwards;
  opacity: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Merriweather', serif;
}

.btn-primary {
  background: #4b0082;
  color: white;
}

.btn-primary:hover {
  background: #6a1ba8;
  transform: scale(1.05);
}

.btn-secondary {
  background: #866efb;
  color: white;
}

.btn-secondary:hover {
  background: #9f8afc;
  transform: scale(1.05);
}

.btn-outline {
  background: white;
  color: #4b0082;
  border: 2px solid #4b0082;
}

.btn-outline:hover {
  background: #4b0082;
  color: white;
  transform: scale(1.05);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn:focus-visible {
  outline: 3px solid #866efb;
  outline-offset: 2px;
}

/* Page Container */
.page-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

/* Dashboard Wrapper - Full screen background */
.dash-wrap {
  min-height: 100vh;
  padding: 2rem 1rem;
}

/* Dashboard Container - Centered with max-width */
.dash-container {
  max-width: 980px;
  margin: 0 auto;
}

/* Dashboard Card - Full width inside container */
.dash-card {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.form-card,
.content-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
}

.wide-form {
  max-width: 800px;
}

.content-card {
  max-width: 900px;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #4b0082;
  font-weight: bold;
}

/* Microcopy - explanatory text under form labels */
.microcopy {
  display: block;
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  font-style: italic;
}

.page-description {
  font-size: 1rem;
  line-height: 1.6;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4b0082;
}

.form-group textarea {
  resize: vertical;
}

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

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: normal;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.link {
  color: #4b0082;
  text-decoration: underline;
  font-weight: bold;
}

.link:hover {
  color: #6a1ba8;
}

/* Form Sections */
.form-section {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 2rem;
}

.form-section legend {
  color: #4b0082;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0 10px;
}

.form-section.disabled {
  opacity: 0.7;
}

/* Flash Messages */
.flash-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
}

.flash {
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.flash-success {
  background: #10b981;
  color: white;
}

.flash-error {
  background: #ef4444;
  color: white;
}

.flash-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  margin-left: 15px;
  line-height: 1;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-legal {
  max-width: 800px;
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 2px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: #4b0082;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #f0f0f0;
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

.modal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #4b0082;
  font-size: 1.2rem;
}

.modal-body h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #4b0082;
  font-size: 1rem;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.modal-body ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: #555;
}

.modal-body ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.modal-body ul ul {
  margin-top: 0.5rem;
  margin-left: 1.5rem;
}

.modal-footer-link {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

/* Legal Document Styling */
.legal-document {
  max-width: 900px;
}

.legal-updated {
  font-style: italic;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #e0e0e0;
  color: #4b0082;
  font-size: 1.5rem;
}

.legal-content h2:first-of-type {
  margin-top: 1.5rem;
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #4b0082;
  font-size: 1.2rem;
}

.legal-content ul {
  margin: 1rem 0 1rem 2rem;
  line-height: 1.8;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

.legal-content ul ul {
  margin-top: 0.5rem;
  margin-left: 1.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content .contact-info {
  background: #f9f9f9;
  padding: 15px;
  border-left: 4px solid #4b0082;
  border-radius: 4px;
  margin: 1rem 0;
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.benefit-item {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #4b0082;
}

.benefit-item h3 {
  margin-bottom: 0.5rem;
}

.benefit-item p {
  color: #666;
  margin: 0;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  background: #f5f3ff;
  border-radius: 12px;
}

.cta-section h2 {
  margin-bottom: 0.5rem;
}

.cta-section p {
  color: #666;
  margin-bottom: 2rem;
}

/* Dashboard */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.action-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.action-button-primary {
  border-color: #4b0082;
}

.action-button-primary:hover {
  background: #4b0082;
  color: white;
}

.action-button-secondary {
  border-color: #6366f1;
}

.action-button-secondary:hover {
  background: #6366f1;
  color: white;
}

.action-button-success {
  border-color: #10b981;
}

.action-button-success:hover {
  background: #10b981;
  color: white;
}

.action-button-info {
  border-color: #3b82f6;
}

.action-button-info:hover {
  background: #3b82f6;
  color: white;
}

.action-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.action-text {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.action-button:hover .action-text {
  color: white;
}

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

.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-card.full-width {
  grid-column: 1 / -1;
}

.dashboard-card h2 {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.profile-info p {
  margin-bottom: 0.5rem;
  color: #555;
}

.action-list {
  list-style: none;
}

.action-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.warning-text {
  color: #f59e0b;
  font-weight: bold;
}

.success-text {
  color: #10b981;
  font-weight: bold;
}

/* Next Steps - Clean Grid Layout */
.next-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

.step-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.step-num {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4b0082 0%, #6a1ba8 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(75, 0, 130, 0.2);
  flex-shrink: 0;
}

.step-actions h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  color: #4b0082;
  font-weight: 700;
}

.step-actions p {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.step-actions .btn {
  margin-top: 0.5rem;
}

/* Mobile responsive - stack vertically */
@media (max-width: 600px) {
  .step-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  
  .step-num {
    margin: 0 auto;
  }
  
  .dash-container {
    padding: 0 0.5rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-slogan {
    font-size: 1.2rem;
  }
  
  .icon-image {
    width: 150px;
    height: 150px;
  }
  
  .form-card,
  .content-card {
    padding: 30px 20px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .flash-container {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Page Wrapper */
.page-wrapper {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Section Box Style */
.section-box {
  text-align: center;
  padding: 40px 20px;
  margin: 20px auto;
  max-width: 900px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: #4b0082;
}

.section-box h1,
.section-box h2,
.section-box h3,
.section-box p {
  color: #4b0082;
}

/* Hero Banner */
.hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.hero-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 20px;
  padding-top: 30px;
}

/* Hero Text */
.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin: 10px 0;
  text-align: center;
}

.hero-text p {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  color: white;
  text-align: center;
}

/* Buttons */
.button {
  background: #4b0082;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.button:hover {
  background: #866efb;
  transform: scale(1.05);
}

.button:focus-visible {
  outline: 3px solid #866efb;
  outline-offset: 2px;
}

.cta-button {
  background-color: white;
  color: #4b0082;
  border: 2px solid #4b0082;
  border-radius: 8px;
  padding: 12px 30px;
  font-weight: bold;
  font-size: 18px;
  margin-top: 20px;
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(255,255,255,0.9);
}

.cta-button:focus-visible {
  outline: 3px solid #4b0082;
  outline-offset: 2px;
}

/* Quiz / Offer Pages Readability */
.quiz-wrap {
  background: url('https://res.cloudinary.com/dartioq8x/image/upload/v1747208424/Background_ygpede.png') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

.quiz-card {
  width: 100%;
  max-width: 920px;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 32px 28px;
}

.quiz-card h1,
.quiz-card h2,
.quiz-card h3,
.quiz-card p,
.quiz-card li {
  color: #1a1a1a;
}

.quiz-card h1 {
  text-align: center;
}

.quiz-card h2 {
  text-align: center;
}

.quiz-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 8px 0 18px;
  text-align: center;
}

.quiz-box {
  background: #ffffff;
  border: 1px solid rgba(75, 0, 130, 0.15);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
}

.quiz-box h2 {
  margin-top: 0;
}

.quiz-cta {
  margin-top: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-primary {
  background-color: #4b0082;
  color: #ffffff;
  border: 2px solid #4b0082;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

.cta-primary:focus-visible {
  outline: 3px solid #866efb;
  outline-offset: 2px;
}

.quiz-note {
  font-size: 0.95rem;
  color: #333;
  margin-top: 10px;
  text-align: center;
}

/* CTA Center Utility - Standardized centering for CTA buttons */
.cta-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  gap: 0.75rem;
}

/* Fixed Top Nav Bar */
nav#custom-top-nav.tight-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, #bba1dc, #7a5ca0);
  padding: 12px 16px;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav#custom-top-nav.tight-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 0.75rem;
  text-align: center;
}

nav#custom-top-nav.tight-nav a img {
  width: 26px;
  height: 26px;
  margin-bottom: 3px;
}

nav#custom-top-nav.tight-nav a:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Main Content Spacing */
main {
  padding-top: 130px;
  margin: 0 auto;
  max-width: 100vw;
}

/* Orders Page Styles */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.order-card:hover {
  box-shadow: 0 4px 12px rgba(75, 0, 130, 0.1);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
}

.order-id {
  font-weight: 700;
  color: #4b0082;
  font-size: 1.1rem;
}

.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-draft {
  background: #fef3c7;
  color: #92400e;
}

.status-pending {
  background: #dbeafe;
  color: #1e40af;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.order-details {
  margin-bottom: 1rem;
}

.order-detail-row {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.order-detail-row strong {
  color: #4b0082;
  margin-right: 0.5rem;
}

.order-meta {
  color: #666;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}

.order-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.empty-state p {
  font-size: 1.1rem;
}

.page-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
  text-align: center;
}

/* Form Styles for Order Creation */
.form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #4b0082;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #4b0082;
}

.form-input::placeholder {
  color: #999;
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

/* Button Variants */
.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-danger {
  background: #dc2626;
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* Responsive Orders */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .order-actions {
    justify-content: flex-start;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

/* Global Legal Footer */
.global-footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
  background: linear-gradient(135deg, #4b0082 0%, #6a1ba8 100%);
  color: #ffffff;
  border-top: 3px solid #8b3fcf;
}

.footer-legal {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .global-footer {
    padding: 25px 15px;
    margin-top: 40px;
  }
  
  .footer-legal {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

/* AOS Fallback if JS fails */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .button:hover,
  .cta-button:hover {
    transform: none;
  }
}

/* Responsive Layout for Screens ≤ 500px */
@media (max-width: 500px) {
  body {
    padding-top: 0;
    overflow-x: hidden;
    text-align: center;
  }

  .page-wrapper {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero-banner {
    padding-top: 20px;
    margin-bottom: 20px;
  }

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

  .hero-text p {
    font-size: 1rem;
    padding: 0 12px;
  }

  nav#custom-top-nav.tight-nav {
    padding: 10px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
  }

  nav#custom-top-nav.tight-nav a {
    flex: 0 1 22%;
    max-width: 22%;
    text-align: center;
    color: white;
    text-decoration: none;
    font-size: 10px;
    margin: 2px 1%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  nav#custom-top-nav.tight-nav a img {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
  }

  main {
    padding-top: 240px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .section-box,
  .package-box,
  .extras {
    width: 92%;
    padding: 16px;
    margin: 0 auto;
  }

  .cta-button {
    width: 85%;
    font-size: 14px;
    padding: 10px 18px;
    margin: 16px auto;
    display: block;
    box-sizing: border-box;
  }

  .quiz-card {
    padding: 22px 16px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  }

  h1, h2, h3, p, ul {
    text-align: center !important;
    padding: 0 8px;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }
}

/* ===========================
   Subscription & Billing Styles
   =========================== */

/* Pricing Tiers */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.pricing-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(75, 0, 130, 0.15);
  border-color: #4b0082;
}

.pricing-card.current-tier {
  border-color: #4b0082;
  background: linear-gradient(135deg, #f5f0ff 0%, #ffffff 100%);
}

.pricing-card.current-tier::before {
  content: "Current Plan";
  position: absolute;
  top: -12px;
  right: 20px;
  background: #4b0082;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.pricing-header h2 {
  color: #4b0082;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  margin: 1rem 0;
}

.pricing-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  text-align: left;
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.pricing-features h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: #555;
}

.pricing-features li:before {
  content: "";
  display: inline-block;
  width: 8px;
  margin-right: 8px;
}

.pricing-action {
  margin-top: 1.5rem;
}

.pricing-faq {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}

.faq-item {
  margin: 1.5rem 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  color: #4b0082;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: #555;
  line-height: 1.6;
}

/* Subscription Overview */
.subscription-overview {
  margin: 2rem 0;
}

.subscription-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.subscription-card h2 {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #4b0082;
  padding-bottom: 0.5rem;
}

.subscription-details {
  margin: 1.5rem 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-label {
  font-weight: 600;
  color: #666;
}

.detail-value {
  color: #333;
}

.tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

.tier-free {
  background: #e0e0e0;
  color: #666;
}

.tier-professional {
  background: linear-gradient(135deg, #4b0082, #6a1ba8);
  color: white;
}

.tier-enterprise {
  background: linear-gradient(135deg, #ff6b6b, #ff8787);
  color: white;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.status-active {
  background: #10b981;
  color: white;
}

.status-cancelled {
  background: #ef4444;
  color: white;
}

.status-suspended {
  background: #f59e0b;
  color: white;
}

.subscription-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.refund-notice {
  margin-top: 1rem;
  padding: 1rem;
  background: #f0f0f0;
  border-left: 4px solid #4b0082;
  border-radius: 4px;
}

.info-text {
  color: #555;
  line-height: 1.6;
}

.warning-text {
  color: #f59e0b;
  font-weight: 600;
}

/* Feature Limits */
.feature-limits {
  margin: 3rem 0;
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.limit-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.limit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(75, 0, 130, 0.1);
}

.limit-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.limit-label {
  font-weight: 600;
  color: #666;
  margin-bottom: 0.5rem;
}

.limit-value {
  font-size: 1.1rem;
  color: #4b0082;
  font-weight: 700;
}

/* Billing History */
.billing-history {
  margin: 3rem 0;
}

.history-table {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.history-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.history-table th {
  background: #4b0082;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.history-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

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

.history-table tr:hover {
  background: #f9f9f9;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #999;
  font-style: italic;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal .close {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal .close:hover {
  color: #333;
}

.modal h2 {
  margin-bottom: 1.5rem;
  color: #4b0082;
}

.modal .form-group {
  margin-bottom: 1.5rem;
}

.modal label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #555;
}

.modal input,
.modal textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-color: #4b0082;
}

.modal .form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.upgrade-prompt {
  color: #666;
  font-size: 0.9rem;
}

.upgrade-prompt a {
  color: #4b0082;
  font-weight: 600;
}

/* Responsive Subscription Styles */
@media (max-width: 768px) {
  .pricing-tiers {
    grid-template-columns: 1fr;
  }
  
  .limits-grid {
    grid-template-columns: 1fr;
  }
  
  .subscription-actions {
    flex-direction: column;
  }
  
  .subscription-actions button,
  .subscription-actions a {
    width: 100%;
  }
  
  .history-table {
    font-size: 0.85rem;
  }
  
  .history-table th,
  .history-table td {
    padding: 0.5rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 20% auto;
  }
}

/* Responsive Hero & Navigation Styles */
/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
  }
  
  /* Tablet icon size: ~300px */
  .hero-logo-img {
    width: 300px;
    height: 300px;
  }
  
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 20px 60px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  /* Mobile icon size: ~240px */
  .hero-logo-img {
    width: 240px;
    height: 240px;
  }
  
  .hero-logo {
    margin: 2rem 0;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  /* Navigation mobile responsiveness */
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-logo a {
    font-size: 1.25rem;
  }
  
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  /* Extra small mobile: maintain 240px minimum */
  .hero-logo-img {
    width: 200px;
    height: 200px;
  }
  
  .nav-links {
    gap: 0.75rem;
    font-size: 0.85rem;
  }
  
  .nav-links a {
    padding: 0.25rem 0;
  }
}

/* ========================================
   PRICING PAGE STYLES
   ======================================== */

/* Pricing Hero */
.pricing-hero {
  background: linear-gradient(135deg, #4b0082 0%, #6a1ba8 100%);
  color: white;
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.pricing-hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.pricing-hero-heading {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.pricing-hero-subtext {
  font-size: 1.25rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* Pricing Cards Section */
.pricing-section {
  padding: 4rem 2rem;
  background: transparent;
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start;
}

.pricing-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(75, 0, 130, 0.15);
}

.pricing-card-popular {
  border: 3px solid #4b0082;
  box-shadow: 0 8px 30px rgba(75, 0, 130, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4b0082 0%, #6a1ba8 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
}

.pricing-tier-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4b0082;
  margin-bottom: 1rem;
}

.pricing-price {
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
}

.price-period {
  font-size: 1rem;
  color: #666;
  font-weight: 600;
}

.pricing-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
}

/* Pricing Features List */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.feature-check {
  color: #4b0082;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pricing-card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-free {
  background: #f0f0f0;
  color: #4b0082;
  border: 2px solid #4b0082;
}

.btn-free:hover {
  background: #4b0082;
  color: white;
}

.btn-professional {
  background: linear-gradient(135deg, #4b0082 0%, #6a1ba8 100%);
  color: white;
  border: none;
}

.btn-professional:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
}

.btn-enterprise {
  background: white;
  color: #4b0082;
  border: 2px solid #4b0082;
}

.btn-enterprise:hover {
  background: #4b0082;
  color: white;
}

/* Policy Section */
.policy-section {
  padding: 4rem 2rem;
  background: transparent;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
}

.policy-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #4b0082;
  margin-bottom: 2rem;
  text-align: center;
}

.policy-content {
  display: grid;
  gap: 1.5rem;
}

.policy-item h4 {
  color: #4b0082;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.policy-item p {
  color: #333;
  line-height: 1.7;
  margin-bottom: 0;
}

.policy-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #f0f0f0;
  text-align: center;
}

.policy-links a {
  color: #4b0082;
  font-weight: 600;
  text-decoration: underline;
}

.policy-links a:hover {
  color: #6a1ba8;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 2rem;
  background: transparent;
}

.faq-container {
  max-width: 1000px;
  margin: 0 auto;
}

.faq-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #4b0082;
  margin-bottom: 2rem;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  padding: 1.5rem;
}

.faq-question {
  color: #4b0082;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: #333;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Pricing CTA Section */
.pricing-cta-section {
  padding: 4rem 2rem;
  background: transparent;
}

.pricing-cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.pricing-cta-card {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.pricing-cta-heading {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.pricing-cta-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.pricing-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-btn-primary {
  background: white;
  color: #4b0082;
}

.cta-btn-primary:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

.cta-btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer Links Styling */
.footer-links {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #ffffff;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-links a:hover {
  color: #e6d8ff;
  text-decoration: underline;
}

.footer-separator {
  margin: 0 0.5rem;
  color: #ffffff;
  opacity: 0.8;
}

/* Pricing Page Mobile Responsiveness */
@media (max-width: 768px) {
  .pricing-hero-heading {
    font-size: 2rem;
  }
  
  .pricing-hero-subtext {
    font-size: 1.125rem;
  }
  
  .pricing-container {
    grid-template-columns: 1fr;
  }
  
  .pricing-cta-heading {
    font-size: 1.75rem;
  }
  
  .pricing-cta-buttons {
    flex-direction: column;
  }
  
  .cta-btn {
    width: 100%;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
