:root {
  --bg-deep: #05070d;
  --apple-blue: #0A84FF;
  --apple-cyan: #00F2FE;
  --apple-amber: #FFB703;
  --apple-red: #FF453A;
  --apple-ruby: #FF4D6D;
  --apple-green: #30D158;
  --apple-gray: #8E8E93;
  --glass-surface: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --card-border: rgba(255, 255, 255, 0.24);
  --spring-curve: cubic-bezier(0.16, 1, 0.3, 1);
}

/* GLOBAL TOZA VERSTKA */
html, body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body.no-scroll {
  overflow: hidden !important;
  touch-action: none !important;
  height: 100vh !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  background-color: var(--bg-deep);
  color: #FFFFFF;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 36px;
  overflow-x: hidden;
  position: relative;
}

/* RGB AURORA MESH ORQA FON */
.aurora-mesh-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.38;
  will-change: transform;
  animation: floatAurora 15s infinite alternate ease-in-out;
}

.orb-1 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #0A84FF 0%, #00F2FE 70%, transparent 100%);
  top: -80px;
  left: -80px;
}

.orb-2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #7209B7 0%, #FF4D6D 70%, transparent 100%);
  top: 32%;
  right: -100px;
  animation-duration: 17s;
  animation-delay: -3s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #005ce6 0%, #FFB703 70%, transparent 100%);
  bottom: -60px;
  left: 15%;
  animation-duration: 16s;
  animation-delay: -6s;
}

@keyframes floatAurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 35px) scale(1.08); }
  100% { transform: translate(-25px, 20px) scale(0.95); }
}

/* TIL OVERLAY */
.lang-backdrop-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  opacity: 0;
  pointer-events: none;
}

.lang-backdrop-overlay.is-open {
  pointer-events: auto;
}

/* ==================== 1. APPLE PIN-CODE INTRO ==================== */
.pin-intro-screen {
  position: fixed;
  inset: 0;
  background: #030407;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow: hidden;
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.pin-intro-screen.is-unlocked {
  opacity: 0;
  transform: scale(1.08) translateY(-40px);
  pointer-events: none;
}

.intro-corner-aurora {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0;
  transform: scale(0.65);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s var(--spring-curve), background 0.8s ease;
  z-index: 0;
}

.intro-corner-aurora.step-1 {
  opacity: 0.45;
  transform: scale(0.9);
  background: radial-gradient(circle, rgba(10, 132, 255, 0.7) 0%, transparent 70%);
}

.intro-corner-aurora.step-2 {
  opacity: 0.55;
  transform: scale(1.05);
  background: radial-gradient(circle, rgba(255, 183, 3, 0.65) 0%, rgba(10, 132, 255, 0.35) 50%, transparent 75%);
}

.intro-corner-aurora.step-3 {
  opacity: 0.65;
  transform: scale(1.2);
  background: radial-gradient(circle, rgba(0, 242, 254, 0.7) 0%, rgba(114, 9, 183, 0.4) 50%, transparent 75%);
}

.intro-corner-aurora.step-4 {
  opacity: 0.85;
  transform: scale(1.4);
  background: radial-gradient(circle, rgba(255, 77, 109, 0.75) 0%, rgba(0, 242, 254, 0.4) 45%, rgba(10, 132, 255, 0.3) 70%, transparent 90%);
}

.pin-intro-content {
  width: 100%;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.intro-cards-cluster {
  position: relative;
  width: 130px;
  height: 82px;
  margin-bottom: 2px;
}

.intro-mini-card {
  position: absolute;
  width: 110px;
  height: 68px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.85);
}

.intro-mini-card.c-blue {
  background: linear-gradient(135deg, #0A84FF 0%, #003e8a 100%);
  transform: rotate(-13deg) translate(-8px, 4px);
  z-index: 1;
}

.intro-mini-card.c-gold {
  background: linear-gradient(135deg, #FFB703 0%, #7a4600 100%);
  transform: rotate(0deg) translate(8px, -4px);
  z-index: 2;
}

.intro-mini-card.c-ruby {
  background: linear-gradient(135deg, #FF4D6D 0%, #60029b 100%);
  transform: rotate(13deg) translate(22px, 8px);
  z-index: 3;
}

.pin-header-texts {
  text-align: center;
}

.pin-header-texts h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  background: linear-gradient(180deg, #FFFFFF 40%, #A2A7B5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pin-header-texts p {
  font-size: 12.5px;
  color: var(--apple-gray);
  margin-top: 4px;
}

.pin-dots-display {
  display: flex;
  gap: 16px;
  margin: 6px 0 10px;
}

.pin-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.24s var(--spring-curve);
}

.pin-dot span {
  width: 0px;
  height: 0px;
  border-radius: 50%;
  transition: all 0.24s var(--spring-curve);
}

.pin-dot.dot-1 { border-color: var(--apple-blue); transform: scale(1.15); }
.pin-dot.dot-1 span { width: 100%; height: 100%; background: var(--apple-blue); box-shadow: 0 0 12px var(--apple-blue); }

.pin-dot.dot-2 { border-color: var(--apple-amber); transform: scale(1.15); }
.pin-dot.dot-2 span { width: 100%; height: 100%; background: var(--apple-amber); box-shadow: 0 0 12px var(--apple-amber); }

.pin-dot.dot-3 { border-color: var(--apple-cyan); transform: scale(1.15); }
.pin-dot.dot-3 span { width: 100%; height: 100%; background: var(--apple-cyan); box-shadow: 0 0 12px var(--apple-cyan); }

.pin-dot.dot-4 { border-color: var(--apple-ruby); transform: scale(1.15); }
.pin-dot.dot-4 span { width: 100%; height: 100%; background: var(--apple-ruby); box-shadow: 0 0 12px var(--apple-ruby); }

.pin-dot.success { border-color: #30D158 !important; transform: scale(1.2); }
.pin-dot.success span { width: 100%; height: 100%; background: #30D158 !important; box-shadow: 0 0 14px #30D158 !important; }

.pin-keypad {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.key-row {
  display: flex;
  justify-content: space-between;
}

.key-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all 0.18s ease;
}

.key-empty-slot {
  width: 66px;
  height: 66px;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.k-num { font-size: 24px; font-weight: 500; line-height: 1; }
.k-sub { font-size: 8.5px; font-weight: 700; letter-spacing: 1px; color: rgba(255, 255, 255, 0.5); margin-top: 2px; }

.key-btn.pressed-1 { background: rgba(10, 132, 255, 0.45); border-color: var(--apple-blue); box-shadow: 0 0 24px rgba(10, 132, 255, 0.8); transform: scale(0.92); }
.key-btn.pressed-2 { background: rgba(255, 183, 3, 0.45); border-color: var(--apple-amber); box-shadow: 0 0 24px rgba(255, 183, 3, 0.8); transform: scale(0.92); }
.key-btn.pressed-3 { background: rgba(0, 242, 254, 0.45); border-color: var(--apple-cyan); box-shadow: 0 0 24px rgba(0, 242, 254, 0.8); transform: scale(0.92); }
.key-btn.pressed-4 { background: rgba(255, 77, 109, 0.45); border-color: var(--apple-ruby); box-shadow: 0 0 24px rgba(255, 77, 109, 0.8); transform: scale(0.92); }

/* ==================== 2. KASKADLI PAYDO BO'LISH ==================== */
.cascade-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s var(--spring-curve);
  will-change: opacity, transform;
}

.cascade-item.cascade-visible {
  opacity: 1;
  transform: none !important;
}

/* ==================== 3. ASOSIY DASHBOARD (RESPONSIVE & PC) ==================== */
.dashboard-shell {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  body {
    padding: 42px 32px 48px;
  }
  .dashboard-shell {
    max-width: 1040px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: start;
  }
  .card-stage {
    height: 240px !important;
  }
  .card {
    height: 226px !important;
    padding: 22px 24px !important;
  }
  .card-pan-box {
    max-width: 240px !important;
  }
  .card-pan-number {
    font-size: 13.5px !important;
  }
  .right-panel {
    position: sticky;
    top: 32px;
  }
}

.left-panel, .right-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* HEADER & IXCHAM 1 QATORLI MATN */
.app-header {
  position: relative;
  z-index: 100000 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 12px;
}

.header-texts {
  flex: 1;
  min-width: 0;
  padding-right: 10px;
}

.header-texts h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  background: linear-gradient(180deg, #FFFFFF 30%, #BAC1D2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-subtitle {
  font-size: 12px;
  color: var(--apple-gray);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 100001 !important;
  flex-shrink: 0;
}

/* TIL ALMASHTIRISH TUGMASI (LIQUID GLASS) */
.lang-selector-container {
  position: relative;
  z-index: 100002 !important;
}

.lang-pill-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  color: #FFFFFF;
  border-radius: 12px;
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, background 0.2s;
}

.lang-pill-btn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.14);
}

.globe-icon { font-size: 14px; }
.arrow-indicator { font-size: 11px; color: var(--apple-gray); margin-left: 2px; }

/* 100% ISHONCHLI APPLE LIQUID GLASS DROPDOWN */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(14, 18, 30, 0.98) !important;
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 6px;
  min-width: 155px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.98), 0 0 25px rgba(10, 132, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 9999999 !important;
  opacity: 0;
  transform: scale(0.92) translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.22s var(--spring-curve);
}

.lang-dropdown-menu.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.lang-opt {
  background: transparent;
  border: none;
  color: #D1D1D6;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s;
}

.lang-opt:hover, .lang-opt:active {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.lang-opt.active {
  background: rgba(10, 132, 255, 0.28);
  color: var(--apple-blue);
}

.lang-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
}

/* ZEI LOGO */
.zei-logo-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.25s var(--spring-curve);
}

.zei-logo-btn:active { transform: scale(0.92); }
.zei-logo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zei-logo-gradient { font-weight: 900; font-size: 14.5px; letter-spacing: 1px; background: linear-gradient(135deg, #0A84FF 0%, #64D2FF 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* TAB BAR */
.tab-control-wrap {
  position: relative;
  z-index: 10;
  margin-bottom: 14px;
  width: 100%;
}

.ios-segment-bar {
  position: relative;
  display: flex;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(35px) saturate(190%);
  -webkit-backdrop-filter: blur(35px) saturate(190%);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ios-segment-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc((100% - 8px) / 4);
  background: linear-gradient(135deg, #0A84FF 0%, #005ce6 100%);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.6);
  transition: transform 0.38s var(--spring-curve);
  pointer-events: none;
  z-index: 1;
}

.segment-tab {
  flex: 1;
  width: 25%;
  height: 38px;
  border: none;
  background: transparent;
  color: #98989F;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.segment-tab.active { color: #FFFFFF; }

/* ==================== 4. KARTALAR SAHNASI (PREMIUM 60FPS) ==================== */
.card-stage {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 226px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ambient-glow {
  position: absolute;
  width: 86%;
  height: 84%;
  border-radius: 40px;
  filter: blur(52px);
  opacity: 0.65;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.6) 0%, transparent 70%);
  transition: background 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.cards-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  z-index: 2;
  touch-action: pan-y;
}

.cards-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.42s var(--spring-curve);
  will-change: transform;
}

.card {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.95);
  border: 1px solid var(--card-border);
  overflow: hidden;
  position: relative;
  transition: opacity 0.35s ease, transform 0.42s var(--spring-curve);
  transform: scale(0.95);
  opacity: 0.4;
}

.card.active {
  opacity: 1;
  transform: scale(1);
}

/* 4K MULTI-TONE MESH GRADIENTLAR */
.card-uzcard {
  background: radial-gradient(at 10% 15%, rgba(0, 210, 255, 0.65) 0px, transparent 55%), radial-gradient(at 90% 85%, rgba(114, 9, 183, 0.55) 0px, transparent 55%), linear-gradient(135deg, #0f3d99 0%, #081a4a 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.card-humo {
  background: radial-gradient(at 15% 15%, rgba(255, 183, 3, 0.6) 0px, transparent 55%), radial-gradient(at 85% 85%, rgba(184, 115, 51, 0.5) 0px, transparent 55%), linear-gradient(135deg, #2b1f14 0%, #0d0a07 100%);
  border-color: rgba(255, 179, 0, 0.5);
  box-shadow: inset 0 1px 1px rgba(255, 215, 0, 0.4);
}
.card-humo .card-network-title { color: #FFB703; text-shadow: 0 0 12px rgba(255, 183, 3, 0.5); }

.card-visa {
  background: radial-gradient(at 15% 15%, rgba(0, 245, 212, 0.6) 0px, transparent 55%), radial-gradient(at 85% 85%, rgba(33, 150, 243, 0.5) 0px, transparent 55%), linear-gradient(135deg, #093452 0%, #031524 100%);
  border-color: rgba(0, 245, 212, 0.5);
  box-shadow: inset 0 1px 1px rgba(0, 245, 212, 0.4);
}
.card-visa .card-network-title { color: #00F5D4; text-shadow: 0 0 12px rgba(0, 245, 212, 0.5); }

.card-master {
  background: radial-gradient(at 15% 15%, rgba(247, 37, 133, 0.6) 0px, transparent 55%), radial-gradient(at 85% 85%, rgba(114, 9, 183, 0.5) 0px, transparent 55%), linear-gradient(135deg, #4d0d21 0%, #150309 100%);
  border-color: rgba(247, 37, 133, 0.5);
  box-shadow: inset 0 1px 1px rgba(247, 37, 133, 0.4);
}
.card-master .card-network-title { color: #FF4D6D; text-shadow: 0 0 12px rgba(255, 77, 109, 0.5); }

.card-content-side {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  padding-right: 12px;
  z-index: 2;
}

.card-header-row { display: flex; align-items: center; gap: 10px; }
.emv-chip {
  width: 40px;
  height: 28px;
  background: linear-gradient(135deg, #FFE89E 0%, #B8860B 100%);
  border-radius: 7px;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 2px 6px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.chip-circuit-line { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(0, 0, 0, 0.35); }
.contactless-symbol { width: 17px; height: 17px; stroke: rgba(255, 255, 255, 0.85); }
.card-network-title { font-size: 15px; font-weight: 800; letter-spacing: 0.8px; }

.card-pan-box {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 220px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.card-pan-box:active { transform: scale(0.96); background: rgba(255, 255, 255, 0.14); }
.card-pan-box.copied { border-color: #30D158; background: rgba(48, 209, 88, 0.22); }
.card-pan-number { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; white-space: nowrap; }

.copy-trigger-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s var(--spring-curve);
}
.copy-trigger-btn:active { transform: scale(0.8); }

.card-security-meta { font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, 0.8); letter-spacing: 0.6px; display: flex; align-items: center; gap: 6px; }
.pulse-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--apple-green); box-shadow: 0 0 8px var(--apple-green); }

/* QR KOD */
.card-qr-side {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
}

.qr-squircle-plate {
  position: relative;
  width: 84px;
  height: 84px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.card-qr-side:active .qr-squircle-plate { transform: scale(0.92); }
.qr-squircle-plate img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.35s ease; }
.qr-squircle-plate.loaded img { opacity: 1; }

.qr-loading-spinner {
  position: absolute;
  inset: 0;
  background: #0d1017;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 5;
  transition: opacity 0.3s ease;
}
.qr-squircle-plate.loaded .qr-loading-spinner { opacity: 0; pointer-events: none; }
.mini-spin { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--apple-blue); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qr-loading-spinner span { font-size: 8.5px; font-weight: 700; color: var(--apple-gray); white-space: nowrap; }
.qr-action-hint { margin-top: 5px; font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }

/* XAVFSIZLIK STATUSI */
.ios-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: #98989F;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  margin-top: 6px;
}

/* ==================== 5. TO'LOV QOIDALARI ==================== */
.terms-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 4px;
}

.terms-headline {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--apple-gray);
}

.alert-box {
  background: rgba(255, 69, 58, 0.09);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 69, 58, 0.32);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.alert-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 69, 58, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-details h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--apple-red);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.alert-details p {
  font-size: 12px;
  line-height: 1.55;
  color: #FFB3AE;
}

.terms-list-inset {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(35px) saturate(190%);
  -webkit-backdrop-filter: blur(35px) saturate(190%);
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.term-row {
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-row:last-child {
  border-bottom: none;
}

.term-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.term-desc {
  flex: 1;
  min-width: 0;
}

.term-desc h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #FFFFFF;
}

.term-desc p {
  font-size: 12px;
  line-height: 1.5;
  color: #8E8E93;
}

.term-desc strong {
  color: #FFFFFF;
}

.app-footer {
  width: 100%;
  text-align: center;
  padding: 24px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #697089;
  z-index: 1;
}

.app-footer a {
  color: #8E8E93;
  text-decoration: none;
}

/* ==================== 6. KASKADLI SILLIQ MATN ANIMATSIYASI ==================== */
.i18n-text {
  display: inline-block;
  transition: transform 0.22s var(--spring-curve), opacity 0.18s ease;
  will-change: transform, opacity;
}

.i18n-slide-out {
  opacity: 0 !important;
  transform: translateY(6px);
}

.i18n-slide-prep {
  opacity: 0 !important;
  transform: translateY(-8px);
  transition: none !important;
}

.i18n-slide-in {
  opacity: 1 !important;
  transform: translateY(0);
  transition: transform 0.28s var(--spring-curve), opacity 0.24s ease !important;
}

/* DYNAMIC ISLAND */
.ios-dynamic-island {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translate3d(-50%, -90px, 0) scale(0.85);
  background: rgba(22, 26, 38, 0.94);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 20px;
  z-index: 30000;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: transform 0.45s var(--spring-curve), opacity 0.25s ease;
  will-change: transform, opacity;
}

.ios-dynamic-island.is-active {
  transform: translate3d(-50%, 0, 0) scale(1);
  opacity: 1;
}

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

.island-icon-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
}

.island-label {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

/* QR MODAL */
.qr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px;
}

.qr-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.qr-modal-card {
  position: relative;
  background: rgba(18, 22, 34, 0.88);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  padding: 28px 24px 22px;
  width: 100%;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95);
  transform: scale(0.9);
  transition: transform 0.35s var(--spring-curve);
}

.qr-modal-backdrop.is-open .qr-modal-card {
  transform: scale(1);
}

.qr-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-modal-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(10, 132, 255, 0.25);
  color: var(--apple-blue);
  border: 1px solid rgba(10, 132, 255, 0.4);
}

.qr-modal-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
}

.qr-modal-img-wrap {
  width: 220px;
  file-width: 220px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}

.qr-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-modal-card p {
  font-size: 12px;
  color: var(--apple-gray);
  text-align: center;
}

.qr-modal-copy-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}

.qr-modal-copy-btn:active {
  transform: scale(0.96);
}
