.platform-management-page__heading { padding-bottom: 1rem; }

.platform-management-page__title-row,
.platform-management-page__title-copy,
.platform-summary,
.platform-summary__card,
.platform-tabs,
.platform-panel__toolbar,
.platform-panel__actions,
.platform-pagination,
.platform-pagination > div,
.platform-plan-card__header,
.platform-app-card,
.platform-app-card__copy > div,
.platform-form-section-title,
.platform-domain-row__primary,
.platform-price-preview,
.platform-row-actions { align-items: center; display: flex; }

.platform-management-page__title-copy { gap: .75rem; }
.platform-management-page__title-copy .header-menu-responsive { margin: 0; }
.platform-management-page__title-copy h3 { color: #25324b; margin-bottom: .2rem; }
.platform-summary { gap: .85rem; margin-bottom: 1rem; }

.platform-summary__card {
  background: #fff;
  border: 1px solid #e5e7ef;
  border-radius: 7px;
  box-shadow: 0 2px 9px rgba(31, 45, 71, .035);
  flex: 1 1 0;
  gap: .8rem;
  min-width: 0;
  padding: .9rem 1rem;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.platform-summary__card:hover,
.platform-summary__card:focus-visible { border-color: #aab8e9; box-shadow: 0 5px 16px rgba(31, 45, 71, .08); transform: translateY(-1px); }

.platform-summary__icon {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 1.15rem;
  height: 42px;
  justify-content: center;
}

.platform-summary__card > span:last-child { display: flex; flex-direction: column; }
.platform-summary__card strong { color: #25324b; font-size: 1.15rem; line-height: 1.1; }
.platform-summary__card small { color: #7c8aa5; font-size: .73rem; margin-top: .2rem; }

.platform-workspace {
  background: #fff;
  border: 1px solid #e5e7ef;
  border-radius: 7px;
  box-shadow: 0 2px 9px rgba(31, 45, 71, .035);
  overflow: hidden;
}

.platform-tabs { background: #f8f9fc; border-bottom: 1px solid #e5e7ef; gap: .25rem; overflow-x: auto; padding: .55rem .75rem 0; }
.platform-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: #667085; display: inline-flex; font-size: .82rem; font-weight: 600; gap: .4rem; padding: .75rem .9rem; white-space: nowrap; }
.platform-tabs button.active { border-bottom-color: #435ebe; color: #435ebe; }
.platform-panel { min-height: 370px; }
.platform-panel__toolbar { border-bottom: 1px solid #edf0f5; gap: 1rem; justify-content: space-between; padding: 1.15rem 1.25rem; }
.platform-panel__toolbar h4, .platform-form-section-title h5 { color: #25324b; font-size: 1rem; margin-bottom: .15rem; }
.platform-panel__toolbar p, .platform-form-section-title p, .modal[id^="platform"] .modal-header p { color: #7c8aa5; font-size: .76rem; margin: 0; }
.platform-panel__actions { flex: 0 1 auto; gap: .6rem; }
.platform-search { max-width: 390px; min-width: 310px; }
.platform-table > :not(caption) > * > * { border-bottom-color: #edf0f5; padding: .85rem 1.25rem; }
.platform-table thead th { background: #fbfcfe; color: #7c8aa5; font-size: .67rem; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; white-space: nowrap; }
.platform-table tbody td { color: #536078; font-size: .8rem; }
.platform-table td > strong, .platform-table td > small { display: block; }
.platform-table td > strong { color: #25324b; }
.platform-table td > small { color: #8a96aa; font-size: .69rem; margin-top: .15rem; }
.platform-table code, .platform-app-card code { background: #f0f2f7; border-radius: 4px; color: #43516a; font-size: .68rem; padding: .2rem .35rem; }
.platform-row-actions { gap: .4rem; justify-content: flex-end; white-space: nowrap; }

.platform-state, .platform-modal-loading { align-items: center; color: #7c8aa5; display: flex; flex-direction: column; justify-content: center; min-height: 260px; padding: 2rem; text-align: center; }
.platform-state > i { color: #a7b1c2; font-size: 2rem; margin-bottom: .65rem; }
.platform-state h5 { color: #35415a; font-size: .95rem; margin-bottom: .25rem; }
.platform-state p { font-size: .78rem; margin-bottom: .8rem; }
.platform-state .spinner-border { height: 1.6rem; margin-bottom: .75rem; width: 1.6rem; }
.platform-state--error > i { color: #dc3545; }
.platform-pagination { color: #7c8aa5; font-size: .74rem; justify-content: space-between; padding: .8rem 1.25rem; }
.platform-pagination > div { gap: .6rem; }

.platform-plan-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1.25rem; }
.platform-plan-card { border: 1px solid #e3e7ef; border-radius: 7px; padding: 1rem; }
.platform-plan-card__header { justify-content: space-between; margin-bottom: .75rem; }
.platform-plan-card__level { color: #7c8aa5; font-size: .68rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.platform-plan-card > h4 { color: #25324b; font-size: 1.1rem; margin-bottom: .2rem; }
.platform-plan-card > p { color: #7c8aa5; font-size: .75rem; min-height: 34px; }
.platform-plan-card__price { background: #f7f8fd; border-radius: 6px; display: flex; flex-direction: column; margin: .85rem 0; padding: .7rem .8rem; }
.platform-plan-card__price strong { color: #435ebe; font-size: 1.25rem; }
.platform-plan-card__price span { color: #7c8aa5; font-size: .65rem; }
.platform-plan-card dl { margin-bottom: 1rem; }
.platform-plan-card dl > div { display: flex; font-size: .72rem; justify-content: space-between; padding: .35rem 0; }
.platform-plan-card dt { color: #7c8aa5; font-weight: 500; }
.platform-plan-card dd { color: #35415a; font-weight: 700; margin: 0; }

.platform-app-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.25rem; }
.platform-app-card { border: 1px solid #e5e7ef; border-radius: 6px; gap: .75rem; min-width: 0; padding: .75rem; }
.platform-app-card__icon { align-items: center; background: #edf1ff; border-radius: 5px; color: #435ebe; display: flex; flex: 0 0 40px; height: 40px; justify-content: center; }
.platform-app-card__copy { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.platform-app-card__copy > div { gap: .4rem; }
.platform-app-card__copy strong { color: #25324b; font-size: .82rem; }
.platform-app-card__copy small, .platform-app-card__copy > span { color: #7c8aa5; font-size: .66rem; margin: .15rem 0; }
.platform-app-card__copy code { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.modal[id^="platform"] .modal-header { align-items: flex-start; }
.modal[id^="platform"] .modal-title { color: #25324b; font-size: 1.05rem; }
.modal[id^="platform"] hr { border-color: #e5e7ef; margin: 1.35rem 0; opacity: 1; }
.platform-form-section-title { gap: 1rem; justify-content: space-between; margin-bottom: .8rem; }
.platform-domain-row { align-items: end; background: #f9fafc; border: 1px solid #e8ebf1; border-radius: 6px; display: grid; gap: .65rem; grid-template-columns: minmax(230px, 1.7fr) minmax(150px, .8fr) minmax(120px, .7fr) auto; padding: .75rem; }
.platform-domain-row + .platform-domain-row { margin-top: .6rem; }
.platform-domain-row__primary { gap: .35rem; min-height: 38px; }
.platform-domain-row__dns { align-items: center; background: #fff; border: 1px dashed #ccd5e4; border-radius: 5px; display: flex; gap: .75rem; grid-column: 1 / -1; justify-content: space-between; padding: .65rem .75rem; }
.platform-domain-row__dns > div { display: flex; flex-direction: column; min-width: 0; }
.platform-domain-row__dns span { color: #536078; font-size: .7rem; font-weight: 700; }
.platform-domain-row__dns code { color: #35415a; font-size: .69rem; overflow-wrap: anywhere; white-space: normal; }
.platform-domain-row__dns small { color: #7c8aa5; font-size: .65rem; }
.platform-app-picker { display: grid; gap: .5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 260px; overflow-y: auto; }
.platform-app-picker__item { align-items: center; border: 1px solid #e2e6ee; border-radius: 5px; cursor: pointer; display: flex; gap: .5rem; min-width: 0; padding: .55rem .6rem; }
.platform-app-picker__item--selected { background: #f2f5ff; border-color: #9cace5; }
.platform-app-picker__item > span { display: flex; flex-direction: column; min-width: 0; }
.platform-app-picker__item strong { color: #35415a; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-app-picker__item small { color: #7c8aa5; font-size: .62rem; }
.platform-band-table th { color: #7c8aa5; font-size: .65rem; text-transform: uppercase; }
.platform-band-table th:nth-child(1), .platform-band-table th:nth-child(2) { width: 120px; }
.platform-band-table th:nth-child(4) { width: 180px; }
.platform-band-table th:last-child { width: 44px; }

.platform-price-preview { background: #f2f5ff; border: 1px solid #dce3fb; border-radius: 6px; gap: .75rem; margin-top: 1rem; padding: .8rem; }
.platform-price-preview > span { align-items: center; background: #435ebe; border-radius: 5px; color: #fff; display: flex; flex: 0 0 38px; height: 38px; justify-content: center; }
.platform-price-preview strong { color: #35415a; font-size: .8rem; }
.platform-price-preview p { color: #667085; font-size: .72rem; margin: .1rem 0 0; }

.platform-provision-summary { background: #f7f9fc; border: 1px solid #e3e8f0; border-radius: 7px; display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: .9rem; }
.platform-provision-summary > div { display: flex; flex-direction: column; min-width: 0; }
.platform-provision-summary span { color: #7c8aa5; font-size: .68rem; margin-bottom: .15rem; }
.platform-provision-summary strong { color: #35415a; font-size: .78rem; overflow-wrap: anywhere; }
.platform-provision-confirm { background: #f9fafc; border: 1px solid #e5e9f0; border-radius: 6px; margin-top: 1rem; padding: .8rem .8rem .8rem 2.2rem; }
.platform-provision-confirm .form-check-label { color: #536078; font-size: .76rem; }
.platform-provision-result { padding-top: 1.25rem; text-align: center; }
.platform-provision-result__icon { align-items: center; background: #e6f7ef; border-radius: 50%; color: #198754; display: inline-flex; font-size: 1.4rem; height: 52px; justify-content: center; margin-bottom: .65rem; width: 52px; }
.platform-provision-result h5 { color: #25324b; font-size: 1rem; margin-bottom: .25rem; }
.platform-provision-result > p { color: #7c8aa5; font-size: .75rem; }
.platform-provision-result dl { border: 1px solid #e3e8f0; border-radius: 7px; margin: 1rem 0; text-align: left; }
.platform-provision-result dl > div { align-items: center; display: grid; gap: 1rem; grid-template-columns: 150px minmax(0, 1fr); padding: .75rem .9rem; }
.platform-provision-result dl > div + div { border-top: 1px solid #edf0f5; }
.platform-provision-result dt { color: #7c8aa5; font-size: .7rem; }
.platform-provision-result dd { align-items: center; color: #35415a; display: flex; font-size: .78rem; gap: .55rem; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.platform-provision-result code { background: #f0f2f7; border-radius: 4px; color: #25324b; padding: .3rem .45rem; }

body.theme-dark .platform-management-page__title-copy h3,
body.theme-dark .platform-summary__card strong,
body.theme-dark .platform-panel__toolbar h4,
body.theme-dark .platform-form-section-title h5,
body.theme-dark .platform-table td > strong,
body.theme-dark .platform-plan-card > h4,
body.theme-dark .platform-app-card__copy strong,
body.theme-dark .modal[id^="platform"] .modal-title { color: #d8deeb; }
body.theme-dark .platform-summary__card,
body.theme-dark .platform-workspace,
body.theme-dark .platform-plan-card,
body.theme-dark .platform-app-card { background: #1f2635; border-color: #343c4e; }
body.theme-dark .platform-tabs,
body.theme-dark .platform-table thead th,
body.theme-dark .platform-domain-row,
body.theme-dark .platform-plan-card__price,
body.theme-dark .platform-provision-summary,
body.theme-dark .platform-provision-confirm { background: #252d3d; border-color: #394154; }

@media (max-width: 991.98px) {
  .platform-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-plan-grid, .platform-app-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-domain-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
  .platform-panel__toolbar, .platform-panel__actions { align-items: stretch; flex-direction: column; }
  .platform-search { max-width: none; min-width: 0; width: 100%; }
  .platform-plan-grid, .platform-app-grid, .platform-domain-row, .platform-app-picker { grid-template-columns: 1fr; }
  .platform-provision-summary { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .platform-summary { gap: .55rem; }
  .platform-summary__card { padding: .7rem; }
  .platform-summary__icon { display: none; }
  .platform-tabs { padding-left: .35rem; padding-right: .35rem; }
  .platform-tabs button { padding-left: .65rem; padding-right: .65rem; }
  .platform-panel__toolbar, .platform-plan-grid, .platform-app-grid { padding: .9rem; }
  .platform-provision-result dl > div { align-items: start; grid-template-columns: 1fr; gap: .25rem; }
  .platform-provision-result dd { align-items: flex-start; flex-direction: column; }
}
