/* MENT PAY • ULTRA LUXURY NEOBANKING DESIGN SYSTEM (v3.1 Pro) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --ment-blue: #2563EB;
  --ment-blue-light: #3B82F6;
  --ment-blue-glow: rgba(37, 99, 235, 0.4);
  --ment-cyan: #38BDF8;
  --ment-cyan-glow: rgba(56, 189, 248, 0.25);
  --ment-emerald: #10B981;
  --ment-emerald-glow: rgba(16, 185, 129, 0.25);
  --ment-bg-deep: #060A14;
  --ment-bg-surface: #0B1327;
  --ment-bg-card: #0F1A36;
  --ment-bg-elevated: #16254E;
  --ment-border: rgba(255, 255, 255, 0.08);
  --ment-border-light: rgba(255, 255, 255, 0.14);
  --ment-border-glass: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: fixed;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: fixed;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background-color: var(--ment-bg-deep);
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* Background Atmosphere - Deep Multi-Layer Sapphire Bloom */
.ambient-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 380px;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(37, 99, 235, 0.25) 0%, rgba(56, 189, 248, 0.1) 40%, transparent 70%),
    radial-gradient(circle at 80% 60%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events-none;
  z-index: 0;
}

/* Digital Bank Account Card (Titanium Sapphire Luxury) */
.t-account-card {
  position: relative;
  border-radius: 28px;
  padding: 22px 20px;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(37, 99, 235, 0.18) 0%, transparent 50%),
    #0C152B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 24px 50px -12px rgba(2, 6, 23, 0.9),
    0 0 30px -8px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.t-account-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events-none;
}

/* Asset Mini-Pills inside Account Card */
.t-asset-pill {
  position: relative;
  padding: 10px 11px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%), #101B38;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.t-asset-pill:active {
  transform: scale(0.96);
  border-color: rgba(59, 130, 246, 0.5);
  background: #142247;
}

/* Buttons */
.t-btn-blue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 10px 24px -4px var(--ment-blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.t-btn-blue:active {
  transform: scale(0.97);
  filter: brightness(0.92);
  box-shadow: 0 4px 12px -2px var(--ment-blue-glow);
}

.t-btn-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%), #101B38;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.15s ease;
}

.t-btn-dark:active {
  transform: scale(0.97);
  background: #16254E;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Quick Amount Chips (+500, +1 000, +5 000, MAX) */
.chip-amount {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-amount:hover, .chip-amount:active {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #60A5FA;
  transform: scale(0.96);
}

/* Action Squircle */
.t-action-squircle {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%), #111C3A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.t-action-squircle:active {
  transform: scale(0.92);
  background: #182852;
  border-color: rgba(59, 130, 246, 0.4);
}

.t-action-squircle.blue {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -2px var(--ment-blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.t-action-squircle.blue:active {
  transform: scale(0.92);
  filter: brightness(0.9);
}

/* Surface Tiles */
.t-tile {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), var(--ment-bg-surface);
  border: 1px solid var(--ment-border);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.t-tile:active {
  background: #111D3B;
  border-color: rgba(59, 130, 246, 0.35);
  transform: scale(0.985);
}

/* Segmented Control (iOS 17 style capsule) */
.t-segment-control {
  display: flex;
  padding: 3.5px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 3px;
}

.t-segment-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.t-segment-btn.active {
  background: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.t-segment-btn:active {
  transform: scale(0.97);
}

/* Stories Carousel */
.t-stories-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 20px 12px 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.t-stories-container::-webkit-scrollbar {
  display: none;
}

.t-story-item {
  flex: 0 0 108px;
  height: 98px;
  border-radius: 20px;
  padding: 10px;
  background: #0C152B;
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x;
}

.t-story-item:active {
  transform: scale(0.94);
  border-color: #38BDF8;
}

/* Fullscreen Story Viewer */
.story-viewer-backdrop {
  position: fixed;
  inset: 0;
  background: #040710;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease-out;
}

.story-progress-bar {
  display: flex;
  gap: 4px;
  padding: 12px 16px 4px 16px;
  position: absolute;
  top: 0;
  inset-x: 0;
  z-index: 100000;
}

.story-progress-seg {
  height: 2.5px;
  flex: 1;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  background: #3B82F6;
  transition: width 0.1s linear;
}

/* Bottom Sheet */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.modal-sheet {
  width: 100%;
  max-width: 520px;
  background: #0B1327;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px 32px 0 0;
  padding: 16px 20px max(24px, env(safe-area-inset-bottom, 24px));
  box-shadow: 
    0 -25px 70px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92dvh;
  overflow-y: auto;
  position: relative;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Inputs */
.t-input {
  width: 100%;
  background: #111C3A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 15px 18px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.t-input:focus {
  border-color: #3B82F6;
  background: #16254E;
  box-shadow: 0 0 18px var(--ment-blue-glow), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.t-input::placeholder {
  color: #64748B;
  font-weight: 400;
}

/* Floating Toast System */
.toast-container {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 14px));
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 999999;
  pointer-events: none;
  padding: 0 16px;
}

.toast-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  max-width: 94%;
  border-radius: 999px;
  background: rgba(11, 19, 39, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.85), 0 0 24px -2px var(--ment-blue-glow);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.2s ease;
  cursor: pointer;
}

.toast-pill.success {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.85), 0 0 24px -2px rgba(16, 185, 129, 0.3);
}

.toast-pill.error {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.85), 0 0 24px -2px rgba(244, 63, 94, 0.3);
}

.toast-pill.warning {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.85), 0 0 24px -2px rgba(245, 158, 11, 0.3);
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Bottom Navigation Dock */
.t-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 19, 39, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px max(14px, env(safe-area-inset-bottom, 14px));
  z-index: 40;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -12px 36px rgba(2, 6, 23, 0.75);
}

.t-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 6px 4px;
  border-radius: 14px;
  background: transparent;
  border: none;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.t-nav-item:active {
  transform: scale(0.92);
}

.t-nav-item.active {
  color: #38BDF8;
}

.t-nav-item.active .t-nav-icon-wrap {
  color: #60A5FA;
  transform: translateY(-2px);
}

.t-nav-item.active .t-nav-dot {
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #38BDF8;
  box-shadow: 0 0 8px #38BDF8;
}

.t-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.1px;
  margin-top: 3px;
  transition: color 0.2s ease;
}

/* Scanner Laser Animation */
@keyframes scanLaser {
  0% { top: 8%; opacity: 0.8; }
  50% { top: 92%; opacity: 1; }
  100% { top: 8%; opacity: 0.8; }
}

.scanner-laser {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent 0%, #38BDF8 25%, #60A5FA 50%, #38BDF8 75%, transparent 100%);
  box-shadow: 0 0 16px #38BDF8, 0 0 32px #2563EB;
  animation: scanLaser 2.6s ease-in-out infinite;
  border-radius: 999px;
  pointer-events-none;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
