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

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

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

:root {
  --bg: #f6f3ff;
  --surface: #ffffff;
  --surface-2: #fbfaff;
  --text: #111331;
  --muted: #68658a;
  --border: #ded7ff;
  --primary: #5a35ff;
  --primary-2: #7a5dff;
  --green: #0aa653;
  --red: #f1232e;
  --orange: #f08a00;
  --shadow: 0 18px 40px rgba(61, 45, 134, 0.10);
  font-family: Poppins, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9f7ff 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.brand strong {
  display: block;
  color: var(--primary);
  font-size: 20px;
}

.brand small,
.side-card small,
.panel p,
.transaction small,
.notif-list small {
  color: var(--muted);
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav button,
.ghost,
.primary,
.text-button,
.action-card,
.round-action,
.photo,
.icon,
.notif-list button {
  border: 0;
  border-radius: 8px;
}

.side-nav button {
  min-height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #474461;
  text-align: left;
  font-weight: 700;
}

.side-nav button.active,
.side-nav button:hover {
  background: #eeeaff;
  color: var(--primary);
}

svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.side-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid #ccefdc;
  border-radius: 8px;
  background: #f1fff7;
  display: flex;
  gap: 10px;
  align-items: center;
}

.side-card > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.side-card strong,
.side-card small {
  display: block;
  line-height: 1.25;
}

.side-card strong {
  overflow-wrap: anywhere;
}

.sync-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.main {
  height: 100vh;
  overflow: auto;
  padding: 28px 32px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 4px;
  font-size: 20px;
  letter-spacing: 0;
}

.top-actions,
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ghost,
.primary,
.text-button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
}

.danger-ghost {
  color: var(--red);
  border-color: #ffc4ca;
  background: #fff7f8;
}


.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
}

.text-button {
  background: transparent;
  color: var(--primary);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.6fr) repeat(3, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.hero-card,
.metric,
.panel,
.action-card,
.account-grid article,
.dashboard-cards article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.hero-card {
  min-height: 178px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-card p,
.metric p {
  color: var(--muted);
  font-weight: 800;
}

.hero-card strong {
  display: block;
  color: var(--primary);
  font-size: clamp(54px, 6vw, 82px);
  line-height: 0.95;
}

.round-action {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  background: #f0ecff;
  color: var(--primary);
  border: 1px solid var(--border);
}

.round-action svg {
  width: 34px;
  height: 34px;
}

.metric {
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.metric span,
.action-card i {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

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

.metric small {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
}

.metric.cash-in span,
.action-card.cash-in i,
.type.in,
.pill.in {
  background: #e9f9f0;
  color: var(--green);
}

.metric.claimed span {
  background: #e9f9f0;
  color: var(--green);
}

.metric.cash-in strong,
.metric.cash-in small,
.metric.claimed strong,
.metric.claimed small {
  color: var(--green);
}

.metric.unclaimed span {
  background: #fff3df;
  color: var(--orange);
}

.metric.unclaimed strong,
.metric.unclaimed small {
  color: var(--orange);
}

.action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.action-card {
  min-height: 130px;
  padding: 18px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 900;
}

.action-card.cash-out i,
.type.out,
.pill.out {
  background: #fff0f1;
  color: var(--red);
}

.action-card:not(.cash-in):not(.cash-out) i {
  background: #eeeaff;
  color: var(--primary);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.9fr);
  gap: 18px;
}

.panel {
  padding: 20px;
  margin-bottom: 18px;
}

.panel.wide {
  min-width: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head.compact {
  align-items: center;
}

.transaction-list,
.notif-list,
.phone-list {
  display: grid;
}

.transaction {
  display: grid;
  grid-template-columns: 64px 56px minmax(240px, 1fr) minmax(150px, max-content);
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #ebe7ff;
}

.type,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 30px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
}

.photo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #eeeaff;
}

.transaction strong,
.notif-list strong {
  display: block;
}

.transaction p {
  margin-bottom: 4px;
  font-weight: 800;
}

.transaction small {
  display: inline-block;
  margin-right: 10px;
  white-space: nowrap;
}

.amount {
  text-align: right;
  font-size: 21px;
  font-weight: 900;
}

.amount small {
  display: block;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.green,
.amount.in {
  color: var(--green);
}

.red,
.amount.out {
  color: var(--red);
}

.orange {
  color: var(--orange);
}

.mini-stats,
.dashboard-cards,
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-stats span,
.dashboard-cards article {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.mini-stats b,
.dashboard-cards strong {
  display: block;
  color: var(--primary);
  font-size: 30px;
}

.notif-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #ebe7ff;
}

.notif-list.full {
  margin-top: 6px;
  border-top: 1px solid #ebe7ff;
}

.notif-list button {
  min-height: 38px;
  padding: 0 12px;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.desktop-mobile-format,
.desktop-notifs-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}

.desktop-mobile-format {
  display: grid;
  gap: 18px;
}

.desktop-mobile-format .gt-card,
.desktop-notifs-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.desktop-mobile-format .gt-card {
  padding: 18px;
}

.gt-card-heading {
  margin: 0 0 14px;
  color: #060719;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0;
}

.gt-card-heading.center {
  text-align: center;
}

.gt-card-heading.primary {
  background: transparent;
  color: var(--primary);
}

.gt-segment,
.gt-toggle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.gt-segment button,
.gt-toggle button {
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #0d1024;
  font-size: 13px;
  font-weight: 900;
}

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

.gt-summary-custom-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  margin: 12px 0;
}

.gt-summary-custom-range[hidden] {
  display: none !important;
}

.gt-summary-custom-range label {
  display: grid;
  gap: 5px;
}

.gt-summary-custom-range small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.gt-summary-custom-range input,
.gt-daterange-inputs input {
  min-height: 44px;
  width: 100%;
  border: 1.25px solid #ded7ff;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: #0d1024;
  font-weight: 700;
}

.gt-summary-custom-range span {
  color: var(--muted);
  font-size: 13px;
}

.desktop-summary-card {
  position: relative;
}

.desktop-summary-card .gt-card-heading {
  text-align: left;
  color: #060719;
}

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

.gt-summary-tile {
  min-height: 92px;
  padding: 16px;
  border: 1.25px solid var(--border);
  border-radius: 14px;
  display: grid;
  align-content: space-between;
}

.gt-summary-tile small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gt-summary-tile strong {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.gt-summary-tile.green {
  background: #effaf4;
  border-color: #c9efd8;
}

.gt-summary-tile.green strong {
  color: var(--green);
}

.gt-summary-tile.green .gt-tile-meta {
  color: var(--green);
}

.gt-summary-tile.red {
  background: #fff4f4;
  border-color: #ffd7d9;
}

.gt-summary-tile.red strong {
  color: var(--red);
}

.gt-summary-tile.red .gt-tile-meta {
  color: var(--red);
}

.gt-summary-tile.purple {
  background: #f3efff;
  border-color: #ddd3ff;
}

.gt-summary-tile.purple strong {
  color: var(--primary);
}

.gt-summary-tile.purple .gt-tile-meta {
  color: var(--primary);
}

.gt-summary-tile.gray {
  background: #f8f7ff;
  border-color: #e2dcff;
}

.gt-summary-tile.gray strong,
.gt-summary-tile.gray .gt-tile-meta {
  color: var(--primary);
}

.gt-tile-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  opacity: .78;
  text-align: right;
}

.gt-summary-date {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4efff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.gt-history-card {
  margin-top: 0;
}

.desktop-history-card .gt-card-heading {
  text-align: left;
  color: #060719;
}

.gt-daterange-box {
  padding: 14px;
  border: 1.25px solid #ded7ff;
  border-radius: 16px;
  background: #fbfaff;
}

.gt-daterange-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gt-daterange-inputs label {
  display: grid;
  gap: 5px;
}

.gt-daterange-inputs small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.gt-quick-range {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.gt-quick-range button {
  min-height: 32px;
  border: 1px solid #ded7ff;
  border-radius: 999px;
  background: #fff;
  color: #0d1024;
  font-size: 13px;
  font-weight: 900;
}

.gt-quick-range button:hover,
.gt-quick-range button:focus-visible {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.gt-search-row {
  margin-top: 12px;
}

.gt-search-row label {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.gt-search-row input {
  width: 100%;
  border: 0;
  outline: 0;
}

.gt-history-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.gt-history-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.gt-button-secondary {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.gt-history-toggle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.gt-list-panel {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.gt-record {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 14px;
  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: 8px;
}

.gt-type-stack b {
  min-width: 44px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.gt-record.green .gt-type-stack b { background: #e9f9ef; color: var(--green); }
.gt-record.red .gt-type-stack b { background: #fff0f1; color: var(--red); }

.gt-type-stack button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--primary);
  background: #eeeaff;
}

.gt-record b {
  display: block;
  font-size: 15px;
}

.gt-record strong {
  display: block;
  margin-top: 2px;
  color: #0d1024;
  font-size: 13px;
}

.gt-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.gt-record em {
  color: var(--green);
  font-style: normal;
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.gt-record.red em {
  color: var(--red);
}

.gt-record em small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.gt-history-table-wrap {
  margin-top: 10px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #eefbf3;
  border: 1px solid #bfeacc;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.sync-pill svg {
  width: 17px;
  height: 17px;
}

.desktop-notif-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.desktop-notif-metrics article {
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.desktop-notif-metrics article.wide {
  min-height: 126px;
  grid-template-columns: none;
  place-items: center;
  align-content: center;
  text-align: center;
}

.desktop-notif-metrics span {
  color: currentColor;
  font-size: 13px;
  font-weight: 900;
}

.desktop-notif-metrics i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1edff;
}

.desktop-notif-metrics i svg {
  width: 24px;
  height: 24px;
}

.desktop-notif-metrics strong {
  color: currentColor;
  font-size: 32px;
  line-height: 1;
}

.desktop-notif-metrics .wide strong {
  font-size: 26px;
}

.desktop-notif-metrics .wide i {
  grid-row: auto;
  grid-column: auto;
  align-self: auto;
}

.desktop-notif-metrics .blue { color: var(--primary); }
.desktop-notif-metrics .green { color: var(--green); }
.desktop-notif-metrics .orange { color: var(--orange); }
.desktop-notif-metrics .green i { background: #e9f9ef; }
.desktop-notif-metrics .orange i { background: #fff5df; }

.desktop-notif-tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 54px;
  gap: 12px;
  margin-bottom: 14px;
}

.desktop-notif-search {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.desktop-notif-search svg {
  color: var(--muted);
  width: 24px;
  height: 24px;
}

.desktop-notif-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
}

.desktop-filter-icon {
  min-height: 52px;
  padding: 0;
}

.desktop-notif-source {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.desktop-notif-source select {
  min-height: 52px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.desktop-upgrade-chip {
  width: 100%;
  min-height: 38px;
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 1px solid #ffd18a;
  border-radius: 9px;
  background: #fff8ea;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

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

.desktop-notif-period {
  margin: 0;
  color: var(--muted);
}

.desktop-notif-filter-head {
  display: none;
}

.desktop-notif-filter-line {
  display: flex;
  align-items: end;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ebe7ff;
}

.desktop-notif-date-filter,
.desktop-notif-status-filter {
  display: grid;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
}

.desktop-notif-date-filter {
  grid-template-columns: repeat(4, minmax(104px, 1fr));
  flex: 1 1 auto;
}

.desktop-notif-status-filter {
  grid-template-columns: repeat(3, minmax(104px, 1fr));
  flex-shrink: 0;
}

.desktop-notif-date-filter::before,
.desktop-notif-status-filter::before {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.desktop-notif-date-filter::before {
  content: "Date Range";
}

.desktop-notif-status-filter::before {
  content: "Status";
}

.desktop-notif-date-filter button,
.desktop-notif-status-filter button {
  min-width: 104px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.desktop-filter-divider {
  width: 1px;
  height: 44px;
  background: #ded7ff;
  flex-shrink: 0;
  margin-bottom: 0;
}

.desktop-notif-custom-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin: 12px 0 0;
}

.desktop-notif-custom-range[hidden] {
  display: none !important;
}

.desktop-notif-custom-range label {
  display: grid;
  gap: 5px;
}

.desktop-notif-custom-range small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.desktop-notif-custom-range input {
  min-height: 42px;
  width: 100%;
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.desktop-notif-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.notif-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 18px;
  padding: 16px 18px;
  border: 1.5px solid #e9d5ff;
  border-radius: 14px;
  background: #fff;
}

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

.notif-card-main b,
.notif-card-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.notif-card b {
  font-size: 16px;
}

.notif-card small {
  color: var(--muted);
  line-height: 1.4;
}

.notif-card-action {
  min-width: 180px;
  display: grid;
  grid-template-areas:
    "amount"
    "button"
    "status"
    "detail";
  justify-items: end;
  align-content: center;
  gap: 8px;
  text-align: right;
}

.notif-card-action strong {
  grid-area: amount;
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
}

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

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

.notif-card-action em {
  grid-area: status;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 5px 12px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

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

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

.notif-card-action button {
  grid-area: button;
  min-width: 132px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 900;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 260px auto;
  gap: 12px;
  margin-bottom: 12px;
}

.date-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.date-filter button {
  min-width: 118px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
}

.date-filter button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
}

.compact-filter {
  margin-top: -6px;
}

.compact-filter button {
  min-width: 96px;
  min-height: 34px;
  font-size: 12px;
}

.desktop-notif-filter-line .date-filter {
  align-items: stretch;
  gap: 8px;
  margin: 0;
}

.desktop-notif-filter-line .compact-filter {
  margin-top: 0;
  align-items: stretch;
  gap: 8px;
}

.desktop-notif-filter-line .date-filter button,
.desktop-notif-filter-line .compact-filter button {
  width: 100%;
  min-width: 104px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1;
}

.desktop-notif-filter-line .desktop-filter-divider {
  height: 44px;
  margin: 0 2px;
}

.toolbar label,
.toolbar select {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

.toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.toolbar input {
  width: 100%;
  border: 0;
  outline: 0;
}

.toolbar select {
  padding: 0 12px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid #ebe7ff;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #f3f0ff;
  color: var(--primary);
}

.account-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.account-grid article {
  padding: 20px;
}

.account-grid span {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eeeaff;
  color: var(--primary);
  font-weight: 800;
}

.account-grid strong,
.account-grid b {
  display: block;
  margin-top: 10px;
  font-size: 26px;
}

.fee-panel {
  max-width: 980px;
  overflow: hidden;
}

.fee-panel #feeTableUI .gt-inline-fee-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.desktop-mobile-page #feeTableUI,
.desktop-mobile-page .gt-inline-fee-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.fee-panel #feeTableUI table,
#page-fees .gt-inline-fee-table-wrap table,
#page-fee-settings .gt-inline-fee-table-wrap table,
#screen-fee-settings .gt-inline-fee-table-wrap table,
.desktop-mobile-page .gt-inline-fee-table-wrap table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.fee-panel #feeTableUI col:first-child,
#page-fees .gt-inline-fee-table-wrap col:first-child,
#page-fee-settings .gt-inline-fee-table-wrap col:first-child {
  width: 48% !important;
}

.fee-panel #feeTableUI col:nth-child(2),
#page-fees .gt-inline-fee-table-wrap col:nth-child(2),
#page-fee-settings .gt-inline-fee-table-wrap col:nth-child(2) {
  width: 34% !important;
}

.fee-panel #feeTableUI col:nth-child(3),
#page-fees .gt-inline-fee-table-wrap col:nth-child(3),
#page-fee-settings .gt-inline-fee-table-wrap col:nth-child(3) {
  width: 54px !important;
}

.fee-panel #feeTableUI th,
.fee-panel #feeTableUI td,
#page-fees .gt-inline-fee-table-wrap th,
#page-fees .gt-inline-fee-table-wrap td,
#page-fee-settings .gt-inline-fee-table-wrap th,
#page-fee-settings .gt-inline-fee-table-wrap td {
  box-sizing: border-box;
}

.fee-panel #feeTableUI input,
#page-fees .gt-inline-fee-table-wrap input,
#page-fee-settings .gt-inline-fee-table-wrap input,
#screen-fee-settings .gt-inline-fee-table-wrap input,
.desktop-mobile-page .gt-inline-fee-table-wrap input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.icon {
  width: 40px;
  height: 40px;
  margin-right: 8px;
  color: var(--primary);
  background: #f2eeff;
  border: 1px solid var(--border);
}

.icon.danger {
  color: var(--red);
  background: #fff2f3;
  border-color: #ffd0d4;
}

.referral-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 8px 0 22px;
}

.referral-hero > svg {
  width: 76px;
  height: 76px;
  padding: 18px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.referral-hero strong {
  display: block;
  color: var(--primary);
  font-size: 54px;
  letter-spacing: 0;
}

.details {
  display: grid;
  gap: 12px;
}

.details div,
.phone-list article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #ebe7ff;
}

.details dt {
  color: var(--muted);
}

.details dd {
  margin: 0;
  font-weight: 800;
}

.phone-list article {
  display: grid;
  grid-template-columns: 1fr 150px 1fr auto;
  align-items: center;
}

.phone-list b {
  color: var(--green);
}

.connected-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: #eeeaff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.phone-card-main {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px !important;
  background: #fff;
}

.disconnect-main-phone {
  width: 100%;
  min-height: 42px;
  margin: 10px 0 8px;
  border: 1px solid #ffb8be;
  border-radius: 8px;
  background: #fff7f8;
  color: var(--red);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.disconnect-copy {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e8;
  border: 1px solid #ffd99a;
  color: #7a4a00;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

/* ── New Transaction pages (Cash In / Cash Out) ─────────────────────────── */

.transaction-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.desktop-txn-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
  max-width: 1220px;
}

.desktop-flow-main {
  display: grid;
  gap: 16px;
}

.desktop-flow-side {
  position: sticky;
  top: 0;
  display: grid;
  gap: 14px;
}

.desktop-flow-head {
  margin-bottom: 0;
}

.desktop-flow-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.desktop-flow-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.desktop-flow-card p {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.gt-step-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 30px;
}

.desktop-flow-card label,
.desktop-flow-fields label {
  display: grid;
  grid-template-columns: 22px minmax(150px, 190px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.desktop-flow-card label > svg,
.desktop-flow-fields label > svg {
  color: var(--primary);
}

.desktop-flow-card input,
.desktop-flow-card select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: 0;
}

.desktop-flow-card input:focus,
.desktop-flow-card select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90, 53, 255, 0.12);
}

.desktop-flow-fields {
  display: grid;
  gap: 10px;
}

.desktop-proof-grid,
.desktop-flow-card .gt-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}

.desktop-proof-grid button,
.desktop-flow-card .gt-proof-grid button {
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 3px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5ddff;
  border-radius: 10px;
  background: #fbfaff;
  color: var(--text);
  text-align: left;
}

.desktop-proof-grid button .gt-icon-orb {
  grid-row: 1 / 3;
}

.desktop-proof-grid button strong {
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.15;
}

.desktop-proof-grid button em {
  color: var(--green);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 900;
}

.desktop-proof-preview {
  min-height: 130px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px dashed #d6ccff;
  border-radius: 10px;
  background: #fbfaff;
  color: var(--muted);
  text-align: center;
  overflow: hidden;
}

.desktop-proof-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
}

.desktop-mode-toggle,
.desktop-proof-toggle,
.desktop-flow-card .gt-fee-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1.5px solid #d9d0ff;
  border-radius: 10px;
  background: #f7f4ff;
}

.desktop-mode-toggle button,
.desktop-proof-toggle button,
.desktop-flow-card .gt-fee-mode button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 900;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.desktop-mode-toggle button:hover,
.desktop-proof-toggle button:hover,
.desktop-flow-card .gt-fee-mode button:hover,
.desktop-mode-toggle button:focus-visible,
.desktop-proof-toggle button:focus-visible,
.desktop-flow-card .gt-fee-mode button:focus-visible {
  background: #ede9fe;
  color: var(--primary);
  outline: 2px solid rgba(94, 63, 255, 0.2);
  outline-offset: 1px;
}

.desktop-mode-toggle button.active,
.desktop-proof-toggle button.active,
.desktop-flow-card .gt-fee-mode button.active {
  background: linear-gradient(135deg, #5b32ff, #7c3aed);
  border-color: #4c1dff;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(91, 50, 255, 0.18), 0 12px 24px rgba(94, 63, 255, 0.34);
  transform: translateY(-1px);
}

.desktop-flow-card .gt-quick-guide {
  padding: 13px 14px;
  border-radius: 10px;
  background: #f8f6ff;
  box-shadow: none;
}

.desktop-flow-card .gt-quick-guide b,
.desktop-flow-card .gt-quick-guide small {
  display: block;
}

.desktop-flow-card .gt-quick-guide small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.desktop-flow-card .gt-computation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.desktop-flow-card .gt-computation-summary span {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px solid #e5ddff;
  border-radius: 10px;
  background: #fbfaff;
}

.desktop-flow-card .gt-computation-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.desktop-flow-card .gt-computation-summary strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.desktop-flow-card .gt-computation-guide {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9d0ff;
  border-radius: 10px;
  background: #f8f6ff;
}

.desktop-flow-card .gt-computation-guide b {
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
}

.desktop-flow-card .gt-computation-guide ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-flow-card .gt-computation-guide li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.desktop-flow-card .gt-computation-guide li strong {
  color: var(--text);
  white-space: nowrap;
}

.desktop-flow-card .gt-computation-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.desktop-flow-card .gt-duplicate-btn,
.desktop-save-txn {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.desktop-flow-card .gt-duplicate-btn {
  justify-self: start;
  padding: 0 16px;
  background: #f2efff;
  color: var(--primary);
}

.desktop-flow-card .gt-locked-proof {
  min-height: 76px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px dashed #d6ccff;
  border-radius: 10px;
  background: #fbfaff;
  color: var(--muted);
}

.desktop-save-txn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
  box-shadow: 0 10px 22px rgba(99, 58, 255, 0.16);
}

.desktop-save-txn.green {
  background: var(--green);
}

.desktop-save-txn.red {
  background: var(--red);
}

.desktop-save-txn:hover,
.desktop-save-txn:focus-visible {
  filter: brightness(1.04);
  box-shadow: 0 13px 28px rgba(99, 58, 255, 0.24), 0 0 0 3px rgba(99, 58, 255, 0.12);
}

.desktop-save-txn:active {
  transform: translateY(2px) scale(0.99);
  filter: brightness(0.94);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.18), 0 0 0 4px rgba(99, 58, 255, 0.16);
}

.desktop-step-list {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.gt-save-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

/* Panel tweaks for the form panel */
.txn-form-panel {
  padding: 24px;
}

/* Title row: badge + description */
.txn-form-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.txn-form-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* IN / OUT badge replacing the old plain pill */
.txn-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  width: fit-content;
}

.txn-type-badge svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.8;
}

.txn-type-badge.in {
  background: #e9f9f0;
  color: var(--green);
}

.txn-type-badge.out {
  background: #fff0f1;
  color: var(--red);
}

/* Section divider labels (e.g. "Proof of Transaction", "Customer Details") */
.txn-form-section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 20px 0 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.txn-form-section-label svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
  color: var(--primary);
}

/* Proof capture cards */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

.proof-card {
  min-height: 130px;
  padding: 18px 14px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  background: #faf9ff;
  color: var(--text);
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.proof-card:hover {
  border-color: var(--primary);
  border-style: solid;
  background: #f3f0ff;
  box-shadow: 0 4px 16px rgba(90, 53, 255, 0.10);
}

/* Icon orb inside proof card */
.proof-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eeeaff;
  color: var(--primary);
  display: grid;
  place-items: center;
}

.proof-card-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.proof-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* Thin divider between field groups */
.txn-form-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: #ebe7ff;
  margin: 2px 0;
}

/* Field labels with inline icon */
.desktop-txn-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.txn-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.txn-field > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.txn-field > span svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
  color: var(--primary);
  flex-shrink: 0;
}

.desktop-txn-form input,
.desktop-txn-form select {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 13px;
  background: white;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.desktop-txn-form input:focus,
.desktop-txn-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90, 53, 255, 0.12);
}

/* Amount field with ₱ prefix */
.txn-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.txn-input-prefix {
  position: absolute;
  left: 13px;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  pointer-events: none;
  z-index: 1;
}

.txn-input-wrap input.has-prefix {
  padding-left: 26px;
}

/* Submit button row */
.submit-wide {
  grid-column: 1 / -1;
  min-height: 50px;
  font-size: 15px;
  border-radius: 12px;
}

.txn-submit-btn {
  margin-top: 4px;
}

.danger-save {
  background: linear-gradient(135deg, var(--red), #ff4e58);
}

/* GCash / Bank mode switch */
.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  margin-bottom: 4px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #f4f1ff;
}

.mode-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.mode-switch button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.mode-switch button.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 4px 12px rgba(90, 53, 255, 0.22);
}

/* Proof preview panel — sticky aside */
.proof-preview-panel {
  position: sticky;
  top: 20px;
}

.proof-preview-panel h2 {
  font-size: 16px;
  margin-bottom: 14px;
}

.proof-preview {
  min-height: 280px;
  border: 1.5px dashed #c2b6ff;
  border-radius: 12px;
  background: #faf9ff;
  display: grid;
  place-items: center;
  place-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  overflow: hidden;
  margin-bottom: 14px;
}

.proof-preview strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.proof-preview p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Empty-state icon orb in preview */
.proof-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eeeaff;
  color: var(--primary);
  display: grid;
  place-items: center;
}

.proof-empty-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.proof-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
}

/* Proof note (bottom of preview panel) */
.proof-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f1ff;
  border: 1px solid #e0d9ff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.proof-note svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.camera-dialog {
  width: min(880px, calc(100vw - 28px));
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: transparent;
}

.camera-dialog::backdrop {
  background: rgba(17, 19, 49, 0.64);
  backdrop-filter: blur(7px);
}

.camera-box {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(124, 96, 255, 0.22);
  background:
    radial-gradient(circle at top left, rgba(118, 80, 255, 0.14), transparent 34%),
    #ffffff;
  box-shadow: 0 28px 80px rgba(26, 20, 77, 0.32);
}

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

.camera-head h2 {
  margin: 4px 0 3px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.camera-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

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

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

.camera-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(124, 96, 255, 0.18);
  border-radius: 14px;
  background: #f8f5ff;
  color: var(--primary);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.camera-close:hover {
  transform: translateY(-1px);
  background: #efe9ff;
  box-shadow: 0 10px 22px rgba(90, 53, 255, 0.14);
}

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

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

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

.camera-device-chip {
  min-height: 42px;
  border: 1.5px solid #ded6ff;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fbfaff;
  color: #34225f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.camera-device-chip span {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.camera-device-chip.active {
  color: var(--primary);
}

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

.camera-preview-shell {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent),
    #09091a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  margin-bottom: 14px;
}

#desktopCameraVideo {
  width: 100%;
  max-height: min(58vh, 520px);
  min-height: 300px;
  background: #09091a;
  border-radius: 0;
  object-fit: contain;
  display: block;
}

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

.camera-secondary,
.camera-primary {
  min-height: 48px;
  border-radius: 14px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

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

.camera-primary {
  background: linear-gradient(135deg, #5a35ff, #8b5cf6);
  color: #fff;
  box-shadow: 0 14px 28px rgba(90, 53, 255, 0.25);
}

.camera-secondary:hover,
.camera-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.camera-box .proof-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

@media (max-width: 640px) {
  .camera-dialog {
    width: calc(100vw - 18px);
  }

  .camera-box {
    padding: 14px;
    border-radius: 18px;
  }

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

  #desktopCameraVideo {
    min-height: 240px;
    max-height: 48vh;
  }

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

  .camera-device-chip span {
    max-width: 180px;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .brand span,
  .side-nav button {
    font-size: 0;
  }

  .side-nav button {
    justify-content: center;
  }

  .side-card {
    display: none;
  }

  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .main {
    height: auto;
    padding: 18px;
  }

  .topbar,
  .panel-head {
    display: grid;
  }

  .hero-grid,
  .action-row,
  .mini-stats,
  .dashboard-cards,
  .account-grid,
  .toolbar,
  .transaction-form-grid,
  .proof-grid,
  .desktop-txn-form {
    grid-template-columns: 1fr;
  }

  .transaction {
    grid-template-columns: 48px 44px 1fr;
  }

  .transaction .amount {
    grid-column: 3;
    text-align: left;
  }
}

/* ── Fee Records Page ──────────────────────────────────────────── */
.fee-records-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.fee-calendar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
}

.fee-month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fee-month-row strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.fee-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.fee-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.fee-calendar-grid span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  min-height: 52px;       /* taller to fit number + fee label */
  padding: 4px 2px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s;
}

.fee-calendar-grid span:hover {
  background: #ede9fe;
}

.fee-calendar-grid span.today {
  font-weight: 700;
  color: var(--primary);
}

.fee-calendar-grid span.selected {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.fee-calendar-grid span.muted {
  color: var(--border);
  cursor: default;
  min-height: 52px;
}
.fee-calendar-grid span.muted:hover { background: none; }

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

/* Subtle dot on has-data days (top-right corner) */
.fee-calendar-grid span.has-data::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #16a34a;
}
.fee-calendar-grid span.selected::after {
  background: rgba(255,255,255,0.7);
}

/* ── Inline expansion row (desktop daily records) ── */
.fee-row-expansion {
  background: #faf8ff;
  border-bottom: 1px solid var(--border);
}
.fee-expansion-empty {
  padding: 14px 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.fee-expansion-list {
  display: grid;
  gap: 0;
}

/* Chevron rotation when row is expanded */
.fee-records-list article[aria-expanded="true"] .fee-chevron {
  transform: rotate(90deg);
  transition: transform 0.2s;
}
.fee-records-list article .fee-chevron {
  transition: transform 0.2s;
}

.fee-day-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fee-day-detail h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
}

.fee-day-detail h4 {
  margin: 18px 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fee-day-stats {
  display: flex;
  gap: 20px;
}

.fee-day-stats span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fee-day-stats small {
  font-size: 12px;
  color: var(--muted);
}

.fee-day-stats strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.fee-selected-transactions {
  display: grid;
  gap: 8px;
}

.fee-selected-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 110px 88px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.fee-selected-row:hover {
  background: #faf8ff;
}

.fee-selected-row .type {
  width: 40px;
  min-height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.fee-selected-row .type.in {
  color: var(--green);
  background: #eaf8ef;
}

.fee-selected-row .type.out {
  color: var(--red);
  background: #fff0f0;
}

.fee-selected-row b,
.fee-selected-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fee-selected-row b {
  font-size: 13px;
  color: var(--text);
}

.fee-selected-row small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.fee-selected-row strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  text-align: right;
}

.fee-selected-row em {
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
}

.section-sub-head {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fee-records-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.fee-record-head {
  display: grid;
  grid-template-columns: 1fr 160px 120px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.fee-records-list article {
  display: grid;
  grid-template-columns: 24px 1fr 160px 120px 24px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.fee-records-list article:last-child {
  border-bottom: none;
}

.fee-records-list article:hover {
  background: #f8f5ff;
}

.fee-records-list article svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.fee-records-list article b {
  font-size: 13px;
  font-weight: 600;
}

.fee-records-list article strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.fee-records-list article em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.fee-records-list .muted {
  padding: 20px 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.desktop-mobile-page {
  width: 100%;
  max-width: none;
  --gt-text: var(--text);
  --gt-muted: var(--muted);
  --gt-border: var(--border);
  --gt-primary: var(--primary);
  --gt-green: var(--green);
  --gt-red: var(--red);
  --gt-soft: #f7f4ff;
}

.desktop-mobile-page .gt-card,
.desktop-mobile-page .gt-settings-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.desktop-settings-page {
  display: grid;
  gap: 20px;
  max-width: 980px;
}

.desktop-settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.desktop-mobile-page .gt-settings-summary {
  display: block;
  padding: 24px 26px;
}

.desktop-mobile-page .gt-settings-summary b {
  display: block;
  margin-right: 0;
  margin-bottom: 5px;
  font-size: 19px;
}

.desktop-mobile-page .gt-settings-summary small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.desktop-mobile-page .gt-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #b7efcf;
  border-radius: 10px;
  background: #eefbf3;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.desktop-settings-page > .desktop-settings-sync {
  justify-self: start;
}

.desktop-mobile-page .gt-settings-group {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.desktop-mobile-page .gt-settings-group h2 {
  margin: 0 0 10px 6px;
  font-size: 24px;
  line-height: 1.15;
}

.desktop-mobile-page .gt-settings-group > button {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  grid-template-rows: auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.desktop-mobile-page .gt-settings-group > button:last-child {
  border-bottom: 1px solid var(--border);
}

.desktop-mobile-page .gt-settings-group > button > span:first-child,
.desktop-mobile-page .gt-icon-orb,
.desktop-mobile-page .gt-ref-gift {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: #eeeaff;
  color: var(--primary);
}

.desktop-mobile-page .gt-settings-group > button > span:first-child,
.desktop-mobile-page .gt-icon-orb {
  width: 46px;
  height: 46px;
}

.desktop-mobile-page .gt-settings-group > button > span:first-child {
  grid-column: 1;
  grid-row: 1 / 3;
}

.desktop-mobile-page .gt-settings-group b {
  display: block;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 15px;
}

.desktop-mobile-page .gt-settings-group small {
  display: block;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.desktop-mobile-page .gt-settings-group > button > svg:last-child {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  color: var(--muted);
}

.desktop-mobile-page .gt-settings-group .danger b,
.desktop-mobile-page .gt-settings-group .danger svg,
.desktop-mobile-page .gt-disconnect-main {
  color: var(--red);
}

.desktop-privacy-page {
  max-width: 980px;
}

.desktop-privacy-page .gt-privacy-policy {
  display: grid;
  gap: 16px;
  padding: 28px;
  margin: 0;
}

.desktop-privacy-page .gt-policy-hero {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.desktop-privacy-page .gt-policy-hero .gt-icon-orb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.desktop-privacy-page .gt-policy-hero h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.desktop-privacy-page .gt-policy-updated {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.desktop-privacy-page .gt-privacy-policy section {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfaff;
}

.desktop-privacy-page .gt-privacy-policy h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text);
}

.desktop-privacy-page .gt-privacy-policy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.desktop-privacy-page .gt-privacy-policy .gt-button {
  width: fit-content;
  min-width: 190px;
  text-decoration: none;
}

.desktop-referral-page {
  display: grid;
  gap: 18px;
}

.desktop-referral-page .gt-referral-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px 26px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
}

.desktop-referral-page .gt-ref-gift {
  width: 86px;
  height: 86px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.desktop-referral-page .gt-referral-hero p,
.desktop-referral-page .gt-referral-hero small,
.desktop-mobile-page .gt-payout-card p,
.desktop-mobile-page .gt-payout-card small {
  margin: 0;
  color: var(--muted);
}

.desktop-referral-page .gt-referral-hero strong[data-referral-code] {
  display: block;
  color: var(--primary);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: .04em;
  word-break: break-word;
}

.desktop-referral-page .gt-referral-hero .gt-ref-actions,
.desktop-referral-page .gt-referral-hero .gt-referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.desktop-referral-page .gt-referral-hero > .gt-button,
.desktop-referral-page .gt-referral-hero button.gt-button,
.desktop-referral-page .gt-referral-hero .gt-button {
  width: auto;
  min-height: 48px;
  padding-inline: 18px;
  align-self: start;
  white-space: nowrap;
}

.desktop-referral-page .gt-ref-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #eee9ff;
}

.desktop-referral-page .gt-ref-stat-item {
  min-height: 116px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas: "icon label" "icon value";
  align-items: center;
  gap: 5px 14px;
  padding: 16px;
  border: 1px solid #e5ddff;
  border-radius: 12px;
  color: var(--primary);
  text-align: left;
  background: #fbfaff;
}

.desktop-referral-page .gt-ref-stat-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
}

.desktop-referral-page .gt-ref-stats small {
  grid-area: label;
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.desktop-referral-page .gt-ref-stats b {
  grid-area: value;
  display: block;
  margin: 0;
  color: var(--primary);
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.desktop-referral-page .gt-referral-hero > .gt-button {
  min-height: 46px;
  align-self: end;
  min-width: 0;
  white-space: nowrap;
}

.desktop-referral-page .gt-referral-hero > .gt-button-secondary {
  grid-column: 2;
}

.desktop-referral-page .gt-referral-hero > .gt-button-primary {
  grid-column: 2;
}

.desktop-referral-page .gt-referral-hero > .gt-button-primary,
.desktop-referral-page .gt-ref-code-actions .gt-button-primary,
#page-referral .gt-ref-code-actions .gt-button-primary {
  display: none !important;
}

.desktop-referral-page .gt-referred-stores,
#page-referral .gt-referred-stores {
  display: none !important;
}

.desktop-mobile-page .gt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 900;
}

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

.desktop-mobile-page .gt-button-secondary {
  background: #fff;
  color: var(--primary);
}

.desktop-mobile-page .gt-referred-stores,
.desktop-mobile-page .gt-payout-card,
.desktop-mobile-page .gt-payout-history,
.desktop-mobile-page .gt-settings-card,
.desktop-mobile-page .gt-delete-warning,
.desktop-mobile-page .gt-delete-form,
.desktop-mobile-page .gt-faq-list {
  padding: 20px;
}

.desktop-mobile-page .gt-referred-stores h2,
.desktop-mobile-page .gt-payout-history h2,
.desktop-mobile-page .gt-settings-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.desktop-mobile-page .gt-referred-stores > p,
.desktop-mobile-page .gt-empty-state {
  color: var(--muted);
}

.desktop-mobile-page .gt-referred-stores article,
.desktop-mobile-page .gt-payout-history article,
.desktop-mobile-page .gt-phones-card article:not(.gt-phone-card) {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 20px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee9ff;
}

.desktop-mobile-page .gt-referred-stores article:last-child,
.desktop-mobile-page .gt-payout-history article:last-child,
.desktop-mobile-page .gt-phones-card article:not(.gt-phone-card):last-child {
  border-bottom: 0;
}

.desktop-mobile-page .gt-referred-stores small,
.desktop-mobile-page .gt-payout-history small,
.desktop-mobile-page .gt-phones-card article:not(.gt-phone-card) small {
  color: var(--muted);
  line-height: 1.5;
}

.desktop-mobile-page .gt-referred-stores em,
.desktop-mobile-page .gt-payout-history em,
.desktop-mobile-page .gt-phones-card article:not(.gt-phone-card) em {
  padding: 6px 10px;
  border-radius: 8px;
  background: #e9f9ef;
  color: var(--green);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.desktop-mobile-page .gt-referred-stores em.pending,
.desktop-mobile-page .gt-payout-history em.pending,
.desktop-mobile-page .gt-phones-card article:not(.gt-phone-card) em.pending {
  background: #fff5df;
  color: var(--orange);
}

.desktop-mobile-page .gt-payout-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.desktop-mobile-page .gt-payout-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.desktop-mobile-page .gt-payout-card > div small {
  display: block;
  max-width: 460px;
  line-height: 1.45;
}

.desktop-mobile-page .gt-payout-card strong,
.desktop-mobile-page .gt-payout-history strong {
  color: var(--primary);
  font-size: 26px;
}

.desktop-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.desktop-detail-head h2 {
  margin: 0;
  font-size: 28px;
}

.desktop-detail-head .gt-sync {
  margin-left: auto;
}

.desktop-transaction-detail {
  max-width: 860px;
}

.desktop-transaction-detail .desktop-detail-head {
  align-items: center;
}

.desktop-transaction-detail .gt-proof-detail {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  max-width: 100%;
}

.desktop-transaction-detail .gt-proof-detail h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.desktop-transaction-detail .gt-proof-photo {
  min-height: 280px;
  border: 1.5px dashed #d8ccff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: #fbfaff;
  color: var(--primary);
  font-weight: 900;
  text-align: center;
}

.desktop-transaction-detail .gt-proof-photo.release {
  min-height: 280px;
}

.desktop-transaction-detail .gt-proof-photo svg {
  width: 42px;
  height: 42px;
  stroke-width: 2.2;
}

.desktop-transaction-detail .gt-proof-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  border-radius: inherit;
  background: #09091a;
}

.desktop-transaction-detail .gt-proof-detail dl {
  margin: 0;
  display: grid;
  gap: 0;
}

.desktop-transaction-detail .gt-proof-detail dl div {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(240px, 1.2fr);
  gap: 18px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #ece8fb;
}

.desktop-transaction-detail .gt-proof-detail dt {
  color: var(--muted);
  font-weight: 900;
}

.desktop-transaction-detail .gt-proof-detail dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .desktop-transaction-detail .gt-proof-detail {
    grid-template-columns: 1fr 1fr;
  }

  .desktop-transaction-detail .gt-proof-detail h2,
  .desktop-transaction-detail .gt-proof-detail dl {
    grid-column: 1 / -1;
  }
}

.desktop-mobile-page .gt-store-profile p {
  display: grid;
  grid-template-columns: 24px 180px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #eee9ff;
}

.desktop-mobile-page .gt-store-profile p:last-child {
  border-bottom: 0;
}

.desktop-mobile-page .gt-connected-records > p {
  margin: 0;
  padding: 8px 0 16px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

#page-records .desktop-mobile-page,
#page-store-profile .desktop-mobile-page,
#page-permission .desktop-mobile-page,
#page-switch-role .desktop-mobile-page,
#page-faq .desktop-mobile-page,
#page-delete .desktop-mobile-page {
  max-width: 1120px;
  display: grid;
  gap: 18px;
}

.desktop-detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.desktop-detail-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
}

.desktop-detail-head .ghost {
  min-width: 132px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-weight: 900;
}

.desktop-mobile-page .gt-records-status-card,
.desktop-mobile-page .gt-records-what-card,
.desktop-mobile-page .gt-records-actions-card {
  padding: 22px;
}

.desktop-mobile-page .gt-records-status-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.desktop-mobile-page .gt-records-status-text b,
.desktop-mobile-page .gt-records-item b,
.desktop-mobile-page .gt-records-action-btn b {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.desktop-mobile-page .gt-records-status-text small,
.desktop-mobile-page .gt-records-item small,
.desktop-mobile-page .gt-records-action-btn small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.desktop-mobile-page .gt-records-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #fff8e6;
  color: #9a5a00;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.desktop-mobile-page .gt-records-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.desktop-mobile-page .gt-records-section-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.desktop-mobile-page .gt-records-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.desktop-mobile-page .gt-records-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 14px;
  border: 1px solid #eee9ff;
  border-radius: 10px;
  background: #fbfaff;
}

.desktop-mobile-page .gt-records-item-icon,
.desktop-mobile-page .gt-records-action-icon,
.desktop-mobile-page .gt-drive-warning-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #e6dcff;
  background: #fff;
  color: var(--primary);
  flex-shrink: 0;
}

.desktop-mobile-page .gt-records-item-icon svg,
.desktop-mobile-page .gt-records-action-icon svg,
.desktop-mobile-page .gt-drive-warning-icon svg {
  width: 20px;
  height: 20px;
}

.desktop-mobile-page .gt-drive-warning-block {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #f4c067;
  border-radius: 12px;
  background: #fff8eb;
  color: #9a5a00;
}

.desktop-mobile-page .gt-drive-warning-block b {
  display: block;
  margin-bottom: 4px;
  color: #8a4a00;
  font-size: 15px;
  font-weight: 900;
}

.desktop-mobile-page .gt-drive-warning-block p {
  margin: 0;
  color: #9a5a00;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.desktop-mobile-page .gt-drive-warning-icon {
  border-color: #f7d28d;
  background: #fff1d6;
  color: #c26a00;
}

.desktop-mobile-page .gt-records-actions-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
}

.desktop-mobile-page .gt-records-actions-card .gt-records-section-title {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.desktop-mobile-page .gt-records-action-btn {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid #e6dcff;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.desktop-mobile-page .gt-records-action-btn > svg:last-child {
  color: var(--muted);
  justify-self: end;
}

.desktop-mobile-page .gt-records-action-btn:hover {
  border-color: #cbbcff;
  background: #fbfaff;
}

.desktop-mobile-page .gt-records-action-primary {
  border-color: #cbbcff;
  background: #f6f2ff;
}

.desktop-mobile-page .gt-records-action-primary .gt-records-action-icon {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}

.desktop-mobile-page .gt-connected-records h2 em,
.desktop-mobile-page .gt-phones-card h2 em {
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 8px;
  background: #e9f9ef;
  color: var(--green);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.desktop-mobile-page .gt-drive-warning,
.desktop-mobile-page .gt-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin: 16px 0;
  border: 1px solid #ffd089;
  border-radius: 10px;
  background: #fff8eb;
  color: #9a5a00;
  font-weight: 800;
}

.desktop-mobile-page .gt-drive-warning.gt-drive-warning-block {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 0;
  padding: 18px 20px;
  border-radius: 12px;
}

.desktop-mobile-page .gt-disconnect-main,
.desktop-mobile-page .gt-dashed-button {
  width: 100%;
  min-height: 44px;
  margin: 12px 0;
  border-radius: 8px;
  font-weight: 900;
}

.desktop-mobile-page .gt-disconnect-main {
  border: 1px solid #ffc4c8;
  background: #fff8f9;
}

.desktop-mobile-page .gt-dashed-button {
  border: 1px dashed var(--primary);
  background: #f7f3ff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.desktop-mobile-page .gt-connected-phone-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desktop-mobile-page .gt-phones-card-header {
  margin-bottom: 16px;
}

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

.desktop-mobile-page .gt-phones-card-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.desktop-mobile-page .gt-phones-connected-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eeeaff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  white-space: nowrap;
}

.desktop-mobile-page .gt-phones-card-header > p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.desktop-mobile-page .gt-icon-orb.gt-icon-orb--phone {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
}

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

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

.desktop-mobile-page .gt-icon-orb.amber {
  background: #fff4d6;
  color: #b45309;
}

.desktop-mobile-page .gt-phones-card .gt-phone-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 16px !important;
  border: 1.5px solid #ede8ff !important;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(61, 45, 134, 0.06);
  margin: 0;
}

.desktop-mobile-page .gt-phone-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

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

.desktop-mobile-page .gt-phone-card-name b {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.desktop-mobile-page .gt-phone-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  line-height: 1.2;
  white-space: nowrap;
}

.desktop-mobile-page .gt-phone-badge.active { background: #e9f9ef; color: var(--green); }
.desktop-mobile-page .gt-phone-badge.pending { background: #f1eff8; color: var(--muted); }
.desktop-mobile-page .gt-phone-badge.android { background: #e8eeff; color: #3b5bff; }
.desktop-mobile-page .gt-phone-badge.iphone-manual { background: #fff4d6; color: #92400e; }

.desktop-mobile-page .gt-phone-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 10px;
  align-self: flex-start;
  margin-top: 4px;
}

.desktop-mobile-page .gt-phone-status-dot.live {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

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

.desktop-mobile-page .gt-phone-card-body {
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee9ff;
}

.desktop-mobile-page .gt-phone-card-body span {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

.desktop-mobile-page .gt-phone-card-body small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-mobile-page .gt-phone-info-line,
.desktop-mobile-page .gt-phone-slot-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
}

.desktop-mobile-page .gt-phone-info-line {
  color: var(--muted);
}

.desktop-mobile-page .gt-phone-slot-warning {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fff4d6;
  color: #92400e;
}

.desktop-mobile-page .gt-phone-info-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.desktop-mobile-page .gt-phone-card-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.desktop-mobile-page .gt-phone-edit-btn,
.desktop-mobile-page .gt-phone-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

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

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

.desktop-mobile-page .gt-phone-disconnect-btn {
  background: #f7f3ff;
  color: #6d28d9;
  border-color: #e8ddff;
}

.desktop-mobile-page .gt-phone-edit-btn svg,
.desktop-mobile-page .gt-phone-remove-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.desktop-mobile-page .gt-phones-plan-note {
  margin-top: 12px !important;
  padding: 10px 12px !important;
  border: 1px solid #e8ddff !important;
  border-radius: 10px !important;
  background: #f8f6ff !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.desktop-mobile-page .gt-permission-list {
  display: grid;
  gap: 14px;
}

.desktop-mobile-page .gt-permission-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.desktop-mobile-page .gt-permission-list article b,
.desktop-mobile-page .gt-permission-list article small {
  display: block;
}

.desktop-mobile-page .gt-permission-list article b {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.desktop-mobile-page .gt-permission-list article small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.desktop-mobile-page .gt-permission-list em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f7f4ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.desktop-mobile-page .gt-permission-list em svg {
  width: 16px;
  height: 16px;
}

.desktop-mobile-page .gt-permission-list article > button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d8ceff;
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.desktop-mobile-page .gt-permission-list em.allowed {
  color: var(--green);
}

.desktop-mobile-page .gt-permission-list em.required {
  color: var(--red);
}

.desktop-mobile-page .gt-permission-list em.optional {
  color: var(--orange);
}

.desktop-mobile-page .gt-role-options {
  display: grid;
  gap: 14px;
}

.desktop-mobile-page .gt-role-options button,
.desktop-mobile-page .gt-current-role {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.desktop-mobile-page .gt-current-role {
  margin-bottom: 20px;
}

.desktop-mobile-page .gt-current-role p,
.desktop-mobile-page .gt-current-role h1,
.desktop-mobile-page .gt-current-role b,
.desktop-mobile-page .gt-current-role small {
  display: block;
  margin: 0;
  line-height: 1.35;
}

.desktop-mobile-page .gt-current-role h1 {
  margin: 4px 0 8px;
  color: var(--primary);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.05;
}

.desktop-mobile-page .gt-current-role b {
  margin-bottom: 8px;
}

.desktop-mobile-page .gt-role-art {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 18px;
  background: #eeeaff;
  color: var(--primary);
}

.desktop-mobile-page .gt-role-art > svg:first-child {
  width: 34px;
  height: 34px;
}

.desktop-mobile-page .gt-role-art > svg:last-child {
  width: 22px;
  height: 22px;
  position: absolute;
  right: -4px;
  bottom: -4px;
  padding: 3px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.desktop-mobile-page .gt-role-options button {
  grid-template-columns: 24px 70px minmax(0, 1fr);
}

.desktop-mobile-page .gt-role-options button > svg:first-child {
  grid-column: 1;
}

.desktop-mobile-page .gt-role-options .gt-role-art {
  grid-column: 2;
}

.desktop-mobile-page .gt-role-options button > span:last-child {
  grid-column: 3;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.desktop-mobile-page .gt-role-options button b,
.desktop-mobile-page .gt-role-options button small,
.desktop-mobile-page .gt-role-options button em,
.desktop-mobile-page .gt-phones-card article:not(.gt-phone-card) b,
.desktop-mobile-page .gt-phones-card article:not(.gt-phone-card) small {
  display: block;
  margin: 0;
  line-height: 1.35;
}

.desktop-mobile-page .gt-role-options button em {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 8px;
  background: #e9f9ef;
  color: var(--green);
  font-style: normal;
  font-weight: 900;
  white-space: normal;
}

.desktop-mobile-page .gt-role-options button.active {
  border-color: var(--primary);
}

.desktop-wallet-page {
  display: grid;
  gap: 18px;
}

.desktop-wallet-page .panel-head {
  margin: 0;
}

.desktop-wallet-accounts,
.desktop-mobile-page .gt-wallet-accounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.desktop-mobile-page .gt-wallet-accounts article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.desktop-mobile-page .gt-wallet-accounts article em {
  display: inline-block;
  width: max-content;
  padding: 4px 8px;
  border-radius: 7px;
  background: #eeeaff;
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
}

.desktop-mobile-page .gt-wallet-accounts article b,
.desktop-mobile-page .gt-wallet-accounts article small,
.desktop-mobile-page .gt-wallet-accounts article strong small {
  display: block;
}

.desktop-mobile-page .gt-wallet-accounts article strong {
  color: var(--primary);
  font-size: 24px;
  text-align: right;
  white-space: nowrap;
}

.desktop-mobile-page .gt-wallet-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
}

.desktop-mobile-page .gt-wallet-edit svg {
  width: 15px;
  height: 15px;
}

.desktop-mobile-page .gt-balance-list article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.desktop-mobile-page .gt-balance-list article b,
.desktop-mobile-page .gt-balance-list article small {
  display: block;
}

.desktop-mobile-page .gt-balance-list article strong {
  color: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

.desktop-mobile-page .gt-balance-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
}

.desktop-mobile-page .gt-balance-form h2 {
  grid-column: 1 / -1;
}

.desktop-mobile-page .gt-balance-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.desktop-mobile-page .gt-balance-form input,
.desktop-mobile-page .gt-balance-form select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.desktop-mobile-page .gt-balance-list {
  padding: 18px;
}

.desktop-mobile-page .gt-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 16px;
}

.desktop-mobile-page .gt-search-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.desktop-mobile-page .gt-search-row input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.desktop-mobile-page .gt-search-row button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.desktop-mobile-page .gt-faq-list {
  display: grid;
  gap: 16px;
}

.desktop-mobile-page .gt-faq-list section {
  display: grid;
  gap: 8px;
}

.desktop-mobile-page .gt-faq-list h2,
.desktop-mobile-page .gt-faq-list h3 {
  margin: 10px 0 2px;
  color: var(--primary);
  font-size: 17px;
  font-weight: 900;
}

.desktop-mobile-page .gt-faq-list article {
  border: 1px solid #eee9ff;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.desktop-mobile-page .gt-faq-question {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 900;
}

.desktop-mobile-page .gt-faq-list article > p {
  display: none;
  margin: 0;
  padding: 0 16px 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.desktop-mobile-page .gt-delete-warning {
  border-color: #ffb8bf;
  background: #fff7f7;
  color: var(--red);
}

.desktop-mobile-page .gt-delete-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.desktop-mobile-page .gt-delete-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.desktop-mobile-page .gt-delete-form textarea,
.desktop-mobile-page .gt-delete-form input {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.desktop-mobile-page .gt-delete-form textarea {
  min-height: 110px;
  resize: vertical;
}

.desktop-mobile-page .gt-delete-form > div {
  display: flex;
  gap: 12px;
}

@media (min-width: 1025px) {
  .desktop-flow-fields .gt-date-time-fields {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }

  .desktop-flow-fields .gt-time-selects select {
    grid-column: auto !important;
    grid-row: auto !important;
    height: 46px;
    min-height: 46px !important;
    font-size: 14px;
  }

  .desktop-flow-fields label .gt-time-selects {
    display: grid !important;
    grid-template-columns: minmax(72px, 1fr) auto minmax(80px, 1fr) minmax(82px, 0.85fr) !important;
    grid-column: 3 !important;
    grid-row: auto !important;
    gap: 7px !important;
  }

  .desktop-flow-card .gt-ocr-progress {
    max-width: 100%;
    padding: 13px 14px;
  }
}

@media (max-width: 900px) {
  .fee-records-layout {
    grid-template-columns: 1fr;
  }

  .desktop-txn-flow {
    grid-template-columns: 1fr;
  }

  .desktop-flow-side {
    position: static;
  }

  .desktop-flow-card label,
  .desktop-flow-fields label {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .desktop-flow-card label > input,
  .desktop-flow-card label > select,
  .desktop-flow-fields label > input {
    grid-column: 1 / -1;
  }

  .desktop-proof-grid,
  .desktop-flow-card .gt-proof-grid,
  .desktop-flow-card .gt-computation-summary {
    grid-template-columns: 1fr;
  }

  .fee-selected-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .fee-selected-row strong,
  .fee-selected-row em {
    grid-column: 2;
    text-align: left;
  }

  .desktop-settings-grid,
  .desktop-referral-page .gt-referral-hero,
  .desktop-referral-page .gt-ref-stats {
    grid-template-columns: 1fr;
  }

  .desktop-referral-page .gt-referral-hero > .gt-button-secondary,
  .desktop-referral-page .gt-referral-hero > .gt-button-primary {
    grid-column: 1;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   Desktop Transaction Detail page — mirrors mobile screen-txn-detail.
   ────────────────────────────────────────────────────────────────────── */
#page-txn-detail .desktop-mobile-page {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

#page-txn-detail .desktop-detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
#page-txn-detail .desktop-detail-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
#page-txn-detail .desktop-detail-head .gt-table-type {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
#page-txn-detail .desktop-detail-head .gt-table-type.in  {
  color: var(--gt-green);
  background: #e9f9ef;
}
#page-txn-detail .desktop-detail-head .gt-table-type.out {
  color: var(--gt-red);
  background: #ffe9ea;
}

#page-txn-detail .gt-proof-detail {
  padding: 26px;
  display: grid;
  gap: 18px;
}

/* 2-column photos at desktop widths */
#page-txn-detail .gt-proof-detail .gt-proof-photo {
  min-height: 340px;
  border: 1.5px dashed #ddd5ff;
  border-radius: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--gt-primary, #5a35ff);
  background: #fbfaff;
  font-weight: 800;
  overflow: hidden;
}
#page-txn-detail .gt-proof-detail .gt-proof-photo svg {
  width: 52px;
  height: 52px;
}
#page-txn-detail .gt-proof-detail .gt-proof-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #09091a;
}

#page-txn-detail .gt-proof-detail dl {
  margin: 0;
  display: grid;
  gap: 0;
  padding: 0;
}
#page-txn-detail .gt-proof-detail dl div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #ece8fb;
  align-items: center;
}
#page-txn-detail .gt-proof-detail dl div:last-child {
  border-bottom: 0;
}
#page-txn-detail .gt-proof-detail dt {
  margin: 0;
  color: var(--gt-muted, #6d6a8f);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
#page-txn-detail .gt-proof-detail dd {
  margin: 0;
  text-align: left;
  font-weight: 800;
  font-size: 15px;
  color: var(--gt-text, #0f1230);
  word-break: break-word;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
/* Reference # gets the monospace style most prominently */
#page-txn-detail .gt-proof-detail dd[data-txn-field="ref"] {
  letter-spacing: 0.04em;
  color: var(--gt-primary, #5a35ff);
}

/* Two-up photo layout at wide desktop sizes */
@media (min-width: 900px) {
  #page-txn-detail .gt-proof-detail {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "gcash release"
      "fields fields";
  }
  #page-txn-detail .gt-proof-detail .gt-proof-photo:not(.release) { grid-area: gcash; }
  #page-txn-detail .gt-proof-detail .gt-proof-photo.release       { grid-area: release; }
  #page-txn-detail .gt-proof-detail dl { grid-area: fields; }
}

/* Back arrow button on detail head */
#page-txn-detail .desktop-detail-head .ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, #ddd5ff);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: var(--gt-primary, #5a35ff);
}
#page-txn-detail .desktop-detail-head .ghost:hover {
  background: var(--gt-soft, #f2efff);
}

/* ──────────────────────────────────────────────────────────────────────
   Sidebar Account block — Gmail + Drive folder shortcut
   ────────────────────────────────────────────────────────────────────── */
.side-account {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border, #ddd5ff);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(57, 42, 130, 0.06);
  display: grid;
  gap: 10px;
}
.side-account[hidden] { display: none; }

.side-account-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.side-account-link {
  cursor: pointer;
  padding-top: 8px;
  border-top: 1px dashed #ece8fb;
}
.side-account-link:hover strong {
  color: var(--gt-primary, #5a35ff);
  text-decoration: underline;
}

.side-account-icon {
  width: 18px;
  height: 18px;
  color: var(--gt-primary, #5a35ff);
}

.side-account-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.side-account-text small {
  font-size: 10.5px;
  color: var(--gt-muted, #6d6a8f);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.side-account-text strong {
  font-size: 13px;
  color: var(--gt-text, #0f1230);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Use the same type and readable two-line values on desktop detail pages. */
html,
body,
button,
input,
select,
textarea,
dialog,
table,
th,
td,
dt,
dd,
code,
pre {
  font-family: "Poppins", sans-serif !important;
}

#page-txn-detail [data-txn-field="customer"],
#page-txn-detail [data-txn-field="account"],
#page-txn-detail [data-txn-field="gcashTime"],
#page-txn-detail [data-txn-field="claimed"] {
  white-space: pre-line !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  line-height: 1.45 !important;
}
/* Connected Phones: match the compact mobile card design on desktop/tablet. */
.desktop-connected-phones-panel .gt-dashboard-reader-list,
.desktop-mobile-page .gt-connected-phone-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

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

.desktop-connected-phones-panel .gt-connected-phone-card,
.desktop-mobile-page .gt-phones-card .gt-phone-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 16px !important;
  min-height: 110px !important;
  padding: 24px 30px !important;
  border: 1.5px solid #e6dcff !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  position: relative !important;
}

.desktop-connected-phones-panel .gt-dash-reader-info,
.desktop-mobile-page .gt-phones-card .gt-phone-card-top,
.desktop-mobile-page .gt-phones-card .gt-phone-card-body {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.desktop-mobile-page .gt-phones-card .gt-phone-card-top {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.desktop-mobile-page .gt-phones-card .gt-phone-card-body {
  grid-column: 1 !important;
  grid-row: 1 !important;
  padding-top: 19px !important;
  padding-left: 12px !important;
  padding-right: 110px !important;
}

.desktop-mobile-page .gt-phones-card .gt-phone-card-name {
  max-width: calc(100% - 110px) !important;
  padding-left: 12px !important;
}

.desktop-connected-phones-panel .gt-dash-detail-title,
.desktop-mobile-page .gt-phones-card .gt-phone-card-name b {
  display: block !important;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

.desktop-connected-phones-panel .gt-dash-detail:not(.gt-dash-detail-title),
.desktop-mobile-page .gt-phones-card .gt-phone-card-body span,
.desktop-mobile-page .gt-phones-card .gt-phone-card-body small {
  display: block !important;
  margin-top: 2px !important;
  color: #6f6a95 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
}

.desktop-connected-phones-panel .gt-dash-detail:not(.gt-dash-detail-title) {
  padding-left: 12px !important;
}

.desktop-connected-phones-panel .gt-dash-reader-badge,
.desktop-mobile-page .gt-phones-card .gt-phone-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 82px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 5px 13px !important;
  border: 1px solid #a7f3c6 !important;
  border-radius: 999px !important;
  background: #dcfce7 !important;
  color: #049857 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.desktop-mobile-page .gt-phones-card .gt-phone-badge {
  position: absolute !important;
  top: 50% !important;
  right: 30px !important;
  transform: translateY(-50%) !important;
}

.desktop-mobile-page .gt-phones-card .gt-phone-card-footer,
.desktop-mobile-page .gt-phones-card .gt-phone-status-dot,
.desktop-mobile-page .gt-phones-card .gt-phone-info-line,
.desktop-mobile-page .gt-phones-card .gt-phone-slot-warning {
  display: none !important;
}

/* Transaction saving and duplicate-check progress */
.gt-saving-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 20, 45, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.gt-saving-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.gt-saving-card {
  width: min(380px, 100%);
  border: 1px solid #ddd6fe;
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(49, 35, 130, 0.22);
}

.gt-saving-spinner,
.gt-inline-spinner {
  display: inline-block;
  border-radius: 999px;
  border: 3px solid #e9d5ff;
  border-top-color: var(--primary);
  animation: gtSpin 0.8s linear infinite;
}

.gt-saving-spinner {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.gt-inline-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
  margin-right: 7px;
  vertical-align: -2px;
}

.gt-saving-card h2 {
  margin: 0;
  font-size: 19px;
  color: var(--text);
}

.gt-saving-card p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.gt-saving-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0ecff;
}

.gt-saving-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  transition: width 0.22s ease;
}

.gt-saving-card > strong {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 12px;
}

.gt-saving-overlay[data-state="error"] .gt-saving-spinner {
  border-color: #fecaca;
  border-top-color: #dc2626;
}

.gt-saving-overlay[data-state="error"] .gt-saving-track span {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.gt-saving-overlay[data-state="error"] .gt-saving-card > strong {
  color: #dc2626;
}

.gt-saving-overlay[data-state="success"] .gt-saving-spinner {
  border-color: #bbf7d0;
  border-top-color: #16a34a;
}

.gt-saving-overlay[data-state="success"] .gt-saving-track span {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.gt-saving-overlay[data-state="success"] .gt-saving-card > strong {
  color: #16a34a;
}

.gt-save-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 18, 48, 0.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.gt-save-success-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gt-save-success-card {
  width: min(420px, 100%);
  max-height: min(680px, 90vh);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 18, 48, 0.25);
  text-align: center;
}

.gt-save-success-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #dcfce7;
  color: #059669;
}

.gt-save-success-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 3;
}

.gt-save-success-card h2 {
  margin: 0;
  color: #11142d;
  font-size: 20px;
  line-height: 1.2;
}

.gt-save-success-card > p {
  margin: 7px 0 14px;
  color: #6d6a8f;
  font-size: 13px;
  line-height: 1.5;
}

.gt-save-success-type {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.gt-save-success-details {
  display: grid;
  gap: 0;
  margin: 16px 0 10px;
  overflow: hidden;
  border: 1px solid #ede9fe;
  border-radius: 10px;
  text-align: left;
}

.gt-save-success-details .detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1efff;
  font-size: 13px;
}

.gt-save-success-details .detail-row:last-child {
  border-bottom: 0;
}

.gt-save-success-details .dl {
  color: #6d6a8f;
}

.gt-save-success-details .dv {
  color: #11142d;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.gt-save-success-id {
  display: block;
  margin-bottom: 16px;
  color: #8a87a8;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.gt-dup-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.35;
}

.gt-dup-result b,
.gt-dup-result small {
  display: block;
}

.gt-dup-result-checking {
  border: 1.5px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.gt-ocr-retry {
  margin-top: 10px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gt-ocr-retry[hidden] {
  display: none !important;
}

.gt-ocr-retry svg {
  width: 13px;
  height: 13px;
}

.gt-duplicate-btn.is-checking,
.gt-save-button.is-saving,
.desktop-save-txn.is-saving {
  opacity: 0.82;
  cursor: progress !important;
}

@keyframes gtSpin {
  to { transform: rotate(360deg); }
}
