/* ============================================================
   Georgia Gate & Fence - Customer Portal & Payments
   ============================================================ */

:root {
  --red: var(--bronze);
  --red-dark: var(--bronze-dark);
  --red-soft: var(--bronze-soft);
  --muted-bg: var(--cream);
  /* Portal uses readable sans for headings/labels (not Playfair) */
  --font-head: var(--font-body);
}

.pt-body {
  --font-head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.btn--primary {
  background: var(--bronze-dark); color: #fff;
  box-shadow: 0 8px 22px rgba(138, 99, 54, .28);
}
.btn--primary:hover { background: #694a26; }
.btn--outline {
  background: transparent; color: var(--ink); border-color: var(--gray-300);
}
.btn--outline:hover { border-color: var(--bronze); color: var(--bronze-dark); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 14px 22px; font-size: 15px; }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-dark);
}

.pt-body { background: var(--muted-bg); min-height: 100vh; }
.pt-header .brand__logo { height: 48px; width: auto; flex: none; }
.pt-header__nav-link.is-active { color: var(--bronze-dark); background: var(--bronze-soft); }
.pt-header__nav-link:hover { color: var(--bronze-dark); }
.pt-profile__btn:hover, .pt-profile__btn[aria-expanded="true"] {
  box-shadow: 0 0 0 3px rgba(168, 125, 79, .2);
}
.pt-profile__menu a:hover, .pt-profile__menu button:hover { color: var(--bronze-dark); }
.pt-header__avatar { background: var(--bronze-soft); color: var(--bronze-dark); }
.pt-bottom-nav__link.is-active { color: var(--bronze-dark); }

/* ---------- Shared portal header ---------- */
.pt-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.pt-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.pt-header .brand__logo { height: 52px; width: auto; flex: none; }
.pt-brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none;
}
.pt-brand__label {
  font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .02em;
  color: var(--ink); line-height: 1.2; white-space: nowrap;
}
.pt-header__nav {
  display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 4px;
}
.pt-header__nav-link {
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--gray-500);
  padding: 8px 12px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.pt-header__nav-link:hover { color: var(--red); background: var(--gray-100); }
.pt-header__nav-link.is-active { color: var(--red); background: var(--red-soft); }
.pt-header__right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; flex: none; }

/* Profile dropdown */
.pt-profile { position: relative; }
.pt-profile__btn {
  display: flex; align-items: center; justify-content: center;
  border: 0; background: none; cursor: pointer; padding: 4px; border-radius: 50%;
  transition: box-shadow .15s ease;
}
.pt-profile__btn:hover, .pt-profile__btn[aria-expanded="true"] {
  box-shadow: 0 0 0 3px rgba(225,27,34,.15);
}
.pt-profile__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 110;
}
.pt-profile__menu[hidden] { display: none; }
.pt-profile__menu-head {
  padding: 8px 12px 10px; font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--ink);
  border-bottom: 1px solid var(--gray-100); margin-bottom: 4px;
}
.pt-profile__menu a, .pt-profile__menu button, .pt-profile__menu span {
  display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--gray-700);
  padding: 10px 12px; border-radius: 8px; transition: background .15s ease, color .15s ease;
  text-decoration: none;
}
.pt-profile__menu a:hover, .pt-profile__menu button:hover { background: var(--gray-100); color: var(--red); }
.pt-profile__menu span.is-current { color: var(--gray-500); cursor: default; background: var(--gray-100); }
.pt-profile__menu hr { border: 0; border-top: 1px solid var(--gray-100); margin: 4px 0; }

.pt-header__avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--red-soft); color: var(--red);
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.pt-header__link {
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--gray-500);
  transition: color .15s ease;
}
.pt-header__link:hover { color: var(--red); }
.pt-main { padding: 36px 0 72px; }
.pt-shell { max-width: 1080px; }
.pt-shell--narrow { max-width: 640px; }

.pt-page-head { margin-bottom: 28px; }
.pt-page-head h1 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; margin: 8px 0 10px; }
.pt-page-head p { color: var(--gray-500); font-size: 16px; margin: 0; max-width: 58ch; }

/* ---------- Cards ---------- */
.pt-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px 26px;
}
.pt-card + .pt-card { margin-top: 20px; }
.pt-card__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.pt-card__title { font-family: var(--font-head); font-size: 18px; font-weight: 800; margin: 0; }
.pt-card__sub { font-size: 14px; color: var(--gray-500); margin: 4px 0 0; }

/* ---------- Login ---------- */
.pt-login {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; padding: 40px 0 64px;
}
.pt-login__card {
  max-width: 440px; margin: 0 auto; width: 100%;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 36px 34px 32px;
}
.pt-login__logo { display: block; height: 52px; width: auto; margin: 0 auto 24px; }
.pt-login__title { font-size: 26px; font-weight: 800; text-align: center; margin: 0 0 8px; }
.pt-login__sub { text-align: center; color: var(--gray-500); font-size: 15px; margin: 0 0 28px; }
.pt-field { margin-bottom: 16px; }
.pt-field[hidden] { display: none !important; }
.pt-field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--gray-700); margin-bottom: 7px; }
.pt-field input {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--gray-100); border: 1.5px solid var(--gray-200); border-radius: 10px;
  padding: 13px 15px; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.pt-field input:focus {
  outline: none; border-color: var(--red); background: #fff;
  box-shadow: 0 0 0 3px rgba(225,27,34,.12);
}
.pt-field input[readonly], .pt-field textarea[readonly] {
  background: var(--gray-100); color: var(--gray-700); cursor: default;
}
.pt-field textarea, .pt-field select {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--gray-100); border: 1.5px solid var(--gray-200); border-radius: 10px;
  padding: 13px 15px; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.pt-field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.pt-field select { cursor: pointer; }
.pt-field textarea:focus, .pt-field select:focus {
  outline: none; border-color: var(--red); background: #fff;
  box-shadow: 0 0 0 3px rgba(225,27,34,.12);
}
.pt-form-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-200); }
.pt-form-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.pt-form-section__title { font-family: var(--font-head); font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.pt-form-section__sub { font-size: 14px; color: var(--gray-500); margin: 0 0 18px; }
.pt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pt-chip { position: relative; cursor: pointer; }
.pt-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.pt-chip span {
  display: inline-flex; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--gray-700); background: var(--gray-100); border: 1.5px solid var(--gray-200);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.pt-chip:hover span { border-color: var(--red); color: var(--red-dark); }
.pt-chip:has(input:checked) span { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.pt-prefilled { background: var(--gray-100); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.pt-prefilled__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 6px; }
.pt-prefilled__value { font-size: 15px; color: var(--ink); line-height: 1.5; }
.pt-prefilled__value strong { font-family: var(--font-head); }
.pt-payment-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px 20px;
}
.pt-payment-card__info { display: flex; align-items: center; gap: 14px; }
.pt-payment-card__icon {
  width: 44px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #1a1d22, #3d4450);
  color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.pt-payment-card__brand { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.pt-payment-card__meta { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.pt-stat--link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.pt-stat--link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pt-save-note { font-size: 13.5px; color: #166534; background: #dcfce7; border-radius: 8px; padding: 10px 14px; margin-top: 14px; }
.pt-save-note[hidden] { display: none; }
.pt-login__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.pt-login__divider {
  display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--gray-500); font-size: 13px;
}
.pt-login__divider::before, .pt-login__divider::after {
  content: ""; flex: 1; height: 1px; background: var(--gray-200);
}
.pt-login__demo {
  text-align: center; font-size: 13.5px; color: var(--gray-500); margin-top: 20px; line-height: 1.5;
}
.pt-login__demo strong { color: var(--ink); }
.pt-login__footer { text-align: center; margin-top: 22px; font-size: 14px; color: var(--gray-500); }
.pt-login__footer a { color: var(--red); font-weight: 600; }

/* ---------- Dashboard grid ---------- */
.pt-dash__top {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: flex-start; margin-bottom: 24px;
}
.pt-welcome h1 { font-size: clamp(24px, 3.2vw, 30px); font-weight: 800; margin: 0 0 6px; }
.pt-welcome p { color: var(--gray-500); margin: 0; font-size: 15px; }

.pt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.pt-stats--4 { grid-template-columns: repeat(4, 1fr); }
.pt-dash__sync {
  margin: 0; font-size: 12.5px; color: var(--gray-500); text-align: right;
  font-family: var(--font-head); font-weight: 600;
}
.pt-stat {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.pt-stat__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 6px; }
.pt-stat__value { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--ink); }
.pt-stat__value--warn { color: var(--red); }
.pt-stat__hint { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.pt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

.pt-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.pt-grid__full { grid-column: 1 / -1; }
#service-history { scroll-margin-top: 100px; }

/* ---------- Badges ---------- */
.pt-badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.pt-badge--open { background: #fef3c7; color: #92400e; }
.pt-badge--paid { background: #dcfce7; color: #166534; }
.pt-badge--active { background: var(--red-soft); color: var(--red-dark); }
.pt-badge--scheduled { background: #dbeafe; color: #1e40af; }

.pt-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: 14.5px; color: var(--ink);
}
.pt-callout--info {
  background: #f0f7ff; border-color: #bfdbfe; color: #1e3a5f;
}
.pt-callout--info strong { color: #0f2744; }
.pt-link-btn {
  border: 0; background: none; cursor: pointer; padding: 0;
}
.pt-row--focus td { background: #fff8e8; }
.pt-empty { margin: 0; color: var(--gray-500); font-size: 14.5px; }
.pt-steps-list {
  margin: 0 0 8px;
  padding-left: 1.25rem;
  color: var(--gray-700);
  line-height: 1.55;
  font-size: 14.5px;
}
.pt-steps-list li + li { margin-top: 10px; }
.pt-safety-card { border-left: 3px solid var(--red); }

.pt-bullet-list {
  margin: 0; padding-left: 1.2em; color: var(--gray-700); font-size: 14.5px; line-height: 1.65;
}
.pt-bullet-list li + li { margin-top: 6px; }
.pt-numbered {
  margin: 0; padding-left: 1.2em; color: var(--gray-700); font-size: 14.5px; line-height: 1.65;
}
.pt-numbered li + li { margin-top: 8px; }
.pt-quote-lines {
  margin: 10px 0 0; padding-left: 1.1em; font-size: 13.5px; color: var(--gray-500); line-height: 1.5;
}
.pt-quote-lines em { font-style: normal; color: var(--gray-500); opacity: .85; }
.pt-req-list { display: flex; flex-direction: column; gap: 10px; }
.pt-req-item, .pt-prop-item {
  padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--gray-100);
  font-size: 14.5px;
}
.pt-prop-list { display: flex; flex-direction: column; gap: 10px; }
.pt-handoff {
  background: var(--muted-bg); border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 8px;
}
.pt-handoff__row {
  display: flex; justify-content: space-between; gap: 12px; padding: 6px 0;
  font-size: 14px; color: var(--gray-700);
}
.pt-handoff__row strong { font-family: var(--font-head); color: var(--ink); text-align: right; }
.pt-handoff__url {
  margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #fff;
  border: 1px dashed var(--gray-200); font-size: 12.5px; color: var(--gray-500);
  word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.pt-handoff__note { margin: 12px 0 0; font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.pt-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  max-width: min(520px, calc(100vw - 32px)); padding: 14px 18px; border-radius: 12px;
  background: var(--charcoal); color: #fff; font-size: 14px; line-height: 1.45;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 300;
}
.pt-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.pt-shell--api { max-width: 860px; }
.pt-api-toc__list {
  margin: 12px 0 0; padding-left: 1.2em; font-size: 14.5px; line-height: 1.7;
}
.pt-api-toc__list a { color: var(--red); font-weight: 600; }
.pt-api-p { font-size: 15px; color: var(--gray-700); line-height: 1.65; margin: 0 0 14px; }
.pt-api-p:last-child { margin-bottom: 0; }
.pt-api-p code, .pt-table--api code {
  font-size: 13px; background: var(--gray-100); padding: 2px 6px; border-radius: 4px;
}
.pt-api-flow {
  margin: 0 0 16px; padding: 18px 20px; border-radius: 12px;
  background: var(--charcoal); color: rgba(255,255,255,.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.55; overflow-x: auto;
}
.pt-api-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pt-table--api td:nth-child(2) { white-space: nowrap; }

/* ---------- Invoice table ---------- */
.pt-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pt-table th {
  text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500);
  padding: 0 12px 12px 0; border-bottom: 1px solid var(--gray-200);
}
.pt-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.pt-table tr:last-child td { border-bottom: 0; }
.pt-table__amount { font-family: var(--font-head); font-weight: 800; white-space: nowrap; }
.pt-table__link {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--red);
  white-space: nowrap;
}
.pt-table__link:hover { color: var(--red-dark); }

/* ---------- Service history ---------- */
.pt-history { list-style: none; margin: 0; padding: 0; }
.pt-history li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.pt-history li:last-child { border-bottom: 0; padding-bottom: 0; }
.pt-history__icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--gray-100); color: var(--red);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.pt-history__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pt-history__title { font-family: var(--font-head); font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.pt-history__meta { font-size: 13px; color: var(--gray-500); }
.pt-history__date { font-size: 13px; color: var(--gray-500); white-space: nowrap; }

/* ---------- Maintenance card ---------- */
.pt-maint {
  background: linear-gradient(145deg, var(--bronze-dark) 0%, #694a26 100%);
  color: #fff; border: 0; position: relative; overflow: hidden;
}
.pt-maint::before {
  display: none;
}
.pt-maint .pt-card__title { color: #fff; }
.pt-maint .pt-card__sub { color: rgba(255,255,255,.7); }
.pt-maint__vitals {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 20px;
}
.pt-maint__vital {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 12px 14px;
}
.pt-maint__vital span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.pt-maint__vital strong { font-family: var(--font-head); font-size: 14px; font-weight: 700; }

/* ---------- Payment flow ---------- */
.pt-pay-steps {
  display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap;
}
.pt-pay-step {
  flex: 1; min-width: 100px; text-align: center; padding: 10px 12px; border-radius: 10px;
  background: var(--gray-100); font-family: var(--font-head); font-size: 12px; font-weight: 700;
  color: var(--gray-500); border: 1.5px solid transparent;
}
.pt-pay-step.is-active { background: var(--red-soft); color: var(--red-dark); border-color: rgba(225,27,34,.2); }
.pt-pay-step.is-done { background: #dcfce7; color: #166534; }

.pt-invoice-summary {
  background: var(--gray-100); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px;
}
.pt-invoice-summary__row {
  display: flex; justify-content: space-between; gap: 16px; padding: 8px 0;
  font-size: 14.5px; color: var(--gray-700);
}
.pt-invoice-summary__row--total {
  border-top: 1px solid var(--gray-200); margin-top: 8px; padding-top: 14px;
  font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--ink);
}
.pt-invoice-summary__row--total span:last-child { color: var(--red); }

.pt-pay-form .pt-field { margin-bottom: 14px; }
.pt-pay-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-pay-note { font-size: 12.5px; color: var(--gray-500); margin-top: 14px; line-height: 1.5; }
.pt-pay-note svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; fill: none; stroke: currentColor; stroke-width: 2; }

.pt-success { text-align: center; padding: 32px 12px 16px; }
.pt-success__icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
  background: #dcfce7; color: #16a34a;
  display: flex; align-items: center; justify-content: center;
}
.pt-success__icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pt-success h2 { font-size: 26px; font-weight: 800; margin: 0 0 10px; }
.pt-success p { color: var(--gray-500); margin: 0 0 24px; font-size: 16px; }
.pt-success__ref {
  display: inline-block; background: var(--gray-100); border-radius: 10px; padding: 12px 20px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; margin-bottom: 24px;
}

.pt-alert {
  padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px;
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
}
.pt-alert[hidden] { display: none; }

.pt-guest-banner {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 22px; font-size: 14px; color: var(--gray-700);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.pt-guest-banner a { font-family: var(--font-head); font-weight: 700; color: var(--red); white-space: nowrap; }

/* ---------- Support section ---------- */
.pt-support {
  margin-top: 32px; padding-top: 8px;
  scroll-margin-top: 96px;
}
.pt-support__card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.pt-support__head {
  padding: 28px 28px 22px; border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(180deg, var(--muted-bg) 0%, #fff 100%);
}
.pt-support__head h2 { font-size: 22px; font-weight: 800; margin: 6px 0 8px; }
.pt-support__head p { margin: 0; color: var(--gray-500); font-size: 15px; }
.pt-support__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.pt-support__item {
  display: flex; flex-direction: column; gap: 6px; padding: 24px 26px;
  border-right: 1px solid var(--gray-100); text-decoration: none; color: inherit;
  transition: background .18s ease;
}
.pt-support__item:last-child { border-right: 0; }
.pt-support__item:hover { background: var(--gray-100); }
.pt-support__icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.pt-support__icon svg { width: 20px; height: 20px; fill: currentColor; }
.pt-support__label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500);
}
.pt-support__value { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.pt-support__hint { font-size: 13px; color: var(--gray-500); }
.pt-support__hours {
  padding: 16px 26px; background: var(--muted-bg); border-top: 1px solid var(--gray-200);
  font-size: 13.5px; color: var(--gray-500); text-align: center;
}
.pt-support__hours strong { color: var(--ink); font-family: var(--font-head); }

.pt-checkout-note {
  font-size: 13.5px; color: var(--gray-500); margin: 0 0 18px; line-height: 1.55;
  padding: 14px 16px; background: var(--gray-100); border-radius: 10px;
}

/* ---------- Documents ---------- */
.pt-docs-banner {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; margin-bottom: 20px;
  background: #fff8e8; border: 1px solid #f0d48a; border-radius: var(--radius);
  font-size: 14.5px; color: var(--ink);
}
.pt-docs-banner span { color: var(--gray-500); font-size: 13.5px; line-height: 1.5; }
.pt-doc-list { display: flex; flex-direction: column; gap: 14px; }
.pt-doc {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start;
  padding: 16px; border: 1px solid var(--gray-200); border-radius: 12px; background: #fff;
}
.pt-doc__icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; flex: none;
}
.pt-doc__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pt-doc__icon--sheet { background: var(--gray-100); color: var(--ink); }
.pt-doc__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.pt-doc__top h3 { margin: 0; font-family: var(--font-head); font-size: 16px; font-weight: 800; }
.pt-doc__body p { margin: 0; font-size: 14px; color: var(--gray-500); line-height: 1.5; }
.pt-doc__meta { margin-top: 8px; font-size: 12.5px; color: var(--gray-500); }
.pt-doc__actions { display: flex; align-items: center; }
.pt-docs-footnote {
  margin: 18px 0 0; font-size: 13px; color: var(--gray-500); line-height: 1.55;
}

/* ---------- Modal ---------- */
.pt-modal[hidden] { display: none; }
.pt-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
}
.pt-modal__backdrop {
  position: absolute; inset: 0; background: rgba(15, 18, 24, .55);
}
.pt-modal__dialog {
  position: relative; width: min(680px, 100%); max-height: min(88vh, 900px);
  overflow: auto; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 28px 28px 24px;
}
.pt-modal__close {
  position: absolute; top: 12px; right: 14px; border: 0; background: none;
  font-size: 28px; line-height: 1; color: var(--gray-500); cursor: pointer;
}
.pt-modal__close:hover { color: var(--ink); }
.pt-modal .eyebrow { display: inline-block; margin-bottom: 8px; }
.pt-modal h2 { margin: 0 0 8px; font-family: var(--font-head); font-size: 24px; font-weight: 800; }
.pt-modal__lede { margin: 0 0 18px; color: var(--gray-500); font-size: 14.5px; line-height: 1.5; }
.pt-doc-preview {
  padding: 16px 18px; background: var(--muted-bg); border: 1px solid var(--gray-200);
  border-radius: 12px; font-size: 14px; line-height: 1.65; color: var(--ink);
  max-height: 280px; overflow: auto; margin-bottom: 18px;
}
.pt-sign-form .pt-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--gray-500); margin: 4px 0 16px; line-height: 1.45;
}
.pt-sign-form .pt-check input { margin-top: 3px; }
.pt-modal__actions {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 8px;
}
.pt-cutsheet__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px;
}
.pt-cutsheet__grid div {
  padding: 12px 14px; background: var(--muted-bg); border-radius: 10px;
}
.pt-cutsheet__grid span {
  display: block; font-size: 12px; color: var(--gray-500); margin-bottom: 4px;
}
.pt-cutsheet__grid strong { font-family: var(--font-head); font-size: 14.5px; }
.pt-cutsheet > p { margin: 0 0 16px; color: var(--gray-500); font-size: 14.5px; line-height: 1.55; }
.pt-cutsheet__mock {
  position: relative; height: 160px; border-radius: 12px;
  background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
  border: 1px dashed var(--gray-200); overflow: hidden; margin-bottom: 8px;
}
.pt-cutsheet__mock div {
  position: absolute; left: 18px; right: 18px; height: 10px; border-radius: 4px;
  background: rgba(15, 18, 24, .08);
}
.pt-cutsheet__mock div:nth-child(1) { top: 28px; width: 55%; }
.pt-cutsheet__mock div:nth-child(2) { top: 52px; }
.pt-cutsheet__mock div:nth-child(3) { top: 76px; width: 70%; }
.pt-cutsheet__mock span {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  font-size: 12.5px; color: var(--gray-500);
}

/* ---------- UX rework: home hero, shortcuts, bottom nav ---------- */
.pt-welcome { margin-bottom: 22px; }
.pt-welcome h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; margin: 0 0 6px; }
.pt-welcome__addr { margin: 0; color: var(--gray-500); font-size: 15px; }

.pt-hero-appt {
  background: linear-gradient(145deg, var(--bronze-dark) 0%, #694a26 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 28px 28px 26px;
  margin-bottom: 18px; position: relative; overflow: hidden;
}
.pt-hero-appt::before {
  display: none;
}
.pt-hero-appt__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.88); margin-bottom: 12px;
}
.pt-hero-appt__icon {
  width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.14);
  display: inline-flex; align-items: center; justify-content: center;
}
.pt-hero-appt__icon svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.pt-hero-appt h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin: 0 0 8px; position: relative; color: #fff; }
.pt-hero-appt__when { margin: 0 0 4px; font-family: var(--font-head); font-weight: 700; font-size: 16px; position: relative; color: #fff; }
.pt-hero-appt__where { margin: 0 0 20px; color: rgba(255,255,255,.88); font-size: 14.5px; position: relative; }
.pt-hero-appt__actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.pt-hero-appt .btn--outline {
  border-color: rgba(255,255,255,.45); color: #fff; background: transparent;
}
.pt-hero-appt .btn--outline:hover {
  background: #fff; color: var(--ink); border-color: #fff;
}

.pt-status-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 999px;
  padding: 10px 16px; margin-bottom: 18px; font-size: 14px; color: var(--gray-700);
}
.pt-status-pill strong { color: var(--ink); }

.pt-shortcuts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px;
}
.pt-shortcut {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 16px 18px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pt-shortcut:hover {
  border-color: rgba(225,27,34,.35); transform: translateY(-1px); box-shadow: var(--shadow);
}
.pt-shortcut__icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.pt-shortcut__icon--alert { background: #fef3c7; color: #92400e; }
.pt-shortcut__icon svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.pt-shortcut strong { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.pt-shortcut span { font-size: 13px; color: var(--gray-500); }
.pt-shortcut__arrow { color: var(--gray-500); width: 18px; height: 18px; }
.pt-shortcut__arrow svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.pt-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start;
}
.pt-split .pt-card { margin-top: 0; }

.pt-help-jump {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.pt-help-jump a {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--gray-700);
  background: #fff; border: 1px solid var(--gray-200); border-radius: 999px;
  padding: 8px 14px; text-decoration: none; transition: color .15s ease, border-color .15s ease;
}
.pt-help-jump a:hover { color: var(--red); border-color: rgba(225,27,34,.35); }
#contact, #power, #warranties, #appointments, #history, #request {
  scroll-margin-top: 88px;
}

.pt-contact-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.pt-contact-strip__item {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px;
  background: var(--gray-100); border-radius: 12px; text-decoration: none; color: inherit;
  transition: background .15s ease;
}
.pt-contact-strip__item:hover { background: var(--red-soft); }
.pt-contact-strip__icon {
  width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--red);
  display: flex; align-items: center; justify-content: center; flex: none;
  border: 1px solid var(--gray-200);
}
.pt-contact-strip__icon svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.pt-contact-strip__item strong {
  display: block; font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 2px;
}
.pt-contact-strip__item span { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink); word-break: break-word; }
.pt-hours { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--gray-500); }

.pt-warranty-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.pt-warranty {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px;
  background: var(--gray-100); border-radius: 12px;
}
.pt-warranty__icon {
  width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--red);
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200);
}
.pt-warranty__icon svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.pt-warranty h3 { font-family: var(--font-head); font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.pt-warranty p { margin: 0 0 8px; font-size: 14px; color: var(--gray-700); line-height: 1.5; }
.pt-warranty__meta { font-size: 13px !important; color: var(--gray-500) !important; }
.pt-warranty__tags {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px;
}
.pt-warranty__tags li {
  font-size: 12px; font-weight: 600; color: var(--gray-700);
  background: #fff; border: 1px solid var(--gray-200); border-radius: 999px; padding: 4px 10px;
}

.pt-card--attention { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.pt-card--center { text-align: center; padding: 36px 28px; }
.pt-auth-ok { margin: 0 0 16px; font-size: 14.5px; color: #166534; background: #dcfce7; padding: 12px 14px; border-radius: 10px; }
.pt-auth-need { margin: 0 0 16px; font-size: 14.5px; color: #92400e; background: #fef3c7; padding: 12px 14px; border-radius: 10px; }
.pt-optional { font-weight: 500; color: var(--gray-500); font-size: 13px; }
.pt-prefilled__edit { margin: 10px 0 0; font-size: 13px; }
.pt-prefilled__edit a { color: var(--red); font-weight: 600; }
.pt-bullet-list--on-dark { color: rgba(255,255,255,.85); margin-top: 4px; }
.pt-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--gray-700); line-height: 1.45; cursor: pointer;
}
.pt-check input { margin-top: 3px; }

.pt-page-head { margin-bottom: 22px; }
.pt-page-head .eyebrow { display: none; }

.pt-bottom-nav { display: none; }
.has-bottom-nav .pt-main { padding-bottom: 96px; }

.pt-header__nav { display: flex; }

@media (max-width: 900px) {
  .pt-shortcuts { grid-template-columns: 1fr; }
  .pt-split { grid-template-columns: 1fr; }
  .pt-contact-strip { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .pt-header__nav { display: none; }
  .pt-bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: #fff; border-top: 1px solid var(--gray-200);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(15, 18, 24, .06);
  }
  .pt-bottom-nav__link {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-decoration: none; color: var(--gray-500); font-family: var(--font-head);
    font-weight: 700; font-size: 11px; padding: 6px 4px; border-radius: 10px;
  }
  .pt-bottom-nav__link.is-active { color: var(--red); background: var(--red-soft); }
  .pt-bottom-nav__icon {
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  }
  .pt-bottom-nav__icon svg {
    width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pt-grid { grid-template-columns: 1fr; }
  .pt-stats { grid-template-columns: 1fr; }
  .pt-stats--4 { grid-template-columns: 1fr 1fr; }
  .pt-dash__top { grid-template-columns: 1fr; }
  .pt-dash__sync { text-align: left; }
  .pt-doc { grid-template-columns: auto 1fr; }
  .pt-doc__actions { grid-column: 2; justify-content: flex-start; }
  .pt-cutsheet__grid { grid-template-columns: 1fr; }
  .pt-table thead { display: none; }
  .pt-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
  .pt-table td { display: flex; justify-content: space-between; padding: 4px 0; border: 0; }
  .pt-table td::before {
    content: attr(data-label); font-family: var(--font-head); font-weight: 700; font-size: 12px;
    color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em;
  }
  .pt-table td:last-child { justify-content: flex-end; padding-top: 10px; }
  .pt-table td:last-child::before { display: none; }
}

@media (max-width: 640px) {
  .pt-login__card { padding: 28px 22px 24px; }
  .pt-pay-form__row { grid-template-columns: 1fr; }
  .pt-header__inner { flex-wrap: wrap; padding: 10px 0; min-height: 0; }
  .pt-brand__label { font-size: 11px; max-width: 72px; white-space: normal; }
  .pt-form-row { grid-template-columns: 1fr; }
  .pt-maint__vitals { grid-template-columns: 1fr; }
  .pt-stats--4 { grid-template-columns: 1fr; }
  .pt-support__grid { grid-template-columns: 1fr; }
  .pt-support__item { border-right: 0; border-bottom: 1px solid var(--gray-100); }
  .pt-support__item:last-child { border-bottom: 0; }
  .pt-hero-appt { padding: 22px 20px; }
}
