/* =====================================================================
   PROTIDEFX TRADING PAGES  (docs/PAGES_CUSTOMIZATION.md)
   Trading Accounts · Platforms · Markets · Trading Holidays

   Loaded after assets/custom/home/home.css, which provides the shared
   building blocks (.ph-btn, .ph-eyebrow, .ph-h2, .ph-lead, .ph-section,
   .ph-mcard, device frames, illustrations, scroll reveal).
   Colors: ONLY the shared tokens (assets/custom/theme/tokens.css).
   Tablet and mobile (<1100px): text and buttons are centered.
   ===================================================================== */

.pfx-page { --pg-radius: 20px; }

/* ------------------------------ Shared type ------------------------------ */
.pg-h1 { font-family: var(--ph-display); font-weight: 800; color: var(--ph-strong); font-size: clamp(2.4rem, 4.8vw, 4.1rem); line-height: 1.04; letter-spacing: -0.05em; margin-bottom: 24px; }
.pg-h3 { font-family: var(--ph-display); font-weight: 800; color: var(--ph-strong); font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.035em; }
.pg-head { max-width: 900px; margin-bottom: 48px; }
.pg-head .ph-lead { max-width: 720px; }
.pg-head .ph-h2 { margin-bottom: 14px; }
.pg-head--flush { margin-bottom: 0; }
.pg-note { margin-top: 22px !important; font-size: 13px; color: var(--ph-muted); }
.pg-note--below { margin-top: 18px !important; }
.pg-note a { color: var(--ph-primary); text-decoration: underline; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pg-iconbox { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 13px; background: hsl(var(--pfx-primary) / 0.1); color: var(--ph-primary); }
.pg-iconbox .ph-i { width: 22px; height: 22px; }

/* ---------------------------------- Hero ---------------------------------- */
.pg-hero { position: relative; overflow: hidden; padding: 92px 0 96px;
  background:
    radial-gradient(40% 60% at 85% 40%, hsl(var(--pfx-primary) / 0.13), transparent 72%),
    linear-gradient(180deg, hsl(var(--pfx-primary) / 0.035), hsl(var(--pfx-primary) / 0.06));
}
.pg-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pg-hero .ph-lead { max-width: 560px; }

/* --------------------------------- Tables --------------------------------- */
.pg-table { overflow: hidden; border-radius: var(--pg-radius); background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border) / 0.9); }
.pg-table__title { padding: 20px 24px; font-weight: 700; font-size: 17px; color: var(--ph-strong); background: hsl(var(--pfx-primary) / 0.03); border-bottom: 1px solid hsl(var(--pfx-border) / 0.9); }
.pg-table__scroll { overflow-x: auto; }
.pg-table table { width: 100%; border-collapse: collapse; }
.pg-table th, .pg-table td { padding: 18px 24px; text-align: left; vertical-align: middle; font-size: 14.5px; }
.pg-table thead th { padding-top: 16px; padding-bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ph-muted); background: hsl(var(--pfx-primary) / 0.025); }
.pg-table tbody tr { border-top: 1px solid hsl(var(--pfx-border) / 0.8); }
.pg-table tbody th { font-weight: 700; color: var(--ph-strong); }
.pg-table tbody td { color: var(--ph-muted); }
.pg-confirm { margin-top: 44px; }
.pg-confirm thead th:first-child { width: 28%; }

/* ---------------------------- Info cards (3) ---------------------------- */
.pg-info__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pg-infocard { padding: 30px; border-radius: var(--pg-radius); background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border) / 0.9); }
.pg-infocard__title { margin: 22px 0 8px; font-family: var(--ph-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ph-strong); }
.pg-infocard__text { font-size: 15px; line-height: 1.7; color: var(--ph-muted); }

/* ---------------------------------- CTA ---------------------------------- */
.pg-cta-wrap { padding-top: 90px; padding-bottom: 100px; }
.pg-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 50px; border-radius: 30px; background: linear-gradient(135deg, hsl(var(--pfx-primary) / 0.09), hsl(var(--pfx-primary) / 0.04)); border: 1px solid hsl(var(--pfx-primary) / 0.12); }
.pg-cta .ph-eyebrow { margin-bottom: 12px; }
.pg-cta .pg-h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.pg-cta .pg-actions { margin-top: 0; flex: none; }

/* ============================ TRADING ACCOUNTS ============================ */
/* Account card stack: back (silver) → front (platinum). Each card keeps its
   label and title in the top band, so the card in front never covers them. */
.pg-tiercards { position: relative; width: 100%; max-width: 470px; height: 400px; margin: 0 auto; }
.pg-tiercards__orbit { position: absolute; inset: 8% -6% 2% 4%; border-radius: 50%; background: radial-gradient(closest-side, hsl(var(--pfx-primary) / 0.1), transparent); border: 1px solid hsl(var(--pfx-primary) / 0.16); transform: rotate(-10deg); }
.pg-tiercard { position: absolute; display: flex; flex-direction: column; text-align: left; width: 320px; height: 184px; padding: 22px 24px; border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 0 hsl(var(--pfx-on-brand) / 0.35) inset, 0 28px 50px -26px hsl(var(--pfx-brand-dark) / 0.6); }
.pg-tiercard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, hsl(var(--pfx-on-brand) / 0.28) 0%, transparent 38%); }
.pg-tiercard__brand { display: block; padding-right: 40px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .78; }
.pg-tiercard__icon { position: absolute; top: 18px; right: 20px; width: 24px; height: 24px; opacity: .85; }
.pg-tiercard__line { display: block; margin-top: 14px; font-family: var(--ph-display); font-size: 23px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.pg-tiercard__foot { display: block; margin-top: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
/* Fixed card colors in both themes (like real cards): mixed from tokens. */
.pg-tiercard--silver { color: hsl(var(--pfx-brand-dark)); background: linear-gradient(150deg, hsl(var(--pfx-on-brand)), color-mix(in srgb, hsl(var(--pfx-text-muted)) 34%, hsl(var(--pfx-on-brand)))); }
.pg-tiercard--gold { color: hsl(var(--pfx-brand-dark)); background: linear-gradient(150deg, color-mix(in srgb, hsl(var(--pfx-warning)) 30%, hsl(var(--pfx-on-brand))), color-mix(in srgb, hsl(var(--pfx-warning)) 62%, hsl(var(--pfx-on-brand)))); }
.pg-tiercard--platinum { color: hsl(var(--pfx-on-brand)); border: 1px solid hsl(var(--pfx-on-brand) / 0.1); background: linear-gradient(150deg, color-mix(in srgb, hsl(var(--pfx-primary)) 18%, hsl(var(--pfx-brand-dark))), hsl(var(--pfx-brand-dark))); }
.pg-tiercard--platinum::after { background: linear-gradient(115deg, hsl(var(--pfx-on-brand) / 0.1) 0%, transparent 40%); }
.pg-tiercard--n1 { top: 14px;  left: 0;    transform: rotate(-7deg); z-index: 1; }
.pg-tiercard--n2 { top: 108px; left: 64px; transform: rotate(-3deg); z-index: 2; }
.pg-tiercard--n3 { top: 202px; left: 128px; transform: rotate(2deg); z-index: 3; }

.pg-tiers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pg-tiers__grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; }
.pg-tiers__grid--1 { grid-template-columns: 1fr; max-width: 420px; }
.pg-tier { display: flex; flex-direction: column; padding: 30px; border-radius: 24px; background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border) / 0.9); }
.pg-tier.is-featured { border-color: hsl(var(--pfx-primary) / 0.55); background: linear-gradient(180deg, hsl(var(--pfx-primary) / 0.05), var(--ph-surface) 45%); box-shadow: 0 24px 50px -30px hsl(var(--pfx-primary) / 0.55); }
.pg-tier__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-tier__num { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-muted); }
.pg-tier__name { margin: 26px 0 6px; font-family: var(--ph-display); font-size: 30px; font-weight: 800; letter-spacing: -0.04em; color: var(--ph-strong); }
.pg-tier__line { font-size: 15px; color: var(--ph-muted); }
.pg-checks { display: grid; gap: 12px; margin: 24px 0 0 !important; }
.pg-checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ph-text); }
.pg-checks .ph-i { color: var(--ph-primary); }
.pg-checks--strong li { font-weight: 600; color: var(--ph-strong); }
.pg-tier__terms { display: grid; gap: 10px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid hsl(var(--pfx-border) / 0.8); }
.pg-tier__terms div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pg-tier__terms dt { font-weight: 500; color: var(--ph-muted); }
.pg-tier__terms dd { margin: 0; font-weight: 700; color: var(--ph-strong); text-align: right; }
.pg-tier__fees { display: grid; gap: 2px; margin: 18px 0 24px; }
.pg-tier__fees span { font-size: 12.5px; color: var(--ph-muted); }
.pg-tier__fees strong { font-size: 15px; color: var(--ph-strong); }
.pg-tier__btn.ph-btn { width: 100%; margin-top: auto; }

.pg-steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.pg-step { padding-top: 26px; border-top: 1px solid hsl(var(--pfx-border)); }
.pg-step__num { display: block; font-family: var(--ph-display); font-size: 38px; font-weight: 800; color: hsl(var(--pfx-primary) / 0.55); line-height: 1; }
.pg-step__title { margin: 22px 0 10px; font-family: var(--ph-display); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--ph-strong); }
.pg-step__text { font-size: 15px; line-height: 1.7; color: var(--ph-muted); }

/* ================================ PLATFORMS ================================ */
.pg-devices { position: relative; padding: 0 30px 40px 0; }
.pg-devices__phone.ph-phone { position: absolute; right: 0; bottom: 0; width: 140px; padding: 6px; border-radius: 26px; transform: rotate(9deg); }
.pg-devices__phone.ph-phone img { border-radius: 20px; }
.pg-devices__phone .ph-phone__notch { top: 6px; height: 12px; }

.pg-views__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pg-view { display: flex; gap: 22px; padding: 32px; border-radius: 24px; background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border) / 0.9); }
.pg-view__text { margin: 12px 0 18px !important; font-size: 15px; line-height: 1.7; color: var(--ph-muted); }
.pg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px !important; }
.pg-tags span { padding: 5px 10px; border-radius: 7px; background: hsl(var(--pfx-primary) / 0.09); color: var(--ph-primary-ink); font-size: 12.5px; font-weight: 600; }

.pg-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.pg-tab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 11px; background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border)) !important; font-size: 14.5px; font-weight: 600; color: var(--ph-text); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.pg-tab:hover { border-color: hsl(var(--pfx-primary) / 0.5) !important; color: var(--ph-primary); }
.pg-tab.is-active { background: hsl(var(--pfx-brand-dark)); border-color: hsl(var(--pfx-brand-dark)) !important; color: var(--ph-on-ink); }
html[data-pfx-theme="dark"] .pg-tab.is-active { background: var(--ph-primary); border-color: var(--ph-primary) !important; }

.pg-toolpanel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; padding: 40px; border-radius: 26px; background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border) / 0.9); }
.pg-toolpanel[hidden] { display: none; }
.pg-toolpanel__text { margin: 16px 0 0 !important; font-size: 15.5px; line-height: 1.7; color: var(--ph-muted); }
.pg-toolpanel .pg-checks { margin: 22px 0 30px !important; }
.pg-spec { padding: 34px 32px; border-radius: 20px; background: hsl(var(--pfx-brand-dark)); color: hsl(var(--pfx-on-brand) / 0.7); }
html[data-pfx-theme="dark"] .pg-spec { background: hsl(var(--pfx-section)); border: 1px solid hsl(var(--pfx-border)); }
.pg-spec__title { margin-bottom: 14px !important; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pg-spec dl { margin: 0; }
.pg-spec dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid hsl(var(--pfx-on-brand) / 0.12); font-size: 14.5px; }
.pg-spec dl div:last-child { border-bottom: 0; }
.pg-spec dd { margin: 0; font-weight: 700; color: var(--ph-on-ink); text-align: right; }

.pg-connected-wrap { padding-bottom: 0; }
.pg-connected { padding: 56px 50px; border-radius: 30px; }
.pg-connected .ph-h2 { margin-bottom: 14px; }
.pg-connected__l2 { display: block; }
.pg-connected__lead { color: hsl(var(--pfx-on-brand) / 0.7); font-size: 16px; }
.pg-connected__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px !important; }
.pg-connected__list li { padding-top: 28px; border-top: 1px solid hsl(var(--pfx-on-brand) / 0.14); }
.pg-connected__list .ph-i { width: 26px; height: 26px; color: var(--ph-primary-light); }
.pg-connected__title { display: block; margin: 18px 0 8px; font-size: 18px; font-weight: 700; color: var(--ph-on-ink); }
.pg-connected__text { display: block; font-size: 14.5px; color: hsl(var(--pfx-on-brand) / 0.65); }

/* ================================= MARKETS ================================= */
.pg-globe { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 0.82; margin: 0 auto; }
.pg-globe__halo { position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: hsl(var(--pfx-primary) / 0.06); }
.pg-globe__core { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 56%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, hsl(var(--pfx-primary) / 0.08), hsl(var(--pfx-primary) / 0.18)); border: 1px solid hsl(var(--pfx-primary) / 0.2); }
.pg-globe__icon.ph-i { width: 72px; height: 72px; stroke-width: 1.2; color: hsl(var(--pfx-primary) / 0.75); }
.pg-globe__label { max-width: 120px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ph-muted); }
.pg-globecard { position: absolute; z-index: 1; display: flex; align-items: center; gap: 12px; min-width: 190px; padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border) / 0.9); box-shadow: var(--ph-shadow); text-align: left; }
.pg-globecard__art { display: flex; align-items: center; justify-content: center; width: 52px; height: 40px; flex: none; border-radius: 10px; background: hsl(var(--pfx-primary) / 0.06); }
.pg-globecard__art .ph-art { width: 46px; height: auto; max-height: 36px; }
.pg-globecard__label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ph-muted); }
.pg-globecard__pair { display: block; font-size: 15px; font-weight: 700; color: var(--ph-strong); }
.pg-globecard__price { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--ph-text); font-variant-numeric: tabular-nums; }
.pg-globecard--1 { top: 6%; left: 2%; transform: rotate(-4deg); }
.pg-globecard--2 { top: 36%; right: -2%; transform: rotate(4deg); }
.pg-globecard--3 { bottom: 4%; left: 8%; transform: rotate(-3deg); }

.pg-cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pg-cats__grid .ph-mcard { grid-column: auto; min-height: 300px; }
.pg-cats__grid .ph-mcard .ph-mcard__art { position: static; width: auto; height: 120px; margin: 14px 0; transform: none; }
.pg-cats__grid .ph-mcard .ph-mcard__body { max-width: none; }
.pg-cats__grid .ph-mcard .ph-mcard__title { font-size: 26px; }

.pg-explorer__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.pg-search { display: flex; align-items: center; gap: 10px; width: 340px; max-width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border)); color: var(--ph-muted); }
.pg-search:focus-within { border-color: hsl(var(--pfx-primary) / 0.6); box-shadow: 0 0 0 3px hsl(var(--pfx-primary) / 0.12); }
.pg-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ph-strong); }
.pg-search input::placeholder { color: var(--ph-muted); }
/* Text fields show their own focus ring (.pg-search:focus-within, .pg-form
   .form--control:focus); drop the page-wide :focus-visible outline on them. */
.pfx-home .pg-search input:focus-visible,
.pfx-home .pg-form .form--control:focus-visible { outline: none; }

.pg-board table { min-width: 620px; }
.pg-board th.is-num, .pg-board td.is-num { font-variant-numeric: tabular-nums; }
.pg-board__sym { display: block; font-size: 15px; font-weight: 700; color: var(--ph-strong); }
.pg-board__name { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--ph-muted); }
.pg-board__market { font-weight: 600; color: var(--ph-strong) !important; }
.pg-board__closed { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: hsl(var(--pfx-text-muted) / 0.14); font-size: 11px; font-weight: 600; color: var(--ph-muted); }
.pg-board__price { font-weight: 700; color: var(--ph-strong) !important; }
.pg-board__chg { font-weight: 700; }
.pfx-page .is-up { color: hsl(var(--pfx-up-text)) !important; }
.pfx-page .is-down { color: hsl(var(--pfx-down-text)) !important; }
.pg-board tbody tr[hidden] { display: none; }
.pg-board__empty { padding: 30px 24px; text-align: center; color: var(--ph-muted); }
.pg-flash-up { animation: pg-flash-up 1.2s ease-out; }
.pg-flash-down { animation: pg-flash-down 1.2s ease-out; }
@keyframes pg-flash-up { from { background: hsl(var(--pfx-up) / 0.25); } to { background: transparent; } }
@keyframes pg-flash-down { from { background: hsl(var(--pfx-down) / 0.25); } to { background: transparent; } }

/* ============================ TRADING HOLIDAYS ============================ */
.pg-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px !important; }
.pg-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px; background: hsl(var(--pfx-primary) / 0.08); color: var(--ph-primary-ink); font-size: 13px; font-weight: 600; }
.pg-datecard { max-width: 420px; margin: 0 auto; padding: 30px 32px 26px; border-radius: 28px; background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border) / 0.9); box-shadow: 0 30px 60px -30px hsl(var(--pfx-brand-dark) / 0.35); transform: rotate(-2.5deg); }
.pg-datecard__top { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ph-primary); }
.pg-datecard__main { display: flex; align-items: center; gap: 22px; margin: 26px 0 28px; }
.pg-datecard__day { font-family: var(--ph-display); font-size: 96px; font-weight: 800; line-height: .9; letter-spacing: -0.06em; color: var(--ph-primary); }
.pg-datecard__month { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: var(--ph-muted); }
.pg-datecard__name { display: block; margin-top: 6px; font-family: var(--ph-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ph-strong); }
.pg-datecard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid hsl(var(--pfx-border)); font-size: 12.5px; color: var(--ph-muted); }
.pg-badge { display: inline-block; padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.pg-badge--closed { background: hsl(var(--pfx-danger) / 0.1); color: hsl(var(--pfx-danger)); }
.pg-badge--early { background: hsl(var(--pfx-warning) / 0.15); color: hsl(var(--pfx-warning)); }

.pg-planner__bar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.pg-field { display: grid; gap: 8px; margin: 0; }
.pg-field span { font-size: 13px; font-weight: 600; color: var(--ph-text); }
.pg-field select { width: 200px; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid hsl(var(--pfx-border)); background: var(--ph-surface); color: var(--ph-strong); font: inherit; font-size: 14.5px; font-weight: 600; }
.pg-planner__scope { display: inline-flex; align-items: center; gap: 8px; margin-left: auto !important; font-size: 13px; color: var(--ph-muted); }
.pg-planner__grid { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
.pg-cal { padding: 24px; border-radius: 22px; background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border) / 0.9); }
.pg-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pg-cal__title { font-family: var(--ph-display); font-size: 17px; font-weight: 800; color: var(--ph-strong); }
.pg-cal__nav { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: hsl(var(--pfx-primary) / 0.08) !important; color: var(--ph-primary) !important; }
.pg-cal__nav:disabled { opacity: .35; cursor: default; }
.pg-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.pg-cal__grid > span { display: block; }
.pg-cal__wd { padding-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--ph-muted); }
.pg-cal__d { height: 40px; line-height: 40px; border-radius: 11px; font-size: 14px; color: var(--ph-text); }
.pg-cal__d.is-closed, .pg-cal__d.is-early { background: hsl(var(--pfx-primary) / 0.12); border: 1px solid hsl(var(--pfx-primary) / 0.3); color: var(--ph-primary); font-weight: 800; line-height: 38px; }
.pg-cal__legend { display: flex; align-items: center; gap: 8px; margin-top: 18px !important; font-size: 12.5px; color: var(--ph-muted); }
.pg-cal__legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--ph-primary); }
.pg-notices { overflow: hidden; border-radius: 22px; background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border) / 0.9); }
.pg-notices__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; background: hsl(var(--pfx-primary) / 0.03); border-bottom: 1px solid hsl(var(--pfx-border) / 0.9); }
.pg-notices__title { font-family: var(--ph-display); font-size: 18px; font-weight: 800; color: var(--ph-strong); }
.pg-notices__count { font-size: 13px; color: var(--ph-muted); }
.pg-notice { display: flex; align-items: center; gap: 20px; padding: 22px 24px; }
.pg-notice + .pg-notice { border-top: 1px solid hsl(var(--pfx-border) / 0.8); }
.pg-notice__date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 64px; height: 72px; border-radius: 14px; background: hsl(var(--pfx-primary) / 0.07); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--ph-muted); }
.pg-notice__date b { font-family: var(--ph-display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--ph-primary); line-height: 1.1; }
.pg-notice__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pg-notice__name { display: block; font-family: var(--ph-display); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--ph-strong); }
.pg-notice__text { display: block; font-size: 13.5px; color: var(--ph-muted); }
.pg-notices__empty { padding: 30px 24px; text-align: center; color: var(--ph-muted); }

/* =============================== RESPONSIVE =============================== */

/* The site header is position:absolute below 992px — make room for it. */
@media (max-width: 991px) {
  .pfx-page { padding-top: 61px; }  /* site header overlays the page below 992px */
}

/* ---- Tablet + mobile: centered text and buttons ---- */
@media (max-width: 1099px) {
  .pfx-page .ph-section { padding: 80px 0; }
  .pfx-page .pg-cta-wrap { padding: 70px 0 80px; }
  .pfx-page .pg-connected-wrap { padding-bottom: 0; }


  .pg-hero { padding: 64px 0 72px; text-align: center; }
  .pg-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .pg-hero .ph-lead { margin-left: auto; margin-right: auto; }
  .pfx-page .pg-actions, .pg-chips, .pg-tags { justify-content: center; }
  .pg-hero__art { width: 100%; max-width: 560px; margin: 0 auto; }

  .pg-head { margin-left: auto; margin-right: auto; text-align: center; }
  .pg-head .ph-lead { margin-left: auto; margin-right: auto; }
  .pg-note { text-align: center; }

  /* accounts */
  .pg-tiers__grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .pg-tier { text-align: center; }
  .pg-tier__top { flex-direction: column; }
  .pg-checks { justify-items: center; }
  .pg-checks li { justify-content: center; text-align: left; }
  .pg-tier__terms div { text-align: left; }
  .pg-confirm .pg-table__title { text-align: center; }
  .pg-steps__list { text-align: center; }

  /* platforms */
  .pg-devices { max-width: 560px; }
  .pg-view { flex-direction: column; align-items: center; text-align: center; }
  .pg-tabs { justify-content: center; }
  .pg-toolpanel { grid-template-columns: 1fr; gap: 30px; text-align: center; padding: 32px; }
  .pg-toolpanel .pg-checks { justify-items: center; }
  .pg-spec { text-align: left; }
  .pg-connected { padding: 48px 36px; text-align: center; }
  .pg-connected__list .ph-i { margin: 0 auto; }

  /* markets */
  .pg-cats__grid { grid-template-columns: repeat(2, 1fr); }
  .pg-cats__grid .ph-mcard { text-align: center; }
  .pg-explorer__head { flex-direction: column; align-items: stretch; text-align: center; }
  .pg-search { width: 100%; }
  .pg-board th, .pg-board td { text-align: left; }

  /* holidays */
  .pg-planner__bar { justify-content: center; }
  .pg-planner__scope { width: 100%; justify-content: center; margin-left: 0 !important; }
  .pg-planner__grid { grid-template-columns: 1fr; }
  .pg-cal { width: 100%; max-width: 440px; margin: 0 auto; }
  .pg-notices__head { justify-content: center; flex-direction: column; gap: 2px; }

  /* info + cta */
  .pg-infocard { text-align: center; }
  .pg-cta { flex-direction: column; text-align: center; padding: 40px 32px; }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
  .pfx-page .ph-section { padding: 64px 0; }
  .pg-hero { padding: 48px 0 56px; }
  .pg-h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .pg-head { margin-bottom: 36px; }
  .pg-actions .ph-btn { flex: 0 1 auto; }

  .pg-tiercards { height: 300px; max-width: 330px; }
  .pg-tiercard { width: calc(100% - 80px); height: 140px; padding: 16px 18px; border-radius: 16px; }
  .pg-tiercard__icon { top: 13px; right: 15px; width: 20px; height: 20px; }
  .pg-tiercard__brand { font-size: 9.5px; padding-right: 30px; }
  .pg-tiercard__line { font-size: 18px; margin-top: 10px; }
  .pg-tiercard--n1 { top: 8px; left: 0; }
  .pg-tiercard--n2 { top: 80px; left: 40px; }
  .pg-tiercard--n3 { top: 152px; left: 80px; }

  .pg-tiers__grid, .pg-tiers__grid--2 { grid-template-columns: 1fr; }
  .pg-tier { padding: 26px 22px; }
  .pg-confirm table, .pg-confirm thead, .pg-confirm tbody, .pg-confirm tr, .pg-confirm th, .pg-confirm td { display: block; width: 100% !important; text-align: center; }
  .pg-confirm thead { display: none; }
  .pg-confirm tbody th { padding: 18px 20px 4px; }
  .pg-confirm tbody td { padding: 0 20px 18px; }
  .pg-steps__list { grid-template-columns: 1fr; gap: 28px; }

  .pg-devices { padding: 0 20px 30px 0; }
  .pg-devices__phone.ph-phone { width: 96px; }
  .pg-views__grid { grid-template-columns: 1fr; }
  .pg-view { padding: 28px 22px; }
  .pg-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-left: calc(var(--ph-gutter) * -1); margin-right: calc(var(--ph-gutter) * -1); padding: 0 var(--ph-gutter) 4px; scrollbar-width: none; }
  .pg-tabs::-webkit-scrollbar { display: none; }
  .pg-toolpanel { padding: 26px 20px; }
  .pg-spec { padding: 24px 20px; }
  .pg-connected { padding: 40px 22px; border-radius: 24px; }
  .pg-connected__list { grid-template-columns: 1fr; gap: 24px; }

  .pg-globe { max-width: 380px; }
  .pg-globecard { min-width: 0; padding: 8px 12px 8px 8px; gap: 8px; border-radius: 12px; }
  .pg-globecard__art { width: 40px; height: 32px; }
  .pg-globecard__art .ph-art { width: 34px; }
  .pg-globecard__pair { font-size: 13px; }
  .pg-globecard__price { font-size: 11px; }
  .pg-globecard--2 { right: 0; }
  .pg-globe__icon.ph-i { width: 52px; height: 52px; }
  .pg-globe__label { font-size: 9.5px; }
  .pg-cats__grid { grid-template-columns: 1fr; gap: 14px; }
  .pg-cats__grid .ph-mcard { min-height: 0; padding: 22px; }
  .pg-cats__grid .ph-mcard .ph-mcard__title { font-size: 24px; }
  .pg-cats__grid .ph-mcard .ph-mcard__art { height: 100px; }

  .pg-field { flex: 1 1 140px; }
  .pg-field select { width: 100%; }
  .pg-notice { padding: 18px 16px; gap: 14px; }
  .pg-datecard { padding: 24px 22px 20px; transform: rotate(-1.5deg); }
  .pg-datecard__day { font-size: 72px; }
  .pg-datecard__name { font-size: 19px; }
  .pg-datecard__foot { justify-content: center; }

  .pg-info__grid { grid-template-columns: 1fr; gap: 14px; }
  .pg-cta { padding: 34px 22px; border-radius: 24px; }
}

/* Markets board on phones: hide the Market column (the tabs show it) so
   instrument, price and change fit without sideways scrolling. */
@media (max-width: 767px) {
  .pg-board table { min-width: 0; }
  .pg-board th:nth-child(2), .pg-board td:nth-child(2) { display: none; }
  .pg-board th, .pg-board td { padding: 14px 14px; }
  .pg-board th:first-child, .pg-board td:first-child { padding-left: 18px; }
  .pg-board .is-num { text-align: right; white-space: nowrap; }
  .pg-board th.is-num:last-child, .pg-board td.is-num:last-child { padding-right: 18px; }
}


/* =====================================================================
   ABOUT + CONTACT  (custom/templates/basic/about.blade.php, contact.blade.php)
   ===================================================================== */

/* ------------------------------ Photo hero ------------------------------ */
.pg-photohero { position: relative; overflow: hidden; isolation: isolate; padding: 84px 0 96px; background: var(--ph-ink); color: var(--ph-on-ink); }
.pg-photohero__media { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 70%; }
.pg-photohero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
/* tint the greyscale photo with the admin base color, then fade it into the brand panel */
.pg-photohero__media::before { content: ""; position: absolute; inset: 0; background: hsl(var(--pfx-primary)); mix-blend-mode: color; opacity: .55; }
.pg-photohero__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ph-ink) 0%, hsl(var(--pfx-brand-dark) / 0.82) 28%, hsl(var(--pfx-brand-dark) / 0.5) 62%, hsl(var(--pfx-brand-dark) / 0.38) 100%); }
.pg-photohero__inner { position: relative; }
.pg-photohero .ph-eyebrow { color: var(--ph-primary-light); }
.pg-photohero__title { max-width: 760px; margin-bottom: 22px; font-family: var(--ph-display); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.06; letter-spacing: -0.05em; color: var(--ph-on-ink); }
.pg-photohero__lead { max-width: 640px; font-size: 17px; line-height: 1.65; color: hsl(var(--pfx-on-brand) / 0.86); }

/* --------------------------- Split section --------------------------- */
.pg-split { display: grid; grid-template-columns: 1fr 1.08fr; gap: 72px; align-items: center; }
.pg-split--form { grid-template-columns: 1fr 1.12fr; align-items: start; }
.pg-split .ph-h2 { margin-bottom: 18px; }
.pg-split .ph-lead a { color: var(--ph-primary); font-weight: 600; }
.pg-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.pg-ticks { display: grid; gap: 14px; margin: 30px 0 0 !important; }
.pg-ticks li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--ph-strong); }
.pg-ticks__mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: hsl(var(--pfx-up) / 0.14); color: hsl(var(--pfx-up-text)); }

/* --------------------------- Workspace card --------------------------- */
.pg-wscard { position: relative; overflow: hidden; padding: 28px; border-radius: 28px; background: var(--ph-ink); color: var(--ph-on-ink); border: 1px solid hsl(var(--pfx-on-brand) / 0.08); box-shadow: 0 34px 70px -34px hsl(var(--pfx-brand-dark) / 0.7); }
.pg-wscard::before { content: ""; position: absolute; top: -90px; right: -90px; width: 260px; height: 260px; border-radius: 50%; background: hsl(var(--pfx-primary) / 0.16); }
.pg-wscard > * { position: relative; }
.pg-wscard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-wscard__title { font-size: 14px; font-weight: 700; }
.pg-wscard__badge, .pg-wscard__chip { padding: 5px 11px; border-radius: 8px; border: 1px solid hsl(var(--pfx-on-brand) / 0.28); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: hsl(var(--pfx-on-brand) / 0.85); }
.pg-wscard__badge { text-transform: uppercase; }
.pg-wscard__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 16px; }
.pg-wscard__stats div { padding: 14px 16px; border-radius: 12px; background: hsl(var(--pfx-on-brand) / 0.07); text-align: left; }
.pg-wscard__stats span { display: block; font-size: 11.5px; color: hsl(var(--pfx-on-brand) / 0.62); }
.pg-wscard__stats b { display: block; margin-top: 6px; font-size: 17px; font-weight: 700; color: var(--ph-on-ink); white-space: nowrap; }
.pg-wscard__stats b.is-up { color: hsl(var(--pfx-up)); }
.pg-wscard__chart { height: 220px; padding: 10px 6px; border-radius: 14px; border: 1px solid hsl(var(--pfx-on-brand) / 0.1); }
.pg-wscard__chart svg { display: block; width: 100%; height: 100%; }
.pg-wscard__grid { stroke: hsl(var(--pfx-on-brand) / 0.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pg-wscard__trend { fill: none; stroke: var(--ph-primary-light); stroke-width: 2.5; stroke-linejoin: round; opacity: .75; vector-effect: non-scaling-stroke; }
.pg-wscard__chart .is-up line { stroke: hsl(var(--pfx-up)); }
.pg-wscard__chart .is-up rect { fill: hsl(var(--pfx-up)); }
.pg-wscard__chart .is-down line { stroke: hsl(var(--pfx-down)); }
.pg-wscard__chart .is-down rect { fill: hsl(var(--pfx-down)); }
.pg-wscard__chart line { stroke-width: 2; vector-effect: non-scaling-stroke; }
.pg-wscard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 12px; color: hsl(var(--pfx-on-brand) / 0.62); }

/* ------------------------------ Contact ------------------------------ */
.pg-helplist { display: grid; gap: 24px; margin: 34px 0 0 !important; }
.pg-helplist li { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; line-height: 1.6; color: var(--ph-text); }
.pg-helplist .ph-i { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--ph-primary); }
.pg-helplist a { color: var(--ph-primary) !important; font-weight: 700; word-break: break-word; }
.pg-helplist a:hover { text-decoration: underline; }

.pg-formcard { padding: 44px; border-radius: 26px; background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border) / 0.9); box-shadow: var(--ph-shadow); }
.pg-formcard__title { font-family: var(--ph-display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--ph-strong); }
.pg-formcard__sub { margin: 8px 0 28px; font-size: 14.5px; color: var(--ph-muted); }
.pg-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pg-form .form-group { margin-bottom: 20px; text-align: left; }
.pg-form .form--label::after { content: none !important; }  /* every field is required */
.pg-form .form--label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--ph-strong); }
.pg-form .form--control { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid hsl(var(--pfx-border)); background: hsl(var(--pfx-input)); color: var(--ph-strong); font-size: 15px; line-height: 1.4; transition: border-color .2s, box-shadow .2s; }
.pg-form .form--control::placeholder { color: var(--ph-muted); }
.pg-form .form--control:focus { border-color: var(--ph-primary); box-shadow: 0 0 0 4px hsl(var(--pfx-primary) / 0.12); }
.pg-form .form--control[readonly] { background: hsl(var(--pfx-primary) / 0.04); }
.pg-form textarea.form--control { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
.pg-select { position: relative; }
.pg-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.pg-select::after { content: ""; position: absolute; top: 50%; right: 18px; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ph-muted); border-bottom: 2px solid var(--ph-muted); transform: rotate(45deg); pointer-events: none; }
.pg-form__submit { width: 100%; height: 56px; margin-top: 4px; border-radius: 14px; }
.pg-form__note { margin-top: 14px; font-size: 12.5px; color: var(--ph-muted); }

/* ---- Tablet + mobile: centered text and images ---- */
@media (max-width: 1099px) {
  .pg-photohero { padding: 72px 0 80px; text-align: center; }
  .pg-photohero__media { width: 100%; }
  .pg-photohero__media img { object-position: 78% 30%; }
  .pg-photohero__media::after { background: linear-gradient(180deg, hsl(var(--pfx-brand-dark) / 0.78), hsl(var(--pfx-brand-dark) / 0.66)); }
  .pg-photohero__title, .pg-photohero__lead { margin-left: auto; margin-right: auto; }

  .pg-split, .pg-split--form { grid-template-columns: 1fr; gap: 52px; }
  .pg-split__copy { text-align: center; }
  .pg-split__copy .ph-lead { margin-left: auto; margin-right: auto; }
  .pg-split__art { width: 100%; max-width: 640px; margin: 0 auto; }
  .pg-ticks { justify-items: center; }
  .pg-helplist { justify-items: center; gap: 22px; }
  .pg-helplist li { max-width: 520px; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .pfx-page--about .pg-info__grid { grid-template-columns: repeat(2, 1fr); }
  .pg-formcard__title, .pg-formcard__sub, .pg-form__note { text-align: center; }
}

@media (max-width: 767px) {
  .pg-photohero { padding: 56px 0 64px; }
  .pg-photohero__title { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .pg-photohero__lead { font-size: 15.5px; }

  .pg-wscard { padding: 18px; border-radius: 22px; }
  .pg-wscard__stats { gap: 8px; margin: 18px 0 14px; }
  .pg-wscard__stats div { padding: 10px; }
  .pg-wscard__stats span { font-size: 10.5px; }
  .pg-wscard__stats b { font-size: 13.5px; }
  .pg-wscard__chart { height: 170px; }
  .pg-wscard__foot { font-size: 11px; }
  .pg-wscard__foot > span:last-child { text-align: right; }

  .pg-formcard { padding: 28px 20px; border-radius: 22px; }
  .pfx-page--about .pg-info__grid { grid-template-columns: 1fr; }
  .pg-form__row { grid-template-columns: 1fr; gap: 0; }
}
