* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #e8edf2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow-x: hidden;
}

.phone-wrapper {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef3f7 0%, #f4f7fa 40%, #f8fafb 100%);
  position: relative;
  overflow: hidden;
}

/* Background chart decoration */
.bg-chart {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background:
    linear-gradient(180deg, rgba(200, 220, 200, 0.15) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 60px;
}

/* Avatar */
.avatar-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
  background: #ddd;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Channel name */
.channel-name {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: -0.5px;
}

/* Description */
.description {
  font-size: 16px;
  color: #555;
  margin-bottom: 4px;
  text-align: center;
}

.description-sub {
  font-size: 16px;
  color: #555;
  margin-bottom: 24px;
  text-align: center;
}

/* Join button */
.join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #2ba5d8 0%, #1e8bc3 100%);
  color: white;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 15px rgba(43, 165, 216, 0.35);
}

.join-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43, 165, 216, 0.45);
}

.join-btn:active {
  transform: translateY(1px);
}

.telegram-icon {
  flex-shrink: 0;
}

/* Hint */
.hint {
  font-size: 14px;
  color: #999;
  margin-top: 12px;
  margin-bottom: 40px;
}

/* Carousel */
.carousel-section {
  width: 100%;
  max-width: 440px;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 65%;
  padding: 0 6px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: block;
  background: #ddd;
}

.carousel-slide.active img {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.carousel-slide:not(.active) {
  transform: scale(0.88);
  opacity: 0.6;
}

.carousel-slide.active {
  transform: scale(1);
  opacity: 1;
}

/* Carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 24px;
  color: #333;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
  padding-bottom: 2px;
}

.carousel-arrow:hover {
  background: #f0f0f0;
}

.carousel-arrow-left {
  left: 4px;
}

.carousel-arrow-right {
  right: 4px;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  padding: 0;
}

.carousel-dot.active {
  background: #2ba5d8;
  width: 24px;
  border-radius: 5px;
}

/* Keep phone layout on desktop */
@media (min-width: 481px) {
  body {
    padding: 0;
  }
  .phone-wrapper {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  }
}
