/* ============ Guarantor v4.0.0 - Performance Optimized Edition ============ */
/* V300: Full optimization based on research guide */
/* - Adaptive polling, GPU acceleration, iOS/Android fixes */
/* - prefers-reduced-motion, performance_class detection */
/* - Memory management, iOS white screen prevention */

:root {
  /* V300: Telegram CSS theme variables with fallbacks */
  --bg-primary: var(--tg-theme-bg-color, #17212b);
  --bg-secondary: var(--tg-theme-secondary-bg-color, #1e2c3a);
  --bg-tertiary: #243442;
  --glass-bg: rgba(30, 44, 58, 0.6);
  --glass-bg-hover: rgba(36, 52, 66, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(42, 171, 238, 0.3);
  --text-primary: var(--tg-theme-text-color, #ffffff);
  --text-secondary: var(--tg-theme-hint-color, #708499);
  --accent: var(--tg-theme-button-color, #2aabee);
  --accent-hover: #229ed9;
  --accent-light: rgba(42, 171, 238, 0.15);
  --accent-glow: rgba(42, 171, 238, 0.4);
  --success: #31b545;
  --success-light: rgba(49, 181, 69, 0.15);
  --warning: #f5a623;
  --warning-light: rgba(245, 166, 35, 0.15);
  --danger: var(--tg-theme-destructive-text-color, #e53935);
  --danger-light: rgba(229, 57, 53, 0.15);
  --gold: #FFB800;
  --gold-light: rgba(255, 184, 0, 0.15);
  --purple: #8b5cf6;
  --purple-light: rgba(139, 92, 246, 0.15);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  /* V300: Reduced blur for better performance */
  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 12px;
  /* Safe area for notched devices */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  /* V300: Animation timing variables - can be overridden for low-perf devices */
  --animation-fast: 0.15s;
  --animation-normal: 0.3s;
  --animation-slow: 0.5s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* V297: iOS/Android scroll and touch optimizations */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  /* V297: Prevent overscroll bounce */
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(42, 171, 238, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 100% 100%, rgba(42, 171, 238, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ============ V297: MOBILE PERFORMANCE OPTIMIZATIONS ============ */
/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  body {
    position: relative;
    width: 100%;
  }
}

/* Android Chrome specific optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
  /* Android specific styles */
  html {
    scroll-behavior: smooth;
  }
}

/* Safe area for notched devices (iPhone X+) */
.app-content {
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.bottom-nav, .drawer-bottom {
  padding-bottom: calc(var(--safe-bottom) + 8px);
}

/* Passive event listener hint for scroll containers */
.scrollable {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ============ V300: PERFORMANCE OPTIMIZATIONS ============ */

/* V300: GPU acceleration ONLY for animated elements - avoid layer explosion */
.drawer, .modal, .bottom-sheet, .dcm-overlay, .dcm-modal {
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style paint;
}

/* V300: Will-change ONLY on hover - cleanup automatically */
.card:hover, .btn:hover, .glass-card:hover, .nav-item:hover,
.method-card:hover, .deal-card:hover, .history-item:hover {
  will-change: transform, opacity;
}

/* V300: Animate ONLY transform and opacity - GPU accelerated */
.card, .btn, .glass-card, .nav-item, .drawer, .modal,
.deal-card, .method-card, .history-item {
  transition: transform var(--animation-normal) ease, 
              opacity var(--animation-normal) ease,
              background var(--animation-normal) ease,
              border-color var(--animation-normal) ease;
}

/* V300: Touch optimization - remove 300ms delay */
button, a, .clickable, [onclick] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}

/* V300: Input elements - prevent iOS zoom (font-size >= 16px) */
input, textarea, select {
  font-size: 16px !important;
  -webkit-user-select: text;
  user-select: text;
  touch-action: auto;
}

/* V297: Scrollable containers optimization */
.app-content, .drawer-content, .modal-content, .bottom-sheet-content,
.deals-list, .history-list, .chat-messages {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* V297: Input elements should allow text selection */
input, textarea, [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
  touch-action: auto;
}

/* V300: Improved prefers-reduced-motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Disable decorative animations */
  .online-dot, .pulse-dot, .dcm-confetti,
  .trust-bubble, .bubble, .glow, .ps-shimmer {
    animation: none !important;
  }
}

/* V300: Low performance device class - detected via JS */
/* Added when: performance_class=LOW, hardwareConcurrency<=2, deviceMemory<=2 */
.reduce-animations {
  --animation-fast: 0.05s;
  --animation-normal: 0.1s;
  --animation-slow: 0.15s;
  --blur-sm: 0px;
  --blur-md: 0px;
  --blur-lg: 0px;
}

.reduce-animations *, 
.reduce-animations *::before, 
.reduce-animations *::after {
  animation-duration: 0.1s !important;
  transition-duration: 0.1s !important;
}

/* V300: Hide heavy decorative elements on low-end devices */
.reduce-animations .trust-bubble,
.reduce-animations .bubble,
.reduce-animations .glow,
.reduce-animations .trust-stat-glow,
.reduce-animations .pulse-dot,
.reduce-animations .ps-shimmer,
.reduce-animations .dcm-confetti,
.reduce-animations .dcm-confetti-particle {
  display: none !important;
  animation: none !important;
}

/* V300: Disable blur on low-end - use solid backgrounds */
.reduce-animations .online-badge,
.reduce-animations .lang-btn,
.reduce-animations .back-btn,
.reduce-animations .glass-card,
.reduce-animations .trust-hero-card,
.reduce-animations .trust-stat-card,
.reduce-animations .method-card,
.reduce-animations .nav-item,
.reduce-animations .drawer,
.reduce-animations .modal,
.reduce-animations .bottom-nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(30, 44, 58, 0.98) !important;
}

/* Fallback for devices that don't support backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  .online-badge,
  .lang-btn,
  .back-btn,
  .glass-card,
  .trust-hero-card,
  .trust-stat-card {
    background: rgba(30, 44, 58, 0.95);
  }
}

input, textarea, button, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }

/* ============ APP LAYOUT ============ */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
}
.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: var(--safe-top);
}
.page-no-header .content { padding-top: 20px; }
.content {
  flex: 1;
  padding: 16px;
  padding-bottom: calc(120px + var(--safe-bottom, 0px) + 40px);
}
.content.centered { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 40px; }

/* ============ HEADER ============ */
.header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.header h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.header-content { flex: 1; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }
.logo svg { color: var(--accent); filter: drop-shadow(0 0 12px var(--accent-glow)); }
.header-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* V284: Header with centered logo */
.header-logo-center {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.header-logo-center .back-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-logo-center .logo-center {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
}
.header-logo-center .logo-center svg {
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}
.header-logo-center .status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}
.header-logo-center .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Online Badge */
.logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.online-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(49, 181, 69, 0.15) 0%, rgba(49, 181, 69, 0.08) 100%);
  border: 1px solid rgba(49, 181, 69, 0.3);
  border-radius: var(--radius-md);
  font-size: 13px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(49, 181, 69, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.online-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success), 0 0 16px rgba(49, 181, 69, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
}
@keyframes pulse-glow {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1) translateZ(0);
    box-shadow: 0 0 8px var(--success), 0 0 16px rgba(49, 181, 69, 0.4);
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.15) translateZ(0);
    box-shadow: 0 0 12px var(--success), 0 0 24px rgba(49, 181, 69, 0.5);
  }
}
.online-count {
  font-weight: 700;
  color: var(--success);
  font-size: 14px;
  text-shadow: 0 0 10px rgba(49, 181, 69, 0.3);
}
.online-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  font-size: 12px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.lang-btn:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); color: var(--accent); }
.lang-btn svg { width: 18px; height: 18px; }

.back-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.back-btn:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); color: var(--text-primary); transform: scale(0.96); }

/* ============ LOADING & ERROR ============ */
.loading-container, .error-container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100dvh; padding: 24px; text-align: center; gap: 16px;
}
.loading-container svg { color: var(--accent); filter: drop-shadow(0 0 16px var(--accent-glow)); }
.loading-state { display: flex; justify-content: center; padding: 40px; }
.loading-state svg { color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg) translateZ(0); } }
.animate-spin { 
  animation: spin 1s linear infinite; 
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ============ STATS GRID ============ */
/* V266: Live stats row */
.live-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.live-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.12) 0%, rgba(42, 171, 238, 0.03) 100%);
  border: 1px solid rgba(42, 171, 238, 0.2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.live-stat-card.deals {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.03) 100%);
  border-color: rgba(34, 197, 94, 0.2);
}

.live-stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.live-stat-card.deals::before {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
}

.live-stat-icon {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 171, 238, 0.15);
  border-radius: 50%;
  color: var(--accent);
}

.live-stat-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.live-stat-card.deals .live-stat-icon {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.pulse-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style;
}

.pulse-dot.green {
  background: var(--success);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1) translateZ(0); }
  50% { opacity: 0.5; transform: scale(1.2) translateZ(0); }
}

.live-stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.live-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); transform: translateY(-4px); }
.stat-icon {
  width: 48px; height: 48px;
  min-width: 48px; min-height: 48px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(42, 171, 238, 0.05) 100%);
  border: 1px solid rgba(42, 171, 238, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent);
}
.stat-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.stat-value { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

/* ============ V278: TRUST SECTION - PREMIUM GLASS ============ */
.trust-section-new {
  margin-bottom: 24px;
}

/* Hero Card */
.trust-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.12) 0%, rgba(30, 44, 58, 0.8) 50%, var(--glass-bg) 100%);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid rgba(42, 171, 238, 0.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.trust-hero-card:hover {
  border-color: rgba(42, 171, 238, 0.4);
  transform: translateY(-2px);
}

/* Glossy overlay */
.trust-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

/* Animated bubbles - GPU optimized */
.trust-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style;
}

@keyframes trustFloat {
  0%, 100% { transform: translateY(0) scale(1) translateZ(0); }
  50% { transform: translateY(-10px) scale(1.03) translateZ(0); }
}

.trust-bubble.b1 {
  top: -30%; right: -15%;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.15) 0%, rgba(42, 171, 238, 0.05) 40%, transparent 70%);
  animation: trustFloat 6s ease-in-out infinite;
}

.trust-bubble.b2 {
  bottom: -25%; left: -10%;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.1) 0%, rgba(42, 171, 238, 0.03) 40%, transparent 70%);
  animation: trustFloat 8s ease-in-out infinite reverse;
}

.trust-bubble.b3 {
  top: 40%; right: 25%;
  width: 30px; height: 30px;
  background: rgba(255, 255, 255, 0.04);
  animation: trustFloat 5s ease-in-out infinite;
}

.trust-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
}

.trust-hero-icon {
  width: 56px; height: 56px;
  min-width: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(42, 171, 238, 0.05) 100%);
  border: 1px solid rgba(42, 171, 238, 0.25);
  position: relative;
}

.trust-hero-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.trust-hero-icon svg {
  width: 28px; height: 28px;
  color: var(--accent);
  filter: drop-shadow(0 2px 8px rgba(42, 171, 238, 0.4));
}

.trust-hero-info {
  flex: 1;
  min-width: 0;
}

.trust-hero-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.trust-hero-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

/* RKN Badge - Inside Hero */
.trust-rkn-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(30, 44, 58, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.trust-rkn-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, #1e88e5 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.trust-rkn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.trust-rkn-label {
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.trust-rkn-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Stats Grid */
.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.trust-stat-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.trust-stat-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

.trust-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.trust-stat-content {
  position: relative;
  z-index: 2;
  padding: 18px 16px;
}

.trust-stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trust-stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(42, 171, 238, 0.05) 100%);
  border: 1px solid rgba(42, 171, 238, 0.2);
}

.trust-stat-icon svg {
  width: 22px; height: 22px;
  color: var(--accent);
}

@keyframes trustPulse {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 8px var(--accent); transform: translateZ(0); }
  50% { opacity: 1; box-shadow: 0 0 16px var(--accent); transform: translateZ(0); }
}

.trust-stat-glow {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: trustPulse 2s ease-in-out infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style;
}

.trust-stat-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -1px;
  color: var(--accent);
}

.trust-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Footer Banner */
.trust-footer-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.trust-footer-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.trust-footer-stat strong {
  color: var(--text-primary);
  font-weight: 700;
}

.trust-footer-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border: 1px solid rgba(42, 171, 238, 0.15);
}

.trust-footer-icon svg {
  width: 14px; height: 14px;
  color: var(--accent);
}

.trust-footer-divider {
  width: 1px;
  height: 24px;
  background: var(--glass-border);
}

/* Mobile adjustments */
@media (max-width: 360px) {
  .trust-hero-content { padding: 18px 16px; gap: 12px; }
  .trust-hero-icon { width: 48px; height: 48px; min-width: 48px; }
  .trust-hero-icon svg { width: 24px; height: 24px; }
  .trust-hero-title { font-size: 16px; }
  .trust-rkn-badge { padding: 6px 10px; gap: 6px; }
  .trust-rkn-icon { width: 24px; height: 24px; font-size: 10px; }
  .trust-stat-value { font-size: 24px; }
  .trust-stat-icon { width: 40px; height: 40px; }
  .trust-stat-icon svg { width: 20px; height: 20px; }
  .trust-footer-banner { gap: 14px; padding: 12px 16px; }
}

/* ============ WELCOME CARD ============ */
.welcome-card {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.12) 0%, rgba(42, 171, 238, 0.04) 100%);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid rgba(42, 171, 238, 0.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.welcome-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(42, 171, 238, 0.4), transparent); }
.welcome-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.2) 0%, rgba(42, 171, 238, 0.08) 100%);
  border: 1px solid rgba(42, 171, 238, 0.3);
  border-radius: 50%;
  color: var(--accent);
}
.welcome-icon svg { width: 36px; height: 36px; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.welcome-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.welcome-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ============ SECTION TITLE ============ */
.section-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.8px; }

/* ============ ACTION CARDS ============ */
.actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.action-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 28px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.action-card:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); transform: translateY(-4px); }
.action-card.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.action-card.primary:hover { transform: translateY(-4px); box-shadow: 0 8px 32px var(--accent-glow); }
.action-card svg { width: 32px; height: 32px; }
.action-card span { font-size: 15px; font-weight: 600; }

/* ============ STEPS LIST ============ */
.steps-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.step-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.step-item:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); transform: translateX(4px); }
.step-number {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.step-content { flex: 1; min-width: 0; }
.step-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

/* ============ REFERRAL BANNER ============ */
.referral-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px;
  background: linear-gradient(135deg, var(--gold-light) 0%, rgba(255, 184, 0, 0.05) 100%);
  border: 1px solid rgba(255, 184, 0, 0.2);
  border-radius: var(--radius-lg);
}
.referral-info { display: flex; align-items: center; gap: 14px; }
.referral-info svg { width: 24px; height: 24px; color: var(--gold); }
.referral-title { font-size: 14px; font-weight: 600; }
.referral-desc { font-size: 12px; color: var(--text-secondary); }
.referral-earnings { font-size: 16px; font-weight: 700; color: var(--gold); }

/* ============ FORM ELEMENTS ============ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.input-wrapper { position: relative; }
.input-wrapper input, .input-wrapper textarea {
  width: 100%; padding: 16px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.input-wrapper input:focus, .input-wrapper textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--glass-bg-hover);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.15);
}
.input-wrapper input::placeholder, .input-wrapper textarea::placeholder { color: var(--text-secondary); }
.input-wrapper.error input, .input-wrapper.error textarea { border-color: var(--danger); }
.input-wrapper textarea { resize: none; min-height: 100px; }
.char-count { text-align: right; font-size: 12px; color: var(--text-secondary); margin-top: 8px; }
.error-text { display: block; font-size: 12px; color: var(--danger); margin-top: 6px; }

.amount-input-row { display: flex; gap: 12px; }
.amount-input-row .input-wrapper { flex: 1; }
.currency-selector { display: flex; gap: 8px; }
.currency-btn {
  padding: 16px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px; font-weight: 600;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.currency-btn.active { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

/* ============ PAYMENT METHODS ============ */
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.payment-method {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  color: var(--text-secondary);
}
.payment-method:hover { background: var(--glass-bg-hover); color: var(--text-primary); }
.payment-method.active { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.payment-method svg { width: 28px; height: 28px; }
.payment-method span { font-size: 13px; font-weight: 600; }

/* ============ COMMISSION BLOCK ============ */
.commission-block {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.commission-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 14px;
}
.commission-row:last-child { border-bottom: none; }
.commission-row span:first-child { color: var(--text-secondary); }
.commission-row.total { background: rgba(42, 171, 238, 0.05); font-weight: 700; font-size: 16px; }
.commission-row.total span:last-child { color: var(--accent); }

/* ============ BUTTONS ============ */
.btn-primary {
  width: 100%; padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 24px var(--accent-glow);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 12px;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  width: 100%; padding: 16px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 12px;
}
.btn-secondary:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); }

.btn-danger {
  width: 100%; padding: 16px 24px;
  background: var(--danger-light);
  border: 1px solid rgba(229, 57, 53, 0.3);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn-danger:hover { background: rgba(229, 57, 53, 0.2); }

/* ============ LINK BOX ============ */
.link-box {
  display: flex; align-items: center; gap: 12px; padding: 4px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.link-box input {
  flex: 1; padding: 14px 16px;
  background: transparent; border: none;
  color: var(--accent); font-size: 14px; font-family: monospace; min-width: 0;
}
.link-box input:focus { outline: none; }
.link-box button {
  flex-shrink: 0; padding: 14px 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: white; font-size: 14px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.link-box button:hover { transform: scale(1.02); }
.link-box button.copied { background: linear-gradient(135deg, var(--success) 0%, #27a33d 100%); }
.link-box.small { margin-bottom: 16px; }

/* ============ SUCCESS STATES ============ */
.success-icon { margin-bottom: 20px; }
.success-icon svg { width: 80px; height: 80px; color: var(--success); filter: drop-shadow(0 0 24px rgba(49, 181, 69, 0.4)); }
.success-title { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.success-desc { color: var(--text-secondary); font-size: 15px; margin-bottom: 24px; }

.deal-info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px; margin: 24px 0; text-align: center;
}
.deal-info-card .deal-id { font-size: 12px; color: var(--text-secondary); font-family: monospace; margin-bottom: 8px; }
.deal-info-card .deal-amount { font-size: 32px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.deal-info-card .deal-desc { color: var(--text-secondary); font-size: 14px; }

/* ============ DEALS LIST - NEW DESIGN ============ */
.filters-container {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 16px; margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}
.filters-container::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 12px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.filter-chip svg { width: 14px; height: 14px; }
.filter-chip:hover { background: var(--glass-bg-hover); color: var(--text-primary); }
.filter-chip.active { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%); border-color: transparent; color: white; }

.deals-list { display: flex; flex-direction: column; gap: 14px; }

.deal-card-new {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.deal-card-new::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.deal-card-new.waiting::before { background: var(--warning); opacity: 1; }
.deal-card-new.pending::before { background: #f59e0b; opacity: 1; }
.deal-card-new.paid::before { background: var(--accent); opacity: 1; }
.deal-card-new.completed::before { background: var(--success); opacity: 1; }
.deal-card-new.cancelled::before { background: var(--danger); opacity: 1; }

.deal-card-new:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); transform: translateY(-2px); }

.deal-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-chip svg { width: 12px; height: 12px; }
.status-chip.waiting { background: var(--warning-light); color: var(--warning); }
.status-chip.pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.status-chip.paid { background: var(--accent-light); color: var(--accent); }
.status-chip.completed { background: var(--success-light); color: var(--success); }
.status-chip.cancelled { background: var(--danger-light); color: var(--danger); }
.status-chip.expired { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* V266: Expired deal card */
.deal-card-new.expired { opacity: 0.7; border-color: rgba(239, 68, 68, 0.3); }

.deal-date { font-size: 12px; color: var(--text-secondary); }

.deal-card-body { margin-bottom: 14px; }
.deal-amount-big { font-size: 28px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; }
.deal-amount-big .amount { color: var(--accent); }
.deal-amount-big .currency { font-size: 28px; font-weight: 700; color: rgba(255, 255, 255, 0.45); }
.deal-role { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.deal-card-footer { display: flex; justify-content: space-between; align-items: center; }
.deal-description { font-size: 14px; color: var(--text-secondary); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 12px; }
.deal-card-footer svg { color: var(--text-secondary); flex-shrink: 0; }

/* V272: РЎСЃС‹Р»РєР° РЅР° СЃРґРµР»РєСѓ РІ РґРµС‚Р°Р»СЏС… */
.deal-link-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 16px;
}
.deal-link-text {
  font-size: 12px;
  color: var(--text-secondary);
  word-break: break-all;
  margin-bottom: 12px;
  font-family: monospace;
  line-height: 1.4;
}
.deal-link-copy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--accent-light);
  border: 1px solid rgba(42, 171, 238, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.deal-link-copy:active { transform: scale(0.98); }
.deal-link-copy.copied {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

/* ============ EMPTY STATE ============ */
.empty-state { 
  display: flex; flex-direction: column; align-items: center; 
  padding: 60px 24px; text-align: center; gap: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  margin-top: 20px;
}
.empty-state svg { 
  width: 64px; height: 64px; 
  color: var(--accent); 
  opacity: 0.6; 
}
.empty-state p { color: var(--text-secondary); font-size: 16px; font-weight: 500; }
.empty-state .btn-primary { width: auto; padding: 14px 32px; margin-bottom: 0; }

/* ============ DETAIL PAGE ============ */
.status-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px;
  border-radius: var(--radius-lg);
  font-size: 15px; font-weight: 600;
  margin-bottom: 20px;
}
.status-banner.waiting { background: var(--warning-light); color: var(--warning); }
.status-banner.pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.status-banner.paid { background: var(--accent-light); color: var(--accent); }
.status-banner.completed { background: var(--success-light); color: var(--success); }
.status-banner.cancelled { background: var(--danger-light); color: var(--danger); }

.detail-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--glass-border);
}
.detail-row:last-child { border-bottom: none; }
.detail-row .label { font-size: 14px; color: var(--text-secondary); }
.detail-row .value { font-size: 14px; font-weight: 500; text-align: right; }
.detail-row .value.large { font-size: 22px; font-weight: 700; }
.detail-row .value.accent { color: var(--accent); }

/* ============ PROFILE - NEW DESIGN ============ */
.profile-card-new {
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(36, 52, 66, 0.4) 100%);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 20px;
}
.profile-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.profile-avatar-new {
  width: 68px; height: 68px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 50%;
  font-size: 28px; font-weight: 700; color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
  flex-shrink: 0;
}
.profile-avatar-img {
  width: 68px; height: 68px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px var(--accent-glow);
  flex-shrink: 0;
  border: 3px solid var(--accent);
}
.profile-info-new { flex: 1; min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.profile-name-new { font-size: 22px; font-weight: 700; }
.profile-username-new { font-size: 14px; color: var(--text-secondary); }

.support-btn {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(42, 171, 238, 0.05) 100%);
  border: 1px solid rgba(42, 171, 238, 0.2);
  border-radius: 50%;
  color: var(--accent);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}
.support-btn:hover { background: var(--accent); color: white; transform: scale(1.05); }

.profile-rating-row { display: flex; gap: 12px; flex-wrap: wrap; }
.rating-badge, .verified-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 14px; font-weight: 600;
}
.rating-badge { background: linear-gradient(135deg, var(--gold-light) 0%, rgba(255, 184, 0, 0.05) 100%); color: var(--gold); border: 1px solid rgba(255, 184, 0, 0.2); }
.rating-badge svg { width: 16px; height: 16px; }
.verified-badge { background: linear-gradient(135deg, var(--accent-light) 0%, rgba(42, 171, 238, 0.05) 100%); color: var(--accent); border: 1px solid rgba(42, 171, 238, 0.2); }
.verified-badge svg { width: 16px; height: 16px; }

.profile-stats-new { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.profile-stat-new {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 22px 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
/* Glossy overlay */
.profile-stat-new::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
/* Bubble */
.profile-stat-new::after {
  content: '';
  position: absolute;
  top: -25%; right: -20%;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.12) 0%, rgba(42, 171, 238, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: profileBubbleFloat 6s ease-in-out infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style;
}
@keyframes profileBubbleFloat {
  0%, 100% { transform: translateY(0) scale(1) translateZ(0); }
  50% { transform: translateY(-8px) scale(1.05) translateZ(0); }
}
.profile-stat-new:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}
.stat-value-new { 
  position: relative; z-index: 3;
  font-size: 28px; font-weight: 800; 
  color: var(--accent); 
  margin-bottom: 6px; 
}
.stat-label-new { 
  position: relative; z-index: 3;
  font-size: 10px; color: var(--text-secondary); 
  text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; 
}

/* ============ TRUST SCORE CARD - V288 ============ */
.trust-score-card {
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(36, 52, 66, 0.4) 100%);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.trust-score-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(49, 181, 69, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.trust-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.trust-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.trust-title svg {
  color: var(--success);
}
.trust-score-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--success-light);
  border: 1px solid rgba(49, 181, 69, 0.3);
  border-radius: 20px;
}
.trust-score-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--success);
}
.trust-score-max {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.trust-meter {
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 18px;
  z-index: 1;
}
.trust-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success) 0%, #4ade80 100%);
  border-radius: 5px;
  position: relative;
  box-shadow: 0 0 12px rgba(49, 181, 69, 0.4);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.trust-meter-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
  border-radius: 5px 5px 0 0;
}
.trust-factors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
}
.trust-factor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}
.trust-factor:hover {
  border-color: var(--glass-border-hover);
}
.trust-factor.pending {
  cursor: pointer;
}
.trust-factor-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-factor-icon.success {
  background: var(--success-light);
  color: var(--success);
}
.trust-factor-icon.pending {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.trust-factor-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-factor-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.trust-factor.pending .trust-factor-text {
  color: var(--text-secondary);
}
.trust-factor-value {
  font-size: 11px;
  color: var(--text-secondary);
}
.trust-factor.success .trust-factor-value {
  color: var(--success);
}
.trust-factor-action {
  padding: 4px 10px;
  background: var(--gold-light);
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}

/* ============ BALANCE CARD - NEW ============ */
.balance-card-new {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.balance-card-new::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 200px; height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.balance-content-new { position: relative; z-index: 1; }
.balance-row-new { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; position: relative; z-index: 1; gap: 16px; }
.balance-label-new { font-size: 14px; opacity: 0.9; margin-bottom: 8px; }
.balance-amount-new { font-size: 28px; font-weight: 800; white-space: nowrap; }
.withdraw-btn-new {
  display: flex; align-items: center; gap: 8px;
  padding: 15px 26px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  color: white;
  font-size: 15px; font-weight: 600;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
  position: relative;
  top: -2px;
  right: 1px;
}
.withdraw-btn-new:hover:not(:disabled) { background: rgba(255, 255, 255, 0.3); transform: scale(1.02); }
.withdraw-btn-new:disabled { opacity: 0.5; cursor: not-allowed; }
.balance-note-new {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 13px;
  position: relative; z-index: 1;
}

/* ============ PAYOUT METHODS ============ */
.payout-methods-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
}
.payout-method-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.payout-method-row:last-child { border-bottom: none; }
.payout-method-row:hover { background: var(--glass-bg-hover); }
.payout-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
}
.payout-icon.ton { background: var(--accent-light); color: var(--accent); }
.payout-icon.card { background: var(--purple-light); color: var(--purple); }
.payout-icon.stars { background: var(--gold-light); color: var(--gold); }
.payout-info { flex: 1; }
.payout-name { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.payout-value { font-size: 13px; color: var(--text-secondary); }
.payout-method-row svg:last-child { color: var(--text-secondary); flex-shrink: 0; }

.wallet-edit-form { padding: 20px; }
.wallet-edit-form .form-group { margin-bottom: 16px; }
.wallet-edit-form input {
  width: 100%; padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
}
.wallet-edit-form input:focus { outline: none; border-color: var(--accent); }
.wallet-edit-form input.error { border-color: var(--danger); }
.wallet-edit-actions { display: flex; gap: 12px; margin-top: 20px; }
.wallet-edit-actions .btn-primary, .wallet-edit-actions .btn-secondary { flex: 1; margin-bottom: 0; }

.edit-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}
.edit-form-header svg { color: var(--accent); width: 24px; height: 24px; }
.edit-form-header span { font-size: 16px; font-weight: 600; color: var(--text-primary); }

/* ============ REFERRAL CARD - NEW ============ */
.referral-card-new {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
}
.referral-stats-new { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.referral-stat-new { 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center; 
  padding: 20px 16px; 
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%); 
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); 
  min-height: 90px;
}
.referral-stat-new .value { 
  font-size: 28px; 
  font-weight: 800; 
  margin-bottom: 8px; 
  line-height: 1;
}
.referral-stat-new .value.accent { color: var(--accent); }
.referral-stat-new .label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.btn-referral-new {
  width: 100%; padding: 16px 24px;
  background: var(--accent-light);
  border: 1px solid rgba(42, 171, 238, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn-referral-new:hover { background: rgba(42, 171, 238, 0.2); }
.referral-note-new { font-size: 12px; color: var(--text-secondary); text-align: center; margin-top: 14px; }

/* ============ V292: INFO CARD ============ */
.info-card-new {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
}
.info-row-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}
.info-row-new:last-child { border-bottom: none; }
.info-label-new {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.info-label-new svg { width: 18px; height: 18px; opacity: 0.7; }
.info-value-new {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.info-value-new.green { color: var(--success); }

/* ============ V292: SUPPORT CARD ============ */
.support-card-new {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 24px;
}
.support-card-new:hover {
  border-color: rgba(42, 171, 238, 0.2);
  background: rgba(42, 171, 238, 0.05);
}
.support-card-new:active { transform: scale(0.98); }
.support-icon-new {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.support-icon-new svg { width: 22px; height: 22px; color: var(--accent); }
.support-content-new { flex: 1; }
.support-title-new { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.support-subtitle-new { font-size: 12px; color: var(--text-secondary); }
.support-card-new > svg:last-child { color: var(--text-secondary); transition: all 0.3s ease; flex-shrink: 0; }
.support-card-new:hover > svg:last-child { color: var(--accent); transform: translateX(3px); }

/* ============ V292: CREATE DEAL BUTTON ============ */
.btn-create-deal-profile {
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(49, 181, 69, 0.15) 0%, rgba(49, 181, 69, 0.08) 100%);
  border: 1px solid rgba(49, 181, 69, 0.3);
  border-radius: var(--radius-md);
  color: var(--success);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}
.btn-create-deal-profile:hover {
  background: linear-gradient(135deg, rgba(49, 181, 69, 0.25) 0%, rgba(49, 181, 69, 0.15) 100%);
  border-color: rgba(49, 181, 69, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(49, 181, 69, 0.2);
}
.btn-create-deal-profile:active {
  transform: scale(0.98);
}
.btn-create-deal-profile svg {
  flex-shrink: 0;
}

/* ============ V287: SHARE PROFILE BUTTON ============ */
.btn-share-profile {
  width: 100%;
  padding: 14px 20px;
  margin: 16px 0;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.15) 0%, rgba(42, 171, 238, 0.08) 100%);
  border: 1px solid rgba(42, 171, 238, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}
.btn-share-profile:hover {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.25) 0%, rgba(42, 171, 238, 0.15) 100%);
  border-color: rgba(42, 171, 238, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(42, 171, 238, 0.2);
}
.btn-share-profile svg {
  flex-shrink: 0;
}

/* ============ V287: BALANCE HISTORY SECTION ============ */
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title-row .section-title {
  margin: 0;
}
.balance-history-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.15) 0%, rgba(42, 171, 238, 0.08) 100%);
  border: 1px solid rgba(42, 171, 238, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--accent);
}
.balance-history-btn:hover {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.25) 0%, rgba(42, 171, 238, 0.15) 100%);
  border-color: rgba(42, 171, 238, 0.4);
  transform: scale(1.05);
}
.balance-history-btn:active {
  transform: scale(0.95);
}
.balance-history-btn svg {
  width: 20px;
  height: 20px;
}

/* ============ INFO CARD - NEW ============ */
.info-card-new {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.info-row-new {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--glass-border);
}
.info-row-new:last-child { border-bottom: none; }
.info-row-new span:first-child { color: var(--text-secondary); font-size: 14px; }
.info-row-new .value { font-size: 14px; font-weight: 600; }
.info-row-new .value.accent { color: var(--accent); }

/* ============ WITHDRAW PAGE - NEW ============ */
.balance-display-new {
  text-align: center; padding: 32px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
}
.balance-display-new .balance-label { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.balance-value-big { font-size: 40px; font-weight: 800; color: var(--accent); }

.withdraw-methods-new { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.withdraw-method-new {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.withdraw-method-new:hover:not(.disabled) { background: var(--glass-bg-hover); }
.withdraw-method-new.active { border-color: var(--accent); background: var(--accent-light); }
.withdraw-method-new.disabled { opacity: 0.5; cursor: not-allowed; }
.withdraw-method-new .method-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
}
.withdraw-method-new.ton .method-icon { background: var(--accent-light); color: var(--accent); }
.withdraw-method-new.card .method-icon { background: var(--purple-light); color: var(--purple); }
.withdraw-method-new.stars .method-icon { background: var(--gold-light); color: var(--gold); }
.withdraw-method-new .method-info { flex: 1; }
.withdraw-method-new .method-name { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.withdraw-method-new .method-status { font-size: 13px; color: var(--text-secondary); }
.withdraw-method-new svg:last-child { color: var(--success); }

.withdraw-info-new {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.max-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  padding: 10px 16px;
  background: var(--accent-light);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.max-btn:hover { background: var(--accent); color: white; }

/* ============ BOTTOM NAVIGATION ============ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 16px;
  padding-bottom: max(12px, var(--safe-bottom));
  background: rgba(23, 33, 43, 0.85);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  border-top: 1px solid var(--glass-border);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* V278: РЎРєСЂС‹РІР°РµРј С‚Р°Р±С‹ РєРѕРіРґР° РєР»Р°РІРёР°С‚СѓСЂР° РѕС‚РєСЂС‹С‚Р° */
.bottom-nav.keyboard-open {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.bottom-nav.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.nav-container {
  max-width: 440px; margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 6px;
  display: flex; justify-content: space-around;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  color: var(--text-secondary);
}
.nav-item:hover { color: var(--text-primary); }
.nav-item.active { background: var(--accent-light); color: var(--accent); }
.nav-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.nav-label { font-size: 10px; font-weight: 600; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 360px) {
  .stats-grid { gap: 8px; }
  .stat-card { padding: 14px 10px; }
  .stat-value { font-size: 18px; }
  .balance-amount-new { font-size: 26px; }
  .balance-value-big { font-size: 32px; }
}

@supports (padding-top: env(safe-area-inset-top)) {
  .app { padding-top: max(16px, calc(env(safe-area-inset-top) + 56px)); }
}

/* ============ CREATE DEAL PAGE - NEW DESIGN ============ */
.create-section { margin-bottom: 24px; }

.amount-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.amount-input-large {
  margin-bottom: 20px;
}
.amount-input-large input {
  width: 100%;
  padding: 20px;
  background: rgba(42, 171, 238, 0.08);
  border: 2px solid rgba(42, 171, 238, 0.2);
  border-radius: var(--radius-lg);
  color: var(--accent);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.amount-input-large input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(42, 171, 238, 0.15);
}
.amount-input-large input::placeholder { color: rgba(42, 171, 238, 0.4); }
.amount-input-large.error input { border-color: var(--danger); background: rgba(229, 57, 53, 0.08); }

.currency-chips { 
  display: flex; 
  flex-wrap: wrap;
  gap: 8px; 
  justify-content: center; 
}
.currency-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.currency-chip svg { width: 16px; height: 16px; }
.currency-chip:hover { background: var(--glass-bg-hover); color: var(--text-primary); }
.currency-chip.active { 
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.description-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  position: relative;
}
.description-card textarea {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  resize: none;
  min-height: 100px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.description-card textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.description-card textarea::placeholder { color: var(--text-secondary); }
.description-card textarea.error { border-color: var(--danger); }

.char-counter {
  text-align: right;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-secondary);
}
.payment-card:hover { background: var(--glass-bg-hover); color: var(--text-primary); }
.payment-card.active { border-color: var(--accent); background: var(--accent-light); }
.payment-card.active.ton { border-color: var(--accent); }
.payment-card.active.card { border-color: var(--purple); background: var(--purple-light); }
.payment-card.active.stars { border-color: var(--gold); background: var(--gold-light); }

.payment-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
}
.payment-card-icon svg { width: 28px; height: 28px; }
.payment-card.ton .payment-card-icon { color: var(--accent); }
.payment-card.card .payment-card-icon { color: var(--purple); }
.payment-card.stars .payment-card-icon { color: var(--gold); }

.payment-card span { font-size: 14px; font-weight: 600; }

.payment-check {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  color: white;
}
.payment-card.card .payment-check { background: var(--purple); }
.payment-card.stars .payment-check { background: var(--gold); }
.payment-check svg { width: 14px; height: 14px; }

.summary-card {
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(36, 52, 66, 0.4) 100%);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.summary-row span:first-child { color: var(--text-secondary); font-size: 14px; }
.summary-value { font-size: 15px; font-weight: 600; }
.summary-value.negative { color: var(--danger); }
.summary-value.accent { color: var(--accent); }
.summary-divider { height: 1px; background: var(--glass-border); margin: 8px 0; }
.summary-row.total { padding-top: 16px; }
.summary-row.total span:first-child { font-weight: 600; color: var(--text-primary); }
.summary-row.total .summary-value { font-size: 20px; font-weight: 700; }

.btn-create {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 24px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-create:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-create:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-create svg { width: 22px; height: 22px; }

.error-text.center { text-align: center; display: block; margin-top: 12px; }

/* ============ DEAL CREATED PAGE - NEW DESIGN ============ */
.success-animation {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
}
.success-circle {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(49, 181, 69, 0.2) 0%, rgba(49, 181, 69, 0.08) 100%);
  border: 3px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 0 40px rgba(49, 181, 69, 0.3), inset 0 0 30px rgba(49, 181, 69, 0.1);
}
.success-checkmark {
  color: var(--success);
  animation: check-in 0.3s ease 0.3s forwards;
  opacity: 0;
  transform: scale(0);
}
.success-checkmark svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 12px rgba(49, 181, 69, 0.5));
}
.success-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid var(--success);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1) translateZ(0);
  opacity: 0;
  animation: ripple 1.5s ease-out 0.5s forwards;
  backface-visibility: hidden;
}
@keyframes scale-in {
  from { transform: scale(0) translateZ(0); opacity: 0; }
  to { transform: scale(1) translateZ(0); opacity: 1; }
}
@keyframes check-in {
  from { transform: scale(0) translateZ(0); opacity: 0; }
  to { transform: scale(1) translateZ(0); opacity: 1; }
}
@keyframes ripple {
  0% { transform: translate(-50%, -50%) scale(1) translateZ(0); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.8) translateZ(0); opacity: 0; }
}

.success-title-new {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.success-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.deal-created-card {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(36, 52, 66, 0.5) 100%);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}
.deal-created-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}
.deal-created-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.deal-created-id {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  font-family: monospace;
}
.deal-created-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}
.deal-created-amount span {
  font-size: 36px !important;
  font-weight: 800 !important;
  color: var(--accent) !important;
}
.deal-created-desc {
  font-size: 14px;
  color: var(--text-secondary);
  word-break: break-word;
}

.link-box-new {
  width: 100%;
  max-width: 320px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}
.link-text {
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-all;
  margin-bottom: 12px;
  font-family: monospace;
}
.link-copy-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--accent-light);
  border: 1px solid rgba(42, 171, 238, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.link-copy-btn:hover {
  background: var(--accent);
  color: white;
}
.link-copy-btn.copied {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.deal-created-actions {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-share-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-share-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--accent-glow);
}
.btn-deals-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn-deals-secondary:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

/* ============ BUYER PAYMENT PAGE ============ */
.buyer-payment-page {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0d1820 100%);
}
.buyer-payment-page .content {
  padding-bottom: 40px;
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--glass-border);
}
.payment-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}
.payment-logo svg {
  width: 28px;
  height: 28px;
}
.payment-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(49, 181, 69, 0.12);
  border: 1px solid rgba(49, 181, 69, 0.25);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}
.payment-badge svg {
  width: 14px;
  height: 14px;
}

.payment-timer-card {
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(36, 52, 66, 0.6) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}
.payment-timer-card.urgent {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15) 0%, rgba(245, 166, 35, 0.05) 100%);
  border-color: rgba(245, 166, 35, 0.3);
}
.payment-timer-card.expired {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.15) 0%, rgba(229, 57, 53, 0.05) 100%);
  border-color: rgba(229, 57, 53, 0.3);
}
.timer-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.timer-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.timer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timer-value {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.payment-timer-card.urgent .timer-value {
  color: var(--warning);
}
.payment-timer-card.expired .timer-value {
  color: var(--danger);
}
.timer-unit {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.timer-separator {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.timer-expired {
  margin-top: 12px;
  font-size: 14px;
  color: var(--danger);
  font-weight: 600;
}

.payment-deal-card {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.1) 0%, rgba(42, 171, 238, 0.03) 100%);
  border: 1px solid rgba(42, 171, 238, 0.2);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
}
.payment-deal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.payment-deal-label {
  font-size: 13px;
  color: var(--text-secondary);
}
.payment-deal-id {
  font-size: 12px;
  color: var(--accent);
  font-family: monospace;
  background: var(--accent-light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.payment-deal-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  margin-bottom: 12px;
}
.payment-deal-amount span {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
}
.payment-deal-desc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}
.payment-deal-desc svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.payment-details-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
}
.payment-method-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}
.payment-method-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}
.payment-method-icon.card {
  background: var(--purple-light);
  color: var(--purple);
}
.payment-method-icon.ton {
  background: var(--accent-light);
  color: var(--accent);
}
.payment-method-icon.stars {
  background: var(--gold-light);
  color: var(--gold);
}
.payment-method-icon svg {
  width: 24px;
  height: 24px;
}
.payment-method-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.payment-method-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.payment-method-type {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.payment-requisites {
  margin-bottom: 16px;
}
.requisites-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.requisites-value-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}
.requisites-value {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: monospace;
  letter-spacing: 1px;
  word-break: break-all;
}
.requisites-value.small {
  font-size: 12px;
  letter-spacing: 0;
}
.requisites-copy {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border: 1px solid rgba(42, 171, 238, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.requisites-copy:hover {
  background: var(--accent);
  color: white;
}
.requisites-copy.copied {
  background: var(--success);
  border-color: var(--success);
  color: white;
}
.requisites-copy svg {
  width: 20px;
  height: 20px;
}

.payment-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.payment-warning svg {
  width: 18px;
  height: 18px;
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 2px;
}
.payment-warning strong {
  color: var(--warning);
}

.btn-paid {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--success) 0%, #28a745 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(49, 181, 69, 0.4);
  margin-bottom: 16px;
}
.btn-paid:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(49, 181, 69, 0.5);
}
.btn-paid:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn-paid.success {
  background: linear-gradient(135deg, rgba(49, 181, 69, 0.2) 0%, rgba(49, 181, 69, 0.1) 100%);
  border: 1px solid var(--success);
  box-shadow: none;
}

.btn-support {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  margin-bottom: 16px;
}
.btn-support:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.seller-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.seller-avatar {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 50%;
  color: var(--accent);
}
.seller-avatar svg {
  width: 22px;
  height: 22px;
}
.seller-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.seller-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.seller-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.seller-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(49, 181, 69, 0.12);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}
.seller-stats svg {
  width: 14px;
  height: 14px;
}

/* ============ V272: PAYMENT SUCCESS PAGE ============ */
.payment-success-page {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  padding-top: calc(24px + var(--safe-top));
}

.ps-header {
  text-align: center;
  margin-bottom: 24px;
}

.ps-icon-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  position: relative;
}

.ps-icon-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.5);
  z-index: 1;
}

.ps-icon-bg svg {
  width: 40px;
  height: 40px;
  color: white;
}

/* V298: Error state styles */
.ps-icon-wrap.error .ps-shimmer {
  display: none;
}

.ps-icon-bg.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.5);
}

.ps-shimmer {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(34, 197, 94, 0.4), transparent);
  animation: ps-rotate 3s linear infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style;
}

@keyframes ps-rotate {
  from { transform: rotate(0deg) translateZ(0); }
  to { transform: rotate(360deg) translateZ(0); }
}

.ps-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.ps-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

.ps-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 16px;
}

.ps-card-header {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-bottom: 1px solid var(--glass-border);
  padding: 20px;
  text-align: center;
}

.ps-amount-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ps-amount {
  font-size: 36px;
  font-weight: 800;
  color: #22c55e;
}

.ps-rows {
  padding: 8px 0;
}

.ps-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}

.ps-row-label {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ps-row-label svg {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

.ps-row-value {
  font-size: 14px;
  font-weight: 600;
  max-width: 50%;
  text-align: right;
  word-break: break-word;
}

.ps-row-value.accent {
  color: var(--accent);
}

.ps-row-value.success {
  color: #22c55e;
}

.ps-row-value.warning {
  color: #f59e0b;
}

.ps-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(42, 171, 238, 0.08);
  border: 1px solid rgba(42, 171, 238, 0.15);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.ps-security.frozen {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.ps-security.frozen svg {
  color: #f59e0b;
}

.ps-security.frozen span {
  color: #f59e0b;
}

/* V299: Success state for completed deals */
.ps-icon-wrap.success .ps-shimmer,
.ps-shimmer.success {
  background: linear-gradient(90deg, transparent 0%, rgba(34, 197, 94, 0.4) 50%, transparent 100%);
}

.ps-icon-bg.success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4);
}

.ps-card.success {
  border-color: rgba(34, 197, 94, 0.2);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%);
}

.ps-security.success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}

.ps-security.success svg {
  color: var(--success);
}

.ps-security.success span {
  color: var(--success);
}

.ps-row-value.success {
  color: var(--success);
}

.ps-security svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.ps-security span {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.ps-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.ps-btn {
  flex: 1;
  padding: 16px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.ps-btn.ps-btn-full {
  padding: 18px 24px;
  font-size: 16px;
  gap: 10px;
}

.ps-btn svg {
  width: 18px;
  height: 18px;
}

.ps-btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.ps-btn-secondary:active {
  transform: scale(0.98);
  background: var(--glass-bg-hover);
}

.ps-btn-primary {
  background: var(--accent);
  border: none;
  color: white;
  box-shadow: 0 8px 24px rgba(42, 171, 238, 0.4);
}

.ps-btn-primary:active {
  transform: scale(0.98);
  background: var(--accent-hover);
}

/* ============ BUYER PAYMENT PAGE - NEW COMPACT DESIGN ============ */
.buyer-payment-page-new {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0f1922 100%);
}

.buyer-payment-page-new .content {
  padding-bottom: 30px;
}

/* Header */
.bp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  padding-top: calc(16px + var(--safe-top));
}

.bp-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.bp-logo svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.bp-deal-id {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: 'SF Mono', monospace;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
}

/* Seller Card - TOP */
.bp-seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.08) 0%, rgba(42, 171, 238, 0.02) 100%);
  border: 1px solid rgba(42, 171, 238, 0.15);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.bp-seller-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  background: rgba(42, 171, 238, 0.08);
  border-radius: 50%;
}

.bp-seller-avatar {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(42, 171, 238, 0.05) 100%);
  border: 1px solid rgba(42, 171, 238, 0.25);
  border-radius: 50%;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.bp-seller-avatar svg {
  width: 20px;
  height: 20px;
}

.bp-seller-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.bp-seller-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bp-seller-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.bp-seller-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--success-light) 0%, rgba(49, 181, 69, 0.05) 100%);
  border: 1px solid rgba(49, 181, 69, 0.2);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
  position: relative;
  z-index: 1;
}

.bp-seller-badge svg {
  width: 14px;
  height: 14px;
}

/* Main Deal Card */
.bp-deal-card {
  background: linear-gradient(135deg, rgba(30, 44, 58, 0.9) 0%, rgba(23, 33, 43, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}

.bp-deal-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.bp-deal-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.bp-deal-card.card-theme::before { background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%); }
.bp-deal-card.card-theme::after { background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%); }
.bp-deal-card.ton-theme::before { background: radial-gradient(circle, rgba(42, 171, 238, 0.15) 0%, transparent 70%); }
.bp-deal-card.ton-theme::after { background: radial-gradient(circle, rgba(42, 171, 238, 0.08) 0%, transparent 70%); }
.bp-deal-card.stars-theme::before { background: radial-gradient(circle, rgba(255, 184, 0, 0.12) 0%, transparent 70%); }
.bp-deal-card.stars-theme::after { background: radial-gradient(circle, rgba(255, 184, 0, 0.06) 0%, transparent 70%); }

/* Timer Row */
.bp-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(42, 171, 238, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.bp-timer-row.card-theme { background: linear-gradient(90deg, rgba(139, 92, 246, 0.08) 0%, transparent 60%); }
.bp-timer-row.stars-theme { background: linear-gradient(90deg, rgba(255, 184, 0, 0.08) 0%, transparent 60%); }

.bp-timer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-timer-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(42, 171, 238, 0.05) 100%);
  border: 1px solid rgba(42, 171, 238, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent);
}

.bp-timer-icon.card-theme {
  background: linear-gradient(135deg, var(--purple-light) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--purple);
}

.bp-timer-icon.stars-theme {
  background: linear-gradient(135deg, var(--gold-light) 0%, rgba(255, 184, 0, 0.05) 100%);
  border-color: rgba(255, 184, 0, 0.2);
  color: var(--gold);
}

.bp-timer-icon svg {
  width: 18px;
  height: 18px;
}

.bp-timer-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bp-timer-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: none;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.bp-timer-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.bp-timer-value.urgent { color: var(--warning); }
.bp-timer-value.expired { color: var(--danger); }

/* Amount Section */
.bp-amount-section {
  padding: 28px 16px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.bp-amount-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: none;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-weight: 500;
}

.bp-amount-value {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -2px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
}

.bp-amount-currency {
  font-size: 52px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -1px;
}

.currency-with-icon {
  display: inline-flex;
  align-items: center;
}

/* Description Row */
.bp-desc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.bp-desc-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple-light) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  color: var(--purple);
  flex-shrink: 0;
}

.bp-desc-icon.ton-theme {
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(42, 171, 238, 0.05) 100%);
  border-color: rgba(42, 171, 238, 0.2);
  color: var(--accent);
}

.bp-desc-icon.stars-theme {
  background: linear-gradient(135deg, var(--gold-light) 0%, rgba(255, 184, 0, 0.05) 100%);
  border-color: rgba(255, 184, 0, 0.2);
  color: var(--gold);
}

.bp-desc-icon svg {
  width: 20px;
  height: 20px;
}

.bp-desc-text {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* Payment Box */
.bp-payment-box {
  background: linear-gradient(135deg, rgba(30, 44, 58, 0.8) 0%, rgba(23, 33, 43, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.bp-payment-box::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.bp-payment-box.ton::before { background: radial-gradient(circle, rgba(42, 171, 238, 0.12) 0%, transparent 70%); }
.bp-payment-box.stars::before { background: radial-gradient(circle, rgba(255, 184, 0, 0.12) 0%, transparent 70%); }

.bp-payment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.bp-payment-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.bp-payment-icon.card {
  background: linear-gradient(135deg, var(--purple-light) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--purple);
}

.bp-payment-icon.ton {
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(42, 171, 238, 0.05) 100%);
  border: 1px solid rgba(42, 171, 238, 0.2);
  color: var(--accent);
}

.bp-payment-icon.stars {
  background: linear-gradient(135deg, var(--gold-light) 0%, rgba(255, 184, 0, 0.05) 100%);
  border: 1px solid rgba(255, 184, 0, 0.2);
  color: var(--gold);
}

.bp-payment-meta { 
  flex: 1; 
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bp-payment-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: none;
  letter-spacing: 0.3px;
}

.bp-payment-type {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.bp-requisites-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
}

.bp-requisites-text {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'SF Mono', Consolas, monospace;
  letter-spacing: 0.5px;
  word-break: break-all;
}

.bp-requisites-text.small {
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.4;
}

.bp-copy-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.bp-copy-btn:active { transform: scale(0.95); }

.bp-copy-btn.ton {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  box-shadow: 0 4px 12px rgba(42, 171, 238, 0.3);
}

.bp-copy-btn.stars {
  background: linear-gradient(135deg, var(--gold) 0%, #e6a600 100%);
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.bp-copy-btn.copied {
  background: linear-gradient(135deg, var(--success) 0%, #27a33d 100%);
  box-shadow: 0 4px 12px rgba(49, 181, 69, 0.3);
}

.bp-copy-btn svg {
  width: 16px;
  height: 16px;
}

/* Guide Accordion */
.bp-guide-box {
  background: linear-gradient(135deg, rgba(30, 44, 58, 0.7) 0%, rgba(23, 33, 43, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}

.bp-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.bp-guide-header:hover { background: rgba(255, 255, 255, 0.02); }

.bp-guide-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.bp-guide-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--warning-light) 0%, rgba(245, 166, 35, 0.05) 100%);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 50%;
  color: var(--warning);
}

.bp-guide-arrow {
  color: var(--text-secondary);
  transition: transform 0.25s ease;
}

.bp-guide-arrow.open { transform: rotate(180deg); }

.bp-guide-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.bp-guide-content.open { max-height: 320px; }

.bp-guide-steps {
  padding: 0 16px 16px;
}

.bp-step {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bp-step:last-child { border-bottom: none; padding-bottom: 0; }

.bp-step-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(42, 171, 238, 0.05) 100%);
  border: 1px solid rgba(42, 171, 238, 0.2);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.bp-step-num.card-theme {
  background: linear-gradient(135deg, var(--purple-light) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--purple);
}

.bp-step-num.stars-theme {
  background: linear-gradient(135deg, var(--gold-light) 0%, rgba(255, 184, 0, 0.05) 100%);
  border-color: rgba(255, 184, 0, 0.2);
  color: var(--gold);
}

.bp-step-body { flex: 1; padding-top: 2px; }

.bp-step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.bp-step-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bp-highlight { color: var(--accent); font-weight: 600; }

/* V267: РљРѕРјРјРµРЅС‚Р°СЂРёР№ Рє РїРµСЂРµРІРѕРґСѓ СЃ РєРѕРїРёСЂРѕРІР°РЅРёРµРј */
.bp-comment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  margin-top: 10px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px dashed rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bp-comment-row:active {
  background: rgba(139, 92, 246, 0.15);
}

.bp-comment-row .bp-comment-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.bp-comment-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-comment-row .bp-comment-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.5px;
  font-family: 'SF Mono', 'Roboto Mono', monospace;
}

.bp-copy-btn-small {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.2);
  border: none;
  border-radius: 6px;
  color: var(--purple);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.bp-copy-btn-small svg {
  width: 14px;
  height: 14px;
}

.bp-copy-btn-small.copied {
  background: var(--success);
  color: white;
}

/* Warning */
.bp-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--warning-light) 0%, rgba(245, 166, 35, 0.03) 100%);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.bp-warning-box svg {
  width: 18px;
  height: 18px;
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 2px;
}

.bp-warning-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bp-warning-text strong { color: var(--warning); }

/* Buttons */
.bp-btn-paid {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, var(--success) 0%, #27a33d 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(49, 181, 69, 0.35);
  margin-bottom: 10px;
  transition: transform 0.2s, opacity 0.2s;
  position: relative;
  overflow: hidden;
}

.bp-btn-paid::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.bp-btn-paid:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(49, 181, 69, 0.4);
}

.bp-btn-paid:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.bp-btn-paid.success {
  background: linear-gradient(135deg, rgba(49, 181, 69, 0.2) 0%, rgba(49, 181, 69, 0.1) 100%);
  border: 1px solid var(--success);
  box-shadow: none;
}

.bp-btn-support {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  margin-bottom: 10px;
}

.bp-btn-support:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.bp-btn-menu {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(30, 44, 58, 0.8) 0%, rgba(23, 33, 43, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  position: relative;
  overflow: hidden;
}

.bp-btn-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 50px;
  height: 50px;
  background: rgba(42, 171, 238, 0.05);
  border-radius: 50%;
}

.bp-btn-menu:hover {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.1) 0%, rgba(42, 171, 238, 0.03) 100%);
  border-color: rgba(42, 171, 238, 0.2);
  color: var(--text-primary);
}

.bp-btn-menu svg {
  width: 18px;
  height: 18px;
}


/* ============ V268: SELLER INSTRUCTION PAGE ============ */
.seller-instruction-page .content {
  padding-bottom: calc(100px + var(--safe-bottom, 0px) + 40px);
}

.si-success-banner {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.si-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  color: var(--success);
}

.si-success-icon svg {
  width: 32px;
  height: 32px;
}

.si-success-banner h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 8px;
}

.si-success-banner p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.si-deal-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.si-deal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.si-deal-row:last-child {
  border-bottom: none;
}

.si-deal-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.si-deal-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.si-deal-value.accent {
  color: var(--accent);
  font-size: 16px;
}

.si-steps-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.si-steps {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.si-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}

.si-step:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.si-step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, #1e88e5 100%);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.si-step-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-top: 4px;
}

.si-highlight {
  color: var(--accent);
  font-weight: 600;
}

.si-warning-box {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.si-warning-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  color: var(--danger);
}

.si-warning-icon svg {
  width: 20px;
  height: 20px;
}

.si-warning-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 6px;
}

.si-warning-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.si-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.si-btn-manager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: rgba(139, 92, 246, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-xl);
  color: var(--purple);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.si-btn-manager::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.si-btn-manager:active {
  transform: scale(0.98);
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}

.si-btn-manager svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.si-btn-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: rgba(34, 197, 94, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-xl);
  color: var(--success);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.si-btn-confirm::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.si-btn-confirm:active {
  transform: scale(0.98);
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
}

.si-btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.si-btn-confirm svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ============ V268: ACTIVE DEALS ON HOME ============ */
.active-deals-section {
  margin-bottom: 24px;
}

.active-deal-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.12) 0%, rgba(245, 166, 35, 0.04) 100%);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.active-deal-card:active {
  transform: scale(0.98);
  background: rgba(245, 166, 35, 0.2);
}

.active-deal-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 166, 35, 0.2);
  border-radius: 50%;
  color: var(--warning);
}

.active-deal-icon svg {
  width: 24px;
  height: 24px;
}

.active-deal-info {
  flex: 1;
  min-width: 0;
}

.active-deal-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.active-deal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-deal-action {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--warning);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.active-deal-action svg {
  width: 16px;
  height: 16px;
}

/* V278: Completed Deal Card - Success Style */
.section-title.completed-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
}

.section-title.completed-title svg {
  width: 18px;
  height: 18px;
}

.completed-deal-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.completed-deal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
}

.completed-deal-card:active {
  transform: scale(0.98);
}

.completed-deal-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.completed-deal-card > .completed-deal-icon {
  display: none;
}

.completed-deal-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.completed-deal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.completed-deal-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.completed-deal-status {
  display: flex;
  align-items: center;
}

.completed-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 20px;
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}

.completed-status-badge svg {
  width: 16px;
  height: 16px;
}

.completed-deal-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 14px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.completed-deal-action svg {
  width: 20px;
  height: 20px;
}

.completed-deal-card:hover .completed-deal-action {
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.4);
}

/* Gift button style */
.btn-gift {
  background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 100%) !important;
}

.btn-gift:active {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
}



/* ============ V268: CHECKING MODAL ============ */
.si-checking-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.si-checking-modal {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.08) 0%, rgba(42, 171, 238, 0.02) 100%);
  border: 1px solid rgba(42, 171, 238, 0.2);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.si-checking-modal::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.si-checking-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.si-checking-spinner {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 3px solid rgba(42, 171, 238, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes spin {
  to { transform: rotate(360deg) translateZ(0); }
}

.si-checking-icon svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
  position: relative;
}

.si-checking-modal h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
}

.si-checking-modal p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  position: relative;
}

.si-checking-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  position: relative;
}

.si-status-dot {
  width: 10px;
  height: 10px;
  background: var(--warning);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1) translateZ(0); }
  50% { opacity: 0.5; transform: scale(0.8) translateZ(0); }
}

.si-checking-status span {
  font-size: 13px;
  font-weight: 500;
  color: var(--warning);
}

.si-checking-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  position: relative;
}

.si-checking-info svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.si-checking-info span {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
}

/* V277: Frozen Balance - РёР· v3 РІР°СЂРёР°РЅС‚ 1 */
.frozen-amount-wrapper {
  position: relative;
  display: inline-block;
}

/* V277: РњР°С‚РѕРІС‹Р№ Р»РµРґСЏРЅРѕР№ С‚РµРєСЃС‚ СЃ data-amount */
.frozen-amount-glow {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.frozen-amount-glow::before {
  content: attr(data-amount);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, 
    rgba(255,255,255,1) 0%,
    rgba(200,230,255,0.9) 30%,
    rgba(255,255,255,0.95) 60%,
    rgba(180,220,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

/* V277: Glass РїР»Р°С€РєР° РґР»СЏ frozen hint */
.frozen-hint-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 16px;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.frozen-hint-line svg {
  width: 14px;
  height: 14px;
  color: #a5d8ff;
  flex-shrink: 0;
}

.si-btn-back-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.si-btn-back-home:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.1);
}

.si-btn-back-home svg {
  width: 20px;
  height: 20px;
}

/* Loading state for confirm button */
.si-btn-confirm.loading {
  background: rgba(245, 166, 35, 0.12);
  border-color: rgba(245, 166, 35, 0.3);
  color: var(--warning);
}

.si-btn-confirm.loading::before {
  background: radial-gradient(circle, rgba(245, 166, 35, 0.2) 0%, transparent 70%);
}

.si-btn-confirm.loading svg {
  animation: spin 1s linear infinite;
}



/* V269: Checking state for active deal card */
.active-deal-card.checking {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.12) 0%, rgba(42, 171, 238, 0.04) 100%);
  border-color: rgba(42, 171, 238, 0.3);
}

.active-deal-card.checking .active-deal-icon {
  background: rgba(42, 171, 238, 0.2);
  color: var(--accent);
}

.active-deal-card.checking .active-deal-icon svg {
  animation: spin 1s linear infinite;
}

.active-deal-card.checking .active-deal-action {
  color: var(--accent);
}


/* ============ V270: VERIFIED MODAL ============ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateZ(0); }
  to { opacity: 1; transform: translateZ(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95) translateZ(0); }
  to { opacity: 1; transform: translateY(0) scale(1) translateZ(0); }
}

.verified-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transform: translateZ(0);
  contain: layout style paint;
  padding: 20px;
  animation: fadeIn 0.2s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.verified-modal {
  background: #1e293b;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-radius: 24px;
  border: 1px solid rgba(42, 171, 238, 0.3);
  width: 100%;
  max-width: 340px;
  min-height: 400px;
  overflow: hidden;
  animation: slideUp 0.3s ease forwards;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(42, 171, 238, 0.1);
}

.verified-modal-header {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 30px 20px 15px;
  background: linear-gradient(180deg, rgba(42, 171, 238, 0.15) 0%, transparent 100%);
}

.verified-modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.3) 0%, rgba(42, 171, 238, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(42, 171, 238, 0.4);
  box-shadow: 0 0 30px rgba(42, 171, 238, 0.3);
}

.verified-modal-icon svg {
  width: 44px;
  height: 44px;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(42, 171, 238, 0.5));
}

.verified-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.verified-modal-close:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.15);
}

.verified-modal-close svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.verified-modal-content {
  padding: 10px 24px 28px;
  text-align: center;
}

.verified-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.verified-modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.verified-modal-info {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px;
  margin-bottom: 20px;
}

.verified-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.verified-info-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.verified-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.2) 0%, rgba(42, 171, 238, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verified-info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.verified-info-text {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.verified-info-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.verified-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.verified-info-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(76, 217, 100, 0.25) 0%, rgba(76, 217, 100, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verified-info-check svg {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.verified-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.2) 0%, rgba(42, 171, 238, 0.08) 100%);
  border-radius: 30px;
  border: 1px solid rgba(42, 171, 238, 0.3);
}

.verified-modal-badge svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.verified-modal-badge span {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* Verified badge clickable */
.verified-badge {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.verified-badge:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* V270: Verified Info List (reusing si-checking styles) */
.verified-info-list {
  margin-top: 20px;
  text-align: left;
}

.verified-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 8px;
}

.verified-info-item:last-child {
  margin-bottom: 0;
}

.verified-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.2) 0%, rgba(42, 171, 238, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verified-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.verified-item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.verified-item-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.verified-item-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.verified-item-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(76, 217, 100, 0.25) 0%, rgba(76, 217, 100, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verified-item-check svg {
  width: 16px;
  height: 16px;
  color: var(--success);
}

/* Override si-checking-icon for verified */
.si-checking-modal .si-checking-icon svg {
  color: var(--accent);
}

/* ============ V278: DEAL COMPLETION MODAL ============ */
.dcm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dcm-overlay.visible {
  opacity: 1;
}

.dcm-modal {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.1) 0%, var(--bg-secondary) 30%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dcm-modal.visible {
  transform: scale(1);
  opacity: 1;
}

/* Confetti */
/* Explosive Confetti Container */
.dcm-confetti {
  position: absolute;
  top: 72px; /* Р¦РµРЅС‚СЂ РёРєРѕРЅРєРё (32px padding + 40px РїРѕР»РѕРІРёРЅР° РёРєРѕРЅРєРё) */
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10;
}

.dcm-confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: dcmExplode 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.dcm-confetti-particle.circle { border-radius: 50%; }
.dcm-confetti-particle.rect { border-radius: 1px; width: 5px; height: 10px; }

@keyframes dcmExplode {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1) translateZ(0);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.2) translateZ(0);
  }
}

/* РўСЂР°РµРєС‚РѕСЂРёРё С‡Р°СЃС‚РёС† - РІРµСЂС…РЅСЏСЏ РґСѓРіР° */
.dcm-confetti-particle:nth-child(1) { --tx: -100px; --ty: -120px; --rot: 720deg; animation-delay: 0s; }
.dcm-confetti-particle:nth-child(2) { --tx: -60px; --ty: -140px; --rot: -540deg; animation-delay: 0.02s; }
.dcm-confetti-particle:nth-child(3) { --tx: -20px; --ty: -150px; --rot: 630deg; animation-delay: 0.04s; }
.dcm-confetti-particle:nth-child(4) { --tx: 25px; --ty: -148px; --rot: -720deg; animation-delay: 0.03s; }
.dcm-confetti-particle:nth-child(5) { --tx: 65px; --ty: -135px; --rot: 540deg; animation-delay: 0.05s; }
.dcm-confetti-particle:nth-child(6) { --tx: 105px; --ty: -115px; --rot: -630deg; animation-delay: 0.01s; }

/* Р‘РѕРєРѕРІС‹Рµ С‚СЂР°РµРєС‚РѕСЂРёРё */
.dcm-confetti-particle:nth-child(7) { --tx: -130px; --ty: -60px; --rot: -450deg; animation-delay: 0.03s; }
.dcm-confetti-particle:nth-child(8) { --tx: 135px; --ty: -55px; --rot: 450deg; animation-delay: 0.04s; }
.dcm-confetti-particle:nth-child(9) { --tx: -140px; --ty: 0px; --rot: 540deg; animation-delay: 0.02s; }
.dcm-confetti-particle:nth-child(10) { --tx: 145px; --ty: 5px; --rot: -540deg; animation-delay: 0.05s; }
.dcm-confetti-particle:nth-child(11) { --tx: -135px; --ty: 60px; --rot: -630deg; animation-delay: 0.04s; }
.dcm-confetti-particle:nth-child(12) { --tx: 140px; --ty: 65px; --rot: 630deg; animation-delay: 0.03s; }

/* РќРёР¶РЅСЏСЏ РґСѓРіР° */
.dcm-confetti-particle:nth-child(13) { --tx: -110px; --ty: 110px; --rot: 720deg; animation-delay: 0.02s; }
.dcm-confetti-particle:nth-child(14) { --tx: -65px; --ty: 130px; --rot: -540deg; animation-delay: 0.04s; }
.dcm-confetti-particle:nth-child(15) { --tx: -25px; --ty: 140px; --rot: 450deg; animation-delay: 0.01s; }
.dcm-confetti-particle:nth-child(16) { --tx: 30px; --ty: 138px; --rot: -720deg; animation-delay: 0.03s; }
.dcm-confetti-particle:nth-child(17) { --tx: 70px; --ty: 125px; --rot: 540deg; animation-delay: 0.05s; }
.dcm-confetti-particle:nth-child(18) { --tx: 115px; --ty: 105px; --rot: -450deg; animation-delay: 0.02s; }

/* Р”РѕРїРѕР»РЅРёС‚РµР»СЊРЅС‹Рµ С‡Р°СЃС‚РёС†С‹ РґР»СЏ РїР»РѕС‚РЅРѕСЃС‚Рё */
.dcm-confetti-particle:nth-child(19) { --tx: -85px; --ty: -130px; --rot: 360deg; animation-delay: 0.01s; }
.dcm-confetti-particle:nth-child(20) { --tx: 90px; --ty: -125px; --rot: -360deg; animation-delay: 0.03s; }
.dcm-confetti-particle:nth-child(21) { --tx: -145px; --ty: 30px; --rot: 540deg; animation-delay: 0.02s; }
.dcm-confetti-particle:nth-child(22) { --tx: 150px; --ty: 35px; --rot: -540deg; animation-delay: 0.04s; }
.dcm-confetti-particle:nth-child(23) { --tx: -45px; --ty: 145px; --rot: 630deg; animation-delay: 0.03s; }
.dcm-confetti-particle:nth-child(24) { --tx: 50px; --ty: 142px; --rot: -630deg; animation-delay: 0.01s; }

/* Success Icon */
.dcm-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 32px rgba(34, 197, 94, 0.4),
    0 0 0 8px rgba(34, 197, 94, 0.1);
  position: relative;
  z-index: 1;
  animation: dcmIconPop 0.5s ease 0.2s both;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes dcmIconPop {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* V299: Deal Locked Overlay - РјРѕРґР°Р»СЊРЅРѕРµ РѕРєРЅРѕ РїРѕ С†РµРЅС‚СЂСѓ СЌРєСЂР°РЅР° */
.deal-locked-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.deal-locked-modal {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 24px;
  padding: 40px 24px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.deal-locked-modal::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.deal-locked-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.4);
  position: relative;
}

.deal-locked-icon svg {
  width: 48px;
  height: 48px;
  color: white;
}

.deal-locked-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
}

.deal-locked-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 32px;
  position: relative;
}

.deal-locked-buttons {
  display: flex;
  gap: 12px;
  position: relative;
}

.deal-locked-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.deal-locked-btn svg {
  width: 18px;
  height: 18px;
}

.deal-locked-btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #1e8fd3 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(42, 171, 238, 0.3);
}

.deal-locked-btn.primary:active {
  transform: scale(0.98);
}

.deal-locked-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.deal-locked-btn.secondary:active {
  background: rgba(255, 255, 255, 0.08);
}

/* V299: Spinner icon РґР»СЏ Р°РєС‚РёРІРЅС‹С… СЃРґРµР»РѕРє */
.spinner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-icon svg {
  animation: spin 1s linear infinite;
}

/* V299: РЈР»СѓС‡С€РµРЅРЅС‹Рµ Р°РЅРёРјР°С†РёРё РґР»СЏ РїСЂРѕРІРµСЂРєРё */
.si-checking-spinner {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 3px solid rgba(42, 171, 238, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite !important;
}

.si-status-dot {
  width: 10px;
  height: 10px;
  background: var(--warning);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite !important;
}

/* V299: Ensure animations work */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1); 
  }
  50% { 
    opacity: 0.4; 
    transform: scale(0.7); 
  }
}

/* V299: Active deal card checking state */
.active-deal-card.checking .active-deal-icon {
  background: rgba(42, 171, 238, 0.15);
  border-color: rgba(42, 171, 238, 0.3);
}

.active-deal-card.checking .active-deal-icon svg {
  color: var(--accent);
  animation: spin 1s linear infinite !important;
}

/* V299: Pending state for seller deals */
.active-deal-card.pending {
  border-color: rgba(245, 166, 35, 0.3);
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.08) 0%, rgba(245, 166, 35, 0.02) 100%);
}

.active-deal-card.pending .active-deal-icon {
  background: rgba(245, 166, 35, 0.15);
  border-color: rgba(245, 166, 35, 0.3);
}

.active-deal-card.pending .active-deal-icon svg {
  color: var(--warning);
}

.active-deal-card.pending .active-deal-action span {
  color: var(--warning);
}

/* V299: Pending info box for seller */
.pending-info-box {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.1) 0%, rgba(245, 166, 35, 0.02) 100%);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: var(--radius-lg);
  margin-top: 16px;
}

.pending-info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 166, 35, 0.15);
  border-radius: 12px;
}

.pending-info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--warning);
}

.pending-info-content {
  flex: 1;
}

.pending-info-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--warning);
  margin-bottom: 6px;
}

.pending-info-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
  from { transform: scale(0) translateZ(0); }
  50% { transform: scale(1.15) translateZ(0); }
  to { transform: scale(1) translateZ(0); }
}

.dcm-icon svg {
  width: 40px;
  height: 40px;
  color: white;
  stroke-width: 3;
}

/* Title */
.dcm-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.dcm-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* Info Card */
.dcm-info {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.dcm-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
}

.dcm-info-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.dcm-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.dcm-label svg {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.dcm-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.dcm-value.accent {
  color: var(--accent);
  font-family: 'SF Mono', monospace;
}

/* Amount Card - Success Green Style */
.dcm-amount {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.04) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 24px rgba(34, 197, 94, 0.1);
}

.dcm-amount-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #22c55e;
  margin-bottom: 10px;
  font-weight: 500;
}

.dcm-amount-label svg {
  width: 18px;
  height: 18px;
  color: #22c55e;
}

.dcm-amount-value {
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 50%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(34, 197, 94, 0.3);
}

.dcm-amount-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  opacity: 0.8;
}

/* Buttons */
.dcm-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.dcm-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, #1e8fd0 100%);
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.dcm-btn-primary.success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.dcm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42, 171, 238, 0.4);
}

.dcm-btn-primary.success:hover {
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.5);
}

.dcm-btn-primary svg {
  width: 20px;
  height: 20px;
}

.dcm-btn-ghost {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.dcm-btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}