/* CashIt POS — Unified Premium Design System */

:root {
  --radius: 1rem;

  /* Light emerald fintech palette */
  --background: oklch(0.98 0.01 165);
  --foreground: oklch(0.20 0.04 165);
  --surface: oklch(1 0 0);
  --surface-elevated: oklch(0.96 0.015 165);
  --border: oklch(0.88 0.015 165 / 0.9);

  --primary: oklch(0.62 0.17 158);
  --primary-foreground: oklch(0.99 0.005 180);
  --primary-glow: oklch(0.74 0.19 155);

  --muted-foreground: oklch(0.48 0.03 170);
  --accent: oklch(0.72 0.17 75);
  --destructive: oklch(0.58 0.22 25);
  --transfer-blue: oklch(0.55 0.16 240);

  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-glow));
  --shadow-card: 0 8px 30px -10px oklch(0.30 0.05 165 / 0.18);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.dark {
  --background: oklch(0.16 0.03 165);
  --foreground: oklch(0.98 0.005 180);
  --surface: oklch(0.20 0.035 165);
  --surface-elevated: oklch(0.24 0.04 165);
  --border: oklch(0.30 0.03 165 / 0.6);

  --primary: oklch(0.78 0.19 158);
  --primary-foreground: oklch(0.15 0.04 165);
  --primary-glow: oklch(0.88 0.22 155);

  --muted-foreground: oklch(0.72 0.02 170);
  --accent: oklch(0.85 0.18 90);
  --destructive: oklch(0.65 0.22 25);
  --transfer-blue: oklch(0.70 0.14 240);

  --shadow-card: 0 8px 30px -10px oklch(0 0 0 / 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.icon {
  width: 16px;
  height: 16px;
}

.icon-sm {
  width: 12px;
  height: 12px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-logo {
  width: 160px;
  height: auto;
  animation: splashPulse 2s infinite ease-in-out;
}

@keyframes splashPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

/* App Container layout */
.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 0;
  background: var(--background);
  overflow: hidden;
}

/* On larger screens, present it as a premium centered card */
@media (min-width: 600px) {
  body {
    background: var(--surface-elevated);
    min-height: 100vh;
  }

  .app-container {
    margin: 40px auto;
    height: calc(100vh - 80px);
    min-height: auto;
    border-radius: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: 32px 32px 0;
  }
}

/* New Scrollable Wrapper */
.scroll-content {
  flex-grow: 1;
  overflow-y: auto;
  width: 100%;
  padding-bottom: 80px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-content::-webkit-scrollbar {
  display: none;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  flex-shrink: 0;
  position: relative;
  min-height: 44px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  color: #000000;
}

.brand img {
  height: 28px;
  margin-right: 8px;
}

.brand-accent {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  margin-top: 0;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--muted-foreground);
  transition: background-color 0.15s, color 0.15s;
  font-size: 18px;
}

.icon-btn:hover {
  color: var(--foreground);
  background: var(--surface-elevated);
}

.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

/* Small inline spinner used for button loading states */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.12);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Greeting */
.greeting-container {
  margin-top: 0px !important;
  margin-bottom: 24px;
  animation: fadeIn 0.4s ease-out;
  flex-shrink: 0;
}


.greeting-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 4px;
}

.greeting-subtitle {
  font-size: 14px;
  color: black;
}

/* Balance Card */
.balance {
  margin-bottom: 16px;
  background: oklch(0.62 0.17 158 / 0.08);
  padding: 10px 1px;
  border-radius: 20px;
  border: 1px solid oklch(0.62 0.17 158 / 0.15);
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: oklch(0.62 0.17 158);
  font-weight: 700;
  margin-bottom: 8px;
  padding: 4px 0;
}

.balance-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.balance-amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.cents {
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
  font-size: 1.1rem;
  font-weight: 600;
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}

.balance-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* Primary CTA */
.cta-primary {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.1s, box-shadow 0.25s ease;
}

.cta-primary:active {
  transform: scale(0.985);
}

/* Secondary / Outline CTA */
.cta-outline {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid var(--primary);
  background: var(--surface);
  color: var(--primary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.1s;
}

.cta-outline:active {
  transform: scale(0.985);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
}

/* Greyed out disabled state */
.cta-primary:disabled {
  background: color-mix(in oklab, var(--surface-elevated) 80%, var(--foreground) 10%) !important;
  color: black !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
}

.cta-primary:disabled .cta-icon {
  background: rgba(0, 0, 0, 0.05) !important;
  color: var(--muted-foreground) !important;
}

.cta-primary:disabled .chev {
  opacity: 0.3 !important;
  transform: none !important;
}

.cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
}

.cta-label {
  flex: 1;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

.chev {
  width: 20px;
  height: 20px;
  opacity: 0.9;
  transition: transform 0.15s;
}

.cta-primary:hover .chev {
  transform: translateX(4px);
}

/* Groups */
.groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.group-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  font-weight: 500;
  margin: 0 0 1px;
  padding: 0 4px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  border-radius: 28px;
  background: var(--surface);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px -6px oklch(0 0 0 / 0.12), 0 4px 12px -4px oklch(0 0 0 / 0.08);
  position: relative;
}

.tile.wide {
  grid-column: span 2;
  flex-direction: row;
  padding: 20px 24px;
  justify-content: flex-start;
  text-align: left;
}

.tile-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}

.tile-icon.accent {
  color: var(--accent);
}

.tile-icon i {
  font-size: 28px;
}

.tile-icon .icon {
  width: 32px;
  height: 32px;
}

.tile-label {
  font-weight: 800;
  font-size: 13px;
  color: var(--foreground);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Tile Color Variations - Solid Contrast with Elevation */
.tile.color-sales {
  background: oklch(0.62 0.17 158);
  border-color: oklch(0.62 0.17 158);
  box-shadow: 0 12px 20px -8px oklch(0.62 0.17 158 / 0.4);
}

.tile.color-sales .tile-icon,
.tile.color-sales .tile-label {
  color: white;
}

.tile.color-send {
  background: oklch(0.55 0.16 240);
  border-color: oklch(0.55 0.16 240);
  box-shadow: 0 12px 20px -8px oklch(0.55 0.16 240 / 0.4);
}

.tile.color-send .tile-icon,
.tile.color-send .tile-label {
  color: white;
}

.tile.color-withdraw {
  background: oklch(0.72 0.17 75);
  border-color: oklch(0.72 0.17 75);
  box-shadow: 0 12px 20px -8px oklch(0.72 0.17 75 / 0.4);
}

.tile.color-withdraw .tile-icon,
.tile.color-withdraw .tile-label {
  color: white;
}

.tile.color-prepaid {
  background: oklch(0.65 0.22 330);
  border-color: oklch(0.65 0.22 330);
  box-shadow: 0 12px 20px -8px oklch(0.65 0.22 330 / 0.4);
}

.tile.color-prepaid .tile-icon,
.tile.color-prepaid .tile-label {
  color: white;
}

.tile.color-wallet {
  background: oklch(0.45 0.18 280);
  border-color: oklch(0.45 0.18 280);
  box-shadow: 0 12px 20px -8px oklch(0.45 0.18 280 / 0.4);
}

.tile.color-wallet .tile-icon,
.tile.color-wallet .tile-label {
  color: white;
}

.tile.color-reports {
  background: oklch(0.48 0.03 170);
  border-color: oklch(0.48 0.03 170);
  box-shadow: 0 12px 20px -8px oklch(0.48 0.03 170 / 0.4);
}

.tile.color-reports .tile-icon,
.tile.color-reports .tile-label {
  color: white;
}

/* Force all tile icons to white when using color classes */
.tile[class*="color-"] .tile-icon {
  color: white !important;
}

.tile[class*="color-"] .tile-label {
  color: white !important;
}

/* Touch-optimized state (No movement/scale) */
.tile:active {
  filter: brightness(0.9);
}

/* Sign out */
.signout {
  width: 100%;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 14px;
  transition: color 0.15s;
}

.signout:hover {
  color: var(--destructive);
}

/* View switcher transitions */
.view-screen {
  display: none;
}

.view-screen.active {
  display: flex;
  flex-direction: column;
  animation: fadeInSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form styles */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}

.form-container .cta-primary {
  margin-bottom: 0;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #000000;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--surface-elevated) 50%, transparent);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.form-input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px oklch(from var(--primary) l c h / 0.15);
}

.form-input.error {
  border-color: var(--destructive) !important;
  box-shadow: 0 0 0 3px oklch(from var(--destructive) l c h / 0.15) !important;
}

/* Amount field styling */
.amount-wrapper {
  background: color-mix(in oklab, var(--surface-elevated) 50%, transparent);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0 20px;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.amount-wrapper:focus-within {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px oklch(from var(--primary) l c h / 0.15);
}

.currency-prefix {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--muted-foreground);
  margin-right: 8px;
}

.amount-input {
  padding: 16px 0;
  background: transparent !important;
  border: none !important;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  box-shadow: none !important;
  -moz-appearance: textfield;
  /* Hide arrows in Firefox */
}

/* Hide arrows in Chrome, Safari, Edge, Opera */
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Currency Input wrappers with internal absolutely-positioned symbols */
.currency-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.currency-symbol {
  position: absolute;
  left: 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-foreground);
  pointer-events: none;
  z-index: 2;
  transition: color 0.15s;
}

.currency-input-wrapper:focus-within .currency-symbol {
  color: var(--primary);
}

/* Quick amounts chips */
.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.chip {
  padding: 12px 6px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--surface-elevated) 50%, transparent);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}

.chip:hover {
  background: var(--surface-elevated);
  border-color: var(--muted-foreground);
}

.chip:active {
  transform: scale(0.95);
}

.view-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  color: var(--foreground);
}

/* Success Overlay */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal styles (used for PWA install popup) */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--surface);
  border-radius: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -10px oklch(0 0 0 / 0.3);
  padding: 32px 24px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: scale(0.95);
  animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  to { transform: scale(1); }
}

.modal-content h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--foreground);
}

.modal-content p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-foreground);
  margin: 0;
}

.modal-content button {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.1s;
}

.modal-content button:active {
  transform: scale(0.98);
}

#installBtn {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 12px oklch(from var(--primary) l c h / 0.2);
}

#continueBtn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}

.success-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -10px oklch(0 0 0 / 0.3);
  padding: 40px 24px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overlay.active .success-card {
  transform: scale(1);
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}

.success-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--foreground);
}

.success-message {
  font-size: 20px;
  line-height: 1.5;
  color: black;
  margin: 0 0 28px;
}

.bold {
  color: var(--foreground);
  font-weight: 600;
}

.btn-done {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 12px oklch(from var(--primary) l c h / 0.2);
  transition: transform 0.1s, box-shadow 0.15s;
}

.btn-done:active {
  transform: scale(0.98);
}

/* Animated Checkmark */
.checkmark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: block;
  stroke-width: 2.5;
  stroke: var(--primary);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--primary);
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2.5;
  stroke-miterlimit: 10;
  stroke: var(--primary);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: var(--primary-foreground);
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.errormark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: block;
  stroke-width: 2.5;
  stroke: var(--destructive);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--destructive);
  animation: fillerror .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.errormark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2.5;
  stroke-miterlimit: 10;
  stroke: var(--destructive);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.errormark__x {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: var(--primary-foreground);
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes fillerror {
  100% {
    box-shadow: inset 0px 0px 0px 40px var(--destructive);
  }
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 40px var(--primary);
  }
}

@keyframes scale {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

/* Hidden class utility */
.hidden {
  display: none !important;
}

/* Secondary button styling (Cancel) */
.btn-secondary {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: black;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 24px;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn-secondary:hover {
  background: var(--surface-elevated);
  color: unset;
  border-color: var(--muted-foreground);
}

.btn-secondary:active {
  transform: scale(0.985);
}

/* Unified Message Card Styling */
#msg:not(:empty) {
  display: block;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  color: black !important;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

#login-view #msg:not(:empty) {
  color: var(--destructive, #ff4d4d) !important;
}

/* Footer Navigation */
.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--surface);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 10px oklch(0 0 0 / 0.03);
  z-index: 100;
}

.footer-nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.footer-nav a.active {
  color: var(--primary);
}

.footer-nav i {
  font-size: 20px;
}

/* Reports Dashboard view styles */
.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.report-kpi-card {
  background: color-mix(in oklab, var(--surface-elevated) 55%, transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.report-kpi-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--border) 60%, var(--foreground));
  box-shadow: var(--shadow-md);
}

.report-kpi-card:active {
  transform: translateY(0) scale(0.97);
}

.report-kpi-card.active {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--primary) 6%, color-mix(in oklab, var(--surface-elevated) 70%, transparent));
  box-shadow: 0 0 0 1px var(--primary);
}

.kpi-icon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon.send-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.kpi-icon.withdraw-icon {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.kpi-icon.sales-icon {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.kpi-icon.prepaid-icon {
  background: rgba(236, 72, 153, 0.12);
  color: #ec4899;
}

.kpi-icon.commission-icon {
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
}

.kpi-count {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: color-mix(in oklab, var(--border) 40%, transparent);
  color: var(--muted-foreground);
}

.report-kpi-card.active .kpi-count {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: black;
}

.kpi-value {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--foreground);
}

/* Tabular Breakdowns */
.reports-detail-table-wrapper {
  background: color-mix(in oklab, var(--surface-elevated) 55%, transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}

.reports-detail-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.reports-detail-table th {
  background: color-mix(in oklab, var(--surface-elevated) 80%, transparent);
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reports-detail-table td {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.reports-detail-table tr:last-child td {
  border-bottom: none;
}

.reports-detail-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Utility / Compatibility */
/* Network Provider Selector */
.network-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 24px;
}

.network-btn,
.data-network-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  height: auto;
}

.network-btn:hover,
.data-network-btn:hover {
  border-color: var(--primary);
  background: var(--surface-elevated);
}

.network-btn.active,
.data-network-btn.active {
  border-color: var(--primary);
  background: var(--surface-elevated);
  box-shadow: 0 0 0 1px var(--primary);
}

.network-svg {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
}

.network-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--foreground);
  text-transform: uppercase;
}

/* Fix Report Button Overlap */
.report-footer-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 20px;
}

.tile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  transition: all 0.2s;
}

.tile-btn:active {
  transform: none;
}

.tile-btn.color-reports {
  background: color-mix(in oklab, var(--muted-foreground) 10%, var(--surface));
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

[hidden] {
  display: none !important;
}

/* ================= MERCHANT LOGIN VIEW ================= */
#login-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--background);
  min-height: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 8px;
  margin-top: 32px;
  animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand.large {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand.large img {
  height: 90px;
  margin-right: 12px;
  filter: unset;
}

.sub-brand {
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 8px;
  margin-left: 4px;
  vertical-align: middle;
  color: var(--muted-foreground);
}

.login-subtitle {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 6px;
  font-weight: 500;
}

.login-card {
  width: 100%;
  background: color-mix(in oklab, var(--surface) 65%, transparent);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card-clear {
  width: 100%;
  background: transparent;
  border: unset;
  border-radius: 24px;
  padding: 24px;
  box-shadow: unset;
  backdrop-filter: unset;
  -webkit-backdrop-filter: blur(20px);
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-error-banner {
  margin-top: 8px;
  color: var(--destructive);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.forgot-pin-wrapper {
  text-align: center;
  margin-top: 20px;
}

.forgot-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Modal Helper classes for animations */
@keyframes shakeDisplay {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-compliance-footer {
  margin-top: 20px;
  font-size: 11px;
  color: #000000;
  opacity: 1;
  letter-spacing: 0.1em;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  user-select: none;
  transition: opacity 0.2s ease;
}

.login-compliance-footer:hover {
  opacity: 0.9;
}

/* Compliance Interactive Link */
.compliance-link {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.compliance-link:hover {
  color: var(--primary);
}

/* Premium T&C Modal Redesign */
@keyframes tcModalPop {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(30px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tc-modal-content {
  max-width: 780px;
  width: 92%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 24px;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: tcModalPop 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.tc-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tc-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  margin-left: 16px;
  flex: 1;
  letter-spacing: 0.01em;
  font-family: var(--font-display);
}

.tc-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tc-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  transform: rotate(90deg);
}

/* Custom Scrollbar for Contract Reader */
.tc-modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  flex: 1;
  max-height: 55vh;
}

.tc-modal-body::-webkit-scrollbar {
  width: 6px;
}

.tc-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.tc-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.tc-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.tc-contract-section {
  text-align: center;
  margin-bottom: 28px;
}

.tc-subtitle {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tc-meta {
  font-size: 11px;
  color: var(--muted-foreground);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.tc-intro {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto;
}

/* Certified Red-Zones Auto-Fill highlights */
.tc-autofill-card {
  position: relative;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.01) 100%);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 32px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(245, 158, 11, 0.05);
}

.tc-autofill-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--warning);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.tc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tc-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tc-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--muted-foreground);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.tc-value {
  font-size: 13px;
  color: var(--foreground);
  font-weight: 500;
}

@keyframes highlightPulse {

  0%,
  100% {
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.25);
  }

  50% {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
    border-color: rgba(245, 158, 11, 0.5);
  }
}

.tc-highlight {
  display: inline-block;
  background: rgba(245, 158, 11, 0.14);
  color: var(--warning);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-family: var(--font-mono);
  font-size: 12px;
  animation: highlightPulse 3s infinite ease-in-out;
}

.tc-text-content {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.tc-last-update {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--foreground);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tc-text-content h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  margin: 28px 0 10px;
  border-left: 3px solid var(--primary);
  padding-left: 10px;
  font-family: var(--font-display);
}

.tc-text-content h6 {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  margin: 24px 0 10px;
}

.tc-text-content p {
  margin-bottom: 14px;
}

/* Elegant Compliance Tables */
.tc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow: hidden;
}

.tc-table th,
.tc-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tc-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: 0.02em;
}

.tc-table tr:last-child td {
  border-bottom: none;
}

.tc-table tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.tc-annex-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--warning) !important;
  margin-top: 32px !important;
  background: rgba(245, 158, 11, 0.06);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  letter-spacing: 0.02em;
}

/* Dynamic Cryptographic Signature */
.tc-signature-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px 24px;
  margin-top: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.tc-sig-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.tc-sig-info {
  display: flex;
  flex-direction: column;
}

.sig-title {
  font-size: 8px;
  font-weight: 700;
  color: var(--muted-foreground);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tc-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.01);
}

.tc-modal-footer button {
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tc-modal-footer button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tc-modal-footer button:active {
  transform: translateY(0);
}


/* Premium custom clean select dropdown styling */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--surface-elevated);
  padding-left: 16px;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  transition: all 0.2s ease;
}

.input-wrapper select.form-input {
  padding-left: 48px;
}

select.form-input:hover {
  border-color: color-mix(in oklab, var(--border) 70%, var(--foreground));
}

select.form-input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px oklch(from var(--primary) l c h / 0.15);
}

#msg.success {
  border-color: var(--primary);
  background: oklch(0.62 0.17 158 / 0.1);
  color: var(--primary) !important;
}

#msg.error {
  border-color: var(--destructive);
  background: oklch(0.58 0.22 25 / 0.1);
  color: var(--destructive) !important;
}

/* Fix for nested cards in message box */
#msg:has(.report-kpi-card) {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Network Provider Selector */
.network-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 24px;
}

.network-btn,
.data-network-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  height: auto;
}

.network-btn:hover,
.data-network-btn:hover {
  border-color: var(--primary);
  background: var(--surface-elevated);
}

.network-btn.active,
.data-network-btn.active {
  border-color: var(--primary);
  background: var(--surface-elevated);
  box-shadow: 0 0 0 1px var(--primary);
}

.network-svg {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
}

.network-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--foreground);
  text-transform: uppercase;
}

/* Fix Report Button Overlap */
.report-footer-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 80px;
  /* Increased to clear fixed footer */
}

.tile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  transition: all 0.2s;
}

.tile-btn:active {
  transform: none;
}

.tile-btn.color-reports {
  background: color-mix(in oklab, var(--muted-foreground) 10%, var(--surface));
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* VAS App Container Padding */
#vas-app {
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Confirmation Card & Details */
.confirmation-card {
  margin-bottom: 24px;
  text-align: left !important;
  padding: 20px !important;
}

.confirmation-card .eyebrow {
  text-align: left !important;
}

.confirmation-details {
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  color: var(--foreground);
}

.conf-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.conf-row span:first-child {
  opacity: 0.6;
}

.conf-divider {
  opacity: 0.1;
  margin: 12px 0;
  border: 0;
  border-top: 1px solid var(--foreground);
}

.total-row {
  font-size: 18px;
  font-weight: 700;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary);
}

.text-destructive {
  color: var(--destructive);
}

/* Premium Login Button Styling */
.login-submit-btn {
  width: calc(100% + 24px) !important;
  margin-left: -12px !important;
  margin-right: -12px !important;
  padding: 18px 36px !important;
  font-size: 22px !important;
  font-family: var(--font-display) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px -6px oklch(from var(--primary) l c h / 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-top: 8px;
}

.login-submit-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 30px -6px oklch(from var(--primary) l c h / 0.5);
}

.login-submit-btn:active {
  transform: translateY(1px) scale(0.99) !important;
  box-shadow: 0 4px 12px -4px oklch(from var(--primary) l c h / 0.3) !important;
}

/* Global Responsive scaling based on viewport height to fit exactly within 100vh without scrolling */
@media (max-height: 750px) {
  body {
      padding-top: 15px !important;
  }
  .app-container {
      padding-top: 10px !important;
  }
  .greeting-container {
      margin-top: 5px !important;
      margin-bottom: 10px !important;
  }
  .greeting-title {
      font-size: 20px !important;
  }
  .greeting-subtitle {
      font-size: 12px !important;
  }
  .balance {
      margin-bottom: 10px !important;
      padding: 6px 1px !important;
  }
  .balance-amount {
      font-size: 1.4rem !important;
  }
  .cents {
      font-size: 0.9rem !important;
  }
  .eyebrow {
      font-size: 10px !important;
      margin-bottom: 2px !important;
      padding: 0 !important;
  }
  .groups {
      gap: 10px !important;
  }
  .group-title {
      font-size: 11px !important;
      margin-bottom: 0px !important;
  }
  .tiles {
      gap: 6px !important;
  }
  .tile {
      padding: 12px 10px !important;
      border-radius: 18px !important;
      gap: 6px !important;
  }
  .tile-icon {
      width: 36px !important;
      height: 36px !important;
  }
  .tile-icon i {
      font-size: 20px !important;
  }
  .tile-label {
      font-size: 11px !important;
  }
}

@media (max-height: 600px) {
  body {
      padding-top: 15px !important;
  }
  .app-container {
      padding-top: 5px !important;
  }
  .greeting-container {
      margin-top: 2px !important;
      margin-bottom: 6px !important;
  }
  .greeting-title {
      font-size: 18px !important;
  }
  .balance {
      margin-bottom: 8px !important;
      padding: 4px 1px !important;
  }
  .balance-amount {
      font-size: 1.25rem !important;
  }
  .cents {
      font-size: 0.85rem !important;
  }
  .eyebrow {
      font-size: 9px !important;
  }
  .groups {
      gap: 6px !important;
  }
  .tiles {
      gap: 4px !important;
  }
  .tile {
      padding: 8px 6px !important;
      border-radius: 14px !important;
      gap: 4px !important;
  }
  .tile-icon {
      width: 28px !important;
      height: 28px !important;
  }
  .tile-icon i {
      font-size: 16px !important;
  }
  .tile-label {
      font-size: 10px !important;
  }
}