/* =========================================================
    Theme: Unified palette & variables (light/dark)
    ========================================================= */
:root {
  --primary-color: #6e41ff;
  --primary-color-hover: #5a34d8;

  --background-main: #ffffff;
  --background-card: #f9f9f9;

  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #6b7280;

  --border-color: #eaeaea;
  --hover-bg: #f2f2f7;
  --shadow-dark-rgb: 0, 0, 0;
  
  /* Footer variables removed, as .new-footer class has its own styles */
}

html.dark-mode {
  --primary-color: #7a5bff;
  --primary-color-hover: #6847ff;

  --background-main: #0a051f;
  --background-card: rgba(255, 255, 255, 0.06);
  --header-bg: rgba(10, 5, 31, 0.8);

  --text-primary: #f3f4f6;
  --text-secondary: #b7b9c6;
  --text-muted: #a0a0b0;

  --border-color: rgba(255, 255, 255, 0.12);
  --hover-bg: rgba(255, 255, 255, 0.1);
  
  /* Footer variables removed, as .new-footer class has its own styles */
}

/* =========================================================
    Global
    ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--background-main);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 10px;
}

.no-scroll { overflow: hidden; }

/* Background blobs (dark only) */
.background-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(150px);
  z-index: -1;
  display: none; /* default hidden */
}
.blob1 { width: 420px; height: 420px; top: -120px; left: -120px; background: var(--primary-color); }
.blob2 { width: 520px; height: 520px; top: 200px; right: -160px; background: #007bff; }
html.dark-mode .background-blob { display: block; }

.dropdown-container {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--background-card);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(var(--shadow-dark-rgb), 0.1);
  border: 1px solid var(--border-color);
  padding: 18px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, top 0.2s ease;
  z-index: 1001;
}

html.dark-mode .dropdown-container {
  background-color: var(--background-main);
}
html.dark-mode .tab-buttons button.active{ 
  background: var(--primary-color); 
  color: #fff; 
  border-color: transparent; 
}


.desktop-nav-links li:hover > .dropdown-container { opacity: 1; visibility: visible; top: calc(100% + 12px); pointer-events: auto; }

.dropdown-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px 28px; }
.dropdown-menu.cols-2 { grid-template-columns: repeat(2, auto); }
.dropdown-menu.cols-1 { grid-template-columns: 1fr; }
.dropdown-menu a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 12px;
  display: block;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap; /* Fix for dropdown word wrap */
}
.dropdown-menu a:hover { background-color: var(--hover-bg); color: var(--primary-color); }

/* Theme switcher */
.theme-switcher { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.theme-switcher .switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.theme-switcher .switch input { opacity: 0; width: 0; height: 0; }
.theme-switcher .switch .switch-slider {
  position: absolute; cursor: pointer; inset: 0; background-color: #cbd5e1; transition: .3s; border-radius: 24px;
}
.theme-switcher .switch .switch-slider:before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%;
}
.theme-switcher input:checked + .switch-slider { background-color: var(--primary-color); }
.theme-switcher input:checked + .switch-slider:before { transform: translateX(20px); }

.hamburger-menu { display: none; cursor: pointer; background: none; border: none; z-index: 1002; padding: 4px; }
.hamburger-menu .bar { display: block; width: 24px; height: 3px; margin: 5px 0; background-color: var(--text-primary); transition: all 0.2s ease; }

@media (max-width: 1100px) {
  .desktop-nav-links { display: none; }
  .hamburger-menu { display: inline-block; }
}

/* =========================================================
    Mobile Nav
    ========================================================= */
.mobile-nav {
  position: fixed; top: 0; right: 0; width: 100%; height: 100%;
  background-color: var(--background-main);
  z-index: 1001; transform: translateX(100%); transition: transform 0.35s ease;
  padding: 80px 24px 24px; overflow-y: auto; border-left: 1px solid var(--border-color);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav[aria-hidden="true"] { visibility: hidden; }
.mobile-nav[aria-hidden="false"] { visibility: visible; }

.mobile-nav-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  font-size: 2rem; line-height: 1; color: var(--text-primary); cursor: pointer;
}

.mobile-nav-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.submenu-toggle {
  width: 100%; background: none; border: none; padding: 12px 0; text-align: left;
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary); display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.mobile-nav .submenu {
  list-style: none; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding-left: 8px;
}
.mobile-nav .submenu a { display: block; padding: 8px 0; color: var(--text-secondary); text-decoration: none; }
.mobile-nav .submenu.open { max-height: 800px; }
.mobile-nav .arrow { transition: transform 0.3s ease; }
.mobile-nav .submenu-toggle.open .arrow { transform: rotate(90deg); }


/* =========================================================
    Buttons
    ========================================================= */
.btn {
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  display: inline-block;
  text-align: center;
  border: 1px solid transparent;
}
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary-color) 55%, transparent); outline-offset: 2px; }

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 10px 18px -8px color-mix(in srgb, var(--primary-color) 55%, transparent);
}
.btn-primary:hover { background-color: var(--primary-color-hover); transform: translateY(-2px); }

.btn-secondary {
  background-color: var(--background-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--hover-bg);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}
.btn.disabled, .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn.disabled:hover, .btn:disabled:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: transparent;
}
.btn-secondary.disabled, .btn-secondary:disabled {
  background-color: var(--background-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}


/* =========================================================
    Hero
    ========================================================= */

/*main section:first-of-type { padding-top: 80px; }*/

.hero { text-align: center; position: relative; z-index: 1;  }

.announcement {
  display: inline-block; border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 20px;
  font-size: 14px; margin-bottom: 20px; color: var(--text-secondary); background-color: var(--background-card);
}
.hero h1 {
  font-size: 52px; font-weight: 800; max-width: 800px; margin: 0 auto 16px; line-height: 1.15; letter-spacing: -1.2px; color: var(--text-primary);
}
.hero .subtitle { font-size: 18px; color: var(--text-secondary); max-width: 640px; margin: 0 auto 16px; }

/* =========================================================
    Pricing
    ========================================================= */
.pricing {  position: relative; z-index: 1; }

.pricing-toggle {
  display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap;
}
.toggle-switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .price-slider {
  position: absolute; inset: 0; background-color: #cbd5e1; border-radius: 34px; transition: .3s;
}
.toggle-switch .price-slider:before {
  position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: #fff; transition: .3s; border-radius: 50%;
}
.toggle-switch input:checked + .price-slider { background-color: var(--primary-color); }
.toggle-switch input:checked + .price-slider:before { transform: translateX(26px); }

.toggle-label {
  font-weight: 700; color: var(--text-secondary); background: var(--background-card); border: 1px solid var(--border-color);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.toggle-label.active { color: #fff; background: var(--primary-color); border-color: var(--primary-color); }
.discount-badge {
  background: #e8e0ff; color: #5a34d8; font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 20px;
}
html.dark-mode .discount-badge { background: #2a0a6a; color: #c4aeff; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; margin-top: 32px;
}

.pricing-card {
  background: var(--background-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 5px 18px rgba(var(--shadow-dark-rgb), 0.06); min-height: 100%;
}
.pricing-card:hover { transform: translateY(-6px); border-color: var(--primary-color); box-shadow: 0 16px 32px rgba(var(--shadow-dark-rgb), 0.12); }

.pricing-card h3 { font-size: 22px; margin-bottom: 8px; color: var(--text-primary); font-weight: 800; }
.pricing-card .plan-description { color: var(--text-secondary); margin-bottom: 18px; min-height: 52px; }

.price-container { margin-bottom: 8px; }
.price {
  font-size: 44px; font-weight: 800; margin: 0; color: var(--text-primary); display: flex; align-items: baseline; gap: 8px;
}
.price .amount { font-size: 44px; font-weight: 800; }
.price .unit { font-size: 16px; font-weight: 500; color: var(--text-secondary); }

/* Slashed price style */
.price-container .slashed-price {
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 8px;
  display: none; /* Hidden by default, shown by JS */
}

.billing-period { font-size: 14px; color: var(--text-muted); min-height: 1.4em; }

.pricing-card .btn { width: 100%; margin: 16px 0 24px; }

.features-list { list-style: none; margin-top: auto; padding: 0; }
.features-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: var(--text-secondary); font-size: 15px; }
.feature-icon { color: var(--primary-color); margin-top: 2px; }

.pricing-card.highlighted { border: 2px solid var(--primary-color); box-shadow: 0 14px 40px rgba(var(--shadow-dark-rgb), 0.15); }
.pricing-card.highlighted:hover { transform: scale(1.02) translateY(-6px); }

/* Tooltips */
.tooltip-icon {
  display: inline-block; position: relative; color: var(--text-muted); cursor: help; font-size: 0.8rem; font-weight: 700;
  border: 1px solid var(--border-color); border-radius: 50%; width: 18px; height: 18px; line-height: 16px; text-align: center;
}
.tooltip-icon::after {
  content: attr(data-tooltip); position: absolute; bottom: 140%; left: 50%; transform: translateX(-50%);
  background-color: var(--text-primary); color: var(--background-main); padding: 8px 12px; border-radius: 6px; font-size: 0.85rem;
  width: 220px; text-align: left; opacity: 0; visibility: hidden; transition: opacity 0.2s ease; z-index: 10;
}
.tooltip-icon:hover::after { opacity: 1; visibility: visible; }

/* =========================================================
    Modals
    ========================================================= */
.shared-modal {
  max-width: 900px; width: 92%; border: 1px solid var(--border-color); border-radius: 16px; padding: 24px;
  background: var(--background-main); box-shadow: 0 10px 30px rgba(var(--shadow-dark-rgb), 0.22);
}
.shared-modal::backdrop { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(3px); }

.modal-header {
  display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 16px;
}
.modal-header h2 { margin: 0; color: var(--text-primary); font-size: 22px; }
.modal-close-btn {
  background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--text-muted); cursor: pointer; transition: color 0.2s ease;
}
.modal-close-btn:hover { color: var(--text-primary); }

.compare-table-container { max-height: 60vh; overflow-y: auto; }
.compare-table { width: 100%; border-collapse: collapse; text-align: left; }
.compare-table th, .compare-table td {
  padding: 0.9rem; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); vertical-align: top;
}
.compare-table th { color: var(--text-primary); font-weight: 700; position: sticky; top: 0; background: var(--background-main); }
.check-mark { color: var(--primary-color); font-weight: 800; text-align: center; }
.dash-mark { color: var(--text-muted); text-align: center; }

/* Expert form & General Form Styles */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.4rem; color: var(--text-primary); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border-color); background-color: var(--background-main);
  border-radius: 10px; font-family: inherit; font-size: 1rem; color: var(--text-primary); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 22%, transparent);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* Custom <select> wrapper to match form styles */
.select-wrapper {
  position: relative;
}
.select-wrapper::after {
  content: '\f078'; /* Font Awesome chevron-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}
.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px; /* Make space for arrow */
}


/* =========================================================
    Back to Top
    ========================================================= */
#back-to-top {
  position: fixed; bottom: 20px; right: 20px; background-color: #10b981; color: white; border: none; border-radius: 50%;
  width: 50px; height: 50px; font-size: 1.1rem; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s; z-index: 900;
}
#back-to-top span { font-size: 0.75rem; margin-top: 2px; }
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background-color: #059669; }

/* =========================================================
    Tabs (from user's code)
    ========================================================= */
.tabs { 
  margin-top: 2.5rem; 
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}
.tab-buttons {
  display: flex; 
  gap: .75rem; 
  flex-wrap: wrap; 
  border-bottom: 1px solid var(--border-color); 
  padding-bottom: .5rem;
}
.tab-buttons button{
  border: 1px solid var(--border-color); 
  background: var(--background-card); 
  color: var(--text-secondary);
  padding: .5rem .9rem; 
  border-radius: 999px;
  font-weight: 600; 
  cursor: pointer;
}
html.dark-mode .tab-buttons button { 
  background: var(--background-main); 
  border-color: var(--border-color); 
}
.tab-buttons button.active{ 
  background: var(--primary-color); 
  color: #fff; 
  border-color: transparent; 
}
.tab-panel{ display: none; padding-top: 1.5rem; }
.tab-panel.active{ display: block; }
.tab-panel .note { font-size: .9rem; opacity: .9; }
.tab-panel .features-list .feature-icon { color: var(--text-secondary); }

/* Styles for content inside tabs */
.tab-panel h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.tab-panel h4:first-child {
  margin-top: 0;
}
.tab-panel p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.tab-panel p strong {
  color: var(--text-primary);
}
.tab-panel .features-list {
  margin-top: 1rem;
}

/* Styles for the table in the Details tab */
.table-container {
  overflow-x: auto;
}
.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.9rem;
  min-width: 600px;
}
.details-table th,
.details-table td {
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  text-align: left;
  color: var(--text-secondary);
  vertical-align: top;
}
.details-table th {
  background-color: var(--hover-bg);
  color: var(--text-primary);
  font-weight: 700;
}
.details-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* Styles for the step-by-step list */
.step-by-step-list {
  list-style-type: none;
  padding-left: 0;
  counter-reset: step-counter;
}
.step-by-step-list li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.step-by-step-list li::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-size: 0.9rem;
  margin-top: -2px;
}


/* =========================================================
    Responsive
    ========================================================= */
@media (max-width: 992px) {
  .new-footer .top-grid { grid-template-columns: 1fr; }
  .new-footer .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /*.hero { padding: 80px 0 50px; }*/
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .new-footer .services-grid { grid-template-columns: repeat(2, 1fr); }
  .new-footer .copyright-section { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 576px) {
  /* Added from your footer CSS */
  .new-footer .footer-grid{
      display:flex;
      flex-direction: column;
  }
}

@media (max-width: 520px) {
  .new-footer .services-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .pricing-card:hover, .pricing-card.highlighted:hover, .btn:hover { transform: none !important; }
}