:root {
  --bg: #07060a;
  --panel: #0f0e12;
  --muted: #9aa0ab;
  --accent-start: #3a2b6f;
  --accent-end: #0f0e12;
  --glass: rgba(255, 255, 255, 0.03);
  --primary: #7b5cff;
  --radius: 10px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: transparent;
  position: relative;
  z-index: 0;
  color: #e6e9ee;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--accent-start), var(--accent-end));
  pointer-events: none;
  will-change: transform;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.brand h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.tag {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn.translucent {
  background: var(--glass);
  color: #e6e9ee;
  border-color: rgba(255, 255, 255, 0.08);
}

.btn.translucent:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn.primary:hover {
  background: #6a4cdb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123, 92, 255, 0.3);
}

.btn.secondary {
  background: var(--panel);
  color: #e6e9ee;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-container {
  flex: 1;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.checkout-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 968px) {
  .checkout-wrapper {
    grid-template-columns: 1.6fr 1fr;
  }
}

.checkout-form {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
}

.checkout-form h2 {
  margin: 0 0 8px 0;
  font-size: 1.8rem;
  color: #fff;
}

.subtitle {
  margin: 0 0 32px 0;
  color: var(--muted);
  font-size: 1rem;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
  padding: 0 8px;
}

.step-indicator::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.step-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.step.active .step-label {
  color: #fff;
  font-weight: 600;
}

.form-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
  font-size: 1.05rem;
}

.option-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.option-group.vertical {
  grid-template-columns: 1fr;
}

.option-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-content {
  background: var(--bg);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 80px;
  justify-content: center;
}

.option-card:hover .option-content {
  border-color: rgba(123, 92, 255, 0.4);
  background: rgba(123, 92, 255, 0.05);
}

.option-card input[type="radio"]:checked + .option-content {
  border-color: var(--primary);
  background: rgba(123, 92, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.1);
}

.option-card.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.option-card.disabled .option-content {
  background: rgba(255, 255, 255, 0.02);
}

.option-title {
  font-weight: 600;
  color: #fff;
  font-size: 1.05rem;
}

.option-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.1);
}

.form-input::placeholder {
  color: var(--muted);
}

.form-hint {
  margin: 12px 0 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.account-links {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.link:hover {
  color: #9b7fff;
  text-decoration: underline;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  justify-content: flex-end;
}

.form-actions .btn {
  min-width: 140px;
}

.payment-divider {
  margin: 32px 0 24px 0;
  text-align: center;
  position: relative;
}

.payment-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.payment-divider span {
  background: var(--panel);
  padding: 0 16px;
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

#paypal-button-container {
  margin-top: 24px;
  min-height: 150px;
}

.checkout-summary {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 20px;
}

.checkout-summary h3 {
  margin: 0 0 24px 0;
  font-size: 1.5rem;
  color: #fff;
}

.summary-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-section:last-of-type {
  border-bottom: none;
}

.summary-section h4 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  color: #fff;
}

.summary-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.spec-value {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.config-item:last-child {
  border-bottom: none;
}

.config-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.config-value {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: right;
}

.summary-total {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.total-row:last-child {
  margin-bottom: 0;
}

.total-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.total-value {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.total-final {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.total-final .total-label {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.total-final .total-value {
  color: var(--primary);
  font-size: 1.4rem;
}

.summary-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-footer p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  margin-top: auto;
  padding: 24px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.copy {
  color: var(--muted);
  font-size: 0.9rem;
}

.discord-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .checkout-container {
    padding: 24px 16px;
  }

  .checkout-form,
  .checkout-summary {
    padding: 24px;
  }

  .checkout-form h2 {
    font-size: 1.5rem;
  }

  .step-label {
    font-size: 0.75rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .option-group {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .site-header {
    padding: 16px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
