/* ==========================================================================
   DigiDrop MM — Telegram iOS UI Kit Design System
   Based on The Open Platform (TOP / FirstStageLabs) Figma Design System
   ========================================================================== */

:root {
  /* System Fonts */
  --font-ios: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Telegram WebApp Theme Variables (with iOS Dark Mode Defaults) */
  --tg-theme-bg-color: #000000;
  --tg-theme-secondary-bg-color: #1C1C1E;
  --tg-theme-text-color: #FFFFFF;
  --tg-theme-hint-color: #8E8E93;
  --tg-theme-link-color: #0A84FF;
  --tg-theme-button-color: #2481CC;
  --tg-theme-button-text-color: #FFFFFF;

  /* Native iOS Palette Tokens (Dark Mode) */
  --ios-bg-primary: var(--tg-theme-bg-color, #000000);
  --ios-bg-secondary: var(--tg-theme-secondary-bg-color, #1C1C1E);
  --ios-bg-tertiary: #2C2C2E;
  --ios-bg-grouped: #000000;
  --ios-cell-bg: var(--tg-theme-secondary-bg-color, #1C1C1E);
  --ios-cell-highlight: rgba(255, 255, 255, 0.08);

  --ios-text-primary: var(--tg-theme-text-color, #FFFFFF);
  --ios-text-secondary: var(--tg-theme-hint-color, #8E8E93);
  --ios-text-tertiary: #636366;

  --ios-separator: rgba(84, 84, 88, 0.45);
  --ios-separator-light: rgba(84, 84, 88, 0.25);
  --ios-search-bg: rgba(118, 118, 128, 0.24);
  --ios-fill-tertiary: rgba(118, 118, 128, 0.16);

  /* iOS Semantic Colors */
  --ios-blue: #0A84FF;
  --ios-green: #30D158;
  --ios-orange: #FF9F0A;
  --ios-red: #FF453A;
  --ios-gray: #8E8E93;

  /* Metrics & Dimensions */
  --ios-radius-sheet: 16px;
  --ios-radius-card: 14px;
  --ios-radius-search: 10px;
  --ios-radius-pill: 9999px;
  --ios-tabbar-height: 49px;
  --ios-navbar-height: 44px;

  /* Legacy variable fallbacks for backward compatibility */
  --bg-obsidian: var(--ios-bg-primary);
  --bg-surface: var(--ios-bg-secondary);
  --bg-elevated: var(--ios-bg-tertiary);
  --bg-card: var(--ios-cell-bg);
  --bg-glass: rgba(28, 28, 30, 0.88);
  --border: var(--ios-separator-light);
  --border-light: var(--ios-separator);
  --border-cyan: rgba(10, 132, 255, 0.35);
  --cyan: var(--ios-blue);
  --cyan-glow: rgba(10, 132, 255, 0.2);
  --emerald: var(--ios-green);
  --emerald-glow: rgba(48, 209, 88, 0.2);
  --amber: var(--ios-orange);
  --amber-glow: rgba(255, 159, 10, 0.2);
  --rose: var(--ios-red);
  --text-primary: var(--ios-text-primary);
  --text-secondary: var(--ios-text-secondary);
  --text-dim: var(--ios-text-tertiary);
  --radius-xl: var(--ios-radius-sheet);
  --radius-lg: var(--ios-radius-card);
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-ui: var(--font-ios);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-sheet: 0 -8px 30px rgba(0, 0, 0, 0.5);
}

/* Telegram iOS Light Theme Adaptation */
body.tg-light-theme {
  --ios-bg-primary: var(--tg-theme-bg-color, #F2F2F7);
  --ios-bg-secondary: var(--tg-theme-secondary-bg-color, #FFFFFF);
  --ios-bg-tertiary: #E5E5EA;
  --ios-bg-grouped: #F2F2F7;
  --ios-cell-bg: var(--tg-theme-secondary-bg-color, #FFFFFF);
  --ios-cell-highlight: rgba(0, 0, 0, 0.05);

  --ios-text-primary: var(--tg-theme-text-color, #000000);
  --ios-text-secondary: var(--tg-theme-hint-color, #8E8E93);
  --ios-text-tertiary: #C7C7CC;

  --ios-separator: rgba(60, 60, 67, 0.29);
  --ios-separator-light: rgba(60, 60, 67, 0.14);
  --ios-search-bg: rgba(118, 118, 128, 0.12);
  --ios-fill-tertiary: rgba(118, 118, 128, 0.08);

  --ios-blue: #007AFF;
  --ios-green: #34C759;
  --ios-orange: #FF9500;
  --ios-red: #FF3B30;
}

/* Reset & Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-ios);
  background-color: var(--ios-bg-primary);
  color: var(--ios-text-primary);
  line-height: 1.45;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding-bottom: calc(var(--ios-tabbar-height) + env(safe-area-inset-bottom, 34px) + 16px);
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

#app {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: var(--ios-bg-primary);
}

/* Remove number spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ==========================================================================
   1. Telegram iOS Navigation Bar & Top Header
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(25px) saturate(190%);
  -webkit-backdrop-filter: blur(25px) saturate(190%);
  border-bottom: 0.5px solid var(--ios-separator);
  padding: 6px 16px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  margin-bottom: 0;
}

.store-filter-bar {
  margin-bottom: 12px;
}

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

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0A84FF 0%, #5E5CE6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.35);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
  color: var(--ios-text-primary);
  line-height: 1;
}

.brand-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ios-green);
  box-shadow: 0 0 6px var(--ios-green);
  animation: iosPulse 2s infinite;
}

@keyframes iosPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  background: var(--ios-fill-tertiary);
  color: var(--ios-blue);
  border: none;
  border-radius: var(--ios-radius-pill);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.1px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.header-btn:active {
  opacity: 0.65;
  transform: scale(0.97);
}

/* Native iOS Search Bar */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: var(--ios-text-secondary);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 36px;
  background: var(--ios-search-bg);
  border: none;
  border-radius: var(--ios-radius-search);
  padding: 0 32px 0 32px;
  color: var(--ios-text-primary);
  font-family: var(--font-ios);
  font-size: 15px;
  letter-spacing: -0.2px;
  outline: none;
  transition: background-color 0.2s ease;
}

.search-box input:focus {
  background: rgba(118, 118, 128, 0.32);
}

.search-box input::placeholder {
  color: var(--ios-text-secondary);
  font-size: 14.5px;
}

.clear-search-btn {
  position: absolute;
  right: 8px;
  background: var(--ios-text-secondary);
  border: none;
  color: var(--ios-bg-primary);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* iOS Segmented / Filter Chips Bar */
.category-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 2px;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  background: var(--ios-fill-tertiary);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.15px;
  color: var(--ios-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill.active {
  background: var(--ios-blue);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3);
}

/* ==========================================================================
   2. Main Layout & Product Grid (iOS Store Cards)
   ========================================================================== */

.app-main {
  padding: 12px 16px 20px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: iosFadeIn 0.2s ease-out;
}

@keyframes iosFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* iOS Inset Grouped Product Card */
.product-card {
  background: var(--ios-cell-bg);
  border: 0.5px solid var(--ios-separator-light);
  border-radius: var(--ios-radius-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  position: relative;
  overflow: hidden;
}

.product-card:active {
  transform: scale(0.985);
  background-color: var(--ios-cell-highlight);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Native iOS Badges */
.badge-cat {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ios-text-secondary);
}

.badge-warranty {
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  line-height: 1.25;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  flex-shrink: 0;
}

.badge-dot.full {
  background: var(--ios-green);
  box-shadow: 0 0 5px rgba(48, 209, 88, 0.6);
}

.badge-dot.duration {
  background: var(--ios-orange);
  box-shadow: 0 0 5px rgba(255, 159, 10, 0.6);
}

.badge-dot.none {
  background: var(--ios-gray);
}

.badge-warranty.full {
  color: var(--ios-green);
}

.badge-warranty.duration {
  color: var(--ios-orange);
}

.badge-warranty.none {
  color: var(--ios-text-secondary);
}

.card-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ios-text-primary);
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin-top: 6px;
}

.card-desc-snippet {
  font-size: 12.5px;
  color: var(--ios-text-secondary);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid var(--ios-separator-light);
  padding-top: 10px;
  margin-top: auto;
}

.card-price-group {
  display: flex;
  flex-direction: column;
}

.card-mmk-price {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ios-text-primary);
  letter-spacing: -0.3px;
}

/* iOS App Store / Telegram Stars Action Capsule Button */
.card-buy-btn {
  background: rgba(10, 132, 255, 0.15);
  color: var(--ios-blue);
  border: none;
  padding: 5px 14px;
  border-radius: var(--ios-radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.card-buy-btn:active {
  opacity: 0.65;
  transform: scale(0.96);
}

/* Skeleton Loading Cards */
.skeleton-card {
  height: 145px;
  border-radius: var(--ios-radius-card);
  background: linear-gradient(90deg, #1C1C1E 25%, #2C2C2E 50%, #1C1C1E 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border: 0.5px solid var(--ios-separator-light);
}

.skeleton-order {
  height: 100px;
  border-radius: var(--ios-radius-card);
  background: linear-gradient(90deg, #1C1C1E 25%, #2C2C2E 50%, #1C1C1E 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border: 0.5px solid var(--ios-separator-light);
  margin-bottom: 10px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   3. Inset Grouped Table Views (My Keys Vault & Payment Tab)
   ========================================================================== */

.section-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 17px;
  font-weight: 650;
  color: var(--ios-text-primary);
  letter-spacing: -0.3px;
}

.section-desc {
  font-size: 12.5px;
  color: var(--ios-text-secondary);
}

.icon-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ios-fill-tertiary);
  border: none;
  color: var(--ios-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.2s ease;
}

.icon-action-btn:active {
  transform: rotate(180deg);
  opacity: 0.7;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Inset Grouped Order Card */
.order-vault-card {
  background: var(--ios-cell-bg);
  border: 0.5px solid var(--ios-separator-light);
  border-radius: var(--ios-radius-card);
  padding: 14px;
}

.order-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-id-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ios-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--ios-radius-pill);
}

.order-status-badge.delivered {
  background: rgba(48, 209, 88, 0.15);
  color: var(--ios-green);
}

.order-status-badge.pending {
  background: rgba(255, 159, 10, 0.15);
  color: var(--ios-orange);
}

.order-status-badge.failed {
  background: rgba(255, 69, 58, 0.15);
  color: var(--ios-red);
}

.order-item-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--ios-text-primary);
  margin-bottom: 4px;
}

.order-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ios-text-secondary);
  margin-bottom: 10px;
}

.delivered-keys-box {
  background: rgba(0, 0, 0, 0.35);
  border: 0.5px solid var(--ios-separator-light);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
}

.key-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #67E8F9;
}

.copy-mini-btn {
  background: rgba(10, 132, 255, 0.15);
  border: none;
  color: var(--ios-blue);
  padding: 4px 9px;
  border-radius: var(--ios-radius-pill);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.copy-mini-btn:active {
  opacity: 0.6;
}

/* Payment & Instructions Tab */
.info-card {
  background: var(--ios-cell-bg);
  border: 0.5px solid var(--ios-separator-light);
  border-radius: var(--ios-radius-card);
  padding: 16px;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.info-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(10, 132, 255, 0.15);
  color: var(--ios-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-title {
  font-size: 16px;
  font-weight: 650;
  color: var(--ios-text-primary);
  letter-spacing: -0.3px;
}

.info-subtitle {
  font-size: 12px;
  color: var(--ios-text-secondary);
}

.bank-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.bank-tag {
  background: var(--ios-fill-tertiary);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ios-text-primary);
}

.bank-tag.kbz { color: #60A5FA; }
.bank-tag.wave { color: #FACC15; }
.bank-tag.aya { color: #F87171; }
.bank-tag.cb { color: #F59E0B; }
.bank-tag.uab { color: #C084FC; }
.bank-tag.onepay { color: #34D399; }

.about-desc-card {
  background: var(--ios-fill-tertiary);
  border: 0.5px solid var(--ios-separator);
  border-radius: var(--ios-radius-card);
  padding: 14px;
  margin-bottom: 14px;
}

.about-mission-text {
  font-size: 13px;
  color: var(--ios-text-primary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.about-highlights-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-highlight-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--ios-cell-bg);
  border: 0.5px solid var(--ios-separator-light);
  border-radius: 10px;
  padding: 10px 12px;
}

.highlight-emoji {
  font-size: 16px;
  margin-bottom: 2px;
}

.highlight-strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ios-text-primary);
}

.highlight-sub {
  font-size: 11.5px;
  color: var(--ios-text-secondary);
}

.help-box {
  background: rgba(0, 0, 0, 0.25);
  border: 0.5px solid var(--ios-separator-light);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.help-box-title {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ios-text-primary);
  margin-bottom: 8px;
}

.help-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-steps li {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
}

.help-steps li strong {
  color: var(--ios-blue);
  font-size: 12.5px;
  margin-bottom: 2px;
}

.help-steps li span {
  color: var(--ios-text-secondary);
}

.fallback-wallet-box {
  border-top: 0.5px solid var(--ios-separator-light);
  padding-top: 14px;
}

.fallback-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ios-orange);
  margin-bottom: 4px;
}

.fallback-title-row h4 {
  font-size: 13px;
  font-weight: 650;
}

.fallback-desc {
  font-size: 11.5px;
  color: var(--ios-text-secondary);
  margin-bottom: 10px;
}

.pay-account-card {
  background: var(--ios-fill-tertiary);
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.pay-account-name {
  font-size: 11.5px;
  color: var(--ios-text-secondary);
}

.pay-account-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 650;
  color: var(--ios-text-primary);
}

/* ==========================================================================
   4. Native Telegram iOS Tabbar (Pinned Bottom Navigation with Animated Icons)
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  height: calc(var(--ios-tabbar-height) + env(safe-area-inset-bottom, 34px));
  padding-bottom: env(safe-area-inset-bottom, 34px);
  background: var(--bg-glass);
  backdrop-filter: blur(25px) saturate(190%);
  -webkit-backdrop-filter: blur(25px) saturate(190%);
  border-top: 0.5px solid var(--ios-separator);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 95;
  user-select: none;
  -webkit-user-select: none;
}

.nav-item {
  flex: 1;
  height: var(--ios-tabbar-height);
  background: transparent;
  border: none;
  color: var(--ios-text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  outline: none;
  padding: 4px 0;
}

.nav-item:active {
  transform: scale(0.92);
  transition: transform 0.1s ease;
}

.nav-item.just-activated .nav-svg {
  animation: tabSpringBounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active {
  color: var(--tg-theme-link-color, var(--ios-blue));
}

.nav-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.nav-icon-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.22) 0%, rgba(10, 132, 255, 0) 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-item.active .nav-icon-aura {
  opacity: 1;
  animation: auraBreathe 3s ease-in-out infinite;
}

.nav-svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: stroke 0.2s ease, transform 0.2s ease;
  overflow: visible;
}

/* Micro-animations: Store Icon */
.nav-item.active .anim-bag-body {
  fill: rgba(10, 132, 255, 0.14);
}

.nav-item.active .anim-bag-handle {
  animation: handleSway 3s ease-in-out infinite;
  transform-origin: 12px 8px;
}

.nav-item.active .anim-star-sparkle {
  animation: starGleam 2.2s ease-in-out infinite;
  transform-origin: 12px 13px;
}

/* Micro-animations: History Icon */
.nav-item.active .anim-clock-face {
  fill: rgba(10, 132, 255, 0.14);
}

.nav-item.active .anim-clock-hands {
  animation: clockTick 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: 12px 12px;
}

/* Micro-animations: About Icon */
.nav-item.active .anim-about-circle {
  fill: rgba(10, 132, 255, 0.14);
}

.nav-item.active .anim-about-dot {
  animation: aboutDotGlow 2s ease-in-out infinite;
}

/* iOS active pip indicator */
.nav-active-pip {
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tg-theme-link-color, var(--ios-blue));
  box-shadow: 0 0 6px var(--tg-theme-link-color, var(--ios-blue));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  opacity: 0;
}

.nav-item.active .nav-active-pip {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.nav-label {
  font-size: 10px;
  font-weight: 550;
  letter-spacing: -0.1px;
  line-height: 1;
  transition: color 0.15s ease;
}

.nav-badge {
  position: absolute;
  top: -2px;
  right: -7px;
  background: var(--ios-red);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--ios-radius-pill);
  box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4);
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Keyframes for tabbar */
@keyframes tabSpringBounce {
  0% { transform: scale(1); }
  30% { transform: scale(0.82); }
  60% { transform: scale(1.18); }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes handleSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

@keyframes starGleam {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.3) rotate(45deg); opacity: 1; filter: drop-shadow(0 0 3px currentColor); }
}

@keyframes clockTick {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(90deg); }
  50% { transform: rotate(180deg); }
  75% { transform: rotate(270deg); }
  100% { transform: rotate(360deg); }
}

@keyframes aboutDotGlow {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.4); opacity: 1; filter: drop-shadow(0 0 3px currentColor); }
}

@keyframes auraBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

@keyframes badgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes badgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   5. Native Telegram iOS Action Sheet / Slide-Up Modals
   ========================================================================== */

.sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overscroll-behavior: contain;
}

.sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet-container {
  background: var(--ios-bg-secondary);
  border: 0.5px solid var(--ios-separator-light);
  border-top-left-radius: var(--ios-radius-sheet);
  border-top-right-radius: var(--ios-radius-sheet);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sheet);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  overscroll-behavior: contain;
}

.sheet-overlay.open .sheet-container {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2.5px;
  margin: 8px auto 4px;
  flex-shrink: 0;
}

.sheet-header {
  padding: 10px 18px 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 0.5px solid var(--ios-separator-light);
  flex-shrink: 0;
}

.sheet-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.sheet-title {
  font-size: 17px;
  font-weight: 650;
  color: var(--ios-text-primary);
  letter-spacing: -0.3px;
}

.sheet-close-btn {
  background: var(--ios-fill-tertiary);
  border: none;
  color: var(--ios-text-secondary);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sheet-close-btn:active {
  opacity: 0.6;
}

.sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(90vh - 65px);
  padding: 14px 18px calc(30px + env(safe-area-inset-bottom, 16px));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sheet-desc {
  font-size: 13.5px;
  color: var(--ios-text-secondary);
  line-height: 1.45;
}

.desc-quote {
  border-left: 3px solid var(--ios-blue);
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ios-text-primary);
}

/* Telegram Animated Emojis */
.tg-anim-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  vertical-align: -4px;
  margin-right: 5px;
  position: relative;
  overflow: visible;
  line-height: 1;
}

.tg-anim-emoji.product-title-emoji {
  width: 24px;
  height: 24px;
  vertical-align: -4px;
  margin-right: 6px;
}

.tg-anim-emoji .lottie-anim-box {
  display: inline-flex;
  width: 100%;
  height: 100%;
}

.tg-anim-emoji svg {
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
}

.tg-anim-emoji .fallback-char {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
}

.tg-anim-emoji.loaded .fallback-char {
  display: none !important;
}

/* Pre-Buy Readme Accordion (iOS Inset Disclosure Group) */
.readme-accordion {
  background: rgba(0, 0, 0, 0.25);
  border: 0.5px solid var(--ios-separator-light);
  border-radius: var(--ios-radius-card);
  overflow: hidden;
}

.readme-header {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: background-color 0.15s ease;
}

.readme-header:active {
  background: rgba(255, 255, 255, 0.06);
}

.readme-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ios-blue);
}

#readmeChevron {
  color: var(--ios-text-secondary);
  transition: transform 0.2s ease;
}

.readme-accordion.open #readmeChevron {
  transform: rotate(180deg);
}

.readme-content {
  display: none;
  padding: 14px;
  border-top: 0.5px solid var(--ios-separator-light);
  font-size: 13px;
  color: var(--ios-text-secondary);
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: break-word;
}

.readme-content pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 10px;
  border-radius: 8px;
  margin: 6px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #67E8F9;
}

.readme-accordion.open .readme-content {
  display: block;
  animation: iosFadeIn 0.2s ease-out;
}

.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 {
  color: var(--ios-text-primary);
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 650;
}
.markdown-preview ul, .markdown-preview ol {
  padding-left: 18px;
  margin-bottom: 8px;
}
.markdown-preview li {
  margin-bottom: 3px;
}
.markdown-preview code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 5px;
  border-radius: 4px;
  color: #67E8F9;
  font-size: 12px;
}
.markdown-preview a {
  color: var(--ios-blue);
  text-decoration: underline;
}

/* Quantity & Price Card */
.price-calc-card {
  background: var(--ios-fill-tertiary);
  border-radius: var(--ios-radius-card);
  padding: 14px;
}

.qty-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ios-text-primary);
}

.qty-hint {
  font-size: 11.5px;
  color: var(--ios-text-secondary);
}

/* iOS Native Stepper */
.qty-stepper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 0.5px solid var(--ios-separator-light);
  border-radius: 8px;
  overflow: hidden;
}

.qty-step-btn {
  width: 34px;
  height: 32px;
  background: none;
  border: none;
  color: var(--ios-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.qty-step-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.qty-step-val {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ios-text-primary);
  font-family: var(--font-mono);
}

.calc-divider {
  height: 0.5px;
  background: var(--ios-separator-light);
  margin: 12px 0;
}

.total-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label {
  font-size: 13.5px;
  color: var(--ios-text-secondary);
}

.total-price-highlight {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ios-text-primary);
  letter-spacing: -0.3px;
}

/* Primary Telegram Native Button (MainButton Style) */
.primary-action-btn {
  background: var(--tg-theme-button-color, var(--ios-blue));
  color: var(--tg-theme-button-text-color, #FFFFFF);
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.2px;
  font-family: var(--font-ios);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(10, 132, 255, 0.3);
  transition: opacity 0.15s ease, transform 0.15s ease;
  width: 100%;
}

.primary-action-btn:active {
  opacity: 0.75;
  transform: scale(0.985);
}

.primary-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.secondary-btn {
  background: var(--ios-fill-tertiary);
  border: none;
  color: var(--ios-blue);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  width: 100%;
}

.secondary-btn:active {
  opacity: 0.65;
}

/* ==========================================================================
   6. Checkout Modal & Premium MyanMyanPay MMQR Display
   ========================================================================== */

.checkout-container {
  max-height: 94vh;
}

.checkout-sheet-header {
  padding-bottom: 8px;
}

.checkout-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-icon {
  font-size: 22px;
  line-height: 1;
}

.sheet-subtitle {
  font-size: 11.5px;
  color: var(--ios-text-secondary);
  font-weight: 400;
  margin-top: 2px;
}

/* Order Summary Inset Card */
.order-summary-card {
  background: var(--ios-fill-tertiary);
  border: 0.5px solid var(--ios-separator);
  border-radius: var(--ios-radius-card);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.summary-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.summary-id-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ios-blue);
  background: rgba(10, 132, 255, 0.12);
  padding: 3px 8px;
  border-radius: var(--ios-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.summary-id-pill span {
  font-size: 9px;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.provider-pill {
  font-size: 11px;
  font-weight: 650;
  color: var(--ios-green);
  background: rgba(48, 209, 88, 0.12);
  padding: 3px 8px;
  border-radius: var(--ios-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ios-green);
  box-shadow: 0 0 6px var(--ios-green);
  animation: iosPulse 1.8s infinite;
}

.summary-main-row {
  margin-bottom: 10px;
}

.summary-item-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ios-text-primary);
  line-height: 1.3;
}

.summary-price-divider {
  height: 0.5px;
  background: var(--ios-separator);
  margin-bottom: 10px;
}

.summary-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-price-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ios-text-secondary);
}

.summary-price-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--ios-green);
  letter-spacing: -0.3px;
}

/* Hero QR Code Card (The Showcase Centerpiece) */
.qr-hero-card {
  background: #FFFFFF;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 16px 14px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}

.countdown-pill-wrap {
  margin-bottom: 12px;
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF3E0;
  color: #E65100;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--ios-radius-pill);
  box-shadow: inset 0 0 0 0.5px rgba(230, 81, 0, 0.2);
}

.timer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E65100;
  animation: iosPulse 1.2s infinite;
}

.qr-canvas-surface {
  background: #FFFFFF;
  padding: 6px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-holder {
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-holder canvas,
.qr-code-holder img {
  width: 210px !important;
  height: 210px !important;
  display: block;
}

/* Supported Banking & Wallet Chips inside Hero Card */
.qr-banks-section {
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.qr-banks-title {
  font-size: 10.5px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.qr-bank-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.bank-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.bank-chip.kbz {
  background: #E8F0FE;
  color: #103B7B;
}

.bank-chip.wave {
  background: #FFF9D2;
  color: #8C6D00;
}

.bank-chip.aya {
  background: #FEE4E2;
  color: #D92D20;
}

.bank-chip.cb {
  background: #FFEAD5;
  color: #E65100;
}

.bank-chip.uab {
  background: #F4EBFF;
  color: #6941C6;
}

/* Real-Time Radar Payment Status Box */
.payment-radar-card {
  background: var(--ios-fill-tertiary);
  border: 0.5px solid var(--ios-separator);
  border-radius: var(--ios-radius-card);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.radar-ping-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radar-ring {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--ios-green);
  opacity: 0;
  animation: radarWave 2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

.radar-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ios-green);
  box-shadow: 0 0 8px var(--ios-green);
}

@keyframes radarWave {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.radar-text-group {
  flex: 1;
}

.radar-status-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--ios-text-primary);
  line-height: 1.25;
}

.radar-status-sub {
  font-size: 11px;
  color: var(--ios-text-secondary);
  margin-top: 2px;
}

/* Action Buttons */
.qr-actions-group {
  width: 100%;
  margin-bottom: 10px;
}

.action-btn.copy-btn {
  width: 100%;
  background: var(--ios-fill-tertiary);
  border: 0.5px solid var(--ios-separator);
  color: var(--ios-text-primary);
  font-size: 13.5px;
  font-weight: 650;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn.copy-btn:active {
  background: var(--ios-separator);
  transform: scale(0.98);
}

.dev-simulate-btn {
  width: 100%;
  background: rgba(255, 159, 10, 0.15);
  border: 0.5px solid var(--ios-orange);
  color: var(--ios-orange);
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: center;
}

.fallback-trigger-wrap {
  text-align: center;
  margin: 6px 0 10px;
}

.fallback-trigger-btn {
  background: none;
  border: none;
  color: var(--ios-blue);
  font-size: 12px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--ios-radius-pill);
  transition: background 0.15s ease;
}

.fallback-trigger-btn:active {
  background: rgba(10, 132, 255, 0.12);
}

/* Product Detail Single Action CTA Button */
.modal-action-footer {
  margin-top: 14px;
}

.payment-cta-btn {
  width: 100%;
  height: 50px;
  background: var(--tg-theme-button-color, var(--ios-blue));
  color: var(--tg-theme-button-text-color, #FFFFFF);
  border: none;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.35);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.payment-cta-btn:active {
  transform: scale(0.98);
  opacity: 0.88;
}

.cta-btn-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-price-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--ios-radius-pill);
  letter-spacing: -0.2px;
}

/* Manual Transfer Fallback View */
.fallback-notice-box {
  background: rgba(10, 132, 255, 0.1);
  border: 0.5px solid rgba(10, 132, 255, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.notice-icon {
  font-size: 16px;
  line-height: 1.2;
}

.notice-text {
  font-size: 12px;
  color: var(--ios-text-primary);
  line-height: 1.4;
}

.fallback-accounts-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.upload-dropzone {
  border: 1.5px dashed var(--ios-separator);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  background: var(--ios-fill-tertiary);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-bottom: 14px;
}

.upload-dropzone:active {
  background: rgba(118, 118, 128, 0.18);
}

.upload-dropzone .file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.12);
  color: var(--ios-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.upload-main-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--ios-text-primary);
  margin-bottom: 4px;
}

.file-types {
  font-size: 11px;
  color: var(--ios-text-secondary);
}

.preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.preview-container img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 8px;
  object-fit: cover;
}

.remove-slip-btn {
  background: rgba(255, 59, 48, 0.15);
  border: none;
  color: var(--ios-red);
  padding: 4px 10px;
  border-radius: var(--ios-radius-pill);
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
}

/* Delivery Success View */
.delivery-celebrate {
  text-align: center;
  padding: 16px 0 12px;
}

.celebrate-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 0 20px rgba(48, 209, 88, 0.3);
}

.celebrate-title {
  font-size: 19px;
  font-weight: 750;
  color: var(--ios-text-primary);
  margin-bottom: 4px;
}

.celebrate-desc {
  font-size: 13px;
  color: var(--ios-text-secondary);
  line-height: 1.4;
}

.delivered-keys-box {
  background: var(--ios-fill-tertiary);
  border: 0.5px solid var(--ios-separator);
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0 16px;
}

.keys-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ios-blue);
  margin-bottom: 10px;
}

.keys-count-badge {
  background: rgba(10, 132, 255, 0.12);
  color: var(--ios-blue);
  padding: 2px 7px;
  border-radius: var(--ios-radius-pill);
  font-size: 10.5px;
}

.codes-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.code-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  border: 0.5px solid var(--ios-separator-light);
  border-radius: 8px;
  padding: 8px 12px;
}

.code-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 650;
  color: #67E8F9;
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   7. Toast Notification System
   ========================================================================== */

.toast {
  position: fixed;
  bottom: calc(var(--ios-tabbar-height) + env(safe-area-inset-bottom, 34px) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 30, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #FFFFFF;
  border: 0.5px solid var(--ios-separator);
  padding: 10px 18px;
  border-radius: var(--ios-radius-pill);
  font-size: 13px;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
