/* ============================================
INTERACTIVE "HOW TO BUY" SECTION
============================================ */

.how-to-buy {
  padding: 6rem 0;
  background: linear-gradient(180deg, rgba(6,182,212,0.05) 0%, transparent 50%);
  position: relative;
}

.buy-header {
  text-align: center;
  margin-bottom: 3rem;
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(34,197,94,0.1));
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 20px rgba(34,197,94,0.4); }
}

.how-to-buy h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Progress Tracker */
.progress-tracker {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.progress-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 1rem;
}

.progress-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.1);
  transform: translateY(-50%);
  z-index: 0;
}

.progress-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 3px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
  cursor: pointer;
}

.progress-dot::after {
  content: attr(data-step);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #94a3b8;
}

.progress-dot.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: white;
  box-shadow: 0 0 30px rgba(99,102,241,0.5);
  transform: scale(1.1);
}

.progress-dot.active::after {
  color: white;
}

.progress-dot.completed {
  background: #22c55e;
  border-color: #22c55e;
}

.progress-dot.completed::after {
  content: '✓';
  color: white;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #64748b;
}

.progress-labels span.active {
  color: var(--accent);
  font-weight: 600;
}

/* Steps Container */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
}

.step-item:hover {
  border-color: rgba(99,102,241,0.3);
}

.step-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(99,102,241,0.2);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), transparent);
}

.step-item.active .step-header {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.1));
}

.step-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}

.step-info {
  flex: 1;
}

.step-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.step-status {
  font-size: 0.875rem;
  color: #64748b;
}

.step-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: #64748b;
  display: inline-block;
}

.step-item.active .step-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.step-item.open .step-arrow {
  transform: rotate(180deg);
}

/* Step Content */
.step-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s;
}

.step-item.active .step-content {
  max-height: 800px;
  padding: 0 1.5rem 1.5rem;
}

/* Wallet Options */
.wallet-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wallet-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.wallet-card:hover,
.wallet-card.selected {
  border-color: var(--primary);
  background: rgba(99,102,241,0.1);
  transform: translateY(-3px);
}

.wallet-card.selected {
  box-shadow: 0 10px 30px rgba(99,102,241,0.2);
}

.wallet-logo {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.wallet-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.wallet-desc {
  font-size: 0.75rem;
  color: #64748b;
}

/* Fund Options */
.fund-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fund-card {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.25rem;
}

.fund-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.fund-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.fund-card ol {
  font-size: 0.875rem;
  color: #94a3b8;
  padding-left: 1.25rem;
}

.fund-card li {
  margin-bottom: 0.5rem;
}

.eth-needed {
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}

.eth-amount {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.eth-breakdown {
  font-size: 0.875rem;
  color: #64748b;
}

/* Connect Demo */
.connect-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.demo-card {
  background: rgba(0,0,0,0.3);
  border-radius: 16px;
  padding: 1.5rem;
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.demo-step:last-child {
  border-bottom: none;
}

.demo-num {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.network-check {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 12px;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: white;
}

/* Enhanced Contract Box */
.contract-box-enhanced {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.contract-label {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.contract-input {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  overflow: hidden;
}

.contract-input code {
  flex: 1;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.875rem;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.copy-btn:hover {
  filter: brightness(1.2);
}

.copy-btn .copied-text {
  display: none;
}

.copy-btn.copied .copy-text {
  display: none;
}

.copy-btn.copied .copied-text {
  display: inline;
}