* {
  box-sizing: border-box;
}

:root {
  --surface-100: #050505;
  --surface-200: #0d0d0d;
  --surface-300: #141414;
  --surface-400: #1f1f1f;
  --text-primary: #f5f5f5;
  --text-secondary: #a9adb7;
  --accent: #4ff0c5;
  --accent-soft: rgba(79, 240, 197, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 40px 120px rgba(0, 0, 0, 0.45);
}

html,
body {
  margin: 0;
  height: 100%;
  background-color: black;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

body.banner-visible {
  padding-bottom: 160px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 24px;
  z-index: 10;
}

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

.brand-logo {
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand-tagline {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.top-actions {
  display: flex;
  gap: 12px;
}

.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.primary-link {
  background: linear-gradient(120deg, #1b5b4b, #2ad8ac);
  color: #02110d;
  box-shadow: 0 12px 30px rgba(42, 216, 172, 0.3);
}

.primary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(42, 216, 172, 0.4);
}

.ghost-link {
  background: rgba(36, 36, 36, 0.8);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ghost-link:hover {
  background: rgba(45, 45, 45, 0.9);
  transform: translateY(-2px);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 96px;
  margin-top: 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-text p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-highlights {
  margin: 0 0 28px 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px 14px;
  background: var(--surface-200);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-highlights .accent {
  color: var(--accent);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-card {
  width: 100%;
  max-width: 400px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(42, 216, 172, 0.15), rgba(5, 5, 5, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 80px rgba(42, 216, 172, 0.2);
}

.glow-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.glow-card p {
  margin: 0;
  color: var(--text-secondary);
}

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.order-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface-200);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.order-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(42, 216, 172, 0.25);
  border: 1px solid rgba(79, 240, 197, 0.4);
}

.order-amount {
  font-size: 1.55rem;
  font-weight: 600;
}

.order-price {
  color: var(--accent);
  font-weight: 500;
}

.order-detail {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.order-cta {
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.sell-card {
  max-width: 520px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-200);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  font-weight: 500;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-300);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input[type="file"] {
  padding: 12px 16px;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  margin-right: 16px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(79, 240, 197, 0.12);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

button.primary-link {
  cursor: pointer;
  border: none;
}

button.primary-link:disabled {
  opacity: 0.5;
  cursor: progress;
}

.form-status {
  min-height: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: #ff7474;
}

.consent-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  row-gap: 0;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.consent-checkbox input {
  margin: 2px 0 0 0;
}

.consent-checkbox a {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer {
  margin-top: 120px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.checkout-shell {
  max-width: 1200px;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 20, 0.8);
  transition: transform 0.2s ease, border 0.2s ease;
}

.back-link:hover {
  transform: translateY(-2px);
  border: 1px solid rgba(79, 240, 197, 0.4);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 36px;
  align-items: start;
}

.checkout-form-pane {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.summary-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface-200);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.summary-list span {
  color: var(--text-primary);
  font-weight: 600;
}

.checkout-form {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-200);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.checkout-widget-pane {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-200);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checkout-widget-pane iframe {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.widget-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.compliance-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  background: rgba(14, 14, 14, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.compliance-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.compliance-banner__message {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  flex: 1 1 360px;
}

.compliance-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.compliance-banner__action {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(79, 240, 197, 0.4);
  background: linear-gradient(120deg, rgba(42, 216, 172, 0.25), rgba(27, 91, 75, 0.5));
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compliance-banner__action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(42, 216, 172, 0.35);
}

.compliance-banner.is-hidden {
  display: none;
}

@media (max-width: 960px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-actions {
    align-self: stretch;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 24px 18px 64px;
  }

  .top-bar {
    padding: 18px;
  }

  body.banner-visible {
    padding-bottom: 220px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .content {
    gap: 64px;
  }

  .order-grid {
    grid-template-columns: 1fr;
  }

  input[type="file"]::file-selector-button {
    width: 100%;
    margin: 0 0 12px 0;
  }
}
