:root {
  --bg: #05070d;
  --panel: rgba(15, 20, 32, 0.82);
  --panel-border: rgba(119, 189, 255, 0.18);
  --text: #d9e7ff;
  --muted: #9eb1cb;
  --accent-cyan: #66d6d6;
  --accent-blue: #6ea5ff;
  --accent-lime: #a5d89a;
  --danger-soft: #c98ca9;
  --shadow: 0 16px 30px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Space Grotesk", "Sora", sans-serif;
  background: radial-gradient(circle at 20% 10%, rgba(104, 160, 255, 0.16), transparent 38%),
    radial-gradient(circle at 85% 15%, rgba(118, 212, 184, 0.14), transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(103, 122, 242, 0.16), transparent 35%),
    var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  position: relative;
}

#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.28;
  animation: drift linear infinite;
}

@keyframes drift {
  from {
    transform: translateY(0) translateX(0);
  }
  to {
    transform: translateY(-120vh) translateX(12vw);
  }
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 1rem 0.9rem 2rem;
}

.top-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.top-set-link {
  text-decoration: none;
  color: #d7e8ff;
  border: 1px solid rgba(143, 191, 247, 0.34);
  border-radius: 999px;
  padding: 0.35rem 0.66rem;
  background: rgba(24, 35, 56, 0.78);
  font-size: 0.8rem;
  text-transform: lowercase;
}

.kicker {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}

h1,
h2,
h3,
h4,
p,
label {
  margin: 0;
  font-weight: 500;
}

h1 {
  margin-top: 0.25rem;
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

@keyframes soft-tone-shift {
  0% {
    color: #dbe7ff;
    text-shadow: 0 0 8px rgba(120, 168, 235, 0.1);
  }
  25% {
    color: #d2ecdc;
    text-shadow: 0 0 10px rgba(129, 190, 165, 0.12);
  }
  50% {
    color: #d5e0fb;
    text-shadow: 0 0 10px rgba(123, 156, 227, 0.15);
  }
  75% {
    color: #e2dfcd;
    text-shadow: 0 0 10px rgba(204, 191, 136, 0.12);
  }
  100% {
    color: #d9e7ff;
    text-shadow: 0 0 8px rgba(130, 153, 231, 0.12);
  }
}

.nav-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.nav-tabs a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  padding: 0.55rem 0.35rem;
  background: rgba(20, 28, 45, 0.72);
  border: 1px solid rgba(126, 171, 255, 0.23);
  border-radius: 12px;
  font-size: 0.84rem;
}

.hero-card,
.section {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 0.95rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card {
  margin-bottom: 0.9rem;
}

.hero-card p {
  color: #c6d8ef;
  font-size: 0.92rem;
  line-height: 1.35;
}

.section {
  margin-bottom: 0.9rem;
}

.section h2 {
  font-size: 1.2rem;
  text-transform: lowercase;
  margin-bottom: 0.7rem;
}

.products {
  display: grid;
  gap: 0.8rem;
}

.product-card {
  border: 1px solid rgba(140, 177, 240, 0.22);
  border-radius: 14px;
  padding: 0.8rem;
  background: rgba(11, 17, 28, 0.66);
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
}

.product-card.expanded .product-head {
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1rem;
  line-height: 1.25;
  text-transform: lowercase;
}

.eye-btn {
  --eye-stroke: #90b4ee;
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(133, 189, 255, 0.35);
  background: rgba(28, 38, 61, 0.8);
  cursor: pointer;
  flex-shrink: 0;
}

.eye-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.02rem;
  height: 0.55rem;
  border-radius: 99px;
  border: 2px solid var(--eye-stroke);
  transition: all 180ms ease;
}

.eye-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.27rem;
  height: 0.27rem;
  border-radius: 50%;
  background: var(--eye-stroke);
}

.eye-mark::after {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: -0.34rem;
  width: 2px;
  height: 0.26rem;
  background: var(--eye-stroke);
  border-radius: 2px;
  box-shadow: -0.34rem 0.09rem 0 0 var(--eye-stroke), -0.18rem 0.02rem 0 0 var(--eye-stroke),
    0.18rem 0.02rem 0 0 var(--eye-stroke), 0.34rem 0.09rem 0 0 var(--eye-stroke);
}

.eye-btn.closed .eye-mark {
  width: 1.02rem;
  height: 0.01rem;
  border: 0;
  border-top: 2px solid var(--eye-stroke);
  border-radius: 999px;
}

.eye-btn.closed .eye-mark::before {
  display: none;
}

.eye-btn.closed .eye-mark::after {
  top: -0.38rem;
}

.kicker,
h1,
.nav-tabs a,
.section h2,
.product-name,
.option-group legend,
.top-set-link,
#set-title {
  animation: soft-tone-shift 8s ease-in-out infinite;
}

.kicker {
  animation-delay: 0.2s;
}

h1 {
  animation-delay: 0.6s;
}

.nav-tabs a:nth-child(2) {
  animation-delay: 1.2s;
}

.nav-tabs a:nth-child(3) {
  animation-delay: 1.8s;
}

.nav-tabs a:nth-child(4) {
  animation-delay: 2.4s;
}

.section h2,
.product-name,
.option-group legend {
  animation-duration: 9.2s;
}

.top-set-link,
#set-title {
  animation-duration: 10s;
}

.placeholder-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px dashed rgba(143, 194, 245, 0.42);
  background: linear-gradient(130deg, rgba(72, 92, 133, 0.17), rgba(96, 179, 165, 0.17));
  margin-bottom: 0.6rem;
}

.meta {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.badge {
  font-size: 0.78rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(130, 181, 255, 0.29);
  border-radius: 999px;
  color: #d7e8ff;
}

.options {
  display: grid;
  gap: 0.55rem;
}

.option-group {
  border: 1px solid rgba(108, 168, 236, 0.2);
  border-radius: 10px;
  padding: 0.55rem;
}

.option-group legend {
  color: #b9cbeb;
  font-size: 0.8rem;
  padding: 0 0.2rem;
  text-transform: lowercase;
}

.option-list {
  display: grid;
  gap: 0.32rem;
  margin-top: 0.2rem;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.79rem;
  color: #dbe8fc;
}

.option-item input {
  accent-color: var(--accent-cyan);
}

.error {
  margin-top: 0.3rem;
  color: var(--danger-soft);
  font-size: 0.72rem;
  min-height: 1rem;
}

.add-btn {
  width: 100%;
  margin-top: 0.55rem;
  border: 0;
  border-radius: 10px;
  padding: 0.62rem;
  background: linear-gradient(90deg, rgba(102, 186, 221, 0.9), rgba(131, 172, 245, 0.9));
  color: #071120;
  font-weight: 700;
  text-transform: lowercase;
}

.add-btn:disabled {
  background: rgba(93, 122, 154, 0.55);
  color: #d5e0f1;
}

.about p,
.albedo p {
  color: #d3e0f2;
  line-height: 1.38;
  font-size: 0.88rem;
}

.info-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.32rem;
}

.info-list li {
  color: #d3e0f2;
  font-size: 0.88rem;
  line-height: 1.38;
}

.info-list li::marker {
  color: #8db8ed;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.albedo h3,
.albedo h4 {
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
  text-transform: lowercase;
}

.albedo .lead {
  color: var(--accent-lime);
}

.albedo a {
  color: #9fd2ff;
}

.mini-rule {
  margin-top: 0.5rem;
  padding: 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(141, 178, 233, 0.25);
  background: rgba(10, 15, 27, 0.42);
}

.cart-items {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.cart-item {
  border: 1px solid rgba(143, 194, 245, 0.25);
  border-radius: 10px;
  padding: 0.5rem;
  font-size: 0.8rem;
  background: rgba(13, 19, 30, 0.52);
}

.checkout {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.6rem;
  background: linear-gradient(90deg, rgba(119, 196, 171, 0.95), rgba(111, 159, 231, 0.95));
  color: #06111c;
  font-weight: 700;
  text-transform: lowercase;
}

.checkout.disabled {
  pointer-events: none;
  background: rgba(91, 116, 140, 0.52);
  color: #d9e4f4;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  padding: 0.2rem 0.2rem 1.1rem;
}

.social-link {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 187, 245, 0.36);
  background: rgba(18, 26, 42, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b9d8ff;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.social-link svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link:hover,
.social-link:focus-visible {
  outline: none;
  border-color: rgba(162, 214, 249, 0.7);
  color: #d7ecff;
}

@media (min-width: 520px) {
  .products {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .app-shell {
    padding: 0.7rem 0.62rem 1.45rem;
  }

  h1 {
    font-size: 1.45rem;
  }

  .kicker {
    font-size: 0.7rem;
  }

  .nav-tabs {
    gap: 0.36rem;
  }

  .nav-tabs a {
    padding: 0.5rem 0.22rem;
    font-size: 0.76rem;
  }

  .top-set-link {
    padding: 0.3rem 0.58rem;
    font-size: 0.75rem;
  }

  .section,
  .hero-card,
  .top-panel {
    border-radius: 14px;
    padding: 0.78rem;
  }

  .product-card {
    padding: 0.66rem;
  }

  .option-item {
    font-size: 0.76rem;
  }

  .add-btn,
  .checkout {
    min-height: 2.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particle,
  .kicker,
  h1,
  .nav-tabs a,
  .section h2,
  .product-name,
  .option-group legend,
  .top-set-link,
  #set-title {
    animation: none;
  }
}
