/* صفحات عروض الخدمات: حلول نايوش · خفض التكاليف — Catalog + Transactions */

.so-page-wide {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(14px, 2vw, 28px) 48px;
  box-sizing: border-box;
}

.so-prose {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.85;
  color: #334155;
}

.so-faq {
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 18px;
  padding: 22px 20px;
  border-top: 3px solid var(--brand-red, #d70000);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.so-faq + .so-faq {
  margin-top: 14px;
}

.so-faq .hub-feature-section-title {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.so-entry-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 6px;
}

.so-entry-btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 18px;
  padding: 18px 16px;
  border-top: 3px solid var(--brand-red, #d70000);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.so-entry-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(120, 0, 20, 0.12);
}

.so-entry-btn .hub-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #fff1f2, #ffe4e6);
  color: #dc2626;
  font-size: 18px;
}

.so-entry-btn strong {
  display: block;
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

.so-entry-btn span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #64748b;
}

/* ——— Solutions app ——— */
.so-topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.so-intro.cardish,
.cardish {
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.so-intro p {
  margin: 0 0 10px;
  font-weight: 700;
  color: #334155;
  line-height: 1.7;
}

.so-intro-actions,
.so-card-actions,
.so-row-actions,
.so-wiz-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.so-card-actions-col {
  flex-direction: column;
  align-items: stretch;
}

.so-toolbar {
  display: grid;
  grid-template-columns: 1.4fr 2fr auto;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 12px;
}

.so-search label,
.so-form-grid label,
.so-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.so-search input,
.so-filters select,
.so-form-grid input,
.so-block input,
.so-block textarea,
.so-block select,
.so-inline input {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  font-weight: 700;
  background: #fff;
}

.so-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.so-filters select {
  min-width: 120px;
  flex: 1;
}

.so-toolbar-side {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.so-count {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.so-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0 0 18px;
}

.so-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border: 1px solid #e8e8ee;
  border-radius: 12px;
  padding: 12px;
  border-top: 3px solid var(--brand-red, #d70000);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.so-card:hover,
.so-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(120, 0, 20, 0.1);
  outline: none;
}

.so-card-top {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.so-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff1f2, #ffe4e6);
  color: #dc2626;
  flex-shrink: 0;
}

.so-meta {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 2px;
}

.so-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.so-desc {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-height: 4.8em;
}

.so-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.so-tags span {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.so-price {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
}

.so-price span {
  display: block;
  color: #94a3b8;
  font-size: 10px;
}

.so-price strong {
  color: #111;
  font-size: 14px;
}

.so-price-muted span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

.so-card-actions {
  margin-top: auto;
}

.so-card-actions .btn {
  font-size: 11px;
  padding: 6px 8px;
  font-weight: 800;
}

.so-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.so-panel-head h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.so-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 12px;
}

.so-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-weight: 700;
}

.so-table th,
.so-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f1f5f9;
  text-align: right;
  vertical-align: top;
}

.so-table th {
  background: #f8fafc;
  font-size: 11px;
  color: #64748b;
}

.so-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.so-empty {
  padding: 28px;
  text-align: center;
  font-weight: 800;
  color: #64748b;
}

.so-detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 12px;
}

.so-detail-side {
  position: sticky;
  top: 80px;
  align-self: start;
}

.so-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.so-kv div {
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fafafa;
}

.so-kv b {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.so-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.so-tab {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.so-tab.on {
  background: #111;
  color: #fff;
  border-color: #111;
}

.so-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.so-feed li {
  padding: 8px 10px;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
}

.so-timeline {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.so-timeline small {
  display: block;
  color: #94a3b8;
  font-weight: 700;
}

.so-inline {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.so-inline input {
  flex: 1;
}

.so-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.so-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.so-checks label {
  display: flex;
  gap: 6px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-weight: 800;
}

.so-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.so-steps span {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.so-steps span.on {
  background: #111;
  color: #fff;
  border-color: #111;
}

.so-wiz-body {
  margin-bottom: 14px;
}

.so-toast {
  position: sticky;
  top: 70px;
  z-index: 30;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.so-cost-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 1400px) {
  .so-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .so-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .so-toolbar {
    grid-template-columns: 1fr;
  }
  .so-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .so-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .so-entry-actions,
  .so-form-grid,
  .so-kv {
    grid-template-columns: 1fr;
  }
}

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

.so-selected-summary {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px;
}
.so-selected-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.so-quote-form .so-quote-locked {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.so-error {
  color: #b91c1c;
  font-weight: 700;
  margin-top: 10px;
}
.so-success {
  text-align: center;
  padding: 28px 20px;
  max-width: 560px;
  margin: 12px auto;
}
.so-success h2 {
  color: #166534;
  margin-bottom: 8px;
}
.so-req-id {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 8px 0 18px;
}
.so-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
