/* =========================================================
   SatNet — /partner-deals · vetted token launches
   Mobile-first webapp. Extends brand.css.
   ========================================================= */

:root { --pd-max: 1180px; --pdbar-h: 60px; --pdfilter-h: 56px; --pdbuy-h: 76px; }

/* clip (not hidden): keeps fixed bars pinned to the viewport (see join.css note). */
body { background: var(--bg-0); overflow-x: clip; }
body::after { opacity: 0.3; }
* { min-width: 0; }

/* ============ Top bar ============ */
@media (min-width: 1024px) {
  body.has-shell .pd-bar, body.has-shell .pd-filters { left: var(--shell-w, 236px); }
}
/* On mobile the shell injects a floating burger (44px at left:10px, z-index:70);
   pad the bar row so the "Back" link doesn't sit underneath it. */
@media (max-width: 1023px) {
  body.has-shell .pd-bar-row { padding-left: 62px; }
}
.pd-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: rgba(5,7,13,0.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top,0px); }
.pd-bar-row { max-width: var(--pd-max); margin: 0 auto; height: var(--pdbar-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; }
.pd-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; color: var(--ink-soft); cursor: pointer; font-family: var(--f-body); font-size: 14px; font-weight: 500; background: none; border: 0; }
.pd-back:hover { color: var(--ink); }
.pd-back svg { width: 18px; height: 18px; }
.pd-title { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; display: flex; align-items: center; gap: 9px; position: absolute; left: 50%; transform: translateX(-50%); }
.pd-title svg { width: 24px; height: 24px; }
.pd-bar-actions { display: flex; align-items: center; gap: 6px; }
.pd-lang { position: relative; }
.pd-lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.pd-lang summary::-webkit-details-marker { display: none; }
.pd-lang[open] summary { color: var(--accent); border-color: rgba(107,227,214,0.3); }
.pd-lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 6px; box-shadow: 0 24px 48px rgba(0,0,0,0.5); z-index: 70; }
.pd-lang-menu button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; background: transparent; border: 0; color: var(--ink-soft); font-family: var(--f-body); font-size: 14px; text-align: left; cursor: pointer; border-radius: 8px; }
.pd-lang-menu button:hover { background: rgba(255,255,255,0.04); color: var(--ink); }
.pd-lang-menu button[aria-pressed="true"] { color: var(--accent); }
.pd-lang-menu .code { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-mute); }

/* ============ Filters ============ */
.pd-filters { position: fixed; top: calc(var(--pdbar-h) + env(safe-area-inset-top,0px)); left: 0; right: 0; z-index: 55; background: rgba(5,7,13,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.pd-filters-row { max-width: var(--pd-max); margin: 0 auto; height: var(--pdfilter-h); display: flex; align-items: center; gap: 8px; padding: 0 18px; overflow-x: auto; scrollbar-width: none; }
.pd-filters-row::-webkit-scrollbar { display: none; }
.pd-chip { flex-shrink: 0; min-height: 36px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); color: var(--ink-soft); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: 0.15s; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pd-chip:hover { color: var(--ink); background: rgba(255,255,255,0.07); }
.pd-chip[aria-pressed="true"] { background: var(--accent); color: #04221F; border-color: var(--accent); font-weight: 700; }
.pd-chip .cdot { width: 7px; height: 7px; border-radius: 50%; }
.pd-chip .cdot.live { background: var(--success); box-shadow: 0 0 6px var(--success); animation: live-pulse 1.6s ease-in-out infinite; }
.pd-chip[aria-pressed="true"] .cdot.live { background: #04221F; box-shadow: none; animation: none; }
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ============ Layout ============ */
.pd-page { padding-top: calc(var(--pdbar-h) + var(--pdfilter-h)); padding-bottom: 60px; }
.pd-wrap { max-width: var(--pd-max); margin: 0 auto; padding: 0 18px; position: relative; z-index: 1; }

/* tier banner (your access level) */
.pd-tier-banner { display: flex; align-items: center; gap: 14px; margin: 22px 0 8px; padding: 14px 18px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--r-lg); flex-wrap: wrap; }
.pd-tier-banner .badge { width: 44px; height: 44px; flex-shrink: 0; }
.pd-tier-banner .badge svg { width: 100%; height: 100%; }
.pd-tier-banner .txt { min-width: 0; flex: 1; }
.pd-tier-banner .txt .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.pd-tier-banner .txt .v { font-family: var(--f-display); font-weight: 600; font-size: 15px; margin-top: 2px; }
.pd-tier-banner .txt .v b { color: var(--accent); }
.pd-tier-banner .switch { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.pd-tier-banner select { background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft); font-family: var(--f-mono); font-size: 11px; padding: 8px 12px; cursor: pointer; min-height: 40px; }

/* ============ Section head ============ */
.pd-head { display: flex; align-items: center; gap: 10px; margin: 30px 0 16px; }
.pd-head h2 { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 0; display: flex; align-items: center; gap: 10px; }
.pd-head .livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); animation: live-pulse 1.6s ease-in-out infinite; }
.pd-head .count { font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute); margin-left: auto; }

/* ============ Live carousel ============ */
.pd-carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 4px 18px 14px; scrollbar-width: none; }
.pd-carousel::-webkit-scrollbar { display: none; }
.pd-carousel .deal { flex: 0 0 86%; scroll-snap-align: center; }

/* ============ Deal card ============ */
.deal {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; cursor: pointer; transition: 0.18s cubic-bezier(0.2,0.7,0.3,1);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.deal:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.deal.live { border-color: rgba(63,209,139,0.25); }
.deal.live::before { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(300px 150px at 50% 0%, rgba(63,209,139,0.07), transparent 60%); }
.deal.locked { opacity: 0.72; }
.deal.locked::after { content:""; position:absolute; inset:0; pointer-events:none; background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(0,0,0,0.04) 22px 23px); border-radius: var(--r-lg); }

.deal-head { display: flex; gap: 14px; align-items: center; position: relative; }
.deal-logo { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 22px; color: #04221F; }
.deal-logo.a { background: linear-gradient(135deg, #6BE3D6, #6E7CFF); }
.deal-logo.b { background: linear-gradient(135deg, #A878FF, #6E7CFF); }
.deal-logo.c { background: linear-gradient(135deg, #F8D77F, #E29A6C); }
.deal-logo.d { background: linear-gradient(135deg, #3FD18B, #6BE3D6); }
.deal-logo.e { background: linear-gradient(135deg, #B8F1FF, #3D8FC9); }
.deal-id { flex: 1; min-width: 0; }
.deal-name { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; }
.deal-cat { font-family: var(--f-mono); font-size: 11px; color: var(--ink-mute); margin-top: 3px; letter-spacing: 0.04em; }
.deal-status { position: absolute; top: 0; right: 0; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.deal-status.live { color: var(--success); background: rgba(63,209,139,0.10); border: 1px solid rgba(63,209,139,0.3); }
.deal-status.upcoming { color: var(--warning); background: rgba(242,181,68,0.10); border: 1px solid rgba(242,181,68,0.3); }
.deal-status.closed { color: var(--ink-mute); background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); }

.deal-desc { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; margin: 14px 0 0; }

/* key metrics */
.deal-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.deal-metric { }
.deal-metric .k { font-family: var(--f-mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.deal-metric .v { font-family: var(--f-display); font-weight: 600; font-size: 14px; margin-top: 4px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* countdown */
.deal-countdown { margin-top: 14px; padding: 12px 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.deal-countdown .lbl { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.deal-countdown .time { font-family: var(--f-mono); font-size: 16px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.deal-countdown.upcoming .time { color: var(--warning); }

/* allocation bar */
.deal-alloc { margin-top: 12px; }
.deal-alloc .head { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--ink-mute); margin-bottom: 6px; }
.deal-alloc .head b { color: var(--ink); font-weight: 600; }
.deal-alloc .track { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.deal-alloc .track > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }

/* your allocation / locked CTA */
.deal-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.deal-yours { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.deal-yours .k { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.deal-yours .v { font-family: var(--f-display); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.deal-cta { padding: 11px 18px; border-radius: 999px; background: var(--accent); color: #04221F; border: 0; font-family: var(--f-display); font-weight: 700; font-size: 13px; cursor: pointer; transition: 0.15s; white-space: nowrap; }
.deal-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(107,227,214,0.3); }
.deal-locked-cta { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(242,181,68,0.05); border: 1px solid rgba(242,181,68,0.2); border-radius: var(--r-md); }
.deal-locked-cta .lock { width: 30px; height: 30px; border-radius: 8px; background: rgba(242,181,68,0.1); color: var(--warning); display: grid; place-items: center; flex-shrink: 0; }
.deal-locked-cta .lock svg { width: 16px; height: 16px; }
.deal-locked-cta .txt { min-width: 0; flex: 1; }
.deal-locked-cta .txt .a { font-family: var(--f-display); font-weight: 600; font-size: 13px; }
.deal-locked-cta .txt .b { font-family: var(--f-mono); font-size: 10px; color: var(--ink-mute); margin-top: 2px; }
.deal-locked-cta .up { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warning); font-weight: 600; white-space: nowrap; }

/* early access note */
.deal-early { margin-top: 10px; font-family: var(--f-mono); font-size: 10px; color: var(--ink-dim); letter-spacing: 0.04em; display: flex; align-items: center; gap: 6px; }
.deal-early svg { width: 12px; height: 12px; color: var(--accent); }

/* ============ Vertical lists (upcoming/closed) ============ */
.pd-list { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* closed deal compact row shows vesting status not fake ROI */
.deal.closed-row { cursor: pointer; }
.deal-vest-mini { margin-top: 14px; }
.deal-vest-mini .lbl { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.vest-track { display: flex; gap: 4px; }
.vest-stage { flex: 1; text-align: center; }
.vest-stage .bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.06); position: relative; overflow: hidden; }
.vest-stage .bar::after { content:""; position:absolute; inset:0; border-radius:999px; background: var(--success); width: 0; }
.vest-stage.released .bar::after { width: 100%; }
.vest-stage.pending .bar::after { width: 0; }
.vest-stage .t { font-family: var(--f-mono); font-size: 8px; color: var(--ink-mute); margin-top: 5px; letter-spacing: 0.04em; }
.vest-stage.released .t { color: var(--success); }

/* ============ Empty state ============ */
.pd-empty { text-align: center; padding: 70px 24px; }
.pd-empty .mark { width: 64px; height: 64px; margin: 0 auto 20px; opacity: 0.6; }
.pd-empty .mark svg { width: 100%; height: 100%; }
.pd-empty h3 { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 8px; }
.pd-empty p { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin: 0 auto; max-width: 38ch; }

/* ============ Detail page (modal / panel) ============ */
.pd-modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(5,7,13,0.85); backdrop-filter: blur(8px); display: none; align-items: flex-end; justify-content: center; }
.pd-modal-backdrop.open { display: flex; }
.pd-modal { width: 100%; max-width: 600px; max-height: 94vh; background: var(--bg-1); border: 1px solid var(--line-strong); border-radius: var(--r-xl) var(--r-xl) 0 0; display: flex; flex-direction: column; overflow: hidden; animation: sheet-up 0.28s cubic-bezier(0.2,0.7,0.3,1); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pd-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.pd-modal-head .t { font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.pd-modal-head .close { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.pd-modal-head .close:hover { background: rgba(255,255,255,0.08); color: var(--ink); }
.pd-modal-body { padding: 22px 20px; overflow-y: auto; flex: 1; }

.pd-detail-hero { display: flex; gap: 16px; align-items: center; }
.pd-detail-hero .logo { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 26px; color: #04221F; }
.pd-detail-hero .name { font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.pd-detail-hero .cat { font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute); margin-top: 3px; }
.pd-detail-section { margin-top: 22px; }
.pd-detail-section .lbl { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.pd-detail-section p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0; }

.pd-tok-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-tok { padding: 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--r-md); }
.pd-tok .k { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.pd-tok .v { font-family: var(--f-display); font-weight: 600; font-size: 16px; margin-top: 5px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* vesting timeline (visual, prominent) */
.vest-timeline { position: relative; padding-left: 6px; }
.vest-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; position: relative; }
.vest-row:not(:last-child)::before { content:""; position: absolute; left: 13px; top: 32px; bottom: -14px; width: 2px; background: var(--line-strong); }
.vest-row.released:not(:last-child)::before { background: var(--success); }
.vest-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink-mute); background: var(--bg-0); display: grid; place-items: center; z-index: 1; }
.vest-row.released .vest-dot { border-color: var(--success); background: var(--success); }
.vest-row.released .vest-dot svg { width: 14px; height: 14px; color: #04221F; }
.vest-row.now .vest-dot { border-color: var(--warning); animation: now-pulse 2s ease-in-out infinite; }
@keyframes now-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(242,181,68,0.5); } 50% { box-shadow: 0 0 0 8px rgba(242,181,68,0); } }
.vest-info .stage { font-family: var(--f-display); font-weight: 600; font-size: 14px; letter-spacing: -0.005em; }
.vest-info .when { font-family: var(--f-mono); font-size: 11px; color: var(--ink-mute); margin-top: 2px; letter-spacing: 0.04em; }
.vest-pct { font-family: var(--f-mono); font-size: 14px; font-weight: 600; color: var(--ink); }
.vest-row.released .vest-pct { color: var(--success); }

/* your allocation box */
.pd-alloc-box { margin-top: 22px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(107,227,214,0.08), rgba(110,124,255,0.05)); border: 1px solid rgba(107,227,214,0.22); }
.pd-alloc-box.locked { background: rgba(242,181,68,0.05); border-color: rgba(242,181,68,0.2); }
.pd-alloc-box .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.pd-alloc-box.locked .k { color: var(--warning); }
.pd-alloc-box .v { font-family: var(--f-display); font-weight: 700; font-size: 32px; letter-spacing: -0.025em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pd-alloc-box .sub { font-family: var(--f-mono); font-size: 11px; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0.04em; }

/* buy input */
.pd-buy-input { margin-top: 16px; }
.pd-buy-input label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 8px; }
.pd-amount { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.pd-amount:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(107,227,214,0.1); }
.pd-amount input { flex: 1; background: transparent; border: 0; color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 22px; outline: none; min-width: 0; }
.pd-amount .max { font-family: var(--f-mono); font-size: 11px; color: var(--accent); cursor: pointer; padding: 6px 10px; border-radius: 999px; background: rgba(107,227,214,0.08); }
.pd-amount .cur { font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute); }

.pd-modal-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom,0px)); border-top: 1px solid var(--line); flex-shrink: 0; background: var(--bg-2); }
.pd-buy-now { width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--accent), #4FD0E8); color: #04221F; font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 8px 28px rgba(107,227,214,0.28); transition: 0.15s; }
.pd-buy-now:hover { transform: translateY(-1px); }
.pd-buy-now:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.pd-buy-now.locked { background: rgba(242,181,68,0.12); color: var(--warning); box-shadow: none; }
.pd-buy-now .spinner { width: 18px; height: 18px; border: 2px solid rgba(4,34,31,0.3); border-top-color: #04221F; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pd-risk-note { font-family: var(--f-mono); font-size: 10px; line-height: 1.5; color: var(--ink-dim); margin-top: 10px; letter-spacing: 0.02em; text-align: center; }

/* ============ Desktop ============ */
@media (min-width: 768px) {
  .pd-carousel { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 4px 0; }
  .pd-carousel .deal { flex: none; }
  .pd-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .pd-carousel { grid-template-columns: 1fr 1fr 1fr; }
  .pd-list { grid-template-columns: 1fr 1fr 1fr; }
  .pd-modal-backdrop { align-items: stretch; justify-content: flex-end; }
  .pd-modal { max-width: 480px; max-height: 100vh; height: 100vh; border-radius: 0; border-top: 0; border-right: 0; animation: panel-in 0.28s cubic-bezier(0.2,0.7,0.3,1); }
  @keyframes panel-in { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
}
@media (max-width: 420px) { .pd-tok-grid { grid-template-columns: 1fr; } }

/* ============ RTL ============ */
[dir="rtl"] .pd-lang-menu { right: auto; left: 0; }
[dir="rtl"] .pd-back svg { transform: scaleX(-1); }
[dir="rtl"] .deal-status { right: auto; left: 0; }
[dir="rtl"] .vest-row:not(:last-child)::before { left: auto; right: 13px; }
[dir="rtl"] .vest-timeline { padding-left: 0; padding-right: 6px; }
[dir="rtl"] .deal-countdown .time, [dir="rtl"] .deal-metric .v, [dir="rtl"] .pd-alloc-box .v, [dir="rtl"] .mono { direction: ltr; }
[dir="rtl"][lang="fa"] body { font-family: var(--f-fa); }
[dir="rtl"][lang="ar"] body { font-family: var(--f-ar); }
@media (min-width: 1080px) {
  [dir="rtl"] .pd-modal-backdrop { justify-content: flex-start; }
  [dir="rtl"] .pd-modal { border-right: 1px solid var(--line-strong); border-left: 0; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* focus */
.pd-chip:focus-visible, .deal:focus-visible, .deal-cta:focus-visible, .pd-buy-now:focus-visible, .pd-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
