/* =====================================================================
   VU Prime - Buy / renew and Status pages (v2.7.8)
   Built on the site tokens in style.css; nothing here overrides them.
   ===================================================================== */
.bill-wrap { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
/* author display rules would otherwise beat the hidden attribute */
.bill-wrap[hidden], .bill-step[hidden], .bill-wrap [hidden] { display: none !important; }

.bill-step {
  background: var(--grad-surface, #fff); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 30px; box-shadow: var(--hl-top), var(--elev-2);
}
.bill-step-head { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.bill-num {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, var(--forest-bright), var(--forest-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 10px -4px rgba(18,51,38,.5);
}
.bill-step-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.bill-step-head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* ---- plan choice ---- */
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan-opt { position: relative; display: block; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt-body {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 18px 20px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.plan-opt:hover .plan-opt-body { border-color: #B9C4BC; }
.plan-opt input:checked + .plan-opt-body { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(31,77,58,.12); }
.plan-opt input:focus-visible + .plan-opt-body { outline: 2px solid var(--forest); outline-offset: 2px; }
.plan-opt-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.plan-opt-price { font-family: var(--font-display); font-size: 30px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-opt-price small { font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 500; }
.plan-opt-note { font-size: 13px; color: var(--ink-soft); }
.plan-opt-save { align-self: flex-start; margin-top: 6px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 999px; color: #6E5226; background: linear-gradient(180deg, #FAF3E4, #F1E4C8); border: 1px solid rgba(176,141,87,.3); }

/* ---- where to pay ---- */
.amount-due {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: var(--radius); margin: 0 0 14px;
  background: linear-gradient(180deg, #F3F7F4, #E9F1EC); border: 1px solid rgba(31,77,58,.16);
}
.amount-due span { font-size: 14px; color: var(--ink-soft); }
.amount-due strong { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--forest); font-variant-numeric: tabular-nums; }
.pay-list { display: flex; flex-direction: column; gap: 10px; }
.pay-acc {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px;
  padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
}
.pay-acc-method { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.pay-acc-num { grid-column: 1; font-family: var(--font-mono); font-size: 17px; color: var(--ink); word-break: break-all; }
.pay-acc-title { grid-column: 1; font-size: 13.5px; color: var(--muted); }
.pay-copy {
  grid-column: 2; grid-row: 1 / span 3; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--forest);
  transition: border-color .2s, background .2s;
}
.pay-copy:hover { border-color: var(--forest); background: #F3F7F4; }
.pay-copy:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.pay-copy.ok { color: var(--success); border-color: rgba(31,122,77,.4); }
.pay-empty { font-size: 14px; color: var(--muted); margin: 0; }

/* ---- form ---- */
.bill-form .form-row { display: flex; gap: 14px; }
.bill-form .form-group { flex: 1; margin-bottom: 16px; min-width: 0; }
.bill-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.bill-form label .opt { font-weight: 500; color: var(--muted); }
.bill-form input[type="text"], .bill-form input[type="email"], .bill-form input[type="tel"], .bill-form select, .bill-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; color: var(--ink); background: #fff; outline: none;
  box-shadow: inset 0 1px 2px rgba(20,23,26,.05); transition: border-color .15s ease, box-shadow .15s ease;
}
.bill-form textarea { resize: vertical; min-height: 70px; }
.bill-form input:focus, .bill-form select:focus, .bill-form textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3.5px rgba(31,77,58,.13); }
.bill-form input::placeholder, .bill-form textarea::placeholder { color: #9BA39A; }
.bill-form .hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.bill-form .btn { width: 100%; justify-content: center; }

.drop {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer;
  border: 1.5px dashed #B9C4BC; border-radius: var(--radius); background: #FAFBF9; transition: border-color .2s, background .2s;
}
.drop:hover, .drop.is-over { border-color: var(--forest); background: #F3F7F4; }
.drop:focus-within { outline: 2px solid var(--forest); outline-offset: 2px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: #EAF1EC; color: var(--forest); }
.drop-ic svg { width: 22px; height: 22px; }
.drop-text strong { display: block; font-size: 14.5px; color: var(--ink); }
.drop-text span { font-size: 13px; color: var(--muted); }
.drop-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-left: auto; }
.drop.has-file { border-style: solid; border-color: rgba(31,77,58,.4); background: #F6FAF7; }

.bill-msg { margin: 12px 0 0; font-size: 14px; line-height: 1.5; min-height: 1em; }
.bill-msg.bad { color: #8C3A30; }
.bill-msg.good { color: var(--success); }

.bill-done { text-align: center; padding: 40px 30px; }
.bill-done .bill-seal { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #E9F4EE, #D6E9DD); color: var(--forest); border: 1px solid rgba(31,77,58,.18); }
.bill-done .bill-seal svg { width: 30px; height: 30px; }
.bill-done h2 { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin: 0 0 8px; }
.bill-done p { color: var(--ink-soft); margin: 0 auto 8px; max-width: 52ch; }
.bill-ref { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.bill-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.bill-aside { font-size: 14px; color: var(--muted); text-align: center; margin: 4px 0 0; }
.bill-aside a { color: var(--forest); font-weight: 600; }

/* ---- status ---- */
.st-lookup .form-row { align-items: flex-end; }
.st-lookup .btn { width: auto; min-width: 150px; margin-bottom: 16px; }
.st-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.st-name { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin: 0; letter-spacing: -.01em; }
.st-campus { display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 8px; background: #EEF2EF; color: var(--forest); border: 1px solid rgba(31,77,58,.14); }
.st-state { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; }
.st-state.ok { color: #1F5C3C; background: #E6F2EB; border-color: rgba(44,136,88,.22); }
.st-state.warn { color: #7A5A22; background: #FAF1DE; border-color: rgba(176,141,87,.3); }
.st-state.bad { color: #8C3A30; background: #F8E7E3; border-color: rgba(179,66,58,.22); }
.st-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.st-tile { background: #fff; padding: 14px 16px; }
.st-tile .k { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.st-tile .v { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0; font-variant-numeric: tabular-nums; }
.st-notice { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.55; margin: 0 0 16px;
  background: #F3F7F4; border: 1px solid rgba(31,77,58,.14); border-left: 3px solid var(--forest); color: var(--ink); }
.st-notice.warn { background: #FBF5E8; border-color: rgba(176,141,87,.28); border-left-color: var(--brass); }
.st-notice.bad { background: #F9EDEB; border-color: #E8C9C3; border-left-color: var(--error); }
.st-hist-title { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.st-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-hist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 10px; font-size: 14px; background: #fff; }
.st-hist li small { display: block; color: var(--muted); font-size: 12.5px; }
.st-hist .amt { font-variant-numeric: tabular-nums; font-weight: 600; }

@media (max-width: 640px) {
  .bill-step { padding: 22px 18px; }
  .plan-pick { grid-template-columns: 1fr; }
  .bill-form .form-row { flex-direction: column; gap: 0; }
  .st-lookup .btn { width: 100%; }
  .st-tiles { grid-template-columns: 1fr 1fr; }
  .pay-acc { grid-template-columns: 1fr; }
  .pay-copy { grid-column: 1; grid-row: auto; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-opt-body, .drop, .pay-copy { transition: none; }
}
