* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --card: #16181a;
  --card-light: #1c1e21;
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-soft: #8d969e;
  --green: #4ade80;
  --red: #e23b4a;
  --amber: #ec7e00;
  --canvas-light: #ffffff;
  --ink: #191c1f;
  --ink-muted: #505a63;
  --hairline-light: #e2e2e7;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --surface: var(--card-light);
  --focus-ring: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--text);
  box-shadow: var(--focus-ring);
}

button:disabled,
button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

/* Layout */

.appShell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.mainContent {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.adminMain,
.mainContent .app {
  width: 100%;
  max-width: 1320px;
  padding: 0 28px 40px;
}

@media (min-width: 1440px) {
  .appShell {
    grid-template-columns: 260px 1fr;
  }

  .adminMain,
  .mainContent .app {
    max-width: 1520px;
    padding: 0 48px 40px;
  }
}

.topBar {
  padding: 28px 28px 34px;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 8px;
}

.topBar .eyebrow {
  color: #fff;
  font-weight: 600;
}

h1 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 750;
}

h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

h3 {
  font-size: 17px;
  margin-bottom: 14px;
}

.subtext,
.walletTagline {
  color: var(--muted);
  font-size: 14px;
}

/* Sidebar */

.sidebar {
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebarLogo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 0 8px;
}

.logoMark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logoText {
  font-size: 15px;
  font-weight: 700;
}

.sidebarNav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s var(--ease-out);
}

.navItem:hover {
  background: var(--card-light);
  color: var(--text);
}

.navItem.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.sidebarFooter {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Cards */

.card,
.panel,
.adminCard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

/* Balance */

.balanceGrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.balanceCard {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
}

.balanceCardInfoBtn {
  position: absolute;
  top: 12px;
  right: 12px;
}

.balanceCard span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.balanceCard strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.04em;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}

.balanceCardGreen {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(135deg, #1c1e21, #0a0a0a);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.balanceCardGreen strong {
  font-size: 38px;
}

.balanceCardBlue {
  color: var(--text);
}

.balanceCardAmber {
  color: var(--amber);
}

/* ─── Skeleton Loading ───────────────────────────────────────────────────── */

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
  height: 14px;
  margin-bottom: 10px;
}

.skeletonBlock {
  padding: 4px 0;
}

/* ─── Empty States ───────────────────────────────────────────────────────── */

.emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  gap: 6px;
}

.emptyIcon {
  font-size: 36px;
  margin-bottom: 6px;
}

.emptyState strong {
  font-size: 1rem;
}

/* ─── Inline Field Errors ────────────────────────────────────────────────── */

.fieldError {
  border-color: #e74c3c !important;
  background: rgba(231, 76, 60, 0.06) !important;
}

.fieldErrorMsg {
  display: block;
  color: #e74c3c;
  font-size: 0.78rem;
  margin-top: 4px;
}

/* ─── Fee Cards ──────────────────────────────────────────────────────────── */

.feeList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feeItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.feeItemName {
  font-weight: 600;
  font-size: 0.9rem;
}

.feeItemMeta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feeInfoBtn {
  width: 20px;
  height: 20px;
  min-height: 0;
  min-width: 0;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  font-style: italic;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.feeInfoBtn:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  transform: none;
}

.feePill {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}

.feePillFree {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.feeRange {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ─── Quick Actions ───────────────────────────────────────────────────────── */

.quickActions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.quickAction {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.quickAction:hover {
  background: var(--card-light);
  border-color: var(--text);
}

/* Dashboard actions */

#dashboardPage .grid {
  grid-template-columns: repeat(3, 1fr);
}

#dashboardPage .grid button {
  min-height: 88px;
  background: var(--card-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  box-shadow: none;
}

#dashboardPage .grid button:first-child {
  background: linear-gradient(135deg, #ffffff, #d8d8d8);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--ink);
}

/* Info cards */

.dashboardInfoGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.dashboardInfoCard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
}

.dashboardInfoCard span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.dashboardInfoCard strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.dashboardInfoCard small {
  color: var(--muted-soft);
}

/* Section header */

.sectionHeader,
.walletSectionHeader,
.pageHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.walletSectionHeader button,
.pageHeader button,
.sectionHeader button {
  width: auto;
  min-height: auto;
  padding: 8px 12px;
}

/* Forms */

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  margin-bottom: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

textarea {
  min-height: 110px;
  padding: 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-soft);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

label input[type="checkbox"] {
  width: auto;
  min-height: auto;
  margin: 0;
}

/* Buttons */

button {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: none;
  border-radius: 16px;
  background: var(--text);
  color: var(--ink);
  font-weight: 750;
  font-size: 15px;
  cursor: pointer;
  transition: 0.18s var(--ease-out);
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

button.secondary {
  background: var(--card-light);
  color: var(--text);
}

button.secondary:hover {
  background: #26282b;
  opacity: 1;
}

.smallBtn,
.iconBtn {
  width: auto;
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
}

.viewAllLink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.15s var(--ease-out);
}

.viewAllLink:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.viewAllLink svg {
  flex-shrink: 0;
}

.actionRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Tabs */

.tabRow {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.filterRow {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.filterRow input[type="date"] {
  flex: 1;
}

.paginationRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  gap: 8px;
}

.paginationRow span {
  font-size: 0.85em;
  color: var(--text-muted, #888);
}

.tabButtons {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 4px;
}

.tabButton {
  flex: 1;
  width: auto;
  min-height: 38px;
  padding: 6px 12px;
  background: transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.tabButton.active {
  background: var(--text);
  color: var(--ink);
}

.tabButton:hover {
  transform: none;
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.tabButton.active:hover {
  background: var(--text);
  opacity: 0.88;
}

/* Transactions */

.transactionItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.18s var(--ease-out);
}

.transactionItem:hover {
  background: var(--card-light);
  transform: translateY(-1px);
}

.transactionItem strong {
  display: block;
  font-size: 14px;
}

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

.transactionAmount {
  white-space: nowrap;
  font-weight: 800;
  font-size: 14px;
}

.transactionIn {
  color: var(--green);
}

.transactionOut {
  color: var(--red);
}

.transactionNeutral {
  color: var(--muted);
}

/* Profile */

.profileCard {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 45%),
    var(--card);
}

.profileRows {
  display: grid;
  gap: 0;
}

.profileRows div,
.feeRow,
.detailRow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.profileRows div:last-child,
.feeRow:last-child,
.detailRow:last-child {
  border-bottom: none;
}

.profileRows span,
.feeRow span,
.detailRow span {
  color: var(--muted);
  font-size: 13px;
}

.profileRows strong,
.feeRow strong,
.detailRow strong {
  text-align: right;
  font-size: 14px;
}

.logoutSection {
  margin-top: 18px;
}

.logoutButton,
.dangerBtn {
  background: #7f1d1d;
  color: #ffffff;
}

.logoutButton:hover,
.dangerBtn:hover {
  background: #991b1b;
}

/* Search results */

.searchResults {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.searchResultItem {
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.searchResultItem:hover {
  background: var(--card-light);
}

.searchResultItem:last-child {
  border-bottom: none;
}

/* Lists */

.item {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.item:last-child {
  border-bottom: none;
}

.roleBadge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.userActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

/* Modals */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  z-index: 2000;
  padding: 20px;
  animation: fadeIn 0.18s var(--ease-out);
}

.modalCard {
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  animation: slideUp 0.22s var(--ease-out);
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modalHeader h2 {
  margin: 0;
}

.modalHeader button {
  width: 36px;
  min-height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.modalHeader button:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: none;
}

.referenceBox {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
}

.referenceBox span {
  color: var(--muted);
  font-size: 13px;
}

.referenceBox strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  letter-spacing: 0.04em;
}

/* Toast */

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  z-index: 3000;
  box-shadow: var(--shadow);
}

.successToast {
  background: #10291b;
  color: #8ff0b2;
  border: 1px solid #1f7a46;
}

.errorToast {
  background: #2a1212;
  color: #ff9a9a;
  border: 1px solid #8f2b2b;
}

/* Login */

.loginApp {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.loginCard {
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}

.loginHeader {
  text-align: center;
  margin-bottom: 24px;
}

.loginTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 22px;
}

.loginTab {
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  min-height: 42px;
}

.loginTab.active {
  background: var(--text);
  color: var(--ink);
}

.loginForm.hidden {
  display: none;
}

/* Bottom nav */

.bottomNav {
  display: none;
}

/* Animation */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile */

@media (max-width: 680px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 38%),
      #000000;
  }

  .appShell {
    display: block;
    padding-bottom: 96px;
  }

  .sidebar {
    display: none;
  }

  .bottomNav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 430px;
    background: rgba(10, 10, 10, 0.94);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 8px;
    gap: 4px;
    z-index: 1000;
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  }

  .bottomNavItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    border-radius: 16px;
    color: var(--muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 650;
    transition: 0.18s var(--ease-out);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    letter-spacing: 0;
  }

  .bottomNavItem .bnIcon {
    font-size: 20px;
    line-height: 1;
  }

  .bottomNavItem .bnLabel {
    font-size: 10px;
    font-weight: 650;
  }

  .bottomNavItem.active {
    background: rgba(255, 255, 255, 0.18);
    color: var(--text);
  }

  .topBar {
    padding: 28px 22px 18px;
  }

  .topBar h1 {
    font-size: 28px;
  }

  .adminMain,
  .mainContent .app {
    padding: 0 22px 100px;
  }

  .balanceGrid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .balanceCardGreen {
    grid-column: span 1;
    min-height: 154px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .balanceCardGreen strong {
    font-size: 40px;
  }

  .balanceCardAmber,
  .balanceCardBlue {
    display: none;
  }

  .balanceCardBlue {
    min-height: 124px;
  }

  #dashboardPage .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  #dashboardPage .grid button {
    min-height: 88px;
    padding: 12px;
    border-radius: 24px;
    font-size: 14px;
  }

  .dashboardInfoGrid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboardInfoCard {
    min-height: 120px;
  }

  .panel,
  .card {
    border-radius: 24px;
    padding: 18px;
  }

  .actionRow,
  .userActions,
  .pageGrid {
    grid-template-columns: 1fr;
  }

  .bottomNav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 430px;
    background: rgba(10, 10, 10, 0.94);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 8px;
    gap: 4px;
    z-index: 1000;
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  }

  .bottomNavItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    border-radius: 16px;
    color: var(--muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 650;
    transition: 0.18s var(--ease-out);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    letter-spacing: 0;
  }

  .bottomNavItem .bnIcon {
    font-size: 20px;
    line-height: 1;
  }

  .bottomNavItem .bnLabel {
    font-size: 10px;
    font-weight: 650;
  }

  .bottomNavItem.active {
    background: rgba(255, 255, 255, 0.18);
    color: var(--text);
  }

  /* "More" is the only bottomNavItem rendered as a real <button>, so the
     site-wide button:hover rule (0,1,1) otherwise outranks .bottomNavItem's
     background: none (0,1,0) — :hover counts as a class for specificity. */
  .bottomNavItem:hover {
    background: none;
    color: var(--muted);
  }

  .bottomNavItem.active:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--text);
  }

  .toast {
    left: 18px;
    right: 18px;
    bottom: 104px;
    max-width: none;
  }
}

/* ─── More Sheet (mobile only) ───────────────────────────────────────────── */

.moreSheet {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.moreSheet.hidden {
  display: none;
}

.moreSheetOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.moreSheetDrawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #13161d;
  border-top: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  padding: 10px 20px 40px;
  animation: slideUp 0.22s var(--ease-out);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.moreSheetHandle {
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 0 auto 18px;
}

.moreSheetGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}

.moreSheetItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  transition: 0.15s var(--ease-out);
}

.moreSheetItem:hover,
.moreSheetItem:active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text);
}

.moreSheetItem.active {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.moreSheetIcon {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 680px) {
  .quickActions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  .topBar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .adminMain,
  .mainContent .app {
    padding-left: 18px;
    padding-right: 18px;
  }

  .balanceCardGreen strong {
    font-size: 34px;
  }

  #dashboardPage .grid button {
    font-size: 13px;
  }
}

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

/* =========================
   LOGIN EXPERIENCE
========================= */

.loginApp {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  background:
    radial-gradient(circle at top left, rgba(255, 255, 255,0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255,0.08), transparent 28%),
    #000000;

  position: relative;
  overflow: hidden;
}

/* subtle background glow */

.loginApp::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255,0.06);
  filter: blur(120px);
  border-radius: 50%;
  top: -200px;
  right: -180px;
  pointer-events: none;
}

.loginApp::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.03);
  filter: blur(100px);
  border-radius: 50%;
  bottom: -200px;
  left: -120px;
  pointer-events: none;
}

/* auth card */

.loginCard {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 460px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.01)
    ),
    #16181a;

  border: 1px solid rgba(255,255,255,0.06);

  border-radius: 32px;

  padding: 38px;

  backdrop-filter: blur(20px);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);

  animation: loginEnter 0.4s var(--ease-out);
}

/* brand area */

.loginBrand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 26px;
}

/* your logo */

.loginLogo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin-bottom: 18px;

  filter:
    drop-shadow(0 10px 20px rgba(255, 255, 255,0.18));
}

/* optional icon */

.loginIcon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* headings */

.loginHeader {
  text-align: center;
  margin-bottom: 28px;
}

.loginHeader .eyebrow {
  color: #ffffff;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.loginHeader h1 {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
  font-weight: 800;
}

.loginHeader .subtext {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* tabs */

.loginTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;

  padding: 6px;

  background: #0a0a0a;

  border: 1px solid rgba(255,255,255,0.04);

  border-radius: 999px;

  margin-bottom: 26px;
}

.loginTab {
  min-height: 46px;

  border-radius: 999px;

  background: transparent;

  color: var(--muted);

  font-size: 14px;
  font-weight: 700;

  transition: 0.18s var(--ease-out);
}

.loginTab:hover {
  background: rgba(255,255,255,0.03);
}

.loginTab.active {
  background: linear-gradient(
    135deg,
    #ffffff,
    #d8d8d8
  );

  color: var(--ink);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35);
}

/* forms */

.loginForm {
  animation: fadeSlide 0.22s var(--ease-out);
}

.loginForm input {
  margin-bottom: 14px;
}

.maintenanceBanner {
  background: var(--amber);
  color: #1a1300;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
}

.loginForm button {
  margin-top: 6px;
}

/* inputs */

.loginCard input {
  background: #0a0a0a;

  border: 1px solid rgba(255,255,255,0.06);

  height: 56px;

  border-radius: 18px;

  padding: 0 16px;

  font-size: 15px;

  transition:
    border-color 0.18s var(--ease-out),
    background 0.18s var(--ease-out),
    transform 0.18s var(--ease-out);
}

.loginCard input:focus {
  border-color: rgba(255, 255, 255,0.7);

  background: #121621;

  transform: translateY(-1px);

  box-shadow:
    0 0 0 4px rgba(255, 255, 255,0.10);
}

/* button */

.loginCard button {
  min-height: 56px;

  border-radius: 18px;

  font-size: 15px;
  font-weight: 800;
}

/* trust footer */

.loginTrust {
  margin-top: 26px;

  padding-top: 22px;

  border-top: 1px solid rgba(255,255,255,0.04);

  text-align: center;

  font-size: 12px;

  color: var(--muted-soft);

  line-height: 1.6;
}

/* security badge */

.securityBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 12px;

  border-radius: 999px;

  background: rgba(255, 255, 255,0.10);

  border: 1px solid rgba(255, 255, 255,0.18);

  color: #ffffff;

  font-size: 12px;
  font-weight: 700;

  margin-top: 14px;
}

/* animation */

@keyframes loginEnter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Desktop split layout ─────────────────────────────────────────────────── */

/* panel hidden on mobile — shown only on desktop */
.loginPanel {
  display: none;
}

@media (min-width: 900px) {
  .loginApp {
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 100vh;
  }

  /* loginSplit wraps only the form card — just a column holder */
  .loginSplit {
    width: 560px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
  }

  .loginCard {
    flex: 1;
    max-width: none;
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: none;
    box-shadow: none;
  }

  .loginPanel {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 48px;
    text-align: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    background: url("assets/login-bg.jpg") center/cover no-repeat;
  }

  .loginPanel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.90) 0%,
      rgba(0, 0, 0, 0.45) 45%,
      rgba(0, 0, 0, 0.10) 100%
    );
    pointer-events: none;
  }

  .loginPanelLogo {
    display: none;
  }

  .loginPanelHeading {
    position: relative;
    z-index: 1;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #fff;
    max-width: 420px;
  }

  .loginPanelHeading span {
    color: #ffffff;
  }

  .loginPanelSub {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 1.6;
    max-width: 340px;
  }

  .loginPanelBadges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .loginPanelBadge {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
  }
}

/* mobile */

@media (max-width: 680px) {
  .loginApp {
    padding: 18px;
  }

  .loginCard {
    padding: 30px 22px;
    border-radius: 28px;
  }

  /* .loginLogo {
    width: 64px;
    height: 64px;
  } */
   
  .loginLogo {
    width: 140px;
    height: auto;
    object-fit: contain;

    margin-bottom: 24px;

    filter:
      drop-shadow(0 12px 24px rgba(255, 255, 255,0.22));
  }

  .loginHeader h1 {
    font-size: 32px;
  }

  .loginHeader .subtext {
    font-size: 13px;
  }

  .loginCard input {
    height: 54px;
  }

  .loginCard button {
    min-height: 54px;
  }
}

.logoutModalCard {
  text-align: center;
}

.logoutModalIcon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;

  display: grid;
  place-items: center;

  border-radius: 18px;

  background: rgba(226, 59, 74, 0.12);
  color: #e23b4a;

  font-size: 24px;
  font-weight: 800;
}

.logoutModalCard h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.logoutModalCard .subtext {
  max-width: 320px;
  margin: 0 auto 20px;
}

.logoutModalCard .modalActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .logoutModalCard .modalActions {
    grid-template-columns: 1fr;
  }
}

.topBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.notificationButton {
  width: auto;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: #16181a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
}

.notificationCount {
  min-width: 22px;
  height: 22px;

  display: inline-grid;
  place-items: center;

  border-radius: 999px;
  background: var(--text);
  color: var(--ink);

  font-size: 12px;
  font-weight: 800;
}

.notificationsModalCard {
  max-height: 80vh;
  overflow-y: auto;
}

.notificationItem {
  display: flex;
  justify-content: space-between;
  gap: 14px;

  padding: 14px;
  margin-bottom: 10px;

  border-radius: 18px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.notificationItem.unread {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    #0a0a0a;

  border-color: rgba(255, 255, 255, 0.35);
}

.notificationItem strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.notificationItem p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.notificationItem small {
  color: var(--muted-soft);
  font-size: 12px;
}

.emptyState {
  text-align: center;
  padding: 28px 10px;
}

@media (max-width: 680px) {
  .topBar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 24px;
    padding: 28px 22px 18px;
  }

  .topBar > div {
    min-width: 0;
  }

  .topBar .eyebrow {
    margin-bottom: 14px;
  }

  .topBar h1 {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.05em;
  }

  .notificationButton {
    position: relative;

    width: 48px;
    height: 48px;
    min-height: 48px;

    padding: 0;
    margin-top: 4px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #16181a;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .notificationButton span {
    display: flex;
  }

  .notificationCount {
    position: absolute;

    top: -3px;
    right: -3px;

    min-width: 18px;
    height: 18px;

    display: grid;
    place-items: center;

    border-radius: 999px;

    background: var(--text);
    color: var(--ink);

    font-size: 10px;
    font-weight: 800;
  }

  .balanceGrid {
    margin-top: 4px;
  }

  .adminMain,
  .mainContent .app {
    padding-bottom: 130px;
  }
}

.linkButton {
  background: transparent !important;
  color: #ffffff !important;
  border: none;
  box-shadow: none;
  min-height: auto;
  padding: 10px 0;
  margin-top: 10px;
}

.linkButton:hover {
  background: transparent !important;
  transform: none;
  color: #ffffff !important;
}

.appLoader {
  position: fixed;
  inset: 0;
  z-index: 4000;

  display: grid;
  place-items: center;

  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 35%),
    #000000;
}

.appLoader.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.loaderCard {
  text-align: center;
  animation: loaderEnter 0.45s var(--ease-out);
}

.loaderMark {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  display: block;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.loaderCard p {
  margin-bottom: 4px;

  color: #ffffff;

  font-size: 16px;
  font-weight: 800;
}

.loaderCard span {
  color: var(--muted);
  font-size: 13px;
}

@keyframes loaderEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

button.loading {
  opacity: 0.7;
  cursor: not-allowed;
}



.statusBadge {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	height: 32px;
	padding: 0 14px;

	border-radius: 999px;

	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;

	border: 1px solid var(--border);
	background: var(--bg-soft);
	color: var(--muted);
}

.status-pending {
	color: var(--amber);
	border-color: rgba(236, 126, 0, 0.4);
	background: rgba(236, 126, 0, 0.1);
}

.status-approved,
.status-active,
.status-paid {
	color: var(--green);
	border-color: rgba(74, 222, 128, 0.4);
	background: rgba(74, 222, 128, 0.1);
}

.status-rejected,
.status-frozen,
.status-failed {
	color: var(--red);
	border-color: rgba(226, 59, 74, 0.4);
	background: rgba(226, 59, 74, 0.1);
}

.notificationButton.alertsEnabled {
	background: rgba(74, 222, 128, 0.14);
	color: var(--green);
	border: 1px solid rgba(74, 222, 128, 0.32);
}

.notificationButton.alertsEnabled:hover {
	background: rgba(74, 222, 128, 0.14);
	transform: none;
}

.adminUserCard {
	padding: 18px;
	border-bottom: 1px solid var(--border);
}

.adminUserHeader {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.adminUserHeader p {
	margin-top: 3px;
	font-weight: 600;
}

.adminUserHeader small {
	color: var(--muted);
}

.adminUserBadges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.adminUserMeta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 14px;
}

.adminUserMeta div {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 12px;
}

.adminUserMeta span {
	display: block;
	color: var(--muted);
	font-size: 12px;
	margin-bottom: 4px;
}

.adminUserMeta strong {
	font-size: 14px;
}

@media (max-width: 760px) {
	.adminUserMeta {
		grid-template-columns: 1fr;
	}

	.adminUserHeader {
		flex-direction: column;
	}

	.adminUserBadges {
		justify-content: flex-start;
	}
}

.adminUserCard {
	padding: 22px 0;
	border-bottom: 1px solid var(--border);
}

.adminUserCard:first-child {
	padding-top: 0;
}

.adminUserHeader strong {
	font-size: 24px;
	letter-spacing: -0.03em;
}

.adminUserHeader p {
	font-size: 15px;
	color: var(--text);
}

.adminUserHeader small {
	font-size: 13px;
}

.adminUserMeta div {
	background:
		linear-gradient(
			180deg,
			rgba(255,255,255,0.02),
			rgba(255,255,255,0.01)
		),
		var(--bg-soft);

	border: 1px solid rgba(255,255,255,0.04);

	min-height: 92px;

	display: flex;
	flex-direction: column;
	justify-content: center;
}

.adminUserMeta strong {
	font-size: 18px;
	letter-spacing: -0.03em;
}

.disabledPaymentBtn {
	opacity: 0.55;
	cursor: not-allowed;
	filter: grayscale(0.15);
}

.disabledPaymentBtn:hover {
	transform: none;
	box-shadow: none;
}

.withdrawalCard {
	margin-bottom: 18px;
}

.withdrawalCard .adminUserMeta {
	margin-top: 18px;
}

.sensitiveValue {
	letter-spacing: 0.08em;
	color: #ec7e00;
}
/* ─── Merchant dashboard ───────────────────────────────────────────────────── */

.merchantTop {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  align-items: start;
}

.chargeCard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.chargeCard h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.chargeCard .subtext {
  margin-bottom: 16px;
}

.chargeInputWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  margin-bottom: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.chargeInputWrap:focus-within {
  border-color: var(--text);
  box-shadow: var(--focus-ring);
}

.chargeInputWrap span {
  font-size: 32px;
  font-weight: 700;
  color: var(--muted-soft);
}

.chargeInputWrap input {
  min-height: 76px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: none !important;
}

.chargeFeeHint {
  margin: 12px 0 0 !important;
  font-size: 13px;
  text-align: center;
}

.chargeActive {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.chargeActive.hidden {
  display: none;
}

.chargeAmountBig {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.chargeQr {
  width: min(280px, 100%);
  aspect-ratio: 1;
  background: #ffffff;
  border-radius: 18px;
  padding: 12px;
}

.chargeStatus {
  color: var(--muted);
  font-size: 15px;
}

.chargeStatus.paid {
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}

.paidMark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.14);
  color: var(--green);
  font-size: 44px;
  font-weight: 700;
  animation: slideUp 0.3s var(--ease-out);
}

.statGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.statTile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.statTile span {
  color: var(--muted);
  font-size: 13px;
}

.statTile strong {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.statTile small {
  color: var(--muted-soft);
  font-size: 12px;
}

.statTile a {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}


.payList {
  padding: 4px 20px;
}

.payRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.payRow:last-child {
  border-bottom: none;
}

.payRowMain {
  min-width: 0;
}

.payRowMain strong {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payRowMain span {
  font-size: 12px;
  color: var(--muted-soft);
}

.payRowAmount {
  flex-shrink: 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

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

.shopQrCard {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.shopQr {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
}

.shopQrLoading {
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.shopQrBody {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shopQrBody .subtext {
  margin: 0;
}

.copyRow {
  display: flex;
  gap: 8px;
}

.copyRow input {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13px;
}

.copyRow button {
  width: auto;
  flex-shrink: 0;
  padding: 0 18px;
}

.profileForm {
  display: flex;
  flex-direction: column;
  max-width: 480px;
}

.profileForm label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.profileForm small {
  color: var(--muted-soft);
}

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

  .chargeCard {
    padding: 20px;
  }

  .shopQrCard {
    flex-direction: column;
    align-items: center;
  }

  .shopQrBody {
    width: 100%;
  }
}

/* ─── Merchant application ─────────────────────────────────────────────────── */

.applyGroup {
  margin: 18px 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.applyHint {
  margin: -4px 0 8px;
  font-size: 12px;
}

.loginCard select,
.loginCard textarea {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  font-size: 15px;
  margin-bottom: 14px;
}

.loginCard select {
  height: 56px;
  padding: 0 16px;
}

.loginCard textarea {
  min-height: 80px;
  padding: 14px 16px;
  font-family: inherit;
  color: var(--text);
}

@media (max-width: 700px) {
  .desktopOnly {
    display: none !important;
  }
}

.applyChoice {
  border: none;
  margin: 4px 0 8px;
  padding: 0;
}

.applyChoice legend {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.applyChoice label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #0a0a0a;
  font-size: 15px;
  cursor: pointer;
}

.applyChoice label:has(input:checked) {
  border-color: var(--text);
}

.loginCard .applyChoice input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: #ffffff;
}

/* Transactions: start/end date side by side, labelled */
.dateFilters {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.dateField {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  margin: 0; /* global label rule adds 12px below */
}

.dateField span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
}

.dateField input {
  margin: 0;
  min-width: 0;
  font-family: inherit;
  color-scheme: dark; /* light calendar icon on the dark field */
}

.dateFiltersExport {
  min-height: 52px;
  margin: 0;
}

@media (max-width: 600px) {
  .dateFilters {
    grid-template-columns: 1fr 1fr;
  }

  .dateFiltersExport {
    grid-column: 1 / -1;
    min-height: 44px;
  }
}

/* ─── Merchant application (merchant-apply.html) ──────────────────────────
 * Two columns on desktop: a pinned intro (what you get, what happens next)
 * and the form in four numbered steps with visible labels + inline errors. */

.applyPage {
  background: var(--bg);
  overflow-x: clip;
}

.apply {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4rem) clamp(1.25rem, 4vw, 4rem) 4rem;
  display: grid;
  gap: 2.5rem;
}

.applyLogo img {
  height: 1.75rem;
  width: auto;
}

.applyIntro h1 {
  margin-top: 2.5rem;
  font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.applyLede {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 26rem;
}

.applyFacts {
  display: grid;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.applyFacts div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.applyFacts dt {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.applyFacts dd {
  color: var(--muted);
  font-size: 0.875rem;
}

.applyNext {
  margin-top: 2rem;
}

.applyNextTitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-soft);
}

.applyNext ol {
  list-style: none;
  counter-reset: next;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.applyNext li {
  counter-increment: next;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  color: var(--muted);
  font-size: 0.9375rem;
}

.applyNext li::before {
  content: counter(next);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.15rem;
}

.applyLogin {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-soft);
}

.applyLogin a {
  color: var(--text);
  font-weight: 600;
}

/* Form */

.applyForm {
  display: grid;
  gap: 1rem;
}

.applyStep {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 1.5rem;
  min-width: 0;
}

.applyStep legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  float: left;
  width: 100%;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.applyStep legend > span:first-child {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--ink);
  font-size: 0.8125rem;
}

.applyStep legend + * {
  clear: both;
}

.stepHint {
  margin: -0.5rem 0 1rem;
  font-size: 0.875rem;
  color: var(--muted-soft);
}

.field {
  display: grid;
  align-content: start; /* side-by-side fields: don't stretch the shorter one */
  gap: 0.375rem;
  margin-bottom: 1rem;
  min-width: 0;
}

.field:last-child {
  margin-bottom: 0;
}

.fieldRow {
  display: grid;
  gap: 0 1rem;
}

.fieldRow .field:last-child {
  margin-bottom: 1rem;
}

.field label,
.fieldLabel {
  display: block;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.field .optional {
  font-weight: 400;
  color: var(--muted-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  margin: 0;
  min-height: 3.25rem;
  padding: 0 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.field textarea {
  min-height: 5rem;
  padding: 0.875rem 1rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-soft);
  opacity: 0.7;
}

.fieldHint {
  font-size: 0.75rem;
  color: var(--muted-soft);
}

.fieldMsg {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red);
}

.fieldMsg:empty {
  display: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error .choice label {
  border-color: var(--red);
}

.choice {
  display: grid;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.choice label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  cursor: pointer;
  font-weight: 400;
}

.choice label:has(input:checked) {
  border-color: var(--text);
}

.choice input {
  width: 1.125rem;
  height: 1.125rem;
  min-height: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: #ffffff;
}

.choice span {
  display: grid;
  gap: 0.125rem;
}

.choice strong {
  font-size: 0.9375rem;
  font-weight: 600;
}

.choice small {
  font-size: 0.8125rem;
  color: var(--muted-soft);
}

.cipcFields {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
}

.applySubmit {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.applySubmit button {
  min-height: 3.5rem;
  font-size: 1rem;
}

.applySubmit p {
  font-size: 0.8125rem;
  color: var(--muted-soft);
  text-align: center;
}

.applySubmit a {
  color: var(--muted);
}

.applyDone {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.applyDone.hidden {
  display: none;
}

.applyDone svg {
  width: 3.5rem;
  height: 3.5rem;
}

.applyDone svg circle {
  fill: rgba(74, 222, 128, 0.12);
}

.applyDone svg path {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.applyDone h2 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.applyDone p {
  color: var(--muted);
  max-width: 30rem;
}

.applyDone button {
  width: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 40rem) {
  .fieldRow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .applyStep {
    padding: 1.75rem 2rem;
  }
}

@media (min-width: 60rem) {
  .apply {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: start;
  }

  .applyIntro {
    position: sticky;
    top: 3rem;
  }

  .applyIntro h1 {
    margin-top: 4rem;
  }
}
