*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-warm: #FAF6F0;
  --text-charcoal: #1C1E1D;
  --accent-moss: #23382B;
  --accent-ocean: #3D5A6C;
  --accent-clay: #C87D55;
  --bg-fog: #EBECE8;
  --bg-dark-moss: #1A2E22;
  --border-light: rgba(28, 30, 29, 0.08);
  --border-dark: rgba(250, 246, 240, 0.1);
  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-warm);
}

body.marketplace-body {
  background: var(--bg-warm);
  font-family: var(--font-body);
  color: var(--text-charcoal);
  font-weight: 300;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.marketplace-body::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

@media (max-width: 768px) {
  .container { padding: 0 28px; }
}

.section {
  padding: 80px 0 100px;
  position: relative;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 64px;
  display: flex;
  align-items: center;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-charcoal);
  text-decoration: none;
  letter-spacing: -0.01em;
  font-weight: 400;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-charcoal);
  text-decoration: none;
  opacity: 0.74;
  transition: opacity 0.3s, color 0.3s, background 0.3s;
  line-height: 1;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(35, 56, 43, 0.08);
  color: var(--accent-moss);
  opacity: 1;
}

.nav-cta {
  min-height: 38px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bg-warm);
  text-decoration: none;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: var(--accent-moss);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  background: var(--text-charcoal);
  color: var(--bg-warm);
  transform: translateY(-1px);
}

.nav-cta-arrow {
  font-size: 14px;
  display: inline-block;
  transition: transform 0.3s;
}

.nav-cta:hover .nav-cta-arrow {
  transform: translate(2px, -2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--accent-moss);
  color: var(--bg-warm);
  padding: 15px 32px;
  border: 1px solid var(--accent-moss);
}

.btn-primary:hover {
  background: #1a4a2e;
  border-color: #1a4a2e;
  box-shadow: 0 8px 24px rgba(35, 56, 43, 0.18);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  color: var(--text-charcoal);
  padding: 15px 32px;
  border: 1px solid rgba(28, 30, 29, 0.2);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--text-charcoal);
  background: rgba(28, 30, 29, 0.03);
}

.btn-ghost {
  color: var(--text-charcoal);
  opacity: 0.8;
  padding: 15px 28px;
  border: 1px solid transparent;
  background: transparent;
}

.btn-ghost:hover {
  opacity: 1;
  color: var(--accent-clay);
}

.btn-sm {
  font-size: 12px;
  padding: 10px 22px;
}

.marketplace-hero {
  padding: 140px 0 70px 0;
  border-bottom: 1px solid var(--border-light);
  background:
    radial-gradient(ellipse at 80% 10%, rgba(200, 125, 85, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(61, 90, 69, 0.05) 0%, transparent 50%),
    var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.marketplace-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 125, 85, 0.04) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlowDrift 12s ease-in-out infinite alternate;
}

@keyframes heroGlowDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-40px, 30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  margin-bottom: 20px;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-eyebrow-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-clay);
  display: block;
  margin-bottom: 12px;
}

.hero-eyebrow-line {
  width: 48px;
  height: 2px;
  background: var(--accent-moss);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-charcoal);
  margin-bottom: 16px;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--accent-moss);
  line-height: 1.5;
  max-width: 560px;
  opacity: 0.85;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.user-balance-card {
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 500px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.user-balance-card:hover {
  border-color: rgba(35, 56, 43, 0.18);
  box-shadow: 0 12px 34px rgba(28, 30, 29, 0.08);
}

.balance-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.balance-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.5;
  font-weight: 500;
}

.balance-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent-moss);
  letter-spacing: -0.01em;
}

.marketplace-section {
  padding: 60px 0 100px;
}

.filter-controls-row {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.filter-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.form-input,
.filter-group select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: rgba(250, 246, 240, 0.92);
  color: var(--text-charcoal);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  padding: 11px 14px;
  outline: none;
  box-shadow: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-moss) 50%), linear-gradient(135deg, var(--accent-moss) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-input:focus,
.filter-group select:focus {
  border-color: rgba(200, 125, 85, 0.75);
  background-color: #fffaf3;
  box-shadow: 0 0 0 4px rgba(200, 125, 85, 0.12);
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.market-item-card {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
  animation: cardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.market-item-card:nth-child(1) { animation-delay: 0s; }
.market-item-card:nth-child(2) { animation-delay: 0.05s; }
.market-item-card:nth-child(3) { animation-delay: 0.1s; }
.market-item-card:nth-child(4) { animation-delay: 0.15s; }
.market-item-card:nth-child(5) { animation-delay: 0.2s; }
.market-item-card:nth-child(6) { animation-delay: 0.25s; }
.market-item-card:nth-child(7) { animation-delay: 0.3s; }
.market-item-card:nth-child(8) { animation-delay: 0.35s; }
.market-item-card:nth-child(n+9) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.market-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(28, 30, 29, 0.09);
}

.market-item-card:focus-within {
  border-color: rgba(200, 125, 85, 0.55);
  box-shadow: 0 0 0 4px rgba(200, 125, 85, 0.12), 0 18px 44px rgba(28, 30, 29, 0.09);
}

.rarity-common .item-preview-badge-overlay { background: #e2e8f0; color: #475569; }
.rarity-uncommon .item-preview-badge-overlay { background: #dbeafe; color: #1d4ed8; }
.rarity-rare .item-preview-badge-overlay { background: #dcfce7; color: #15803d; }
.rarity-epic .item-preview-badge-overlay { background: #f3e8ff; color: #7e22ce; }
.rarity-legendary .item-preview-badge-overlay { background: #fef9c3; color: #a16207; }
.rarity-mythic .item-preview-badge-overlay { background: #ffe4e6; color: #be123c; }

.rarity-common:hover { border-color: #94a3b8; }
.rarity-uncommon:hover { border-color: #60a5fa; }
.rarity-rare:hover { border-color: #4ade80; }
.rarity-epic:hover { border-color: #a855f7; box-shadow: 0 16px 40px rgba(126, 34, 206, 0.1); }
.rarity-legendary:hover { border-color: #facc15; box-shadow: 0 16px 40px rgba(161, 98, 7, 0.1); }
.rarity-mythic:hover { border-color: #fb7185; box-shadow: 0 16px 40px rgba(190, 18, 60, 0.1); }

.form-input:focus-visible,
.filter-group select:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(200, 125, 85, 0.16);
}

.item-preview-area {
  height: 180px;
  position: relative;
  background: var(--bg-fog);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.rarity-common .item-preview-area { background: linear-gradient(180deg, #f1f5f9 0%, var(--bg-fog) 100%); }
.rarity-uncommon .item-preview-area { background: linear-gradient(180deg, #eff6ff 0%, var(--bg-fog) 100%); }
.rarity-rare .item-preview-area { background: linear-gradient(180deg, #f0fdf4 0%, var(--bg-fog) 100%); }
.rarity-epic .item-preview-area { background: linear-gradient(180deg, #faf5ff 0%, var(--bg-fog) 100%); }
.rarity-legendary .item-preview-area { background: linear-gradient(180deg, #fefce8 0%, var(--bg-fog) 100%); }
.rarity-mythic .item-preview-area { background: linear-gradient(180deg, #fff1f2 0%, var(--bg-fog) 100%); }

.item-preview-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
}

.item-preview-area svg {
  width: 120px;
  height: 120px;
  display: block;
}

.item-preview-area .preview-banner-wrapper {
  width: 100%;
  height: 100%;
}

.item-card-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

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

.item-category-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  font-weight: 500;
}

.item-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-charcoal);
  margin: 0;
  line-height: 1.25;
}

.item-description {
  font-size: 13px;
  opacity: 0.6;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.item-purchase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.item-price-tag {
  display: flex;
  flex-direction: column;
}

.price-lbl {
  font-size: 10px;
  opacity: 0.45;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.price-val {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent-moss);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 30, 29, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: overlayFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  text-align: left;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.25s, transform 0.25s;
  color: var(--text-charcoal);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close-btn:hover {
  opacity: 1;
  background: rgba(28, 30, 29, 0.06);
  transform: none;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-clay);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent-moss);
  line-height: 1.2;
}

.modal-action-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.purchase-confirmation-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.purchase-item-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-fog);
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

.purchase-preview-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: var(--bg-warm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.purchase-preview-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.purchase-preview-box.banner-box {
  width: 120px;
  height: 60px;
  border-radius: 10px;
}

.purchase-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.purchase-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-charcoal);
}

.purchase-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.5;
  font-weight: 500;
}

.purchase-rarity {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 4px;
}

.purchase-rarity.rarity-common { background: #e2e8f0; color: #475569; }
.purchase-rarity.rarity-uncommon { background: #dbeafe; color: #1d4ed8; }
.purchase-rarity.rarity-rare { background: #dcfce7; color: #15803d; }
.purchase-rarity.rarity-epic { background: #f3e8ff; color: #7e22ce; }
.purchase-rarity.rarity-legendary { background: #fef9c3; color: #a16207; }
.purchase-rarity.rarity-mythic { background: #ffe4e6; color: #be123c; }

.purchase-math-box {
  background: var(--bg-fog);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.math-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-charcoal);
}

.math-cost {
  color: var(--accent-clay);
  font-weight: 600;
}

.math-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

.final-row {
  font-size: 16px;
  font-weight: 700;
}

.math-new-balance {
  color: var(--accent-moss);
}

.footer {
  background: var(--bg-fog);
  border-top: 1px solid var(--border-light);
  padding: 80px 0 48px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  color: var(--accent-moss);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-charcoal);
  opacity: 0.7;
  font-style: italic;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-charcoal);
  opacity: 0.7;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--accent-clay);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-charcoal);
  opacity: 0.65;
  max-width: 520px;
  line-height: 1.6;
}

.span-full {
  grid-column: 1 / -1;
}

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

@media (max-width: 900px) {
  .nav {
    padding: 14px clamp(18px, 4vw, 56px);
  }

  .nav-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .marketplace-hero {
    padding: 110px 0 48px 0;
  }

  .hero-headline {
    font-size: clamp(32px, 8vw, 48px);
  }

  .marketplace-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .marketplace-hero {
    padding: 100px 0 36px 0;
  }

  .hero-headline {
    font-size: clamp(28px, 10vw, 40px);
  }

  .hero-tagline {
    font-size: 15px;
  }

  .user-balance-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 100%;
  }

  .filter-controls-row {
    flex-direction: column;
    gap: 12px;
  }

  .filter-group {
    min-width: 0;
  }

  .marketplace-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modal-card {
    padding: 24px;
    border-radius: 16px;
  }

  .modal-action-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-action-footer .btn {
    justify-content: center;
    text-align: center;
  }

  .footer-inner {
    padding: 0 20px;
    gap: 40px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
