.bundle-hero {
  padding: 150px 0 60px;
  text-align: left;
}

.bundle-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.15;
  color: var(--steel-bright);
  margin: 14px 0 16px;
}

.bundle-hero .lead {
  color: var(--steel);
  font-size: 17px;
  max-width: 620px;
  margin-bottom: 44px;
}

/* ---- progress track ---- */
.progress-track {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .5;
  transition: opacity .3s;
}

.progress-step.active,
.progress-step.done {
  opacity: 1;
}

.progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--line-bright);
  color: var(--steel);
  flex-shrink: 0;
  transition: all .3s;
}

.progress-step.active .progress-dot {
  border-color: var(--signal);
  color: var(--signal);
  box-shadow: 0 0 0 4px rgba(73, 198, 247, .15);
}

.progress-step.done .progress-dot {
  background: var(--signal);
  border-color: var(--signal);
  color: #04101c;
}

.progress-label {
  font-size: 13.5px;
  color: var(--steel-bright);
  font-weight: 500;
  white-space: nowrap;
}

.progress-line {
  width: 40px;
  height: 1px;
  background: var(--line-bright);
  flex-shrink: 0;
}

@media (max-width:640px) {
  .progress-line {
    width: 20px;
  }

  .progress-label {
    display: none;
  }
}

/* ---- platform selector ---- */
.platform-section {
  padding: 20px 0 70px;
}

.platform-section h2,
.builder-toolbar h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--steel-bright);
}

.section-sub {
  color: var(--steel);
  font-size: 14.5px;
  margin: 8px 0 28px;
}

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

@media (max-width:760px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

.platform-card {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  cursor: pointer;
  transition: all .25s;
  position: relative;
}

.platform-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
}

.platform-card.selected {
  border-color: var(--signal);
  background: linear-gradient(160deg, var(--panel-light), var(--panel));
  box-shadow: 0 0 0 1px rgba(73, 198, 247, .25), 0 16px 40px -20px rgba(73, 198, 247, .3);
}

.platform-card .check {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
}

[dir="rtl"] .platform-card .check {
  right: auto;
  left: 18px;
}

.platform-card.selected .check {
  background: var(--signal);
  border-color: var(--signal);
}

.platform-card .check svg {
  opacity: 0;
  transition: opacity .2s;
}

.platform-card.selected .check svg {
  opacity: 1;
}

.platform-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  padding-right: 30px;
}

[dir="rtl"] .platform-card h4 {
  padding-right: 0;
  padding-left: 30px;
}

.platform-card p {
  font-size: 13.5px;
  color: var(--steel);
}

.platform-price {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--signal);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---- builder layout ---- */
.builder-section {
  padding-bottom: 100px;
}

.builder-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 44px;
  align-items: flex-start;
}

@media (max-width:980px) {
  .builder-wrap {
    grid-template-columns: 1fr;
  }
}

.builder-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 6px;
}

.toolbar-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--steel-dim);
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--steel-bright);
  font-size: 13.5px;
  font-family: var(--font-body);
  width: 180px;
}

.search-box input::placeholder {
  color: var(--steel-dim);
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 7px 13px;
  border-radius: 20px;
  border: 1px solid var(--line-bright);
  color: var(--steel);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--signal);
  color: var(--steel-bright);
}

.filter-chip.active {
  background: var(--signal);
  border-color: var(--signal);
  color: #04101c;
  font-weight: 600;
}

.builder-hint {
  color: var(--steel-dim);
  font-size: 14px;
  padding: 14px 0;
  font-family: var(--font-mono);
}

/* ---- feature categories ---- */
.category-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  margin-bottom: 16px;
  overflow: hidden;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
}

.category-header h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--steel-bright);
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-dim);
  background: var(--panel-light);
  padding: 3px 9px;
  border-radius: 12px;
}

.category-count.has-selection {
  color: var(--signal);
}

.category-chevron {
  transition: transform .25s;
  color: var(--steel-dim);
  flex-shrink: 0;
}

.category-block.collapsed .category-chevron {
  transform: rotate(-90deg);
}

[dir="rtl"] .category-block.collapsed .category-chevron {
  transform: rotate(90deg);
}

.category-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 22px 22px;
}

@media (max-width:700px) {
  .category-features {
    grid-template-columns: 1fr;
  }
}

.category-block.collapsed .category-features {
  display: none;
}

.feature-card {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .2s;
  background: var(--void-soft);
}

.feature-card:hover {
  border-color: var(--line-bright);
}

.feature-card.selected {
  border-color: var(--signal);
  background: rgba(73, 198, 247, .06);
}

.feature-card.hidden {
  display: none;
}

.feature-checkbox {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border-radius: 5px;
  border: 1.5px solid var(--line-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.feature-card.selected .feature-checkbox {
  background: var(--signal);
  border-color: var(--signal);
}

.feature-checkbox svg {
  opacity: 0;
  transition: opacity .15s;
}

.feature-card.selected .feature-checkbox svg {
  opacity: 1;
}

.feature-info {
  flex: 1;
  min-width: 0;
}

.feature-info .f-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--steel-bright);
  margin-bottom: 3px;
}

.feature-info .f-desc {
  font-size: 12.5px;
  color: var(--steel);
  line-height: 1.4;
  margin-bottom: 8px;
}

.feature-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--steel-dim);
}

.feature-meta .f-price {
  color: var(--signal);
  font-weight: 600;
}

.feature-dep-note {
  margin-top: 6px;
  font-size: 11px;
  color: var(--steel-dim);
  font-style: italic;
}

/* ---- sticky summary sidebar ---- */
.summary-sidebar {
  position: sticky;
  top: 100px;
}

.summary-card {
  background: var(--panel);
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  padding: 26px 24px;
}

.summary-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}

.summary-block {
  margin-bottom: 18px;
}

.summary-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--steel-dim);
  margin-bottom: 8px;
}

.summary-empty {
  font-size: 13px;
  color: var(--steel-dim);
}

.summary-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.summary-platforms span.tag,
.summary-features span.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--panel-light);
  border: 1px solid var(--line);
  color: var(--steel-bright);
  padding: 4px 9px;
  border-radius: 6px;
}

.summary-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.summary-totals {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  color: var(--steel);
  margin-bottom: 8px;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-value {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  color: var(--steel-bright);
}

.summary-note {
  font-size: 11.5px;
  color: var(--steel-dim);
  line-height: 1.5;
  margin-bottom: 20px;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ---- request quote modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 8, 14, .72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-panel {
  background: var(--panel);
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  padding: 36px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(12px);
  transition: transform .25s ease;
}

.modal-overlay.open .modal-panel {
  transform: translateY(0);
}

.modal-panel h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-sub {
  color: var(--steel);
  font-size: 14px;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--steel-dim);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 20px;
}

.modal-close:hover {
  color: var(--steel-bright);
}

.modal-bundle-recap {
  background: var(--void-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--steel);
}

.modal-bundle-recap strong {
  color: var(--steel-bright);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--steel);
}

.form-grid input,
.form-grid textarea {
  background: var(--void-soft);
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--steel-bright);
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
  resize: vertical;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: var(--signal);
}

@media (max-width:520px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid label.full {
    grid-column: 1;
  }
}

.modal-submit {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   ARABIC MODE — bring monospace-styled dynamic elements over to
   the Arabic typeface (mirrors the pattern used in styles.css)
   ============================================================ */
body.ar .progress-dot,
body.ar .platform-price,
body.ar .filter-chip,
body.ar .category-count,
body.ar .summary-label,
body.ar .summary-value,
body.ar .summary-platforms span.tag,
body.ar .summary-features span.tag,
body.ar .feature-meta,
body.ar .builder-hint,
body.ar .feature-dep-note,
body.ar .search-box input {
  font-family: var(--font-arabic);
}

body.ar .summary-label {
  text-transform: none;
  letter-spacing: 0;
}

body.ar .bundle-hero {
  text-align: right;
}

[dir="rtl"] .bundle-hero {
  text-align: right;
}