:root {
  color-scheme: light;
  --ink: #172033;
  --ink-strong: #0f172a;
  --muted: #7b8496;
  --soft: #f7f8fc;
  --line: #e7e9f2;
  --white: #ffffff;
  --purple: #5b45f5;
  --purple-2: #8e35f2;
  --pink: #ec4899;
  --cyan: #10b7d5;
  --green: #10b981;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.09);
  --shadow-strong: 0 22px 60px rgba(109, 61, 242, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(255, 248, 235, 0.96) 0%, rgba(255, 248, 235, 0) 34%),
    linear-gradient(245deg, rgba(238, 233, 255, 0.92) 0%, rgba(238, 233, 255, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #f9fafc 42%, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(231, 233, 242, 0.9);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  left: 0;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 32px);
  position: sticky;
  right: 0;
  top: 0;
  transition: background 220ms ease, box-shadow 220ms ease, min-height 220ms ease, padding 220ms ease, border-color 220ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(222, 226, 235, 0.98);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  min-height: 64px;
}

.brand {
  color: var(--ink-strong);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 950;
  letter-spacing: 0;
}

.site-header > .brand {
  margin-left: clamp(10px, 2vw, 34px);
}

.brand span {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand small {
  color: #8a94a6;
  font-size: 1em;
}

nav {
  align-items: center;
  display: contents;
}

.nav-pill {
  align-items: center;
  background: rgba(109, 61, 242, 0.09);
  border: 1px solid rgba(109, 61, 242, 0.08);
  border-radius: 14px;
  color: #5b3cc4;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  grid-column: 2;
  justify-self: center;
  min-height: 38px;
  padding: 0 18px;
}

.nav-pill svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.admin-link {
  align-items: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  grid-column: 3;
  justify-self: end;
  min-height: 48px;
  padding: 0 24px;
}

main {
  padding: 0 clamp(18px, 4vw, 32px) 72px;
}

.hero {
  display: grid;
  justify-items: center;
  min-height: 92vh;
  overflow: hidden;
  padding: clamp(58px, 8vw, 92px) 0 28px;
  position: relative;
}

.hero-floating-dots {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero-floating-dots span {
  animation: floatDot 12s ease-in-out infinite;
  border-radius: 999px;
  display: block;
  height: 10px;
  opacity: 0.72;
  position: absolute;
  width: 10px;
}

.hero-floating-dots span:nth-child(1) {
  background: #5b45f5;
  left: 14%;
  top: 24%;
}

.hero-floating-dots span:nth-child(2) {
  animation-delay: -2s;
  background: #ec4899;
  height: 8px;
  left: 78%;
  top: 28%;
  width: 8px;
}

.hero-floating-dots span:nth-child(3) {
  animation-delay: -4s;
  background: #10b7d5;
  left: 22%;
  top: 68%;
}

.hero-floating-dots span:nth-child(4) {
  animation-delay: -6s;
  background: #f59e0b;
  height: 7px;
  left: 84%;
  top: 66%;
  width: 7px;
}

.hero-floating-dots span:nth-child(5) {
  animation-delay: -8s;
  background: #10b981;
  height: 9px;
  left: 50%;
  top: 18%;
  width: 9px;
}

.hero-floating-dots span:nth-child(6) {
  animation-delay: -10s;
  background: #8e35f2;
  height: 6px;
  left: 63%;
  top: 76%;
  width: 6px;
}

@keyframes floatDot {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(18px, -24px, 0) scale(1.12);
  }
  66% {
    transform: translate3d(-16px, 18px, 0) scale(0.92);
  }
}

.hero-centered {
  margin: 0 auto;
  max-width: 900px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  align-items: center;
  background: rgba(109, 61, 242, 0.08);
  border: 1px solid rgba(109, 61, 242, 0.13);
  border-radius: 999px;
  color: #4b5565;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 750;
  gap: 10px;
  margin: 0 0 34px;
  padding: 12px 18px;
}

.hero-badge span {
  background: var(--green);
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

h1,
h2,
h3 {
  color: var(--ink-strong);
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(3.65rem, 9vw, 6.9rem);
  font-weight: 950;
  line-height: 0.98;
}

h1 span,
.section-heading h2 span {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  background-clip: text;
  color: transparent;
  display: block;
}

.hero p:not(.hero-badge) {
  color: #727b8c;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  line-height: 1.55;
  margin: 30px auto 0;
  max-width: 760px;
}

.hero p strong {
  color: #e14867;
  display: block;
  font-weight: 950;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 46px;
}

.primary-link,
.primary-button,
.secondary-button,
.secondary-link {
  align-items: center;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 62px;
  padding: 0 30px;
}

.primary-link,
.primary-button {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: var(--shadow-strong);
  color: var(--white);
}

.secondary-link,
.secondary-button {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  color: #626b7d;
}

.hero-stats {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  margin-top: 70px;
  max-width: 900px;
  width: 100%;
}

.hero-stats article,
.auth-card,
.side-panel,
.editor-panel,
.product-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-stats article {
  min-height: 158px;
  padding: 26px 20px;
  text-align: center;
}

.stat-icon {
  align-items: center;
  border-radius: 13px;
  display: inline-flex;
  font-size: 1.3rem;
  height: 48px;
  justify-content: center;
  margin-bottom: 14px;
  width: 48px;
}

.stat-icon.trend {
  background: #fff1e8;
  color: #f97316;
}

.stat-icon.shield {
  background: #e7fbff;
  color: var(--cyan);
}

.stat-icon.spark {
  background: #f1eaff;
  color: var(--purple);
}

.hero-stats strong {
  color: var(--ink-strong);
  display: block;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 950;
  line-height: 1;
}

.hero-stats small {
  color: #8a94a6;
  display: block;
  font-size: 0.95rem;
  margin-top: 10px;
}

.market-section {
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(231, 233, 242, 0.85);
  margin: 0;
  padding: 74px clamp(18px, 4vw, 32px) 40px;
}

.section-heading {
  margin: 0 auto 54px;
  max-width: 760px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 950;
  line-height: 1;
}

.section-heading h2 span {
  display: inline;
}

.section-heading p {
  color: #737b8b;
  font-size: clamp(1.04rem, 2vw, 1.3rem);
  line-height: 1.45;
  margin: 18px auto 0;
  max-width: 660px;
}

.toolbar {
  display: grid;
  gap: 16px;
  margin: 0 auto 28px;
  max-width: 1216px;
}

.toolbar-main {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 212px) auto;
}

.search-box,
.sort-box {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 13px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
  min-height: 46px;
  padding: 0 16px;
}

.sort-box {
  grid-template-columns: auto minmax(0, 1fr) auto;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.sort-box::after {
  color: #5b45f5;
  content: "▾";
  font-size: 0.8rem;
  pointer-events: none;
}

.sort-box:hover,
.sort-box:focus-within {
  background: #ffffff;
  border-color: rgba(91, 69, 245, 0.24);
  box-shadow: 0 12px 28px rgba(91, 69, 245, 0.08);
}

.sort-box:hover svg,
.sort-box:focus-within svg {
  color: #5b45f5;
}

.search-box svg,
.sort-box svg {
  color: #91a0b7;
  fill: currentColor;
  height: 18px;
  width: 18px;
}

input,
textarea,
select {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.search-box input {
  background: transparent;
  border: 0;
  color: #172033;
  min-height: 44px;
  outline: none;
  padding: 0;
}

.search-box input::placeholder {
  color: #8f9bb8;
}

.sort-box select {
  appearance: none;
  background: transparent;
  border: 0;
  color: #172033;
  cursor: pointer;
  font-weight: 850;
  grid-column: 2;
  min-height: 44px;
  outline: none;
  padding: 0;
}

.sort-box select option {
  color: #172033;
  font-weight: 700;
}

textarea {
  resize: vertical;
}

.view-row,
.category-row,
.product-meta,
.rating-row,
footer,
.panel-heading,
.button-row {
  align-items: center;
  display: flex;
}

.view-row {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 13px;
  gap: 4px;
  min-height: 46px;
  padding: 4px;
}

.filter-button,
.view-toggle,
.category-chip {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #596273;
  font-weight: 800;
  min-height: 52px;
}

.filter-button {
  min-width: 260px;
  padding: 0 18px;
  text-align: left;
}

.view-toggle {
  align-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--purple);
  display: inline-flex;
  justify-content: center;
  min-height: 36px;
  width: 36px;
}

.view-toggle svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.view-toggle:not(.active) {
  background: transparent;
  color: #a8b0bf;
}

.view-toggle.active {
  background: #f0edff;
  box-shadow: none;
}

.category-row {
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
}

.category-chip {
  padding: 0 22px;
}

.category-chip span {
  background: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.8rem;
  justify-content: center;
  margin-left: 8px;
  min-width: 24px;
  padding: 3px 6px;
}

.category-chip.active {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: var(--shadow-strong);
  color: var(--white);
}

.result-note {
  color: #9199a8;
  font-size: 0.98rem;
  margin: 8px 0 0;
}

.result-note strong {
  color: var(--ink-strong);
}

.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1240px;
}

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

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

.product-grid.grid-view-2 .media-wrap {
  aspect-ratio: 1.82;
}

.product-grid.grid-view-2 .product-card-content {
  padding: 22px;
}

.product-grid.grid-view-2 .product-meta strong {
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
}

.product-grid.grid-view-2 .buy-button {
  min-height: 44px;
}

.product-grid.grid-view-4 .product-card-content {
  gap: 10px;
  padding: 16px;
}

.product-grid.grid-view-4 .product-meta {
  align-items: stretch;
  flex-direction: column;
}

.product-grid.grid-view-4 .buy-button {
  justify-content: center;
  min-height: 38px;
  width: 100%;
}

.product-grid.grid-view-4 .media-wrap {
  aspect-ratio: 1.72;
}

.product-grid.grid-view-4 .top-badge,
.product-grid.grid-view-4 .discount-badge {
  font-size: 0.72rem;
  min-height: 28px;
  padding: 0 10px;
  top: 12px;
}

.product-grid.grid-view-4 .top-badge {
  left: 12px;
}

.product-grid.grid-view-4 .discount-badge {
  right: 12px;
}

.product-grid.grid-view-4 .badge {
  font-size: 0.68rem;
  padding: 6px 10px;
}

.product-grid.grid-view-4 .product-card h3 {
  font-size: 1.03rem;
  line-height: 1.24;
}

.product-grid.grid-view-4 .product-card p {
  display: none;
  font-size: 0.92rem;
  line-height: 1.45;
}

.product-grid.grid-view-4 .rating-row {
  font-size: 0.86rem;
  gap: 5px;
}

.product-grid.grid-view-4 .rating-row small {
  display: none;
}

.product-grid.grid-view-4 .product-meta strong {
  font-size: 1.12rem;
}

.product-grid.grid-view-4 .product-meta small {
  font-size: 0.86rem;
}

.product-grid.grid-view-4 .share-button {
  border-radius: 10px;
  height: 32px;
  width: 32px;
}

.product-grid.grid-view-4 .share-button svg {
  height: 16px;
  width: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card.is-clickable {
  cursor: pointer;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.product-card.is-clickable:hover,
.product-card.is-clickable:focus {
  box-shadow: 0 26px 70px rgba(109, 61, 242, 0.18);
  outline: none;
  transform: translateY(-4px);
}

.media-wrap {
  aspect-ratio: 1.34;
  background: #f0f2f7;
  overflow: hidden;
  position: relative;
}

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

.top-badge,
.discount-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 950;
  min-height: 34px;
  padding: 0 14px;
  position: absolute;
  top: 18px;
}

.top-badge {
  background: linear-gradient(135deg, #ff5a68, #f97316);
  color: var(--white);
  left: 18px;
}

.discount-badge {
  background: #eafff7;
  color: #0f9f72;
  right: 18px;
}

.product-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
}

.badge {
  align-self: flex-start;
  background: rgba(109, 61, 242, 0.08);
  border: 1px solid rgba(109, 61, 242, 0.1);
  border-radius: 999px;
  color: #5c3dcc;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  padding: 7px 13px;
  text-transform: uppercase;
}

.product-card h3 {
  display: -webkit-box;
  font-size: clamp(1.1rem, 2.2vw, 1.34rem);
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
}

.product-card p {
  color: #8a94a6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
}

.rating-row {
  color: var(--amber);
  gap: 8px;
  min-height: 24px;
}

.rating-row strong {
  color: #e8a100;
  font-size: 0.92rem;
}

.rating-row small {
  color: #98a1af;
}

.product-meta {
  gap: 16px;
  justify-content: space-between;
  margin-top: auto;
}

.product-meta strong {
  color: var(--ink-strong);
  display: block;
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  font-weight: 950;
}

.product-meta small {
  color: #9aa3b2;
  display: block;
  text-decoration: line-through;
}

.buy-button {
  align-items: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(91, 69, 245, 0.24);
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  min-height: 48px;
  padding: 0 20px;
  white-space: nowrap;
}

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

.share-button {
  align-items: center;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  transition: transform 160ms ease, box-shadow 160ms ease;
  width: 42px;
}

.share-button:hover,
.share-button:focus {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  outline: none;
  transform: translateY(-2px);
}

.share-button svg {
  fill: currentColor;
  height: 21px;
  width: 21px;
}

.share-button.copied {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.share-button.whatsapp {
  background: #22c55e;
}

.share-button.telegram {
  background: #229ed9;
}

.share-button.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.share-button.tiktok {
  background: #111827;
}

.site-footer {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: block;
  margin: 42px 0 0;
  padding: 58px clamp(18px, 4vw, 32px) 30px;
}

.footer-grid {
  align-items: start;
  display: grid;
  gap: clamp(36px, 8vw, 120px);
  grid-template-columns: minmax(260px, 1.2fr) minmax(150px, 0.55fr) minmax(150px, 0.55fr);
  margin: 0 auto;
  max-width: 1216px;
}

.footer-brand {
  color: var(--ink-strong);
  display: inline-flex;
  font-size: 1.28rem;
  font-weight: 950;
  margin-bottom: 18px;
}

.footer-brand span {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.footer-brand small {
  color: #8a94a6;
  font-size: 1em;
}

.footer-brand-block p {
  color: #8f9bb8;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.55;
  margin: 0;
  max-width: 410px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.footer-socials a {
  align-items: center;
  background: #f4f7fb;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  color: #7b8ba6;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
  width: 38px;
}

.footer-socials a:hover,
.footer-socials a:focus {
  background: #eef2f8;
  border-color: #d8e0ec;
  color: #5b45f5;
}

.footer-socials svg {
  height: 20px;
  width: 20px;
}

.footer-link-group h3 {
  color: #172033;
  font-size: 0.95rem;
  font-weight: 950;
  margin: 0 0 18px;
}

.footer-link-group a {
  color: #8a96b3;
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  transition: color 160ms ease;
}

.footer-link-group a:hover,
.footer-link-group a:focus {
  color: #5b45f5;
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid var(--line);
  color: #94a0bd;
  display: flex;
  font-size: 0.82rem;
  font-weight: 650;
  gap: 18px;
  justify-content: space-between;
  margin: 42px auto 0;
  max-width: 1216px;
  padding-top: 25px;
}

.footer-bottom b {
  color: #ec4899;
}

.footer-bottom span:last-child {
  color: #c0c9dc;
  font-size: 0.72rem;
}

.admin-body main {
  padding-top: 34px;
}

.admin-shell {
  padding-top: 34px;
}

.auth-card,
.side-panel,
.editor-panel {
  padding: 24px;
}

.auth-card {
  margin: 8vh auto;
  max-width: 480px;
}

.auth-modal-layer {
  align-items: center;
  background:
    linear-gradient(rgba(245, 247, 252, 0.72), rgba(245, 247, 252, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(91, 69, 245, 0.2), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.16), transparent 32%);
  display: flex;
  inset: 0;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: 14px;
}

.admin-auth-modal {
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  max-width: 352px;
  padding: 16px 14px;
  position: relative;
  text-align: center;
  width: min(100%, 352px);
}


.modal-close-dot {
  color: #9aa3b2;
  font-size: 1.5rem;
  line-height: 1;
  position: absolute;
  right: 24px;
  top: 22px;
}

.auth-icon {
  align-items: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
  color: var(--white);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 10px;
  width: 44px;
}

.auth-icon svg,
.secure-strip svg,
.field-shell svg,
.auth-submit svg {
  fill: currentColor;
}

.auth-icon svg {
  height: 22px;
  width: 22px;
}

.admin-auth-modal h1 {
  font-size: clamp(1.35rem, 4.2vw, 1.75rem);
  margin: 0;
}


.admin-auth-modal > p {
  color: #8b95a7;
  margin: 4px 0 10px;
  font-size: 0.86rem;
}


.secure-strip {
  align-items: center;
  background: #eefcf7;
  border: 1px solid #c9f2e4;
  border-radius: 10px;
  color: #10a979;
  display: flex;
  gap: 4px;
  justify-content: space-between;
  margin-bottom: 10px;
  min-height: 32px;
  padding: 0 10px;
}


.secure-strip span {
  align-items: center;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 850;
  gap: 8px;
}

.secure-strip svg {
  height: 18px;
  width: 18px;
}

.secure-strip i {
  background: #7ddfc2;
  border-radius: 999px;
  display: inline-flex;
  height: 16px;
  width: 4px;
}

.field-shell {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 42px;
  padding: 0 10px;
}


.field-shell svg {
  color: #94a3b8;
  height: 16px;
  width: 16px;
}

.field-shell input {
  background: transparent;
  border: 0;
  min-height: 40px;
  outline: none;
  padding: 0;
}


.auth-submit {
  border-radius: 10px;
  margin-top: 2px;
  min-height: 42px;
  width: 100%;
}


.auth-submit svg {
  height: 18px;
  width: 18px;
}

.demo-credentials {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
}


.demo-credentials strong {
  color: #94a3b8;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.demo-credentials span {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86rem;
}

.auth-link-button {
  background: transparent;
  border: 0;
  color: #5b45f5;
  font-size: 0.88rem;
  font-weight: 900;
  margin-top: 10px;
}

.admin-top-pill.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

 (max-width: 760px) {
  .auth-modal-layer {
    min-height: calc(100vh - 64px);
    padding: 14px;
  }

  .admin-auth-modal {
    border-radius: 16px;
    max-width: 100%;
    padding: 18px 14px;
    width: 100%;
  }

  .modal-close-dot {
    right: 14px;
    top: 12px;
  }

  .secure-strip span {
    font-size: 0.82rem;
  }

  .demo-credentials span {
    font-size: 0.78rem;
  }
}


.recovery-form {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
  text-align: left;
}

.auth-card h1,
.panel-heading h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 950;
  line-height: 1;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.6;
}

.section-kicker {
  background: rgba(109, 61, 242, 0.08);
  border-radius: 999px;
  color: #5b3cc4;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding: 8px 12px;
  text-transform: uppercase;
}

label {
  color: #687184;
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 8px;
  margin: 14px 0;
}

.password-toggle-wrap {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.password-toggle-wrap input {
  margin: 0;
}

.password-toggle-button {
  align-items: center;
  background: #eef2ff;
  border: 1px solid #d8def2;
  border-radius: 10px;
  color: #3f4c6b;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  min-width: 40px;
  padding: 0;
  width: 40px;
}

.password-toggle-button svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.password-toggle-button:hover {
  background: #e4ebff;
}

.ghost-button {
  background: transparent;
  border: 0;
  color: #5b3cc4;
  font-weight: 900;
}

.site-header .ghost-button {
  grid-column: 3;
  justify-self: end;
}

.error-text {
  color: #dc2626;
  min-height: 22px;
}

.hidden {
  display: none !important;
}

.panel-heading {
  gap: 20px;
  justify-content: space-between;
}

.admin-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 330px minmax(0, 1fr);
  margin: 24px 0;
}

.side-panel h2,
.admin-panel > section h2 {
  font-size: 1.35rem;
  font-weight: 950;
  margin: 0 0 12px;
}

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

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

.admin-products,
.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.row-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  padding: 10px;
  text-align: left;
}

.row-card img {
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  width: 56px;
}

.row-card strong,
.row-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-card small {
  color: var(--muted);
}

.status {
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 950;
  padding: 7px 10px;
}

.status.published {
  background: #dcfff3;
  color: #047857;
}

.status.draft {
  background: #fff4dc;
  color: #b45309;
}

.social-output {
  background: #101827;
  border-radius: 16px;
  color: #ddffe9;
  margin: 18px 0 0;
  min-height: 120px;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
}

.amazon-locked input[readonly],
.amazon-locked textarea[readonly] {
  background: #f5f6fb;
  color: #697386;
}

.pdp-shell {
  padding-bottom: 52px;
  padding-top: 28px;
}

.about-shell {
  display: grid;
  min-height: calc(100vh - 220px);
  padding-top: clamp(54px, 9vw, 110px);
  place-items: start center;
}

.about-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  max-width: 860px;
  padding: clamp(28px, 5vw, 54px);
}

.about-panel h1 {
  color: var(--ink-strong);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  margin: 18px 0 22px;
}

.about-panel p {
  color: #737b8b;
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.7;
  margin: 0 0 16px;
}

.back-link {
  color: #5b3cc4;
  display: inline-flex;
  font-weight: 900;
  margin-bottom: 18px;
}

.pdp-layout {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.8fr);
  margin: 0 auto;
  max-width: 1080px;
}

.pdp-gallery,
.pdp-info {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.pdp-gallery {
  padding: 14px;
}

.main-image-button {
  aspect-ratio: 1.22;
  background: #f2f4f8;
  border: 0;
  border-radius: 14px;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.main-image-button img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.main-image-button:hover img {
  transform: scale(1.025);
}

.thumb-row {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.thumb-button {
  aspect-ratio: 1;
  background: #f2f4f8;
  border: 2px solid transparent;
  border-radius: 11px;
  overflow: hidden;
  padding: 0;
}

.thumb-button.active {
  border-color: var(--purple);
}

.thumb-button img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.pdp-info {
  align-self: start;
  padding: clamp(20px, 3vw, 30px);
}

.pdp-info h1 {
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  line-height: 1.04;
  margin: 12px 0 12px;
  overflow-wrap: anywhere;
}

.pdp-info p {
  color: #737b8b;
  font-size: 1rem;
  line-height: 1.55;
}

.pdp-rating {
  margin: 14px 0;
}

.pdp-price-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin: 20px 0;
}

.pdp-price-row > strong {
  color: var(--ink-strong);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 950;
}

.pdp-price-row > div > strong {
  color: var(--ink-strong);
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 950;
  line-height: 1;
}

#pdp-previous-price {
  color: #9aa3b2;
  display: block;
  font-size: 0.98rem;
  font-weight: 850;
  margin-bottom: 6px;
  text-decoration: line-through;
}

.pdp-share {
  margin: 14px 0 4px;
}

.detail-box {
  background: #f7f8fc;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 16px;
  padding: 16px;
}

.detail-box h2 {
  font-size: 1rem;
  font-weight: 950;
  margin: 0 0 8px;
}

.detail-box p {
  margin: 0;
}

.pdp-buy-banner {
  align-items: center;
  background:
    radial-gradient(circle at 18px 20px, rgba(255, 255, 255, 0.14) 1px, transparent 1.6px),
    linear-gradient(100deg, #5441ed 0%, #8d54ef 54%, #eb4593 100%);
  background-size: 22px 22px, auto;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(109, 61, 242, 0.18);
  color: #ffffff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: clamp(24px, 4vw, 40px) auto 0;
  max-width: 1080px;
  min-height: 108px;
  padding: clamp(22px, 3vw, 30px);
}

.pdp-buy-banner h2 {
  color: #ffffff;
  font-size: clamp(1.3rem, 2.5vw, 1.72rem);
  font-weight: 950;
  line-height: 1.1;
  margin: 0 0 10px;
}

.pdp-buy-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.45;
  margin: 0;
}

.pdp-buy-banner-button {
  align-items: center;
  background: #ffffff;
  border-radius: 13px;
  color: #4f3df0;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 52px;
  min-width: min(232px, 100%);
  padding: 0 24px;
  white-space: nowrap;
}

.pdp-buy-banner-button strong {
  font-weight: 950;
}

.pdp-buy-banner-button svg {
  height: 18px;
  width: 18px;
}

.lightbox {
  align-items: center;
  background: rgba(9, 13, 23, 0.82);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 50;
}

.lightbox img {
  border-radius: 18px;
  max-height: 88vh;
  max-width: 92vw;
  object-fit: contain;
}

.lightbox-close {
  align-items: center;
  background: var(--white);
  border: 0;
  border-radius: 999px;
  color: var(--ink-strong);
  display: inline-flex;
  font-size: 1.4rem;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  position: fixed;
  right: 24px;
  top: 24px;
  width: 42px;
}

.lightbox-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 999px;
  color: var(--ink-strong);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.6rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
}

.lightbox-nav.prev {
  left: 24px;
}

.lightbox-nav.next {
  right: 24px;
}

.lightbox-counter {
  background: rgba(0, 0, 0, 0.58);
  border-radius: 999px;
  bottom: 24px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  left: 50%;
  padding: 8px 12px;
  position: fixed;
  transform: translateX(-50%);
}

@media (max-width: 780px) {
  .lightbox-nav {
    height: 42px;
    width: 42px;
  }

  .lightbox-nav.prev {
    left: 12px;
  }

  .lightbox-nav.next {
    right: 12px;
  }
}

.admin-body {
  background:
    linear-gradient(120deg, rgba(255, 248, 238, 0.65), rgba(255, 255, 255, 0) 38%),
    linear-gradient(245deg, rgba(237, 233, 255, 0.82), rgba(255, 255, 255, 0) 44%),
    #fafbfe;
}

.admin-reference-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 32px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-top-pill,
.menu-icon-button {
  align-items: center;
  background: #f0edff;
  border: 0;
  border-radius: 14px;
  color: #5b45f5;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  grid-column: 2;
  min-height: 44px;
  justify-content: center;
  padding: 0 18px;
}

.admin-top-pill svg,
.menu-icon-button svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.admin-reference-header .brand {
  grid-column: 1;
  justify-self: start;
}

.topbar-empty,
.admin-user-menu {
  grid-column: 3;
}

.admin-user-menu {
  justify-self: end;
  position: relative;
}

.admin-user-button {
  align-items: center;
  background: #fbfcff;
  border: 1px solid #e5e7ef;
  border-radius: 999px;
  color: #667085;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 9px;
  max-width: min(280px, 34vw);
  min-height: 38px;
  overflow: hidden;
  padding: 4px 12px 4px 5px;
}

.admin-user-button svg {
  fill: currentColor;
  height: 18px;
  flex: 0 0 auto;
  width: 18px;
}

.admin-user-avatar {
  align-items: center;
  background: linear-gradient(135deg, #6549f6, #ec4899);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.admin-user-email {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 6px;
  min-width: 230px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;
}

.admin-user-dropdown button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #667085;
  display: flex;
  font-weight: 850;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
}

.admin-user-dropdown button:hover {
  background: #f6f7fb;
  color: #1f2937;
}

.admin-user-dropdown .danger-menu-button {
  color: #e04463;
}

.admin-user-dropdown svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.admin-reference-menu {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 10px;
  left: 0;
  padding: 16px clamp(16px, 4vw, 32px) 24px;
  position: absolute;
  right: 0;
  top: calc(100% + 1px);
}

.admin-reference-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #667085;
  display: flex;
  font-weight: 850;
  gap: 14px;
  min-height: 46px;
  padding: 0 16px;
  text-align: left;
}

.admin-reference-menu button.active {
  background: #f0edff;
  color: #6045dc;
}

.admin-reference-menu .danger-menu-button {
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: #e04463;
  margin-top: 4px;
  padding-top: 14px;
}

.admin-reference-menu svg,
.reference-title-row svg,
.automation-strip svg,
.reference-card-title svg,
.admin-stat-icon svg,
.mini-action svg,
.save-settings-button svg {
  fill: currentColor;
}

.admin-reference-menu svg {
  height: 20px;
  width: 20px;
}

.admin-panel {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(26px, 4vw, 44px) clamp(16px, 4vw, 28px) 70px;
}

.reference-title-row {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.reference-title-row h1 {
  align-items: center;
  color: #172033;
  display: flex;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 950;
  gap: 10px;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.reference-title-row h1 svg {
  color: #6547eb;
  height: 24px;
  width: 24px;
}

.reference-title-row p,
.reference-card-title p,
.integration-card p,
.muted-copy {
  color: #8a94a6;
  line-height: 1.5;
  margin: 6px 0 0;
}

.compact-primary {
  border-radius: 12px;
  min-height: 48px;
  padding: 0 22px;
  white-space: nowrap;
}

.admin-title-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-return-link {
  border-radius: 12px;
  min-height: 48px;
  padding: 0 18px;
  white-space: nowrap;
}

.admin-confirm-modal {
  align-items: center;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 80;
}

.admin-confirm-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(231, 233, 242, 0.95);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  max-width: 460px;
  padding: 28px;
  width: min(100%, 460px);
}

.admin-confirm-icon {
  align-items: center;
  background: #f0edff;
  border-radius: 16px;
  color: #6547eb;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 16px;
  width: 48px;
}

.admin-confirm-icon svg {
  fill: currentColor;
  height: 24px;
  width: 24px;
}

.admin-confirm-card h2 {
  color: #172033;
  font-size: 1.45rem;
  font-weight: 950;
  margin: 0 0 10px;
}

.admin-confirm-card p {
  color: #697386;
  line-height: 1.55;
  margin: 0;
  white-space: pre-line;
}

.modal-actions {
  justify-content: flex-end;
}

.danger-confirm {
  background: linear-gradient(135deg, #f04438, #e04463);
  box-shadow: 0 18px 42px rgba(224, 68, 99, 0.22);
}

.automation-strip {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 24px;
  min-height: 56px;
  padding: 12px 18px;
}

.automation-strip span {
  align-items: center;
  color: #586174;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
}

.automation-strip svg {
  color: #38a8d4;
  height: 20px;
  width: 20px;
}

.automation-strip span + span {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.automation-strip i,
.deploy-grid i {
  background: #48d6ae;
  border-radius: 999px;
  display: inline-flex;
  height: 8px;
  width: 8px;
}

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

.admin-stat-card,
.reference-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.admin-stat-card {
  min-height: 158px;
  padding: 24px;
}

.admin-stat-card strong {
  color: #172033;
  display: block;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 950;
  line-height: 1;
  margin-top: 18px;
}

.admin-stat-card small {
  color: #8a94a6;
  display: block;
  font-weight: 700;
  margin-top: 8px;
}

.admin-stat-icon,
.tiny-icon {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.admin-stat-icon svg,
.tiny-icon svg {
  height: 22px;
  width: 22px;
}

.admin-stat-icon.violet,
.tiny-icon.violet {
  background: #f0edff;
  color: #6547eb;
}

.admin-stat-icon.peach,
.tiny-icon.amazon {
  background: #fff5ec;
  color: #f59e0b;
}

.admin-stat-icon.gold {
  background: #fff9db;
  color: #eab308;
}

.admin-stat-icon.mint,
.tiny-icon.mint {
  background: #e9fff7;
  color: #10b981;
}

.tiny-icon.telegram {
  background: #e9f8ff;
  color: #2aa7df;
}

.tiny-icon.instagram {
  background: #fff0f8;
  color: #e45496;
}

.tiny-icon.gmail {
  background: #fff1f1;
  color: #ea4335;
}

.tiny-icon.cyan {
  background: #e7fbff;
  color: #0ea5e9;
}

.reference-card {
  padding: clamp(22px, 3vw, 28px);
}

.reference-card-title {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.reference-card-title h2 {
  color: #172033;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 950;
  margin: 0;
}

.product-admin-card {
  overflow: hidden;
  padding: 0;
}

.product-admin-card .reference-card-title {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 20px 24px;
}

.backend-products-table {
  display: grid;
}

.backend-product-row {
  align-items: center;
  border-bottom: 1px solid #eef0f5;
  display: grid;
  gap: 14px;
  grid-template-columns: 56px minmax(0, 1fr) minmax(86px, auto) auto auto;
  min-height: 82px;
  padding: 12px 20px;
}

.backend-product-row:last-child {
  border-bottom: 0;
}

.backend-product-row img {
  aspect-ratio: 1;
  background: #f3f5f9;
  border-radius: 10px;
  object-fit: cover;
  width: 56px;
}

.backend-product-row strong,
.backend-product-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backend-product-row small {
  color: #d97706;
  font-size: 0.82rem;
  font-weight: 850;
  margin-top: 4px;
}

.backend-product-row b {
  color: #172033;
  font-weight: 950;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.mini-action {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #8a94a6;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.mini-action:hover {
  background: #f5f6fb;
  color: #6547eb;
}

.mini-action.danger:hover {
  color: #e04463;
}

.mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.mini-action:disabled:hover {
  background: transparent;
  color: #8a94a6;
}

.mini-action svg {
  height: 19px;
  width: 19px;
}

.reference-editor-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.config-grid {
  display: grid;
  gap: 22px;
}

.users-card,
.security-card,
.settings-form,
.integration-card,
.deploy-card {
  width: 100%;
}

.settings-form {
  display: grid;
  gap: 22px;
}

.small-action {
  margin-left: auto;
  min-height: 38px;
  padding: 0 18px;
}

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

.user-row {
  align-items: center;
  background: #fbfcff;
  border: 1px solid #eef0f5;
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  padding: 12px;
}

.user-row.is-inactive {
  background: #f6f7fb;
  border-color: #e4e7ef;
}

.user-row > span {
  align-items: center;
  background: #f0edff;
  border-radius: 999px;
  color: #6547eb;
  display: inline-flex;
  font-weight: 950;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.user-row strong,
.user-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-row small {
  color: #8a94a6;
}

.user-row.is-inactive > span {
  background: #eef1f6;
  color: #8a94a6;
}

.user-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.user-row b {
  background: #f0edff;
  border-radius: 999px;
  color: #6045dc;
  font-size: 0.78rem;
  padding: 7px 10px;
}

.user-row b.user-state.active {
  background: #e9fbf2;
  color: #067647;
}

.user-row b.user-state.inactive {
  background: #fff1f3;
  color: #b42318;
}

.user-form {
  background: #fbfcff;
  border: 1px solid #eef0f5;
  border-radius: 16px;
  margin-top: 16px;
  padding: 18px;
}

.amazon-opportunity-box {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}

.amazon-opportunity-box h3 {
  color: #172033;
  font-size: 1rem;
  font-weight: 950;
  margin: 0 0 6px;
}

.amazon-opportunity-box p {
  color: #8a94a6;
  line-height: 1.45;
  margin: 0 0 12px;
}

.opportunity-row small {
  white-space: normal;
}

.checkbox-line {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 14px 0;
}

.checkbox-line input {
  accent-color: var(--purple);
  min-height: 18px;
  width: 18px;
}

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

.security-form {
  background: #fbfcff;
  border: 1px solid #eef0f5;
  border-radius: 16px;
  padding: 18px;
}

.security-form h3 {
  color: #172033;
  font-size: 1rem;
  font-weight: 950;
  margin: 0 0 12px;
}

.twofa-secret-box {
  background: #f7f4ff;
  border: 1px solid #ded5ff;
  border-radius: 16px;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
}

.twofa-secret-box small {
  color: #7c6ec6;
  font-weight: 850;
}

.twofa-secret-box strong {
  color: #172033;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.twofa-qr {
  align-items: center;
  background: #fff;
  border: 1px solid #ded5ff;
  border-radius: 14px;
  display: inline-flex;
  justify-content: center;
  min-height: 188px;
  padding: 12px;
  width: max-content;
}

.twofa-qr svg {
  display: block;
  height: 164px;
  width: 164px;
}

.twofa-secret-box textarea {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  min-height: 90px;
}

.form-message {
  color: #6547eb;
  font-weight: 850;
  min-height: 22px;
}

.danger-outline {
  color: #e04463;
}

.switch-label {
  margin: 0 0 0 auto;
}

.switch-label input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.switch-label span {
  background: #cbd5e1;
  border-radius: 999px;
  display: inline-flex;
  height: 28px;
  position: relative;
  width: 50px;
}

.switch-label span::after {
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  content: "";
  height: 22px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform 160ms ease;
  width: 22px;
}

.switch-label input:checked + span {
  background: #10b981;
}

.switch-label input:checked + span::after {
  transform: translateX(22px);
}

.integration-card small {
  color: #9aa3b2;
}

.automation-api-card {
  overflow: hidden;
}

.automation-endpoints {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.automation-endpoints span,
.automation-key-row {
  background: #fbfcff;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  padding: 12px;
}

.automation-endpoints strong,
.automation-endpoints code {
  display: block;
}

.automation-endpoints strong {
  color: #172033;
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.automation-endpoints code,
.secret-output {
  color: #5b45f5;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.automation-key-tool {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 14px;
}

.automation-key-tool input {
  margin: 0;
}

.secret-output {
  background: #f7f4ff;
  border: 1px solid #ded5ff;
  border-radius: 14px;
  margin: 14px 0 0;
  padding: 14px;
  white-space: pre-wrap;
}

.automation-key-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.automation-key-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.automation-key-row strong,
.automation-key-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-key-row small {
  color: #8a94a6;
}

.automation-key-row b {
  background: #e9fbf2;
  border-radius: 999px;
  color: #067647;
  font-size: 0.78rem;
  padding: 7px 10px;
}

.automation-key-row.is-revoked b {
  background: #eef1f6;
  color: #8a94a6;
}

.analytics-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.analytics-list {
  display: grid;
  gap: 10px;
}

.analytics-list article {
  align-items: center;
  background: #fbfcff;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.analytics-list strong,
.analytics-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-list small {
  color: #8a94a6;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.analytics-list b {
  background: #f0edff;
  border-radius: 999px;
  color: #6045dc;
  font-size: 0.82rem;
  padding: 7px 10px;
}

.admin-body.admin-dark-theme {
  background:
    linear-gradient(120deg, rgba(91, 69, 245, 0.13), rgba(10, 14, 26, 0) 38%),
    linear-gradient(245deg, rgba(236, 72, 153, 0.1), rgba(10, 14, 26, 0) 44%),
    #0b1020;
  color: #d8def0;
}

.admin-body.admin-dark-theme .admin-reference-header,
.admin-body.admin-dark-theme .admin-reference-menu,
.admin-body.admin-dark-theme .auth-card,
.admin-body.admin-dark-theme .reference-card,
.admin-body.admin-dark-theme .security-form,
.admin-body.admin-dark-theme .user-form,
.admin-body.admin-dark-theme .deploy-grid span,
.admin-body.admin-dark-theme .automation-endpoints span,
.admin-body.admin-dark-theme .automation-key-row,
.admin-body.admin-dark-theme .analytics-list article,
.admin-body.admin-dark-theme .backend-product-row,
.admin-body.admin-dark-theme .user-row {
  background: rgba(18, 25, 45, 0.94);
  border-color: rgba(134, 148, 180, 0.22);
}

.admin-body.admin-dark-theme .admin-reference-header,
.admin-body.admin-dark-theme .admin-reference-menu {
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.35);
}

.admin-body.admin-dark-theme .reference-title-row h1,
.admin-body.admin-dark-theme .reference-card h2,
.admin-body.admin-dark-theme .security-form h3,
.admin-body.admin-dark-theme .backend-product-row strong,
.admin-body.admin-dark-theme .user-row strong,
.admin-body.admin-dark-theme .admin-stat-card strong,
.admin-body.admin-dark-theme .automation-endpoints strong,
.admin-body.admin-dark-theme .analytics-list strong,
.admin-body.admin-dark-theme .twofa-secret-box strong {
  color: #f7f8ff;
}

.admin-body.admin-dark-theme .reference-title-row p,
.admin-body.admin-dark-theme .reference-card p,
.admin-body.admin-dark-theme .backend-product-row small,
.admin-body.admin-dark-theme .user-row small,
.admin-body.admin-dark-theme .analytics-list small,
.admin-body.admin-dark-theme .deploy-grid small,
.admin-body.admin-dark-theme .integration-card small,
.admin-body.admin-dark-theme .muted-copy {
  color: #9aa7c4;
}

.admin-body.admin-dark-theme input,
.admin-body.admin-dark-theme textarea,
.admin-body.admin-dark-theme select {
  background: #0f172a;
  border-color: rgba(134, 148, 180, 0.28);
  color: #f7f8ff;
}

.admin-body.admin-dark-theme input::placeholder,
.admin-body.admin-dark-theme textarea::placeholder {
  color: #697693;
}

.admin-body.admin-dark-theme .admin-top-pill,
.admin-body.admin-dark-theme .admin-reference-menu button.active,
.admin-body.admin-dark-theme .admin-user-button,
.admin-body.admin-dark-theme .twofa-secret-box,
.admin-body.admin-dark-theme .secret-output {
  background: rgba(91, 69, 245, 0.16);
  border-color: rgba(139, 124, 246, 0.35);
  color: #c9c1ff;
}

.admin-body.admin-dark-theme .admin-reference-menu button,
.admin-body.admin-dark-theme .admin-user-dropdown button {
  color: #b7c0d8;
}

.admin-body.admin-dark-theme .admin-user-dropdown {
  background: rgba(18, 25, 45, 0.98);
  border-color: rgba(134, 148, 180, 0.24);
}

.admin-body.admin-dark-theme .admin-user-dropdown button:hover {
  background: rgba(91, 69, 245, 0.16);
  color: #f7f8ff;
}

.admin-body.admin-dark-theme .twofa-qr {
  background: #fff;
  border-color: rgba(139, 124, 246, 0.45);
}

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

.deploy-grid span {
  background: #fbfcff;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  display: grid;
  gap: 4px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
}

.deploy-grid strong,
.deploy-grid small {
  display: block;
  grid-column: 2;
}

.deploy-grid i {
  grid-row: span 2;
  margin-top: 6px;
}

.deploy-grid small {
  color: #8a94a6;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.save-settings-button {
  border-radius: 14px;
  min-height: 58px;
  width: 100%;
}

.save-settings-button svg {
  height: 20px;
  width: 20px;
}

.empty-state {
  color: #8a94a6;
  margin: 0;
  padding: 22px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    row-gap: 12px;
  }

  .nav-pill {
    display: none;
  }

  .admin-link {
    grid-column: 2;
  }

  .site-header .ghost-button {
    grid-column: 2;
  }

  .hero {
    min-height: auto;
  }

  .hero-stats,
  .product-grid,
  .admin-layout,
  .security-grid,
  .pdp-layout {
    grid-template-columns: 1fr;
  }

  .toolbar-main {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 212px) auto;
  }

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

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

  .reference-title-row {
    flex-direction: column;
  }

  .admin-title-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .backend-product-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .backend-product-row .status {
    justify-self: start;
  }

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

  .user-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .user-badges {
    grid-column: 2;
    justify-content: flex-start;
  }

  .user-row .row-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .automation-endpoints {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .admin-link {
    min-height: 42px;
    padding: 0 14px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .filter-button {
    min-width: 0;
    width: 100%;
  }

  .toolbar-main {
    grid-template-columns: 1fr;
  }

  .view-row,
  .panel-heading,
  .product-meta,
  .pdp-price-row {
    align-items: stretch;
    flex-direction: column;
  }

  .view-row {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: max-content;
  }

  .view-row .filter-button {
    flex-basis: 100%;
  }

  .view-toggle {
    flex: 1;
    width: auto;
  }

  .automation-key-tool,
  .automation-key-row {
    grid-template-columns: 1fr;
  }

  .automation-key-row .mini-action {
    justify-self: start;
  }

  .product-grid.grid-view-4,
  .product-grid.grid-view-2 {
    grid-template-columns: 1fr;
  }

  .buy-button {
    justify-content: center;
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom,
  .pdp-buy-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-bottom {
    gap: 10px;
  }

  .pdp-buy-banner-button {
    width: 100%;
  }

  .admin-reference-menu {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-reference-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    padding: 12px 14px;
    row-gap: 10px;
  }

  .admin-reference-header .brand {
    grid-column: 1;
    min-width: 0;
  }

  .admin-user-menu {
    grid-column: 2;
    min-width: 0;
  }

  .admin-user-button {
    max-width: min(210px, 48vw);
    padding-right: 10px;
  }

  .admin-top-pill {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
  }

  .admin-reference-menu {
    max-height: calc(100vh - 124px);
    overflow: auto;
    padding-bottom: 16px;
  }

  .admin-user-dropdown {
    max-width: calc(100vw - 28px);
    min-width: min(260px, calc(100vw - 28px));
  }

  .automation-strip span + span {
    border-left: 0;
    padding-left: 0;
  }

  .backend-product-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding: 12px;
  }

  .backend-product-row img {
    width: 48px;
  }

  .backend-product-row b,
  .backend-product-row .status {
    grid-column: 2;
  }

  .row-actions {
    grid-column: 3;
    grid-row: 1 / span 3;
  }

  .deploy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .admin-user-email {
    display: none;
  }

  .admin-user-button {
    gap: 6px;
    padding: 4px 8px 4px 5px;
  }

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

.api-docs-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.api-endpoint-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  padding: 14px;
}

.api-endpoint-head {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.api-endpoint-head code {
  background: #f8fafc;
  border-radius: 8px;
  display: inline-block;
  font-size: 0.82rem;
  overflow-x: auto;
  padding: 6px 8px;
}

.api-method {
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 58px;
  padding: 4px 8px;
  text-align: center;
}

.api-method.get { background: #2563eb; }
.api-method.post { background: #16a34a; }
.api-method.put { background: #d97706; }
.api-method.delete { background: #dc2626; }
.api-method.any { background: #6b7280; }

.affiliate-disclosure-strip {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.96));
  border: 1px solid #fed7aa;
  border-radius: 18px;
  color: #7c2d12;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.5;
  margin: 22px auto 0;
  max-width: 1216px;
  padding: 14px 18px;
  width: calc(100% - clamp(28px, 6vw, 70px));
}

.affiliate-disclosure-strip a {
  color: #c2410c;
  font-weight: 950;
  margin-left: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pdp-affiliate-note {
  margin: 14px 0 20px;
  width: 100%;
}

.legal-shell {
  margin: 0 auto;
  max-width: 980px;
  padding: clamp(34px, 7vw, 82px) clamp(18px, 4vw, 32px);
}

.legal-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  padding: clamp(26px, 5vw, 54px);
}

.legal-panel h1 {
  color: var(--ink-strong);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin: 14px 0 22px;
}

.legal-panel h2 {
  color: var(--ink-strong);
  font-size: 1.16rem;
  margin: 28px 0 10px;
}

.legal-panel p {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.72;
  margin: 0 0 16px;
}

.legal-panel a {
  color: #5b45f5;
  font-weight: 900;
}

.compact-row {
  margin-top: -8px;
}

.buy-disclosure-wrap {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.affiliate-inline-note {
  color: #b45309;
  display: block;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  line-height: 1.2;
  max-width: 190px;
  text-align: right;
  text-decoration: none;
  white-space: normal;
}

.product-meta .affiliate-inline-note {
  text-decoration: none;
}

.primary-link small,
.pdp-buy-banner-button small {
  display: block;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  opacity: 0.92;
}

.primary-link {
  flex-direction: column;
  gap: 3px;
}

.pdp-buy-banner-button {
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
  padding-top: 8px;
}

.pdp-buy-banner-button svg {
  display: none;
}

@media (max-width: 760px) {
  .buy-disclosure-wrap {
    align-items: stretch;
    width: 100%;
  }

  .affiliate-inline-note {
    max-width: none;
    text-align: center;
  }
}

.pdp-shell .pdp-affiliate-note {
  align-items: center;
  box-shadow: 0 18px 42px rgba(124, 45, 18, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: center;
  margin: clamp(18px, 4vw, 34px) auto clamp(18px, 4vw, 30px);
  max-width: min(920px, calc(100% - 24px));
  padding: clamp(14px, 3vw, 20px) clamp(16px, 4vw, 28px);
  text-align: center;
  width: fit-content;
}

.pdp-shell .pdp-affiliate-note a {
  margin-left: 0;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .pdp-shell .pdp-affiliate-note {
    border-radius: 16px;
    font-size: 0.86rem;
    line-height: 1.55;
    max-width: calc(100% - 20px);
    width: calc(100% - 20px);
  }

  .pdp-shell .pdp-affiliate-note a {
    display: inline-block;
    width: 100%;
  }
}

.amazon-url-import-status {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: #7c2d12;
  margin: -4px 0 14px;
  padding: 10px 12px;
}

.amazon-url-import-status small {
  display: block;
  font-weight: 800;
  line-height: 1.45;
  white-space: pre-line;
}

.amazon-url-import-status .amazon-import-success {
  color: #166534;
}

.amazon-url-import-status .amazon-import-warning,
.amazon-url-import-status .amazon-import-loading {
  color: #92400e;
}

.amazon-url-import-status .amazon-import-error {
  color: #991b1b;
}

.cookie-consent {
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  max-width: min(940px, calc(100% - 28px));
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 9999;
}

.cookie-consent-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.55fr);
  padding: clamp(16px, 2.4vw, 22px);
}

.cookie-consent-copy {
  min-width: 0;
}

.cookie-eyebrow {
  color: #c2410c;
  display: block;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.cookie-consent h2 {
  color: var(--ink-strong);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  letter-spacing: -0.035em;
  margin: 0 0 7px;
}

.cookie-consent p {
  color: #64748b;
  font-size: clamp(0.84rem, 1.6vw, 0.92rem);
  font-weight: 650;
  line-height: 1.5;
  margin: 0 0 9px;
}

.cookie-consent a {
  color: #5b45f5;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-options {
  display: grid;
  gap: 8px;
}

.cookie-options label {
  align-items: start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  color: #172033;
  display: grid;
  font-size: 0.88rem;
  font-weight: 900;
  gap: 2px 9px;
  grid-template-columns: auto 1fr;
  line-height: 1.25;
  padding: 9px 10px;
}

.cookie-options input {
  accent-color: #5b45f5;
  margin-top: 2px;
}

.cookie-options small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  grid-column: 2;
  line-height: 1.35;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.cookie-actions button {
  min-height: 40px;
  padding: 10px 14px;
}

.cookie-settings-button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #8a96b3;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
  transition: color 160ms ease;
  width: fit-content;
}

.footer-link-group .cookie-settings-button {
  color: #8a96b3;
}

.cookie-settings-button:hover,
.cookie-settings-button:focus {
  color: #5b45f5;
  outline: none;
}

.cookie-settings-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(91, 69, 245, 0.16);
}

@media (max-width: 900px) {
  .cookie-consent-card {
    grid-template-columns: 1fr;
  }

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

  .cookie-actions button {
    flex: 1 1 180px;
  }
}

@media (max-width: 760px) {
  .cookie-consent {
    bottom: max(8px, env(safe-area-inset-bottom));
    max-width: calc(100% - 16px);
  }

  .cookie-consent-card {
    border-radius: 18px;
    gap: 12px;
    max-height: calc(100svh - 16px);
    overflow: auto;
    padding: 14px;
  }

  .cookie-options {
    gap: 7px;
  }

  .cookie-actions {
    gap: 8px;
  }

  .cookie-actions button {
    flex: 1 1 100%;
    min-height: 38px;
  }

}
