/* Phone Container */
.tt-hero__phone-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.tt-phone-premium {
  position: relative;
  width: 320px;
  height: 640px;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.tt-phone-premium:hover {
  transform: rotateY(-5deg) rotateX(5deg);
}

/* Phone Frame */
.tt-phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #333,
    0 12px 30px rgba(0,0,0,0.16),
    0 24px 50px rgba(0,0,0,0.10);
}
.tt-phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #1a1a1a;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}
.tt-listing-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Screen Content */
.tt-phone-screen-content {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Auto-scroll Container */
.tt-scroll-container {
  flex: 1;
  overflow: hidden;
  background: #f7fafc;
  position: relative;
}

.tt-scroll-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  animation: scrollListings 15s linear infinite;
}

@keyframes scrollListings {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.tt-listing-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  animation: cardPulse 3s ease-in-out infinite;
}

.tt-listing-card:nth-child(2) { animation-delay: 0.5s; }
.tt-listing-card:nth-child(3) { animation-delay: 1s; }
.tt-listing-card:nth-child(4) { animation-delay: 1.5s; }

@keyframes cardPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.9; }
}

.listing-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.listing-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.listing-name {
  font-size: 13px;
  font-weight: 600;
  color: #2d3748;
}

.listing-price {
  font-size: 14px;
  font-weight: 700;
  color: #667eea;
}

.listing-time {
  font-size: 11px;
  color: #48bb78;
  font-weight: 600;
  background: #f0fff4;
  padding: 4px 8px;
  border-radius: 6px;
}

/* ============================================================r */

/* ✅ Phone header — final clean */
.tt-phone-screen-content {
  position: relative;
}

.tt-phone-header-simple {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 42px 20px 14px;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tt-phone-header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tt-logo-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.tt-logo-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.tt-header-actions {
  font-size: 16px;
  letter-spacing: 2px;
  opacity: 0.75;
  flex-shrink: 0;
}

.tt-phone-notch {
  z-index: 30;
}

.tt-scroll-container,
.tt-scroll-track,
.tt-listing-card {
  position: relative;
  z-index: 1;
}
/* ============================================================r */



/* Success Toast */
.tt-success-toast {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #58CC02, #52B902);
  color: white;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(72, 187, 120, 0.3);
  animation: toastPop 0.5s ease 2s both;
}

@keyframes toastPop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.8); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* Floating Stats */
.tt-float-stat {
  position: absolute;
  background: white;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: float 3s ease-in-out infinite;
}

.tt-float-stat--1 {
  top: 10%;
  left: -20px;
  animation-delay: 0s;
}

.tt-float-stat--2 {
  bottom: 15%;
  right: -20px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 12px;
  color: #718096;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 968px) {
  .tt-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .tt-hero__title-premium {
    font-size: 40px;
  }
  
  .tt-hero__actions-premium {
    justify-content: center;
  }
  
  .tt-hero__trust-minimal {
    justify-content: center;
  }
  
  .tt-phone-premium {
    width: 280px;
    height: 560px;
  }
  
  .tt-float-stat {
    display: none;
  }
}

/* =======================
   MOBILE FIX (до 768px)
   ======================= */
@media (max-width: 768px) {
  .tt-hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px;
  }

  /* Убираем плавающие бейджи, они мешают на мобиле */
  .tt-float-stat { display: none !important; }

  /* Уменьшаем телефон и центрируем */
  .tt-phone-premium {
    width: 280px;
    height: 540px;
    transform: scale(0.85); /* Чуть уменьшаем масштаб */
    transform-origin: center top;
  }

  .tt-hero__phone-wrapper {
    justify-content: center;
    min-height: 450px;
  }

  /* Текст по центру и поменьше */
  .tt-hero__text {
    text-align: center;
  }

  .tt-hero__title-premium {
    font-size: 32px;
  }

  .tt-hero__subtitle-premium {
    font-size: 16px;
  }

  /* Кнопки на всю ширину */
  .tt-hero__actions-premium {
    flex-direction: column;
    width: 100%;
  }
  
  .tt-btn-primary, .tt-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .tt-hero__trust-minimal {
    justify-content: center;
    gap: 15px;
  }

  /* === АКТИВАЦИЯ СВАЙПА НА МОБИЛКЕ === */
  .tt-scroll-track {
    animation: none !important; /* Отключаем авто-скролл */
  }
  
  .tt-scroll-container {
    overflow-y: auto !important; /* Включаем свайп пальцем */
    -webkit-overflow-scrolling: touch; /* Плавность для iOS */
    padding-bottom: 60px; /* Отступ снизу, чтобы последний элемент не перекрывался */
  }
  
  /* Скрываем скроллбар, но оставляем функционал */
  .tt-scroll-container::-webkit-scrollbar { display: none; }
}
/* конец?????Phone Container */
