:root {
  color-scheme: light;
  --sm-bg: #eef1f4;
  --sm-text: #0f1723;
  --sm-muted: #5b6472;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(248, 113, 113, 0.13), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(59, 130, 246, 0.14), transparent 28%),
    radial-gradient(circle at 48% -4%, rgba(34, 197, 94, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #eef1f4 56%, #e8edf2 100%);
  color: var(--sm-text);
  font-family: "Inter", "Segoe UI", sans-serif;
}

.market-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 20px 14px 42px;
}

.market-hero {
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 253, 0.88) 100%);
  border: 1px solid rgba(15, 23, 35, 0.08);
  box-shadow: 0 22px 70px rgba(15, 23, 35, 0.12);
}

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 20px;
  padding: clamp(22px, 4vw, 40px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.hero-title {
  margin: 18px 0 12px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0;
  color: var(--sm-muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-pills,
.hero-actions,
.meta-grid,
.selection-actions,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-pills {
  margin-top: 18px;
}

.hero-pill {
  border-radius: 999px;
  border: 0;
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.pill-gmail {
  background: linear-gradient(90deg, #2563eb 0%, #f43f5e 60%, #f59e0b 100%);
}

.pill-outlook {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

.pill-gmx {
  background: linear-gradient(90deg, #10b981 0%, #2563eb 100%);
}

.pill-chatgpt {
  background: linear-gradient(90deg, #111827 0%, #10b981 100%);
}

.pill-business {
  background: linear-gradient(90deg, #f59e0b 0%, #111827 100%);
}

.hero-actions {
  margin-top: 24px;
}

.hero-actions--tight {
  margin-top: 18px;
}

.hero-stat {
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 35, 0.06);
}

.hero-stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.hero-stat-value {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
}

.hero-visual {
  min-height: 340px;
  position: relative;
}

.glass {
  position: absolute;
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -10px 18px rgba(0, 0, 0, 0.1),
    0 22px 48px rgba(15, 23, 35, 0.14);
}

.glass::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.glass-blue {
  width: 165px;
  height: 240px;
  left: 2%;
  top: 24%;
  transform: rotate(16deg);
  background: linear-gradient(160deg, rgba(147, 197, 253, 0.95) 0%, rgba(37, 99, 235, 0.98) 100%);
}

.glass-red {
  width: 280px;
  height: 190px;
  left: 24%;
  top: 4%;
  transform: rotate(-8deg);
  background: linear-gradient(160deg, rgba(254, 202, 202, 0.94) 0%, rgba(220, 38, 38, 0.98) 100%);
}

.glass-green {
  width: 170px;
  height: 280px;
  right: 2%;
  bottom: 4%;
  transform: rotate(13deg);
  background: linear-gradient(160deg, rgba(220, 252, 231, 0.95) 0%, rgba(22, 163, 74, 0.98) 100%);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin: 26px 4px 16px;
}

.section-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-note {
  max-width: 420px;
  margin: 0;
  color: var(--sm-muted);
  line-height: 1.6;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.category-chip {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #0f1723;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 35, 0.06);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.category-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 35, 0.08);
}

.category-chip--active {
  background: #111827;
  color: #fff;
  transform: translateY(-1px);
}

.category-chip--active span {
  background: rgba(255, 255, 255, 0.14);
}

.catalog-card,
.selection-card,
.info-card {
  border-radius: 26px;
}

.product-card {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.product-card .el-card__body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(15, 23, 35, 0.08), rgba(15, 23, 35, 0));
}

.product-card--primary::before {
  background: linear-gradient(90deg, #2563eb, rgba(37, 99, 235, 0.08));
}

.product-card--danger::before {
  background: linear-gradient(90deg, #ef4444, rgba(239, 68, 68, 0.08));
}

.product-card--success::before {
  background: linear-gradient(90deg, #16a34a, rgba(22, 163, 74, 0.08));
}

.product-card--warning::before {
  background: linear-gradient(90deg, #111827, rgba(16, 185, 129, 0.12));
}

.product-card--info::before {
  background: linear-gradient(90deg, #f59e0b, rgba(245, 158, 11, 0.08));
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.product-title {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.product-copy {
  margin: 0;
  color: var(--sm-muted);
  line-height: 1.6;
  min-height: 74px;
}

.product-hook {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.product-hook-line {
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #111827 0%, rgba(17, 24, 39, 0.08) 100%);
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.price-line strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.price-line span {
  color: #64748b;
  font-size: 13px;
}

.selection-card {
  margin-top: 22px;
}

.selection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.selection-copy {
  display: grid;
  gap: 8px;
}

.selection-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.selection-subtitle {
  margin: 0;
  color: var(--sm-muted);
  line-height: 1.6;
}

.meta-grid {
  margin-top: 16px;
}

.selection-panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 35, 0.08);
  background: linear-gradient(180deg, rgba(246, 248, 251, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.flow-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 14px;
}

.flow-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.flow-step strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.flow-step p {
  margin: 4px 0 0;
  color: var(--sm-muted);
  line-height: 1.5;
}

.info-grid {
  margin-top: 22px;
}

.info-card {
  height: 100%;
}

.info-card .el-card__body {
  display: grid;
  gap: 10px;
}

.info-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.info-card p {
  margin: 0;
  color: var(--sm-muted);
  line-height: 1.6;
}

.admin-kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-kpi-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 35, 0.08);
  padding: 14px;
  background: #fff;
}

.admin-kpi-label {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-kpi-value {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-editor {
  display: flex;
  gap: 10px;
  align-items: center;
}

.viewer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 35, 0.06);
  font-size: 13px;
  font-weight: 600;
}

.order-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.issued-box {
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
  border-radius: 12px;
  padding: 12px;
}

.issued-box p {
  margin: 0 0 8px;
  word-break: break-all;
}

.issued-box p:last-child {
  margin-bottom: 0;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .market-shell {
    padding: 14px 10px 30px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 4px 14px;
  }

  .section-note {
    max-width: 100%;
  }

  .category-strip {
    margin-bottom: 18px;
  }

  .selection-card {
    margin-top: 18px;
  }

  .info-grid {
    margin-top: 18px;
  }

  .market-shell > .el-row > .el-col {
    margin-bottom: 12px;
  }

  .market-shell > .el-row > .el-col:last-child {
    margin-bottom: 0;
  }

  .market-hero,
  .catalog-card,
  .selection-card,
  .info-card {
    border-radius: 22px;
  }

  .hero-visual {
    min-height: 180px;
  }

  .glass-blue {
    width: 88px;
    height: 136px;
    top: 30%;
  }

  .glass-red {
    width: 160px;
    height: 104px;
    left: 18%;
    top: 8%;
  }

  .glass-green {
    width: 92px;
    height: 146px;
    right: 6%;
    bottom: 2%;
  }

  .admin-kpi {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    justify-content: stretch;
  }
}
