/* ===== DOWNLOAD PAGE ===== */
.download-page-section {
  padding: 120px 0 80px;
}

.download-content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header of download page */
.download-header {
  text-align: center;
  margin-bottom: 40px;
}

.download-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text, #f2f4ff);
  letter-spacing: -0.02em;
}

.download-subtitle {
  font-size: 16px;
  color: var(--muted, #9da5ba);
  margin-top: 4px;
}

/* Grid 2 columns */
.download-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.guide-section {
  flex: 1.2;
}

.download-section-wrapper {
  flex: 0.8;
  position: sticky;
  top: 100px;
}

/* Section divider */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(196, 201, 255, 0.08);
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: #6f788d;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Steps */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(196, 201, 255, 0.06);
}

.step-item:hover {
  border-color: rgba(99, 91, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.step-item.last {
  border-color: rgba(99, 91, 255, 0.12);
  background: rgba(99, 91, 255, 0.04);
}

.step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(196, 201, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #f2f4ff;
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
}

.step-item:hover .step-number {
  border-color: rgba(99, 91, 255, 0.5);
  background: rgba(99, 91, 255, 0.08);
}

.step-item.last .step-number {
  border-color: #635bff;
  background: rgba(99, 91, 255, 0.1);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: #f2f4ff;
  margin-bottom: 2px;
}

.step-desc {
  font-size: 14px;
  color: #9da5ba;
  line-height: 1.5;
}

.step-desc strong {
  color: #e74c3c;
  font-weight: 600;
}

.step-tip {
  margin-top: 6px;
  padding: 4px 12px;
  border-left: 3px solid rgba(99, 91, 255, 0.3);
  background: rgba(99, 91, 255, 0.04);
  border-radius: 4px;
}

.step-tip.warning {
  border-left-color: rgba(231, 76, 60, 0.4);
  background: rgba(231, 76, 60, 0.04);
}

.tip-text {
  font-size: 13px;
  color: #b0b8cc;
}

.step-tip.warning .tip-text {
  color: #dba0a0;
}

.step-tip.note {
  border-left-color: rgba(99, 91, 255, 0.2);
  background: rgba(99, 91, 255, 0.03);
  margin-top: 4px;
}

.step-tip.note .tip-text {
  color: #8a94a8;
  font-style: italic;
}

.step-code-example {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: 6px;
  margin-top: 4px;
}

.code-label {
  font-size: 13px;
  color: #9da5ba;
}

.sample-code {
  font-size: 14px;
  font-weight: 700;
  color: #aaa4ff;
  background: rgba(99, 91, 255, 0.08);
  padding: 2px 10px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

/* Telegram button */
.step-telegram {
  margin: 4px 0 2px;
}

.telegram-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #229ed9;
  color: #fff;
  padding: 6px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.2);
}

.telegram-link-btn:hover {
  background: #1a8ac2;
  transform: translateY(-1px);
}

.telegram-link-btn svg {
  flex-shrink: 0;
}

/* Download card */
.download-card {
  background: rgba(99, 91, 255, 0.06);
  border: 1px solid rgba(99, 91, 255, 0.15);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.download-file-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.download-file-name {
  font-size: 16px;
  font-weight: 600;
  color: #f2f4ff;
}

.download-file-size {
  font-size: 13px;
  color: #6f788d;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #635bff;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.download-btn:hover {
  background: #5149e6;
  transform: translateY(-1px);
}

.download-note {
  font-size: 12px;
  color: #6f788d;
  text-align: center;
  margin: 0;
}

/* Footer of download page */
.download-footer {
  text-align: center;
  margin-top: 30px;
}

.download-home-btn {
  display: inline-block;
  color: #6f788d;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

.download-home-btn:hover {
  color: #aaa4ff;
}

/* Responsive */
@media (max-width: 768px) {
  .download-grid {
    flex-direction: column;
    gap: 24px;
  }

  .download-section-wrapper {
    position: static;
    width: 100%;
  }

  .step-item {
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
  }

  .step-number {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .download-title {
    font-size: 28px;
  }

  .download-card {
    padding: 18px 16px;
  }
}

@media (max-width: 480px) {
  .download-page-section {
    padding: 80px 0 60px;
  }

  .download-title {
    font-size: 24px;
  }

  .download-subtitle {
    font-size: 14px;
  }

  .step-item {
    padding: 10px 12px;
  }

  .step-number {
    width: 24px;
    height: 24px;
    font-size: 11px;
    border-width: 1px;
  }

  .step-title {
    font-size: 14px;
  }

  .step-desc {
    font-size: 13px;
  }

  .download-btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .download-file-name {
    font-size: 14px;
  }
}