: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);
}

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 big desktop screens (≥1024px),
   for the marketing/demo view. */
@media (min-width: 1024px) {
  .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; }
}

.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 22px 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;
  gap: 7px;
  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;
}

.gt-sync {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid #c9f0d2;
  border-radius: 12px;
  background: #f0fdf4;
  color: var(--gt-green);
  font-size: 12px;
  font-weight: 800;
}

.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 var(--gt-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--gt-shadow);
  color: var(--gt-text);
  text-align: center;
}

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

.gt-fee-hero strong {
  display: block;
  margin: 4px 0;
  color: var(--gt-primary);
  font-size: 54px;
  line-height: 1;
}

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

.gt-metric {
  min-height: 184px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid var(--gt-border);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.gt-metric.green { border-color: #bdeccd; color: var(--gt-green); background: linear-gradient(180deg, #fff, #f3fff7); }
.gt-metric.red { border-color: #ffd0d3; color: var(--gt-red); background: linear-gradient(180deg, #fff, #fff6f6); }
.gt-metric.amber { border-color: #ffe0a6; color: var(--gt-amber); background: linear-gradient(180deg, #fff, #fffaf0); }
.gt-metric b { font-size: 14px; line-height: 1.28; }
.gt-metric strong { font-size: 36px; line-height: 1; }
.gt-metric em { font-style: normal; font-weight: 800; font-size: 19px; }

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

.gt-action-grid .gt-action:nth-child(4) {
  grid-column: 1 / -1;
  min-height: 82px;
}

.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.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: 50%;
  bottom: max(18px, calc((100vh - 932px) / 2 + 18px));
  z-index: 50;
  width: min(386px, calc(100vw - 44px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 0;
  padding: 8px;
  border: 1px solid #ece8fb;
  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;
}

.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: 150px;
  border: 1px solid var(--gt-border);
  border-radius: 15px;
  background: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
}
.gt-proof-grid strong { font-size: 16px; }
.gt-proof-grid em { font-style: normal; color: var(--gt-primary); background: var(--gt-soft); padding: 6px 10px; border-radius: 10px; }
.gt-flow-card label {
  grid-template-columns: 28px minmax(120px, 1fr) minmax(90px, 1fr);
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--gt-border);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--gt-primary);
}
.gt-flow-card label input { border: 0; padding: 0; min-height: auto; text-align: right; color: var(--gt-muted); }
.gt-flow-card label select { border: 0; min-height: auto; padding: 0; text-align: right; color: var(--gt-muted); background: #fff; max-width: 100%; }
.gt-flow-card label span { color: #46416a; font-size: 13px; }

.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 10px;
  color: var(--gt-green);
  background: #e9f9ef;
  font-weight: 900;
}

.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-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: grid;
  grid-template-columns: 26px 1fr;
  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; }
.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;
}

.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: 13px;
}

.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;
  line-height: 1;
}

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

.gt-notif-metrics .blue { color: var(--gt-primary); }
.gt-notif-metrics .green { color: var(--gt-green); }
.gt-notif-metrics .amber { 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: 44px;
  padding: 10px 12px;
  border: 1px solid #ffe0a6;
  border-radius: 12px;
  background: #fffaf0;
  color: var(--gt-amber);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.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) auto;
  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: 100px;
  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;
  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 {
  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;
}

.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: 18px 4px 10px;
  font-size: 18px;
  font-weight: 900;
  color: var(--gt-text);
}

.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: 15px;
  font-weight: 800;
  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;
}

.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,
.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 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 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 em {
  color: var(--gt-green);
  font-style: normal;
  font-weight: 800;
}

.gt-dashed-button {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  margin-bottom: 10px;
  border: 1.5px dashed #a994ff;
  border-radius: 12px;
  background: var(--gt-soft);
  color: var(--gt-primary);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.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 | chevron */
  grid-template-columns: 48px 1fr 18px;
  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-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 {
  min-height: 50px;
  border: 1px solid var(--gt-border);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--gt-muted);
  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 {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin-bottom: 18px;
}

.gt-fee-intro h2,
.gt-fee-intro p {
  margin: 0;
}

.gt-fee-intro p {
  margin-top: 6px;
  color: var(--gt-muted);
}

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

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

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

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

.gt-fee-editor th svg {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  color: var(--gt-primary);
  vertical-align: -3px;
}

.gt-fee-editor td:last-child {
  width: 120px;
  text-align: right;
}

.gt-fee-editor td button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gt-border);
  border-radius: 10px;
  background: var(--gt-soft);
  color: var(--gt-primary);
}

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

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

.gt-fee-editor > p {
  margin: 0;
  color: var(--gt-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gt-fee-example {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px;
  color: var(--gt-primary);
  font-size: 19px;
}

.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-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-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 {
  width: 158px;
  height: 158px;
  border: 2px dashed #b898ff;
  background:
    repeating-linear-gradient(90deg, #111 0 6px, #fff 6px 12px),
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(255,255,255,0.75) 10px 20px);
  background-blend-mode: multiply;
}

.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: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  font-weight: 800;
}

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

.gt-calendar-grid .muted {
  color: #aaa4c6;
}

.gt-calendar-grid .selected {
  width: 44px;
  height: 44px;
  justify-self: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-2));
}

.gt-calendar-grid .selected i {
  background: #fff;
}

.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 .8fr 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: 16px; }
  .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 { font-size: var(--gt-fs-lg); }

/* 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: var(--gt-fs-lg); }

/* Settings list items */
.gt-shell.mobile-only .gt-settings-group > button > b { font-size: var(--gt-fs-md); }
.gt-shell.mobile-only .gt-settings-group > button > small { font-size: var(--gt-fs-xs); }

/* 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;
}
.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 {
  flex: 0 0 auto;
  font-size: var(--gt-fs-2xs);
  padding: 4px 8px;
  background: #e9f9ef;
  color: var(--gt-green);
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

/* 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: auto;
  padding: var(--gt-pad-md);
  gap: 12px;
}
/* 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: var(--gt-soft);
  color: var(--gt-primary);
  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: 2px;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.gt-shell.mobile-only .gt-fee-hero small {
  font-size: var(--gt-fs-xs);
  color: var(--gt-muted);
  font-weight: 700;
  letter-spacing: .02em;
  text-align: left;
  white-space: nowrap;
}
.gt-shell.mobile-only .gt-fee-hero strong {
  font-size: var(--gt-fs-3xl);
  margin: 2px 0;
  line-height: 1;
  color: var(--gt-primary);
  text-align: left;
  white-space: nowrap;
}
.gt-shell.mobile-only .gt-fee-hero em {
  font-size: var(--gt-fs-xs);
  color: var(--gt-muted);
  font-style: normal;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;            /* keep on one line */
  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: grid;
  grid-template-rows: 36px auto auto auto;   /* label · icon · number · amount */
  justify-items: center;
  align-items: center;
  align-content: start;
  gap: 6px;
  padding: 10px 6px;
  min-height: auto;
  text-align: center;
}
.gt-shell.mobile-only .gt-metric > b {
  grid-row: 1;
  font-size: var(--gt-fs-xs);
  line-height: 1.15;
  align-self: center;
  white-space: normal;
}
.gt-shell.mobile-only .gt-metric > .gt-icon-orb {
  grid-row: 2;
  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 {
  grid-row: 3;
  font-size: var(--gt-fs-xl);
  line-height: 1;
  font-weight: 900;
}
.gt-shell.mobile-only .gt-metric > em {
  grid-row: 4;
  font-style: normal;
  font-weight: 800;
  font-size: var(--gt-fs-sm);          /* SMALLER so larger ₱ amounts fit */
  line-height: 1.1;
  white-space: nowrap;
}

/* === 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: 4px;            /* tighter spacing so all 4 chips fit */
  padding-bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  margin-bottom: 12px;
}
.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: 1 1 0;         /* distribute equally so they always fit */
  padding-left: 4px;
  padding-right: 4px;
  min-width: 0;
}
.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 {
  padding: 14px 16px 16px;
}
.gt-shell.mobile-only .gt-fee-hero > span:not(.gt-icon-orb) {
  padding: 2px 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 42px;
  margin-bottom: 12px;
}
.gt-shell.mobile-only .gt-notif-search > button {
  width: 42px;
  min-width: 42px;
  min-height: 44px;
  padding: 0;
  font-size: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
}
.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: var(--gt-fs-lg);
  font-weight: 800;
}
.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: var(--gt-fs-2xs);
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--gt-muted);
}
.gt-shell.mobile-only .gt-summary-tile strong {
  font-size: var(--gt-fs-lg);
  font-weight: 900;
  line-height: 1;
}
.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.red     { background: #fff4f4; }
.gt-shell.mobile-only .gt-summary-tile.red strong   { 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.gray    { background: #f5f5f7; }
.gt-shell.mobile-only .gt-summary-tile.gray strong  { color: var(--gt-text); }

/* 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;
}
.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;
}

/* 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;
  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-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(4, 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: var(--gt-fs-2xs);
  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: var(--gt-fs-sm);
}
.gt-shell.mobile-only .gt-daily-table article > em {
  grid-column: 4;
  text-align: left;
  font-size: var(--gt-fs-sm);
}
.gt-shell.mobile-only .gt-daily-table article > svg:last-child {
  grid-column: 5;
  width: 16px;
  height: 16px;
}
/* Entire row tappable when [data-go] is set (navigates to that day's txns) */
.gt-shell.mobile-only .gt-daily-table article[data-go] {
  cursor: pointer;
}
.gt-shell.mobile-only .gt-daily-table article[data-go]:hover,
.gt-shell.mobile-only .gt-daily-table article[data-go]:active {
  background: var(--gt-soft);
}
/* 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 strong { font-size: var(--gt-fs-2xl); }
.gt-shell.mobile-only .gt-metric 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(104px + env(safe-area-inset-bottom, 0px));
}

.gt-shell.mobile-only .gt-bottom-nav {
  bottom: max(18px, calc((100vh - 932px) / 2 + 18px) + env(safe-area-inset-bottom, 0px));
}

/* 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 > 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 > span,
.gt-shell.mobile-only .gt-three-summary > span {
  width: var(--gt-orb-lg);
  height: var(--gt-orb-lg);
}
.gt-shell.mobile-only .gt-metric > span svg,
.gt-shell.mobile-only .gt-three-summary > span svg {
  width: calc(var(--gt-orb-lg) * 0.45);
  height: calc(var(--gt-orb-lg) * 0.45);
}

/* 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,
.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;
  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 3-up metric grid (Cash In / Claimed / Unclaimed) ---------- */
  .gt-shell.mobile-only .gt-metric-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  /* Each metric card becomes wide horizontal: icon | label+number+amount side-by-side */
  .gt-shell.mobile-only .gt-metric {
    grid-template-columns: var(--gt-orb-lg) 1fr auto;
    grid-template-rows: auto auto;
    min-height: auto;
    column-gap: 12px;
    row-gap: 2px;
    padding: 12px 14px;
    text-align: left;
    align-items: center;
  }
  .gt-shell.mobile-only .gt-metric > span:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .gt-shell.mobile-only .gt-metric > b {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: var(--gt-fs-xs);
    text-align: left;
  }
  .gt-shell.mobile-only .gt-metric > strong {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    text-align: right;
    font-size: var(--gt-fs-xl);
  }
  .gt-shell.mobile-only .gt-metric > small,
  .gt-shell.mobile-only .gt-metric > em {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    text-align: left;
    font-size: var(--gt-fs-xs);
  }

  /* ---------- 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;
}

/* ─── 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;
  }
}
