/* Sign up — subscription-details style plan picker + sticky cart */

:root {
  --su-bg: #0b1220;
  --su-panel: #0f172a;
  --su-line: #334155;
  --su-text: #e2e8f0;
  --su-muted: #94a3b8;
  --su-teal: #14b8a6;
  --su-teal-btn: #0d9488;
  --su-font: "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--su-bg);
  color: var(--su-text);
  font-family: var(--su-font);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.su-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--su-line);
  background: var(--su-panel);
}

.su-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.45rem;
  border: 1px solid #0f766e;
  background: var(--su-teal-btn);
  color: #ecfdf5;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.su-back:hover {
  background: var(--su-teal);
  color: #fff;
}

.su-header h1 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--su-teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.su-header p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--su-muted);
  max-width: 36rem;
  line-height: 1.4;
}

.su-link {
  color: #5eead4;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.su-link:hover {
  text-decoration: underline;
}

.su-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  min-height: 0;
}

.su-main {
  overflow: auto;
  padding: 1.15rem 1.25rem 8rem;
}

.su-loading,
.su-empty {
  color: var(--su-muted);
  font-size: 0.9rem;
}

.su-panel {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--su-line);
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.85);
}

.su-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #f8fafc;
}

.su-lead {
  margin: 0 0 1rem;
  color: var(--su-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.su-tier-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.su-tier-option {
  text-align: left;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 0.55rem;
  border: 1px solid var(--su-line);
  background: #020617;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.su-tier-option:hover {
  border-color: #475569;
}

.su-tier-option.selected {
  border-color: var(--su-teal);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.35);
  background: rgba(13, 148, 136, 0.12);
}

.su-tier-option .row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.su-tier-option .name {
  font-weight: 800;
  font-size: 0.95rem;
}

.su-tier-option .price {
  color: #5eead4;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
}

.su-tier-option .desc {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--su-muted);
  line-height: 1.4;
}

.su-tier-option ul {
  margin: 0.5rem 0 0;
  padding: 0 0 0 1rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.su-addon-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.su-addon-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--su-line);
  border-radius: 0.45rem;
  background: #020617;
  cursor: pointer;
}

.su-addon-row.is-on {
  border-color: var(--su-teal);
  background: rgba(13, 148, 136, 0.1);
}

.su-addon-row input {
  margin-top: 0.15rem;
  accent-color: var(--su-teal);
}

.su-addon-row .body {
  min-width: 0;
  flex: 1;
}

.su-addon-row .name {
  font-weight: 800;
  font-size: 0.88rem;
}

.su-addon-row .meta {
  display: block;
  margin-top: 0.15rem;
  color: #5eead4;
  font-size: 0.75rem;
  font-weight: 700;
}

.su-addon-row .desc {
  display: block;
  margin-top: 0.25rem;
  color: var(--su-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.su-cart-host {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  border-left: 1px solid #1e293b;
  background: var(--su-panel);
}

.su-cart {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.75rem;
  overflow: auto;
}

.su-cart h2 {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
}

.su-cart-tag {
  font-size: 0.68rem;
  color: #64748b;
}

.su-cart-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #1e293b;
  font-size: 0.85rem;
}

.su-cart-line .meta {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
}

.su-cart-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}

.su-cart-totals {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--su-muted);
}

.su-cart-totals strong {
  color: #f8fafc;
}

.su-cart-pay {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.su-cart-note {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
}

.su-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.45rem;
  border: 1px solid #0f766e;
  background: var(--su-teal-btn);
  color: #ecfdf5;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.su-cta:hover:not(:disabled) {
  background: var(--su-teal);
}

.su-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.su-cta.secondary {
  background: #1e293b;
  border-color: #475569;
}

.su-pay-status {
  margin: 0;
  font-size: 0.75rem;
  color: #fde68a;
  line-height: 1.4;
}

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

  .su-cart-host {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: auto;
    max-height: min(46vh, 20rem);
    border-left: 0;
    border-top: 1px solid var(--su-line);
    z-index: 40;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
  }
}
