/* Shared secondary actions and account navigation. Uses the existing theme tokens. */
:is(a,button).ui-action {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:38px; max-width:100%; padding:9px 13px;
  border:1px solid var(--border-strong); border-radius:11px;
  color:var(--text-mute); background:linear-gradient(160deg,var(--surface-2),var(--surface));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 3px 10px rgba(0,0,0,.08);
  font:600 12px/1.4 'Inter',sans-serif; text-decoration:none; cursor:pointer;
  transition:color .2s,border-color .2s,background .2s,box-shadow .2s,transform .2s;
}
:is(a,button).ui-action:hover { color:var(--text); border-color:var(--accent-line); background:var(--grad-fire-soft); box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 5px 18px -8px rgba(255,90,31,.2); transform:translateY(-1px); }
:is(a,button).ui-action:active { transform:translateY(0); }
:is(a,button).ui-action:focus-visible { outline:2px solid var(--flame-2); outline-offset:3px; }
:is(a,button).ui-action:disabled { opacity:.5; transform:none; cursor:default; }
.ui-action .ic,.btn .ui-action-icon { width:16px; height:16px; flex:none; stroke-width:1.8; }
[data-ui-icon] { display:inline-flex; align-items:center; justify-content:center; flex:none; vertical-align:middle; }
[data-ui-icon] > .ic { width:16px; height:16px; flex:none; }
.ui-action > :is(svg,[data-ui-icon]):last-child { color:var(--flame-3); }
.account-catalog-back.ui-action { margin-bottom:26px; padding:10px 14px; font-size:12px; }
.em-order-link.ui-action { flex:none; min-height:35px; padding:8px 11px; font-size:11px; max-width:none; white-space:nowrap; }
.messages-profile-link.ui-action { flex:none; font-size:12px; }
.em-request-data.ui-action { margin-left:auto; padding:8px 10px; font-size:11px !important; }
.ember-footer-contact .ember-footer-support.ui-action { display:inline-flex; margin-top:14px; padding:9px 11px; border:1px solid var(--border-strong); background:var(--surface); color:var(--text); font-size:11px; }
.digital-page .digital-back.ui-action { width:fit-content; margin-bottom:24px; }
.order-meta .order-id-link.ui-action { min-height:29px; padding:5px 8px; font-size:10px; border-radius:8px; }
.vpn-device-list .ui-action { min-height:32px; padding:6px 9px; font-size:10px; }
.vpn-dash-help .ui-action,.vpn-connect-modal .ui-action { flex:none; }
.steam-text-link.ui-action,.hero-card-cta.ui-action { width:fit-content; }
.btn :is(.ic,[data-ui-icon]),.rent-modal-submit :is(.ic,[data-ui-icon]),.vpn-plan-select :is(.ic,[data-ui-icon]) { vertical-align:middle; flex:none; }
.btn > [data-ui-icon] { margin-left:3px; }
.vpn-plan-select,.rent-game-meta > button { display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.game-tile-arrow > .ic { width:18px; height:18px; }
.site-header .logo { flex:none; }
.site-header .nav { gap:4px; }
.site-header .nav > .nav-link { gap:6px; padding:10px 9px; border:1px solid transparent; border-radius:10px; font-size:12px; line-height:1.35; white-space:nowrap; }
.site-header .nav > .nav-link:hover { border-color:var(--border); background:var(--surface); }
.site-header .nav > .nav-link.is-active { border-color:var(--accent-line); color:var(--flame-3); background:var(--grad-fire-soft); }
.site-header .nav > .nav-link .ic { width:17px; height:17px; opacity:1; stroke-width:1.6; padding:5px; box-sizing:content-box; border-radius:8px; color:#ffab84; background:rgba(255,125,75,.08); transition:transform .2s ease,background .2s ease; }
.site-header .nav > .nav-link:hover .ic { background:rgba(255,125,75,.17); transform:translateY(-2px); }
.site-header .nav > .nav-link.is-active .ic { color:#fff; background:var(--grad-fire); }

/* Shared category polish: one EMBER visual language across catalogues. */
:is(.accounts-page,.digital-page,.rent-page,.vpn-page,.boost-page,.profile-page) .eyebrow,
:is(.accounts-page,.digital-page,.rent-page,.vpn-page,.boost-page,.profile-page) [class*="overline"],
:is(.accounts-page,.digital-page,.rent-page,.vpn-page,.boost-page,.profile-page) [class*="kicker"] {
  letter-spacing:.16em;
  color:#ff9870;
}
:is(.accounts-page,.digital-page,.rent-page,.vpn-page,.boost-page) h1 {
  text-wrap:balance;
}
:is(.accounts-page,.digital-page,.rent-page,.vpn-page,.boost-page) :is(.game-search,.digital-history,.rent-balance-note,.vpn-section-note) {
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}

/* Account catalogue */
.accounts-page .accounts-hero { padding-top:clamp(92px,10vw,142px); }
.accounts-page .accounts-hero h1 { max-width:680px; }
.accounts-page .games-section { padding-top:12px; }
.accounts-page .game-tile,
.accounts-page .configurable-card {
  border-radius:18px;
  box-shadow:0 14px 34px rgba(0,0,0,.14);
}
.accounts-page .game-tile:hover,
.accounts-page .game-tile.active { box-shadow:0 18px 42px rgba(255,72,27,.12); }

/* Topup and subscriptions */
.digital-page .digital-hero { padding-top:clamp(60px,7vw,96px); }
.digital-page .digital-hero h1 { max-width:760px; text-wrap:balance; }
.digital-page .digital-hero p { max-width:570px; }
.digital-page :is(.topup-workspace,.subscription-group,.subscription-help,.services-related) {
  border-color:rgba(255,255,255,.11);
  box-shadow:0 16px 42px rgba(0,0,0,.12);
}
.digital-page :is(.digital-platform,.subscription-card,.region-service-card) {
  border-radius:15px;
  transition:transform .25s ease,border-color .25s ease,background .25s ease,box-shadow .25s ease;
}
.digital-page :is(.digital-platform,.subscription-card,.region-service-card):hover {
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(0,0,0,.16);
}
.digital-page .subscription-grid { gap:16px; }
.digital-page .subscription-card { min-height:230px; padding:20px; border:1px solid rgba(255,255,255,.11); background:linear-gradient(145deg,rgba(35,28,31,.92),rgba(17,16,19,.98)); }
.digital-page .subscription-card-top { margin-bottom:20px; }
.digital-page .subscription-card-tag { border-radius:999px; letter-spacing:.08em; }
.digital-page .subscription-description { color:#a0a6ac; line-height:1.55; }
.digital-page .subscription-card-bottom { margin-top:auto; padding-top:18px; border-top:1px solid rgba(255,255,255,.08); }
.digital-page .subscription-filters button[aria-pressed=true] { box-shadow:0 6px 18px rgba(255,67,27,.13); }
.digital-page .region-services-grid { gap:16px; }
.digital-page .region-service-card { min-height:210px; padding:20px; border:1px solid rgba(255,255,255,.11); background:linear-gradient(145deg,rgba(35,28,31,.92),rgba(17,16,19,.98)); }
.digital-page :is(.digital-platform[aria-pressed=true],.subscription-card.is-selected,.region-service-card.is-selected) {
  box-shadow:0 0 0 1px rgba(255,128,73,.14),0 14px 30px rgba(255,67,27,.08);
}
.digital-page .digital-section-label > span { display:grid; place-items:center; width:24px; height:24px; border:1px solid rgba(255,137,83,.28); border-radius:8px; background:rgba(255,113,58,.08); }

/* Rental catalogue */
.rent-page .rent-hero { padding-top:clamp(74px,9vw,145px); }
.rent-page .rent-hero-card { box-shadow:0 20px 60px rgba(255,61,27,.08); }
.rent-page .rent-games { gap:16px; }
.rent-page .rent-game { border-radius:20px; }
.rent-page .rent-game-icon { box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }

/* VPN */
.vpn-page .vpn-main { padding-top:clamp(48px,7vw,86px); }
.vpn-page .vpn-hero-panel,
.vpn-page .vpn-plan-card,
.vpn-page .vpn-locations,
.vpn-page .vpn-device-picker { box-shadow:0 16px 44px rgba(0,0,0,.15); }
.vpn-page .vpn-plan-card { border-radius:19px; }
.vpn-page .vpn-plan-card.popular { box-shadow:0 18px 46px rgba(255,68,27,.1); }

/* Booster and profile surfaces */
.boost-page .boost-hero { padding-top:clamp(72px,9vw,140px); }
.boost-page :is(.boost-card,.boost-price-box,.boost-type-opt span) { border-radius:18px; }
.profile-shell { padding-top:clamp(24px,4vw,58px); }
.profile-card,.profile-nav,.profile-sidebar-footer { border-radius:18px; }

@media(max-width:700px) {
  .digital-page .digital-hero { padding-top:46px; }
  .accounts-page .accounts-hero { padding-top:78px; }
  .rent-page .rent-hero { padding-top:66px; }
  .vpn-page .vpn-main { padding-top:35px; }
}
.site-header { box-shadow: 0 1px 0 rgba(255,255,255,.02); }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 1px 0 rgba(255,126,76,.12); }
.site-header .nav > .nav-link { letter-spacing: -.01em; }
.site-header .nav > .nav-link.is-active { box-shadow: inset 0 -2px 0 var(--flame-2); }
.site-header .nav-btn-primary { box-shadow: 0 7px 20px -10px rgba(255,90,31,.8); }
.site-header .nav-divider { margin:0 7px; height:26px; flex:none; }
.site-header .nav-user { display:flex; align-items:center; gap:0; max-width:none; padding:3px; border:1px solid var(--border-strong); border-radius:13px; background:linear-gradient(145deg,var(--surface-2),var(--surface)); box-shadow:inset 0 1px 0 rgba(255,255,255,.035); cursor:default; transition:border-color .2s,box-shadow .2s; }
.site-header .nav-user:hover,.site-header .nav-user:focus-within,.site-header .nav-user.open { border-color:var(--accent-line); }
.site-header .hdr-profile-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:38px; padding:3px 9px 3px 3px; border:0; border-radius:9px; color:var(--text); background:transparent; font:650 13px 'Inter',sans-serif; cursor:pointer; transition:background .2s; }
.site-header .hdr-profile-button:hover,.site-header .nav-user.open .hdr-profile-button { background:var(--surface); }
.site-header .nav-user .avatar { display:grid; place-items:center; width:31px; height:31px; flex:none; border:1px solid rgba(255,180,130,.2); border-radius:9px; color:white; background:var(--grad-fire); font:700 12px 'Inter',sans-serif; box-shadow:0 3px 10px -5px rgba(255,90,31,.4); }
.hdr-user-name { max-width:92px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.site-header .nav-user .hdr-balance-button { position:relative; min-height:38px; padding:4px 6px 4px 12px; gap:10px; border:0; border-radius:9px; background:transparent; box-shadow:none; }
.site-header .nav-user .hdr-balance-button::before { content:''; position:absolute; top:7px; bottom:7px; left:0; width:1px; background:var(--border-strong); }
.site-header .nav-user .hdr-balance-button:hover { background:var(--grad-fire-soft); box-shadow:none; }
.hdr-balance-copy { display:grid; gap:3px; text-align:left; }
.hdr-balance-copy > small { color:var(--text-dim); font:500 9px/1 'Inter',sans-serif; }
.site-header .nav-user .hdr-balance-button .balance { padding:0; max-width:105px; overflow:hidden; text-overflow:ellipsis; color:var(--flame-3); font:700 13px/1.2 'Inter',sans-serif; }
.site-header .hdr-balance-plus { width:23px; height:23px; border:1px solid var(--accent-line); border-radius:7px; color:var(--flame-3); background:rgba(255,120,65,.08); transition:background .2s; }
.site-header .hdr-balance-plus .ic { width:13px; height:13px; }
.site-header .hdr-balance-button:hover .hdr-balance-plus { background:rgba(255,120,65,.18); }
.site-header :is(.hdr-profile-button,.nav-btn,.nav-link):focus-visible { outline:2px solid var(--flame-2); outline-offset:3px; }
.site-header .nav-btn { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:9px 13px; border:1px solid var(--border-strong); border-radius:11px; color:var(--text); background:var(--surface); font-size:12px; }
.site-header .nav-btn-primary { border-color:transparent; background:var(--grad-fire); color:white; }
.site-header .user-menu { display:flex; visibility:hidden; opacity:0; pointer-events:none; transform:translateY(-6px); width:290px; min-width:0; max-width:calc(100vw - 32px); top:calc(100% + 12px); padding:9px; gap:5px; border-radius:17px; background:var(--bg-elev); box-shadow:var(--shadow-pop); transition:opacity .18s,transform .18s,visibility .18s; }
.site-header .user-menu.open { visibility:visible; opacity:1; pointer-events:auto; transform:translateY(0); animation:none; }
.hdr-menu-identity { display:flex; align-items:center; gap:11px; padding:10px 8px 13px; }
.site-header .hdr-menu-identity > .avatar { width:39px; height:39px; border-radius:12px; font-size:15px; }
.hdr-menu-identity > div { display:grid; gap:5px; min-width:0; flex:1; }
.hdr-menu-identity strong { color:var(--text); font-size:13px; font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hdr-menu-identity small { color:var(--text-mute); font-size:10px; font-weight:400; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hdr-menu-role { display:inline-flex; align-items:center; gap:5px; width:fit-content; margin-top:2px; padding:4px 6px; border:1px solid var(--accent-line); border-radius:5px; background:var(--grad-fire-soft); color:var(--flame-3); font-size:9px; }
.site-header .user-menu-item { gap:10px; min-height:46px; padding:7px 9px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--text-mute); font-size:12px; font-weight:500; transition:color .2s,background .2s,border-color .2s; }
.site-header .user-menu-item:hover { color:var(--text); background:var(--surface-2); border-color:var(--border-strong); }
.hdr-menu-icon { display:grid; place-items:center; flex:none; width:29px; height:29px; border:1px solid var(--border); border-radius:8px; color:var(--text-mute); background:var(--bg-2); }
.site-header .user-menu-item .hdr-menu-icon .ic { width:16px; height:16px; opacity:1; stroke-width:1.7; }
.site-header .user-menu-item .hdr-menu-arrow { width:13px; height:13px; margin-left:auto; color:var(--text-dim); transition:transform .2s,color .2s; }
.site-header .user-menu-item:hover .hdr-menu-arrow { transform:translateX(2px); color:var(--flame-3); }
.site-header .user-menu-item .ember-message-count { margin-left:auto; }
.site-header .user-menu-item .ember-message-count:not([hidden]) + .hdr-menu-arrow { margin-left:0; }
.site-header .user-menu-item.danger { color:var(--text-mute); }
.site-header .user-menu-item.danger:hover { color:var(--flame-3); border-color:var(--accent-line); background:var(--grad-fire-soft); }
.site-header .user-menu-divider { margin:3px 2px; }
@media(max-width:1100px) and (min-width:1001px) {
  .site-header .nav > .nav-link { padding-left:7px; padding-right:7px; font-size:11px; }
  .hdr-user-name { max-width:62px; }
  .site-header .nav-divider { margin:0 4px; }
}
@media(max-width:1000px) {
  .site-header .nav.mobile-open { gap:5px; padding:50px 10px 10px; border:1px solid var(--border-strong); border-radius:16px; background:var(--bg-elev); }
  .site-header .nav.mobile-open > .nav-link { min-height:43px; padding:10px 12px; border:1px solid var(--border); border-radius:10px; font-size:13px; background:var(--surface); }
  .site-header .nav.mobile-open > .nav-link.is-active { border-color:var(--accent-line); background:var(--grad-fire-soft); }
  .site-header .hdr-profile-button { min-height:35px; padding:3px 8px 3px 3px; gap:7px; }
  .site-header .nav-user .hdr-balance-button { min-height:35px; padding:5px 6px 5px 10px; gap:7px; }
  .hdr-balance-copy > small { display:none; }
  .hdr-user-name { max-width:80px; }
  .site-header .hdr-profile-button > .chev { display:block; }
  .site-header .nav-user .avatar { width:29px; height:29px; border-radius:8px; }
}
@media(max-width:600px) {
  .hdr-profile-button .hdr-user-name,.hdr-profile-button > .chev { display:none !important; }
  .site-header .hdr-profile-button { width:34px; min-height:34px; padding:3px; border-radius:8px; }
  .site-header .hdr-profile-button .avatar { width:27px; height:27px; }
  .site-header .nav-user .hdr-balance-button { min-height:34px; border-radius:8px; gap:6px; padding:5px 5px 5px 10px; }
  .site-header .nav-user .hdr-balance-button .balance { font-size:12px; max-width:82px; }
  .site-header .hdr-balance-plus { width:20px; height:20px; border-radius:6px; }
  .site-header .nav-user { gap:0; padding:2px; border-radius:11px; }
  .site-header .header-inner > .nav { gap:6px; }
  .messages-page-title { align-items:flex-end; gap:12px; }
  .messages-profile-link.ui-action { min-height:35px; padding:8px 10px; font-size:11px; }
  .em-order-link.ui-action { min-height:34px; padding:7px 9px; font-size:10px; gap:5px; }
  .em-thread-head:has(.em-order-link:not([hidden])) { flex-wrap:wrap; gap:10px; }
  .em-thread-head:has(.em-order-link:not([hidden])) .em-thread-head-copy { flex-basis:calc(100% - 50px); }
  .em-thread-head:has(.em-order-link:not([hidden])) .em-order-link { margin-left:auto; }
}
@media(prefers-reduced-motion:reduce) {
  :is(a,button).ui-action,.site-header .nav-user,.hdr-profile-button,.site-header .hdr-balance-button,.site-header .nav-link,.site-header .user-menu-item,.site-header .hdr-menu-arrow { transition:none; }
  :is(a,button).ui-action:hover { transform:none; }
  .site-header .user-menu,.site-header .user-menu.open { transition:none; animation:none; }
}
