:root {
  --primary: #512da8;
  --primary-dark: #311b92;
  --primary-light: #8559da;
  --secondary: #000000;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --border-color: #f1f2f6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Animation Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Duration Tokens */
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;
  --duration-slower: 0.8s;

  /* Default Transition */
  --transition: all var(--duration-normal) var(--ease-out-expo);
  --transition-colors: color var(--duration-normal) var(--ease-out-expo),
    background-color var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal) var(--ease-out-expo);
  --transition-transform: transform var(--duration-normal) var(--ease-out-expo);
  --transition-shadow: box-shadow var(--duration-normal) var(--ease-out-expo);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Almarai', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Responsive Grid Utilities */
.grid-cols-1 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gap-2 {
  gap: 8px;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.gap-8 {
  gap: 32px;
}

.section-padding {
  padding: 56px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-purple {
  background-color: var(--primary);
}

.text-white {
  color: white;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

h1 {
  font-size: 2.375rem;
  font-weight: 800;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 14px;
}

.text-white p {
  color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-transform),
    var(--transition-shadow),
    var(--transition-colors);
  cursor: pointer;
  border: none;
  font-family: inherit;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-premium {
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-premium:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: white;
  color: var(--primary);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background-color: #fcfcfc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(81, 45, 168, 0.1);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.9);
  
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: box-shadow var(--duration-normal) var(--ease-out-expo),
    background-color var(--duration-normal) var(--ease-out-expo);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
}

.logo svg {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 1px;
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav a:hover {
  color: var(--primary);
}

.nav a:hover::after {
  width: 100%;
}

.nav a.active {
  color: var(--primary);
}

.nav a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding-top: 96px;
  padding-bottom: 48px;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.0625rem;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
}

.dashboard-mockup {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform var(--duration-slow) var(--ease-out-expo),
    box-shadow var(--duration-slow) var(--ease-out-expo);
  will-change: transform;
}

.dashboard-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Solutions Section */
.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 28px;
}

.section-title h2 {
  color: var(--primary-dark);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background-color: var(--bg-card);
  padding: 22px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal) var(--ease-out-expo);
  text-align: right;
  will-change: transform;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-icon {
  width: 40px;
  height: 40px;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary);
  transition: background-color var(--duration-normal) var(--ease-out-expo),
    color var(--duration-normal) var(--ease-out-expo);
}

.card:hover .card-icon {
  background-color: var(--primary);
  color: white;
}

/* Business Types Section */
.businesses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.business-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo);
  will-change: transform;
}

.business-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.business-image {
  height: 120px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.b-icon {
  background-color: rgba(255, 255, 255, 0.15);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

.business-content {
  padding: 18px 20px;
  text-align: right;
}

/* Features Section */
.features-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.features-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 600;
}

.features-list li svg {
  width: 24px;
  height: 24px;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 4px;
}

/* Stats Section */
.stats-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 24px;
}

.stat-item {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* CTA Section */
.cta-container {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-lg);
}

.cta-content {
  max-width: 560px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.cta-content .btn {
  background-color: white;
  color: var(--primary-dark);
}

.cta-content .btn:hover {
  background-color: #f1f2f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-content .btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Footer */
.footer {
  background-color: #ffffff;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  transition: color var(--duration-normal) var(--ease-out-expo);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slower) var(--ease-out-expo),
    transform var(--duration-slower) var(--ease-out-expo);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--duration-slower) var(--ease-out-expo),
    transform var(--duration-slower) var(--ease-out-expo);
}

.fade-in-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--duration-slower) var(--ease-out-expo),
    transform var(--duration-slower) var(--ease-out-expo);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--duration-slower) var(--ease-out-expo),
    transform var(--duration-slower) var(--ease-out-expo);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* Page entrance */
@keyframes page-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

body {
  animation: page-enter var(--duration-slow) var(--ease-out-expo);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .dashboard-mockup {
    transform: none;
  }

  .businesses-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .features-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 44px 0;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .nav {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .cta-container {
    padding: 32px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .features-list ul {
    grid-template-columns: 1fr;
    text-align: right;
  }

  .stats-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
}

/* Auth Pages */
.auth-layout {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #180945, #311b92, #512da8);
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Abstract shapes for background */
.auth-layout::before,
.auth-layout::after {
  display: none;
}

.auth-layout::before {
  width: 400px;
  height: 400px;
  background-color: #8559da;
  top: -100px;
  left: -100px;
}

.auth-layout::after {
  width: 500px;
  height: 500px;
  background-color: #4a148c;
  bottom: -150px;
  right: -100px;
}

.auth-form-side {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  color: white;
}

.bg-icon {
  display: none;
}

.auth-visual-side {
  display: none;
  /* Hide visual side since we use a centered card */
}

.auth-header {
  margin-bottom: 32px;
  text-align: center;
}

.auth-header h1 {
  font-size: 2rem;
  color: white;
  margin-bottom: 8px;
}

.auth-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: white;
  font-size: 0.95rem;
}

.form-control {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-expo);
  outline: none;
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--primary-light);
  
  transform: scale(1.01);
}

.form-control::placeholder {
  color: rgba(99, 110, 114, 0.6);
}

.auth-btn {
  width: 100%;
  margin-top: 10px;
  font-size: 1.1rem;
  background-color: var(--primary-dark);
  color: white;
  border: none;
  transition: background-color var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo);
}

.auth-btn:hover {
  background-color: #21116a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.auth-footer {
  margin-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.auth-footer a {
  color: white;
  font-weight: 700;
  text-decoration: underline;
}

.back-home {
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo);
  z-index: 10;
}

.back-home:hover {
  color: white;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .auth-layout {
    padding: 16px;
    padding-top: 60px;
    /* Space for the back button */
    align-items: flex-start;
    /* Prevent vertical centering from squishing the form on short screens */
  }

  .back-home {
    top: 16px;
    right: 16px;
    font-size: 0.9rem;
  }

  .auth-form-side {
    padding: 32px 24px;
    margin: 20px auto 40px;
    /* Ensure spacing from top and bottom */
  }

  .auth-header {
    margin-bottom: 24px;
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }

  .auth-header p {
    font-size: 0.85rem;
  }

  .auth-header .logo svg {
    width: 32px;
    height: 32px;
  }

  .auth-header .logo span {
    font-size: 1.25rem !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in-up,
  .fade-in-scale,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .business-card,
  .dashboard-mockup,
  .form-control,
  .stat-item {
    transform: none !important;
  }

  .btn:active,
  .btn-primary:active,
  .btn-secondary:active,
  .auth-btn:active {
    transform: none !important;
  }
}

/* Onboarding Selection Styles */
.auth-form-wide {
  max-width: 800px;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.selection-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.selection-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.selection-card.selected {
  background: rgba(81, 45, 168, 0.25);
  border-color: #a29bfe;
  box-shadow: 0 0 0 2px #a29bfe;
}

.selection-icon {
  background: rgba(255, 255, 255, 0.08);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.selection-card.selected .selection-icon {
  background: rgba(255, 255, 255, 0.15);
}

.selection-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.selection-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

@media (max-width: 768px) {
  .selection-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .selection-card {
    padding: 20px 16px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: right;
  }

  .selection-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }

  .selection-card div {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  text-align: right;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.premium {
  background: rgba(81, 45, 168, 0.3);
  border-color: #a29bfe;
  
}

.pricing-card .badge {
  position: absolute;
  top: -15px;
  left: 30px;
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.pricing-card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: white;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 30px;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.pricing-card ul.features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1;
}

.pricing-card ul.features li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.pricing-card ul.features li.premium-header {
  font-weight: 800;
  font-size: 1.15rem;
  color: #a29bfe;
  margin-bottom: 20px;
  margin-top: -5px;
  display: block;
  /* Overrides the flex display of list items so it takes full width */
  text-align: right;
}

.pricing-card ul.features li svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: #a29bfe;
  margin-top: 4px;
}

.pricing-card .btn {
  width: 100%;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard Layout - Theming Variables */
.dashboard-layout {
  --dash-bg: #f4f6f9;
  --dash-text: #2d3436;
  --dash-text-muted: #64748b;
  --dash-panel-bg: #ffffff;
  --dash-panel-border: #e2e8f0;
  --dash-panel-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  --dash-sidebar-bg: #ffffff;
  --dash-nav-hover: #f8fafc;
  --dash-nav-active-bg: #f3f0ff;
  --dash-nav-active-color: #512da8;
  --dash-input-bg: #ffffff;
  --dash-input-border: #cbd5e1;
  --dash-input-text: #0f172a;
  --dash-primary-btn: #512da8;
  --dash-primary-btn-hover: #43248b;
  --dash-secondary-btn: #ffffff;
  --dash-secondary-btn-border: #cbd5e1;
  --dash-secondary-btn-text: #334155;
  --dash-secondary-btn-hover: #f8fafc;

  display: flex;
  min-height: 100vh;
  background: var(--dash-bg);
  position: relative;
  /* Removed overflow: hidden to prevent breaking page scrolling and sticky elements */
  color: var(--dash-text);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides */
.dashboard-layout.theme-dark {
  --dash-bg: #0B0F19;
  --dash-text: #f8fafc;
  --dash-text-muted: #94a3b8;
  --dash-panel-bg: rgba(30, 41, 59, 0.6);
  --dash-panel-border: rgba(255, 255, 255, 0.1);
  --dash-panel-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --dash-sidebar-bg: rgba(15, 23, 42, 0.7);
  --dash-nav-hover: rgba(255, 255, 255, 0.05);
  --dash-nav-active-bg: rgba(81, 45, 168, 0.2);
  --dash-nav-active-color: #a29bfe;
  --dash-input-bg: rgba(15, 23, 42, 0.6);
  --dash-input-border: rgba(255, 255, 255, 0.15);
  --dash-input-text: #f8fafc;
  --dash-primary-btn: #6c5ce7;
  --dash-primary-btn-hover: #512da8;
  --dash-secondary-btn: rgba(255, 255, 255, 0.05);
  --dash-secondary-btn-border: rgba(255, 255, 255, 0.15);
  --dash-secondary-btn-text: #e2e8f0;
  --dash-secondary-btn-hover: rgba(255, 255, 255, 0.1);
}

/* Ambient Background Glow for Dark Mode */
.dashboard-layout.theme-dark::before,
.dashboard-layout.theme-dark::after {
  display: none;
}

.dashboard-layout.theme-dark::before {
  background: #512da8;
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.dashboard-layout.theme-dark::after {
  background: #311b92;
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -150px;
}

/* Hide old decorative shapes */
.dash-bg-shape {
  display: none !important;
}

/* Glass Panel / Cards */
.glass-panel {
  background: var(--dash-panel-bg);
  border: 1px solid var(--dash-panel-border);
  border-radius: 12px;
  box-shadow: var(--dash-panel-shadow);
  color: var(--dash-text);
  z-index: 1;
  transition: all 0.3s ease;
}

/* Sidebar */
.sidebar {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  background: var(--dash-sidebar-bg);
  border-left: 1px solid var(--dash-panel-border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  border-radius: 0;
  z-index: 10;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dash-text) !important;
  padding: 0 12px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--dash-text-muted);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-item:hover {
  background: var(--dash-nav-hover);
  color: var(--dash-text);
  transform: translateX(-4px);
}

.nav-item:focus {
  outline: none;
}

.nav-item.active {
  background: var(--dash-nav-active-bg);
  color: var(--dash-nav-active-color);
  box-shadow: inset 3px 0 0 var(--dash-nav-active-color);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

.nav-item.locked {
  opacity: 0.6;
}

.nav-item.locked:hover {
  background: transparent;
  color: var(--dash-text-muted);
  cursor: not-allowed;
  transform: none;
}

.text-danger {
  color: #ef4444 !important;
}

.text-danger:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #dc2626 !important;
}

/* Main Content */
.dashboard-main {
  flex-grow: 1;
  padding: 24px 32px 48px 32px;
  display: flex;
  flex-direction: column;
  z-index: 1;
  box-sizing: border-box;
  min-width: 0;
  max-width: calc(100% - 240px);
  overflow-x: hidden;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  color: var(--dash-text);
}

.dash-header h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.dash-header p {
  color: var(--dash-text-muted);
  margin: 0;
  font-size: 1rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--dash-panel-bg);
  border: 1px solid var(--dash-panel-border);
  box-shadow: var(--dash-panel-shadow);
  
}

.user-profile .avatar {
  width: 38px;
  height: 38px;
  background: var(--dash-nav-active-bg);
  color: var(--dash-nav-active-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--dash-panel-bg);
  border: 1px solid var(--dash-panel-border);
  color: var(--dash-text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--dash-panel-shadow);
}

.theme-toggle-btn:hover {
  background: var(--dash-nav-hover);
  transform: translateY(-2px);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Forms & Inputs override for dashboard */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dash-text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--dash-input-border);
  border-radius: 12px;
  background: var(--dash-input-bg);
  color: var(--dash-input-text);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--dash-primary-btn);
  
  outline: none;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input {
  padding-left: 44px;
}

.input-with-icon .currency,
.input-with-icon .icon {
  position: absolute;
  left: 14px;
  color: var(--dash-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-with-icon .currency svg,
.input-with-icon .icon svg {
  width: 18px;
  height: 18px;
}

/* Buttons override for dashboard */
.btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--dash-primary-btn);
  border: 1px solid var(--dash-primary-btn);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(81, 45, 168, 0.2);
}

.btn-primary:hover {
  background: var(--dash-primary-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(81, 45, 168, 0.3);
}

.btn-secondary {
  background: var(--dash-secondary-btn);
  border: 1px solid var(--dash-secondary-btn-border);
  color: var(--dash-secondary-btn-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: var(--dash-secondary-btn-hover);
  border-color: var(--dash-text-muted);
  transform: translateY(-2px);
  color: var(--dash-text);
}

.divider {
  border: 0;
  height: 1px;
  background: var(--dash-panel-border);
  margin: 28px 0;
}

/* Results */
.calc-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.results-row-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.result-card {
  padding: 20px;
  position: relative;
}

.result-card h4 {
  margin: 0 0 16px 0;
  font-size: 1.05rem;
  color: var(--dash-text-muted);
}

.stat-value {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--dash-text);
}

.small-val {
  font-size: 2rem;
}

.stat-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dash-text-muted);
}

.status-good {
  color: #10b981;
}

.status-warn {
  color: #f59e0b;
}

.status-bad {
  color: #ef4444;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--dash-text-muted);
}

.breakdown-item .val {
  font-weight: 700;
  color: var(--dash-text);
}

.total-row {
  border-top: 1px dashed var(--dash-panel-border);
  padding-top: 16px;
  margin-top: 8px;
  color: var(--dash-text);
  font-weight: 800;
  font-size: 1.1rem;
}

.results-row-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tooltip-icon {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dash-nav-active-bg);
  color: var(--dash-nav-active-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: help;
  transition: transform 0.2s;
}

.tooltip-icon:hover {
  transform: scale(1.1);
}

@media (max-width: 992px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .sidebar {
    width: auto;
    margin: 0;
    padding: 16px;
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    border-bottom: 1px solid var(--dash-panel-border);
    height: auto;
  }

  .sidebar-logo {
    margin-bottom: 0;
    margin-left: 20px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-grow: 0;
  }

  .sidebar-footer {
    display: none;
  }

  .dash-header {
    flex-direction: column;
    gap: 20px;
  }

  .dashboard-main {
    padding: 20px 20px 100px 20px;
    height: auto;
    overflow-x: hidden;
    max-width: 100%;
  }

  .results-row-main,
  .results-row-sub,
  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-item {
    padding: 10px 14px;
    white-space: nowrap;
  }
}

/* How it Works */
.how-it-works {
  background-color: var(--bg-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.step-card {
  background: white;
  padding: 24px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) var(--ease-out-expo);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
}

.quote {
  font-size: 0.9875rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.client-info h4 {
  margin: 0 0 2px;
  font-size: 0.95rem;
}

.client-info span {
  color: var(--text-light);
  font-size: 0.825rem;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: white;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.faq-item h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
}

/* Checkout Page */
.checkout-header {
  text-align: center;
  margin-bottom: 30px;
}

.checkout-header h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.checkout-header p {
  color: var(--primary-light);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.order-summary {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.payment-methods {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.payment-methods .method {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.payment-methods .method.active,
.payment-methods .method:hover {
  background: rgba(133, 89, 218, 0.2);
  border-color: var(--primary-light);
}

.payment-methods .method svg {
  width: 32px;
  height: 32px;
}

.checkout-form .form-group {
  margin-bottom: 20px;
  text-align: right;
}

.checkout-form .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
}

.checkout-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.checkout-form .form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.1);
  
}

.checkout-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.secure-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Circular Logo Upload UI */
.logo-upload-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.logo-upload-label {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.logo-upload-label:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-light);
}

.logo-upload-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.logo-placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.logo-placeholder svg {
  width: 28px;
  height: 28px;
}

.logo-text {
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Locked Features & Modal */
.lock-icon {
  margin-inline-start: auto;
  opacity: 0.5;
  color: #a29bfe;
  flex-shrink: 0;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Premium Split Layout Paywall */
.paywall-card.premium-split {
  background: #0d0a1b;
  max-width: 860px;
  width: 95%;
  padding: 0;
  border-radius: 28px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.95) translateY(16px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
  z-index: 10000;
  direction: rtl;
  text-align: right;
  overflow: hidden;
  display: flex;
}

.modal-overlay.active .paywall-card.premium-split {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.paywall-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  z-index: 20;
}

.paywall-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: scale(1.1) rotate(90deg);
}

.paywall-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

/* Visual Column */
.paywall-visual {
  background: linear-gradient(135deg, #170b3b 0%, #0d0a1b 100%);
  position: relative;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.paywall-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  z-index: 5;
  pointer-events: none;
}

.modal-overlay.active .paywall-visual::after {
  animation: cinematicSweep 1.5s ease-in-out 0.4s forwards;
}

@keyframes cinematicSweep {
  0% { left: -150%; }
  100% { left: 200%; }
}

.paywall-visual .visual-content {
  position: relative;
  z-index: 10;
}

.paywall-visual .visual-content > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-overlay.active .paywall-visual .visual-content > * {
  opacity: 1;
  transform: translateY(0);
}

.modal-overlay.active .paywall-visual .visual-content .premium-badge-glow {
  transition-delay: 0.4s;
}

.modal-overlay.active .paywall-visual .visual-content .paywall-badge.premium {
  transition-delay: 0.5s;
}

.modal-overlay.active .paywall-visual .visual-content h2 {
  transition-delay: 0.6s;
}

.modal-overlay.active .paywall-visual .visual-content p {
  transition-delay: 0.7s;
}

.premium-badge-glow {
  display: none;
}

.paywall-badge.premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(162, 155, 254, 0.15);
  border: 1px solid rgba(162, 155, 254, 0.3);
  border-radius: 100px;
  color: #a29bfe;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(162, 155, 254, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a29bfe;
  box-shadow: 0 0 0 0 rgba(162, 155, 254, 0.7);
  animation: pulseDotPremium 2s infinite;
}

@keyframes pulseDotPremium {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(162, 155, 254, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(162, 155, 254, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(162, 155, 254, 0);
  }
}

.paywall-visual h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 16px;
}

.paywall-visual h2 .text-glow {
  color: #a29bfe;
  text-shadow: 0 0 20px rgba(162, 155, 254, 0.5);
}

.paywall-visual p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 90%;
}

/* Abstract Decorative Rings */
.abstract-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(162, 155, 254, 0.1);
  z-index: 1;
}

.abstract-ring.ring-1 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -50px;
  border-width: 2px;
  border-color: rgba(162, 155, 254, 0.15);
}

.abstract-ring.ring-2 {
  width: 450px;
  height: 450px;
  bottom: -150px;
  right: -100px;
}

/* Details Column */
.paywall-details {
  padding: 24px;
  background: #0d0a1b;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.paywall-features.premium-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.paywall-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
}

.modal-overlay.active .paywall-feat-item {
  opacity: 1;
  transform: translateX(0);
}

.modal-overlay.active .paywall-feat-item:nth-child(1) { transition-delay: 0.6s; }
.modal-overlay.active .paywall-feat-item:nth-child(2) { transition-delay: 0.7s; }
.modal-overlay.active .paywall-feat-item:nth-child(3) { transition-delay: 0.8s; }
.modal-overlay.active .paywall-feat-item:nth-child(4) { transition-delay: 0.9s; }

.feat-icon-box.neon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  background: rgba(162, 155, 254, 0.1);
  border: 1px solid rgba(162, 155, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a29bfe;
  box-shadow: inset 0 0 10px rgba(162, 155, 254, 0.1), 0 0 10px rgba(162, 155, 254, 0.1);
}

.paywall-feat-item strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 4px;
}

.paywall-feat-item span {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Dark Pricing Banner */
.paywall-pricing-banner.dark {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.paywall-pricing-banner.dark .price-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}

.paywall-pricing-banner.dark .price-period {
  color: rgba(255, 255, 255, 0.6);
}

/* CTA Buttons */
.paywall-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white !important;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(108, 92, 231, 0.6);
  background: linear-gradient(135deg, #5b4cc4, #8f88e6);
}

.paywall-btn-dismiss.dark {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.paywall-btn-dismiss.dark:hover {
  color: white;
}

@media (max-width: 768px) {
  .paywall-split-layout {
    grid-template-columns: 1fr;
  }

  .paywall-card.premium-split {
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .paywall-visual {
    padding: 30px 20px;
  }

  .paywall-visual h2 {
    font-size: 1.6rem;
  }

  .paywall-details {
    padding: 30px 20px;
  }
}





/* Tab Pills Navigation */

/* Tab Pills Navigation */
.tabs-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.5);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.tab-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-pill:hover {
  background: rgba(108, 92, 231, 0.05);
  color: var(--primary-color, #6c5ce7);
}

.tab-pill.active {
  background: white;
  color: var(--primary-color, #6c5ce7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.auth-form-side .form-control {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #2d3436 !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.auth-form-side .form-control::placeholder {
  color: #636e72 !important;
}

.auth-form-side .auth-btn {
  background-color: #ffffff !important;
  color: #512da8 !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.auth-form-side .auth-btn:hover {
  background-color: #f8f9fa !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-buttons .btn,
.cta-content .btn {
  background-color: #512da8 !important;
  color: #ffffff !important;
  border: 1px solid #512da8 !important;
  box-shadow: 0 4px 15px rgba(81, 45, 168, 0.3) !important;
}

.hero-buttons .btn:hover,
.cta-content .btn:hover {
  background-color: #311b92 !important;
  border-color: #311b92 !important;
  color: #ffffff !important;
}

/* Supplier Switch Active State */
.switch input:checked + .slider {
  background-color: var(--primary) !important;
}

.switch input:checked + .slider .slider-dot {
  transform: translateX(22px);
}

/* =============================================
   Settings Section - Complete Redesign
   ============================================= */
.settings-section {
  padding: 24px;
  animation: fadeIn 0.4s ease;
}

/* Pills Navigation */
.sett-nav-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sett-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  background: white;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Almarai', sans-serif;
}

.sett-pill:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: rgba(108, 92, 231, 0.04);
}

.sett-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Panels */
.sett-panel {
  display: none;
}

.sett-panel.active {
  display: block;
  animation: slideUp 0.3s ease;
}

/* Card */
.sett-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.sett-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.sett-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sett-card-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.sett-card-head p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

/* Fields Grid */
.sett-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sett-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sett-field-full {
  grid-column: 1 / -1;
}

.sett-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.sett-field input,
.sett-field select {
  padding: 11px 15px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Almarai', sans-serif;
  color: var(--text-dark);
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}

.sett-field input:focus,
.sett-field select:focus {
  border-color: var(--primary);
  
  background: white;
  outline: none;
}

/* Toggle Row */
.sett-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9ff;
  border: 1.5px solid #ece9ff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.sett-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sett-toggle-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.sett-toggle-desc {
  font-size: 12px;
  color: var(--text-light);
}

/* Toggle Switch */
.sett-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.sett-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.sett-track {
  position: absolute;
  inset: 0;
  background: #dfe6e9;
  border-radius: 28px;
  transition: background 0.3s;
}

.sett-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.sett-toggle-switch input:checked + .sett-track {
  background: var(--primary);
}

.sett-toggle-switch input:checked + .sett-track .sett-thumb {
  transform: translateX(-22px);
}

/* Footer / Save Button */
.sett-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.sett-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(81, 45, 168, 0.3);
  transition: all 0.25s ease;
  font-family: 'Almarai', sans-serif;
}

.sett-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(81, 45, 168, 0.4);
}

.sett-save-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .sett-fields-grid {
    grid-template-columns: 1fr;
  }
  .sett-field-full {
    grid-column: 1;
  }
}

/* =========================================
   Settings Section
