/* ==========================================================================
   SolarCompute Dashboard — Work Subscription / Billing
   ========================================================================== */

.sub-page {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding-bottom: 34px;
}

.sub-page button {
  font: inherit;
}

.sub-page svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 18px;
}

.sub-primary,
.sub-sidebar {
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* Header */

.sub-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.sub-heading-row h2 {
  margin: 0;
  color: #fff;
  font: 600 1.14rem "Space Grotesk", Inter, sans-serif;
}

.sub-heading-row p {
  margin: 5px 0 0;
  color: var(--zm-muted);
  font-size: .76rem;
  line-height: 1.5;
}

.sub-cycle-toggle {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(143, 167, 199, .15);
  border-radius: 11px;
  background: rgba(13, 23, 37, .76);
}

.sub-cycle {
  appearance: none;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #9ba9bd;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 600;
}

.sub-cycle span {
  color: #68d987;
}

.sub-cycle.active {
  border-color: rgba(243, 178, 51, .7);
  background: rgba(243, 178, 51, .1);
  color: #f3b233;
}

/* Plans */

.sub-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.sub-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 460px;
  padding: 21px;
  border: 1px solid rgba(143, 167, 199, .15);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(18, 29, 45, .88), rgba(10, 20, 33, .96));
}

.sub-plan-starter {
  border-color: rgba(52, 195, 107, .24);
  background:
    radial-gradient(circle at 10% 0, rgba(42, 194, 102, .08), transparent 42%),
    linear-gradient(180deg, rgba(15, 31, 38, .94), rgba(9, 22, 32, .98));
}

.sub-plan-pro {
  border-color: rgba(75, 145, 255, .52);
  background:
    radial-gradient(circle at 50% 0, rgba(65, 139, 255, .11), transparent 45%),
    linear-gradient(180deg, rgba(15, 29, 48, .96), rgba(9, 21, 35, .99));
}

.sub-plan-ultimate {
  border-color: rgba(196, 80, 220, .28);
  background:
    radial-gradient(circle at 90% 0, rgba(180, 70, 216, .09), transparent 42%),
    linear-gradient(180deg, rgba(28, 22, 44, .94), rgba(12, 20, 34, .98));
}

.sub-plan.selected {
  box-shadow:
    0 0 0 2px rgba(243, 178, 51, .72),
    0 18px 40px rgba(0, 0, 0, .2);
}

.sub-popular {
  position: absolute;
  top: 0;
  left: 21px;
  padding: 4px 11px;
  border-radius: 0 0 6px 6px;
  background: #347ce4;
  color: #fff;
  font: 700 .58rem "Space Grotesk", Inter, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sub-plan-pro .sub-plan-head {
  padding-top: 10px;
}

.sub-plan-label {
  display: block;
  margin-bottom: 10px;
  font: 600 .72rem "Space Grotesk", Inter, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.sub-plan-starter .sub-plan-label,
.sub-plan-starter .sub-price strong {
  color: #62da7d;
}

.sub-plan-pro .sub-plan-label,
.sub-plan-pro .sub-price strong {
  color: #62a1ff;
}

.sub-plan-ultimate .sub-plan-label,
.sub-plan-ultimate .sub-price strong {
  color: #d077e5;
}

.sub-plan-head h2 {
  margin: 0;
  color: #fff;
  font: 600 1.02rem "Space Grotesk", Inter, sans-serif;
}

.sub-plan-head p {
  min-height: 55px;
  margin: 7px 0 0;
  color: #aeb9c8;
  font-size: .71rem;
  line-height: 1.55;
}

.sub-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 16px;
}

.sub-price strong {
  font: 600 1.85rem "Space Grotesk", Inter, sans-serif;
}

.sub-price span {
  color: #d4dbe5;
  font-size: .68rem;
}

.sub-price-note {
  margin: 4px 0 0;
  color: #7f90a8;
  font-size: .61rem;
}

.sub-feature-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 22px;
  padding: 0;
  list-style: none;
}

.sub-feature-list li {
  position: relative;
  padding-left: 19px;
  color: #c5cfdd;
  font-size: .67rem;
  line-height: 1.4;
}

.sub-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
}

.sub-plan-starter .sub-feature-list li::before {
  color: #62d981;
}

.sub-plan-pro .sub-feature-list li::before {
  color: #62a1ff;
}

.sub-plan-ultimate .sub-feature-list li::before {
  color: #ce72df;
}

.sub-plan-button {
  appearance: none;
  width: 100%;
  margin-top: auto;
  padding: 10px 13px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 600;
}

.sub-plan-starter .sub-plan-button {
  color: #61d77d;
}

.sub-plan-pro .sub-plan-button {
  color: #62a1ff;
}

.sub-plan-ultimate .sub-plan-button {
  color: #ce72df;
}

.sub-plan-button:hover {
  background: rgba(255, 255, 255, .035);
}

/* Benefits */

.sub-benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px;
}

.sub-benefit-strip article {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 12px;
  border-right: 1px solid rgba(143, 167, 199, .1);
}

.sub-benefit-strip article:last-child {
  border-right: 0;
}

.sub-benefit-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 50%;
}

.sub-benefit-icon.green {
  color: #61d77d;
  background: rgba(40, 194, 103, .11);
}

.sub-benefit-icon.blue {
  color: #61a4ff;
  background: rgba(58, 141, 255, .11);
}

.sub-benefit-icon.purple {
  color: #ce78e7;
  background: rgba(184, 87, 214, .11);
}

.sub-benefit-icon.amber {
  color: #f3b233;
  background: rgba(243, 178, 51, .11);
}

.sub-benefit-strip strong {
  display: block;
  color: #fff;
  font-size: .68rem;
}

.sub-benefit-strip p {
  margin: 3px 0 0;
  color: var(--zm-muted);
  font-size: .61rem;
  line-height: 1.4;
}

/* Payment */

.sub-payment-section {
  padding: 18px;
}

.sub-section-heading h2 {
  margin: 0;
  color: #fff;
  font: 600 1rem "Space Grotesk", Inter, sans-serif;
}

.sub-section-heading p {
  margin: 4px 0 0;
  color: var(--zm-muted);
  font-size: .69rem;
}

.sub-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.sub-payment-option {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid rgba(143, 167, 199, .18);
  border-radius: 8px;
  background: rgba(10, 19, 31, .42);
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.sub-payment-option.selected {
  border-color: rgba(243, 178, 51, .78);
  box-shadow: inset 0 0 0 1px rgba(243, 178, 51, .16);
}

.sub-payment-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  padding: 7px;
  border-radius: 7px;
  background: rgba(96, 137, 194, .12);
  color: #aec7eb;
}

.sub-payment-copy {
  min-width: 0;
}

.sub-payment-copy strong,
.sub-payment-copy small {
  display: block;
}

.sub-payment-copy strong {
  color: #fff;
  font-size: .72rem;
}

.sub-payment-copy small {
  margin-top: 3px;
  color: #8e9db1;
  font-size: .61rem;
}

.sub-card-brands {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.sub-card-brands b {
  padding: 3px 5px;
  border-radius: 3px;
  background: #245fb1;
  color: #fff;
  font-size: .48rem;
}

.sub-card-brands b:nth-child(2) {
  background: #c64d3c;
}

.sub-card-brands b:nth-child(3) {
  background: #2f85c5;
}

.sub-paypal {
  color: #4d9af0;
  font-size: 1.35rem;
}

.sub-secure-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  color: #8291a5;
  font-size: .59rem;
}

/* Sidebar */

.sub-side-card {
  padding: 18px;
}

.sub-side-card h2 {
  margin: 0;
  color: #fff;
  font: 600 1rem "Space Grotesk", Inter, sans-serif;
}

.sub-current-status {
  display: block;
  margin-top: 12px;
  color: #dfe6ef;
  font-size: .72rem;
}

.sub-side-card > p {
  margin: 7px 0 0;
  color: var(--zm-muted);
  font-size: .67rem;
  line-height: 1.5;
}

.sub-outline-button {
  appearance: none;
  width: 100%;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(83, 151, 255, .55);
  border-radius: 6px;
  background: transparent;
  color: #75a8f7;
  cursor: pointer;
  font-size: .68rem;
}

/* FAQ */

.sub-faq-list {
  margin-top: 12px;
  border-top: 1px solid rgba(143, 167, 199, .12);
}

.sub-faq-item {
  border-bottom: 1px solid rgba(143, 167, 199, .12);
}

.sub-faq-question {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 2px;
  border: 0;
  background: transparent;
  color: #dbe2ec;
  cursor: pointer;
  text-align: left;
  font-size: .65rem;
}

.sub-faq-question > span:last-child {
  color: #8ea1ba;
  transition: transform .18s ease;
}

.sub-faq-item.open .sub-faq-question > span:last-child {
  transform: rotate(180deg);
}

.sub-faq-answer {
  display: none;
  padding: 0 3px 12px;
  color: #8fa0b6;
  font-size: .62rem;
  line-height: 1.55;
}

.sub-faq-item.open .sub-faq-answer {
  display: block;
}

/* Order */

.sub-order-list {
  margin: 13px 0 0;
}

.sub-order-list div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 0;
}

.sub-order-list dt,
.sub-order-list dd {
  margin: 0;
  font-size: .65rem;
}

.sub-order-list dt {
  color: #91a0b4;
}

.sub-order-list dd {
  color: #e4eaf1;
  text-align: right;
}

.sub-order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid rgba(143, 167, 199, .14);
}

.sub-order-total > span {
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
}

.sub-order-total div {
  text-align: right;
}

.sub-order-total strong {
  color: #fff;
  font: 600 .91rem "Space Grotesk", Inter, sans-serif;
}

.sub-order-total small {
  color: #9ba8ba;
  font-size: .61rem;
}

.sub-checkout-button {
  appearance: none;
  width: 100%;
  margin-top: 16px;
  padding: 11px 14px;
  border: 1px solid #397ee7;
  border-radius: 6px;
  background: linear-gradient(135deg, #4d8ff4, #3479de);
  color: #fff;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 600;
  box-shadow: 0 9px 22px rgba(52, 121, 222, .2);
}

.sub-checkout-note {
  margin-top: 9px !important;
  text-align: center;
  font-size: .59rem !important;
}

/* Notice */

.sub-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: 340px;
  padding: 11px 14px;
  border: 1px solid rgba(216, 155, 43, .36);
  border-radius: 9px;
  background: rgba(13, 23, 37, .97);
  color: #d8e0ea;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .32);
  font-size: .7rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.sub-notice.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 1180px) {
  .sub-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .sub-plan {
    padding: 17px;
  }
}

@media (max-width: 1020px) {
  .sub-layout {
    grid-template-columns: 1fr;
  }

  .sub-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sub-order-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .sub-plan-grid,
  .sub-benefit-strip,
  .sub-payment-grid,
  .sub-sidebar {
    grid-template-columns: 1fr;
  }

  .sub-plan {
    min-height: 0;
  }

  .sub-benefit-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(143, 167, 199, .1);
  }

  .sub-benefit-strip article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .sub-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .sub-cycle-toggle {
    align-self: flex-start;
  }

  .sub-secure-note {
    flex-direction: column;
  }
}
