/* MENT PAY • LUXURY BLUE MOBILE BANKING DESIGN (v2.4 Beta) */
@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.35);
  --ment-cyan: #38BDF8;
  --ment-bg-deep: #080D1A;
  --ment-bg-surface: #0E172E;
  --ment-bg-card: #131E3A;
  --ment-bg-elevated: #1A274E;
  --ment-border: rgba(255, 255, 255, 0.08);
  --ment-border-light: rgba(255, 255, 255, 0.15);
}

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

body {
  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;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere - Deep Sapphire Bloom */
.ambient-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.22) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 75%);
  filter: blur(80px);
  pointer-events-none;
  z-index: 0;
}

/* Digital Bank Account Card (Replacing plastic card) */
.t-account-card {
  position: relative;
  border-radius: 26px;
  padding: 22px 22px;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%),
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.25) 0%, transparent 60%),
    #0E172E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 24px 48px -12px rgba(2, 6, 23, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

/* Buttons */
.t-btn-blue, .t-btn-yellow {
  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.2);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.t-btn-blue:active, .t-btn-yellow:active {
  transform: scale(0.98);
  filter: brightness(0.92);
}

.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: #131E3A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.15s ease;
}

.t-btn-dark:active {
  transform: scale(0.98);
  background: #1A274E;
}

/* Action Squircle */
.t-action-squircle {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: #131E3A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.t-action-squircle:active {
  transform: scale(0.92);
  background: #1A274E;
}

.t-action-squircle.blue, .t-action-squircle.yellow {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60A5FA;
}

.t-action-squircle.disabled {
  opacity: 0.65;
  background: #0E172E;
  border-color: rgba(255, 255, 255, 0.05);
  color: #64748B;
}

.badge-soon {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1.5px 5px;
  border-radius: 999px;
  background: #1E293B;
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1;
  pointer-events: none;
}

/* Surface Tiles */
.t-tile {
  background: var(--ment-bg-surface);
  border: 1px solid var(--ment-border);
  border-radius: 20px;
  padding: 16px 18px;
  transition: all 0.2s ease;
}

.t-tile:active {
  background: #131E3A;
}

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

.t-story-item {
  flex: 0 0 106px;
  height: 96px;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%), #0E172E;
  border: 1.5px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  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: #3B82F6;
}

/* Fullscreen Story Viewer */
.story-viewer-backdrop {
  position: fixed;
  inset: 0;
  background: #060A14;
  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.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.modal-sheet {
  width: 100%;
  max-width: 500px;
  background: #0E172E;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px 28px 0 0;
  padding: 18px 20px max(24px, env(safe-area-inset-bottom, 24px));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.95);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92dvh;
  overflow-y: auto;
}

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

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

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

.t-input:focus {
  border-color: #3B82F6;
  background: #1A274E;
  box-shadow: 0 0 15px var(--ment-blue-glow);
}

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