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

:root {
  --navy-primary: #063779;
  --magenta-primary: #A81699;
  --cyan: #12A3E5;
  --purple: #653CCC;
  --navy-dark: #042A5F;
  --text-body: #172033;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --bg-light: #F5F7FA;
  --bg-subtle: #F8FAFC;
  --border-color: #E5E7EB;
  --white: #FFFFFF;
  --gradient-primary: linear-gradient(135deg, #12A3E5 0%, #653CCC 50%, #A81699 100%);
  --gradient-secondary: linear-gradient(135deg, #063779 0%, #653CCC 55%, #A81699 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(6, 55, 121, 0.08), 0 2px 4px -2px rgba(6, 55, 121, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(6, 55, 121, 0.12), 0 4px 6px -4px rgba(6, 55, 121, 0.07);
  --shadow-glow: 0 0 25px rgba(18, 163, 229, 0.25);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
}

/* ==========================================================================
   Utility Classes & Buttons
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14.5px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--navy-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-gradient {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(101, 60, 204, 0.3);
}

.btn-gradient:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(168, 22, 153, 0.4);
}

.btn-outline {
  border: 1.5px solid var(--border-color);
  color: var(--navy-primary);
  background-color: var(--white);
}

.btn-outline:hover {
  border-color: var(--navy-primary);
  background-color: var(--bg-subtle);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-cyan {
  background: rgba(18, 163, 229, 0.12);
  color: #0b80b7;
}

.badge-magenta {
  background: rgba(168, 22, 153, 0.12);
  color: var(--magenta-primary);
}

.badge-navy {
  background: rgba(6, 55, 121, 0.1);
  color: var(--navy-primary);
}

.badge-success {
  background: #DCFCE7;
  color: #166534;
}

.badge-warning {
  background: #FEF3C7;
  color: #92400E;
}

.badge-danger {
  background: #FEE2E2;
  color: #991B1B;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-primary);
  letter-spacing: -0.5px;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 10px rgba(6, 55, 121, 0.2);
}

.brand-icon-svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-body);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  font-size: 20px;
  color: var(--navy-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  background: radial-gradient(circle at 50% 0%, rgba(18, 163, 229, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 90% 20%, rgba(168, 22, 153, 0.05) 0%, transparent 50%),
              var(--white);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-badge {
  margin-bottom: 20px;
  border: 1px solid rgba(18, 163, 229, 0.3);
  padding: 6px 16px;
  box-shadow: 0 2px 8px rgba(18, 163, 229, 0.1);
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--navy-dark);
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-badges-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  color: var(--cyan);
  font-size: 16px;
}

/* Product Preview Mockup */
.mockup-wrapper {
  margin-top: 50px;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(135deg, rgba(18, 163, 229, 0.3), rgba(168, 22, 153, 0.3));
  box-shadow: 0 20px 50px -10px rgba(6, 55, 121, 0.25);
}

.mockup-inner {
  background: var(--white);
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.mockup-header-bar {
  background: #F8FAFC;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #EF4444; }
.mockup-dot.yellow { background: #F59E0B; }
.mockup-dot.green { background: #10B981; }

.mockup-search-pill {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px 18px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section-light {
  background-color: var(--bg-light);
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16.5px;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(6, 55, 121, 0.06);
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
  transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  background: var(--navy-primary);
  color: var(--white);
}

.feature-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-subpill {
  font-size: 11.5px;
  padding: 3px 8px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  color: var(--navy-primary);
  font-weight: 600;
}

/* ==========================================================================
   How It Works
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.step-num-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(6, 55, 121, 0.25);
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.pricing-toggle-label {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-muted);
  cursor: pointer;
}

.pricing-toggle-label.active {
  color: var(--navy-primary);
  font-weight: 700;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background-color: var(--navy-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 22px;
  height: 22px;
  background-color: var(--white);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.toggle-switch.yearly .toggle-knob {
  transform: translateX(23px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border: 2px solid var(--navy-primary);
  box-shadow: 0 12px 35px -5px rgba(6, 55, 121, 0.2);
}

.pricing-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  min-height: 40px;
  margin-bottom: 24px;
}

.plan-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.plan-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-dark);
}

.plan-amount {
  font-size: 46px;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1;
}

.plan-period {
  font-size: 14px;
  color: var(--text-muted);
}

.plan-features-list {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
}

.plan-feature-item i {
  color: var(--cyan);
  font-size: 14px;
}

/* ==========================================================================
   Testimonials & FAQ
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars-row {
  display: flex;
  gap: 4px;
  color: #F59E0B;
  font-size: 14px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 14.5px;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 22px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.author-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy-dark);
}

.author-role {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-question {
  padding: 20px 24px;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy-dark);
}

.faq-icon {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   Blog Section (AdSense & SEO Optimized)
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}

.blog-thumbnail-wrapper {
  height: 180px;
  background: linear-gradient(135deg, #042A5F, #063779);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 40px;
}

.blog-category-tag {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-primary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.blog-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-snippet {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.blog-read-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Final Conversion CTA
   ========================================================================== */
.final-cta-section {
  padding: 90px 0;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.final-cta-card {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.final-cta-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.final-cta-desc {
  font-size: 17.5px;
  color: #CBD5E1;
  margin-bottom: 36px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #021735;
  color: #94A3B8;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-title {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-heading {
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 13.5px;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  z-index: 9999;
  background: rgba(6, 55, 121, 0.95);
  backdrop-filter: blur(12px);
  color: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(18, 163, 229, 0.3);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUp 0.3s ease;
}

.cookie-text {
  font-size: 13px;
  line-height: 1.5;
  color: #E2E8F0;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   Modals & Auth System
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 42, 95, 0.7);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card.modal-lg {
  max-width: 820px;
}

.modal-card.modal-xl {
  max-width: 1050px;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #E2E8F0;
  color: var(--navy-dark);
}

.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-dark);
}

.modal-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.modal-body {
  padding: 24px 28px;
}

/* Auth Wizard Steps */
.auth-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.auth-step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.auth-step-pill.active {
  color: var(--navy-primary);
}

.auth-step-pill.done {
  color: #10B981;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.auth-step-pill.active .step-circle {
  background: var(--navy-primary);
  color: var(--white);
}

.auth-step-pill.done .step-circle {
  background: #10B981;
  color: var(--white);
}

/* Form Groups */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.form-label span.req {
  color: #EF4444;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-body);
  background: var(--white);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(18, 163, 229, 0.15);
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-size: 15px;
}

/* 6-Digit OTP Box */
.otp-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.otp-box {
  width: 48px;
  height: 56px;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--navy-primary);
  background: var(--bg-light);
}

.otp-box:focus {
  border-color: var(--cyan);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 163, 229, 0.2);
}

/* Demo Role Switcher */
.role-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.role-pill-btn {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--navy-primary);
  transition: all var(--transition-fast);
}

.role-pill-btn:hover, .role-pill-btn.active {
  background: var(--navy-primary);
  color: var(--white);
  border-color: var(--navy-primary);
}

/* ==========================================================================
   Admin Dashboard Shell & Layout
   ========================================================================== */
.app-dashboard-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #F1F5F9;
}

/* Dashboard Topbar */
.dashboard-topbar {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sidebar-toggle-btn {
  color: var(--navy-primary);
  font-size: 18px;
}

.global-search-wrapper {
  position: relative;
  width: 340px;
}

.global-search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13.5px;
  background: var(--bg-light);
}

.global-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.branch-select-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(6, 55, 121, 0.05);
  border: 1px solid rgba(6, 55, 121, 0.15);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-primary);
  cursor: pointer;
}

.topbar-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.topbar-badge-counter {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-full);
  background: var(--bg-light);
  cursor: pointer;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dashboard Body: Sidebar + Main Content */
.dashboard-layout-body {
  display: flex;
  flex: 1;
}

.dashboard-sidebar {
  width: 260px;
  background: var(--navy-dark);
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  transition: width var(--transition-normal);
  flex-shrink: 0;
}

.sidebar-menu-list {
  list-style: none;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748B;
  padding: 10px 14px 4px;
}

.sidebar-item-btn {
  width: 100%;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  color: #CBD5E1;
  transition: all var(--transition-fast);
}

.sidebar-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-btn-left i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: var(--cyan);
}

.sidebar-item-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.sidebar-item-btn.active {
  background: var(--gradient-primary);
  color: var(--white);
}

.sidebar-item-btn.active .sidebar-btn-left i {
  color: var(--white);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Dashboard Main Content Area */
.dashboard-main-content {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
}

.dash-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-dark);
}

.dash-page-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* KPI Summary Cards Grid */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-meta-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.kpi-meta-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.1;
}

.kpi-icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Data Tables */
.data-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 28px;
}

.data-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.data-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-table-container {
  overflow-x: auto;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.app-table th {
  background: #F8FAFC;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--navy-primary);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.app-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-body);
  vertical-align: middle;
}

.app-table tbody tr:hover {
  background: #F8FAFC;
}

/* ==========================================================================
   A4 Printable Tax Invoice Styles
   ========================================================================== */
.invoice-paper {
  background: var(--white);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #172033;
}

.invoice-header-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--navy-primary);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.zatca-qr-box {
  width: 100px;
  height: 100px;
  background: #F1F5F9;
  border: 1px dashed #64748B;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  text-align: center;
  color: #64748B;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--white);
  border-left: 4px solid var(--navy-primary);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  font-size: 13.5px;
  animation: slideLeft 0.25s ease;
}

.toast.toast-success { border-left-color: #10B981; }
.toast.toast-danger { border-left-color: #EF4444; }

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

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

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .features-grid, .steps-grid, .pricing-grid, .testimonials-grid, .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .features-grid, .steps-grid, .pricing-grid, .testimonials-grid, .blog-grid {
    grid-template-columns: 1fr;
  }
  .kpi-cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .dashboard-sidebar {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: -260px;
    z-index: 850;
  }
  .dashboard-sidebar.mobile-open {
    left: 0;
  }
}

/* Print Rules for A4 Tax Invoices */
@media print {
  body * {
    visibility: hidden;
  }
  .invoice-paper, .invoice-paper * {
    visibility: visible;
  }
  .invoice-paper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20mm;
    border: none;
    box-shadow: none;
  }
}
