:root {
  --bg: #08111f;
  --bg-strong: #0f1d34;
  --ink: #ecf4ff;
  --muted: #a6b8d3;
  --line: rgba(129, 173, 255, 0.18);
  --panel: rgba(9, 20, 38, 0.82);
  --panel-strong: rgba(15, 30, 52, 0.94);
  --accent: #ff6a3d;
  --accent-2: #ffb23e;
  --success: #5ce1c7;
  --warning: #ffb23e;
  --danger: #ff647b;
  --shadow: 0 28px 80px rgba(2, 8, 20, 0.5);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 61, 0.24), transparent 24%),
    radial-gradient(circle at top right, rgba(92, 225, 199, 0.18), transparent 22%),
    radial-gradient(circle at 50% 0%, rgba(110, 141, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #08111f 0%, #0a1324 34%, #08111f 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(3, 10, 20, 0.7);
  border-bottom: 1px solid rgba(129, 173, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 58%, var(--success));
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 106, 61, 0.34);
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-weight: 700;
}

.nav a.active,
.nav a:hover {
  color: var(--ink);
}

.hero {
  padding: 42px 0 18px;
}

.hero-card,
.panel,
.product-card,
.stat-card,
.auth-card,
.list-card {
  background: var(--panel);
  border: 1px solid rgba(129, 173, 255, 0.14);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(145deg, rgba(10, 22, 40, 0.96), rgba(15, 30, 55, 0.9)),
    radial-gradient(circle at top right, rgba(92, 225, 199, 0.14), transparent 34%);
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 106, 61, 0.22), transparent 68%);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(129, 173, 255, 0.1);
  color: #dce9ff;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid rgba(129, 173, 255, 0.14);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero p {
  margin-top: 14px;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.03rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.hero-point {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(129, 173, 255, 0.05));
  border: 1px solid rgba(129, 173, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-point strong {
  font-size: 0.95rem;
}

.hero-point span {
  color: var(--muted);
  line-height: 1.55;
}

.hero-visual {
  display: grid;
  gap: 16px;
  align-content: start;
  position: relative;
  z-index: 1;
}

.hero-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 14px;
  min-height: 350px;
}

.showcase-stack {
  display: grid;
  gap: 14px;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 168px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(160deg, #142338, #264567);
  box-shadow: 0 24px 50px rgba(2, 10, 22, 0.44);
  border: 1px solid rgba(129, 173, 255, 0.14);
}

.showcase-card-main {
  min-height: 350px;
}

.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 32, 45, 0.02), rgba(19, 32, 45, 0.68));
}

.showcase-image,
.showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-copy {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.showcase-copy h3 {
  font-size: 1.05rem;
  line-height: 1.15;
  max-width: 14ch;
}

.showcase-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.promo-band {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.promo-chip {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(129, 173, 255, 0.1);
  color: #deebff;
  font-weight: 700;
  border: 1px solid rgba(129, 173, 255, 0.12);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(160deg, #162741, #365275);
  box-shadow: var(--shadow);
  border: 1px solid rgba(129, 173, 255, 0.14);
}

.feature-card-wide {
  grid-column: span 1;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 32, 45, 0.05), rgba(19, 32, 45, 0.75));
}

.feature-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.feature-copy h3 {
  font-size: 1.22rem;
  line-height: 1.12;
}

.feature-copy p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feature-price {
  font-size: 1.4rem;
  font-weight: 700;
}

.filter-panel {
  background:
    linear-gradient(135deg, rgba(9, 20, 38, 0.96), rgba(15, 29, 54, 0.92)),
    radial-gradient(circle at right top, rgba(255, 178, 62, 0.12), transparent 28%);
}

.filter-highlight {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(129, 173, 255, 0.08);
  border: 1px solid rgba(129, 173, 255, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 0;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 28px rgba(255, 106, 61, 0.26);
}

.button-secondary {
  color: var(--ink);
  background: rgba(129, 173, 255, 0.1);
  border: 1px solid rgba(129, 173, 255, 0.14);
}

.button-danger {
  color: #fff;
  background: var(--danger);
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

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

.stat-card {
  border-radius: var(--radius-lg);
  padding: 18px;
  background: linear-gradient(180deg, rgba(16, 32, 58, 0.95), rgba(10, 21, 39, 0.95));
  box-shadow: 0 20px 44px rgba(2, 9, 22, 0.32);
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-value {
  margin-top: 10px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.section {
  padding: 16px 0 26px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted);
  margin-top: 4px;
}

.section-header h2 {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.panel,
.auth-card,
.list-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
}

.field-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr;
  gap: 12px;
}

.field,
.stack {
  display: grid;
  gap: 8px;
}

.field label,
.muted-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(129, 173, 255, 0.14);
  background: rgba(5, 14, 28, 0.72);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.field textarea {
  min-height: 102px;
  resize: vertical;
}

#csvTextInput {
  min-height: 160px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92rem;
}

.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  background: rgba(129, 173, 255, 0.08);
  color: #dbe8ff;
  font-weight: 700;
  border: 1px solid rgba(129, 173, 255, 0.12);
}

.pill.is-active {
  color: #08111f;
  background: linear-gradient(135deg, var(--success), #98f5e5);
}

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

.window-shell {
  position: relative;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(9, 20, 38, 0.94), rgba(12, 23, 42, 0.94));
  border: 1px solid rgba(129, 173, 255, 0.14);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -18px -18px 18px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(129, 173, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(129, 173, 255, 0.04));
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: block;
}

.window-dots span:nth-child(1) {
  background: #ff6767;
}

.window-dots span:nth-child(2) {
  background: #ffc14f;
}

.window-dots span:nth-child(3) {
  background: #58dd94;
}

.window-title {
  color: #dcebff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 27, 49, 0.98), rgba(10, 20, 38, 0.96));
  transition: transform 160ms ease, box-shadow 160ms ease;
  border: 1px solid rgba(129, 173, 255, 0.14);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 62px rgba(2, 10, 22, 0.52);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #172840, #0d1829);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px auto;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
}

.product-body {
  padding: 20px;
}

.inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-category {
  color: #08111f;
  background: linear-gradient(135deg, var(--success), #9af6e5);
}

.badge-featured {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.badge-status {
  color: #d7e4ff;
  background: rgba(129, 173, 255, 0.08);
}

.product-title {
  margin-top: 14px;
  font-size: 1.22rem;
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.product-description,
.muted {
  color: var(--muted);
  line-height: 1.6;
}

.product-description {
  min-height: 70px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0;
}

.price-now {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
}

.discount {
  color: var(--success);
  font-weight: 700;
  background: rgba(92, 225, 199, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
}

.auth-wrap {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 36px 0;
}

.auth-card {
  width: min(calc(100% - 32px), 480px);
}

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

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

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

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(129, 173, 255, 0.06);
  border: 1px solid rgba(129, 173, 255, 0.12);
}

.list-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.layout-admin {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
}

.notice {
  padding: 12px 14px;
  border-radius: 14px;
  margin-top: 14px;
  background: rgba(129, 173, 255, 0.08);
  color: var(--muted);
  border: 1px solid rgba(129, 173, 255, 0.12);
}

.notice.success {
  background: rgba(35, 123, 103, 0.12);
  color: var(--success);
}

.notice.error {
  background: rgba(173, 63, 55, 0.12);
  color: var(--danger);
}

.empty {
  padding: 22px;
  text-align: center;
  border-radius: 18px;
  background: rgba(129, 173, 255, 0.08);
  color: var(--muted);
  border: 1px solid rgba(129, 173, 255, 0.12);
}

.footer {
  padding: 30px 0 44px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .hero-card,
  .layout-admin {
    grid-template-columns: 1fr;
  }

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

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .section-header,
  .footer-inner {
    align-items: flex-start;
  }

  .field-grid,
  .grid,
  .form-grid,
  .hero-stats,
  .stats-grid,
  .hero-showcase,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .panel,
  .auth-card,
  .list-card {
    padding: 16px;
  }

  .showcase-card-main {
    min-height: 260px;
  }
}
