@import url('base.css');



/* Layout safeguard */
.codes-grid,
.code-card,
.contact-card {
  min-width: 0;
}
.page-header {
  position: relative;
  padding-top: clamp(6rem, 12vh, 8rem);
  padding-bottom: var(--space-xl);
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(253, 224, 71, 0.08) 0%, transparent 55%),
              linear-gradient(180deg, rgba(28,25,23,0.9) 0%, var(--brand-bg) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-header h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--brand-text-muted);
  font-size: var(--text-base);
  max-width: 700px;
  margin: 0 auto;
}

.codes-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  color: var(--brand-text-muted);
  font-size: var(--text-base);
}

.codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.code-card {
  composes: card card-variant;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.code-title {
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-title i {
  color: var(--brand-accent);
}

.code-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(0,0,0,0.25);
  border: 1px dashed rgba(253,224,71,0.25);
  border-radius: 0.75rem;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
  font-size: var(--text-lg);
  color: var(--brand-accent);
  letter-spacing: 0.08em;
}

.code-value span {
  flex: 1;
  text-align: center;
}

.code-btn {
  flex-shrink: 0;
  padding: 0.45rem 0.9rem;
  font-size: var(--text-sm);
  border-radius: 0.5rem;
}

.code-btn.copied {
  background: #166534;
  color: #fff;
  border-color: #166534;
}

.code-rewards {
  color: var(--brand-text-muted);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.code-rewards strong {
  color: var(--brand-text);
}

.how-to-use {
  margin-top: var(--space-xl);
  background: var(--brand-bg-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: var(--space-lg);
}

.how-to-use h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.how-to-use ol {
  list-style: decimal;
  padding-left: 1.4rem;
  color: var(--brand-text-muted);
  font-size: var(--text-base);
}

.how-to-use li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .codes-grid {
    grid-template-columns: 1fr;
  }

  .code-value {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .code-value span {
    text-align: center;
  }

  .code-btn {
    width: 100%;
  }
}
