/* ── Payment Method page (طرق السحب والإيداع) ──
   Used by: site-new/payment_methods/payment_method.blade.php
   --pmp-brand is the method's validated brand hex. It is only ever used as an accent (glow, rings,
   rules) on top of navy, so white text keeps AA contrast whatever colour an editor picks. */

.pmp {
    --pmp-brand: var(--navy);
    --pmp-brand-soft: color-mix(in srgb, var(--pmp-brand) 12%, var(--bg-card));
    --pmp-brand-line: color-mix(in srgb, var(--pmp-brand) 35%, var(--border));
    --pmp-nav-h: 52px;
    /* Same offsets page-base.css gives <body>: the fixed header, plus the ticker on desktop. */
    --pmp-sticky-top: var(--header-height, 56px);
    --pmp-offset: calc(var(--pmp-sticky-top) + var(--pmp-nav-h) + 12px);
}
body.has-ticker .pmp { --pmp-sticky-top: calc(var(--header-height, 56px) + var(--ticker-height, 34px)); }
@media (max-width: 768px) {
    .pmp, body.has-ticker .pmp { --pmp-sticky-top: var(--header-height-mobile, 54px); --pmp-nav-h: 48px; }
}
@media (max-width: 480px) {
    .pmp, body.has-ticker .pmp { --pmp-sticky-top: var(--header-height-small, 52px); }
}
.pmp .tnum { font-variant-numeric: tabular-nums; }
.pmp .pmp-ico { flex-shrink: 0; vertical-align: -0.2em; }
.pmp .pmp-muted { color: var(--text-muted); }
.pmp .pmp-small { font-size: var(--text-xs); }
.pmp .pmp-line { display: block; }
/* Several controls here set display:flex, which beats the hidden attribute without this. */
.pmp [hidden] { display: none !important; }

/* ── Hero ──
   Navy base; the brand colour only tints glows, the logo ring and the summary card (≤40% over navy),
   so white text keeps AA contrast for any brand an editor picks. --mx/--my come from payment-method.js. */
.pmp-hero {
    --mx: 75%;
    --my: 20%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius-lg);
    padding: clamp(20px, 4vw, 44px);
    color: var(--text-on-navy);
    background:
        radial-gradient(520px circle at var(--mx) var(--my), color-mix(in srgb, var(--pmp-brand) 28%, transparent), transparent 60%),
        radial-gradient(110% 140% at 100% 0%, color-mix(in srgb, var(--pmp-brand) 32%, transparent) 0%, transparent 62%),
        var(--hero-bg-dark-gradient);
    box-shadow: var(--shadow-lg);
}
.pmp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.pmp-hero-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    animation: pmp-orb 18s ease-in-out infinite alternate;
}
.pmp-hero-orb--a { inline-size: 320px; block-size: 320px; inset-block-start: -120px; inset-inline-start: -80px; background: color-mix(in srgb, var(--pmp-brand) 55%, var(--navy)); }
.pmp-hero-orb--b { inline-size: 260px; block-size: 260px; inset-block-end: -140px; inset-inline-end: 22%; background: color-mix(in srgb, var(--teal) 60%, var(--navy)); animation-duration: 22s; animation-delay: -6s; }
@keyframes pmp-orb {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(40px, 24px, 0) scale(1.15); }
}

.pmp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: clamp(20px, 4vw, 48px);
    align-items: center;
}
.pmp-hero-copy { min-inline-size: 0; }
.pmp-hero-brand { display: flex; align-items: center; gap: 14px; margin-block-end: 16px; }
.pmp-hero-logo {
    inline-size: 64px;
    block-size: 64px;
    flex-shrink: 0;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--pmp-brand) 55%, transparent),
        0 12px 26px rgba(0, 0, 0, 0.3);
}
.pmp-hero-logo img { max-inline-size: 78%; max-block-size: 78%; block-size: auto; inline-size: auto; object-fit: contain; }
.pmp-hero-logo span { font-weight: var(--font-extrabold); font-size: 22px; color: var(--navy); }
.pmp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pmp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    padding: 5px 11px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-on-navy);
    backdrop-filter: blur(6px);
}
.pmp-hero-title {
    font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
    font-weight: var(--font-extrabold);
    line-height: 1.25;
    margin: 0 0 12px;
    color: var(--text-on-navy);
    text-wrap: balance;
}
.pmp-hero-accent {
    color: var(--gold-light);
    background: linear-gradient(transparent 70%, color-mix(in srgb, var(--gold-light) 22%, transparent) 70%);
    border-radius: 2px;
    padding-inline: 2px;
}
.pmp-hero-lead {
    margin: 0;
    max-inline-size: 620px;
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-on-navy-muted);
}
.pmp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 22px; }
.pmp-hero-verified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: var(--text-xs);
    color: var(--text-on-navy-soft);
}
.pmp-live-dot {
    position: relative;
    inline-size: 8px;
    block-size: 8px;
    border-radius: 50%;
    background: var(--color-positive);
}
.pmp-live-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-positive);
    animation: pmp-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes pmp-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* Summary card — tilts toward the pointer on desktop (payment-method.js) */
.pmp-hero-visual { perspective: 900px; }
.pmp-hero-card {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(150deg, color-mix(in srgb, var(--pmp-brand) 38%, var(--navy-deep)) 0%, var(--navy-deep) 72%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pmp-hero-card.is-tilting { transition: transform 80ms linear; }
.pmp-hero-card::before {
    content: '';
    position: absolute;
    inset-block-start: -60px;
    inset-inline-end: -60px;
    inline-size: 180px;
    block-size: 180px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--pmp-brand) 45%, transparent);
    filter: blur(30px);
    pointer-events: none;
}
.pmp-hc-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.pmp-hero-card.is-tilting .pmp-hc-shine { opacity: 1; }
.pmp-hc-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pmp-hc-name { font-weight: var(--font-bold); font-size: var(--text-sm); color: var(--text-on-navy-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmp-hc-wave { color: var(--text-on-navy-soft); flex-shrink: 0; }
.pmp-hc-big { position: relative; display: flex; flex-direction: column; gap: 2px; }
.pmp-hc-num { font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: var(--font-black); line-height: 1; color: #fff; }
.pmp-hc-pending { font-size: var(--text-3xl); font-weight: var(--font-extrabold); line-height: 1.15; color: var(--gold-light); }
.pmp-hc-label { font-size: var(--text-sm); color: var(--text-on-navy-muted); }
.pmp-hc-bars { position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.pmp-hc-bar { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.pmp-hc-bar dt { font-size: var(--text-xs); font-weight: var(--font-regular); color: var(--text-on-navy-soft); }
.pmp-hc-bar dd { display: contents; }
.pmp-hc-bar dd .tnum { justify-self: end; grid-row: 1; grid-column: 2; font-size: var(--text-xs); font-weight: var(--font-bold); color: var(--text-on-navy); }
.pmp-hc-track {
    grid-column: 1 / -1;
    margin-block-start: 6px;
    block-size: 6px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}
.pmp-hc-fill {
    display: block;
    block-size: 100%;
    inline-size: var(--pct, 0%);
    border-radius: inherit;
    background: linear-gradient(to left, var(--teal-light), var(--color-positive));
    transform-origin: right center;
    animation: pmp-grow 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}
@keyframes pmp-grow { from { transform: scaleX(0); } }
.pmp-hc-foot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-block-start: 14px;
    border-block-start: 1px dashed rgba(255, 255, 255, 0.18);
    font-size: var(--text-xs);
    color: var(--text-on-navy-soft);
}
.pmp-hc-foot strong { color: var(--text-on-navy); font-size: var(--text-sm); }

/* ── Buttons ── */
.pmp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-block-size: 44px;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-decoration: none;
    white-space: nowrap;
    border: 1.5px solid transparent;
    transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}
.pmp-btn:hover { transform: translateY(-1px); }
.pmp-btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.pmp-btn--light { background: #fff; color: var(--navy); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.pmp-btn--light:hover { color: var(--navy); background: var(--gold-bg); }
.pmp-btn--ghost { color: var(--text-on-navy); border-color: rgba(255, 255, 255, 0.35); background: transparent; }
.pmp-btn--ghost:hover { color: var(--text-on-navy); background: rgba(255, 255, 255, 0.1); }
.pmp-btn--primary { background: var(--teal); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--teal) 30%, transparent); }
.pmp-btn--primary:hover { background: var(--teal-light); color: #fff; }
.pmp-btn--outline { color: var(--teal); border-color: var(--teal-border); background: var(--bg-card); }
.pmp-btn--outline:hover { color: var(--teal); background: var(--teal-bg); }

/* ── Section nav (sticky, scroll-spy) ── */
.pmp-nav {
    position: sticky;
    top: var(--pmp-sticky-top);
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-block-end: 1px solid var(--border-light);
}
.pmp-nav-list {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.pmp-nav-list::-webkit-scrollbar { display: none; }
.pmp-nav-link {
    display: inline-flex;
    align-items: center;
    min-block-size: 36px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--text-mid);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.pmp-nav-link:hover { background: var(--bg-muted); color: var(--text); }
.pmp-nav-link.is-active { background: var(--navy); color: var(--text-on-navy); }

/* ── Sections ── */
.pmp-section { scroll-margin-top: var(--pmp-offset); margin-block-end: 24px; }
.pmp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 3vw, 28px);
    box-shadow: var(--shadow-sm);
}
.pmp-h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    color: var(--text);
    line-height: var(--leading-tight);
    margin: 0 0 14px;
}
.pmp-h2 .pmp-ico { color: var(--teal); }
.pmp-h3 { font-size: var(--text-lg); font-weight: var(--font-bold); color: var(--text); margin: 0 0 6px; }
.pmp-sub { margin: -8px 0 0; font-size: var(--text-sm); color: var(--text-muted); }
.pmp-note { margin: 10px 0 0; font-size: var(--text-xs); color: var(--text-muted); }
.pmp-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-block-end: 16px;
}
.pmp-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    background: var(--teal-bg);
    color: var(--teal);
    border: 1px solid var(--teal-border);
}

/* ── Quick facts ── */
.pmp-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}
.pmp-fact {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.pmp-fact:hover { border-color: var(--pmp-brand-line); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pmp-fact-ico {
    grid-row: span 2;
    inline-size: 38px;
    block-size: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-bg);
    color: var(--teal);
}
.pmp-fact-label { font-size: var(--text-xs); color: var(--text-muted); }
.pmp-fact-value { font-size: var(--text-sm); font-weight: var(--font-bold); color: var(--text); }
.pmp-fact-value.is-muted { color: var(--text-mid); font-weight: var(--font-regular); }

/* ── Brokers toolbar ── */
.pmp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-block-end: 12px;
}
.pmp-segment {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border-radius: var(--radius-full);
    background: var(--bg-muted);
    border: 1px solid var(--border-light);
}
.pmp-segment-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-block-size: 36px;
    padding: 6px 14px;
    border: 0;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-mid);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.pmp-segment-btn span { font-size: var(--text-xs); opacity: 0.75; }
.pmp-segment-btn.is-active { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow-sm); }
.pmp-segment-btn:focus-visible, .pmp-sort select:focus-visible, .pmp-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pmp-sort { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.pmp-sort select {
    min-block-size: 40px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text);
    font: inherit;
    font-size: var(--text-input);
}

/* ── Brokers table ── */
.pmp-table-wrap { overflow-x: auto; border: 1px solid var(--border-light); border-radius: var(--radius-md); }
.pmp-table { inline-size: 100%; border-collapse: collapse; font-size: var(--text-sm); color: var(--text); }
.pmp-table thead th {
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-align: start;
    padding: 12px 14px;
    border-block-end: 1px solid var(--border);
    white-space: nowrap;
}
.pmp-table td { padding: 14px; border-block-end: 1px solid var(--border-light); vertical-align: middle; }
.pmp-table td[data-label="مدة السحب"] { min-inline-size: 130px; }
.pmp-table tbody tr:last-child td { border-block-end: 0; }
.pmp-table tbody tr { transition: background var(--transition-fast); }
.pmp-table tbody tr:hover { background: color-mix(in srgb, var(--pmp-brand) 4%, var(--bg-card)); }
.pmp-table tbody tr[hidden] { display: none; }
.pmp-cell-broker { min-inline-size: 220px; }
.pmp-broker { display: flex; align-items: center; gap: 10px; }
.pmp-rank {
    inline-size: 24px;
    block-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-muted);
    color: var(--text-mid);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
}
.pmp-table tbody tr:first-child .pmp-rank { background: var(--gold-bg); color: var(--text-gold-dark); }
.pmp-broker-logo {
    inline-size: 44px;
    block-size: 44px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
}
.pmp-broker-id { display: flex; flex-direction: column; min-inline-size: 0; }
.pmp-broker-name { font-weight: var(--font-bold); color: var(--text); text-decoration: none; }
.pmp-broker-name:hover { color: var(--teal); text-decoration: underline; }
.pmp-rating { font-size: var(--text-xs); color: var(--gold); font-weight: var(--font-bold); }
.pmp-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.pmp-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    background: var(--bg-muted);
    color: var(--text-muted);
    white-space: nowrap;
}
.pmp-pill.is-on { background: var(--success-bg); color: var(--success-text); }
.pmp-cell-cta { text-align: end; }
.pmp-empty-filter { margin: 0; padding: 18px; text-align: center; color: var(--text-muted); font-size: var(--text-sm); }

.pmp-verify {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: 14px;
    padding-block-start: 12px;
    border-block-start: 1px dashed var(--border);
    font-size: var(--text-xs);
    color: var(--text-muted);
}
.pmp-verify .pmp-ico { color: var(--success); }
.pmp-verify a { color: var(--teal); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.pmp-verify a:hover { text-decoration: underline; }

.pmp-empty {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px dashed var(--border-strong);
}
.pmp-empty p { margin: 0 0 12px; color: var(--text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.pmp-empty-ico {
    inline-size: 52px;
    block-size: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pmp-brand-soft);
    color: color-mix(in srgb, var(--pmp-brand) 60%, var(--text));
}

/* ── Steps (tabs + timeline) ── */
.pmp-tabs {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    margin-block-end: 18px;
    border-radius: var(--radius-full);
    background: var(--bg-muted);
}
.pmp-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-block-size: 40px;
    padding: 6px 18px;
    border: 0;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-mid);
    font: inherit;
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.pmp-tab.is-active { background: var(--navy); color: var(--text-on-navy); }
.pmp-panel[hidden] { display: none; }
.pmp-panel:not([hidden]) { animation: pmp-fade-in var(--transition-normal) both; }

.pmp-steps {
    counter-reset: pmp-step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.pmp-step {
    counter-increment: pmp-step;
    position: relative;
    padding: 18px 16px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
}
.pmp-step::before {
    content: counter(pmp-step);
    display: flex;
    align-items: center;
    justify-content: center;
    inline-size: 34px;
    block-size: 34px;
    margin-block-end: 10px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--text-on-navy);
    font-weight: var(--font-extrabold);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pmp-brand) 25%, transparent);
}
.pmp-step:last-child::before { background: var(--teal); }
.pmp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    inset-block-start: 34px;
    inset-inline-start: 58px;
    inset-inline-end: -14px;
    block-size: 2px;
    background: linear-gradient(to left, var(--border-strong) 50%, transparent 0) 0 0 / 8px 2px repeat-x;
}
.pmp-step-title { font-size: var(--text-base); font-weight: var(--font-bold); color: var(--text); margin: 0 0 6px; }
.pmp-step p { margin: 0; font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); }

.pmp-callout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-block-start: 20px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--warning) 10%, var(--bg-card));
    border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
    border-inline-start: 4px solid var(--warning);
}
.pmp-callout-ico { color: var(--warning); margin-block-start: 2px; }
.pmp-callout p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-loose); color: var(--text); }

/* ── Guide + TOC ── */
.pmp-toc {
    margin-block-end: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}
.pmp-toc summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    min-block-size: 44px;
    cursor: pointer;
    list-style: none;
    font-weight: var(--font-bold);
    color: var(--text);
}
.pmp-toc summary::-webkit-details-marker { display: none; }
.pmp-toc-chev { margin-inline-start: auto; transition: transform var(--transition-fast); display: inline-flex; }
.pmp-toc[open] .pmp-toc-chev { transform: rotate(180deg); }
.pmp-toc-list { margin: 0; padding: 0 16px 14px; padding-inline-start: 36px; columns: 2 240px; column-gap: 24px; font-size: var(--text-sm); }
.pmp-toc-list li { break-inside: avoid; margin-block-end: 6px; line-height: var(--leading-normal); }
.pmp-toc-list ol { padding-inline-start: 18px; margin-block-start: 4px; }
.pmp-toc-list a { color: var(--text-mid); text-decoration: none; }
.pmp-toc-list a:hover { color: var(--teal); text-decoration: underline; }

/* ── Alternatives ── */
.pmp-alts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pmp-alt {
    --pmp-alt: var(--navy);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo text arrow" "logo count arrow";
    align-items: center;
    column-gap: 12px;
    row-gap: 6px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.pmp-alt::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    block-size: 3px;
    background: var(--pmp-alt);
}
.pmp-alt:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--pmp-alt) 35%, var(--border)); color: var(--text); }
.pmp-alt:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pmp-alt-logo {
    grid-area: logo;
    inline-size: 44px;
    block-size: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pmp-alt) 14%, transparent);
}
.pmp-alt-logo img { max-inline-size: 80%; max-block-size: 80%; block-size: auto; inline-size: auto; object-fit: contain; }
.pmp-alt-logo span { font-weight: var(--font-extrabold); font-size: var(--text-sm); color: var(--navy); }
.pmp-alt-text { grid-area: text; display: flex; flex-direction: column; min-inline-size: 0; }
.pmp-alt-name { font-weight: var(--font-bold); font-size: var(--text-sm); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmp-alt-type { font-size: var(--text-xs); color: var(--text-muted); }
.pmp-alt-count {
    grid-area: count;
    justify-self: start;
    padding: 2px 9px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: var(--font-bold);
    background: var(--teal-bg);
    color: var(--teal);
    white-space: nowrap;
}
.pmp-alt-count.is-pending { background: var(--bg-muted); color: var(--text-muted); }
.pmp-alt-arrow {
    grid-area: arrow;
    display: flex;
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}
.pmp-alt:hover .pmp-alt-arrow { transform: translateX(-3px); color: var(--teal); }

/* ── Reveal on scroll (JS adds .pmp-js to the .pmp root; content stays visible without JS) ── */
.pmp-js .pmp-reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--transition-slow), transform var(--transition-slow); }
.pmp-js .pmp-reveal.is-visible { opacity: 1; transform: none; }

@keyframes pmp-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pmp *, .pmp *::before, .pmp *::after { animation: none !important; transition: none !important; }
    .pmp-js .pmp-reveal { opacity: 1; transform: none; }
}

/* ── Tablet ── */
@media (max-width: 991.98px) {
    .pmp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pmp-step::after { display: none; }
    .pmp-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr); }
}

/* ── Mobile: table rows become cards ── */
@media (max-width: 767.98px) {
    .pmp-hero { padding: 20px 18px; }
    .pmp-hero-grid { grid-template-columns: 1fr; gap: 20px; }
    .pmp-hero-brand { margin-block-end: 12px; }
    .pmp-hero-logo { inline-size: 52px; block-size: 52px; border-radius: 15px; }
    .pmp-hero-logo span { font-size: 18px; }
    .pmp-hero-lead { font-size: var(--text-base); }
    .pmp-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block-start: 18px; }
    .pmp-hero-actions .pmp-btn { white-space: normal; text-align: center; padding-inline: 10px; font-size: var(--text-xs); }
    .pmp-hero-actions .pmp-btn:only-child { grid-column: 1 / -1; }
    .pmp-hero-card { padding: 18px; border-radius: 18px; gap: 14px; }
    .pmp-hc-big { flex-direction: row; align-items: center; gap: 12px; }
    .pmp-hc-num { font-size: 2.6rem; }
    .pmp-hc-pending { font-size: var(--text-2xl); flex-shrink: 0; }
    .pmp-hero-orb--a { inline-size: 220px; block-size: 220px; }
    .pmp-steps { grid-template-columns: 1fr; }
    .pmp-step { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 14px; }
    .pmp-step::before { grid-row: span 2; margin: 0; }
    .pmp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pmp-fact { grid-template-columns: 1fr; padding: 12px; }
    .pmp-fact-ico { grid-row: auto; inline-size: 32px; block-size: 32px; margin-block-end: 6px; }
    .pmp-toolbar { flex-direction: column; align-items: stretch; }
    .pmp-segment { display: flex; }
    .pmp-segment-btn { flex: 1; justify-content: center; padding-inline: 8px; }
    .pmp-sort { justify-content: space-between; }
    .pmp-sort select { flex: 1; }
    .pmp-empty { flex-direction: column; }

    /* Alternatives: two-column tiles instead of full-width rows */
    .pmp-alts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .pmp-alt {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "logo count" "text text";
        align-items: start;
        row-gap: 8px;
        padding: 12px 10px 10px;
    }
    .pmp-alt:hover { transform: none; }
    .pmp-alt-logo { inline-size: 36px; block-size: 36px; border-radius: 10px; }
    .pmp-alt-logo span { font-size: var(--text-xs); }
    .pmp-alt-count { justify-self: end; align-self: center; }
    .pmp-alt-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.82rem; }
    .pmp-alt-arrow { display: none; }

    .pmp-table-wrap { border: 0; overflow: visible; }
    .pmp-table thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .pmp-table, .pmp-table tbody { display: block; }
    /* Compact card: availability beside the broker, facts as wrapping label·value chips. */
    .pmp-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 6px;
        padding: 12px;
        margin-block-end: 10px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--bg-card);
        box-shadow: var(--shadow-sm);
    }
    .pmp-table tbody tr::before { content: ''; order: 1; flex-basis: 100%; border-block-start: 1px dashed var(--border); }
    .pmp-table tbody tr[hidden] { display: none; }
    .pmp-table tbody tr:hover { background: var(--bg-card); }
    .pmp-table td { display: block; padding: 0; border: 0; min-inline-size: 0; }
    .pmp-table .pmp-cell-broker { order: 0; flex: 1 1 0; min-inline-size: 0; }
    .pmp-table .pmp-cell-avail { order: 0; flex: 0 0 auto; }
    .pmp-cell-avail .pmp-pills { flex-direction: column; gap: 4px; }
    .pmp-cell-avail .pmp-pill { justify-content: center; padding: 2px 8px; }
    .pmp-table td.pmp-cell-fact {
        order: 2;
        display: inline-flex;
        flex-wrap: wrap;
        align-items: baseline;
        column-gap: 5px;
        max-inline-size: 100%;
        min-inline-size: 0;
        padding: 4px 9px;
        border-radius: var(--radius-sm);
        background: var(--bg-subtle);
        border: 1px solid var(--border-light);
        font-size: var(--text-xs);
    }
    .pmp-table td.pmp-cell-fact.is-empty { display: none; }
    .pmp-table td.pmp-cell-fact::before { content: attr(data-label); font-size: 0.68rem; color: var(--text-muted); }
    .pmp-table td.pmp-cell-fact .pmp-line { display: inline; }
    .pmp-table td.pmp-cell-fact .pmp-line + .pmp-line { margin-inline-start: 6px; }
    .pmp-table td.pmp-cell-entity { order: 2; flex-basis: 100%; padding-inline: 2px; }
    .pmp-table td.pmp-cell-entity::before { content: attr(data-label) ': '; color: var(--text-muted); }
    .pmp-cell-cta { order: 3; flex-basis: 100%; margin-block-start: 2px; }
    .pmp-cell-cta .pmp-btn { inline-size: 100%; }
}
