@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins_semibold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins_bold.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gt-bg: #f7f5ff;
  --gt-surface: #ffffff;
  --gt-soft: #f2efff;
  --gt-text: #0f1230;
  --gt-muted: #6d6a8f;
  --gt-border: #ddd5ff;
  --gt-primary: #5a35ff;
  --gt-primary-2: #7c5cff;
  --gt-green: #08a84f;
  --gt-red: #ff252f;
  --gt-amber: #f08a00;
  --gt-blue: #5673ff;
  --gt-radius: 16px;
  --gt-shadow: 0 16px 36px rgba(57, 42, 130, 0.11);
  font-family: Poppins, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Responsive type scale — tuned for Android (360px is the sweet spot).
     Most Samsung / Pixel / OnePlus phones report 360 CSS px viewport.
     Floors respect a11y (12px minimum for any body text). */
  --gt-fs-2xs:    clamp(11px,  3.2vw, 12px);    /* tiny captions  -> 11.5px at 360 */
  --gt-fs-xs:     clamp(12px,  3.6vw, 13px);    /* small labels   -> 13px   at 360 */
  --gt-fs-sm:     clamp(13px,  3.9vw, 14px);    /* secondary text -> 14px   at 360 */
  --gt-fs-base:   clamp(14px,  4.2vw, 16px);    /* body           -> 15px   at 360 */
  --gt-fs-md:     clamp(15px,  4.6vw, 17px);    /* card titles    -> 16.5px at 360 */
  --gt-fs-lg:     clamp(17px,  5vw,   19px);    /* section heads  -> 18px   at 360 */
  --gt-fs-xl:     clamp(19px,  5.6vw, 22px);    /* page titles    -> 20px   at 360 */
  --gt-fs-2xl:    clamp(22px,  6.4vw, 26px);    /* big stat       -> 23px   at 360 */
  --gt-fs-3xl:    clamp(27px,  7.8vw, 33px);    /* hero balance   -> 28px   at 360 */
  --gt-fs-display:clamp(32px,  9.5vw, 44px);    /* huge ₱         -> 34px   at 360 */

  /* Responsive icon + box sizes — Android-first tuning.
     Each clamp's ideal value is set so 360px viewport hits the comfortable
     middle of the range (not the minimum). vw multipliers chosen so that
     360 × vw/100 ≈ (min + max) / 2.                                          */
  --gt-icon-xs:   clamp(14px, 4.4vw, 18px);   /* inline tiny icons -> 16px@360 */
  --gt-icon-sm:   clamp(16px, 5vw,   20px);   /* list/chevron      -> 18px@360 */
  --gt-icon-md:   clamp(20px, 6.1vw, 24px);   /* button/topbar     -> 22px@360 */
  --gt-icon-lg:   clamp(28px, 8.6vw, 34px);   /* hero / circle     -> 31px@360 */
  --gt-icon-xl:   clamp(36px, 11.1vw, 44px);  /* big gift / wallet -> 40px@360 */

  /* Icon containers (the rounded backgrounds the icons sit inside) */
  --gt-orb-sm:    clamp(32px, 9.7vw,  38px);  /* settings icon box -> 35px@360 */
  --gt-orb-md:    clamp(40px, 12.2vw, 48px);  /* record/phone orb  -> 44px@360 */
  --gt-orb-lg:    clamp(54px, 16.4vw, 64px);  /* stat-card orb     -> 59px@360 */
  --gt-orb-xl:    clamp(76px, 23.3vw, 92px);  /* referral gift     -> 84px@360 */

  /* Padding / box spacing */
  --gt-pad-sm:    clamp(10px, 3.3vw, 14px);   /* compact card pad  -> 12px@360 */
  --gt-pad-md:    clamp(12px, 3.9vw, 16px);   /* standard card pad -> 14px@360 */
  --gt-pad-lg:    clamp(16px, 5vw,   20px);   /* hero card pad     -> 18px@360 */

  /* Touch target heights (Android Material guidelines: 48dp minimum) */
  --gt-touch-sm:  clamp(44px, 12vw,  48px);   /* small button      -> 44px@360 */
  --gt-touch-md:  clamp(48px, 14vw,  56px);   /* primary button    -> 50px@360 */

  /* Brand graphics (logos, welcome illustrations) */
  --gt-logo-sm:   clamp(28px, 8.6vw, 36px);   /* topbar logo       -> 31px@360 */
  --gt-logo-md:   clamp(48px, 14vw,  64px);   /* card-header logo  -> 50px@360 */
  --gt-logo-lg:   clamp(80px, 25vw, 110px);   /* welcome hero logo -> 90px@360 */
}

* { box-sizing: border-box; }

body.gt-shell {
  margin: 0;
  min-height: 100vh;
  background: #f3f0ff;
  color: var(--gt-text);
}

/* Modern proof camera modal for mobile and tablet WebView/browser. */
.camera-dialog {
  width: min(940px, calc(100vw - 14px));
  max-height: min(94vh, 900px);
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  color: var(--gt-text);
  overflow: hidden;
}

.camera-dialog::backdrop {
  background: rgba(16, 17, 44, 0.64);
  backdrop-filter: blur(8px);
}

.camera-box {
  height: min(94vh, 900px);
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(124, 96, 255, 0.22);
  background:
    radial-gradient(circle at top left, rgba(118, 80, 255, 0.15), transparent 34%),
    #ffffff;
  box-shadow: 0 28px 80px rgba(26, 20, 77, 0.32);
  display: flex;
  flex-direction: column;
}

.camera-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex: 0 0 auto;
}

.camera-head h2 {
  margin: 5px 0 4px;
  color: var(--gt-text);
  font-size: clamp(22px, 4.8vw, 30px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.camera-head p {
  margin: 0;
  color: var(--gt-muted);
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 700;
  line-height: 1.35;
}

.camera-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gt-primary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.camera-kicker svg,
.camera-close svg,
.camera-actions svg,
.camera-device-chip svg {
  width: 17px;
  height: 17px;
}

.camera-close {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(124, 96, 255, 0.2);
  border-radius: 16px;
  background: #f8f5ff;
  color: var(--gt-primary);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.camera-close:active,
.camera-device-chip:active,
.camera-secondary:active,
.camera-primary:active {
  transform: scale(0.98);
}

.camera-device-panel {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.camera-device-panel > span {
  color: var(--gt-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.camera-device-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.camera-device-chip {
  min-height: 44px;
  max-width: 100%;
  border: 1.5px solid #ded6ff;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fbfaff;
  color: #34225f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.camera-device-chip span {
  max-width: min(62vw, 250px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-device-chip em {
  font-style: normal;
  color: #047857;
  background: #dcfce7;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 900;
}

.camera-device-chip.active {
  color: var(--gt-primary);
  border-color: var(--gt-primary);
  background: #f0ebff;
  box-shadow: 0 10px 24px rgba(90, 53, 255, 0.14);
}

.camera-device-empty {
  margin: 0;
  color: var(--gt-muted);
  font-size: 12px;
  font-weight: 700;
}

.camera-preview-shell {
  overflow: hidden;
  border-radius: 18px;
  background: #080916;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
  margin-bottom: 14px;
  flex: 1 1 auto;
  min-height: 180px;
}

#desktopCameraVideo {
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: none;
  background: #080916;
  object-fit: contain;
  display: block;
}

.camera-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 10px;
  flex: 0 0 auto;
}

.camera-secondary,
.camera-primary {
  min-height: 52px;
  border-radius: 15px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 900;
}

.camera-secondary {
  background: #f3efff;
  color: var(--gt-primary);
  border: 1px solid #ded6ff;
}

.camera-primary {
  background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-2));
  color: #fff;
  box-shadow: 0 14px 28px rgba(90, 53, 255, 0.24);
}

.camera-box .proof-note {
  margin: 12px 2px 0;
  padding: 12px 14px;
  border: 1px solid #ded6ff;
  border-radius: 14px;
  background: #f8f5ff;
  color: var(--gt-muted);
  font-size: 11.5px;
  line-height: 1.42;
  font-weight: 700;
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  .camera-dialog {
    width: calc(100vw - 10px);
    max-height: 96vh;
    border-radius: 20px;
  }

  .camera-box {
    height: 96vh;
    padding: 14px;
    border-radius: 20px;
  }

  .camera-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .camera-head h2 {
    font-size: 22px;
  }

  .camera-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .camera-device-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .camera-device-list::-webkit-scrollbar {
    display: none;
  }

  .camera-device-chip {
    flex: 0 0 auto;
  }

  .camera-actions {
    grid-template-columns: 1fr;
  }

  .camera-secondary,
  .camera-primary {
    min-height: 48px;
  }

  .camera-box .proof-note {
    font-size: 10.8px;
    padding: 10px 12px;
  }
}

.gt-inline-fee-table-wrap {
  width: 100%;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Prototype wrapper — at phone widths, fills the viewport edge-to-edge
   so the real device size is visible (no fake "phone in phone" chrome). */
.gt-prototype {
  min-height: 100vh;
  display: block;
  padding: 0;
}

.gt-device {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(104, 74, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fbfaff 100%);
  box-shadow: none;
  scrollbar-width: none;
}

.gt-device::-webkit-scrollbar { display: none; }

/* Hide the fake iPhone status bar (9:41 / dynamic-island / signal-wifi-battery) */
.gt-status { display: none !important; }

/* Only show the prototype phone-frame look on desktop pointer screens,
   for the marketing/demo view. */
@media (min-width: 1200px) and (pointer: fine) {
  .gt-prototype {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
  }
  .gt-device {
    width: min(100%, 430px);
    height: min(932px, calc(100vh - 36px));
    border: 10px solid #070711;
    border-radius: 44px;
    box-shadow: 0 28px 70px rgba(20, 13, 55, 0.28);
  }
  .gt-status { display: flex !important; }
}

/* Tablet/iPad users should keep the mobile app flow, just with calmer sizing. */
@media (min-width: 768px) and (max-width: 1199px), (min-width: 768px) and (pointer: coarse) {
  body.gt-shell {
    background:
      radial-gradient(circle at 10% 8%, rgba(104, 74, 255, 0.08), transparent 30%),
      linear-gradient(180deg, #f7f5ff 0%, #fff 100%);
  }

  .gt-prototype {
    min-height: 100vh;
    display: block;
    padding: 0;
  }

  .gt-device {
    width: 100%;
    height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .gt-status {
    display: none !important;
  }

  .gt-shell.mobile-only .gt-screen {
    width: min(100%, 720px);
    margin-inline: auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .gt-shell.mobile-only .gt-global-banner {
    left: 50%;
    right: auto;
    width: min(100%, 720px);
    transform: translateX(-50%);
    padding-inline: 24px;
  }

  .gt-shell.mobile-only .gt-bottom-nav {
    left: 50%;
    right: auto;
    width: min(100%, 720px);
    transform: translateX(-50%);
    border-left: 1px solid rgba(90, 53, 255, 0.09);
    border-right: 1px solid rgba(90, 53, 255, 0.09);
  }

  .gt-shell.mobile-only .gt-card,
  .gt-shell.mobile-only .gt-flow-card,
  .gt-shell.mobile-only .gt-settings-group > button,
  .gt-shell.mobile-only .gt-phone-card,
  .gt-shell.mobile-only .gt-referral-hero {
    border-radius: 18px;
  }

  .gt-shell.mobile-only .gt-action-grid,
  .gt-shell.mobile-only .gt-metric-grid,
  .gt-shell.mobile-only .gt-summary-grid,
  .gt-shell.mobile-only .gt-three-summary,
  .gt-shell.mobile-only .gt-permission-cards,
  .gt-shell.mobile-only .gt-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gt-shell.mobile-only .gt-action-grid > *:nth-child(3),
  .gt-shell.mobile-only .gt-notif-metrics .wide {
    grid-column: 1 / -1;
  }

  .gt-shell.mobile-only .gt-computation-summary,
  .gt-shell.mobile-only .gt-ref-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gt-status {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 62px;
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: center;
  padding: 14px 24px 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.gt-status strong { font-size: 18px; }

.gt-island {
  width: 110px;
  height: 34px;
  border-radius: 999px;
  background: #050505;
}

.gt-system {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.gt-system svg { width: 17px; height: 17px; stroke-width: 3; }

.gt-screen {
  display: none;
  padding: 18px 10px 24px;
}

.gt-screen.active { display: block; }

.gt-screen:has(.gt-bottom-nav) {
  padding-bottom: 104px;
}

.gt-logo-sm {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
}

.gt-success h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.gt-success p,
.gt-connect-card p,
.gt-form-card p,
.gt-flow-card p,
.gt-empty p {
  margin: 0;
  color: var(--gt-muted);
  font-size: 14px;
  line-height: 1.55;
}

.gt-welcome {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 0 22px;
}

.gt-welcome-logo {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(90, 53, 255, 0.16);
}

.gt-welcome h1 {
  margin: 14px 0 0;
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: 0;
}

.gt-welcome p {
  margin: 0;
  color: var(--gt-muted);
  font-size: 17px;
  line-height: 1.45;
}

.gt-role-list {
  display: grid;
  gap: 12px;
}

.gt-role-card {
  min-height: 142px;
  display: grid;
  grid-template-columns: 102px 1fr 22px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px;
  border: 1.5px solid #cbbdff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(90, 53, 255, 0.06);
  text-align: left;
  color: var(--gt-text);
}

.gt-role-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.18;
  margin-bottom: 8px;
}

.gt-role-card small {
  display: block;
  color: var(--gt-muted);
  font-size: 14px;
  line-height: 1.38;
}

.gt-role-card em {
  display: inline-flex;
  margin-top: 9px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eeeaff;
  color: var(--gt-primary);
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
}

.gt-role-card > svg {
  width: 29px;
  height: 29px;
  color: var(--gt-primary);
  stroke-width: 3;
}

.gt-role-art {
  position: relative;
  width: 96px;
  height: 110px;
  display: grid;
  place-items: center;
  color: var(--gt-primary);
}

.gt-role-art > svg:first-child {
  position: absolute;
  width: 72px;
  height: 96px;
  stroke-width: 1.6;
  filter: drop-shadow(0 12px 10px rgba(90, 53, 255, 0.13));
}

.gt-role-art > svg:nth-child(2) {
  position: absolute;
  width: 50px;
  height: 50px;
  padding: 11px;
  border-radius: 15px;
  background: linear-gradient(135deg, #8a68ff, #6240e8);
  color: #fff;
  stroke-width: 2.2;
  transform: translate(7px, 20px);
  box-shadow: 0 10px 24px rgba(90, 53, 255, 0.23);
}

.gt-role-art.phone-bell > svg:nth-child(2) {
  width: 60px;
  height: 60px;
  padding: 12px;
  border-radius: 999px;
  transform: translate(-2px, 12px);
}

.gt-role-art b {
  position: absolute;
  top: 24px;
  right: 14px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f5bd26;
  color: white;
  border: 3px solid white;
  font-size: 17px;
  line-height: 1;
}

.gt-role-art.compact {
  width: 72px;
  height: 88px;
}

.gt-role-art.compact > svg:first-child {
  width: 60px;
  height: 82px;
}

.gt-role-art.compact > svg:nth-child(2) {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  transform: translate(4px, 14px);
}

.gt-info-banner {
  min-height: 70px;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #f0ebff;
  color: var(--gt-text);
}

.gt-info-banner span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-2));
  color: #fff;
}

.gt-info-banner p {
  margin: 0;
  color: #2c2943;
  font-size: 16px;
  line-height: 1.4;
}

.gt-info-banner.signin-note {
  margin-top: 12px;
  min-height: 58px;
  grid-template-columns: 36px 1fr;
  padding: 11px 14px;
}

.gt-info-banner.signin-note span {
  width: 28px;
  height: 28px;
}

.gt-info-banner.signin-note p {
  font-size: 12px;
}

.gt-selected-role {
  min-height: 112px;
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 14px;
}

.gt-selected-role em {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gt-soft);
  color: var(--gt-primary);
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

.gt-selected-role strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.gt-selected-role small {
  display: block;
  margin-top: 4px;
  color: var(--gt-muted);
  font-size: 11px;
  line-height: 1.35;
}

.gt-selected-role button {
  border: 0;
  background: transparent;
  color: var(--gt-primary);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 900;
}

.gt-selected-role button svg {
  width: 14px;
  height: 14px;
}

.gt-signin-card {
  padding: 22px 20px;
  display: grid;
  gap: 16px;
}

.gt-create-option {
  min-height: 82px;
  display: grid;
  grid-template-columns: 54px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid var(--gt-primary);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7f4ff);
  color: var(--gt-text);
  text-align: left;
  box-shadow: 0 10px 22px rgba(90, 53, 255, 0.1);
}

.gt-create-option strong {
  display: block;
  color: var(--gt-primary);
  font-size: 15px;
}

.gt-create-option small {
  display: block;
  margin-top: 3px;
  color: var(--gt-muted);
  font-size: 11px;
  line-height: 1.35;
}

.gt-create-option > svg {
  color: var(--gt-primary);
}

.gt-signin-card > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.gt-google-button {
  min-height: 54px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  border: 1px solid #daddea;
  border-radius: 10px;
  background: #fff;
  color: var(--gt-text);
  box-shadow: 0 5px 15px rgba(33, 29, 80, 0.08);
}

.gt-google-button span {
  color: #4285f4;
  font-size: 25px;
  font-weight: 900;
}

.gt-google-button strong {
  font-size: 13px;
}

.gt-divider {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--gt-muted);
  font-size: 11px;
}

.gt-divider:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #e8e3fb;
}

.gt-divider span {
  position: relative;
  padding: 0 12px;
  background: #fff;
}

.gt-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.gt-check-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.gt-check-list span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gt-soft);
  color: var(--gt-primary);
}

.gt-check-list svg {
  width: 19px;
  height: 19px;
}

.gt-text-link {
  width: 100%;
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: var(--gt-primary);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 900;
}

.gt-text-link svg {
  width: 15px;
  height: 15px;
}


.gt-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--gt-border);
  border-radius: var(--gt-radius);
  box-shadow: var(--gt-shadow);
}

.gt-topbar,
.gt-appbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  min-width: 0;
}

.gt-topbar strong {
  min-width: 0;
  flex: 1;
  font-size: 22px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gt-topbar > span:not(.gt-sync) {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gt-text);
  font-weight: 800;
  white-space: nowrap;
}

.gt-topbar .gt-sync {
  flex: 0 0 auto;
}

.gt-topbar > span:not(.gt-sync):has(.lucide-chevron-down) {
  display: none;
}

.gt-page-title {
  margin: 8px 0 18px;
  text-align: center;
  font-size: 26px;
  line-height: 1.15;
}

.gt-icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--gt-primary);
}

.gt-icon-button svg { width: 25px; height: 25px; stroke-width: 2.7; }

.gt-button {
  min-height: 54px;
  border: 0;
  border-radius: 13px;
  padding: 0 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gt-wide { width: 100%; }

.gt-button svg { width: 20px; height: 20px; }

.gt-button-primary {
  background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-2));
  color: #fff;
}

.gt-button-secondary {
  background: var(--gt-soft);
  color: var(--gt-primary);
}

.gt-button-danger {
  background: linear-gradient(135deg, #ff4650, #df101c);
  color: #fff;
}

.gt-choice-list,
.gt-plan-list,
.gt-settings-list,
.gt-permission-list {
  display: grid;
  gap: 12px;
}

.gt-choice {
  min-height: 86px;
  display: grid;
  grid-template-columns: 54px 1fr 22px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--gt-border);
  border-radius: var(--gt-radius);
  background: #fff;
  text-align: left;
  box-shadow: var(--gt-shadow);
}

.gt-choice strong { display: block; font-size: 16px; color: var(--gt-text); }
.gt-choice small { display: block; margin-top: 3px; color: var(--gt-muted); line-height: 1.35; }
.gt-choice > svg { color: var(--gt-primary); }

.gt-icon-orb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eeeaff;
  color: var(--gt-primary);
}

.gt-icon-orb svg { width: 29px; height: 29px; stroke-width: 2.6; }
.gt-icon-orb.green { background: #e4f8eb; color: var(--gt-green); }
.gt-icon-orb.red { background: #ffe5e7; color: var(--gt-red); }
.gt-icon-orb.amber { background: #fff0d5; color: var(--gt-amber); }

.gt-connect-card,
.gt-success,
.gt-empty,
.gt-wallet-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: 26px;
}

.gt-connect-card h2,
.gt-form-card h2,
.gt-flow-card h2,
.gt-empty h2 {
  margin: 0;
  color: var(--gt-primary);
  font-size: 22px;
}

.gt-success {
  min-height: 620px;
  align-content: center;
}

.gt-form-card,
.gt-flow-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.gt-form-card label,
.gt-flow-card label,
.gt-account-view label {
  display: grid;
  color: var(--gt-muted);
  font-size: 12px;
  font-weight: 800;
}

.gt-form-card input,
.gt-flow-card input,
.gt-account-view select,
.gt-search-row input {
  min-height: 52px;
  border: 1px solid var(--gt-border);
  border-radius: 13px;
  padding: 0 14px;
  color: var(--gt-text);
  background: #fff;
}

.gt-plan {
  min-height: 86px;
  display: grid;
  grid-template-columns: 54px 1fr auto 24px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--gt-border);
  border-radius: var(--gt-radius);
  background: #fff;
  color: var(--gt-text);
  text-align: left;
}

.gt-plan.active {
  border-color: var(--gt-primary);
  box-shadow: 0 0 0 3px rgba(90, 53, 255, 0.12);
}

.gt-plan strong { display: block; font-size: 18px; }
.gt-plan small { color: var(--gt-muted); display: block; margin-top: 4px; }
.gt-plan b { color: var(--gt-primary); font-size: 22px; }
.gt-plan > svg { color: #b9b7c8; width: 23px; height: 23px; }
.gt-plan.active > svg { color: var(--gt-primary); }
.gt-plan em {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gt-soft);
  color: var(--gt-primary);
  font-size: 12px;
  font-style: normal;
}

.gt-subscription-title {
  margin: 18px 0 8px;
  text-align: center;
  font-size: 31px;
  line-height: 1.1;
}

.gt-subscription-subtitle {
  margin: 0 0 22px;
  text-align: center;
  color: var(--gt-muted);
  font-size: 16px;
  line-height: 1.4;
}

.gt-includes-title {
  margin: 24px 0 12px;
  font-size: 18px;
}

.gt-includes {
  padding: 10px 18px;
}

.gt-includes p {
  min-height: 56px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
  border-bottom: 1px solid #ece8fb;
  color: #2c2943;
}

.gt-includes p:last-child {
  border-bottom: 0;
}

.gt-includes span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gt-soft);
  color: var(--gt-primary);
}

.gt-subscription-footer {
  position: sticky;
  bottom: -24px;
  margin: 22px -22px -24px;
  padding: 18px 22px 24px;
  border: 1px solid #ece8fb;
  border-radius: 22px 22px 0 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 14px;
}

.gt-subscription-footer > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.gt-subscription-footer strong,
.gt-subscription-footer b {
  color: var(--gt-primary);
  font-size: 18px;
}

.gt-active-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin: 10px 0 22px;
}

.gt-active-hero h1,
.gt-setup-title h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.gt-active-hero p,
.gt-setup-title p {
  margin: 0;
  color: var(--gt-muted);
  font-size: 18px;
}

.gt-big-check {
  width: 112px;
  height: 112px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid #c9bdff;
  background: radial-gradient(circle, #f4f0ff, #ffffff);
  color: var(--gt-primary);
  box-shadow: 0 16px 18px rgba(90, 53, 255, 0.08);
}

.gt-big-check svg {
  width: 62px;
  height: 62px;
  stroke-width: 3;
}

.gt-sub-detail {
  padding: 12px 18px;
  margin-bottom: 14px;
}

.gt-sub-detail p {
  min-height: 58px;
  margin: 0;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #ece8fb;
}

.gt-sub-detail p:last-child {
  border-bottom: 0;
}

.gt-sub-detail span,
.gt-progress-card article > span,
.gt-store-setup-card article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gt-soft);
  color: var(--gt-primary);
}

.gt-sub-detail b {
  font-weight: 700;
}

.gt-sub-detail strong {
  color: var(--gt-primary);
  font-size: 16px;
}

.gt-progress-card {
  padding: 16px;
  margin-bottom: 18px;
}

.gt-progress-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.gt-progress-card article {
  min-height: 72px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
}

.gt-progress-card article > span {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.gt-progress-card article > span.ready {
  background: #dff8e9;
  color: var(--gt-green);
}

.gt-progress-card b,
.gt-store-setup-card b {
  display: block;
}

.gt-progress-card small,
.gt-store-setup-card small {
  display: block;
  margin-top: 3px;
  color: var(--gt-muted);
  line-height: 1.35;
}

.gt-progress-card em,
.gt-store-setup-card em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #e8f8ed;
  color: var(--gt-green);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.gt-progress-card article:nth-child(n+3) em {
  background: var(--gt-soft);
  color: var(--gt-primary);
}

.gt-large-action {
  min-height: 64px;
  font-size: 18px;
}

.gt-setup-title {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin: 44px 0 30px;
}

.gt-store-setup-card {
  padding: 18px;
  margin-bottom: 20px;
}

.gt-store-setup-card article {
  min-height: 116px;
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #ece8fb;
}

.gt-store-setup-card article:last-child {
  border-bottom: 0;
}

.gt-store-setup-card article > span {
  width: 66px;
  height: 66px;
  border-radius: 999px;
}

.gt-store-setup-card b {
  font-size: 19px;
}

.gt-store-setup-card small {
  font-size: 14px;
}

.gt-info-banner.setup-note {
  margin: 0 0 22px;
  min-height: 78px;
}

.gt-setup-footnote {
  margin: 16px 0 0;
  text-align: center;
  color: var(--gt-muted);
  font-size: 16px;
}

.gt-qr-frame {
  width: 220px;
  height: 220px;
  border: 2px dashed var(--gt-border);
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--gt-primary);
}

.gt-qr-frame svg { width: 84px; height: 84px; }

.gt-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gt-primary);
  font-size: 17px;
}

.gt-brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; }

.gt-store-switch {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--gt-text);
  font-weight: 800;
  font-size: 16px;
}

/* ── Sync pill — clickable, state-aware ──────────────────────────────── */
.gt-sync,
.gt-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1.5px solid #bbf7d0;
  border-radius: 999px;
  background: #e9f9ef;
  color: var(--gt-green);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.gt-sync:active,
.gt-sync-pill:active {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  transform: scale(0.97);
}

/* Status dot */
.gt-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gt-green);
  flex-shrink: 0;
  transition: background 0.2s;
}

/* Icon */
.gt-sync svg,
.gt-sync-pill svg,
.gt-sync-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
  flex-shrink: 0;
}

/* Spin animation for syncing state */
@keyframes gt-sync-spin {
  to { transform: rotate(360deg); }
}

.gt-spin {
  animation: gt-sync-spin 0.8s linear infinite;
}

/* Clickable affordance on other-screen static sync buttons */
.gt-sync.gt-sync-action:hover,
.gt-sync-pill:hover {
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.18);
}

.gt-sync svg { width: 18px; height: 18px; }

.gt-fee-hero {
  width: 100%;
  min-height: 132px;
  display: grid;
  grid-template-columns: 68px 1fr 68px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(90,53,255,0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gt-primary) 0%, #9b7aff 60%, #c4a8ff 100%);
  box-shadow: 0 8px 28px rgba(90,53,255,0.22);
  color: #fff;
  text-align: center;
}

.gt-fee-hero small,
.gt-fee-hero em {
  display: block;
  color: rgba(255,255,255,0.78);
  font-style: normal;
  font-size: 12px;
}

.gt-fee-hero strong {
  display: block;
  margin: 4px 0;
  color: #fff;
  font-size: 54px;
  line-height: 1;
}

.gt-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.gt-metric.purple,
button.gt-metric.purple {
  border-color: #dad1ff;
  background: linear-gradient(135deg, #fff, #f8f6ff);
  color: var(--gt-primary);
  border: 1px solid #dad1ff;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.gt-metric {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid var(--gt-border);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.gt-metric.green { border-color: #bdeccd; background: linear-gradient(135deg, #fff, #f3fff7); }
.gt-metric.red   { border-color: #ffd0d3; background: linear-gradient(135deg, #fff, #fff6f6); }
.gt-metric.amber { border-color: #ffe0a6; background: linear-gradient(135deg, #fff, #fffaf0); }

/* Title — top center, single line with ellipsis */
.gt-metric > b {
  font-size: 11px;
  font-weight: 800;
  color: var(--gt-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
  line-height: 1.2;
}

/* Icon + number/amount side by side */
.gt-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Number + amount stacked */
.gt-metric-nums {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: right;
}

.gt-metric strong {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.gt-metric.purple strong { color: var(--gt-primary); }
.gt-metric.green  strong { color: var(--gt-green); }
.gt-metric.red    strong { color: var(--gt-red); }
.gt-metric.amber  strong { color: var(--gt-amber); }

.gt-metric em {
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  color: var(--gt-muted);
}

.gt-metric.purple em { color: var(--gt-primary); }
.gt-metric.green  em { color: var(--gt-green); }
.gt-metric.red    em { color: var(--gt-red); }
.gt-metric.amber  em { color: var(--gt-amber); }

/* Remove old .gt-metric-body */
.gt-metric-body { display: contents; }

.gt-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.gt-action-grid .gt-action:only-child {
  grid-column: 1 / -1;
  min-height: 82px;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
}

.gt-action {
  min-height: 120px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--gt-border);
  border-radius: 16px;
  background: #fff;
}

.gt-action.cash-in { border-color: #bdeccd; background: #f6fff9; }
.gt-action.cash-out { border-color: #ffd0d3; background: #fff7f7; }
.gt-action.amber { border-color: #ffe0a6; background: #fffaf0; color: var(--gt-amber); }
.gt-action.purple { border-color: #dad1ff; background: #f8f6ff; color: var(--gt-primary); }
.gt-action strong { color: var(--gt-text); font-size: 15px; }
.gt-action small { color: var(--gt-primary); font-size: 12px; font-weight: 800; }

.gt-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0 10px;
}

.gt-section-head h2 { margin: 0; font-size: 19px; }
.gt-section-head button { border: 0; background: transparent; color: var(--gt-primary); font-weight: 800; display: inline-flex; align-items: center; gap: 3px; }
.gt-section-head span { color: var(--gt-primary); font-weight: 800; }

.gt-list-panel {
  overflow: hidden;
}

.gt-txn {
  min-height: 74px;
  display: grid;
  grid-template-columns: 46px 1fr auto 18px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #ece8fb;
}

.gt-txn:last-child { border-bottom: 0; }
.gt-txn > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}
.gt-txn.green > span { color: var(--gt-green); background: #e9f9ef; }
.gt-txn.red > span { color: var(--gt-red); background: #ffe9ea; }
.gt-txn b { display: block; }
.gt-txn small { color: var(--gt-muted); }
.gt-txn strong { color: var(--gt-green); }
.gt-txn.red strong { color: var(--gt-red); }
.gt-txn em { color: var(--gt-amber); background: #fff5df; border: 1px solid #ffdca1; border-radius: 9px; padding: 5px 7px; font-style: normal; font-size: 12px; }

.gt-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: 100%;
  transform: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 2px;
  margin-top: 0;
  padding: 8px 4px max(8px, env(safe-area-inset-bottom, 0px));
  border: 1px solid #ece8fb;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
}

.gt-bottom-nav button {
  min-height: 54px;
  border: 0;
  background: transparent;
  color: var(--gt-muted);
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 800;
  padding: 0 2px;
  overflow: hidden;
  white-space: nowrap;
}

/* 5-button nav: tighten further so all icons fit on one line */
.gt-bottom-nav:has(button:nth-child(5)) button {
  font-size: 10px;
  gap: 2px;
  min-height: 48px;
}

.gt-bottom-nav button.active { color: var(--gt-primary); }
.gt-bottom-nav svg { width: 23px; height: 23px; }

.gt-flow-card { margin-bottom: 16px; }
.gt-flow-card.compact-flow {
  padding: 14px;
  gap: 12px;
}
.gt-flow-card h2 {
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gt-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--gt-primary);
  background: var(--gt-soft);
  flex: 0 0 auto;
}
.gt-step-icon svg { width: 22px; height: 22px; }
.gt-proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gt-proof-grid button {
  min-height: 112px;
  border: 1px solid var(--gt-border);
  border-radius: 15px;
  background: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 12px 8px;
}
.gt-proof-grid .gt-icon-orb {
  width: 38px;
  height: 38px;
}
.gt-proof-grid .gt-icon-orb svg {
  width: 19px;
  height: 19px;
}
.gt-proof-grid strong { font-size: 13px; line-height: 1.15; }
.gt-proof-grid em { font-style: normal; color: var(--gt-primary); background: var(--gt-soft); padding: 5px 9px; border-radius: 9px; font-size: 10px; line-height: 1; }
.gt-flow-card label {
  /* Two-row grid: [icon + title] on row 1, [input/select] on row 2 */
  grid-template-columns: 18px 1fr;
  grid-template-rows: auto auto;
  gap: 6px 8px;
  align-items: center;
  /* Remove the box from the label itself */
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: auto;
  background: transparent;
  color: var(--gt-primary);
}
/* Icon: row 1, col 1 */
.gt-flow-card label > svg,
.gt-flow-card label > i { grid-column: 1; grid-row: 1; width: 16px; height: 16px; align-self: center; }
/* Title span: row 1, col 2 */
.gt-flow-card label span { grid-column: 2; grid-row: 1; color: #46416a; font-size: 13px; font-weight: 700; }
/* Input: row 2, spans both cols — now a proper standalone box */
.gt-flow-card label input { grid-column: 1 / -1; grid-row: 2; border: 1.5px solid var(--gt-border) !important; border-radius: 13px !important; padding: 0 16px !important; min-height: 56px !important; text-align: left !important; color: var(--gt-text) !important; background: #fff !important; font-size: 15px !important; width: 100%; }
/* Select: same treatment */
.gt-flow-card label select { grid-column: 1 / -1; grid-row: 2; border: 1.5px solid var(--gt-border) !important; border-radius: 13px !important; padding: 0 14px !important; min-height: 56px !important; text-align: left !important; color: var(--gt-text) !important; background: #fff !important; max-width: 100%; width: 100%; }

.gt-subscription-alert {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #f5fff8;
  border-color: #c9f0d2;
}
.gt-subscription-alert > svg { color: var(--gt-green); }
.gt-subscription-alert b,
.gt-subscription-alert small { display: block; }
.gt-subscription-alert small { color: var(--gt-muted); }
.gt-subscription-alert button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--gt-primary);
  background: var(--gt-soft);
  font-weight: 900;
  font-size: 13px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.gt-subscription-alert button svg {
  width: 14px;
  height: 14px;
}

.gt-quick-guide {
  padding: 12px;
  background: #f8f6ff;
  display: grid;
  gap: 5px;
}
.gt-quick-guide b { color: var(--gt-primary); }
.gt-quick-guide small { color: var(--gt-muted); line-height: 1.45; }

.gt-mode-toggle,
.gt-toggle.wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--gt-border);
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
}
.gt-mode-toggle button,
.gt-toggle.wide button {
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--gt-muted);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.gt-mode-toggle button.active,
.gt-toggle.wide button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-2));
}
.gt-duplicate-btn {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-2));
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.gt-locked-proof {
  min-height: 108px;
  border: 1.5px dashed #a994ff;
  border-radius: 14px;
  color: var(--gt-text);
  background: linear-gradient(180deg, #fff, #fbf9ff);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}
.gt-locked-proof > svg {
  width: 15px;
  height: 15px;
  color: var(--gt-muted);
}
.gt-save-note {
  margin: 10px 0 0;
  color: var(--gt-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.gt-save-note svg {
  width: 17px;
  height: 17px;
  color: var(--gt-primary);
}

.gt-save-button {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.gt-save-button.green { background: linear-gradient(135deg, #0ab95a, #019348); }
.gt-save-button.red { background: linear-gradient(135deg, #ff4650, #df101c); }
.gt-save-button svg { width: 28px; height: 28px; background: rgba(255,255,255,0.22); border-radius: 999px; padding: 5px; }
.gt-save-button {
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
  box-shadow: 0 10px 22px rgba(99, 58, 255, 0.18);
}
.gt-save-button:hover,
.gt-save-button:focus-visible {
  filter: brightness(1.04);
  box-shadow: 0 12px 26px rgba(99, 58, 255, 0.26), 0 0 0 3px rgba(99, 58, 255, 0.14);
}
.gt-save-button:active {
  transform: translateY(2px) scale(0.985);
  filter: brightness(0.94);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.18), 0 0 0 4px rgba(99, 58, 255, 0.18);
}

.gt-fee-summary {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
}
.gt-fee-summary small { color: var(--gt-muted); font-weight: 800; }
.gt-fee-summary strong { display: block; color: var(--gt-primary); font-size: 34px; }
.gt-day-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #ece8fb;
}
.gt-day-row:last-child { border-bottom: 0; }
.gt-day-row span { color: var(--gt-muted); }
.gt-day-row strong { color: var(--gt-primary); font-size: 18px; }

.gt-search-row {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 10px;
  margin-bottom: 12px;
}
.gt-search-row label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gt-border);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--gt-muted);
}
.gt-search-row input { border: 0; min-height: auto; padding: 0; flex: 1; width: 100%; }
.gt-search-row .gt-search-confirm {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid #c9bdff;
  border-radius: 12px;
  background: #eae5ff;
  color: var(--gt-primary);
  padding: 0;
  flex-shrink: 0;
}
.gt-search-confirm svg { width: 18px; height: 18px; }
.gt-search-row button,
.gt-toggle button,
.gt-segment button {
  border: 1px solid var(--gt-border);
  border-radius: 12px;
  background: var(--gt-soft);
  color: var(--gt-primary);
  font-weight: 800;
}

.gt-segment,
.gt-toggle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.gt-segment button,
.gt-toggle button { min-height: 46px; }
.gt-segment button.active,
.gt-toggle button.active { background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-2)); color: #fff; }
.gt-account-view { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.gt-account-view .gt-toggle { grid-template-columns: 1fr 1fr; align-self: end; margin: 0; }
.gt-three-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px;
  text-align: center;
}
.gt-three-summary div { border-right: 1px solid #ece8fb; display: grid; gap: 5px; justify-items: center; }
.gt-three-summary div:last-child { border-right: 0; }
.gt-three-summary small { color: var(--gt-muted); font-weight: 800; }
.gt-three-summary strong { color: var(--gt-primary); font-size: 28px; }
.gt-three-summary .green { color: var(--gt-green); }
.gt-three-summary .red { color: var(--gt-red); }

.gt-record {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto 16px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid #ece8fb;
}
.gt-record:last-child { border-bottom: 0; }
.gt-type-stack {
  display: grid;
  justify-items: center;
  gap: 7px;
}
.gt-type-stack b {
  min-width: 44px;
  min-height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: .04em;
}
.gt-record.green .gt-type-stack b { background: #e9f9ef; color: var(--gt-green); }
.gt-record.red .gt-type-stack b { background: #ffe9ea; color: var(--gt-red); }
.gt-record button { width: 38px; height: 38px; border: 0; border-radius: 999px; background: #eeeaff; color: var(--gt-primary); }
.gt-record b,
.gt-record strong,
.gt-record small { display: block; }
.gt-record > div { min-width: 0; }
.gt-record strong { font-size: 13px; color: var(--gt-text); }
.gt-record small {
  color: var(--gt-muted);
  line-height: 1.45;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gt-record em {
  align-self: start;
  min-width: 92px;
  text-align: right;
  font-style: normal;
  font-weight: 900;
}
.gt-record em small {
  margin-top: 4px;
  font-size: 11px;
  color: var(--gt-muted);
}
.gt-record.green em { color: var(--gt-green); }
.gt-record.red em { color: var(--gt-red); }

.gt-table-card { overflow: auto; border: 1px solid var(--gt-border); border-radius: 14px; background: #fff; }
.gt-table-card table,
.gt-feetable table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 12px; }
.gt-table-card th,
.gt-table-card td,
.gt-feetable th,
.gt-feetable td { padding: 12px; border-bottom: 1px solid #ece8fb; text-align: left; white-space: nowrap; }
.gt-table-card th,
.gt-feetable th { background: var(--gt-soft); color: var(--gt-primary); }
.gt-table-card td:nth-child(3) { font-weight: 900; }
.gt-table-type {
  display: inline-grid;
  min-width: 42px;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
}
.gt-table-type.in { background: #e9f9ef; color: var(--gt-green); }
.gt-table-type.out { background: #ffe9ea; color: var(--gt-red); }

.gt-proof-detail {
  padding: 18px;
  display: grid;
  gap: 14px;
}
.gt-proof-detail h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gt-proof-photo {
  min-height: 150px;
  border: 1.5px dashed var(--gt-border);
  border-radius: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--gt-primary);
  background: #fbfaff;
  font-weight: 900;
}
.gt-proof-photo.release {
  min-height: 112px;
}
.gt-proof-photo svg {
  width: 42px;
  height: 42px;
}
.gt-proof-detail dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.gt-proof-detail dl div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #ece8fb;
}
.gt-proof-detail dt {
  color: var(--gt-muted);
  font-weight: 800;
}
.gt-proof-detail dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.gt-notif-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gt-notif-summary div { min-height: 96px; border-radius: 16px; padding: 14px; display: grid; align-content: center; }
.gt-notif-summary div:nth-child(3) { grid-column: 1 / -1; }
.gt-notif-summary b { font-size: 11px; text-transform: uppercase; }
.gt-notif-summary strong { font-size: 24px; }
.gt-notif-summary .green { background: #edfdf2; color: var(--gt-green); }
.gt-notif-summary .red { background: #fff1f2; color: var(--gt-red); }
.gt-notif-summary .blue { background: #eef2ff; color: var(--gt-blue); }

.gt-notif-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.gt-notif-metrics div {
  grid-column: span 2;
  min-height: 92px;
  border: 1px solid #ece8fb;
  border-radius: 14px;
  padding: 13px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 8px;
  background: #fff;
}

.gt-notif-metrics .wide {
  grid-column: span 3;
  min-height: 90px;
  grid-template-columns: 1fr 48px;
}

.gt-notif-metrics b {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gt-muted);
}

.gt-notif-metrics span {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--gt-soft);
}

.gt-notif-metrics strong {
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
}

.gt-notif-metrics .wide strong {
  font-size: 30px;
}

.gt-notif-metrics .blue {
  border-color: #ddd6fe;
  background: #faf9ff;
  color: var(--gt-primary);
}
.gt-notif-metrics .green {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--gt-green);
}
.gt-notif-metrics .amber {
  border-color: #fed7aa;
  background: #fff7ed;
  color: var(--gt-amber);
}
.gt-notif-metrics .blue strong,
.gt-notif-metrics .blue b { color: var(--gt-primary); }
.gt-notif-metrics .green strong,
.gt-notif-metrics .green b { color: var(--gt-green); }
.gt-notif-metrics .amber strong,
.gt-notif-metrics .amber b { color: var(--gt-amber); }
.gt-notif-metrics .green span { background: #e9f9ef; }
.gt-notif-metrics .amber span { background: #fff5df; }

.gt-notif-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
#notifFilters.gt-notif-filters {
  grid-template-columns: repeat(3, 1fr);
}
#notifDateFilters.gt-notif-filters {
  grid-template-columns: repeat(4, 1fr);
}

.gt-notif-filters button {
  min-height: 46px;
  border: 1px solid var(--gt-border);
  border-radius: 12px;
  background: var(--gt-soft);
  color: var(--gt-primary);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gt-notif-filters button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-2));
}

.gt-notif-search {
  margin-bottom: 10px;
}

.gt-notif-source {
  grid-template-columns: 1fr;
}

.gt-upgrade-chip {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #ffe0a6;
  border-radius: 9px;
  background: #fffaf0;
  color: var(--gt-amber);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.gt-upgrade-chip svg {
  width: 16px;
  height: 16px;
}

.gt-notif-panel {
  padding: 14px;
  margin-bottom: 16px;
}

.gt-notif-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid #ece8fb;
}

.gt-notif-panel-head h2 {
  margin: 0 0 5px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gt-notif-panel-head p,
.gt-notif-panel-head span {
  margin: 0;
  color: var(--gt-muted);
  font-weight: 800;
}

.gt-notif-panel.unclaimed .gt-notif-panel-head h2 { color: var(--gt-amber); }
.gt-notif-panel.claimed .gt-notif-panel-head h2 { color: var(--gt-green); }

.gt-notif-panel article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 92px;
  grid-template-areas:
    "avatar name status"
    "avatar amount action";
  gap: 8px 10px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #ece8fb;
}

.gt-notif-panel article:last-child {
  border-bottom: 0;
}

.gt-notif-panel article > span {
  grid-area: avatar;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.gt-notif-panel.unclaimed article > span { background: #fff5df; color: var(--gt-amber); }
.gt-notif-panel.claimed article > span { background: #e9f9ef; color: var(--gt-green); }
.gt-notif-panel b,
.gt-notif-panel small { display: block; }
.gt-notif-panel article > div {
  grid-area: name;
  min-width: 0;
}
.gt-notif-panel small { color: var(--gt-muted); line-height: 1.45; }
.gt-notif-panel strong {
  grid-area: amount;
  color: var(--gt-amber);
  font-size: 15px;
  min-width: 0;
}
.gt-notif-panel.claimed strong { color: var(--gt-green); }
.gt-notif-panel strong svg { width: 13px; height: 13px; vertical-align: -2px; }
.gt-notif-panel em {
  grid-area: status;
  justify-self: end;
  min-width: 80px;
  padding: 7px 10px;
  border-radius: 10px;
  text-align: center;
  font-style: normal;
  font-weight: 900;
}
.gt-notif-panel.unclaimed em { color: var(--gt-amber); background: #fff5df; border: 1px solid #ffdca1; }
.gt-notif-panel.claimed em { color: var(--gt-green); background: #e9f9ef; border: 1px solid #c9f0d2; }
.gt-notif-panel article button {
  grid-area: action;
  justify-self: end;
  width: 92px;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-2));
  font-weight: 900;
  line-height: 1.15;
}

.notif-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, max-content);
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid #e9d5ff;
  border-radius: 14px;
  background: #fff;
}

.notif-card-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.notif-phone-tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--gt-primary);
  background: #ede9fe;
  font-size: 11px;
  font-weight: 900;
}

.notif-phone-tag svg {
  width: 13px;
  height: 13px;
}

.notif-card b {
  color: #1e2761;
  font-size: 14px;
}

.notif-card small {
  color: var(--gt-muted);
  font-size: 11px;
  line-height: 1.35;
}

.notif-card-action {
  min-width: 112px;
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 6px;
  text-align: right;
}

.notif-card-action strong {
  color: var(--gt-primary);
  font-size: 18px;
  line-height: 1;
}

.notif-card.unclaimed .notif-card-action strong {
  color: var(--gt-amber);
}

.notif-card.claimed .notif-card-action strong {
  color: var(--gt-green);
}

.notif-card-action em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.notif-card.unclaimed .notif-card-action em {
  color: var(--gt-amber);
  border: 1px solid #ffdca1;
  background: #fff5df;
}

.notif-card.claimed .notif-card-action em {
  color: var(--gt-green);
  border: 1px solid #c9f0d2;
  background: #e9f9ef;
}

.notif-card-action button {
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 900;
}

/* ── MOBILE notification card layout ─────────────────────────────────
   Clean stacked structure (header / body / actions) — no overlapping.
   Uses `!important` because the desktop 2-column rule has equal
   specificity and was winning at some viewports / cache states. */
.gt-shell.mobile-only .notif-card,
.gt-shell .gt-screen .notif-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto !important;
  gap: 10px !important;
  padding: 12px !important;
  border: 1.5px solid #e9d5ff !important;
  border-radius: 14px !important;
  background: #fff !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Row 1 — main info (phone tag + sender + number + date) */
.gt-shell.mobile-only .notif-card .notif-card-main,
.gt-shell .gt-screen .notif-card .notif-card-main {
  display: grid !important;
  grid-column: 1 !important;
  gap: 4px !important;
  min-width: 0 !important;
  text-align: left !important;
}

.gt-shell.mobile-only .notif-card .notif-phone-tag {
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  padding: 3px 9px;
}

.gt-shell.mobile-only .notif-card .notif-card-main b {
  font-size: 13px;
  font-weight: 800;
  color: #1e2761;
  line-height: 1.25;
  /* Keep the full GCash-supplied name; wrap to next line if too long. */
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.gt-shell.mobile-only .notif-card .notif-card-main small {
  font-size: 11px;
  color: var(--gt-muted);
  line-height: 1.3;
  /* Allow phone number / date to wrap rather than truncate. */
  white-space: normal;
  overflow-wrap: break-word;
}

/* Row 2 — amount + status badge inline */
.gt-shell.mobile-only .notif-card .notif-card-action,
.gt-shell .gt-screen .notif-card .notif-card-action {
  display: grid !important;
  grid-column: 2 !important;
  grid-template-columns: auto !important;
  grid-template-areas:
    "amount"
    "button"
    "status" !important;
  gap: 7px !important;
  align-content: start !important;
  justify-items: end !important;
  text-align: right !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  min-width: 0 !important;
}

.gt-shell.mobile-only .notif-card .notif-card-action strong,
.gt-shell .gt-screen .notif-card .notif-card-action strong {
  grid-area: amount;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  justify-self: end;
  text-align: right;
  text-decoration: none !important;   /* kill any inherited strikethrough */
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gt-shell.mobile-only .notif-card.unclaimed .notif-card-action strong,
.gt-shell .gt-screen .notif-card.unclaimed .notif-card-action strong { color: var(--gt-amber); }
.gt-shell.mobile-only .notif-card.claimed .notif-card-action strong,
.gt-shell .gt-screen .notif-card.claimed .notif-card-action strong { color: var(--gt-green); }

.gt-shell.mobile-only .notif-card .notif-card-action em,
.gt-shell .gt-screen .notif-card .notif-card-action em {
  grid-area: status;
  justify-self: end;
  min-width: 0;
  width: auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  font-style: normal;
  white-space: nowrap;
}

/* Row 3 — compact Record Cash Out button (no longer overlaps details) */
.gt-shell.mobile-only .notif-card .notif-card-action button,
.gt-shell .gt-screen .notif-card .notif-card-action button {
  grid-area: button !important;
  /* Not full-width any more — sits on the right, sized to its label. */
  width: auto !important;
  justify-self: end !important;
  min-height: 28px !important;
  padding: 5px 11px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-2)) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  margin-top: 0 !important;
}
.gt-shell.mobile-only .notif-card .notif-card-action button:active,
.gt-shell .gt-screen .notif-card .notif-card-action button:active {
  filter: brightness(0.95);
}

/* Customer name — keep the full text as GCash sent it (their own redaction).
   Allow wrapping to multiple lines instead of truncating with ellipsis. */
.gt-shell.mobile-only .notif-card .notif-card-main b,
.gt-shell .gt-screen .notif-card .notif-card-main b {
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  max-width: 100% !important;
  line-height: 1.25 !important;
}

.gt-settings-list button,
.gt-permission-list article {
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--gt-border);
  border-radius: 14px;
  background: #fff;
  padding: 13px;
  color: var(--gt-text);
  text-align: left;
}
.gt-settings-list button > svg:first-child,
.gt-permission-list article > svg { color: var(--gt-primary); }

/* Settings page sections (Store / Manage / Account) */
#screen-settings h2,
#screen-settings .gt-section-title {
  margin: 10px 4px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gt-primary);
}

.gt-settings-group {
  display: grid;
  gap: 10px;
  margin-bottom: 6px;
}

.gt-settings-group > button {
  appearance: none;
  border: 1px solid var(--gt-border);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  text-align: left;
  color: var(--gt-text);
  cursor: pointer;
  min-height: 68px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  transition: background .15s ease, border-color .15s ease;
}

.gt-settings-group > button:hover,
.gt-settings-group > button:active {
  background: var(--gt-soft);
  border-color: #d6cffb;
}

.gt-settings-group > button > span:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gt-soft);
  color: var(--gt-primary);
}

.gt-settings-group > button > span:first-child svg {
  width: 20px;
  height: 20px;
}

.gt-settings-group > button > b {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 13px;
  font-weight: 700;
  color: var(--gt-text);
  line-height: 1.2;
}

.gt-settings-group > button > small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: var(--gt-muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.gt-settings-group > button > svg:last-child {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  width: 18px;
  height: 18px;
  color: var(--gt-muted);
}

.gt-account-card,
.gt-feetable {
  padding: 16px;
  margin-bottom: 14px;
}
.gt-account-card article {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #ece8fb;
}
.gt-account-card article em {
  text-align: right;
  white-space: nowrap;
}
.gt-account-card small,
.gt-account-card p { color: var(--gt-muted); margin: 0; }
.gt-account-card em { color: var(--gt-green); font-style: normal; font-weight: 800; }
.gt-account-card button:not(.gt-button) { border: 0; background: transparent; color: var(--gt-primary); font-weight: 800; }
.gt-wallet-card strong { color: var(--gt-primary); font-size: 42px; }
.gt-code { color: var(--gt-primary); font-size: 34px; letter-spacing: 2px; }
.gt-modal-page { min-height: 720px; display: grid; align-content: center; }

.gt-settings-topbar {
  gap: 9px;
}

.gt-settings-topbar strong {
  display: none;
}

.gt-settings-topbar > b {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: 20px;
}

.gt-settings-topbar > span:not(.gt-sync) {
  display: none;
}

.gt-settings-card {
  padding: 18px;
  margin-bottom: 14px;
}

.gt-settings-card h2,
.gt-referred-stores h2 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}

.gt-settings-card h2 em,
.gt-phones-card h2 em {
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--gt-primary);
  background: var(--gt-soft);
  font-size: 12px;
  font-style: normal;
}

/* New header replaces old h2, suppress old em positioning */
.gt-phones-card-title em { margin-left: 0; }

/* Old generic article grid — suppressed for phone cards that use gt-phone-card */
.gt-phones-card article.gt-phone-card {
  display: flex !important;
  grid-template-columns: unset !important;
}

/* Keep old generic article grid for non-phone-card articles */

.gt-connected-records h2 em {
  color: var(--gt-green);
  background: transparent;
  font-size: 15px;
}

.gt-store-profile p {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--gt-muted);
}

.gt-store-profile p strong {
  color: var(--gt-text);
  font-weight: 500;
}

.gt-store-profile svg {
  color: var(--gt-muted);
}

.gt-connected-records > p,
.gt-phones-card > p,
.gt-referred-stores > p {
  margin: -6px 0 14px;
  color: var(--gt-muted);
}

.gt-drive-warning {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid #ffd27b;
  border-radius: 12px;
  background: #fffaf0;
  color: #8a5a00;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.gt-connected-records > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gt-connected-records .gt-button {
  padding: 0 10px;
  font-size: 13px;
  line-height: 1.2;
}

.gt-phones-card article:not(.gt-phone-card),
.gt-wallet-accounts article,
.gt-balance-list article,
.gt-referred-stores article {
  display: grid;
  grid-template-columns: 58px 1fr auto 18px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #ece8fb;
  border-radius: 14px;
  margin-top: 12px;
}

.gt-phones-card article:not(.gt-phone-card) b,
.gt-wallet-accounts article b,
.gt-balance-list article b,
.gt-referred-stores article b {
  display: block;
  font-size: 16px;
}

.gt-phones-card article:not(.gt-phone-card) small,
.gt-wallet-accounts article small,
.gt-balance-list article small,
.gt-referred-stores article small {
  display: block;
  color: var(--gt-muted);
  line-height: 1.5;
}

.gt-phones-card article:not(.gt-phone-card) em {
  color: var(--gt-green);
  font-style: normal;
  font-weight: 800;
}

.gt-dashed-button {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  margin-bottom: 0;
  border: 1.5px dashed #c4b5ff;
  border-radius: 12px;
  background: transparent;
  color: var(--gt-primary);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s;
}

.gt-dashed-button:active,
.gt-dashed-button:hover {
  background: var(--gt-soft);
  border-color: var(--gt-primary);
}

.gt-dashed-button svg {
  width: 16px;
  height: 16px;
}

.gt-card-note {
  margin: 12px 0 0;
  text-align: center;
  color: var(--gt-muted);
}

.gt-account-menu button,
.gt-manage-menu button {
  width: 100%;
  min-height: 58px;
  border: 1px solid #ece8fb;
  background: #fff;
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--gt-text);
  text-align: left;
  font-size: 15px;
}

.gt-account-menu button.danger,
.gt-manage-menu button.danger {
  color: #d9141e;
}

.gt-block-title {
  margin: 22px 0 12px;
  font-size: 20px;
}

.gt-wallet-add {
  min-height: 56px;
  margin: 12px 0 14px;
}

.gt-wallet-accounts {
  display: grid;
  gap: 12px;
}

.gt-wallet-accounts article {
  /* 3-col: icon | info+balance | edit */
  grid-template-columns: 48px 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  min-height: auto;
  padding: 14px;
  margin: 0;
  align-items: start;
}

/* Icon spans both rows */
.gt-wallet-accounts article > span:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

/* Name/number/owner div — row 1 */
.gt-wallet-accounts article > div {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

/* Balance — row 2 col 2 */
.gt-wallet-accounts article > strong {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

/* Chevron — row 1 col 3 */
.gt-wallet-accounts article > svg {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}

.gt-wallet-edit {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--gt-border);
  border-radius: 10px;
  background: #fff;
  color: var(--gt-primary);
  font-size: var(--gt-fs-xs);
  font-weight: 900;
}

.gt-wallet-edit svg {
  width: 14px;
  height: 14px;
}

.gt-wallet-accounts em {
  display: inline-block;
  width: max-content;
  margin-bottom: 4px;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--gt-primary);
  background: var(--gt-soft);
  font-style: normal;
  font-weight: 900;
}

.gt-wallet-accounts strong {
  color: var(--gt-green);
  font-size: 20px;
  font-weight: 900;
}

.gt-wallet-accounts strong small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gt-muted);
  margin-bottom: 2px;
}

.gt-balance-form {
  padding: 18px;
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.gt-balance-form h2 {
  margin: 0;
}

.gt-balance-form label {
  display: grid;
  gap: 7px;
  color: var(--gt-muted);
  font-weight: 800;
}

.gt-balance-form input,
.gt-balance-form select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--gt-border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--gt-text);
  background: #fff;
}

.gt-balance-list {
  overflow: hidden;
}

.gt-balance-list article {
  border-width: 0 0 1px;
  border-radius: 0;
  margin: 0;
}

.gt-balance-list article:last-child {
  border-bottom: 0;
}

.gt-balance-list strong {
  color: var(--gt-green);
}

.gt-fee-intro-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--gt-border);
  border-radius: 16px;
}

.gt-fee-intro-bar b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gt-text);
  margin-bottom: 2px;
}

.gt-fee-intro-bar small {
  font-size: 12px;
  color: var(--gt-muted);
}

.gt-fee-editor {
  padding: 14px;
  margin-bottom: 12px;
}

.gt-fee-editor table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gt-fee-editor th,
.gt-fee-editor td {
  padding: 9px 10px;
  border-bottom: 1px solid #ece8fb;
  text-align: left;
}

.gt-fee-editor th {
  color: var(--gt-text);
  background: var(--gt-soft);
  font-size: 12px;
  font-weight: 700;
}

.gt-fee-editor th svg {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  color: var(--gt-primary);
  vertical-align: -2px;
}

.gt-fee-editor td:last-child {
  width: 40px;
  text-align: center;
  padding: 6px 4px;
}

.gt-fee-editor td button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--gt-border);
  border-radius: 8px;
  background: var(--gt-soft);
  color: var(--gt-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gt-fee-editor td button svg {
  width: 14px;
  height: 14px;
}

.gt-fee-editor td button.danger {
  color: var(--gt-red);
  background: #fff1f2;
  border-color: #ffc6c9;
}

.gt-fee-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  justify-content: flex-end;
}

.gt-fee-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}

.gt-fee-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.gt-fee-btn-ghost {
  background: var(--gt-soft);
  border-color: var(--gt-border);
  color: var(--gt-text);
}

.gt-fee-btn-ghost:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
}

.gt-fee-btn-primary {
  background: var(--gt-primary);
  color: #fff;
  border-color: var(--gt-primary);
  margin-left: auto;
}

.gt-fee-btn-primary:hover {
  background: #5b21b6;
}

.gt-fee-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 0 4px;
  margin-bottom: 14px;
  color: var(--gt-muted);
  font-size: 12px;
  line-height: 1.5;
}

.gt-fee-hint svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--gt-primary);
}

.gt-referral-hero {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}

/* Allow 1fr column items to shrink below their content size */
.gt-referral-hero > div:first-of-type {
  min-width: 0;
  overflow: hidden;
}

/* Buttons span full width at bottom of the card */
.gt-referral-hero > .gt-button {
  grid-column: 1 / -1;
  min-width: 0;
}

.gt-ref-gift {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--gt-primary), #8c6cff);
  flex-shrink: 0;
}

.gt-ref-gift svg {
  width: 42px;
  height: 42px;
}

.gt-referral-hero p,
.gt-referral-hero small {
  margin: 0;
  color: var(--gt-muted);
}

.gt-referral-hero > div:first-of-type strong {
  display: block;
  color: var(--gt-primary);
  font-size: 30px;
  letter-spacing: .05em;
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gt-ref-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #ece8fb;
}

.gt-ref-stats span {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 88px;
  padding: 10px 6px;
  border: 1px solid #ece8fb;
  border-radius: 14px;
  text-align: center;
  color: var(--gt-primary);
}

.gt-ref-stats b {
  font-size: 20px;
}

.gt-referred-stores,
.gt-payout-card {
  padding: 18px;
  margin-bottom: 16px;
}

.gt-referred-stores article {
  grid-template-columns: 48px 1fr auto 18px;
  border-width: 0 0 1px;
  border-radius: 0;
  margin: 0;
}

/* Move the date inside the text column — hide it as a standalone grid column */
.gt-referred-stores article > small {
  display: none;
}

.gt-referred-stores article:last-child {
  border-bottom: 0;
}

.gt-referred-stores em {
  padding: 6px 10px;
  border-radius: 9px;
  font-style: normal;
  font-weight: 900;
}

.gt-referred-stores em.active {
  color: var(--gt-green);
  background: #e9f9ef;
}

.gt-referred-stores em.pending {
  color: var(--gt-amber);
  background: #fff5df;
}

.gt-payout-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  align-items: center;
}

.gt-payout-card p,
.gt-payout-card small {
  margin: 0;
  color: var(--gt-muted);
}

.gt-payout-card strong {
  display: block;
  color: var(--gt-primary);
  font-size: 32px;
}

.gt-payout-history,
.gt-faq-list {
  padding: 18px;
  margin-bottom: 16px;
}
.gt-payout-history h2 {
  margin: 0 0 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.gt-payout-history article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #ece8fb;
}
.gt-payout-history article:last-child {
  border-bottom: 0;
}
.gt-payout-history b,
.gt-payout-history small {
  display: block;
}
.gt-payout-history small,
.gt-faq-list p {
  color: var(--gt-muted);
}
.gt-payout-history strong {
  color: var(--gt-primary);
}
.gt-payout-history em {
  padding: 6px 9px;
  border-radius: 9px;
  background: #e9f9ef;
  color: var(--gt-green);
  font-style: normal;
  font-weight: 900;
}
.gt-payout-history em.pending {
  background: #fff5df;
  color: var(--gt-amber);
}
.gt-faq-list article {
  padding: 14px 0;
  border-bottom: 1px solid #ece8fb;
}
.gt-faq-list article:last-child {
  border-bottom: 0;
}
.gt-faq-list h2,
.gt-faq-list p {
  margin: 0;
}
.gt-faq-list p {
  margin-top: 6px;
  line-height: 1.5;
}

.gt-faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gt-ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.gt-faq-question svg {
  flex: 0 0 auto;
  transition: transform .18s ease;
}

.gt-faq-list article > p {
  display: none;
}

.gt-faq-list article.open > p {
  display: block;
}

.gt-faq-list article.open .gt-faq-question svg {
  transform: rotate(180deg);
}

.gt-permission-intro {
  min-height: 112px;
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin: 18px 0;
  font-size: 20px;
  line-height: 1.55;
}

.gt-permission-intro .gt-icon-orb {
  width: 72px;
  height: 72px;
}

.gt-permission-cards {
  display: grid;
  gap: 14px;
}

.gt-permission-cards article {
  min-height: 118px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.gt-permission-cards article > .gt-icon-orb {
  width: 72px;
  height: 72px;
}

.gt-permission-cards b,
.gt-permission-cards small {
  display: block;
}

.gt-permission-cards b {
  font-size: 21px;
}

.gt-permission-cards small {
  margin-top: 7px;
  color: var(--gt-muted);
  line-height: 1.5;
}

.gt-permission-cards em {
  justify-self: end;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
  font-weight: 900;
}

.gt-permission-cards em.ok {
  color: var(--gt-green);
  background: #e9f9ef;
  border: 1px solid #c9f0d2;
}

.gt-permission-cards em.required {
  color: var(--gt-red);
  background: transparent;
}

.gt-permission-cards em.optional {
  color: var(--gt-amber);
  background: transparent;
}

.gt-permission-cards article button {
  grid-column: 3 / 5;
  min-height: 48px;
  border: 1px solid var(--gt-primary);
  border-radius: 12px;
  background: #fff;
  color: var(--gt-primary);
  font-weight: 900;
  padding: 0 20px;
}

.gt-permission-continue {
  min-height: 64px;
  margin: 28px 0 18px;
}

.gt-current-role {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px;
  margin: 18px 0 28px;
}

.gt-current-role p,
.gt-current-role h1,
.gt-current-role small {
  margin: 0;
}

.gt-current-role h1 {
  color: var(--gt-primary);
  font-size: 31px;
}

.gt-current-role b {
  margin: 10px 0;
  color: var(--gt-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.gt-current-role small {
  color: var(--gt-muted);
  line-height: 1.5;
}

.gt-role-switch-list {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.gt-role-options {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.gt-role-options button {
  min-height: 132px;
  display: grid;
  grid-template-columns: 34px 92px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--gt-border);
  border-radius: 16px;
  background: #fff;
  color: var(--gt-text);
  text-align: left;
}

.gt-role-options button.active {
  border-color: var(--gt-primary);
  box-shadow: 0 12px 30px rgba(111, 68, 255, 0.12);
}

.gt-role-options button > svg:first-child {
  color: var(--gt-primary);
  width: 26px;
  height: 26px;
}

.gt-role-options b,
.gt-role-options small,
.gt-role-options em {
  display: block;
}

.gt-role-options b {
  font-size: 18px;
}

.gt-role-options small {
  margin: 7px 0 10px;
  color: var(--gt-muted);
  line-height: 1.45;
}

.gt-role-options em {
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--gt-primary);
  background: var(--gt-soft);
  font-style: normal;
  font-weight: 800;
}

.gt-role-switch-list button {
  min-height: 144px;
  display: grid;
  grid-template-columns: 38px 120px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--gt-border);
  border-radius: 18px;
  background: #fff;
  text-align: left;
}

.gt-role-switch-list button.active {
  border-color: var(--gt-primary);
}

.gt-role-switch-list button > svg:first-child {
  color: var(--gt-primary);
  width: 28px;
  height: 28px;
}

.gt-role-switch-list b,
.gt-role-switch-list small,
.gt-role-switch-list em {
  display: block;
}

.gt-role-switch-list b {
  font-size: 21px;
}

.gt-role-switch-list small {
  margin: 8px 0 12px;
  color: var(--gt-muted);
  line-height: 1.45;
}

.gt-role-switch-list em {
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--gt-green);
  background: #e9f9ef;
  font-style: normal;
  font-weight: 800;
}

.gt-role-switch-list em.info {
  color: var(--gt-primary);
  background: var(--gt-soft);
}

.gt-warning-card {
  min-height: 90px;
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #ffd27b;
  border-radius: 16px;
  background: #fffaf0;
  margin: 18px 0 26px;
}

.gt-warning-card svg {
  width: 48px;
  height: 48px;
  color: var(--gt-amber);
}

.gt-warning-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.gt-role-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.gt-role-actions .gt-button {
  min-width: 180px;
}

.gt-signout-backdrop {
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: 18px;
  position: relative;
}

.gt-signout-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 30, .58);
  z-index: 1;
}

.gt-settings-preview {
  position: absolute;
  inset: 0;
  padding: 28px 18px;
  opacity: .55;
  filter: grayscale(.15);
}

.gt-signout-modal {
  position: relative;
  z-index: 2;
  padding: 26px;
  text-align: center;
}

.gt-signout-modal > .gt-icon-orb {
  margin: 0 auto 14px;
  width: 64px;
  height: 64px;
}

.gt-signout-modal h2,
.gt-signout-modal p {
  margin: 0;
}

.gt-signout-modal p {
  margin-top: 10px;
  color: var(--gt-muted);
  line-height: 1.5;
}

.gt-signout-store {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid #ece8fb;
  border-radius: 14px;
  text-align: left;
}

.gt-signout-store small {
  color: var(--gt-muted);
}

.gt-signout-modal label {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  text-align: left;
  color: var(--gt-text);
  line-height: 1.5;
  margin-bottom: 22px;
}

.gt-signout-modal input {
  width: 24px;
  height: 24px;
}

.gt-signout-modal > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gt-delete-warning {
  margin: 18px 0;
  padding: 24px;
  border-color: #ff6269;
  background: #fff8f8;
}

.gt-delete-warning > div {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #ffd2d5;
  margin-bottom: 18px;
}

.gt-delete-warning > div > svg {
  width: 48px;
  height: 48px;
  color: #c8131d;
}

.gt-delete-warning h2,
.gt-delete-warning p {
  margin: 0;
}

.gt-delete-warning h2 {
  color: #c8131d;
}

.gt-delete-warning > p {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
  font-size: 18px;
}

.gt-delete-warning > p svg {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 999px;
  color: #c8131d;
  background: #ffe2e4;
}

.gt-delete-form {
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
}

.gt-delete-form h2,
.gt-delete-form p {
  margin: 0;
}

.gt-delete-form p {
  margin-top: 8px;
  color: var(--gt-muted);
  line-height: 1.45;
}

.gt-delete-form textarea,
.gt-delete-form input {
  width: 100%;
  margin-top: 16px;
  border: 1px solid var(--gt-border);
  border-radius: 12px;
  padding: 14px;
  font: inherit;
}

.gt-delete-form textarea {
  min-height: 110px;
  resize: none;
}

.gt-delete-form > small {
  position: absolute;
  right: 34px;
  bottom: 32px;
  color: var(--gt-muted);
}

.gt-delete-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  margin: 18px 0;
}

.gt-reader-title {
  margin: 30px 0 8px;
  text-align: center;
  font-size: 24px;
}

.gt-reader-subtitle {
  margin: 0 0 16px;
  text-align: center;
  color: var(--gt-muted);
}

.gt-reader-hero {
  min-height: 132px;
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.gt-reader-hero strong {
  display: block;
  font-size: 18px;
}

.gt-reader-hero p,
.gt-reader-connect p,
.gt-reader-ready p {
  margin: 6px 0 0;
  color: var(--gt-text);
  line-height: 1.45;
}

.gt-reader-connect,
.gt-reader-form {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.gt-reader-connect > p {
  text-align: center;
}

.gt-reader-checks {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 14px;
}

.gt-reader-checks li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
}

.gt-reader-checks span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-2));
  color: #fff;
}

.gt-reader-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.gt-reader-form input {
  min-height: 48px;
  border: 1px solid var(--gt-border);
  border-radius: 12px;
  padding: 0 14px;
}

.gt-reader-ready {
  margin-top: 16px;
  padding: 16px;
  display: grid;
  justify-items: center;
  gap: 10px;
  background: #f1fff5;
  border-color: #bdeccd;
}

.gt-reader-ready h2 {
  margin: 0;
  color: var(--gt-green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}

.gt-qr-sample {
  box-sizing: border-box;
  width: min(100%, 352px);
  min-height: min(78vw, 352px);
  aspect-ratio: 1 / 1;
  border: 1px dashed #b898ff;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 16px;
  margin: 0 auto;
}

.gt-qr-sample canvas,
.gt-qr-sample img {
  width: min(100%, 320px) !important;
  height: min(100%, 320px) !important;
  max-width: 320px;
  max-height: 320px;
  image-rendering: pixelated;
}

.gt-calendar-card {
  padding: 12px 0 18px;
  overflow: hidden;
}

.gt-month-row {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  padding: 0 14px 12px;
  text-align: center;
}

.gt-month-row strong {
  font-size: 22px;
}

.gt-month-row button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--gt-border);
  border-radius: 10px;
  background: #fff;
  color: var(--gt-primary);
}

.gt-weekdays,
.gt-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.gt-weekdays {
  padding: 9px 0;
  border-bottom: 1px solid #ece8fb;
  color: var(--gt-muted);
  font-weight: 800;
  font-size: 12px;
}

.gt-calendar-grid span {
  min-height: 64px;          /* taller to fit day number + fee label */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s;
}
.gt-calendar-grid span:not(.muted):hover {
  background: var(--gt-soft);
}

/* fee amount label under the day number */
.gt-calendar-grid span .cal-fee {
  display: block;
  font-style: normal;
  font-size: 7px;
  font-weight: 700;
  color: var(--gt-green);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.3px;
}
.gt-calendar-grid .selected .cal-fee {
  color: rgba(255,255,255,0.9);
}

.gt-calendar-grid .muted {
  color: #aaa4c6;
  cursor: default;
}
.gt-calendar-grid .muted:hover { background: none; }

.gt-calendar-grid .has-data {
  position: relative;
}
/* subtle dot on top-right for days with data (in addition to fee label) */
.gt-calendar-grid .has-data::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gt-green);
}
.gt-calendar-grid .selected::after {
  background: rgba(255,255,255,0.8);
}

.gt-calendar-grid .selected {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-2));
}

.gt-calendar-grid span i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gt-primary);
}

.gt-shell.mobile-only .gt-month-row strong {
  font-size: 24px;
  font-weight: 900;
}

.gt-shell.mobile-only .gt-weekdays {
  font-size: 12px;
}

.gt-shell.mobile-only .gt-calendar-grid span {
  font-size: 16px;
  min-height: 66px;
}

.gt-shell.mobile-only .gt-calendar-grid span .cal-fee {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.gt-shell.mobile-only .fee-day-detail,
.gt-shell.mobile-only #feeDayDetail {
  font-size: 13px;
}

.gt-shell.mobile-only .fee-day-detail strong,
.gt-shell.mobile-only #feeDayDetail strong {
  font-size: 20px;
}

/* ── Inline day-transaction expansion panel ── */
.fee-day-txns {
  background: var(--gt-soft);
  border-bottom: 1px solid var(--gt-border);
}
.fee-day-empty {
  padding: 14px 16px;
  text-align: center;
  color: var(--gt-muted);
  font-size: 13px;
}
.fee-txn-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--gt-border);
  cursor: pointer;
  transition: background .12s;
}
.fee-txn-row:last-child { border-bottom: none; }
.fee-txn-row:hover, .fee-txn-row:active { background: #ede8ff; }
.fee-txn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 24px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.fee-txn-pill.in  { background: #dcfce7; color: #16a34a; }
.fee-txn-pill.out { background: #fee2e2; color: #dc2626; }
.fee-txn-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gt-text);
  line-height: 1.2;
}
.fee-txn-info small {
  display: block;
  font-size: 11px;
  color: var(--gt-muted);
  margin-top: 2px;
}
.fee-txn-amounts {
  text-align: right;
}
.fee-txn-amounts b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--gt-primary);
}
.fee-txn-amounts small {
  display: block;
  font-size: 11px;
  color: var(--gt-muted);
}

/* Chevron rotation when row is expanded */
.gt-daily-table article[aria-expanded="true"] .chevron-icon {
  transform: rotate(90deg);
  transition: transform .2s;
}
.gt-daily-table article .chevron-icon {
  transition: transform .2s;
}

.gt-selected-day {
  margin-top: 14px;
  padding: 18px;
}

.gt-selected-day h2 {
  margin: 0 0 14px;
  color: var(--gt-primary);
}

.gt-selected-day > div {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 10px;
}

.gt-selected-day span {
  color: var(--gt-muted);
  font-size: 12px;
}

.gt-selected-day strong {
  display: block;
  margin-top: 8px;
  color: var(--gt-primary);
  font-size: 25px;
}

.gt-selected-day .green { color: var(--gt-green); }
.gt-selected-day .red { color: var(--gt-red); }
.gt-daily-title { margin: 20px 0 10px; font-size: 18px; }
.gt-daily-table { overflow: hidden; }
.gt-daily-table .head,
.gt-daily-table article {
  display: grid;
  grid-template-columns: 38px 1fr 90px 76px 18px;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #ece8fb;
}
.gt-daily-table .head {
  grid-template-columns: 1fr 90px 104px;
  color: var(--gt-primary);
  background: var(--gt-soft);
  font-weight: 800;
}
.gt-daily-table article > svg:first-child,
.gt-daily-table article > svg:last-child { color: var(--gt-primary); }
.gt-daily-table b,
.gt-daily-table small { display: block; }
.gt-daily-table small { color: var(--gt-muted); }
.gt-daily-table strong,
.gt-daily-table em { color: var(--gt-primary); font-size: 18px; font-weight: 900; font-style: normal; }

@media (max-width: 390px) {
  .gt-screen { padding-inline: 8px; }
  .gt-fee-hero { grid-template-columns: 54px 1fr 54px; }
  .gt-fee-hero strong { font-size: 44px; }
  .gt-metric-grid,
  .gt-action-grid { gap: 7px; }
  .gt-metric { min-height: 164px; }
  .gt-metric strong { font-size: 30px; }
}

/* =================================================================== */
/* Responsive typography — scales with phone size (320px – 480px wide). */
/* Uses the --gt-fs-* clamp() variables defined at the top of this file. */
/* Scoped to the mobile shell so desktop layout is untouched.            */
/* =================================================================== */
.gt-shell.mobile-only {
  font-size: var(--gt-fs-base);
}

.gt-shell.mobile-only h1 { font-size: var(--gt-fs-xl); }
.gt-shell.mobile-only h2 { font-size: var(--gt-fs-lg); }
.gt-shell.mobile-only h3 { font-size: var(--gt-fs-md); }
.gt-shell.mobile-only p { font-size: var(--gt-fs-base); }
.gt-shell.mobile-only small { font-size: var(--gt-fs-xs); }

/* Topbar / page title */
/* .gt-shell.mobile-only .gt-topbar strong — unified below */

/* Section headings (Store / Manage / Account, etc.) */
.gt-shell.mobile-only #screen-settings h2,
.gt-shell.mobile-only .gt-block-title,
.gt-shell.mobile-only .gt-section-title { font-size: 13px; font-weight: 600; color: var(--gt-primary); }

/* Settings list items */
.gt-shell.mobile-only .gt-settings-group > button > b { font-size: 13px; font-weight: 700; color: var(--gt-text); }
.gt-shell.mobile-only .gt-settings-group > button > small { font-size: 11px; }

/* Wallet — phone account cards */
.gt-shell.mobile-only .gt-wallet-accounts em { font-size: var(--gt-fs-sm); }
.gt-shell.mobile-only .gt-wallet-accounts article b { font-size: var(--gt-fs-md); }
.gt-shell.mobile-only .gt-wallet-accounts strong { font-size: var(--gt-fs-xl); }
.gt-shell.mobile-only .gt-wallet-accounts strong small { font-size: var(--gt-fs-2xs); }

/* Wallet balance display */
.gt-shell.mobile-only .gt-wallet-card strong { font-size: var(--gt-fs-display); }
.gt-shell.mobile-only .gt-code { font-size: var(--gt-fs-2xl); }

/* Referral hero */
.gt-shell.mobile-only .gt-referral-hero > div:first-of-type strong { font-size: var(--gt-fs-2xl); }
.gt-shell.mobile-only .gt-ref-stats b { font-size: var(--gt-fs-md); }
.gt-shell.mobile-only .gt-ref-stats small { font-size: var(--gt-fs-xs); }

/* Dashboard / fee hero */
/* Dashboard appbar (logo + store name + sync). Spread items so the
   store name reads cleanly and the sync chip stays compact on the right. */
.gt-shell.mobile-only .gt-appbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 0;
  margin-inline: -18px;
  padding-inline: 18px;
}
.gt-shell.mobile-only .gt-appbar .gt-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.gt-shell.mobile-only .gt-appbar .gt-brand img {
  width: var(--gt-logo-sm);
  height: var(--gt-logo-sm);
}
.gt-shell.mobile-only .gt-appbar .gt-brand strong {
  font-size: var(--gt-fs-md);
  color: var(--gt-primary);
}
.gt-shell.mobile-only .gt-appbar .gt-store-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--gt-fs-sm);
  font-weight: 700;
  color: var(--gt-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gt-shell.mobile-only .gt-appbar .gt-sync,
.gt-shell.mobile-only .gt-appbar .gt-sync-pill {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  gap: 4px;
  min-height: 0;
  border-width: 1.5px;
}

.gt-shell.mobile-only .gt-appbar .gt-sync svg,
.gt-shell.mobile-only .gt-appbar .gt-sync-pill svg,
.gt-shell.mobile-only .gt-appbar .gt-sync-icon {
  width: 11px;
  height: 11px;
}

.gt-shell.mobile-only .gt-appbar .gt-sync-dot {
  width: 5px;
  height: 5px;
}

/* Hide text label in appbar sync pill — dot + icon only */
.gt-shell.mobile-only .gt-appbar #syncStatusText {
  display: none;
}

/* Fees Collected hero — text stack on the left, calendar icon on the right
   (hint that the whole card is tappable to open daily fee records). */
.gt-shell.mobile-only .gt-fee-hero {
  display: grid;
  grid-template-columns: 1fr var(--gt-orb-md);
  align-items: center;
  text-align: left;
  min-height: 104px;
  padding: 16px 18px;
  gap: 12px;
  overflow: hidden;
}
/* Hide ONLY the first orb (wallet); keep the calendar orb visible */
.gt-shell.mobile-only .gt-fee-hero > .gt-icon-orb:first-child {
  display: none;
}
.gt-shell.mobile-only .gt-fee-hero > .gt-icon-orb:last-child {
  width: var(--gt-orb-md);
  height: var(--gt-orb-md);
  background: rgba(255,255,255,0.22);
  color: #fff;
  grid-column: 2;
  grid-row: 1;
}
.gt-shell.mobile-only .gt-fee-hero > .gt-icon-orb:last-child svg {
  width: calc(var(--gt-orb-md) * 0.5);
  height: calc(var(--gt-orb-md) * 0.5);
}
.gt-shell.mobile-only .gt-fee-hero > span:not(.gt-icon-orb) {
  display: grid;
  justify-items: start;
  gap: 4px;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  align-self: center;
}
.gt-shell.mobile-only .gt-fee-hero small {
  font-size: var(--gt-fs-xs);
  color: rgba(255,255,255,0.78);
  font-weight: 700;
  letter-spacing: .02em;
  text-align: left;
  white-space: nowrap;
}
.gt-shell.mobile-only .gt-fee-hero strong {
  font-size: clamp(28px, 8vw, 38px);
  margin: 0;
  line-height: .98;
  color: #fff;
  text-align: left;
  white-space: nowrap;
}
.gt-shell.mobile-only .gt-fee-hero em {
  font-size: var(--gt-fs-xs);
  color: rgba(255,255,255,0.78);
  font-style: normal;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* === 3-up dashboard metric cards (Cash In / Claimed / Unclaimed) ===
   Align labels even when one is 1-line and others wrap to 2 lines.
   Use a 4-row grid with fixed-height label row. */
.gt-shell.mobile-only .gt-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  min-height: 0;
  text-align: center;
}
.gt-shell.mobile-only .gt-metric > b {
  font-size: var(--gt-fs-2xs);
  font-weight: 800;
  color: var(--gt-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}
.gt-shell.mobile-only .gt-metric > .gt-icon-orb {
  width: var(--gt-orb-md);
  height: var(--gt-orb-md);
}
.gt-shell.mobile-only .gt-metric > .gt-icon-orb svg {
  width: calc(var(--gt-orb-md) * 0.5);
  height: calc(var(--gt-orb-md) * 0.5);
}
.gt-shell.mobile-only .gt-metric > strong {
  font-size: var(--gt-fs-xl);
  line-height: 1;
  font-weight: 900;
}
.gt-shell.mobile-only .gt-metric > em {
  font-style: normal;
  font-weight: 700;
  font-size: var(--gt-fs-xs);
  color: var(--gt-muted);
}

/* === Action grid cards (Cash In / Cash Out / All Transactions / Add Reader) ===
   Tighten label sizing; allow 2-line wrapping for longer labels like
   "All Transactions" but keep them aligned. */
.gt-shell.mobile-only .gt-action {
  padding: 10px 6px;
  gap: 6px;
}
.gt-shell.mobile-only .gt-action strong {
  font-size: var(--gt-fs-sm);
  line-height: 1.15;
  white-space: normal;
  text-align: center;
}
.gt-shell.mobile-only .gt-action small {
  font-size: var(--gt-fs-2xs);
  line-height: 1.1;
}

/* === Filter chip rows — small compact pills (not big purple boxes) === */
.gt-shell.mobile-only .gt-segment,
.gt-shell.mobile-only .gt-notif-filters {
  gap: 6px;
  padding-bottom: 2px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 12px;
}
.gt-shell.mobile-only .gt-segment::-webkit-scrollbar,
.gt-shell.mobile-only .gt-notif-filters::-webkit-scrollbar {
  display: none;
}
.gt-shell.mobile-only #notifDateFilters.gt-notif-filters,
.gt-shell.mobile-only #notifFilters.gt-notif-filters {
  display: grid;
  gap: 6px;
}
.gt-shell.mobile-only #notifDateFilters.gt-notif-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.gt-shell.mobile-only #notifFilters.gt-notif-filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gt-shell.mobile-only #notifDateFilters.gt-notif-filters::before,
.gt-shell.mobile-only #notifFilters.gt-notif-filters::before {
  grid-column: 1 / -1;
  color: var(--gt-muted);
  font-size: var(--gt-fs-2xs);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}
.gt-shell.mobile-only #notifDateFilters.gt-notif-filters::before {
  content: "Date Range";
}
.gt-shell.mobile-only #notifFilters.gt-notif-filters::before {
  content: "Status";
}
.gt-shell.mobile-only #notifPeriodLabel {
  display: none;
}
.gt-shell.mobile-only .gt-segment button,
.gt-shell.mobile-only .gt-toggle:not(.wide) button,
.gt-shell.mobile-only .gt-notif-filters button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: var(--gt-fs-xs);
  border-radius: 999px;
  border: 1px solid var(--gt-border);
  background: #fff;
  color: var(--gt-text);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.gt-shell.mobile-only .gt-notif-filters button svg {
  width: 14px;
  height: 14px;
}
.gt-shell.mobile-only .gt-segment > button,
.gt-shell.mobile-only .gt-notif-filters > button {
  flex: 0 0 auto;       /* each button sizes to its own label — no clipping */
  padding-left: 13px;
  padding-right: 13px;
  min-width: unset;
}
.gt-shell.mobile-only .gt-segment button.active,
.gt-shell.mobile-only .gt-toggle:not(.wide) button.active,
.gt-shell.mobile-only .gt-notif-filters button.active {
  background: var(--gt-primary);
  color: #fff;
  border-color: var(--gt-primary);
}

/* Clickable feedback / active pill behavior for filter chips */
.gt-shell.mobile-only .gt-segment button:hover,
.gt-shell.mobile-only .gt-segment button:focus-visible,
.gt-shell.mobile-only .gt-notif-filters button:hover,
.gt-shell.mobile-only .gt-notif-filters button:focus-visible {
  border-color: var(--gt-primary);
}

/* === Search-row filter button: icon-only (drop redundant "Filter" text) === */
.gt-shell.mobile-only .gt-search-row > button {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 0;        /* hides any text node inside */
}
.gt-shell.mobile-only .gt-search-row > button svg {
  width: 18px;
  height: 18px;
}

/* === Account-view: stack List/Table toggle BELOW the GCash dropdown === */
.gt-shell.mobile-only .gt-account-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.gt-shell.mobile-only .gt-account-view .gt-toggle {
  grid-template-columns: 1fr 1fr;
  margin: 0;
  align-self: stretch;
}
.gt-shell.mobile-only .gt-account-view .gt-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* === 3-up stats summary — align icons, numbers, labels consistently ===
   Each child is now: icon orb (top), label (mid), number (bottom) — fixed rows. */
.gt-shell.mobile-only .gt-three-summary {
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 6px;
  gap: 0;
}
.gt-shell.mobile-only .gt-three-summary > div {
  display: grid;
  grid-template-rows: var(--gt-orb-md) 18px auto;   /* icon · label · number */
  justify-items: center;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  border-right: 1px solid #ece8fb;
}
.gt-shell.mobile-only .gt-three-summary > div:last-child { border-right: 0; }
.gt-shell.mobile-only .gt-three-summary .gt-icon-orb {
  width: var(--gt-orb-md);
  height: var(--gt-orb-md);
  grid-row: 1;
}
.gt-shell.mobile-only .gt-three-summary .gt-icon-orb svg {
  width: calc(var(--gt-orb-md) * 0.45);
  height: calc(var(--gt-orb-md) * 0.45);
}
.gt-shell.mobile-only .gt-three-summary small {
  grid-row: 2;
  font-size: var(--gt-fs-2xs);
  font-weight: 800;
  color: var(--gt-muted);
  line-height: 1;
  white-space: nowrap;
}
.gt-shell.mobile-only .gt-three-summary strong {
  grid-row: 3;
  font-size: var(--gt-fs-2xl);
  line-height: 1;
  color: var(--gt-primary);
}

/* === Fees Collected card — give the hint text breathing room === */
.gt-shell.mobile-only .gt-fee-hero {
  min-height: 104px;
  padding: 16px 18px;
}
.gt-shell.mobile-only .gt-fee-hero > span:not(.gt-icon-orb) {
  padding: 0;
}

/* === Notif metrics card — equal-width cells across both rows ===
   Uses a 6-column grid so:
     row 1 (3 cards) → each spans 2 cols (2/6 each → all equal)
     row 2 (2 wide)  → each spans 3 cols (3/6 each → all equal)
   This prevents the wide row from forcing the narrow row to unequal widths. */
.gt-shell.mobile-only .gt-notif-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 12px;
  margin-bottom: 14px;
}
.gt-shell.mobile-only .gt-notif-metrics > div {
  grid-column: span 2;
  min-height: auto;
  min-width: 0;
  padding: 10px 6px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-items: center;
  gap: 4px;
}
.gt-shell.mobile-only .gt-notif-metrics > div > b {
  grid-column: 1;
  grid-row: 1;
  font-size: var(--gt-fs-2xs);
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}
.gt-shell.mobile-only .gt-notif-metrics > div > span {
  grid-column: 1;
  grid-row: 2;
  width: var(--gt-orb-sm);
  height: var(--gt-orb-sm);
}
.gt-shell.mobile-only .gt-notif-metrics > div > span svg {
  width: calc(var(--gt-orb-sm) * 0.55);
  height: calc(var(--gt-orb-sm) * 0.55);
}
.gt-shell.mobile-only .gt-notif-metrics > div > strong {
  grid-column: 1;
  grid-row: 3;
  font-size: var(--gt-fs-xl);
  line-height: 1;
}
/* Wide cells (Claimed Amount / Unclaimed Amount) on row 2 — each spans 3 of 6 cols */
.gt-shell.mobile-only .gt-notif-metrics > div.wide {
  grid-column: span 3;                  /* exactly half of 6 columns */
  /* horizontal layout: label/number left, icon right */
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  justify-items: start;
  text-align: left;
  padding: 10px 12px;
}
.gt-shell.mobile-only .gt-notif-metrics > div.wide > b {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
  white-space: normal;
}
.gt-shell.mobile-only .gt-notif-metrics > div.wide > strong {
  grid-column: 1;
  grid-row: 2;
  text-align: left;
}
.gt-shell.mobile-only .gt-notif-metrics > div.wide > span {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
}

/* === Search-row filter/search button on notif screen — icon-only too,
   and the search row itself uses a thin column for the icon button so the
   input gets the full remaining width. === */
.gt-shell.mobile-only .gt-notif-search {
  grid-template-columns: 1fr 44px;
  gap: 8px;
  margin-bottom: 12px;
}
.gt-shell.mobile-only .gt-notif-search > button {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eae5ff;
  color: var(--gt-primary);
  border: 1.5px solid #c9bdff;
}
.gt-shell.mobile-only .gt-notif-search > button svg {
  width: 18px;
  height: 18px;
}

/* === Transaction records (.gt-record) — wider content, single-line ref number,
       complete details visible. Adjust padding and font sizes. === */
.gt-shell.mobile-only .gt-record {
  padding: 12px;
  column-gap: 10px;
}
.gt-shell.mobile-only .gt-record > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.gt-shell.mobile-only .gt-record > div > b {
  font-size: var(--gt-fs-md);
  display: block;
}
.gt-shell.mobile-only .gt-record > div > strong {
  font-size: var(--gt-fs-xs);
  font-weight: 700;
  color: var(--gt-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;       /* truncate, but keep on ONE line */
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0;
}
.gt-shell.mobile-only .gt-record .gt-meta-row {
  display: grid;
  gap: 2px;
  font-size: var(--gt-fs-2xs);
  color: var(--gt-muted);
  margin-top: 4px;
}
.gt-shell.mobile-only .gt-record .gt-meta-row span {
  line-height: 1.35;
}

/* Reduce padding around the parent list panel so the records get more width */
.gt-shell.mobile-only .gt-list-panel,
.gt-shell.mobile-only #mobileTransactionsList {
  padding: 4px 8px;
}

/* === Set Up Your Store card — compact rows so titles don't wrap === */
.gt-shell.mobile-only .gt-store-setup-card {
  padding: var(--gt-pad-md);
}
.gt-shell.mobile-only .gt-store-setup-card article {
  min-height: auto;
  grid-template-columns: var(--gt-orb-md) minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 0;
  align-items: center;
}
.gt-shell.mobile-only .gt-store-setup-card article > span {
  width: var(--gt-orb-md);
  height: var(--gt-orb-md);
}
.gt-shell.mobile-only .gt-store-setup-card article > span svg {
  width: calc(var(--gt-orb-md) * 0.5);
  height: calc(var(--gt-orb-md) * 0.5);
}
.gt-shell.mobile-only .gt-store-setup-card article > div {
  min-width: 0;
}
.gt-shell.mobile-only .gt-store-setup-card b {
  font-size: var(--gt-fs-md);     /* ~15-17px instead of 19px */
  line-height: 1.2;
}
.gt-shell.mobile-only .gt-store-setup-card small {
  font-size: var(--gt-fs-xs);     /* ~12-13px instead of 14px */
  line-height: 1.3;
  margin-top: 2px;
}
.gt-shell.mobile-only .gt-store-setup-card em {
  padding: 4px 8px;
  font-size: var(--gt-fs-xs);
  white-space: nowrap;
}
.gt-shell.mobile-only .gt-store-setup-card em svg {
  width: 14px;
  height: 14px;
}

/* Apply the same compaction to the dashboard progress card (similar layout) */
.gt-shell.mobile-only .gt-progress-card article {
  min-height: auto;
  grid-template-columns: var(--gt-orb-md) minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0;
}
.gt-shell.mobile-only .gt-progress-card article > span {
  width: var(--gt-orb-md);
  height: var(--gt-orb-md);
}
.gt-shell.mobile-only .gt-progress-card article > div { min-width: 0; }
.gt-shell.mobile-only .gt-progress-card b { font-size: var(--gt-fs-md); }
.gt-shell.mobile-only .gt-progress-card small { font-size: var(--gt-fs-xs); }
.gt-shell.mobile-only .gt-progress-card em {
  padding: 4px 8px;
  font-size: var(--gt-fs-xs);
}

/* === Transaction History card (transactions screen) ===================== */
.gt-shell.mobile-only .gt-history-card {
  padding: var(--gt-pad-md);
  margin-top: 12px;
}
.gt-shell.mobile-only .gt-history-card .gt-card-heading,
.gt-shell.mobile-only .gt-summary-card .gt-card-heading {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gt-primary);
  text-align: center;
  letter-spacing: 0.5px;
}
.gt-shell.mobile-only .gt-card-heading.center { text-align: center; }
.gt-shell.mobile-only .gt-card-heading.primary { color: var(--gt-primary); }

/* SUMMARY card (top) */
.gt-shell.mobile-only .gt-summary-card {
  padding: var(--gt-pad-md);
}
.gt-shell.mobile-only .gt-summary-range {
  margin-bottom: 12px;
}
.gt-shell.mobile-only .gt-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.gt-shell.mobile-only .gt-summary-tile {
  border: 1px solid var(--gt-border);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}
.gt-shell.mobile-only .gt-summary-tile small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--gt-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gt-shell.mobile-only .gt-summary-tile strong {
  font-size: var(--gt-fs-lg);
  font-weight: 600;
  line-height: 1;
  text-align: right;
}
.gt-shell.mobile-only .gt-summary-tile.green   { background: #f1fbf5; }
.gt-shell.mobile-only .gt-summary-tile.green strong { color: var(--gt-green); }
.gt-shell.mobile-only .gt-summary-tile.green .gt-tile-meta { color: var(--gt-green); }
.gt-shell.mobile-only .gt-summary-tile.red     { background: #fff4f4; }
.gt-shell.mobile-only .gt-summary-tile.red strong   { color: var(--gt-red); }
.gt-shell.mobile-only .gt-summary-tile.red .gt-tile-meta { color: var(--gt-red); }
.gt-shell.mobile-only .gt-summary-tile.purple  { background: var(--gt-soft); }
.gt-shell.mobile-only .gt-summary-tile.purple strong { color: var(--gt-primary); }
.gt-shell.mobile-only .gt-summary-tile.purple .gt-tile-meta { color: var(--gt-primary); }
.gt-shell.mobile-only .gt-summary-tile.gray    { background: #f5f5f7; }
.gt-shell.mobile-only .gt-summary-tile.gray strong,
.gt-shell.mobile-only .gt-summary-tile.gray .gt-tile-meta { color: var(--gt-primary); }

.gt-shell.mobile-only .gt-summary-tile.green strong,
.gt-shell.mobile-only .gt-summary-tile.red strong,
.gt-shell.mobile-only .gt-summary-tile.purple strong,
.gt-shell.mobile-only .gt-summary-tile.gray strong {
  font-weight: 600;
}

/* Sub-line under each tile's big number — e.g. "4 txns" */
.gt-shell.mobile-only .gt-tile-meta {
  font-size: var(--gt-fs-2xs);
  font-weight: 700;
  color: var(--gt-muted);
  line-height: 1;
  margin-top: 2px;
  letter-spacing: .02em;
  text-align: right;
}
.gt-shell.mobile-only .gt-summary-date {
  margin: 0;
  text-align: right;
  font-size: var(--gt-fs-xs);
  color: var(--gt-muted);
}

/* Custom date-range picker (under the chips when "Custom" is active) */
.gt-shell.mobile-only .gt-summary-custom-range {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.gt-shell.mobile-only .gt-summary-custom-range[hidden] { display: none; }
.gt-shell.mobile-only .gt-summary-custom-range input[type="date"] {
  appearance: none;
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gt-primary);
  border-radius: 12px;
  font-family: inherit;
  font-size: var(--gt-fs-sm);
  color: var(--gt-text);
  background: #fff;
}
.gt-shell.mobile-only .gt-summary-custom-range span {
  font-size: var(--gt-fs-xs);
  color: var(--gt-muted);
  padding-left: 4px;
}
.gt-shell.mobile-only .gt-notif-custom-range {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}

/* Date-range box (bordered card-within-card) */
.gt-shell.mobile-only .gt-daterange-box {
  border: 1.5px solid var(--gt-primary);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: grid;
  gap: 10px;
}
.gt-shell.mobile-only .gt-daterange-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gt-shell.mobile-only .gt-daterange-inputs label {
  display: grid;
  gap: 4px;
  font-size: var(--gt-fs-2xs);
  font-weight: 800;
  color: var(--gt-muted);
}
.gt-shell.mobile-only .gt-daterange-inputs input[type="date"] {
  appearance: none;
  border: 1px solid var(--gt-border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: var(--gt-fs-xs);
  font-family: inherit;
  background: #fff;
  color: var(--gt-text);
  width: 100%;
  min-width: 0;
}
.gt-shell.mobile-only .gt-quick-range {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.gt-shell.mobile-only .gt-quick-range button {
  appearance: none;
  border: 1px solid var(--gt-border);
  background: #fff;
  color: var(--gt-text);
  font-weight: 700;
  font-size: var(--gt-fs-xs);
  padding: 5px 0;
  min-height: 28px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.gt-shell.mobile-only .gt-quick-range button:hover,
.gt-shell.mobile-only .gt-quick-range button:focus-visible {
  border-color: var(--gt-primary);
}
.gt-shell.mobile-only .gt-quick-range button.active {
  background: var(--gt-primary);
  color: #fff;
  border-color: var(--gt-primary);
}

/* History search bar (under date range) — single full-width input,
   no companion button column (overrides the 2-col `.gt-search-row` default). */
.gt-shell.mobile-only .gt-history-search {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  margin-bottom: 12px;
}
.gt-shell.mobile-only .gt-history-search label {
  width: 100%;
}
.gt-shell.mobile-only .gt-history-search input {
  width: 100%;
  min-width: 0;
}

/* Count + Export PDF row */
.gt-shell.mobile-only .gt-history-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.gt-shell.mobile-only .gt-history-count {
  font-size: var(--gt-fs-sm);
  color: var(--gt-muted);
  font-weight: 700;
}
.gt-shell.mobile-only .gt-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--gt-primary);
  color: #fff;
  border: 0;
  font-size: var(--gt-fs-sm);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.gt-shell.mobile-only .gt-export-btn svg {
  width: 16px;
  height: 16px;
}

/* List/Table toggle */
.gt-shell.mobile-only .gt-history-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.gt-shell.mobile-only .gt-history-toggle button {
  appearance: none;
  border: 1px solid var(--gt-border);
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  color: var(--gt-text);
  font-weight: 800;
  font-size: var(--gt-fs-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.gt-shell.mobile-only .gt-history-toggle button.active {
  background: var(--gt-primary);
  color: #fff;
  border-color: var(--gt-primary);
}
.gt-shell.mobile-only .gt-history-toggle button svg {
  width: 16px;
  height: 16px;
}

/* Inline horizontal-scrolling table view */
.gt-shell.mobile-only .gt-history-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gt-border);
  border-radius: 12px;
  background: #fff;
  margin-top: 4px;
}
.gt-shell.mobile-only .gt-history-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: var(--gt-fs-xs);
}
.gt-shell.mobile-only .gt-history-table thead th {
  background: var(--gt-soft);
  color: var(--gt-primary);
  padding: 9px 10px;
  text-align: left;
  font-weight: 800;
  white-space: nowrap;
  font-size: var(--gt-fs-2xs);
  letter-spacing: .02em;
}
.gt-shell.mobile-only .gt-history-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #ece8fb;
  white-space: nowrap;
  vertical-align: middle;
}
.gt-shell.mobile-only .gt-history-table tbody tr:last-child td {
  border-bottom: 0;
}
.gt-shell.mobile-only .gt-history-table .photo-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--gt-border);
  border-radius: 7px;
  background: var(--gt-soft);
  color: var(--gt-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.gt-shell.mobile-only .gt-history-table .photo-btn svg { width: 14px; height: 14px; }
.gt-shell.mobile-only .gt-history-table .type-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}
.gt-shell.mobile-only .gt-history-table .type-pill.in  { background: #e9f9ef; color: var(--gt-green); }
.gt-shell.mobile-only .gt-history-table .type-pill.out { background: #ffe9ea; color: var(--gt-red); }
.gt-shell.mobile-only .gt-history-table .amt-in  { color: var(--gt-green); font-weight: 800; }
.gt-shell.mobile-only .gt-history-table .amt-out { color: var(--gt-red); font-weight: 800; }

/* Clickable rows */
.gt-shell.mobile-only .gt-history-table tbody tr[data-txn-id] {
  cursor: pointer;
  transition: background .12s ease;
}
.gt-shell.mobile-only .gt-history-table tbody tr[data-txn-id]:hover,
.gt-shell.mobile-only .gt-history-table tbody tr[data-txn-id]:focus-visible {
  background: var(--gt-soft);
}

/* GCash Account Used cell: "Name · Number" purple link-style */
.gt-history-table .tbl-account-cell {
  min-width: 150px;
  line-height: 1.25;
  white-space: normal;
}

.gt-history-table .tbl-account-name,
.gt-history-table .tbl-account-num {
  display: block;
}

.gt-history-table .tbl-account-name {
  color: var(--gt-primary);
  font-weight: 800;
}

.gt-history-table .tbl-account-num {
  margin-top: 2px;
  color: var(--gt-primary);
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Final card color pass: homepage metric numbers and transaction summary
   values should inherit the meaning of each card's background. */
.gt-shell.mobile-only .gt-metric.purple .gt-metric-nums strong,
.gt-shell.mobile-only .gt-metric.purple .gt-metric-nums em,
.gt-shell.mobile-only .gt-summary-tile.purple strong,
.gt-shell.mobile-only .gt-summary-tile.purple .gt-tile-meta,
.gt-shell.mobile-only .gt-summary-tile.gray strong,
.gt-shell.mobile-only .gt-summary-tile.gray .gt-tile-meta {
  color: var(--gt-primary) !important;
}

.gt-shell.mobile-only .gt-metric.green .gt-metric-nums strong,
.gt-shell.mobile-only .gt-metric.green .gt-metric-nums em,
.gt-shell.mobile-only .gt-summary-tile.green strong,
.gt-shell.mobile-only .gt-summary-tile.green .gt-tile-meta {
  color: var(--gt-green) !important;
}

.gt-shell.mobile-only .gt-metric.red .gt-metric-nums strong,
.gt-shell.mobile-only .gt-metric.red .gt-metric-nums em,
.gt-shell.mobile-only .gt-summary-tile.red strong,
.gt-shell.mobile-only .gt-summary-tile.red .gt-tile-meta {
  color: var(--gt-red) !important;
}

.gt-shell.mobile-only .gt-metric.amber .gt-metric-nums strong,
.gt-shell.mobile-only .gt-metric.amber .gt-metric-nums em {
  color: var(--gt-amber) !important;
}

.gt-shell.mobile-only .gt-notif-metrics > div {
  border-width: 1.2px !important;
}

.gt-shell.mobile-only .gt-notif-metrics > div.blue {
  border-color: #ddd6fe !important;
  background: #faf9ff !important;
}

.gt-shell.mobile-only .gt-notif-metrics > div.green {
  border-color: #bbf7d0 !important;
  background: #f0fdf4 !important;
}

.gt-shell.mobile-only .gt-notif-metrics > div.amber {
  border-color: #fed7aa !important;
  background: #fff7ed !important;
}

.gt-shell.mobile-only .gt-notif-metrics > div > b {
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

.gt-shell.mobile-only .gt-notif-metrics > div > strong {
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.gt-shell.mobile-only .gt-notif-metrics > div.blue > b,
.gt-shell.mobile-only .gt-notif-metrics > div.blue > strong {
  color: var(--gt-primary) !important;
}

.gt-shell.mobile-only .gt-notif-metrics > div.green > b,
.gt-shell.mobile-only .gt-notif-metrics > div.green > strong {
  color: var(--gt-green) !important;
}

.gt-shell.mobile-only .gt-notif-metrics > div.amber > b,
.gt-shell.mobile-only .gt-notif-metrics > div.amber > strong {
  color: var(--gt-amber) !important;
}

.gt-shell.mobile-only .gt-history-table .tbl-account-cell {
  min-width: 160px;
  line-height: 1.35;
}
.gt-shell.mobile-only .gt-history-table .tbl-account-name {
  color: var(--gt-primary);
  font-weight: 800;
}
.gt-shell.mobile-only .gt-history-table .tbl-account-num {
  color: var(--gt-primary);
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* GCash Time / Claimed On cell: time on top, claim line below in purple */
.gt-shell.mobile-only .gt-history-table .tbl-dates-cell {
  min-width: 200px;
  line-height: 1.35;
}
.gt-shell.mobile-only .gt-history-table .tbl-gcash-time {
  font-weight: 700;
  color: var(--gt-text);
  white-space: nowrap;
}
.gt-shell.mobile-only .gt-history-table .tbl-claimed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--gt-primary);
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}
.gt-shell.mobile-only .gt-history-table .tbl-claimed svg {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
}

/* Row spacing tweaks for the table */
.gt-shell.mobile-only .gt-history-table tbody td {
  padding: 12px 12px;
}

/* === Daily Fee Records: Selected-day stat row =====================
   The original 1.25fr 1fr .8fr 1fr columns made numbers misalign and
   labels wrap unevenly.  4 equal columns + smaller fonts fix both. */
.gt-shell.mobile-only .gt-selected-day {
  padding: var(--gt-pad-md);
}
.gt-shell.mobile-only .gt-selected-day h2 {
  margin: 0 0 12px;
  font-size: var(--gt-fs-md);
}
.gt-shell.mobile-only .gt-selected-day > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gt-shell.mobile-only .gt-selected-day > div > span {
  display: grid;
  grid-template-rows: 30px 1fr;     /* label row (30px) | number row */
  justify-items: center;
  align-items: start;
  text-align: center;
  color: var(--gt-muted);
  font-size: var(--gt-fs-2xs);
  min-width: 0;
}
.gt-shell.mobile-only .gt-selected-day strong {
  align-self: center;                /* number aligns vertically across all 4 cells */
  margin-top: 0;
  font-size: var(--gt-fs-xl);
  line-height: 1;
  text-align: center;
}

/* === Daily Records table — align headers with rows, fit dates on one line === */
.gt-shell.mobile-only .gt-daily-title {
  margin: 14px 0 8px;
  font-size: var(--gt-fs-md);
}
.gt-shell.mobile-only .gt-daily-table {
  overflow: hidden;
}
/* Unified grid for both header and rows so columns line up. */
.gt-shell.mobile-only .gt-daily-table .head,
.gt-shell.mobile-only .gt-daily-table article {
  display: grid;
  grid-template-columns: 26px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.7fr) 16px;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #ece8fb;
}
.gt-shell.mobile-only .gt-daily-table .head {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
/* Header text shifted into the matching data columns */
.gt-shell.mobile-only .gt-daily-table .head > span:nth-child(1) {
  grid-column: 2;
}
.gt-shell.mobile-only .gt-daily-table .head > span:nth-child(2) {
  grid-column: 3;
  text-align: left;
}
.gt-shell.mobile-only .gt-daily-table .head > span:nth-child(3) {
  grid-column: 4;
  text-align: left;
}
.gt-shell.mobile-only .gt-daily-table article > svg:first-child {
  width: 18px;
  height: 18px;
  grid-column: 1;
}
.gt-shell.mobile-only .gt-daily-table article > div {
  grid-column: 2;
  min-width: 0;
}
.gt-shell.mobile-only .gt-daily-table article > strong {
  grid-column: 3;
  text-align: left;
  font-size: 14px;
}
.gt-shell.mobile-only .gt-daily-table article > em {
  grid-column: 4;
  text-align: left;
  font-size: 14px;
}
.gt-shell.mobile-only .gt-daily-table article > svg:last-child {
  grid-column: 5;
  width: 16px;
  height: 16px;
}
/* Daily table rows are tappable */
.gt-shell.mobile-only .gt-daily-table article[data-day] {
  cursor: pointer;
  transition: background 0.15s;
}
.gt-shell.mobile-only .gt-daily-table article[data-day]:hover,
.gt-shell.mobile-only .gt-daily-table article[data-day]:active {
  background: var(--gt-soft);
}
.gt-shell.mobile-only .gt-daily-table article[aria-expanded="true"] {
  background: var(--gt-soft);
}

/* ── Fee records: inline transaction expansion ─────────────────────── */
.fee-mobile-expansion {
  border-bottom: 1px solid var(--gt-border);
  background: var(--gt-surface);
}
.fee-mobile-empty {
  padding: 14px 16px;
  margin: 0;
  font-size: var(--gt-fs-xs);
  color: var(--gt-muted);
  text-align: center;
}
.fee-mobile-txn-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #f0ebff;
  cursor: pointer;
  transition: background 0.12s;
}
.fee-mobile-txn-row:last-child {
  border-bottom: none;
}
.fee-mobile-txn-row:active,
.fee-mobile-txn-row:hover {
  background: var(--gt-soft);
}
.fee-mobile-txn-row .gt-table-type {
  flex-shrink: 0;
  margin-top: 2px;
}
.fee-mobile-txn-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fee-mobile-txn-info b {
  font-size: var(--gt-fs-xs);
  font-weight: 700;
  color: var(--gt-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fee-mobile-txn-info small {
  font-size: var(--gt-fs-2xs);
  color: var(--gt-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fee-mobile-txn-amount {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.fee-mobile-txn-amount strong {
  font-size: var(--gt-fs-sm);
  font-weight: 800;
  color: var(--gt-text);
}
.fee-mobile-txn-amount em {
  font-size: var(--gt-fs-2xs);
  font-style: normal;
  color: var(--gt-primary);
  font-weight: 600;
}
/* Date cell: full date on one line, weekday below in smaller text */
.gt-shell.mobile-only .gt-daily-table b {
  display: block;
  font-size: var(--gt-fs-xs);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gt-shell.mobile-only .gt-daily-table small {
  display: block;
  font-size: var(--gt-fs-2xs);
  color: var(--gt-muted);
  line-height: 1.1;
  margin-top: 1px;
}
.gt-shell.mobile-only .gt-metric .gt-metric-body strong { font-size: var(--gt-fs-xl); }
.gt-shell.mobile-only .gt-metric .gt-metric-body small { font-size: var(--gt-fs-xs); }
.gt-shell.mobile-only .gt-three-summary strong { font-size: var(--gt-fs-2xl); }

/* Transaction list */
.gt-shell.mobile-only .gt-record b { font-size: var(--gt-fs-xs); }
.gt-shell.mobile-only .gt-record strong { font-size: var(--gt-fs-sm); }
.gt-shell.mobile-only .gt-record small { font-size: var(--gt-fs-xs); }
.gt-shell.mobile-only .gt-record em { font-size: var(--gt-fs-md); }

/* Buttons */
.gt-shell.mobile-only .gt-button { font-size: var(--gt-fs-base); }

/* Bottom nav labels */
.gt-shell.mobile-only .gt-bottom-nav button { font-size: var(--gt-fs-2xs); }

/* =================================================================== */
/* Android-specific tuning                                              */
/* =================================================================== */

/* Respect the gesture / nav bar at the bottom of Android devices.
   safe-area-inset-bottom is also defined by recent Android Chrome via
   `viewport-fit=cover`. The padding adds onto the existing 104px. */
.gt-shell.mobile-only .gt-screen:has(.gt-bottom-nav) {
  padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

.gt-shell.mobile-only .gt-bottom-nav {
  bottom: 0;
}

/* Material-style minimum touch target on Android (48dp). */
.gt-shell.mobile-only .gt-bottom-nav button,
.gt-shell.mobile-only .gt-button,
.gt-shell.mobile-only .gt-icon-button,
.gt-shell.mobile-only .gt-settings-group > button,
.gt-shell.mobile-only .gt-permission-cards article > button {
  min-height: max(48px, var(--gt-touch-md, 48px));
}

/* Disable iOS-style text-size-adjust to prevent Chrome on Android from
   silently upscaling text on rotation. */
.gt-shell.mobile-only {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Prevent tap highlight color on Android Chrome */
.gt-shell.mobile-only button,
.gt-shell.mobile-only a,
.gt-shell.mobile-only [role="button"] {
  -webkit-tap-highlight-color: rgba(90, 53, 255, 0.15);
}

/* =================================================================== */
/* Responsive icons + boxes — scale alongside the type system.          */
/* =================================================================== */

/* SVG icons inline in lists, buttons, list-rows */
.gt-shell.mobile-only .gt-record button > svg,
.gt-shell.mobile-only .gt-bottom-nav button > svg {
  width: var(--gt-icon-md);
  height: var(--gt-icon-md);
}

/* Topbar back / icon buttons */
.gt-shell.mobile-only .gt-icon-button > svg,
.gt-shell.mobile-only .gt-topbar > svg {
  width: var(--gt-icon-md);
  height: var(--gt-icon-md);
}

/* Chevrons on list rows */
.gt-shell.mobile-only .gt-settings-group > button > svg:last-child,
.gt-shell.mobile-only .gt-wallet-accounts article > svg:last-child,
.gt-shell.mobile-only .gt-referred-stores article > svg:last-child,
.gt-shell.mobile-only .gt-phones-card article:not(.gt-phone-card) > svg:last-child,
.gt-shell.mobile-only .gt-balance-list article > svg:last-child {
  width: var(--gt-icon-sm);
  height: var(--gt-icon-sm);
}

/* Settings list icon box (purple soft square) */
.gt-shell.mobile-only .gt-settings-group > button > span:first-child {
  width: var(--gt-orb-sm);
  height: var(--gt-orb-sm);
}
.gt-shell.mobile-only .gt-settings-group > button > span:first-child svg {
  width: calc(var(--gt-orb-sm) * 0.55);
  height: calc(var(--gt-orb-sm) * 0.55);
}

/* Generic icon orbs used across phones / wallets / referred-stores / balance lists */
.gt-shell.mobile-only .gt-icon-orb {
  width: var(--gt-orb-md);
  height: var(--gt-orb-md);
}
.gt-shell.mobile-only .gt-icon-orb svg {
  width: calc(var(--gt-orb-md) * 0.5);
  height: calc(var(--gt-orb-md) * 0.5);
}

/* Referral hero gift circle (larger) */
.gt-shell.mobile-only .gt-ref-gift {
  width: var(--gt-orb-xl);
  height: var(--gt-orb-xl);
}
.gt-shell.mobile-only .gt-ref-gift svg {
  width: calc(var(--gt-orb-xl) * 0.45);
  height: calc(var(--gt-orb-xl) * 0.45);
}

/* Stat / metric orbs in dashboard cards */
.gt-shell.mobile-only .gt-metric .gt-metric-row .gt-icon-orb,
.gt-shell.mobile-only .gt-three-summary > span {
  width: var(--gt-orb-md);
  height: var(--gt-orb-md);
}
.gt-shell.mobile-only .gt-metric .gt-metric-row .gt-icon-orb svg,
.gt-shell.mobile-only .gt-three-summary > span svg {
  width: calc(var(--gt-orb-md) * 0.5);
  height: calc(var(--gt-orb-md) * 0.5);
}

/* Card paddings */
.gt-shell.mobile-only .gt-card { padding: var(--gt-pad-md); }
.gt-shell.mobile-only .gt-settings-group > button { padding: var(--gt-pad-sm); }
.gt-shell.mobile-only .gt-wallet-accounts article,
.gt-shell.mobile-only .gt-phones-card article:not(.gt-phone-card),
.gt-shell.mobile-only .gt-balance-list article {
  padding: var(--gt-pad-sm);
}
.gt-shell.mobile-only .gt-referral-hero { padding: var(--gt-pad-lg); }

/* Button heights */
.gt-shell.mobile-only .gt-button { min-height: var(--gt-touch-md); }
.gt-shell.mobile-only .gt-icon-button { min-height: var(--gt-touch-sm); }

/* Logo in topbar (responsive) */
.gt-shell.mobile-only .gt-logo-sm {
  width: var(--gt-logo-sm);
  height: var(--gt-logo-sm);
}

/* Welcome screen hero logo */
.gt-shell.mobile-only .gt-welcome-logo {
  width: var(--gt-logo-lg);
  height: var(--gt-logo-lg);
  border-radius: calc(var(--gt-logo-lg) * 0.24);
}

/* Brand mark (card header logos like "GTransact" badge) */
.gt-shell.mobile-only .gt-brand img {
  width: var(--gt-logo-sm);
  height: var(--gt-logo-sm);
}

/* Welcome headline / body type responsive */
.gt-shell.mobile-only .gt-welcome h1 { font-size: var(--gt-fs-2xl); }
.gt-shell.mobile-only .gt-welcome p { font-size: var(--gt-fs-base); }

/* Success / large flow headlines (welcome/done states) */
.gt-shell.mobile-only .gt-success h1 { font-size: var(--gt-fs-2xl); }

/* Standardize line-art SVGs that are direct children of cards
   (e.g. illustration graphics on flow / onboarding screens) */
.gt-shell.mobile-only .gt-card > svg:not(.gt-icon-orb svg):not([data-decorative]) {
  max-width: 100%;
  height: auto;
}

/* Step / flow indicator icons (e.g. onboarding numbered steps) */
.gt-shell.mobile-only .gt-step-icon svg {
  width: var(--gt-icon-sm);
  height: var(--gt-icon-sm);
}

/* Topbar / icon-button SVGs scale with phone size */
.gt-shell.mobile-only .gt-icon-button svg {
  width: var(--gt-icon-md);
  height: var(--gt-icon-md);
}

/* Transaction list items (.gt-txn — used in Notifs / dashboard recent / transactions).
   ALL mobile widths use a stacked layout so the amount never competes
   with the name+date for horizontal space (which caused 1-word-per-line wrap). */
.gt-shell.mobile-only .gt-txn {
  display: grid;
  grid-template-columns: var(--gt-orb-md) minmax(0, 1fr) var(--gt-icon-sm);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  padding: var(--gt-pad-sm);
  align-items: center;
}
.gt-shell.mobile-only .gt-txn > span:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: var(--gt-orb-md);
  height: var(--gt-orb-md);
  align-self: center;
}
.gt-shell.mobile-only .gt-txn > span:first-child svg {
  width: calc(var(--gt-orb-md) * 0.5);
  height: calc(var(--gt-orb-md) * 0.5);
}
.gt-shell.mobile-only .gt-txn > div {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.gt-shell.mobile-only .gt-txn > strong {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  text-align: left;
  min-width: 0;
}
.gt-shell.mobile-only .gt-txn > svg:last-child {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  width: var(--gt-icon-sm);
  height: var(--gt-icon-sm);
}

.gt-shell.mobile-only .gt-txn b { font-size: var(--gt-fs-md); display: block; }
.gt-shell.mobile-only .gt-txn small {
  font-size: var(--gt-fs-xs);
  color: var(--gt-muted);
  line-height: 1.4;
  display: block;
}
.gt-shell.mobile-only .gt-txn strong { font-size: var(--gt-fs-md); }
.gt-shell.mobile-only .gt-txn em { font-size: var(--gt-fs-xs); }

/* Transaction list cards (.gt-record — main Transactions screen).
   Same stacked layout: name+date on row 1, amount on row 2 left,
   so the amount never compresses the text column. */
.gt-shell.mobile-only .gt-record {
  grid-template-columns: var(--gt-orb-md) minmax(0, 1fr) var(--gt-icon-sm);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  padding: var(--gt-pad-sm);
  align-items: center;
}
.gt-shell.mobile-only .gt-record > .gt-type-stack {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}
.gt-shell.mobile-only .gt-record > div {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.gt-shell.mobile-only .gt-record > em {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  align-self: start;
  text-align: left;
  min-width: 0;
}
.gt-shell.mobile-only .gt-record > button,
.gt-shell.mobile-only .gt-record > svg:last-child {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}

/* Notif metrics card — icon circles and big number */
.gt-shell.mobile-only .gt-notif-metrics span {
  width: var(--gt-orb-md);
  height: var(--gt-orb-md);
}
.gt-shell.mobile-only .gt-notif-metrics span svg {
  width: calc(var(--gt-orb-md) * 0.5);
  height: calc(var(--gt-orb-md) * 0.5);
}
.gt-shell.mobile-only .gt-notif-metrics strong { font-size: var(--gt-fs-2xl); }
.gt-shell.mobile-only .gt-notif-metrics .wide strong { font-size: var(--gt-fs-xl); }
.gt-shell.mobile-only .gt-notif-metrics b { font-size: var(--gt-fs-xs); }

/* Wallet card / hero icons */
.gt-shell.mobile-only .gt-wallet-card > span,
.gt-shell.mobile-only .gt-fee-hero > span {
  width: var(--gt-orb-lg);
  height: var(--gt-orb-lg);
}
.gt-shell.mobile-only .gt-wallet-card > span svg,
.gt-shell.mobile-only .gt-fee-hero > span svg {
  width: calc(var(--gt-orb-lg) * 0.45);
  height: calc(var(--gt-orb-lg) * 0.45);
}

/* Filter chip / pill rows */
.gt-shell.mobile-only .gt-chip,
.gt-shell.mobile-only .gt-pill,
.gt-shell.mobile-only .gt-filter-row > button {
  font-size: var(--gt-fs-sm);
  padding: 8px 14px;
}

/* Status badges (Active / Pending / Unclaimed) */
.gt-shell.mobile-only .gt-referred-stores em,
.gt-shell.mobile-only .gt-txn em,
.gt-shell.mobile-only .gt-pill-status {
  font-size: var(--gt-fs-xs);
  padding: 4px 9px;
}

/* =================================================================== */
/* NARROW-PHONE LAYOUT REARRANGEMENT (≤ 339px — iPhone SE 1st gen,      */
/* very old / accessibility large-text Androids).                       */
/* Standard Android phones (Samsung, Pixel, OnePlus) report 360px CSS   */
/* viewports — those should use the normal mobile layout, NOT this      */
/* squeezed rearrangement. So the breakpoint sits just below 360px.     */
/* =================================================================== */
@media (max-width: 339px) {
  /* ---------- Settings list rows ---------- */
  /* Drop chevron to its own row and put it under the icon so the title
     line has the full width (avoids "Permission Setup" wrapping). */
  .gt-shell.mobile-only .gt-settings-group > button {
    grid-template-columns: var(--gt-orb-sm) minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: 4px;
  }
  .gt-shell.mobile-only .gt-settings-group > button > svg:last-child {
    display: none; /* chevron is decorative; whole row is tappable */
  }

  /* ---------- Subscription header card ---------- */
  /* "Subscription Active … Manage" — stack vertically so Manage button
      becomes full-width below the date text */
  .gt-shell.mobile-only .gt-subscription-card,
  .gt-shell.mobile-only .gt-shop-card {
    grid-template-columns: 1fr !important;
    text-align: left;
  }
  .gt-shell.mobile-only .gt-subscription-card .gt-button,
  .gt-shell.mobile-only .gt-shop-card .gt-button {
    justify-self: stretch;
    width: 100%;
  }

  /* ---------- Filter chip rows (All / Unclaimed / Claimed / Today) ----------
     `.gt-segment` and `.gt-toggle` use repeat(4, 1fr) which clips longer
     labels like "Custom". Switch to horizontal-scroll layout so each button
     uses its own natural width. */
  .gt-shell.mobile-only .gt-segment,
  .gt-shell.mobile-only .gt-toggle:not(.wide),
  .gt-shell.mobile-only .gt-filter-row,
  .gt-shell.mobile-only .gt-chip-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 6px;
    grid-template-columns: none; /* override repeat(4, 1fr) */
  }
  .gt-shell.mobile-only .gt-segment > *,
  .gt-shell.mobile-only .gt-toggle:not(.wide) > *,
  .gt-shell.mobile-only .gt-filter-row > *,
  .gt-shell.mobile-only .gt-chip-row > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    padding-left: 14px;
    padding-right: 14px;
  }
  /* Hide scrollbar visually but keep the swipe behavior */
  .gt-shell.mobile-only .gt-segment::-webkit-scrollbar,
  .gt-shell.mobile-only .gt-toggle:not(.wide)::-webkit-scrollbar,
  .gt-shell.mobile-only .gt-filter-row::-webkit-scrollbar,
  .gt-shell.mobile-only .gt-chip-row::-webkit-scrollbar {
    display: none;
  }

  /* ---------- Notif metrics card ---------- */
  /* 6 tiny cells → 2-column 3-row stack (each metric is readable) */
  .gt-shell.mobile-only .gt-notif-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .gt-shell.mobile-only .gt-notif-metrics .wide {
    grid-column: 1 / -1; /* the two amount cards span full width */
  }

  /* ---------- Transaction / record list items ---------- */
  /* Move the amount under the name+date so the row doesn't compete
     for horizontal space with the icon and chevron. */
  .gt-shell.mobile-only .gt-txn,
  .gt-shell.mobile-only .gt-record {
    grid-template-columns: var(--gt-orb-md) minmax(0, 1fr) var(--gt-icon-sm);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 4px;
  }
  .gt-shell.mobile-only .gt-txn > span:first-child,
  .gt-shell.mobile-only .gt-record > .gt-type-stack {
    grid-row: 1 / span 2;
    align-self: center;
  }
  .gt-shell.mobile-only .gt-txn > div,
  .gt-shell.mobile-only .gt-record > div {
    grid-column: 2;
    grid-row: 1;
  }
  .gt-shell.mobile-only .gt-txn > strong,
  .gt-shell.mobile-only .gt-record > em {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    text-align: left;
    min-width: 0;
  }
  .gt-shell.mobile-only .gt-txn > svg:last-child,
  .gt-shell.mobile-only .gt-record > svg:last-child {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  /* ---------- Referred-stores row ---------- */
  /* Move the "Active" / "Pending" badge under the name so it doesn't
     compete with the email text */
  .gt-shell.mobile-only .gt-referred-stores article {
    grid-template-columns: 40px minmax(0, 1fr) var(--gt-icon-sm);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 4px;
  }
  .gt-shell.mobile-only .gt-referred-stores article > span:first-child {
    grid-row: 1 / span 2;
  }
  .gt-shell.mobile-only .gt-referred-stores article > div {
    grid-column: 2;
    grid-row: 1;
  }
  .gt-shell.mobile-only .gt-referred-stores article > em {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .gt-shell.mobile-only .gt-referred-stores article > svg:last-child {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  /* ---------- Referral hero ---------- */
  /* Stack gift icon above the code text instead of side-by-side so the
     30px code has the full card width to breathe. */
  .gt-shell.mobile-only .gt-referral-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .gt-shell.mobile-only .gt-referral-hero > div:first-of-type {
    text-align: center;
  }
  .gt-shell.mobile-only .gt-referral-hero > .gt-ref-stats {
    text-align: left;
  }

  /* ---------- Dashboard 3-up summary (Completed / Cash In / Cash Out) ----------
     Keep 3 columns side-by-side even on narrow phones (these are tiny labels
     + numbers and shouldn't stack — stacking wastes vertical space). Compact
     the font sizes and padding instead. */
  .gt-shell.mobile-only .gt-three-summary {
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 4px;
    gap: 0;
  }
  .gt-shell.mobile-only .gt-three-summary div {
    gap: 3px;
    padding: 0 4px;
  }
  .gt-shell.mobile-only .gt-three-summary strong {
    font-size: var(--gt-fs-xl);
  }
  .gt-shell.mobile-only .gt-three-summary small {
    font-size: 10px;
    line-height: 1.2;
  }
.gt-shell.mobile-only .gt-three-summary svg {
  width: 14px;
  height: 14px;
}

.gt-shell.mobile-only .gt-completed-summary {
  margin: 10px 0 14px;
  border-radius: 14px;
  padding: 12px 8px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 0;
}

.gt-shell.mobile-only .gt-completed-summary > div {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 0 6px;
}

.gt-shell.mobile-only .gt-completed-summary small {
  color: var(--gt-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
}

.gt-shell.mobile-only .gt-completed-summary strong {
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
}

.gt-shell.mobile-only .gt-completed-summary i,
.gt-shell.mobile-only .gt-completed-summary svg {
  width: 18px;
  height: 18px;
  color: #0d1024;
  stroke-width: 2.4;
}

  /* ---------- Wallet "Initial balance" form ---------- */
  /* Save/Cancel button row → stack */
  .gt-shell.mobile-only .gt-balance-form .gt-form-actions {
    grid-template-columns: 1fr;
  }

  /* ---------- Fees Collected hero ---------- */
  /* Currently: wallet-icon | ₱385 | calendar-icon (3-col).
     On narrow phones: keep one icon (calendar — relevant to the action),
     drop min-height, and lay out as: icon | label/amount/hint stacked. */
  .gt-shell.mobile-only .gt-fee-hero {
    grid-template-columns: var(--gt-orb-md) 1fr;
    min-height: auto;
    padding: var(--gt-pad-md);
    text-align: left;
    gap: 12px;
    align-items: center;
  }
  /* Hide the first (wallet) icon, keep the calendar icon at the right */
  .gt-shell.mobile-only .gt-fee-hero > .gt-icon-orb:first-child {
    display: none;
  }
  .gt-shell.mobile-only .gt-fee-hero > .gt-icon-orb:last-child {
    width: var(--gt-orb-md);
    height: var(--gt-orb-md);
    grid-column: 1;
  }
  .gt-shell.mobile-only .gt-fee-hero > span:not(.gt-icon-orb) {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }

  /* ---------- Dashboard 2x2 metric grid --------------------------------- */
  .gt-shell.mobile-only .gt-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .gt-shell.mobile-only .gt-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 11px 8px;
    min-height: 0;
    text-align: center;
  }
  .gt-shell.mobile-only .gt-metric > b {
    font-size: var(--gt-fs-2xs);
    font-weight: 800;
    color: var(--gt-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
  }
  .gt-shell.mobile-only .gt-metric .gt-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .gt-shell.mobile-only .gt-metric .gt-metric-nums {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: right;
  }
  .gt-shell.mobile-only .gt-metric .gt-metric-nums strong {
    font-size: var(--gt-fs-xl);
    font-weight: 900;
    line-height: 1;
  }
  .gt-shell.mobile-only .gt-metric .gt-metric-nums em {
    font-size: var(--gt-fs-2xs);
    font-style: normal;
    font-weight: 800;
  }

  /* ---------- Action grid (Cash In / Cash Out / All Transactions buttons) ---------- */
  .gt-shell.mobile-only .gt-action-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .gt-shell.mobile-only .gt-action-grid > *:nth-child(3) {
    grid-column: 1 / -1; /* third action spans full width */
  }

  /* ---------- Permission Setup cards ---------- */
  /* Rearrange so badge + button stack below the title/description
     instead of competing for horizontal space. */
  .gt-shell.mobile-only .gt-permission-cards article {
    grid-template-columns: var(--gt-orb-md) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    row-gap: 8px;
    align-items: start;
  }
  .gt-shell.mobile-only .gt-permission-cards article > span:first-child,
  .gt-shell.mobile-only .gt-permission-cards article > .gt-icon-orb {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }
  .gt-shell.mobile-only .gt-permission-cards article > div {
    grid-column: 2;
    grid-row: 1;
  }
  .gt-shell.mobile-only .gt-permission-cards article > em {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .gt-shell.mobile-only .gt-permission-cards article > button {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
    width: 100%;
  }
}

/* Improved permission card layout at ALL mobile widths — the original
   3-col grid clipped the badge.  Use 2-col + stacked rows. */
.gt-shell.mobile-only .gt-permission-cards article {
  display: grid;
  grid-template-columns: var(--gt-orb-md) minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  row-gap: 6px;
  align-items: start;
  padding: var(--gt-pad-sm);
}
.gt-shell.mobile-only .gt-permission-cards article > span:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
}
.gt-shell.mobile-only .gt-permission-cards article > div {
  grid-column: 2 / -1;
  grid-row: 1;
  min-width: 0;
}
.gt-shell.mobile-only .gt-permission-cards article > em {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  white-space: nowrap;
}
.gt-shell.mobile-only .gt-permission-cards article > button {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 4px;
}

/* Title + description font sizes inside permission cards */
.gt-shell.mobile-only .gt-permission-cards article > div > b {
  font-size: var(--gt-fs-lg);
  font-weight: 800;
  line-height: 1.2;
  display: block;
}
.gt-shell.mobile-only .gt-permission-cards article > div > small {
  font-size: var(--gt-fs-sm);
  color: var(--gt-muted);
  line-height: 1.4;
  display: block;
  margin-top: 2px;
}

/* Permission intro card — slim down icon column, use readable body type */
.gt-shell.mobile-only .gt-permission-intro {
  grid-template-columns: var(--gt-orb-lg) minmax(0, 1fr);
  gap: 14px;
  padding: var(--gt-pad-md);
  font-size: var(--gt-fs-base);
  min-height: 0;
}
.gt-shell.mobile-only .gt-permission-intro .gt-icon-orb {
  width: var(--gt-orb-lg);
  height: var(--gt-orb-lg);
}
.gt-shell.mobile-only .gt-permission-intro .gt-icon-orb svg {
  width: calc(var(--gt-orb-lg) * 0.45);
  height: calc(var(--gt-orb-lg) * 0.45);
}
.gt-shell.mobile-only .gt-permission-intro p {
  font-size: var(--gt-fs-base);
  line-height: 1.45;
  margin: 0;
}

/* Final mobile polish: keep settings subpages compact and readable. */
.gt-shell.mobile-only .gt-faq-question {
  font-size: var(--gt-fs-sm);
  font-weight: 700;
  line-height: 1.35;
}

.gt-shell.mobile-only .gt-faq-list h2 {
  font-size: var(--gt-fs-md);
  font-weight: 800;
}

.gt-shell.mobile-only .gt-faq-list p {
  font-size: var(--gt-fs-sm);
  font-weight: 400;
  line-height: 1.5;
}

.gt-shell.mobile-only #screen-switch-role .gt-current-role {
  grid-template-columns: var(--gt-orb-lg) minmax(0, 1fr);
  gap: 12px;
  padding: var(--gt-pad-md);
  margin: 10px 0 16px;
  min-height: auto;
}

.gt-shell.mobile-only #screen-switch-role .gt-current-role .gt-role-art {
  width: var(--gt-orb-lg);
  height: var(--gt-orb-lg);
}

.gt-shell.mobile-only #screen-switch-role .gt-current-role h1 {
  font-size: var(--gt-fs-xl);
  line-height: 1.15;
  margin: 2px 0;
}

.gt-shell.mobile-only #screen-switch-role .gt-current-role p,
.gt-shell.mobile-only #screen-switch-role .gt-current-role b,
.gt-shell.mobile-only #screen-switch-role .gt-current-role small {
  font-size: var(--gt-fs-xs);
  line-height: 1.35;
}

.gt-shell.mobile-only #screen-switch-role .gt-block-title {
  font-size: var(--gt-fs-lg);
  margin: 14px 0 10px;
}

.gt-shell.mobile-only .gt-role-switch-list {
  gap: 10px;
}

.gt-shell.mobile-only .gt-role-switch-list button {
  min-height: auto;
  grid-template-columns: 26px var(--gt-orb-lg) minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
}

.gt-shell.mobile-only .gt-role-switch-list button > svg:first-child {
  width: 22px;
  height: 22px;
}

.gt-shell.mobile-only .gt-role-switch-list .gt-role-art {
  width: var(--gt-orb-lg);
  height: var(--gt-orb-lg);
}

.gt-shell.mobile-only .gt-role-switch-list b {
  font-size: var(--gt-fs-base);
  line-height: 1.2;
}

.gt-shell.mobile-only .gt-role-switch-list small {
  margin: 4px 0 8px;
  font-size: var(--gt-fs-xs);
  line-height: 1.35;
}

.gt-shell.mobile-only .gt-role-switch-list em {
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  font-size: var(--gt-fs-2xs);
  line-height: 1.2;
}

.gt-shell.mobile-only .gt-warning-card {
  min-height: auto;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 12px;
}

/* ─── Tiny phones (≤ 320px / iPhone SE 1st gen) ─────────────────── */
@media (max-width: 320px) {
  /* Drop wallet account chevron to give balance row more room */
  .gt-shell.mobile-only .gt-wallet-accounts article {
    grid-template-columns: var(--gt-orb-md) minmax(0, 1fr);
  }
  .gt-shell.mobile-only .gt-wallet-accounts article > svg:last-child {
    display: none;
  }

  /* Topbar title gets the full width by hiding the inline logo */
  .gt-shell.mobile-only .gt-topbar .gt-logo-sm {
    display: none;
  }
}

/* Sender's GCash number on transaction list records */
.gt-record .gt-record-sender-num {
  display: block;
  margin-top: 2px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--gt-muted, #6d6a8f);
  letter-spacing: 0.02em;
}

/* ──────────────────────────────────────────────────────────────────────
   AUTH GATE — hide all post-login screens until body has .is-authenticated.
   The login flow adds that class only after sign-in completes.
   Public web entry is Google sign-in only.
   ────────────────────────────────────────────────────────────────────── */
body:not(.is-authenticated) .gt-screen:not(#screen-signin),
body:not(.is-authenticated) .page:not(#page-signin) {
  display: none !important;
}

/* When not authed, force Google sign-in visible (overrides .active reqs). */
body:not(.is-authenticated) #screen-signin { display: block !important; }
/* ═══════════════════════════════════════════════════════════════════════
   NEW TRANSACTION — Redesigned 2-up card grid (matches screenshot)
   ═══════════════════════════════════════════════════════════════════════ */

/* Grid wrapper: two equal columns with comfortable gap */
.gt-new-txn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 3.6vw, 16px);
  padding: 6px 0 20px;
}

/* Each card tile */
.gt-new-txn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(24px, 7vw, 32px) clamp(12px, 3.6vw, 16px);
  border-radius: 20px;
  background: #ffffff;
  border: 1.5px solid rgba(200, 190, 255, 0.45);
  box-shadow:
    0 4px 16px rgba(57, 42, 130, 0.07),
    0 1px 3px rgba(57, 42, 130, 0.04);
  text-align: center;
  cursor: pointer;
  color: var(--gt-text);
  /* Smooth press feedback */
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}

.gt-new-txn-card:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(57, 42, 130, 0.1);
}

/* Large circular icon background */
.gt-new-txn-icon {
  width: clamp(72px, 21vw, 88px);
  height: clamp(72px, 21vw, 88px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gt-new-txn-icon svg {
  width: clamp(32px, 9.4vw, 40px);
  height: clamp(32px, 9.4vw, 40px);
  stroke-width: 1.7;
}

/* Cash In — soft green tint */
.gt-new-txn-icon.green {
  background: radial-gradient(circle at 38% 38%, #c8f5d8, #dff7e8 70%);
  color: #0a9a49;
}

/* Cash Out — soft lavender tint (matches screenshot purple) */
.gt-new-txn-icon.purple {
  background: radial-gradient(circle at 38% 38%, #d8d0ff, #eae5ff 70%);
  color: #6b4aff;
}

/* Title */
.gt-new-txn-card strong {
  display: block;
  font-size: clamp(15px, 4.4vw, 18px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.gt-new-txn-card.cash-in strong  { color: #08a84f; }
.gt-new-txn-card.cash-out strong { color: #5a35ff; }

/* Subtitle */
.gt-new-txn-card small {
  display: block;
  font-size: clamp(11px, 3.2vw, 13px);
  color: var(--gt-muted);
  line-height: 1.45;
  font-weight: 400;
  margin-top: -4px;
}

/* Mobile-only adjustments inside .gt-shell.mobile-only */
.gt-shell.mobile-only .gt-new-txn-grid {
  gap: 12px;
}

.gt-shell.mobile-only .gt-new-txn-card {
  padding: 26px 10px;
  border-radius: 18px;
  gap: 12px;
}

.gt-shell.mobile-only .gt-new-txn-icon {
  width: clamp(68px, 19vw, 80px);
  height: clamp(68px, 19vw, 80px);
}

/* ── New Transaction screen: push content to center-lower zone ──
   No display override on the screen element — let the existing
   .gt-screen / .active rules control visibility entirely.
   Only the inner wrapper gets its own spacing. */

.gt-new-txn-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: clamp(60px, 18vh, 120px);
}

/* Instruction text block */
.gt-new-txn-intro {
  text-align: center;
  padding: 0 4px;
}

.gt-new-txn-label {
  margin: 0 0 6px;
  font-size: clamp(17px, 5vw, 20px);
  font-weight: 700;
  color: var(--gt-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gt-new-txn-sub {
  margin: 0;
  font-size: clamp(12px, 3.4vw, 14px);
  color: var(--gt-muted);
  line-height: 1.5;
}

/* ── Bottom nav: New (+) button — circular icon badge ── */
.gt-bottom-nav [data-go="new-transaction"] svg {
  background: #9575ff;
  border-radius: 50%;
  padding: 7px;
  width: 38px;
  height: 38px;
  color: #fff;
  flex-shrink: 0;
}

/* Slightly richer when it's the active tab */
.gt-bottom-nav [data-go="new-transaction"].active svg {
  background: #7c5cff;
  color: #fff;
}

/* Mobile-only: keep fixed circle size regardless of icon scale */
.gt-shell.mobile-only .gt-bottom-nav [data-go="new-transaction"] svg {
  width: 38px;
  height: 38px;
  padding: 7px;
}
/* ── Dashboard: GCash Wallet & Reader Phones sections ───────────────────── */

.gt-dashboard-section-head {
  margin-top: 22px;
}

.gt-dashboard-section-head h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--gt-text);
}

.gt-dashboard-section-head button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gt-primary);
  background: transparent;
  border: 0;
}

.gt-dashboard-section-head button svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

/* Wallet card list */
.gt-dashboard-wallet-list,
.gt-dashboard-reader-list {
  padding: 0;
  overflow: hidden;
}

/* Each wallet account row */
.gt-dash-wallet-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.gt-dash-wallet-info b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--gt-text);
}

.gt-dash-wallet-info small {
  display: block;
  font-size: 12px;
  color: var(--gt-muted);
  margin-top: 2px;
}

.gt-dash-wallet-bal {
  text-align: right;
}

.gt-dash-wallet-bal em {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gt-muted);
  margin-bottom: 2px;
}

.gt-dash-wallet-bal strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: #06985c;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

/* Thin divider between rows */
.gt-dash-divider {
  border: 0;
  border-top: 1px solid var(--gt-border);
  margin: 0;
}

/* Each reader phone row */
.gt-dash-reader-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.desktop-connected-phones-panel .gt-dash-reader-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 12px;
  padding: 18px 28px;
  border: 1.5px solid #e8ddff;
  border-radius: 14px;
  background: #fff;
}

.desktop-connected-phones-panel .gt-dashboard-reader-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.desktop-connected-phones-panel .gt-dash-divider {
  display: none;
}

.desktop-connected-phones-panel .gt-dash-phone-icon,
.desktop-connected-phones-panel .gt-dash-add-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f0ebff;
  color: var(--gt-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.gt-dash-phone-icon {
  display: none !important;
}

.desktop-connected-phones-panel .gt-dash-phone-icon.purple {
  background: #ede9fe;
  color: #7c3aed;
}

.gt-dash-reader-info b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--gt-text);
  line-height: 1.25;
  margin-bottom: 4px;
}

.gt-dash-reader-info small,
.gt-dash-reader-info span {
  display: block;
  font-size: 12px;
  color: var(--gt-muted);
  margin-top: 2px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.desktop-connected-phones-panel .gt-dash-reader-info {
  min-width: 0;
  display: block;
}

.desktop-connected-phones-panel .gt-dash-reader-info > * {
  display: block;
}

.desktop-connected-phones-panel .gt-dash-detail {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin: 2px 0 0;
  color: var(--gt-muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.gt-dash-detail {
  display: block;
  max-width: 100%;
  color: var(--gt-muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.gt-dash-detail:not(.gt-dash-detail-title) {
  padding-left: 12px;
}

.desktop-connected-phones-panel .gt-dash-detail-title {
  margin-top: 0;
  color: var(--gt-text);
  font-size: 14px;
  font-weight: 800;
}

.gt-dash-detail-title {
  color: var(--gt-text);
  font-size: 14px;
  font-weight: 800;
}

/* Active badge */
.gt-dash-reader-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  align-self: start;
  margin-top: 2px;
}

.gt-dash-reader-badge.active {
  background: #e6faf0;
  color: var(--gt-green);
  border: 1px solid #bbf7d0;
}

.desktop-connected-phones-panel .gt-dash-reader-badge {
  align-self: start;
  white-space: nowrap;
  margin-top: 4px;
}

/* Add Reader Phone button row */
.gt-dash-add-reader {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px dashed var(--gt-border);
  border-radius: 12px;
  background: #fff;
  color: var(--gt-primary);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.desktop-connected-phones-panel .gt-dash-add-reader {
  margin-top: 14px;
  justify-content: flex-start;
  appearance: none;
  font-family: inherit;
  min-height: 54px;
}

.desktop-connected-phones-panel .gt-dash-add-reader:hover {
  background: #f8f5ff;
  border-color: var(--gt-primary);
}

@media (max-width: 900px) {
  .desktop-connected-phones-panel .gt-dash-reader-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .desktop-connected-phones-panel .gt-dash-reader-badge {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }
}

/* Purple icon orb variant for reader phones */
.gt-icon-orb.purple {
  background: #ede9fe;
  color: #7c3aed;
}
/* ═══════════════════════════════════════════════════════════════════
   GCash Phones — redesigned phone cards (v3)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Card header ── */
.gt-phones-card-header {
  margin-bottom: 14px;
}

.gt-phones-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.gt-phones-card-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--gt-text);
}

.gt-phones-connected-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  background: #eeeaff;
  color: var(--gt-primary);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.01em;
}

.gt-phones-card-header > p {
  margin: 0;
  font-size: 12px;
  color: var(--gt-muted);
  line-height: 1.4;
}

.gt-connected-phone-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Phone orb sizing (smaller than global gt-icon-orb) ── */
.gt-icon-orb.gt-icon-orb--phone {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
}

.gt-icon-orb.gt-icon-orb--phone svg {
  width: 22px;
  height: 22px;
}

/* Connected Phones cards no longer show the standalone phone icon. */
.gt-phone-card-top > .gt-icon-orb.gt-icon-orb--phone {
  display: none !important;
}

.gt-icon-orb.blue {
  background: #e8eeff;
  color: #3b5bff;
}

/* ── Phone card shell ── */
.gt-phones-card .gt-phone-card {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: unset !important;
  gap: 0 !important;
  padding: 14px 14px 12px !important;
  border: 1.5px solid #ede8ff !important;
  border-radius: 16px;
  background: #fff;
  margin-top: 0;
  box-shadow: 0 2px 8px rgba(90,53,255,0.05);
  position: relative;
}

/* Top row: orb + name/badge + status dot */
.gt-phone-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gt-phone-card-name {
  flex: 1;
  min-width: 0;
}

.gt-phone-card-name b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--gt-text);
  line-height: 1.2;
}

/* ── Status dot (live/offline) ── */
.gt-phone-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
  align-self: flex-start;
  margin-top: 3px;
}

.gt-phone-status-dot.live {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.gt-phone-status-dot.offline {
  background: #d1d5db;
}

/* ── Badges ── */
.gt-phone-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  font-style: normal;
  letter-spacing: 0.01em;
}

.gt-phone-badge.active        { background: #dcfce7; color: #16a34a; }
.gt-phone-badge.pending       { background: #f3f4f6; color: #9ca3af; }
.gt-phone-badge.android       { background: #e8eeff; color: #3b5bff; }
.gt-phone-badge.iphone-manual { background: #fef3c7; color: #92400e; }

/* ── Body: number + email + info line ── */
.gt-phone-card-body {
  padding: 0 0 12px 12px;
  border-bottom: 1px solid var(--gt-border);
  margin-bottom: 10px;
}

.gt-phone-card-body span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gt-text);
  letter-spacing: 0.01em;
}

.gt-phone-card-body small {
  display: block;
  font-size: 12px;
  color: var(--gt-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Info line: icon + text (notification access / auto-forwards) */
.gt-phone-info-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gt-muted);
}

.gt-phone-info-line .gt-phone-info-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke-width: 2.4;
}

/* Slot warning (iPhone) */
.gt-phone-slot-warning {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 4px 8px;
  width: fit-content;
}

.gt-phone-slot-warning .gt-phone-info-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #d97706;
  stroke-width: 2.4;
}

/* ── Footer: action buttons ── */
.gt-phone-card-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gt-phone-edit-btn,
.gt-phone-remove-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  padding: 0 10px;
  white-space: nowrap;
  min-width: 0;
}

.gt-phone-edit-btn {
  background: #f2efff;
  color: var(--gt-primary);
  border-color: #ddd5ff;
}

.gt-phone-remove-btn {
  background: #fff0f0;
  color: #d93025;
  border-color: #ffd5d5;
}

/* "Disconnect" on main phone — styled like remove but with purple tint */
.gt-phone-disconnect-btn {
  background: #f9f5ff;
  color: #7c3aed;
  border-color: #e9d8fd;
}

.gt-phone-switch-btn {
  background: #eef7ff;
  color: #1769aa;
  border-color: #cde8ff;
}

.gt-phone-edit-btn svg,
.gt-phone-remove-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.gt-phone-edit-btn:active,
.gt-phone-remove-btn:active { opacity: 0.65; }

/* ── Plan note ── */
.gt-phones-plan-note {
  margin-top: 12px !important;
  font-size: 11.5px !important;
  color: var(--gt-muted) !important;
  line-height: 1.5 !important;
  padding: 8px 10px !important;
  background: var(--gt-soft) !important;
  border-radius: 10px !important;
  border: 1px solid var(--gt-border) !important;
}

/* Slot-over warning state on the plan note */
.gt-phones-plan-note.slot-over {
  background: #fef3c7 !important;
  border-color: #fde68a !important;
  color: #92400e !important;
  font-weight: 600 !important;
}

/* Hide old standalone disconnect button */
.gt-disconnect-main { display: none !important; }

/* ── Add Reader Phone page — fix full width ── */
#screen-add-reader,
#screen-add-reader .gt-card,
#screen-add-reader .gt-reader-form,
#screen-add-reader .gt-reader-ready {
  box-sizing: border-box;
  max-width: 100%;
}

#screen-add-reader .gt-reader-form input,
#screen-add-reader .gt-reader-form label {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

#screen-add-reader {
  padding-bottom: 28px;
}

#screen-add-reader .gt-reader-title {
  margin: 18px 0 6px;
  padding: 0 4px;
  color: var(--gt-text) !important;
  font-size: 22px;
  font-weight: 800 !important;
  line-height: 1.2;
  text-align: left;
}

#screen-add-reader .gt-reader-subtitle {
  margin: 0 0 14px;
  padding: 0 4px;
  color: var(--gt-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

#screen-add-reader .gt-reader-type-picker,
#screen-add-reader .gt-reader-form,
#screen-add-reader .gt-reader-ready {
  width: 100%;
  margin: 0 0 12px;
  border-radius: 14px;
}

#screen-add-reader .gt-reader-type-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
}

#screen-add-reader .gt-reader-type-btn {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--gt-border);
  border-radius: 12px;
  background: #fff;
  color: var(--gt-text);
  text-align: left;
}

#screen-add-reader .gt-reader-type-btn.active {
  border-color: var(--gt-primary);
  background: var(--gt-soft);
}

#screen-add-reader .gt-reader-type-btn > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#screen-add-reader .gt-reader-type-btn b,
#screen-add-reader .gt-reader-type-btn small {
  display: block;
  min-width: 0;
  line-height: 1.35;
}

#screen-add-reader .gt-reader-type-btn b {
  font-size: 14px;
  font-weight: 800;
}

#screen-add-reader .gt-reader-type-btn small {
  color: var(--gt-muted);
  font-size: 12px;
}

#screen-add-reader .gt-reader-form {
  padding: 16px;
  gap: 12px;
}

#screen-add-reader .gt-reader-form label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--gt-text);
  font-size: 13px;
  font-weight: 800;
}

#screen-add-reader .gt-reader-form input {
  min-height: 50px;
  border: 1.5px solid var(--gt-border);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: var(--gt-text);
  font-size: 15px;
  outline: none;
}

#screen-add-reader .gt-reader-form input:focus {
  border-color: var(--gt-primary);
  box-shadow: 0 0 0 3px rgba(90, 53, 255, 0.10);
}

#screen-add-reader .gt-info-banner {
  margin: 2px 0 0;
  align-items: flex-start;
}

#screen-add-reader .gt-button.gt-wide {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  white-space: normal;
  text-align: center;
}

#screen-add-reader .gt-reader-status {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--gt-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

#screen-add-reader .gt-reader-ready {
  padding: 16px;
  text-align: center;
}

/* ── Prevent horizontal scroll / sideways movement in WebView ── */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

.gt-shell,
.gt-device,
.gt-screen {
  overflow-x: hidden;
  max-width: 100%;
}

* { box-sizing: border-box; }

/* ── Bottom nav: + button circle + label alignment ── */
.gt-bottom-nav button { align-content: end; }

.gt-bottom-nav [data-go="new-transaction"] svg {
  background: #9272f5;
  border-radius: 50%;
  padding: 6px;
  width: 34px;
  height: 34px;
  color: #fff;
}
.gt-bottom-nav [data-go="new-transaction"].active svg {
  background: #7c5cec;
  color: #fff;
}
.gt-shell.mobile-only .gt-bottom-nav [data-go="new-transaction"] svg {
  width: 34px !important;
  height: 34px !important;
  padding: 6px;
}
/* ════════════════════════════════════════════════════════════════════════
   Global fixed GTransact banner — mobile / WebView only
   Single sticky banner at the very top of .gt-device for ALL authenticated
   screens. Replaces the per-screen logo + sync pattern.
   ════════════════════════════════════════════════════════════════════════ */

.gt-shell.mobile-only .gt-global-banner {
  display: flex;                      /* toggled by JS */
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  padding: 10px 18px;
  background: rgba(250, 248, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(90, 53, 255, 0.09);
  box-shadow: 0 1px 8px rgba(90, 53, 255, 0.07);
}

/* Push all screen content below the fixed banner (~54px tall) */
.gt-shell.mobile-only .gt-screen {
  padding-top: 64px;
}

.gt-shell.mobile-only .gt-global-banner-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.gt-shell.mobile-only .gt-global-banner-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: contain;
}

.gt-shell.mobile-only .gt-global-banner-brand strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--gt-primary, #5a35ff);
  letter-spacing: -0.2px;
}

/* Sync pill on the global banner */
.gt-shell.mobile-only .gt-global-banner-sync {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid #c7d2fe;
  background: #f0f4ff;
  color: #4338ca;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.gt-shell.mobile-only .gt-global-banner-sync .gt-sync-icon {
  width: 11px;
  height: 11px;
}

.gt-shell.mobile-only .gt-global-banner-sync .gt-sync-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #667eea;
  flex-shrink: 0;
}

/* ── Per-screen topbar: now only back-button + page title ──────────────
   Remove left-over spacing that was sized for logo + sync. Tighten it up. */
.gt-shell.mobile-only .gt-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 8px;
  margin-bottom: 2px;
}

.gt-shell.mobile-only .gt-topbar strong {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--gt-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
}

/* Simple-title screens (no back button) — same size, no difference */
.gt-shell.mobile-only .gt-topbar.gt-simple-title strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--gt-primary);
}

/* Hide any leftover gt-logo-sm that may exist in topbars */
.gt-shell.mobile-only .gt-screen .gt-topbar .gt-logo-sm {
  display: none !important;
}

/* Hide any leftover per-topbar sync buttons */
.gt-shell.mobile-only .gt-screen .gt-topbar .gt-sync,
.gt-shell.mobile-only .gt-screen .gt-topbar .gt-sync-pill {
  display: none !important;
}

/* gt-appbar is now unused on mobile — hide if any still exists */
.gt-shell.mobile-only .gt-appbar {
  display: none !important;
}

/* Pre-auth screens have no banner — restore normal top padding */
.gt-shell.mobile-only #screen-welcome,
.gt-shell.mobile-only #screen-signin,
.gt-shell.mobile-only #screen-register,
.gt-shell.mobile-only #screen-subscription,
.gt-shell.mobile-only #screen-active,
.gt-shell.mobile-only #screen-setup,
.gt-shell.mobile-only #screen-reader {
  padding-top: 18px;
}

/* ════════════════════════════════════════════════════════════════════════
   UNIFIED TITLE / SECTION HEAD SYSTEM — mobile WebView
   Goal: consistent violet, non-bold, compact titles across all pages.
   ════════════════════════════════════════════════════════════════════════ */

/* ── 1. Page-level topbar title — unified (handled above) ─ */

/* ── 2. Section / group headings inside screens ─────────────────────────
   Targets: gt-section-head h2, gt-block-title, gt-dashboard-section-head h2,
            #screen-settings h2, gt-flow-card h2, Transaction History h2, etc. */
.gt-shell.mobile-only .gt-section-head h2,
.gt-shell.mobile-only .gt-section-head h3,
.gt-shell.mobile-only .gt-block-title,
.gt-shell.mobile-only .gt-dashboard-section-head h2,
.gt-shell.mobile-only #screen-settings h2,
.gt-shell.mobile-only #screen-settings .gt-section-title,
.gt-shell.mobile-only .gt-flow-card h2,
.gt-shell.mobile-only .gt-connect-card h2,
.gt-shell.mobile-only .gt-form-card h2,
.gt-shell.mobile-only .gt-settings-card h2,
.gt-shell.mobile-only .gt-phones-card h2,
.gt-shell.mobile-only .gt-connected-records h2,
.gt-shell.mobile-only .gt-referred-stores h2,
.gt-shell.mobile-only .gt-payout-history h2,
.gt-shell.mobile-only .gt-notif-panel-head h2,
.gt-shell.mobile-only .gt-faq-list h2,
.gt-shell.mobile-only .gt-selected-day h2,
.gt-shell.mobile-only .gt-reader-ready h2,
.gt-shell.mobile-only .gt-fee-intro h2,
.gt-shell.mobile-only .gt-balance-form h2,
.gt-shell.mobile-only .gt-signout-modal h2,
.gt-shell.mobile-only .gt-delete-warning h2,
.gt-shell.mobile-only .gt-delete-form h2,
.gt-shell.mobile-only .gt-section-title,
.gt-shell.mobile-only h2 {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--gt-primary) !important;
  letter-spacing: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* ── 3. Section head container — tighten vertical spacing ───────────────  */
.gt-shell.mobile-only .gt-section-head {
  margin: 12px 0 8px;
}
.gt-shell.mobile-only .gt-dashboard-section-head {
  margin-top: 14px;
  margin-bottom: 6px;
}
.gt-shell.mobile-only .gt-block-title {
  margin: 14px 0 8px;
}

/* ── 4. Flow-card h2 (numbered steps: "1. GCash Account Used") ──────────
   These are card titles inside forms — keep slightly larger for hierarchy */
.gt-shell.mobile-only .gt-flow-card h2 {
  font-size: 13px !important;
  gap: 8px;
}

/* ── 5. Settings group headings ─────────────────────────────────────────  */
.gt-shell.mobile-only #screen-settings h2,
.gt-shell.mobile-only #screen-settings .gt-section-title {
  margin: 10px 4px 6px;
  font-size: 13px !important;
}

/* ── 6. Reduce overall h2 size for mobile shell ─────────────────────────  */
.gt-shell.mobile-only h2 {
  font-size: 14px !important;
}

/* ── 7. Tighten gt-screen top padding slightly ───────────────────────────  */
.gt-shell.mobile-only .gt-screen {
  padding-top: 60px;
  padding-bottom: 20px;
}
.gt-shell.mobile-only .gt-screen:has(.gt-bottom-nav) {
  padding-bottom: 96px;
}

/* ── 8. Exceptions — keep important stat/hero titles readable ────────────
   (fee hero amount, balance, big numbers should NOT be violet/small) */
.gt-shell.mobile-only .gt-fee-hero strong,
.gt-shell.mobile-only .gt-metric strong,
.gt-shell.mobile-only .gt-wallet-balance strong,
.gt-shell.mobile-only .gt-big-check,
.gt-shell.mobile-only .gt-active-hero h1,
.gt-shell.mobile-only .gt-reader-title,
.gt-shell.mobile-only .gt-subscription-title {
  color: inherit !important;
  font-weight: inherit !important;
}

/* Keep notif unclaimed/claimed color overrides working */
.gt-shell.mobile-only .gt-notif-panel.unclaimed .gt-notif-panel-head h2 { color: var(--gt-amber) !important; }
.gt-shell.mobile-only .gt-notif-panel.claimed   .gt-notif-panel-head h2 { color: var(--gt-green) !important; }
/* ══ IMPROVED SETTINGS STYLES ══════════════════════════════════════════════ */

/* Store Profile — stacked label/value fields */
.gt-profile-fields {
  display: grid;
  gap: 0;
}

.gt-profile-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gt-border);
}

.gt-profile-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.gt-profile-field:first-child {
  padding-top: 4px;
}

.gt-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gt-muted);
}

.gt-field-label svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.gt-field-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--gt-text);
  padding-left: 19px;
  line-height: 1.3;
}

.gt-field-plan {
  display: inline-flex;
  align-self: flex-start;
  margin-left: 19px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--gt-soft);
  color: var(--gt-primary);
  font-size: 13px;
  font-weight: 700;
}

/* Wallet — stacked labels for form */
.gt-balance-form h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  margin-bottom: 6px;
}

.gt-balance-form-hint {
  font-size: 13px;
  color: var(--gt-muted);
  margin: 0 0 16px;
  line-height: 1.45;
}

.gt-stacked-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.gt-label-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gt-text);
}

.gt-label-text svg {
  width: 14px;
  height: 14px;
  color: var(--gt-primary);
  flex-shrink: 0;
}

.gt-stacked-label select,
.gt-stacked-label input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gt-border);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  color: var(--gt-text);
  appearance: none;
  box-sizing: border-box;
  transition: border-color .15s;
}

.gt-stacked-label select:focus,
.gt-stacked-label input:focus {
  outline: none;
  border-color: var(--gt-primary);
}

/* Referral — improved stats grid */
.gt-ref-code-block {
  text-align: center;
  margin-bottom: 6px;
}

.gt-ref-code-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--gt-muted);
  margin: 0 0 6px;
}

.gt-ref-code-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.gt-ref-stats {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
}

.gt-ref-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  background: var(--gt-soft);
  border-radius: 12px;
  border: 1px solid var(--gt-border);
}

.gt-ref-stat-item.gt-ref-stat-highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--gt-primary) 0%, #8b5cf6 100%);
  border-color: transparent;
  color: #fff;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.gt-ref-stat-highlight small {
  color: rgba(255,255,255,0.8) !important;
}

.gt-ref-stat-highlight b {
  color: #fff !important;
  font-size: 22px !important;
  margin-left: auto;
}

.gt-ref-stat-highlight .gt-ref-stat-icon {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}

.gt-ref-stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff;
  color: var(--gt-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.gt-ref-stat-icon svg {
  width: 16px;
  height: 16px;
}

.gt-ref-stat-item small {
  font-size: 11px;
  color: var(--gt-muted);
  line-height: 1.2;
}

.gt-ref-stat-item b {
  font-size: 18px;
  font-weight: 800;
  color: var(--gt-text);
  line-height: 1;
}

/* Referral page v4 - compact, readable stats */
#screen-referral .gt-referral-hero,
#page-referral .gt-referral-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  overflow: visible;
}

#screen-referral .gt-ref-gift,
#page-referral .gt-ref-gift {
  width: 72px;
  height: 72px;
  align-self: start;
  box-shadow: 0 14px 28px rgba(112, 74, 255, .20);
}

#screen-referral .gt-ref-gift svg,
#page-referral .gt-ref-gift svg {
  width: 34px;
  height: 34px;
}

#screen-referral .gt-ref-code-block,
#page-referral .gt-ref-code-block {
  text-align: left;
  min-width: 0;
  margin: 0;
}

#screen-referral .gt-ref-code-block strong,
#page-referral .gt-ref-code-block strong {
  display: block;
  margin: 2px 0 6px;
  color: var(--gt-primary);
  font-size: clamp(25px, 7vw, 32px);
  line-height: 1.05;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}

#screen-referral .gt-ref-code-block small,
#page-referral .gt-ref-code-block small {
  display: block;
  max-width: 28ch;
  line-height: 1.45;
}

#screen-referral .gt-ref-code-actions,
#page-referral .gt-ref-code-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

#screen-referral .gt-ref-code-actions .gt-button,
#page-referral .gt-ref-code-actions .gt-button {
  min-height: 48px;
  border-radius: 12px;
  padding: 10px 12px;
  justify-content: center;
  width: 100%;
  white-space: normal;
  line-height: 1.15;
}

#screen-referral .gt-ref-stats,
#page-referral .gt-ref-stats {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

#screen-referral .gt-ref-stat-item,
#page-referral .gt-ref-stat-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas: "icon label" "icon value";
  align-items: center;
  gap: 2px 10px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  background: #f6f2ff;
}

#screen-referral .gt-ref-stat-item.gt-ref-stat-highlight,
#page-referral .gt-ref-stat-item.gt-ref-stat-highlight {
  grid-column: 1 / -1;
  grid-template-columns: 42px minmax(0, 1fr) minmax(96px, auto);
  grid-template-areas: "icon label value";
  min-height: 76px;
  padding: 16px;
  border: 0;
  background: linear-gradient(135deg, #6338f6 0%, #8557ff 100%);
  color: #fff;
}

#screen-referral .gt-ref-stat-icon,
#page-referral .gt-ref-stat-icon,
#screen-referral .gt-ref-stats span.gt-ref-stat-icon,
#page-referral .gt-ref-stats span.gt-ref-stat-icon {
  grid-area: icon;
  display: grid !important;
  place-items: center !important;
  justify-items: center !important;
  width: 34px !important;
  height: 34px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--gt-primary) !important;
}

#screen-referral .gt-ref-stat-highlight .gt-ref-stat-icon,
#page-referral .gt-ref-stat-highlight .gt-ref-stat-icon,
#screen-referral .gt-ref-stat-highlight span.gt-ref-stat-icon,
#page-referral .gt-ref-stat-highlight span.gt-ref-stat-icon {
  width: 42px !important;
  height: 42px !important;
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
}

#screen-referral .gt-ref-stat-icon svg,
#page-referral .gt-ref-stat-icon svg {
  width: 17px;
  height: 17px;
}

#screen-referral .gt-ref-stat-item small,
#page-referral .gt-ref-stat-item small {
  grid-area: label;
  color: #6f6793;
  font-size: 12px;
  line-height: 1.2;
}

#screen-referral .gt-ref-stat-item b,
#page-referral .gt-ref-stat-item b {
  grid-area: value;
  min-width: 0;
  color: #191438;
  font-size: 18px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

#screen-referral .gt-ref-stat-highlight small,
#page-referral .gt-ref-stat-highlight small,
#screen-referral .gt-ref-stat-highlight b,
#page-referral .gt-ref-stat-highlight b {
  color: #fff !important;
}

#screen-referral .gt-ref-stat-highlight b,
#page-referral .gt-ref-stat-highlight b {
  margin-left: 12px;
  font-size: clamp(21px, 6vw, 28px);
  text-align: right;
  white-space: nowrap;
}

#screen-referral .gt-payout-card,
#page-referral .gt-payout-card {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

#screen-referral .gt-payout-card .gt-button,
#page-referral .gt-payout-card .gt-button {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
}

.gt-payout-request {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin: -4px 0 16px;
  border-color: #d8ccff;
  background: #fbfaff;
}

.gt-payout-request h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gt-text);
  font-size: 16px;
}

.gt-payout-request-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f1edff;
}

.gt-payout-request-total small,
.gt-payout-request-note,
.gt-payout-request-field label {
  color: var(--gt-muted);
}

.gt-payout-request-total strong {
  color: var(--gt-primary);
  font-size: 24px;
}

.gt-payout-request-field {
  display: grid;
  gap: 6px;
}

.gt-payout-request-field label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gt-payout-request-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1.5px solid var(--gt-border);
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 15px;
}

.gt-payout-request-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.gt-payout-request-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 380px) {
  #screen-referral .gt-referral-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #screen-referral .gt-ref-gift {
    justify-self: center;
  }

  #screen-referral .gt-ref-code-block {
    text-align: center;
  }

  #screen-referral .gt-ref-stat-item.gt-ref-stat-highlight {
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-areas: "icon label" "icon value";
  }

  #screen-referral .gt-ref-stat-highlight b {
    margin-left: 0;
    text-align: left;
  }
}

/* Permission Setup v3 - match compact settings page typography */
#screen-permission .gt-permission-intro {
  min-height: 0;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  margin: 12px 0 14px;
  font-size: 13px;
  line-height: 1.5;
}

#screen-permission .gt-permission-intro .gt-icon-orb {
  width: 44px;
  height: 44px;
}

#screen-permission .gt-permission-intro .gt-icon-orb svg {
  width: 20px;
  height: 20px;
}

#screen-permission .gt-permission-cards {
  gap: 10px;
}

#screen-permission .gt-permission-cards article {
  min-height: 0;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon text state"
    "button button button";
  align-items: center;
  gap: 10px 12px;
  padding: 14px;
  border-radius: 12px;
}

#screen-permission .gt-permission-cards article > .gt-icon-orb,
#screen-permission .gt-permission-cards article > span:first-child {
  grid-area: icon;
  width: 40px;
  height: 40px;
}

#screen-permission .gt-permission-cards article > .gt-icon-orb svg,
#screen-permission .gt-permission-cards article > span:first-child svg {
  width: 19px;
  height: 19px;
}

#screen-permission .gt-permission-cards article > div {
  grid-area: text;
  min-width: 0;
}

#screen-permission .gt-permission-cards b {
  font-size: 14px;
  line-height: 1.2;
  color: var(--gt-text);
}

#screen-permission .gt-permission-cards small {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--gt-muted);
}

#screen-permission .gt-permission-cards em {
  grid-area: state;
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

#screen-permission .gt-permission-cards em svg {
  width: 13px;
  height: 13px;
}

#screen-permission .gt-permission-cards article > button {
  grid-area: button;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.15;
}

#screen-permission .gt-permission-cards article > button[hidden] {
  display: none !important;
}

#screen-permission .gt-permission-cards article > svg:last-child {
  display: none;
}

#screen-permission .gt-permission-continue {
  min-height: 48px;
  margin: 16px 0 10px;
}

#screen-permission .gt-text-link {
  display: block;
  width: 100%;
  min-height: 38px;
  font-size: 13px;
}

#page-permission .gt-permission-list article button {
  cursor: pointer;
}

.gt-referrals-private,
[data-referrals-list][hidden] {
  display: none !important;
}

.gt-privacy-policy {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.gt-policy-hero {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.gt-policy-hero .gt-icon-orb {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.gt-privacy-policy h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gt-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.22;
}

.gt-privacy-policy .gt-policy-updated {
  margin: 3px 0 0;
  color: var(--gt-muted);
  font-size: 10px;
  line-height: 1.3;
}

.gt-privacy-policy section {
  padding: 12px;
  border: 1px solid var(--gt-border);
  border-radius: 11px;
  background: #fbfaff;
}

.gt-privacy-policy h3 {
  margin: 0 0 5px;
  color: var(--gt-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.gt-privacy-policy p {
  margin: 0;
  color: var(--gt-muted);
  font-size: 11px;
  line-height: 1.45;
}

.gt-privacy-policy .gt-button {
  margin-top: 2px;
  justify-content: center;
  text-decoration: none;
}

.gt-shell.mobile-only .gt-privacy-policy {
  gap: 8px;
  padding: 12px;
}

.gt-shell.mobile-only .gt-policy-hero {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
}

.gt-shell.mobile-only .gt-policy-hero .gt-icon-orb {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.gt-shell.mobile-only .gt-privacy-policy h2 {
  font-size: 12px;
  line-height: 1.2;
}

.gt-shell.mobile-only .gt-privacy-policy .gt-policy-updated {
  font-size: 10px;
  line-height: 1.25;
}

.gt-shell.mobile-only .gt-privacy-policy section {
  padding: 10px;
  border-radius: 10px;
}

.gt-shell.mobile-only .gt-privacy-policy h3 {
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.gt-shell.mobile-only .gt-privacy-policy p {
  font-size: 10px;
  line-height: 1.42;
}

/* Desktop settings detail pages v5 */
.desktop-only #page-store-profile .desktop-mobile-page {
  max-width: 980px;
}

.desktop-only #page-store-profile .gt-store-profile {
  padding: 22px;
}

.desktop-only #page-store-profile .gt-store-profile h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
}

.desktop-only #page-store-profile .gt-profile-fields {
  display: grid !important;
  gap: 0;
  max-width: 760px;
}

.desktop-only #page-store-profile .gt-profile-field {
  display: grid !important;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gt-border);
}

.desktop-only #page-store-profile .gt-profile-field:first-child {
  padding-top: 8px;
}

.desktop-only #page-store-profile .gt-profile-field:last-child {
  border-bottom: 0;
}

.desktop-only #page-store-profile .gt-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--gt-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

.desktop-only #page-store-profile .gt-field-label svg {
  width: 17px;
  height: 17px;
  color: var(--gt-primary);
}

.desktop-only #page-store-profile .gt-field-value {
  min-width: 0;
  padding-left: 0 !important;
  color: var(--gt-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.desktop-only #page-store-profile .gt-field-plan {
  justify-self: start;
  margin-left: 0 !important;
  padding: 5px 12px;
}

.desktop-only #page-referral .gt-referral-hero {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  padding: 26px;
}

.desktop-only #page-referral .gt-ref-gift {
  width: 96px;
  height: 96px;
  border-radius: 18px;
}

.desktop-only #page-referral .gt-ref-code-block strong {
  font-size: clamp(42px, 5vw, 60px);
  line-height: .95;
}

.desktop-only #page-referral .gt-ref-code-block small {
  max-width: 54ch;
}

.desktop-only #page-referral .gt-ref-code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.desktop-only #page-referral .gt-ref-code-actions .gt-button {
  width: auto;
  min-width: 170px;
}

.desktop-only #page-referral .gt-ref-code-actions .gt-button-primary {
  display: none !important;
}

.desktop-only #page-referral .gt-ref-stats {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 22px !important;
}

.desktop-only #page-referral .gt-ref-stat-item,
.desktop-only #page-referral .gt-ref-stat-item.gt-ref-stat-highlight {
  grid-column: auto !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  grid-template-areas: "icon label" "icon value" !important;
  align-items: center;
  gap: 4px 14px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  background: #fbfaff;
  color: var(--gt-text);
}

.desktop-only #page-referral .gt-ref-stat-icon,
.desktop-only #page-referral .gt-ref-stat-highlight .gt-ref-stat-icon,
.desktop-only #page-referral .gt-ref-stats span.gt-ref-stat-icon,
.desktop-only #page-referral .gt-ref-stat-highlight span.gt-ref-stat-icon {
  grid-area: icon;
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  background: var(--gt-soft) !important;
  color: var(--gt-primary) !important;
}

.desktop-only #page-referral .gt-ref-stat-icon svg {
  width: 21px;
  height: 21px;
}

.desktop-only #page-referral .gt-ref-stat-item small,
.desktop-only #page-referral .gt-ref-stat-highlight small {
  grid-area: label;
  min-width: 0;
  color: var(--gt-muted) !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.desktop-only #page-referral .gt-ref-stat-item b,
.desktop-only #page-referral .gt-ref-stat-highlight b {
  grid-area: value;
  min-width: 0;
  margin-left: 0;
  color: var(--gt-primary) !important;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.desktop-only #page-referral [data-referrals-list] {
  display: none !important;
}

/* Sign out and delete account v3 */
#screen-signout .gt-signout-backdrop {
  min-height: calc(100vh - 24px);
  padding: 14px;
  align-items: center;
}

#screen-signout .gt-settings-preview {
  display: none;
}

#screen-signout .gt-signout-backdrop::before {
  border-radius: 0;
  background: rgba(25, 20, 56, .42);
}

#screen-signout .gt-signout-modal {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  text-align: left;
}

#screen-signout .gt-signout-modal > .gt-icon-orb {
  width: 52px;
  height: 52px;
  margin: 0;
}

#screen-signout .gt-signout-modal h2 {
  font-size: 20px;
  color: var(--gt-text);
}

#screen-signout .gt-signout-modal p {
  margin: -4px 0 0;
  font-size: 13px;
}

#screen-signout .gt-signout-store {
  grid-template-columns: 42px minmax(0, 1fr);
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #fbfaff;
}

#screen-signout .gt-signout-store .gt-icon-orb {
  width: 38px;
  height: 38px;
}

#screen-signout .gt-signout-store b,
#screen-signout .gt-signout-store small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

#screen-signout .gt-signout-modal label {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--gt-border);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
}

#screen-signout .gt-signout-modal input {
  width: 20px;
  height: 20px;
}

#screen-signout .gt-signout-modal > div:last-child {
  gap: 10px;
}

#screen-delete .gt-delete-warning,
#page-delete .gt-delete-warning {
  padding: 18px;
  border-color: #fecdd3;
  border-radius: 14px;
  background: #fff7f8;
}

#screen-delete .gt-delete-warning > div,
#page-delete .gt-delete-warning > div {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 12px;
}

#screen-delete .gt-delete-warning > div > svg,
#page-delete .gt-delete-warning > div > svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: #ffe2e4;
}

#screen-delete .gt-delete-warning h2,
#page-delete .gt-delete-warning h2 {
  font-size: 18px;
  line-height: 1.2;
}

#screen-delete .gt-delete-warning > div p,
#page-delete .gt-delete-warning > div p {
  margin-top: 4px;
  font-size: 13px;
}

#screen-delete .gt-delete-warning > p,
#page-delete .gt-delete-warning > p {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.35;
}

#screen-delete .gt-delete-warning > p svg,
#page-delete .gt-delete-warning > p svg {
  width: 30px;
  height: 30px;
  padding: 7px;
}

#screen-delete .gt-delete-form,
#page-delete .gt-delete-form {
  padding: 16px;
  border-radius: 14px;
}

#screen-delete .gt-delete-form h2,
#page-delete .gt-delete-form h2 {
  font-size: 15px;
  line-height: 1.25;
}

#screen-delete .gt-delete-form p,
#page-delete .gt-delete-form p {
  margin-top: 5px;
  font-size: 12px;
}

#screen-delete .gt-delete-form textarea,
#screen-delete .gt-delete-form input,
#page-delete .gt-delete-form textarea,
#page-delete .gt-delete-form input {
  margin-top: 12px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
}

#screen-delete .gt-delete-form textarea,
#page-delete .gt-delete-form textarea {
  min-height: 92px;
}

#screen-delete .gt-delete-form > small,
#page-delete .gt-delete-form > small {
  right: 28px;
  bottom: 24px;
  font-size: 11px;
}

#screen-delete .gt-delete-actions,
#page-delete .gt-delete-actions {
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}

#screen-delete .gt-delete-actions .gt-button,
#page-delete .gt-delete-actions .gt-button {
  min-height: 46px;
  justify-content: center;
}


/* ══ CONNECTED RECORDS PAGE ═════════════════════════════════════════════════ */

.gt-records-status-card {
  padding: 16px 18px;
  margin-bottom: 12px;
}

.gt-records-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gt-records-status-text {
  flex: 1;
  min-width: 0;
}

.gt-records-status-text b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--gt-text);
  margin-bottom: 2px;
}

.gt-records-status-text small {
  font-size: 12px;
  color: var(--gt-muted);
  line-height: 1.4;
}

.gt-records-badge {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Dynamic badge states — set by JS via data-record-status text content */
.gt-records-badge:has-text,
[data-record-status] {
  /* default amber/checking */
}

/* What's stored card */
.gt-records-what-card {
  padding: 16px 18px;
  margin-bottom: 12px;
}

.gt-records-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gt-muted);
  margin: 0 0 14px;
}

.gt-records-section-title svg {
  width: 14px;
  height: 14px;
  color: var(--gt-primary);
}

.gt-records-items {
  display: grid;
  gap: 10px;
}

.gt-records-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gt-soft);
  border-radius: 12px;
  border: 1px solid var(--gt-border);
}

.gt-records-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: var(--gt-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--gt-border);
}

.gt-records-item-icon svg {
  width: 18px;
  height: 18px;
}

.gt-records-item b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gt-text);
  margin-bottom: 2px;
}

.gt-records-item small {
  font-size: 12px;
  color: var(--gt-muted);
}

/* Redesigned warning block */
.gt-drive-warning-block {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  grid-template-columns: unset !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  margin-bottom: 12px !important;
  background: #fffbeb !important;
  border: 1.5px solid #fcd34d !important;
  color: #78350f !important;
}

.gt-drive-warning-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  display: grid;
  place-items: center;
  color: #d97706;
}

.gt-drive-warning-icon svg {
  width: 18px;
  height: 18px;
}

.gt-drive-warning-block b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #78350f;
}

.gt-drive-warning-block p {
  font-size: 12px;
  line-height: 1.45;
  color: #92400e;
  margin: 0;
  font-weight: 500;
}

/* Actions card */
.gt-records-actions-card {
  padding: 16px 18px;
  margin-bottom: 14px;
}

.gt-records-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border: 1.5px solid var(--gt-border);
  border-radius: 13px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background .15s, border-color .15s;
}

.gt-records-action-btn:last-child {
  margin-bottom: 0;
}

.gt-records-action-btn:hover,
.gt-records-action-btn:active {
  background: var(--gt-soft);
  border-color: #d6cffb;
}

.gt-records-action-btn b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gt-text);
  margin-bottom: 2px;
}

.gt-records-action-btn small {
  font-size: 12px;
  color: var(--gt-muted);
}

.gt-records-action-btn > div {
  flex: 1;
}

.gt-records-action-btn > svg:last-child {
  width: 16px;
  height: 16px;
  color: var(--gt-muted);
  flex-shrink: 0;
}

.gt-records-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gt-soft);
  color: var(--gt-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--gt-border);
}

.gt-records-action-icon svg {
  width: 18px;
  height: 18px;
}

.gt-records-action-btn.gt-records-action-primary {
  border-color: var(--gt-primary);
  background: var(--gt-soft);
}

.gt-records-action-btn.gt-records-action-primary b {
  color: var(--gt-primary);
}

.gt-records-action-btn.gt-records-action-primary .gt-records-action-icon {
  background: var(--gt-primary);
  color: #fff;
  border-color: transparent;
}

.gt-records-action-btn.gt-records-action-primary:hover {
  background: #ede9fe;
}

/* Mobile transaction computation card */
.gt-shell.mobile-only .gt-computation-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.gt-shell.mobile-only .gt-computation-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gt-primary);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.gt-shell.mobile-only .gt-computation-card > p {
  margin: 0;
  color: var(--gt-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.gt-shell.mobile-only .gt-fee-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1.5px solid #d9d0ff;
  border-radius: 13px;
  background: #f7f3ff;
}

.gt-shell.mobile-only .gt-fee-mode button {
  min-width: 0;
  min-height: 38px;
  padding: 8px 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--gt-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  white-space: normal;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.gt-shell.mobile-only .gt-fee-mode button:hover,
.gt-shell.mobile-only .gt-fee-mode button:focus-visible {
  background: #ede9fe;
  color: var(--gt-primary);
  outline: 2px solid rgba(94, 63, 255, 0.22);
  outline-offset: 1px;
}

.gt-shell.mobile-only .gt-fee-mode button.active {
  background: linear-gradient(135deg, #5b32ff, #7c3aed);
  border-color: #4c1dff;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(91, 50, 255, 0.18), 0 10px 22px rgba(94, 63, 255, 0.34);
  transform: translateY(-1px);
}

.gt-shell.mobile-only .gt-computation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gt-shell.mobile-only .gt-computation-summary span {
  min-width: 0;
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px 6px;
  border: 1px solid var(--gt-border);
  border-radius: 13px;
  background: #fbfaff;
  text-align: center;
}

.gt-shell.mobile-only .gt-computation-summary small {
  display: block;
  color: var(--gt-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.gt-shell.mobile-only .gt-computation-summary strong {
  display: block;
  color: var(--gt-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.gt-shell.mobile-only .gt-computation-guide {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid #d9d0ff;
  border-radius: 13px;
  background: #f8f6ff;
}

.gt-shell.mobile-only .gt-computation-guide b {
  color: var(--gt-primary);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.gt-shell.mobile-only .gt-computation-guide ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gt-shell.mobile-only .gt-computation-guide li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gt-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.gt-shell.mobile-only .gt-computation-guide li strong {
  color: var(--gt-text);
  font-size: 12px;
  white-space: nowrap;
}

.gt-shell.mobile-only .gt-computation-guide p {
  margin: 0;
  color: var(--gt-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 360px) {
  .gt-shell.mobile-only .gt-fee-mode,
  .gt-shell.mobile-only .gt-computation-summary {
    grid-template-columns: 1fr;
  }

  .gt-shell.mobile-only .gt-computation-summary span {
    min-height: 54px;
  }
}

/* Final desktop detail overrides */
#page-store-profile .gt-store-profile h2 {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
  font-size: 18px !important;
}

#page-store-profile .gt-profile-fields {
  display: grid !important;
  max-width: 760px !important;
}

#page-store-profile .gt-profile-field {
  display: grid !important;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--gt-border) !important;
}

#page-store-profile .gt-profile-field:last-child {
  border-bottom: 0 !important;
}

#page-store-profile .gt-field-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--gt-muted) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

#page-store-profile .gt-field-label svg {
  width: 17px !important;
  height: 17px !important;
  color: var(--gt-primary) !important;
}

#page-store-profile .gt-field-value {
  min-width: 0 !important;
  padding-left: 0 !important;
  color: var(--gt-text) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}

#page-store-profile .gt-field-plan {
  justify-self: start !important;
  margin-left: 0 !important;
}

#page-referral .gt-ref-code-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

#page-referral .gt-ref-code-actions .gt-button-primary {
  display: none !important;
}

#page-referral .gt-ref-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 22px !important;
}

#page-referral .gt-ref-stat-item,
#page-referral .gt-ref-stat-item.gt-ref-stat-highlight {
  grid-column: auto !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  grid-template-areas: "icon label" "icon value" !important;
  align-items: center !important;
  gap: 4px 14px !important;
  min-height: 112px !important;
  padding: 18px !important;
  border: 1px solid #ddd6fe !important;
  border-radius: 12px !important;
  background: #fbfaff !important;
  color: var(--gt-text) !important;
}

#page-referral .gt-ref-stat-icon,
#page-referral .gt-ref-stat-highlight .gt-ref-stat-icon,
#page-referral .gt-ref-stats span.gt-ref-stat-icon,
#page-referral .gt-ref-stat-highlight span.gt-ref-stat-icon {
  grid-area: icon !important;
  display: grid !important;
  place-items: center !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  background: var(--gt-soft) !important;
  color: var(--gt-primary) !important;
}

#page-referral .gt-ref-stat-icon svg {
  width: 21px !important;
  height: 21px !important;
}

#page-referral .gt-ref-stat-item small,
#page-referral .gt-ref-stat-highlight small {
  grid-area: label !important;
  min-width: 0 !important;
  color: var(--gt-muted) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}

#page-referral .gt-ref-stat-item b,
#page-referral .gt-ref-stat-highlight b {
  grid-area: value !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  color: var(--gt-primary) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

#page-referral [data-referrals-list] {
  display: none !important;
}

/* Shared proof previews for phone and tablet layouts. Desktop uses the same
   DOM contract from desktop-dashboard.css at its larger breakpoint. */
.gt-date-time-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-column: 1 / -1;
  gap: 10px;
  min-width: 0;
}

.gt-date-time-fields > label {
  min-width: 0;
}

.gt-time-selects {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) auto minmax(72px, 1fr) minmax(72px, 1fr);
  grid-column: 1 / -1;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.gt-flow-card label .gt-time-selects {
  display: grid !important;
  grid-template-columns: minmax(58px, 1fr) auto minmax(68px, 1fr) minmax(70px, 0.85fr) !important;
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  align-items: center !important;
  gap: 6px !important;
}

.gt-flow-card label .gt-time-selects select,
.gt-time-selects select {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100%;
  min-width: 0;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 7px !important;
  border: 1px solid #d9d2ff;
  border-radius: 8px;
  background: #fff;
  color: var(--gt-text);
  font: inherit;
}

.gt-time-selects b {
  grid-column: auto !important;
  grid-row: auto !important;
  color: var(--gt-muted);
  text-align: center;
}

#screen-referral .gt-ref-code-actions .gt-button-primary {
  display: none !important;
}

#screen-referral .gt-ref-code-actions {
  grid-template-columns: 1fr !important;
}

#screen-settings .gt-settings-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#screen-settings .gt-settings-summary > div > small {
  display: block;
  margin: 0;
  line-height: 1.35;
}

.gt-ocr-progress {
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid #d9d2ff;
  border-radius: 8px;
  background: #faf9ff;
}

.gt-ocr-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gt-text);
  font-size: 12px;
  font-weight: 800;
}

.gt-ocr-progress-track {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e9e5ff;
}

.gt-ocr-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gt-primary);
  transition: width 180ms ease;
}

.gt-ocr-progress p {
  margin: 7px 0 0;
  color: var(--gt-muted);
  font-size: 12px;
  line-height: 1.4;
}

.gt-ocr-retry {
  margin-top: 10px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  background: #fff;
  color: var(--gt-primary);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gt-ocr-retry[hidden] {
  display: none !important;
}

.gt-ocr-retry svg {
  width: 13px;
  height: 13px;
}

.gt-ocr-progress[data-state="success"] {
  border-color: #86efac;
  background: #f0fdf4;
}

.gt-ocr-progress[data-state="success"] .gt-ocr-progress-track > span {
  background: #16a34a;
}

.gt-ocr-progress[data-state="warning"],
.gt-ocr-progress[data-state="error"] {
  border-color: #fdba74;
  background: #fff7ed;
}

.gt-ocr-progress[data-state="warning"] .gt-ocr-progress-track > span,
.gt-ocr-progress[data-state="error"] .gt-ocr-progress-track > span {
  background: #ea580c;
}

.gt-mobile-proof-preview,
[data-proof-preview],
[data-release-proof-preview] {
  width: 100%;
  min-height: 132px;
  margin-top: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 10px;
  border: 1.5px dashed #cfc4ff;
  border-radius: 8px;
  background: #fbfaff;
  color: var(--gt-muted);
  text-align: center;
}

.gt-mobile-proof-preview.has-photo,
[data-proof-preview].has-photo,
[data-release-proof-preview].has-photo {
  border-style: solid;
  border-color: #8b6cff;
  background: #fff;
}

.gt-mobile-proof-preview img,
[data-proof-preview] img,
[data-release-proof-preview] img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain !important;
  border-radius: 6px;
}

@media (min-width: 600px) and (max-width: 1024px) {
  .gt-mobile-proof-preview,
  [data-proof-preview],
  [data-release-proof-preview] {
    min-height: 190px;
    padding: 14px;
  }
}

/* Compact proof action cards across mobile/tablet. */
.gt-shell.mobile-only .gt-proof-grid {
  gap: 10px !important;
}

.gt-shell.mobile-only .gt-proof-grid button {
  min-height: 108px !important;
  padding: 12px 8px !important;
  border-radius: 13px !important;
  gap: 6px !important;
}

.gt-shell.mobile-only .gt-proof-grid button .gt-icon-orb {
  width: 36px !important;
  height: 36px !important;
}

.gt-shell.mobile-only .gt-proof-grid button .gt-icon-orb svg {
  width: 18px !important;
  height: 18px !important;
}

.gt-shell.mobile-only .gt-proof-grid button strong {
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.gt-shell.mobile-only .gt-proof-grid button em {
  padding: 4px 8px !important;
  border-radius: 8px !important;
  font-size: 9.5px !important;
  line-height: 1 !important;
}

@media (max-width: 599px) {
  .gt-date-time-fields {
    grid-template-columns: 1fr;
  }
}

/* Final responsive transaction control contract. The screen/page IDs keep
   older generic label/span rules from breaking the nested time selector. */
#screen-cashin .gt-time-field > .gt-time-selects,
#screen-cashout .gt-time-field > .gt-time-selects,
#page-cash-in .gt-time-field > .gt-time-selects,
#page-cash-out .gt-time-field > .gt-time-selects {
  display: grid !important;
  grid-template-columns: minmax(58px, 1fr) auto minmax(68px, 1fr) minmax(70px, 0.85fr) !important;
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
}

#screen-cashin .gt-time-selects > select,
#screen-cashout .gt-time-selects > select,
#page-cash-in .gt-time-selects > select,
#page-cash-out .gt-time-selects > select {
  grid-column: auto !important;
  grid-row: auto !important;
  min-width: 0 !important;
}

@media (min-width: 1025px) {
  #page-cash-in .gt-time-field > .gt-time-selects,
  #page-cash-out .gt-time-field > .gt-time-selects {
    grid-template-columns: minmax(72px, 1fr) auto minmax(80px, 1fr) minmax(82px, 0.85fr) !important;
    grid-column: 3 !important;
    grid-row: auto !important;
    gap: 7px !important;
  }
}

/* Keep typography and transaction details consistent across mobile/tablet. */
html,
body,
button,
input,
select,
textarea,
dialog,
table,
th,
td,
dt,
dd,
code,
pre {
  font-family: "Poppins", sans-serif !important;
}

[data-txn-field="customer"],
[data-txn-field="account"],
[data-txn-field="gcashTime"],
[data-txn-field="claimed"] {
  white-space: pre-line !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  line-height: 1.45 !important;
}

.gt-save-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 18, 48, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.gt-save-success-overlay.show {
  opacity: 1;
  visibility: visible;
}

.gt-save-success-card {
  width: min(420px, 100%);
  max-height: min(680px, 90vh);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 18, 48, 0.25);
  text-align: center;
}

.gt-save-success-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #dcfce7;
  color: #059669;
}

.gt-save-success-icon svg { width: 30px; height: 30px; stroke-width: 3; }
.gt-save-success-card h2 { margin: 0; font-size: 20px; color: #11142d; }
.gt-save-success-card > p { margin: 7px 0 14px; font-size: 13px; line-height: 1.5; color: #6d6a8f; }
.gt-save-success-type { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; font-style: normal; }
.gt-save-success-details { display: grid; gap: 0; margin: 16px 0 10px; border: 1px solid #ede9fe; border-radius: 10px; overflow: hidden; text-align: left; }
.gt-save-success-details .detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-bottom: 1px solid #f1efff; font-size: 13px; }
.gt-save-success-details .detail-row:last-child { border-bottom: 0; }
.gt-save-success-details .dl { color: #6d6a8f; }
.gt-save-success-details .dv { color: #11142d; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.gt-save-success-id { display: block; margin-bottom: 16px; color: #8a87a8; font-size: 11px; overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .gt-save-success-card { padding: 20px 16px; border-radius: 14px; }
  .gt-save-success-card h2 { font-size: 18px; }
}

/* Desktop dashboard notification list: keep rows readable and compact. */
#desktopDashboardNotifications article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "info amount"
    "info action";
  align-items: center;
  gap: 8px 14px;
}

#desktopDashboardNotifications article > div {
  grid-area: info;
  min-width: 0;
}

#desktopDashboardNotifications article > div small {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

#desktopDashboardNotifications article > b {
  grid-area: amount;
  justify-self: end;
  white-space: nowrap;
}

#desktopDashboardNotifications article > button {
  grid-area: action;
  justify-self: end;
  width: auto;
  min-width: 132px;
  padding-inline: 14px;
  white-space: nowrap;
}

/* Home mobile/tablet fixes: the fee hero is a colored surface, so it needs
   its own contrast rules, and wallet account details must stack cleanly. */
.gt-shell.mobile-only .gt-fee-hero {
  grid-template-columns: minmax(0, 1fr) 46px !important;
  padding: 14px 14px 15px 16px !important;
  gap: 8px !important;
  overflow: hidden !important;
}

.gt-shell.mobile-only .gt-fee-hero > span:not(.gt-icon-orb) {
  min-width: 0 !important;
  padding-left: 4px !important;
  gap: 3px !important;
}

.gt-shell.mobile-only .gt-fee-hero small,
.gt-shell.mobile-only .gt-fee-hero em {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  max-width: 100% !important;
  white-space: normal !important;
}

.gt-shell.mobile-only .gt-fee-hero strong,
.gt-shell.mobile-only #mobileFeesToday {
  color: #fff !important;
  font-size: 29px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  margin: 1px 0 2px 6px !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}

.gt-shell.mobile-only .gt-fee-hero > .gt-icon-orb:last-child {
  justify-self: end !important;
  transform: translateX(-5px) !important;
}

.gt-shell.mobile-only .gt-dash-wallet-row {
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
}

.gt-shell.mobile-only .gt-dash-wallet-info {
  min-width: 0 !important;
}

.gt-shell.mobile-only .gt-dash-wallet-info b {
  display: block !important;
  color: var(--gt-mobile-text) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.gt-shell.mobile-only .gt-dash-wallet-info small {
  display: block !important;
  color: var(--gt-mobile-muted) !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.gt-shell.mobile-only .gt-dash-wallet-info small::first-line {
  line-height: 1.3 !important;
}

.gt-shell.mobile-only .gt-dash-wallet-info small {
  max-width: 120px !important;
}

.gt-shell.mobile-only .gt-dash-wallet-info small span {
  display: block !important;
}

.gt-shell.mobile-only .gt-dash-wallet-bal {
  min-width: 96px !important;
  text-align: right !important;
}

.gt-shell.mobile-only .gt-dash-wallet-bal em {
  display: block !important;
  color: var(--gt-mobile-muted) !important;
  font-size: 8.5px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

.gt-shell.mobile-only .gt-dash-wallet-bal strong {
  display: block !important;
  color: #06985c !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.01em !important;
  margin-top: 5px !important;
}

/* Mobile/tablet premium typography pass.
   Keep the app from feeling patched together by normalizing type, color,
   and compact card rhythm across the Android/mobile shell only. */
.gt-shell.mobile-only {
  --gt-mobile-text: #11142d;
  --gt-mobile-muted: #6d6a8f;
  --gt-mobile-soft: #8a87a8;
  --gt-mobile-primary: #5b32ff;
  --gt-mobile-border: #ded7ff;
  color: var(--gt-mobile-text);
  font-family: "Poppins", sans-serif !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.gt-shell.mobile-only *,
.gt-shell.mobile-only *::before,
.gt-shell.mobile-only *::after {
  font-family: "Poppins", sans-serif !important;
  letter-spacing: 0 !important;
}

.gt-shell.mobile-only .gt-screen {
  color: var(--gt-mobile-text);
}

.gt-shell.mobile-only .gt-topbar,
.gt-shell.mobile-only .gt-simple-title,
.gt-shell.mobile-only .gt-section-head,
.gt-shell.mobile-only .gt-section-title,
.gt-shell.mobile-only .gt-card-heading,
.gt-shell.mobile-only .gt-block-title {
  color: var(--gt-mobile-primary) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.gt-shell.mobile-only .gt-topbar strong,
.gt-shell.mobile-only .gt-simple-title strong {
  color: var(--gt-mobile-primary) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.gt-shell.mobile-only h1 {
  color: var(--gt-mobile-text) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
}

.gt-shell.mobile-only h2,
.gt-shell.mobile-only h3,
.gt-shell.mobile-only .gt-card h2,
.gt-shell.mobile-only .gt-card h3,
.gt-shell.mobile-only .gt-flow-card h2,
.gt-shell.mobile-only .gt-settings-card h2 {
  color: var(--gt-mobile-text) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
}

.gt-shell.mobile-only p,
.gt-shell.mobile-only li,
.gt-shell.mobile-only label,
.gt-shell.mobile-only input,
.gt-shell.mobile-only select,
.gt-shell.mobile-only textarea,
.gt-shell.mobile-only .gt-card p,
.gt-shell.mobile-only .gt-flow-card p,
.gt-shell.mobile-only .gt-settings-card p,
.gt-shell.mobile-only .gt-privacy-policy p {
  color: var(--gt-mobile-muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

.gt-shell.mobile-only small,
.gt-shell.mobile-only em,
.gt-shell.mobile-only .gt-tile-meta,
.gt-shell.mobile-only .gt-policy-updated,
.gt-shell.mobile-only .gt-history-count,
.gt-shell.mobile-only .gt-summary-date,
.gt-shell.mobile-only .gt-save-note {
  color: var(--gt-mobile-soft) !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  font-style: normal !important;
}

.gt-shell.mobile-only b,
.gt-shell.mobile-only strong,
.gt-shell.mobile-only .gt-card strong,
.gt-shell.mobile-only .gt-flow-card strong,
.gt-shell.mobile-only .gt-transaction-row strong,
.gt-shell.mobile-only .gt-phone-card strong,
.gt-shell.mobile-only .gt-wallet-card strong,
.gt-shell.mobile-only .gt-notif-row strong {
  color: var(--gt-mobile-text) !important;
  font-weight: 700 !important;
}

.gt-shell.mobile-only .gt-card,
.gt-shell.mobile-only .gt-flow-card,
.gt-shell.mobile-only .gt-phone-card,
.gt-shell.mobile-only .gt-wallet-card,
.gt-shell.mobile-only .gt-settings-card,
.gt-shell.mobile-only .gt-privacy-policy section,
.gt-shell.mobile-only .gt-referral-hero {
  border-color: var(--gt-mobile-border) !important;
  border-radius: 14px !important;
}

.gt-shell.mobile-only .gt-card,
.gt-shell.mobile-only .gt-flow-card,
.gt-shell.mobile-only .gt-settings-card,
.gt-shell.mobile-only .gt-privacy-policy section {
  padding: 14px !important;
}

.gt-shell.mobile-only button,
.gt-shell.mobile-only .gt-button,
.gt-shell.mobile-only .gt-save-button,
.gt-shell.mobile-only .gt-icon-button,
.gt-shell.mobile-only .gt-text-link,
.gt-shell.mobile-only .gt-segment button,
.gt-shell.mobile-only .gt-toggle button,
.gt-shell.mobile-only .gt-fee-mode button {
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

.gt-shell.mobile-only .gt-button,
.gt-shell.mobile-only .gt-save-button {
  min-height: 44px;
}

.gt-shell.mobile-only input,
.gt-shell.mobile-only select,
.gt-shell.mobile-only textarea {
  min-height: 44px;
  border-color: var(--gt-mobile-border) !important;
  border-radius: 12px !important;
  color: var(--gt-mobile-text) !important;
  background: #fff !important;
}

.gt-shell.mobile-only .gt-summary-tile small,
.gt-shell.mobile-only .gt-metric small,
.gt-shell.mobile-only .gt-notif-metrics small,
.gt-shell.mobile-only .gt-ref-stat small,
.gt-shell.mobile-only .gt-computation-summary small {
  color: var(--gt-mobile-muted) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

.gt-shell.mobile-only .gt-summary-tile strong,
.gt-shell.mobile-only .gt-metric strong,
.gt-shell.mobile-only .gt-notif-metrics strong,
.gt-shell.mobile-only .gt-ref-stat strong,
.gt-shell.mobile-only .gt-computation-summary strong {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
}

.gt-shell.mobile-only .gt-summary-card .gt-summary-tile strong,
.gt-shell.mobile-only .gt-wallet-balance,
.gt-shell.mobile-only #mobileFeesToday,
.gt-shell.mobile-only #feeDayFees,
.gt-shell.mobile-only #feeDayIn,
.gt-shell.mobile-only #feeDayOut {
  font-weight: 700 !important;
}

.gt-shell.mobile-only .gt-home-fees strong,
.gt-shell.mobile-only .gt-fees-card strong,
.gt-shell.mobile-only .gt-ref-code,
.gt-shell.mobile-only .gt-referral-code {
  font-weight: 800 !important;
}

/* Homepage dashboard tiles: make the main counts feel important without
   enlarging the smaller peso captions under them. */
.gt-shell.mobile-only #screen-dashboard .gt-metric-grid .gt-metric .gt-metric-row > strong,
.gt-shell.mobile-only #screen-dashboard .gt-metric-grid .gt-metric .gt-metric-nums > strong {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.gt-shell.mobile-only #screen-dashboard .gt-metric-grid .gt-metric .gt-metric-nums > em {
  display: block;
  margin-top: 3px;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
}

.gt-shell.mobile-only #screen-dashboard .gt-metric-grid .gt-metric > b {
  font-size: 11px !important;
  line-height: 1.15 !important;
}

.gt-shell.mobile-only #screen-dashboard .gt-metric-grid .gt-metric.purple .gt-metric-row > strong {
  color: var(--gt-primary) !important;
}

.gt-shell.mobile-only #screen-dashboard .gt-metric-grid .gt-metric.green .gt-metric-nums > strong,
.gt-shell.mobile-only #screen-dashboard .gt-metric-grid .gt-metric.green .gt-metric-nums > em {
  color: var(--gt-green) !important;
}

.gt-shell.mobile-only #screen-dashboard .gt-metric-grid .gt-metric.amber .gt-metric-nums > strong,
.gt-shell.mobile-only #screen-dashboard .gt-metric-grid .gt-metric.amber .gt-metric-nums > em {
  color: #d97706 !important;
}

.gt-shell.mobile-only #screen-dashboard .gt-metric-grid .gt-metric.red .gt-metric-nums > strong,
.gt-shell.mobile-only #screen-dashboard .gt-metric-grid .gt-metric.red .gt-metric-nums > em {
  color: var(--gt-red) !important;
}

.gt-shell.mobile-only .gt-transaction-row,
.gt-shell.mobile-only .gt-notif-row,
.gt-shell.mobile-only .gt-history-card article,
.gt-shell.mobile-only .fee-mobile-txn-row {
  color: var(--gt-mobile-text) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.gt-shell.mobile-only .gt-transaction-row p,
.gt-shell.mobile-only .gt-transaction-row small,
.gt-shell.mobile-only .gt-notif-row p,
.gt-shell.mobile-only .gt-notif-row small,
.gt-shell.mobile-only .fee-mobile-txn-row small {
  color: var(--gt-mobile-muted) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.gt-shell.mobile-only .gt-table-type,
.gt-shell.mobile-only .gt-status-pill,
.gt-shell.mobile-only .gt-badge,
.gt-shell.mobile-only .pill {
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

.gt-shell.mobile-only .gt-bottom-nav button {
  color: #76729b !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

.gt-shell.mobile-only .gt-bottom-nav button.active {
  color: var(--gt-mobile-primary) !important;
  font-weight: 700 !important;
}

.gt-shell.mobile-only .gt-privacy-policy {
  color: var(--gt-mobile-text) !important;
}

.gt-shell.mobile-only .gt-privacy-policy h2,
.gt-shell.mobile-only .gt-privacy-policy h3 {
  font-size: 13px !important;
  font-weight: 700 !important;
}

.gt-shell.mobile-only .gt-privacy-policy p {
  font-size: 12px !important;
  font-weight: 500 !important;
}

.gt-shell.mobile-only .gt-calendar-grid span {
  font-weight: 600 !important;
}

.gt-shell.mobile-only .gt-calendar-grid span.active {
  font-weight: 700 !important;
}

@media (min-width: 600px) and (max-width: 1199px), (min-width: 600px) and (pointer: coarse) {
  .gt-shell.mobile-only {
    font-size: 13px;
  }

  .gt-shell.mobile-only h1 {
    font-size: 22px !important;
  }

  .gt-shell.mobile-only h2,
  .gt-shell.mobile-only h3,
  .gt-shell.mobile-only .gt-card h2,
  .gt-shell.mobile-only .gt-card h3,
  .gt-shell.mobile-only .gt-flow-card h2 {
    font-size: 14px !important;
  }

  .gt-shell.mobile-only p,
  .gt-shell.mobile-only li,
  .gt-shell.mobile-only label,
  .gt-shell.mobile-only input,
  .gt-shell.mobile-only select,
  .gt-shell.mobile-only textarea {
    font-size: 13px !important;
  }

  .gt-shell.mobile-only small,
  .gt-shell.mobile-only em,
  .gt-shell.mobile-only .gt-tile-meta {
    font-size: 11px !important;
  }
}

/* Transaction history list: compact customer details with amount/fee emphasized top-right. */
.gt-history-list .gt-record {
  grid-template-columns: 58px minmax(0, 1fr) minmax(88px, auto);
  align-items: start;
}

.gt-history-list .gt-record > div > b {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--gt-text);
}

.gt-history-list .gt-record > em {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  min-width: 76px;
  margin-top: 2px;
  text-align: right;
  line-height: 1.05;
  font-size: 17px;
  font-weight: 900;
}

.gt-history-list .gt-record.green > em {
  color: #00a85a;
}

.gt-history-list .gt-record.red > em {
  color: #ef1f32;
}

.gt-history-list .gt-record > em small {
  display: block;
  margin-top: 4px;
  color: #6f6a95;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.gt-shell.mobile-only .gt-history-list .gt-record {
  grid-template-columns: 46px minmax(0, 1fr) minmax(68px, auto) !important;
  grid-template-rows: auto !important;
  column-gap: 10px !important;
  row-gap: 0 !important;
  padding: 13px 0 !important;
  align-items: start !important;
}

.gt-shell.mobile-only .gt-history-list .gt-record > .gt-type-stack {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  width: 44px !important;
  min-width: 44px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

.gt-shell.mobile-only .gt-history-list .gt-record > .gt-type-stack > b {
  width: 42px !important;
  min-width: 42px !important;
  height: 27px !important;
  padding: 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-align: center !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.gt-shell.mobile-only .gt-history-list .gt-record > .gt-type-stack > button {
  flex: 0 0 auto !important;
}

.gt-shell.mobile-only .gt-history-list .gt-record > div {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  padding-right: 0 !important;
}

.gt-shell.mobile-only .gt-history-list .gt-record > div > b {
  color: var(--gt-mobile-text) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

.gt-shell.mobile-only .gt-history-list .gt-record .gt-record-sender-num {
  margin-top: 1px !important;
  color: #7f7a9f !important;
  font-size: 9.5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.gt-shell.mobile-only .gt-history-list .gt-record > div > strong {
  color: var(--gt-mobile-text) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.gt-shell.mobile-only .gt-history-list .gt-record .gt-meta-row {
  margin-top: 3px !important;
  gap: 1px !important;
}

.gt-shell.mobile-only .gt-history-list .gt-record .gt-meta-row span {
  color: var(--gt-mobile-muted) !important;
  font-size: 10.2px !important;
  font-weight: 500 !important;
  line-height: 1.28 !important;
}

.gt-shell.mobile-only .gt-history-list .gt-record > em {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: start !important;
  min-width: 62px !important;
  margin-top: 2px !important;
  text-align: right !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.gt-shell.mobile-only .gt-history-list .gt-record.green > em {
  color: #00a85a !important;
}

.gt-shell.mobile-only .gt-history-list .gt-record.red > em {
  color: #ef1f32 !important;
}

.gt-shell.mobile-only .gt-history-list .gt-record > em small {
  display: block !important;
  margin-top: 4px !important;
  color: #6f6a95 !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

/* Notification cards: keep amounts styled like transaction history amounts. */
.gt-shell.mobile-only .notif-card .notif-card-action strong,
.gt-shell .gt-screen .notif-card .notif-card-action strong {
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.gt-shell.mobile-only .notif-card.unclaimed .notif-card-action strong,
.gt-shell .gt-screen .notif-card.unclaimed .notif-card-action strong {
  color: #ef7d00 !important;
}

.gt-shell.mobile-only .notif-card.claimed .notif-card-action strong,
.gt-shell .gt-screen .notif-card.claimed .notif-card-action strong {
  color: #00a85a !important;
}

/* Connected Phones: shared compact card format for mobile/tablet/desktop. */
.gt-dashboard-reader-list,
.gt-connected-phone-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.gt-dashboard-reader-list .gt-dash-divider {
  display: none !important;
}

.gt-dashboard-reader-list .gt-connected-phone-card,
.gt-phones-card .gt-phone-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 16px !important;
  min-height: 108px !important;
  padding: 22px 26px !important;
  border: 1.5px solid #e6dcff !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  position: relative !important;
}

.gt-dashboard-reader-list .gt-dash-reader-info,
.gt-phones-card .gt-phone-card-top,
.gt-phones-card .gt-phone-card-body {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.gt-phones-card .gt-phone-card-top {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.gt-phones-card .gt-phone-card-body {
  grid-column: 1 !important;
  grid-row: 1 !important;
  padding-top: 19px !important;
  padding-left: 12px !important;
  padding-right: 110px !important;
}

.gt-phones-card .gt-phone-card-name {
  max-width: calc(100% - 110px) !important;
  padding-left: 12px !important;
}

.gt-dashboard-reader-list .gt-dash-detail-title,
.gt-phones-card .gt-phone-card-name b {
  display: block !important;
  color: var(--gt-text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

.gt-dashboard-reader-list .gt-dash-detail:not(.gt-dash-detail-title),
.gt-phones-card .gt-phone-card-body span,
.gt-phones-card .gt-phone-card-body small {
  display: block !important;
  margin-top: 2px !important;
  color: #6f6a95 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
}

.gt-dashboard-reader-list .gt-dash-detail:not(.gt-dash-detail-title) {
  padding-left: 12px !important;
}

.gt-dashboard-reader-list .gt-dash-reader-badge,
.gt-phones-card .gt-phone-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 82px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 5px 13px !important;
  border: 1px solid #a7f3c6 !important;
  border-radius: 999px !important;
  background: #dcfce7 !important;
  color: #049857 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.gt-phones-card .gt-phone-badge {
  position: absolute !important;
  top: 50% !important;
  right: 26px !important;
  transform: translateY(-50%) !important;
}

.gt-phones-card .gt-phone-card-footer,
.gt-phones-card .gt-phone-status-dot,
.gt-phones-card .gt-phone-info-line,
.gt-phones-card .gt-phone-slot-warning {
  display: none !important;
}

.gt-phones-card > .gt-dashed-button,
.gt-phones-card .gt-dashed-button {
  margin-top: 10px !important;
}

@media (min-width: 700px) {
  .gt-dashboard-reader-list .gt-connected-phone-card,
  .gt-phones-card .gt-phone-card {
    min-height: 110px !important;
    padding: 24px 30px !important;
  }
}

/* Transaction saving and duplicate-check progress */
.gt-saving-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(17, 20, 45, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.gt-saving-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.gt-saving-card {
  width: min(360px, 100%);
  border: 1px solid #ddd6fe;
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(49, 35, 130, 0.22);
}

.gt-saving-spinner,
.gt-inline-spinner {
  display: inline-block;
  border-radius: 999px;
  border: 3px solid #e9d5ff;
  border-top-color: #5b35ff;
  animation: gtSpin 0.8s linear infinite;
}

.gt-saving-spinner {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
}

.gt-inline-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
  margin-right: 7px;
  vertical-align: -2px;
}

.gt-saving-card h2 {
  margin: 0;
  font-size: 18px;
  color: var(--gt-text);
}

.gt-saving-card p {
  margin: 8px 0 14px;
  color: #6f6a95;
  font-size: 12px;
  line-height: 1.4;
}

.gt-saving-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0ecff;
}

.gt-saving-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #5b35ff, #8b5cf6);
  transition: width 0.22s ease;
}

.gt-saving-card > strong {
  display: block;
  margin-top: 8px;
  color: #5b35ff;
  font-size: 12px;
}

.gt-saving-overlay[data-state="error"] .gt-saving-spinner {
  border-color: #fecaca;
  border-top-color: #dc2626;
}

.gt-saving-overlay[data-state="error"] .gt-saving-track span {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.gt-saving-overlay[data-state="error"] .gt-saving-card > strong {
  color: #dc2626;
}

.gt-saving-overlay[data-state="success"] .gt-saving-spinner {
  border-color: #bbf7d0;
  border-top-color: #16a34a;
}

.gt-saving-overlay[data-state="success"] .gt-saving-track span {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.gt-saving-overlay[data-state="success"] .gt-saving-card > strong {
  color: #16a34a;
}

.gt-dup-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.35;
}

.gt-dup-result b,
.gt-dup-result small {
  display: block;
}

.gt-dup-result-checking {
  border: 1.5px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.gt-duplicate-btn.is-checking,
.gt-save-button.is-saving,
.desktop-save-txn.is-saving {
  opacity: 0.82;
  cursor: progress !important;
}

@keyframes gtSpin {
  to { transform: rotate(360deg); }
}

/* Premium polish for Completed Transactions on mobile/tablet */
.gt-shell.mobile-only .gt-summary-card,
.gt-shell.mobile-only .gt-history-card {
  padding: 16px;
  border-color: #ded7ff;
  box-shadow: 0 12px 28px rgba(87, 57, 214, 0.08);
}

.gt-shell.mobile-only .gt-summary-card {
  position: relative;
  margin-bottom: 14px;
}

.gt-shell.mobile-only .gt-summary-card .gt-card-heading,
.gt-shell.mobile-only .gt-history-card .gt-card-heading {
  margin: 0 138px 12px 0;
  color: var(--gt-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
}

.gt-shell.mobile-only .gt-history-card .gt-card-heading.center {
  text-align: left;
}

.gt-shell.mobile-only .gt-summary-date {
  position: absolute;
  top: 14px;
  right: 16px;
  margin: 0;
  max-width: 130px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f4efff;
  color: var(--gt-primary);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  text-align: center;
}

.gt-shell.mobile-only .gt-summary-range {
  clear: both;
  margin-bottom: 14px;
}

.gt-shell.mobile-only .gt-summary-grid {
  gap: 10px;
  margin-bottom: 0;
}

.gt-shell.mobile-only .gt-summary-tile {
  min-height: 82px;
  padding: 12px;
  border-radius: 14px;
  border-width: 1.25px;
  align-content: space-between;
}

.gt-shell.mobile-only .gt-summary-tile small {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
  color: var(--gt-muted) !important;
}

.gt-shell.mobile-only .gt-summary-card .gt-summary-tile strong {
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: right;
}

.gt-shell.mobile-only .gt-summary-tile .gt-tile-meta {
  font-size: 10px !important;
  font-weight: 700 !important;
  opacity: .78;
}

.gt-shell.mobile-only .gt-summary-tile.green {
  background: #effaf4;
  border-color: #c9efd8;
}

.gt-shell.mobile-only .gt-summary-tile.red {
  background: #fff4f4;
  border-color: #ffd7d9;
}

.gt-shell.mobile-only .gt-summary-tile.purple {
  background: #f3efff;
  border-color: #ddd3ff;
}

.gt-shell.mobile-only .gt-summary-tile.gray {
  background: #f8f7ff;
  border-color: #e2dcff;
}

.gt-shell.mobile-only .gt-daterange-box {
  border: 1.25px solid #ded7ff;
  border-radius: 16px;
  background: #fbfaff;
  padding: 12px;
  gap: 10px;
}

.gt-shell.mobile-only .gt-daterange-inputs {
  gap: 10px;
}

.gt-shell.mobile-only .gt-daterange-inputs label {
  gap: 5px;
  color: var(--gt-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}

.gt-shell.mobile-only .gt-daterange-inputs input[type="date"] {
  min-height: 44px;
  border-color: #ded7ff !important;
  background: #fff !important;
  font-size: 12px;
  font-weight: 700;
}

.gt-shell.mobile-only .gt-quick-range {
  gap: 8px;
}

.gt-shell.mobile-only .gt-quick-range button {
  min-height: 30px;
  border-color: #ded7ff;
  color: var(--gt-text);
  font-size: 12px;
  font-weight: 800;
}

.gt-duplicate-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(18, 16, 43, .56);
  backdrop-filter: blur(10px);
}

.gt-duplicate-modal.active {
  display: flex;
}

.gt-duplicate-card {
  position: relative;
  width: min(540px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border: 1px solid #ded7ff;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(39, 28, 85, .26);
  padding: 24px;
  color: var(--gt-text, #161637);
  font-family: Poppins, system-ui, sans-serif;
}

.gt-duplicate-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ded7ff;
  border-radius: 14px;
  background: #f8f6ff;
  color: #5b35ff;
  cursor: pointer;
}

.gt-duplicate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin-bottom: 14px;
}

.gt-duplicate-modal[data-level="exact"] .gt-duplicate-icon {
  background: #fee2e2;
  color: #dc2626;
}

.gt-duplicate-modal[data-level="similar"] .gt-duplicate-icon {
  background: #fff7ed;
  color: #f59e0b;
}

.gt-duplicate-card h2 {
  margin: 0 44px 6px 0;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.gt-duplicate-card > p {
  margin: 0 0 18px;
  color: var(--gt-muted, #6f6b95);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.gt-duplicate-kicker {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gt-duplicate-modal[data-level="exact"] .gt-duplicate-kicker {
  color: #dc2626;
}

.gt-duplicate-modal[data-level="similar"] .gt-duplicate-kicker {
  color: #d97706;
}

.gt-duplicate-details {
  border: 1px solid #e5defd;
  border-radius: 18px;
  background: #fbfaff;
  padding: 16px;
}

.gt-duplicate-details dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.gt-duplicate-details dl > div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 12px;
  align-items: start;
}

.gt-duplicate-details dt {
  color: var(--gt-muted, #6f6b95);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.gt-duplicate-details dd {
  margin: 0;
  color: var(--gt-text, #161637);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.gt-duplicate-details dd small {
  display: block;
  margin-top: 2px;
  color: var(--gt-muted, #6f6b95);
  font-size: 11px;
  font-weight: 600;
}

.gt-duplicate-photo {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid #ded7ff;
  border-radius: 18px;
  background: #fff;
  color: var(--gt-muted, #6f6b95);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  user-select: none;
}

.gt-duplicate-photo img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ede8ff;
}

.gt-duplicate-no-photo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed #ded7ff;
  border-radius: 16px;
  background: #fbfaff;
  color: var(--gt-muted, #6f6b95);
  font-size: 12px;
  font-weight: 700;
}

.gt-duplicate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.gt-duplicate-actions .gt-wide {
  grid-column: 1 / -1;
}

.gt-dup-result-warning {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  color: #92400e;
}

@media (max-width: 520px) {
  .gt-duplicate-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .gt-duplicate-card {
    max-height: 92vh;
    border-radius: 22px;
    padding: 20px;
  }

  .gt-duplicate-card h2 {
    font-size: clamp(17px, 5vw, 20px);
  }

  .gt-duplicate-details dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .gt-duplicate-photo {
    gap: 8px;
  }

  .gt-duplicate-photo img {
    width: 100%;
    max-height: 220px;
  }

.gt-duplicate-actions {
    grid-template-columns: 1fr;
  }
}

/* Final mobile homepage fee-card polish: keep the hint visible, right-aligned,
   and away from the amount/calendar icon. */
.gt-shell.mobile-only #screen-dashboard .gt-fee-hero {
  grid-template-columns: minmax(0, 1fr) 52px;
  min-height: 98px;
  padding: 14px 18px 18px 16px;
  column-gap: 12px;
  position: relative;
}

.gt-shell.mobile-only #screen-dashboard .gt-fee-hero > span:not(.gt-icon-orb) {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  padding-right: 8px;
}

.gt-shell.mobile-only #screen-dashboard .gt-fee-hero em {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 15px;
  display: block;
  width: max-content;
  max-width: calc(100% - 132px);
  overflow: hidden;
  color: rgba(255,255,255,.92);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.gt-shell.mobile-only #screen-dashboard .gt-fee-hero > .gt-icon-orb:last-child {
  justify-self: end;
}
