/* MENT PAY • T-BANK (Т-БАНК) LUXURY MOBILE BANKING DESIGN */
@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 {
  --t-yellow: #FFDD2D;
  --t-yellow-glow: rgba(255, 221, 45, 0.25);
  --t-bg-deep: #0D0E12;
  --t-bg-surface: #17181F;
  --t-bg-card: #20222B;
  --t-bg-elevated: #282A36;
  --t-border: rgba(255, 255, 255, 0.08);
  --t-border-light: rgba(255, 255, 255, 0.14);
}

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

body {
  background-color: var(--t-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 */
.ambient-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(255, 221, 45, 0.08) 0%, rgba(10, 132, 255, 0.04) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events-none;
  z-index: 0;
}

/* T-Bank Card */
.t-card-black {
  position: relative;
  border-radius: 24px;
  padding: 22px 24px;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%),
    radial-gradient(circle at 100% 0%, rgba(255, 221, 45, 0.12) 0%, transparent 60%),
    #17181F;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 24px 48px -12px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

/* Buttons */
.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: #000000;
  background: var(--t-yellow);
  box-shadow: 0 10px 24px -4px var(--t-yellow-glow);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

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

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

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

/* T-Bank Quick Action Squircle */
.t-action-squircle {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: #20222B;
  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.25);
}

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

.t-action-squircle.yellow {
  background: rgba(255, 221, 45, 0.15);
  border-color: rgba(255, 221, 45, 0.3);
  color: var(--t-yellow);
}

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

.t-tile:active {
  background: #1C1E26;
}

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

.t-story-item {
  flex: 0 0 102px;
  height: 92px;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%), #17181F;
  border: 1.5px solid rgba(255, 221, 45, 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;
}

.t-story-item:active {
  transform: scale(0.95);
}

/* Fullscreen Story Viewer */
.story-viewer-backdrop {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 100;
  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: 110;
}

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

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

/* Bottom Sheet */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  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: #181921;
  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.9);
  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: #232530;
  border: 1px solid rgba(255, 255, 255, 0.08);
  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: var(--t-yellow);
  background: #272936;
  box-shadow: 0 0 15px var(--t-yellow-glow);
}

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