/* ==========================================================================
   Subscriber account panel
   --------------------------------------------------------------------------
   Layered on theme.css + panel.css; only what is specific to a customer's own
   view of their subscription lives here.
   ========================================================================== */

/* The plan tiles a subscriber chooses between. They are rendered by
   account.js into `.plan-tile`, so the grid lives on that element itself
   rather than on a wrapper. */
.plan-tile {
  display: flex; flex-direction: column; gap: 7px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color var(--t), background var(--t);
}
.plan-tile:hover { border-color: var(--border-gold); background: var(--surface-3); }
.plan-tile h3 { font-size: 15px; font-weight: 700; }
.plan-tile .plan-price {
  font-family: var(--mono);
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--gold-bright);
  margin: 6px 0 2px;
}
.plan-tile .btn { margin-top: auto; width: 100%; }

/* A tick drawn as a bullet: the list is generated from plan data, so an icon
   per row would mean rebuilding the markup for a purely decorative mark. */
.plan-features li { position: relative; padding-left: 19px; }
.plan-features li::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 11px; height: 11px;
  background: currentColor;
  color: var(--buy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan-features li { padding-left: 19px; }

/* File inputs cannot be restyled directly; the button inside is themed so the
   receipt upload does not sit in the page as raw browser chrome. */
#pay-proof {
  padding: 9px 12px;
  font-size: 13px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}
#pay-proof::file-selector-button {
  margin-right: 12px;
  padding: 6px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
#pay-proof::file-selector-button:hover { background: var(--surface-3); border-color: var(--gold); }

#trial-cta, #expired-cta { border-color: var(--border-gold); }
#trial-cta .btn, #expired-cta .btn { margin-top: 14px; }

@media (max-width: 620px) {
  .plans-grid, .plan-tile { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Where to pay
   --------------------------------------------------------------------------
   The account number is the one thing on this page a customer will retype into
   a wallet app, so it is set in the mono face at a size that survives being
   read off a phone, and given a copy button rather than asking them to select
   text inside a card.
   ========================================================================== */

.pay-methods { display: grid; gap: 12px; margin: 16px 0 20px; }

.pay-method {
  padding: 16px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.pay-method-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.pay-method-head strong { font-size: 14px; font-weight: 700; }

.pay-rows { display: grid; gap: 8px; }
.pay-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.pay-row .label { margin: 0; }
.pay-number {
  font-family: var(--mono);
  font-size: 15px; font-weight: 600;
  color: var(--gold-bright);
  word-break: break-all;
}
.pay-copy {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 11.5px; font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--t), border-color var(--t);
}
.pay-copy:hover { color: var(--gold); border-color: var(--gold); }
/* The operator writes these as numbered steps, one per line. HTML would
   collapse those breaks into a single run-on paragraph. */
.pay-note {
  margin-top: 10px;
  font-size: 12.5px; line-height: 1.6;
  color: var(--text-3);
  white-space: pre-line;
}
.pay-qr {
  margin-top: 12px;
  max-width: 190px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

/* ==========================================================================
   Access gate
   --------------------------------------------------------------------------
   The screen a customer sees between registering and being approved. It covers
   the panel rather than sitting beside it: there is nothing behind it they can
   use yet, and a half-usable dashboard invites them to hunt for the feature
   that is missing instead of finishing the one step that matters.
   ========================================================================== */

.access-card { max-width: 560px; }

.access-head { margin-bottom: 20px; }
.access-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  background: var(--gold-wash);
  border: 1px solid var(--border-gold);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold-bright);
}
.access-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.access-head .hint { margin-top: 7px; }

.access-steps { display: grid; gap: 8px; margin-bottom: 16px; }
.access-step {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
}
.access-step.done { border-color: rgba(34, 197, 94, 0.3); background: var(--buy-wash); }

.access-wait {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: var(--r);
  background: var(--warn-wash);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.access-wait .spinner { margin-top: 3px; color: var(--warn); }
.access-wait strong { display: block; font-size: 14px; margin-bottom: 3px; }

.access-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.access-actions .btn { flex: 1; min-width: 150px; }

.access-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
}
.access-foot a { color: var(--gold); font-weight: 600; }

/* The plan cards inside the modal are narrower than on the plans tab. */
.access-card .plans-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.access-card .plan-tile.chosen { border-color: var(--gold); background: var(--gold-wash); }
