/* ═══════════════════════════════════════════════════════════════════════════
 * portal-edges.css  -  visible edges for cards, panels, modals and non-solid buttons.
 *
 * Why: with the palette-following recolour a card is only a few % off the page, so
 * sections blended together. This sheet gives every card-like surface an edge WITHOUT
 * changing its size:
 *   1. a surface that already had a (faint) border keeps its border WIDTH and only gets
 *      a stronger COLOUR  ->  zero layout shift;
 *   2. a surface that had no border gets an INSET OUTLINE (outline-offset = -width), which
 *      is drawn inside the border box, takes no space, follows border-radius, and - unlike
 *      an inset box-shadow - is not hidden by a child's background and is not overwritten
 *      by a :hover / state rule that sets its own box-shadow.
 * Tokens (assets/theme.css :root, all derived from --seed-canvas / --seed-accent / --seed-fg):
 *   --border-pink       strong edge  (cards, panels, modals, tab bars)
 *   --border-pink-soft  lighter edge (chips, grid cells, small controls)
 * Solid / gradient accent buttons, image cards, widget artwork, dividers and semantic
 * (success / danger / warning) states are deliberately NOT touched.
 * Selectors are prefixed with `body ` (`html ` when the original starts with body) so they
 * out-rank the same selector in the page sheets regardless of load order, while a
 * page's own :hover / :focus rule (higher specificity) still wins for its state colour.
 * ═══════════════════════════════════════════════════════════════════════════ */

/* 1a. bordered cards / panels / inputs / modals: stronger border colour (width unchanged) */
body .pt-jackpot,
body .pt-field,
body .fp-card,
body .fp-input,
body .pt-legacy .form-control,
body .pt-legacy .form-select,
body .accedit-section,
body .accedit-input,
body #mp-modal-addbank .modal-content,
body #cshr-section-account .mp-bnk-stat,
body #cshr-section-changepass .mp-ae-section,
body #cshr-section-minigame .mp-game-card,
body #cshr-section-coupon .mp-prom-search,
body #cshr-section-coupon .mhph-codebox input,
body #cshr-section-referral .mp-aff-tabs,
body #cshr-section-referral .mp-aff-card,
body #cshr-section-referral .mp-aff-reflink,
body #cshr-section-referral .mp-aff-balance,
body #cshr-section-referral .mp-aff-dates input[type="date"],
body #cshr-section-referral .mp-aff-dates input[type="month"],
body #cshr-section-gift .mp-gift-points-bar,
body #cshr-section-gift .mp-gift-card,
body #cashbackModal .modal-content,
body #cashbackModal .table-responsive,
body #cashbackModal .form-control,
html body #luckyDrawModal .ldx-shell,
html body #luckyDrawModal .ldx-result-card,
body .aff-header,
body .aff-tabs,
body .aff-section,
body .aff-ref__input,
body .aff-input,
body .aff-select,
body .aff-input-group,
body .aff-balance,
body .bank-section,
body .bank-selector,
body .bank-modal .modal-content,
body .bank-modal .form-control,
body .casino-panel-filter,
body .dep-card,
body #page-wrapper div[id$="Element"],
body #page-wrapper .form-control,
body #page-wrapper .form-select,
body .pt-report .report-filter,
body .pt-report .report-filter .form-control,
body .pt-report .report-table-card,
body .games-section-card,
body .mini-game-card,
body .game-section-card,
body .lotto-section,
body .date-picker-wrap,
body .result-card,
body .result-tile,
body .result-mini-card,
body .lotto-closed__result-card,
body .pt-txn .trx-stat-box,
body .pt-txn .trx-date-filter,
body .pt-txn .trx-form-control,
body #modalDetailPoy .modal-mini-stat__box,
body .yeekee-card,
body .dep-panel,
body #page-wrapper .form-control,
body .bxpoy-setall__input {
  border-color: var(--border-pink);
}

/* 1b. bordered chips / cells / small controls */
body .fp-header__back,
body #cshr-section-coupon .mhph-tab,
body #cshr-section-referral .mp-aff-igrp,
body #cashbackModal .modal-footer .btn-secondary,
body .bank-back,
body .result-mini-card__cell,
body .lotto-header__action-btn,
body .lotto-extra-opts .btn-option,
body .lotto-panel-nav .nav-link,
body .lotto-rood__btn,
body .win-type-tile,
body .win-check-label,
body .win-num-display,
body .pt-footer__banks li {
  border-color: var(--border-pink-soft);
}

/* 1c. same as 1a, where the page rule is !important */
body .bet-panel,
body .shortcut-panel-new,
body .new-number-display,
body .new-keypad .num-btn,
body .new-odds-display,
body .payout-section-card,
body .bxpoy-coupon,
body .bxpoy-summary,
body .play-tools,
body .lotto-closed,
body .win-group-panel {
  border-color: var(--border-pink) !important;
}

/* 1d. same as 1b, where the page rule is !important */
body .lotto-header__timer-badge,
body .lotto-number-grid .panghuay_number,
body .play-tools button,
body .bet-subtype-area .btn-type,
body .shortcut-grid-new button,
body .new-keypad .clear-btn,
body .stmt-header__back,
body .lotto-quick-price__chip,
body .extra-action-btn,
body .bxpoy-chips .lotto-quick-price__chip,
body .lotto-closed a.btn {
  border-color: var(--border-pink-soft) !important;
}

/* 2a. borderless cards / panels / modals / tab bars: inset ring */
body .pt-tabs,
body .pt-state,
body .pt-act,
body .pt-dialog,
body .pt-me,
body .modal-content,
body .pt-footer__pay,
body .pt-footer__bar,
body .pt-public .pt-pub-hero,
body .pt-public .pt-pub-act,
body .pt-status__card,
body .pt-legacy .card,
body .pt-casino .casino-nav-wrap,
body .pt-casino .hot-provider-row,
body .pt-report .report-panel,
body .pt-lottery .lotto-nav-wrap,
body .pt-txn .trx-main-tabs,
body .pt-txn .trx-main-tab,
body .pt-txn .trx-summary-card,
body .pt-txn .trx-filter-wrap,
body .pt-promo .promo-nav-wrap,
body .coupon-v2-card,
body .stmt-tabs,
body .result-tile--gold,
body .cshr-modal,
body .cshr-tabs,
body .cshr-stmt .stmt-tabs,
body #modalSelectCoupon .modal-content,
body #modalDetailPoy .modal-content,
body #promo-v2-game-guard-card {
  outline: 1.5px solid var(--border-pink); outline-offset: -1.5px;
}

/* 2b. borderless non-solid buttons and chips: softer inset ring */
body .pt-tabs__bar,
body .pt-lottery .prov-tabs,
body .pt-promo .promo-tabs-nav,
body .pt-txn .trx-filter-tabs,
body .pt-sub .g-loading,
body .pt-linklist a,
body .pt-linklist button,
body #modalDetailPoy .btn-secondary,
body .lotto-panel-subtab,
body .coupon-metric,
body .stmt-header__back,
body .lotto-header__chip,
body .lotto-types__pill .pill-label {
  outline: 1.5px solid var(--border-pink-soft); outline-offset: -1.5px;
}

/* keyboard focus: the ring above uses `outline`, so restore a clearly visible focus indicator on the ones that are links/buttons */
body .pt-linklist a:focus-visible,
body .pt-linklist button:focus-visible,
body .pt-txn .trx-main-tab:focus-visible,
body #modalDetailPoy .btn-secondary:focus-visible,
body .stmt-header__back:focus-visible {
  outline: 2px solid var(--seed-accent); outline-offset: 2px;
}
