/* ============================================================
   LudoPanda PandaPay Clean UI V13
   One presentation layer. No legacy visual overrides required.
   ============================================================ */

:root {
  --bg: #050505;
  --surface: #111112;
  --surface-2: #171718;
  --surface-3: #1d1d1f;
  --text: #ffffff;
  --muted: #a7a7aa;
  --muted-2: #858589;
  --gold: #ffd400;
  --gold-2: #d6a620;
  --line: rgba(255,255,255,.095);
  --line-strong: rgba(255,255,255,.14);
  --gold-line: rgba(255,212,0,.24);
  --green: #68da86;
  --red: #ff7d74;
  --radius-lg: 20px;
  --radius-md: 15px;
  --shadow: 0 14px 34px rgba(0,0,0,.28);
  --topbar-h: 66px;

  /* Easy manual spacing controls */
  --page-x: 12px;
  --page-top: 12px;
  --section-gap: 14px;
  --card-gap: 10px;
}

* { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(540px 260px at 85% 4%, rgba(255,212,0,.07), transparent 67%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
button { -webkit-tap-highlight-color: transparent; }
.shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  background: rgba(5,5,5,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.055);
}
.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
}
.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -.02em;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: #a0a0a4;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 650;
}
.back-game {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #111112;
  color: #f4f4f4;
  text-decoration: none;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .03em;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

/* App + tabs */
.app {
  padding: var(--page-top) var(--page-x) max(22px, env(safe-area-inset-bottom));
}
.service-nav {
  position: sticky;
  top: var(--topbar-h);
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0 calc(var(--page-x) * -1);
  padding: 9px var(--page-x) 10px;
  background: rgba(5,5,5,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-btn,
.ghost-btn,
.secondary-btn,
.link-btn,
.back-page,
.danger-link {
  cursor: pointer;
}
.nav-btn {
  min-width: 0;
  min-height: 48px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #131315;
  color: #f1f1f2;
  font-size: 11.5px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  white-space: normal;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.nav-btn.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, #ffdb22, #e8b71c);
  color: #080808;
  box-shadow: 0 9px 20px rgba(255,212,0,.13);
}

/* Pages */
.page { display: none; padding-top: 14px; }
.page.active { display: block; }
.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.section-head,
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  margin-bottom: 13px;
}
.section-head > div,
.page-title > div { min-width: 0; }
.section-head h2,
.page-title h2,
.auth-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 7.3vw, 31px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -.04em;
}

/* Home */
[data-page-panel="dashboard"] { padding-top: 13px; }
[data-page-panel="dashboard"] .section-head { margin-bottom: 12px; }
[data-page-panel="dashboard"] .section-head h2 { font-size: clamp(27px, 7.5vw, 32px); }
#refreshDashboard {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 13px;
  color: #fff;
}
.home-balance-card {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 var(--section-gap);
  padding: 13px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  background:
    radial-gradient(150px 80px at 100% 0, rgba(255,212,0,.105), transparent 72%),
    linear-gradient(145deg, #15140f, #101011 62%, #0c0c0d);
  box-shadow: var(--shadow);
}
.home-balance-copy { min-width: 0; }
.home-balance-copy > span {
  display: block;
  color: #bdbdc0;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 850;
}
.home-balance-copy > strong {
  display: block;
  margin: 3px 0 2px;
  color: #fff;
  font-size: 22px;
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -.025em;
}
.home-balance-copy > small {
  display: block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #99999d;
  font-size: 10.8px;
  line-height: 1.25;
}
.home-balance-badge {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255,212,0,.24);
  border-radius: 999px;
  background: rgba(255,212,0,.07);
  color: var(--gold);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .055em;
}
.home-balance-badge span { font-size: 9px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
}
.service-card {
  min-width: 0;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(95px 75px at 100% 100%, rgba(255,255,255,.026), transparent 72%),
    linear-gradient(150deg, #151516, #101011);
  color: #fff;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0,0,0,.16);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.service-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(255,212,0,.16);
  border-radius: 13px;
  background: rgba(255,212,0,.085);
  font-size: 21px;
  line-height: 1;
}
.service-card > span:nth-child(2) {
  min-width: 0;
  width: 100%;
}
.service-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -.015em;
}
.service-card small {
  display: block;
  margin-top: 6px;
  color: #a7a7ab;
  font-size: 11.5px;
  line-height: 1.38;
  font-weight: 500;
}
.service-card > b { display: none; }
.info-strip {
  min-height: 60px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(255,212,0,.13);
  border-radius: 17px;
  background: rgba(255,212,0,.035);
}
.info-strip > span {
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1.2;
}
.info-strip p {
  margin: 0;
  color: #aaaab0;
  font-size: 11px;
  line-height: 1.46;
}
.info-strip strong { color: #fff; font-weight: 900; }

/* Forms */
.page-title { align-items: center; }
.back-page {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #111113;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.form-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(150deg, #121213, #0e0e0f);
  box-shadow: var(--shadow);
}
.form-card label {
  display: block;
  margin-bottom: 13px;
  color: #c4c4c7;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 850;
}
.form-card label:last-of-type { margin-bottom: 13px; }
.form-card input,
.form-card select {
  width: 100%;
  min-height: 52px;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 14px;
  background: #141416;
  color: #fff;
  outline: none;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 750;
}
.form-card input::placeholder { color: #7f7f84; opacity: 1; }
.form-card input:focus,
.form-card select:focus {
  border-color: rgba(255,212,0,.58);
  box-shadow: 0 0 0 3px rgba(255,212,0,.075);
}
.field-wrap.hidden,
.hidden { display: none !important; }
.hint {
  display: block;
  margin: -3px 0 11px;
  color: #99999d;
  font-size: 11px;
  line-height: 1.4;
}
.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: .025em;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.primary-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: linear-gradient(180deg, #ffda1c, #e4b018);
  color: #080808;
  box-shadow: 0 9px 22px rgba(255,212,0,.12);
}
.primary-btn[disabled] { opacity: .48; cursor: not-allowed; }
.secondary-btn {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #151517;
  color: #fff;
}
.ghost-btn {
  border: 1px solid var(--line-strong);
  background: #131315;
  color: #fff;
}
.ghost-btn.compact { margin-left: auto; }

/* Orders */
.orders-list { display: grid; gap: 10px; }
.order-card,
.empty-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #111113;
}
.order-head { display: flex; justify-content: space-between; gap: 10px; }
.order-card h3 { margin: 0; font-size: 14px; line-height: 1.25; }
.order-card p { margin: 5px 0 0; color: #a1a1a6; font-size: 11.5px; line-height: 1.45; }
.order-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.pill {
  padding: 6px 8px;
  border-radius: 999px;
  background: #1a1a1c;
  color: #b4b4b7;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 750;
}
.pill.success { background: rgba(45,190,110,.12); color: #74e1a4; }
.pill.processing,
.pill.pending { background: rgba(255,212,0,.09); color: var(--gold); }
.pill.failed,
.pill.refunded,
.pill.manual_review { background: rgba(230,80,80,.11); color: #ff8b8b; }
.order-action { width: auto; min-height: 38px; margin-top: 10px; }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(6px);
}
.modal {
  width: min(100%, 560px);
  max-height: 88vh;
  overflow: auto;
  padding: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 22px 22px 14px 14px;
  background: #111113;
  box-shadow: 0 -18px 55px rgba(0,0,0,.52);
}
.modal-handle {
  width: 43px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 4px;
  background: #3b3b3f;
}
.modal h2 { margin: 0; font-size: 23px; line-height: 1.08; letter-spacing: -.025em; }
.modal-copy { margin: 9px 0 0; color: #a8a8ad; font-size: 13px; line-height: 1.5; }
.review-rows { display: grid; gap: 8px; margin: 14px 0; }
.review-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #171719;
}
.review-row span { color: #9b9ba0; font-size: 11px; }
.review-row strong { max-width: 65%; color: #fff; font-size: 11.5px; line-height: 1.35; text-align: right; word-break: break-word; }
.modal-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; }
.center { display: block; margin: 11px auto 0; }
.link-btn,
.danger-link {
  border: 0;
  background: none;
  padding: 8px;
  text-decoration: underline;
  font-size: 11.5px;
}
.link-btn { color: var(--gold); }
.danger-link { display: block; margin: 7px auto 0; color: var(--red); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 120;
  max-width: calc(100% - 28px);
  padding: 10px 13px;
  border-radius: 999px;
  background: #fff;
  color: #090909;
  box-shadow: 0 14px 32px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 850;
  text-align: center;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Logged-out gate */
.auth-gate {
  min-height: calc(100vh - var(--topbar-h));
  display: grid;
  place-items: center;
  padding: 22px;
}
.auth-card {
  width: min(100%, 520px);
  padding: 25px;
  border: 1px solid var(--gold-line);
  border-radius: 22px;
  background: radial-gradient(360px 180px at 50% 0, rgba(255,212,0,.08), transparent 70%), #101011;
  text-align: center;
}
.auth-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  background: rgba(255,212,0,.07);
  font-size: 26px;
}
.auth-card p { margin: 10px 0 0; color: #aaaab0; font-size: 13px; line-height: 1.55; }
.auth-card .primary-btn { margin-top: 18px; }

/* Motion */
@media (hover:hover) and (pointer:fine) {
  .nav-btn:hover:not(.active),
  .service-card:hover,
  .primary-btn:hover,
  .secondary-btn:hover,
  .ghost-btn:hover,
  .back-page:hover,
  .back-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0,0,0,.23);
  }
  .nav-btn:hover:not(.active),
  .service-card:hover,
  .secondary-btn:hover,
  .ghost-btn:hover,
  .back-page:hover {
    border-color: rgba(255,212,0,.32);
  }
}
.nav-btn:active,
.service-card:active,
.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.back-page:active,
.back-game:active { transform: translateY(0) scale(.985); }

/* Phone tuning */
@media (max-width: 520px) {
  :root { --page-x: 11px; --card-gap: 9px; }
  .back-game {
    width: 42px;
    min-width: 42px;
    padding: 0;
    font-size: 0;
  }
  .back-game::after { content: "←"; font-size: 17px; font-weight: 900; }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 14.5px; }
  .service-nav { gap: 6px; }
  .nav-btn { font-size: 11px; padding: 0 4px; }
  .service-card { min-height: 128px; padding: 14px; }
  .service-icon { margin-bottom: 11px; }
  .home-balance-copy > small { max-width: 185px; }
  .page-title { align-items: center; }
}

@media (max-width: 360px) {
  :root { --page-x: 9px; --card-gap: 8px; }
  .service-nav { gap: 5px; }
  .nav-btn { min-height: 46px; font-size: 10.5px; padding: 0 2px; }
  .home-balance-badge { display: none; }
  .home-balance-copy > small { max-width: 250px; }
  .service-card { min-height: 124px; padding: 13px; }
  .service-card strong { font-size: 14.5px; }
  .service-card small { font-size: 11px; }
  .section-head h2,
  .page-title h2 { font-size: 25px; }
  .modal-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}


/* ============================================================
   LudoPanda PandaPay Home Spacing V14
   Adds +15px breathing room between major Home sections only.
   ============================================================ */

/* Tabs -> Home heading */
[data-page-panel="dashboard"] {
  padding-top: 28px;
}

/* Home heading -> balance card */
[data-page-panel="dashboard"] .section-head {
  margin-bottom: 27px;
}

/* Balance card -> service-card grid */
[data-page-panel="dashboard"] .home-balance-card {
  margin-bottom: 29px;
}

/* Service cards -> security strip */
[data-page-panel="dashboard"] .info-strip {
  margin-top: 27px;
}

/* Keep the 2x2 card grid compact */
[data-page-panel="dashboard"] .service-grid {
  column-gap: 12px;
  row-gap: 12px;
}



/* ============================================================
   LudoPanda PandaPay Readability Polish V15
   Reasonable phone font sizes
   ============================================================ */

.service-nav .nav-btn{
  font-size:12px !important;
  font-weight:900 !important;
}

[data-page-panel="dashboard"] .eyebrow{
  font-size:11.5px !important;
}

[data-page-panel="dashboard"] .section-head h2{
  font-size:27px !important;
  line-height:1.05 !important;
}

[data-page-panel="dashboard"] .ghost-btn{
  font-size:11.5px !important;
  font-weight:900 !important;
}

[data-page-panel="dashboard"] .home-balance-card span{
  font-size:11px !important;
}

[data-page-panel="dashboard"] .home-balance-card strong{
  font-size:22px !important;
  line-height:1.05 !important;
}

[data-page-panel="dashboard"] .home-balance-card small{
  font-size:10.5px !important;
}

[data-page-panel="dashboard"] .service-card strong{
  font-size:15px !important;
  line-height:1.15 !important;
}

[data-page-panel="dashboard"] .service-card small{
  font-size:11.5px !important;
  line-height:1.4 !important;
}

[data-page-panel="dashboard"] .info-strip p{
  font-size:11px !important;
  line-height:1.45 !important;
}



/* ============================================================
   LUDOPANDA_PANDAPAY_NATIVE_HEADER_POLISH_V1
   Native-style shared PandaPay WebView header
   ============================================================ */

:root{
  --lp-pp-native-header-h:
    calc(66px + env(safe-area-inset-top, 0px));
}

/* Shared native-style header */
.topbar.lp-native-header{
  position:sticky!important;
  top:0!important;
  z-index:50!important;

  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 44px!important;
  align-items:center!important;
  gap:12px!important;

  min-height:var(--lp-pp-native-header-h)!important;

  padding:
    calc(env(safe-area-inset-top, 0px) + 8px)
    max(14px,env(safe-area-inset-right))
    9px
    max(14px,env(safe-area-inset-left))!important;

  background:#050505!important;
  border-bottom:1px solid rgba(255,212,0,.18)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.28)!important;
  backdrop-filter:blur(18px)!important;
}

/* Main header Back */
.topbar.lp-native-header .back-game{
  justify-self:start!important;

  display:grid!important;
  place-items:center!important;

  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;

  padding:0!important;

  border-radius:14px!important;
  border:1px solid rgba(255,212,0,.38)!important;

  background:
    linear-gradient(145deg,#151515,#0d0d0e)!important;

  color:#ffd400!important;
  text-decoration:none!important;

  box-shadow:
    0 8px 18px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.025)!important;
}

.topbar.lp-native-header .back-game::after{
  content:none!important;
  display:none!important;
}

.lp-header-back-glyph{
  display:block;
  color:#ffd400;
  font-size:20px!important;
  font-weight:800;
  line-height:1;
  transform:translateY(-1px);
}

/* Perfectly centered title block */
.lp-header-title{
  min-width:0;
  text-align:center;
  align-self:center;
}

.lp-header-eyebrow{
  display:block;
  margin:0 0 4px;

  color:#c99e11;
  font-size:10px;
  font-weight:850;
  line-height:1.1;
  letter-spacing:.015em;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.lp-header-heading{
  display:block;

  color:#f5eeee;
  font-size:20px;
  font-weight:900;
  line-height:1.05;
  letter-spacing:-.025em;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Invisible right-side balance keeps title truly centered */
.lp-header-balance{
  display:block;
  width:42px;
  height:42px;
  justify-self:end;
}

/* Tabs remain directly beneath shared header */
.service-nav{
  top:var(--lp-pp-native-header-h)!important;
  padding-top:12px!important;
  padding-bottom:11px!important;
}

/* No child page needs another back button */
.back-page{
  display:none!important;
}

/* Child titles now get their own breathing room */
[data-page-panel="airtime"].active,
[data-page-panel="data"].active,
[data-page-panel="gift-card"].active,
[data-page-panel="orders"].active{
  padding-top:17px!important;
}

[data-page-panel="airtime"] .page-title,
[data-page-panel="data"] .page-title,
[data-page-panel="gift-card"] .page-title,
[data-page-panel="orders"] .page-title{
  min-height:48px;
  margin-bottom:15px!important;
  align-items:flex-end!important;
}

[data-page-panel="airtime"] .page-title > div,
[data-page-panel="data"] .page-title > div,
[data-page-panel="gift-card"] .page-title > div,
[data-page-panel="orders"] .page-title > div{
  flex:1 1 auto;
  min-width:0;
}

/* Clean gold service glyphs */
.service-icon{
  color:#ffd400!important;
}

.service-icon svg{
  display:block;
  width:22px;
  height:22px;

  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Security strip icon */
.info-security-icon{
  flex:0 0 auto;

  display:grid;
  place-items:center;

  width:34px;
  height:34px;

  border-radius:11px;
  border:1px solid rgba(255,212,0,.22);

  background:rgba(255,212,0,.07);
  color:#ffd400;
}

.info-security-icon svg{
  width:18px;
  height:18px;

  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Slightly calmer Refresh buttons */
#refreshDashboard,
#refreshOrders{
  color:#eee!important;
  border-color:rgba(255,255,255,.11)!important;
  background:#111214!important;
}

/* Native press feedback */
.topbar.lp-native-header .back-game:active{
  transform:translateY(1px) scale(.97)!important;
}

/* Phones */
@media(max-width:420px){
  :root{
    --lp-pp-native-header-h:
      calc(64px + env(safe-area-inset-top, 0px));
  }

  .topbar.lp-native-header{
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    gap:9px!important;

    padding-left:max(11px,env(safe-area-inset-left))!important;
    padding-right:max(11px,env(safe-area-inset-right))!important;
  }

  .topbar.lp-native-header .back-game{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    border-radius:13px!important;
  }

  .lp-header-heading{
    font-size:19px!important;
  }

  .lp-header-eyebrow{
    font-size:9.5px!important;
  }

  .lp-header-balance{
    width:40px;
    height:40px;
  }

  .service-nav{
    top:var(--lp-pp-native-header-h)!important;
  }
}

