:root {
  --pricing-bg: #030305;
  --c-bg: #030305;
  --pricing-card-bg: rgba(255, 255, 255, 0.03);
  --pricing-border: rgba(255, 255, 255, 0.1);
  --pricing-text-main: #ffffff;
  --pricing-text-muted: #888888;
  --pricing-accent: #00f0ff;
}

body {
  background-color: var(--c-bg);
}

.pricing-section {
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--pricing-text-main);
  position: relative;
  z-index: 2;
}

/* --- DEPLOYMENT TOGGLER (Sticky) --- */
.deployment-toggle-container {
  display: flex;
  justify-content: center; /* Right align */
  gap: 15px;
  margin-bottom: 3rem;
  position: sticky;
  top: 100px; /* Below Navbar */
  z-index: 90;
  padding: 10px 0;
  backdrop-filter: blur(5px); /* Ensure readability when sticking */
  flex-wrap: wrap;
}

.deployment-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 12px 28px;
  color: #888;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.deployment-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.deployment-btn.active {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.deployment-btn.active i {
  color: #000;
}

/* --- DYNAMIC HERO --- */
.dynamic-hero {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.dynamic-hero h2 {
  font-size: 2.5rem;
  color: var(--pricing-accent);
  margin-bottom: 0.5rem;
}

.dynamic-hero h3 {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: 1rem;
}

.dynamic-hero p {
  color: var(--pricing-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- PRICING TABLE CONTAINER --- */
.pricing-table-dynamic {
  background: var(--pricing-card-bg);
  border: 1px solid var(--pricing-border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

/* --- HEADER ROW --- */
.pricing-header-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr); /* 4 Columns */
  border-bottom: 1px solid var(--pricing-border);
}

.pricing-header-cell {
  padding: 2rem 1rem;
  text-align: center;
  border-right: 1px solid var(--pricing-border);
}

.pricing-header-cell:last-child {
  border-right: none;
}

.edition-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.edition-details {
  text-align: left;
  font-size: 0.85rem;
  color: #aaa;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
}

.detail-label {
  color: #666;
}

.detail-value {
  color: #ccc;
  font-weight: 600;
  text-align: right;
}

/* --- ACCORDION GROUP --- */
.accordion-group {
  border-bottom: 1px solid var(--pricing-border);
  transition: all 0.3s ease;
}

.accordion-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.accordion-group.open .accordion-header::before {
  background: var(--pricing-accent);
}

.accordion-title {
  font-weight: 600;
  color: #fff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s ease;
}

.accordion-title::before {
  content: "+";
  color: var(--pricing-accent);
  font-size: 1.3rem;
  font-weight: 300;
  transition: all 0.3s ease;
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border: 2px solid var(--pricing-accent);
  border-radius: 4px;
}

.accordion-group.open .accordion-title::before {
  content: "−";
  transform: rotate(0deg);
}

.accordion-icon {
  color: var(--pricing-accent);
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

/* Open State */
.accordion-group.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: rgba(0, 0, 0, 0.2);
}

.accordion-group.open .accordion-content {
  max-height: 2000px;
}

/* --- FAQ BODY --- */
.faq-answer-body {
  padding: 1.5rem 2rem;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

/* --- FEATURE ROWS --- */
.pricing-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-cell {
  padding: 1rem;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #ddd;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-cell:last-child {
  border-right: none;
}

.pricing-cell.center-text {
  justify-content: center;
}

.feature-name {
  padding-left: calc(2rem + 20px + 12px);
  color: #fff;
  font-weight: 500;
}

/* Icons */
.pricing-icon-check {
  color: var(--pricing-accent);
}

.pricing-icon-dash {
  display: block;
  width: 8px;
  height: 2px;
  background: #444;
}

/* --- SAAS INCLUSIONS --- */
.saas-inclusions {
  padding: 2rem;
  background: rgba(0, 240, 255, 0.05);
  border-top: 1px solid var(--pricing-border);
}

.saas-inclusions h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.saas-inclusions ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.saas-inclusions li {
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.saas-inclusions li i {
  color: var(--pricing-accent);
}

/* --- FACTORS & CTA --- */
.pricing-dependencies {
  margin-top: 3rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--pricing-border);
}

.pricing-dependencies h3 {
  margin-bottom: 1.5rem;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.pricing-dependencies ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.pricing-dependencies li {
  font-size: 1rem;
  color: #aaa;
}

.pricing-cta-container {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .pricing-header-row,
  .pricing-row {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    min-width: 800px; /* Scrollable */
  }

  .pricing-table-dynamic {
    overflow-x: auto;
  }

  .pricing-cell.feature-name,
  .pricing-header-cell:first-child {
    position: sticky;
    left: 0;
    background: #0a0a0f;
    z-index: 10;
    border-right: 1px solid var(--pricing-border);
  }
}

/* --- FAQ SPECIFIC STYLES --- */

/* Categories */
.faq-categories-container {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--pricing-border);
  padding: 6px;
  border-radius: 50px;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 3rem auto; /* Center horizontally */
}

.faq-category-pill {
  background: transparent;
  border: none;
  padding: 8px 20px;
  border-radius: 40px;
  color: #888;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.faq-category-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.faq-category-pill.active {
  background: #fff;
  color: #000;
  font-weight: 600;
}

/* FAQ Item Layout */
.faq-item .accordion-header {
  display: grid;
  grid-template-columns: auto 1fr auto; /* Icon | Text | Chevron */
  gap: 20px;
  align-items: center; /* Center vertically */
  padding: 1.5rem 2rem;
}

/* Icon Wrapper */
.faq-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  background: rgba(255, 255, 255, 0.02); /* Very faint bg */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s;
}

/* Hover effect on group */
.faq-item:hover .faq-icon-wrapper {
  border-color: var(--pricing-accent);
  color: var(--pricing-accent);
  background: rgba(0, 240, 255, 0.05);
}

.faq-header-text {
  text-align: left;
}

/* Override existing accordion title for FAQ to be bolder */
.faq-item .accordion-title {
  font-size: 1.1rem;
  color: #fff; /* White text */
}

/* Adjust content padding to align with text */
.faq-item .accordion-content .faq-answer-body {
  padding-left: calc(2rem + 48px + 20px); /* Align with text start */
}

@media (max-width: 600px) {
  .faq-item .accordion-header {
    grid-template-columns: 1fr auto;
    gap: 15px;
  }
  .faq-icon-wrapper {
    display: none; /* Hide icon on mobile if space is tight */
  }
  .faq-item .accordion-content .faq-answer-body {
    padding-left: 2rem;
  }
}

/* --- DOWNLOADS PAGE STYLES --- */

.download-page-wrapper {
  max-width: 1000px !important;
}

.download-section {
  margin-bottom: 4rem;
}

.download-section-header {
  margin-bottom: 1.5rem;
}

.section-badge {
  color: var(--pricing-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.download-section-header h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.download-section-header p {
  color: var(--pricing-text-muted);
}

.download-section-body {
  background: var(--pricing-card-bg);
  border: 1px solid var(--pricing-border);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

/* Tables */
.download-table {
  width: 100%;
  border-collapse: collapse;
  color: #ddd;
}

.download-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--pricing-border);
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
}

.download-table td {
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  transition: background 0.2s;
}

.download-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

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

.col-name {
  width: 25%;
}

.col-name strong {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.col-desc {
  width: 55%;
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.5;
}

.col-action {
  width: 20%;
  text-align: right;
  white-space: nowrap;
}

.link-download {
  color: var(--pricing-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-download:hover {
  color: #fff;
}

/* Lists and Notes */
.download-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.download-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
}

.download-list li i {
  color: var(--pricing-accent);
}

.download-notes {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.section-actions {
  margin-top: 2rem;
  display: flex;
  gap: 15px;
}

@media (max-width: 768px) {
  .download-section-body {
    padding: 1rem;
  }
  .download-table th {
    display: none; /* Hide headers on small screens */
  }
  .download-table td {
    display: block;
    padding: 0.5rem 0;
    text-align: left;
  }
  .download-table tr {
    display: block;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--pricing-border);
    padding-bottom: 1rem;
  }
  .col-action {
    text-align: left;
    margin-top: 0.5rem;
  }
}
