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

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 650;
}

.btn-solid { background: var(--coral); color: var(--coral-ink); }

.btn-solid:hover { background: #ff7d5d; }

.btn-line { border: 1px solid var(--line-strong); color: var(--text); }

.btn-line:hover { border-color: var(--blue); color: var(--blue); }

.tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }

.chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.chip[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #0d1520;
}

.review {
  padding: 22px 0 8px;
  border-top: 1px solid var(--line);
}

.review-top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  align-items: start;
}

.review-top img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 3px;
}

.review h2 { font-size: 1.55rem; margin: 4px 0 8px; }

.meta { color: var(--muted); font-size: 0.84rem; margin-bottom: 8px; }

.fold-btn, .more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  gap: 16px;
  padding: 14px 0;
  color: var(--text);
  border-top: 1px solid var(--line);
}

.more { width: auto; border: 0; color: var(--coral); padding: 8px 0 0; font-size: 0.92rem; }

.fold { border-bottom: 1px solid var(--line); }

.fold-btn { font-family: var(--display); font-size: 1.12rem; }

.fold-panel, .review-full { color: var(--muted); }

.fold-panel { padding: 0 0 14px; }

.formula {
  display: block;
  margin: 10px 0 14px;
  padding: 10px 12px;
  background: var(--sink);
  border-left: 3px solid var(--blue);
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
}

.gloss {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.gloss button {
  text-align: left;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
}

.gloss b { display: block; margin-bottom: 4px; }

.gloss span { color: var(--muted); font-size: 0.9rem; }

.tool {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 18px;
}

.tool h3 { font-size: 1.35rem; margin-bottom: 6px; }

.hint { color: var(--muted); font-size: 0.92rem; }

.tabs { display: flex; gap: 8px; margin: 14px 0; }

.tab {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.tab[aria-selected="true"] {
  background: var(--sink);
  color: var(--text);
  border-color: var(--blue);
}

.fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.84rem; }

.field input {
  width: 100%;
  background: var(--sink);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 10px 12px;
}

.calc-readout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
}

.calc-readout strong {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--coral);
}

.meter {
  height: 8px;
  background: var(--sink);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--coral));
}

.table-scroll { overflow-x: auto; }

table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }

.compare th, .compare td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
}

.compare th { color: var(--blue); font-weight: 650; cursor: pointer; }

.compare td { color: var(--muted); }

.compare td:first-child { color: var(--text); }

.dots { display: inline-flex; gap: 4px; }

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(232, 238, 246, 0.18);
}

.dots i.on { background: var(--coral); }

.roles { display: grid; gap: 0; }

.note {
  background: var(--raise);
  border-radius: 6px;
  padding: 16px 18px;
  color: var(--muted);
  border: 1px solid var(--line);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 14, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal.open { display: flex; }

.modal-card {
  width: min(520px, 100%);
  background: #1a2736;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 22px 22px 16px;
}

.modal-card h3 { margin-bottom: 10px; }

.modal-card p { color: var(--muted); }

.modal-x { float: right; font-size: 1.4rem; line-height: 1; color: var(--muted); }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  margin-inline: auto;
  padding: 16px 16px 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(232, 238, 246, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 42%, rgba(255, 106, 69, 0.08)),
    rgba(14, 22, 32, 0.62);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie[hidden] { display: none !important; }

.cookie.is-in {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.cookie.is-leaving {
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  pointer-events: none;
}

.cookie-glow,
.cookie-orb,
.cookie-sheen {
  position: absolute;
  pointer-events: none;
}

.cookie::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--cookie-spin), transparent 0 62%, rgba(255, 106, 69, 0.95), rgba(158, 191, 255, 0.9), transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cookieSpin 7s linear infinite;
  pointer-events: none;
}

@property --cookie-spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.cookie-glow {
  inset: auto auto -70% -12%;
  width: 240px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 106, 69, 0.45), transparent 68%);
  filter: blur(16px);
  animation: cookieDrift 7s ease-in-out infinite;
}

.cookie-orb {
  width: 120px;
  height: 120px;
  right: -36px;
  top: -58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(158, 191, 255, 0.55), rgba(158, 191, 255, 0) 70%);
  filter: blur(6px);
  animation: cookieFloat 5.5s ease-in-out infinite;
}

.cookie-orb-b {
  width: 80px;
  height: 80px;
  right: auto;
  left: -24px;
  top: auto;
  bottom: -40px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 125, 93, 0.55), transparent 72%);
  filter: blur(8px);
  animation-duration: 4.2s;
  animation-delay: -1.4s;
}

.cookie-sheen {
  top: 0;
  bottom: 0;
  left: -40%;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-16deg);
  animation: cookieSheen 4.8s ease-in-out infinite;
}

.cookie p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.cookie a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(255, 106, 69, 0.45);
  animation: cookiePulse 2.4s ease-out infinite;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cookie .btn:hover { transform: translateY(-1px) scale(1.03); }

@keyframes cookieDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(36px, 10px, 0); }
}

@keyframes cookieFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-10px, 12px, 0) scale(1.08); }
}

@keyframes cookieSheen {
  0%, 55% { left: -45%; opacity: 0; }
  70% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

@keyframes cookiePulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14); }
}

@keyframes cookieSpin {
  to { --cookie-spin: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie,
  .cookie::before,
  .cookie-glow,
  .cookie-orb,
  .cookie-sheen,
  .cookie .btn { animation: none; transition: none; }
}

@media (max-width: 760px) {
  .review-top, .gloss, .fields, .calc-readout { grid-template-columns: 1fr; }
  .review-top img { width: 100%; height: 190px; }
  .cookie { flex-direction: column; align-items: stretch; }
}
