:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --header-surface: #ffffff;
  --hero-surface: linear-gradient(135deg, #405de6 0%, #5851db 18%, #833ab4 40%, #c13584 62%, #e1306c 78%, #fd1d1d 90%, #f77737 100%);
  --footer-surface: #faf7fb;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --accent: #e1306c;
  --accent-2: #405de6;
  --kicker: #8c1d4a;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #0f1728;
  --surface-2: #121d31;
  --header-surface: #0f1728;
  --hero-surface: linear-gradient(135deg, #2d1a48 0%, #4c1d95 28%, #831843 58%, #9f1239 78%, #ea580c 100%);
  --footer-surface: #111827;
  --text: #eef4ff;
  --muted: #9fb0c8;
  --line: #23314a;
  --accent: #ff78a5;
  --accent-2: #8ea2ff;
  --kicker: #ff9fc0;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #eef3fb 100%);
}

html[data-theme="dark"] body {
  background: linear-gradient(180deg, #0b1220 0%, #10192b 100%);
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.site-header {
  margin-bottom: 14px;
  padding-top: 92px;
}

.top-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  width: min(1180px, calc(100% - 28px));
  transform: translateX(-50%);
  z-index: 50;
}

.top-nav,
.hero,
.search-panel,
.results-stack > section,
.how-strip article,
.faq-strip article,
.site-footer {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.top-nav {
  min-height: 76px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 0% 0%, rgba(64, 93, 230, 0.18), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(225, 48, 108, 0.16), transparent 30%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1);
  overflow: visible;
}

.top-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.42)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 34%);
  opacity: 0.85;
}

html[data-theme="dark"] .top-nav {
  background:
    linear-gradient(180deg, rgba(10, 15, 25, 0.96), rgba(12, 18, 30, 0.92)),
    radial-gradient(circle at 0% 0%, rgba(142, 162, 255, 0.16), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(255, 120, 165, 0.14), transparent 30%);
}

html[data-theme="dark"] .top-nav::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%);
}

.top-nav-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.top-nav-center {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-subtitle {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.creator-strip {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

html[data-theme="dark"] .creator-strip {
  background: #090d15;
  border-color: rgba(255, 255, 255, 0.06);
}

.creator-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.creator-strip-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.creator-strip-track {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.creator-strip-track::-webkit-scrollbar {
  display: none;
}

.creator-strip-rail {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: creatorStripMarquee 168s linear infinite;
  will-change: transform;
  pointer-events: none;
}

.creator-strip-group {
  display: flex;
  gap: 16px;
  width: max-content;
}

.creator-strip-group[aria-hidden="true"] .recent-creator {
  pointer-events: none;
}

.creator-strip-track.is-dragging {
  cursor: grabbing;
}

.creator-strip:hover .creator-strip-rail,
.creator-strip.is-paused .creator-strip-rail,
.creator-strip-track.is-dragging .creator-strip-rail {
  animation-play-state: paused;
}

@keyframes creatorStripMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.recent-creator {
  position: relative;
  z-index: 1;
  width: 84px;
  flex: 0 0 84px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-decoration: none;
  color: var(--text);
  pointer-events: auto;
}

.recent-creator-ring {
  width: 72px;
  height: 72px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 48%, #6228d7 100%);
}

.recent-creator-avatar {
  width: 100%;
  height: 100%;
  border: 3px solid #ffffff;
  border-radius: 999px;
  object-fit: cover;
  background: #202938;
}

html[data-theme="dark"] .recent-creator-avatar {
  border-color: #090d15;
}

.recent-creator-name {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 0.83rem;
  color: var(--text);
}

html[data-theme="dark"] .recent-creator {
  color: #f8fbff;
}

html[data-theme="dark"] .recent-creator-name {
  color: rgba(248, 251, 255, 0.94);
}

.trend-profiles {
  margin-top: 14px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(217, 171, 77, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 215, 123, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(248, 240, 223, 0.88));
  box-shadow:
    0 24px 60px rgba(92, 67, 16, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

html[data-theme="dark"] .trend-profiles {
  border-color: rgba(233, 194, 102, 0.22);
  background:
    radial-gradient(circle at top right, rgba(255, 215, 123, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(21, 17, 10, 0.96), rgba(12, 11, 8, 0.94));
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 232, 176, 0.08);
}

.trend-profiles-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.trend-profiles-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b6b1a;
}

html[data-theme="dark"] .trend-profiles-title {
  color: #f0d695;
}

.trend-profiles-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.trend-profile {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-decoration: none;
  color: var(--text);
}

.trend-profile-ring {
  width: 100px;
  height: 100px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8e6a3 0%, #e2bf67 34%, #f9d77a 62%, #a9751d 100%);
  box-shadow:
    0 14px 26px rgba(170, 124, 33, 0.2),
    inset 0 1px 0 rgba(255, 251, 238, 0.72);
}

html[data-theme="dark"] .trend-profile-ring {
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 240, 196, 0.22);
}

.trend-profile-avatar {
  width: 100%;
  height: 100%;
  border: 4px solid #fffaf0;
  border-radius: 999px;
  object-fit: cover;
  background: #1d2431;
}

html[data-theme="dark"] .trend-profile-avatar {
  border-color: #100d07;
}

.trend-profile-name {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.trend-profile--access .trend-profile-ring {
  background: linear-gradient(135deg, rgba(255, 244, 200, 0.88), rgba(232, 195, 101, 0.96), rgba(146, 104, 24, 0.96));
}

.trend-profile-plus {
    width: 100%;
    height: 100%;
    display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px dashed rgba(116, 82, 16, 0.44);
  background: linear-gradient(180deg, rgba(255, 250, 236, 0.94), rgba(243, 230, 196, 0.86));
    color: #7d5910;
    font-size: 1.5rem;
}

.trend-profile-plus svg {
    width: 28px;
    height: 28px;
    display: block;
}

html[data-theme="dark"] .trend-profile-plus {
  border-color: rgba(246, 214, 131, 0.34);
  background: linear-gradient(180deg, rgba(47, 33, 13, 0.94), rgba(29, 23, 11, 0.92));
  color: #f0d695;
}

.trend-profile:hover .trend-profile-ring,
.trend-profile:focus-visible .trend-profile-ring {
  transform: translateY(-2px) scale(1.02);
}

.trend-profile-ring,
.trend-profile-plus {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wordmark {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.wordmark-logo {
  width: auto;
  height: 42px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 4px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] .nav-links {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-link {
  position: relative;
  text-decoration: none;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #5c6778;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #405de6, #e1306c 52%, #f77737);
  transform: scaleX(0.35);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

html[data-theme="dark"] .nav-link {
  color: #b5c3d7;
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: #f8fbff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.header-tools {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switcher {
  position: relative;
  z-index: 5;
}

.language-toggle,
.language-option {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(64, 93, 230, 0.12);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}

html[data-theme="dark"] .language-toggle,
html[data-theme="dark"] .language-option {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(142, 162, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 8px;
}

.language-menu[hidden] {
  display: none !important;
}

.language-option.is-current {
  outline: 2px solid rgba(64, 93, 230, 0.18);
}

.theme-toggle,
.brand-badge,
.scroll-top {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 12px;
}

.theme-toggle {
  position: relative;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(64, 93, 230, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.theme-sun,
.theme-moon {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.theme-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px dashed rgba(251, 191, 36, 0.45);
}

html[data-theme="light"] .theme-sun {
  color: #f59e0b;
}

html[data-theme="light"] .theme-moon {
  opacity: 0;
}

html[data-theme="dark"] .theme-sun {
  opacity: 0;
}

html[data-theme="dark"] .theme-moon {
  opacity: 1;
  color: #a5b4fc;
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(142, 162, 255, 0.18);
}

html[data-theme="dark"] .theme-toggle::before {
  border-color: rgba(142, 162, 255, 0.28);
}

.brand-badge,
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
}

.content {
  display: grid;
  gap: 14px;
}

.content-static {
  padding-top: 6px;
}

.breadcrumb-nav {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .breadcrumb-nav {
  background: rgba(15, 23, 40, 0.78);
}

.breadcrumb-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: var(--muted);
  opacity: 0.7;
}

.breadcrumb-link,
.breadcrumb-item.is-current span {
  min-height: 32px;
  max-width: 100%;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb-link {
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid rgba(64, 93, 230, 0.08);
}

.breadcrumb-item.is-current span {
  color: var(--text);
  background: rgba(225, 48, 108, 0.08);
  border: 1px solid rgba(225, 48, 108, 0.14);
}

.breadcrumb-link:hover {
  color: var(--text);
}

.hero {
  min-height: 300px;
  border-radius: 24px;
  padding: 26px;
  display: flex;
  align-items: end;
  background: var(--hero-surface);
  color: #f8fbff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(6px);
}

.hero-copy {
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 24px;
  position: relative;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.masthead-visual {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 54%;
  top: 0;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: none;
}

.masthead-visual::after {
  content: "";
  position: absolute;
  top: -30%;
  width: 180px;
  height: 180%;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 38%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.05) 62%, transparent 100%);
  transform: rotate(45deg) translateX(220%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.masthead-image {
  position: absolute;
  right: -90px;
  bottom: -32px;
  width: 620px;
  max-width: none;
  max-height: 350px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 40px rgba(17, 24, 39, 0.22));
  transform: none;
  opacity: 0.60;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--kicker);
  font-weight: 800;
}

.hero h1,
.empty-state h2,
.result-copy h1,
.result-copy h2 {
  margin: 0;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(2rem, 4vw, 4rem);
}

.hero p:last-child,
.result-text,
.empty-state p,
.how-strip p,
.faq-strip p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero p:last-child {
  color: rgba(248, 251, 255, 0.8);
}

.search-panel,
.result-section,
.empty-state {
  border-radius: 18px;
  padding: 18px;
}

.resolver-form {
  margin: 0;
}

.input-frame {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(225, 48, 108, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 0 3px rgba(225, 48, 108, 0.05);
}

html[data-theme="dark"] .input-frame {
  border-color: rgba(255, 120, 165, 0.26);
  background: linear-gradient(180deg, #111a2d, #0f1728);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 3px rgba(255, 120, 165, 0.08);
}

.paste-button {
  min-height: 46px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.paste-button svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.input-frame input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  outline: none;
  caret-color: var(--accent);
}

.input-frame input::placeholder {
  color: var(--muted);
  opacity: 0.92;
  font-weight: 500;
}

.input-frame input::selection {
  background: rgba(225, 48, 108, 0.18);
}

html[data-theme="dark"] .input-frame input {
  color: #f8fbff;
}

html[data-theme="dark"] .input-frame input::placeholder {
  color: #9fb0c8;
}

.submit-button,
.button,
.ghost-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-button,
.button {
  background: linear-gradient(135deg, #e1306c 0%, #c13584 52%, #833ab4 100%);
  color: #fff;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.submit-button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(131, 58, 180, 0.24);
  filter: saturate(1.05);
}

.submit-button:active,
.button:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 8px 16px rgba(131, 58, 180, 0.18);
}

.ghost-button {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

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

.resolver-loading,
.empty-state {
  background: var(--surface);
}

.resolver-loading {
  min-height: 280px;
  border-radius: 18px;
  padding: 28px 18px;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

.resolver-loading-badge {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 252, 0.9));
  border: 1px solid rgba(225, 48, 108, 0.18);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
  perspective: 900px;
}

.resolver-loading-icon {
  width: 44px;
  height: 44px;
  display: block;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backface-visibility: visible;
  will-change: transform;
  animation: resolver-coin-spin 1.15s linear infinite;
}

.resolver-loading-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.resolver-loading-dots {
  display: inline-block;
  min-width: 1.8ch;
  text-align: left;
  color: var(--accent);
}

html[data-theme="dark"] .resolver-loading-badge {
  background: linear-gradient(180deg, rgba(17, 26, 45, 0.95), rgba(12, 18, 31, 0.94));
  border-color: rgba(255, 120, 165, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

@keyframes resolver-coin-spin {
  from {
    transform: rotateX(10deg) rotateY(0deg);
  }
  to {
    transform: rotateX(10deg) rotateY(360deg);
  }
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.result-copy h1,
.result-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  margin-bottom: 10px;
}

.owner-chip {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 12px 8px 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  text-decoration: none;
  color: inherit;
}

.owner-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  object-fit: cover;
  background: #d7deea;
}

.owner-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #e1306c 0%, #833ab4 100%);
}

.owner-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.owner-meta strong,
.owner-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-meta strong {
  font-size: 0.95rem;
}

.owner-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}

.detail-seo-section {
  display: grid;
  gap: 16px;
}

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

.detail-seo-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 88%, white 12%), var(--surface));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.detail-seo-card--summary,
.detail-seo-card--discovery {
  background:
    radial-gradient(circle at top right, rgba(225, 48, 108, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(64, 93, 230, 0.1), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 88%, white 12%), var(--surface));
}

.detail-seo-card h2,
.detail-seo-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.14rem, 1.8vw, 1.45rem);
  letter-spacing: -0.03em;
}

.detail-seo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.detail-seo-card p + p {
  margin-top: 12px;
}

.detail-seo-list {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-seo-list li::marker {
  color: var(--accent);
}

.detail-shortcode-path {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 84%, white 16%);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.6;
  word-break: break-word;
}

.detail-link-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-link-row a {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.detail-related-block {
  display: grid;
  gap: 14px;
}

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

.detail-related-grid .creator-tile-actions {
  right: 8px;
  bottom: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.tag-row a {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.vote-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.vote-button {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.vote-button span {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.vote-button span svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.vote-button strong,
.vote-button em {
  font-style: normal;
}

.result-media {
  min-width: 0;
}

.player-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  min-height: 420px;
}

.result-media .player-wrap {
  aspect-ratio: 4 / 5;
}

.result-media--video .player-wrap {
  aspect-ratio: auto;
  min-height: min(78vh, 760px);
  max-height: min(78vh, 760px);
}

.player-wrap img,
.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-wrap[data-deferred-wrap="1"] video[data-deferred-video="1"] {
  position: relative;
  z-index: 1;
  transition: opacity 0.18s ease;
}

.player-wrap[data-deferred-wrap="1"]:not(.is-hover-preview):not(.is-playing):not(.has-started) video[data-deferred-video="1"] {
  opacity: 0;
  pointer-events: none;
}

.deferred-video-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  transition: opacity 0.18s ease;
}

.deferred-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-wrap[data-deferred-wrap="1"].is-hover-preview .deferred-video-poster,
.player-wrap[data-deferred-wrap="1"].is-playing .deferred-video-poster,
.player-wrap[data-deferred-wrap="1"].has-started .deferred-video-poster {
  opacity: 0;
  pointer-events: none;
}

.media-gallery {
  position: relative;
  min-height: clamp(440px, 76vh, 800px);
  width: 100%;
  height: 100%;
}

.gallery-track {
  position: absolute;
  inset: 0;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 100%;
  opacity: 0;
  pointer-events: none;
}

.gallery-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slide img,
.gallery-slide video,
.gallery-image-link {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-slide-image {
  background: var(--surface-2);
}

.gallery-slide-image .gallery-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--surface-2);
}

.gallery-slide-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-slide-video img,
.gallery-slide-video video,
.gallery-slide-video .gallery-image-link {
  width: 100%;
  height: 100%;
}

.gallery-slide video {
  position: relative;
  z-index: 1;
  background: #000;
}

.result-media--video .gallery-slide-video,
.result-media--video .gallery-slide-video .gallery-image-link,
.result-media--video .gallery-video-poster {
  background: #000;
}

.result-media--video .gallery-slide-video video,
.result-media--video .gallery-video-poster img {
  object-fit: contain;
  object-position: center center;
}

html[data-theme="dark"] .gallery-slide-image,
html[data-theme="dark"] .gallery-slide-image .gallery-image-link {
  background: #0a0f19;
}

.gallery-image-link {
  display: block;
}

.gallery-video-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #000;
  transition: opacity 0.2s ease;
}

.gallery-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(10, 15, 25, 0.68);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: background-color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.gallery-arrow:hover {
  background: rgba(10, 15, 25, 0.84);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-50%) scale(1.04);
}

.gallery-arrow svg {
    width: 22px;
    height: 22px;
    display: block;
    pointer-events: none;
}

.gallery-arrow-prev {
  left: 14px;
  transform: translateY(-50%);
}

.gallery-arrow-next {
  right: 14px;
  transform: translateY(-50%);
}

.gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 15, 25, 0.42);
  backdrop-filter: blur(10px);
  z-index: 4;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, width 0.16s ease;
}

.gallery-dot:hover {
  background: rgba(255, 255, 255, 0.72);
}

.gallery-dot.is-active {
  background: #ffffff;
  width: 22px;
}

.player-fallback {
  display: grid;
  place-items: center;
  color: #fff;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  z-index: 3;
  transition: transform 0.16s ease, background-color 0.16s ease, opacity 0.16s ease;
}

.play-badge:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.play-badge::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-40%, -50%);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #fff;
}

.player-wrap.is-playing .play-badge {
  background: rgba(0, 0, 0, 0.36);
}

.player-wrap.is-playing .play-badge::before {
  width: 18px;
  height: 24px;
  border: 0;
  background: linear-gradient(90deg, #fff 0 38%, transparent 38% 62%, #fff 62% 100%);
  transform: translate(-50%, -50%);
}

.player-wrap.has-started .gallery-video-poster {
  opacity: 0;
}

.catalog-section {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.catalog-head {
  margin-bottom: 16px;
}

.catalog-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
}

.catalog-head p:last-child,
.catalog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.catalog-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.catalog-media {
  position: relative;
  display: block;
  min-height: 190px;
  background: #000;
}

.catalog-media img,
.catalog-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

video.is-fullscreen-video {
  width: auto !important;
  height: auto !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
  margin: auto !important;
}

video:fullscreen,
video:-webkit-full-screen,
video:-moz-full-screen,
video:-ms-fullscreen {
  width: auto !important;
  height: auto !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
  margin: auto !important;
}

.catalog-body {
  padding: 11px;
}

.catalog-body .owner-chip {
  margin-bottom: 8px;
  padding: 6px 10px 6px 6px;
}

.catalog-body h3 {
  margin: 0 0 6px;
  font-size: 0.94rem;
  line-height: 1.3;
}

.catalog-body h3 a {
  color: inherit;
  text-decoration: none;
}

.catalog-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.88rem;
}

.catalog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.catalog-card .vote-row {
  margin-bottom: 10px;
}

.catalog-card .vote-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.catalog-card .button,
.catalog-card .ghost-button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.85rem;
}

.catalog-media.is-hover-preview .play-badge,
.catalog-media.is-playing .play-badge {
  opacity: 0;
  pointer-events: none;
}

.creator-page {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 24px 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.creator-page-head {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 22px;
}

.creator-page-avatar-wrap {
  flex: 0 0 150px;
}

.creator-page-avatar {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  background: #d7deea;
}

.creator-page-copy h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.creator-page-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.creator-page-button {
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-2);
}

.creator-page-name {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.creator-page-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 10px;
}

.creator-page-stats span {
  color: var(--text);
}

.creator-page-copy p {
  margin: 0;
  color: var(--muted);
}

.creator-page-tabs {
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.creator-page-tabs span {
  margin-top: -1px;
  padding: 14px 0 10px;
  border-top: 1px solid var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

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

.creator-tile {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 2px;
}

.creator-tile-link,
.creator-tile-media {
  display: block;
  aspect-ratio: 1 / 1;
}

.creator-tile-media img,
.creator-tile-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-tile-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  z-index: 3;
}

.tile-download {
  min-width: 84px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(12, 17, 23, 0.72);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-footer {
  margin-top: 14px;
  border-radius: 28px;
  padding: 30px 30px 22px;
  display: grid;
  gap: 24px;
  background:
    radial-gradient(circle at top left, rgba(64, 93, 230, 0.24), transparent 30%),
    radial-gradient(circle at bottom right, rgba(225, 48, 108, 0.16), transparent 34%),
    linear-gradient(145deg, #0f1728 0%, #121a2e 48%, #15101f 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%);
}

.footer-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 34px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 14px;
  align-items: start;
}

.footer-logo-wrap {
  display: inline-flex;
  margin: 0;
  text-decoration: none;
}

.footer-logo-image {
  width: auto;
  height: 28px;
  display: block;
}

.footer-lead {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.05rem, 1.35vw, 1.32rem);
  line-height: 1.35;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.footer-copy {
  margin: 0;
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(224, 231, 255, 0.7);
}

.footer-email {
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.footer-email:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

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

.footer-group {
  display: grid;
  gap: 14px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.footer-heading {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 251, 255, 0.72);
}

.footer-heading-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
  text-align: left;
}

.footer-links a {
  text-decoration: none;
  width: fit-content;
  min-height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: transform 0.18s ease, color 0.18s ease;
}

.footer-links a:hover {
  transform: translateX(4px);
  color: #fff;
}

.site-footer p {
  max-width: none;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(224, 231, 255, 0.62);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(224, 231, 255, 0.68);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.18s ease;
}

.footer-bottom-links a:hover {
  color: #fff;
}

.content-page {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-page-head {
  margin-bottom: 22px;
}

.content-page-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
}

.content-page-head p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.prose {
  display: grid;
  gap: 18px;
}

.prose h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.prose p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.prose a {
  color: var(--accent);
}

.policy-page {
  display: grid;
  gap: 22px;
}

.policy-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.policy-summary-card,
.policy-toc-card,
.policy-card,
.policy-resource-card,
.policy-directory-intro {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 90%, white 10%), var(--surface));
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.policy-mini,
.policy-kicker,
.legal-card-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.policy-summary-card h3,
.policy-toc-card h3,
.policy-card h3,
.policy-resource-card h3,
.policy-directory-intro h3 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.03em;
}

.policy-summary-copy,
.policy-card p,
.policy-toc-card p,
.policy-resource-card p,
.policy-directory-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.policy-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.policy-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 78%, white 22%);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.policy-summary-list,
.policy-list,
.policy-resource-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.policy-summary-list li::marker,
.policy-list li::marker,
.policy-resource-list li::marker {
  color: var(--accent);
}

.policy-toc-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.policy-toc-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 84%, white 16%);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.policy-toc-list a:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--accent);
}

.policy-sections {
  display: grid;
  gap: 16px;
}

.policy-card-head {
  margin-bottom: 14px;
}

.policy-card p + p {
  margin-top: 12px;
}

.policy-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--text);
}

.policy-note p {
  color: inherit;
}

.policy-directory {
  display: grid;
  gap: 18px;
}

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

.legal-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 88%, white 12%), var(--surface));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.legal-card h3 {
  margin: 0 0 8px;
}

.legal-card h3 a {
  text-decoration: none;
  color: var(--text);
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.example-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.example-row {
  display: grid;
  gap: 6px;
}

.example-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.example-row code {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}

.example-y {
  color: #ef4444;
  font-weight: 800;
}

.content-page--faq {
  padding: 30px;
}

.faq-page {
  display: grid;
  gap: 18px;
}

.faq-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.faq-hero-copy,
.faq-shortcut-card,
.faq-search-card,
.faq-item,
.faq-empty {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
}

.faq-hero-copy,
.faq-shortcut-card,
.faq-search-card,
.faq-empty {
  padding: 22px;
}

.faq-mini {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.faq-hero-copy h3,
.faq-empty h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.faq-hero-copy p:last-child,
.faq-shortcut-copy,
.faq-search-status,
.faq-answer p,
.faq-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-search-card {
  display: grid;
  gap: 12px;
}

.faq-search-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.faq-search-wrap {
  position: relative;
}

.faq-search-input {
  width: 100%;
  min-height: 58px;
  padding: 0 52px 0 18px;
  border: 1px solid rgba(225, 48, 108, 0.18);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

.faq-search-input::placeholder {
  color: var(--muted);
}

.faq-search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border: 2px solid var(--muted);
  border-radius: 999px;
}

.faq-search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
  transform: rotate(45deg);
}

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

.faq-item {
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.faq-item:hover {
  border-color: rgba(225, 48, 108, 0.2);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.faq-question-meta {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.faq-category {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  align-items: center;
  border-radius: 999px;
  background: rgba(225, 48, 108, 0.08);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faq-question strong {
  font-size: 1.02rem;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.2);
}

.faq-answer {
  padding: 0 22px 20px;
}

.faq-empty {
  text-align: center;
}

html[data-theme="dark"] .faq-hero-copy,
html[data-theme="dark"] .faq-shortcut-card,
html[data-theme="dark"] .faq-search-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .faq-empty {
  background: rgba(255, 255, 255, 0.03);
}

.profile-picture-page {
  display: grid;
  gap: 18px;
}

.profile-picture-hero,
.profile-picture-result,
.profile-picture-notice {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 88%, white 12%), var(--surface));
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.profile-picture-hero {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: end;
}

.profile-picture-copy,
.profile-picture-result-head,
.profile-picture-form,
.profile-picture-meta-copy {
  display: grid;
  gap: 10px;
}

.profile-picture-mini {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.profile-picture-copy h3,
.profile-picture-result-head h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  letter-spacing: -0.05em;
}

.profile-picture-copy p,
.profile-picture-result-head p,
.profile-picture-notice p,
.profile-picture-meta-copy span {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.profile-picture-field {
  display: grid;
  gap: 8px;
}

.profile-picture-field span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-picture-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 84%, white 16%);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  outline: none;
}

.profile-picture-submit,
.profile-picture-action {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 32px rgba(225, 48, 108, 0.18);
}

.profile-picture-submit {
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

.profile-picture-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.profile-picture-submit:disabled,
.profile-picture-submit.is-loading {
  cursor: wait;
  opacity: 0.8;
  transform: none;
  filter: saturate(0.86);
}

.profile-picture-notice {
  padding: 18px 20px;
}

.profile-picture-notice strong {
  display: block;
  margin-bottom: 6px;
}

.profile-picture-notice.is-error {
  background: linear-gradient(180deg, rgba(59, 14, 18, 0.96), rgba(37, 10, 13, 0.98));
  border-color: rgba(248, 113, 113, 0.24);
}

.profile-picture-result {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.profile-picture-card {
  display: grid;
  gap: 16px;
}

.profile-picture-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-picture-meta-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
}

.profile-picture-meta-copy strong {
  font-size: 1rem;
}

.profile-picture-frame {
  display: block;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(225, 48, 108, 0.08), transparent 28%),
    color-mix(in srgb, var(--surface-2) 90%, white 10%);
}

.profile-picture-frame img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  margin: 0 auto;
}

.profile-picture-actions {
  display: flex;
  justify-content: flex-start;
}

.access-page {
  display: grid;
  gap: 20px;
}

.access-hero-panel,
.access-card-block,
.access-status-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 88%, white 12%), var(--surface));
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.access-hero-panel {
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.access-hero-copy {
  display: grid;
  gap: 14px;
}

.access-mini {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.access-hero-copy h3,
.access-section-head h4,
.access-status-card h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.access-hero-copy p,
.access-provider-note,
.access-inline-note,
.access-summary-shell p,
.access-status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.access-hero-points,
.access-side-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.68;
}

.access-hero-points li::marker,
.access-side-list li::marker {
  color: var(--accent);
}

.access-hero-visual {
  min-height: 100%;
}

.access-visual-slot {
  height: 100%;
  min-height: 280px;
  padding: 22px;
  display: grid;
  align-content: end;
  border-radius: 22px;
  border: 1px dashed color-mix(in srgb, var(--accent) 24%, var(--line));
  background:
    radial-gradient(circle at top right, rgba(225, 48, 108, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 249, 255, 0.88));
}

.access-visual-label {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  align-items: center;
  border-radius: 999px;
  background: rgba(225, 48, 108, 0.08);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-visual-slot p {
  margin: 12px 0 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.access-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.access-builder-main {
  display: grid;
  gap: 18px;
}

.access-card-block,
.access-status-card {
  padding: 24px;
}

.access-section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.access-section-head h4 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.access-section-head--compact {
  margin-top: 18px;
}

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

.access-plan-card {
  position: relative;
  cursor: pointer;
}

.access-plan-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.access-plan-surface {
  min-height: 100%;
  padding: 18px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.95));
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.access-plan-card:hover .access-plan-surface,
.access-plan-input:focus-visible + .access-plan-surface,
.access-plan-input:checked + .access-plan-surface {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  box-shadow: 0 20px 36px rgba(225, 48, 108, 0.12);
  transform: translateY(-2px);
}

.access-plan-card.is-recommended .access-plan-surface {
  background:
    radial-gradient(circle at top right, rgba(225, 48, 108, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 244, 249, 0.98));
}

.access-plan-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  padding: 0 11px;
  align-items: center;
  border-radius: 999px;
  background: rgba(225, 48, 108, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.access-plan-duration,
.access-plan-copy {
  color: var(--muted);
}

.access-plan-duration {
  font-size: 0.9rem;
  font-weight: 700;
}

.access-plan-price {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.05em;
}

.access-plan-headline {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.access-plan-copy {
  font-size: 0.95rem;
  line-height: 1.65;
}

.access-order-form {
  display: grid;
}

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

.access-field {
  display: grid;
  gap: 8px;
}

.access-field--full,
.access-inline-note {
  grid-column: 1 / -1;
}

.access-field span {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.access-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 84%, white 16%);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  outline: none;
}

.access-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 86%, transparent);
}

.access-inline-note {
  margin: -2px 0 0;
  font-size: 0.93rem;
}

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

.access-provider {
  min-height: 78px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.access-provider:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
}

.access-provider:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.access-provider-icon {
    width: 46px;
    height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-2) 82%, white 18%);
  font-size: 1.25rem;
    color: var(--accent);
}

.access-provider-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.access-provider-meta {
  display: grid;
  gap: 4px;
}

.access-provider-meta strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

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

.access-provider-note,
.access-form-status {
  margin-top: 14px;
}

.access-form-status {
  min-height: 22px;
  color: var(--text);
  font-weight: 700;
}

.access-form-status.is-error {
  color: #b42318;
}

.access-order-form.is-loading {
  opacity: 0.82;
}

.access-builder-side {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.access-summary-shell {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 82%, white 18%);
}

.access-summary-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.access-summary-shell h5 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.access-summary-shell strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.access-status-card.is-success {
  border-color: rgba(18, 183, 106, 0.24);
}

.access-status-card.is-fail {
  border-color: rgba(217, 45, 32, 0.22);
}

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

.access-status-grid div {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 82%, white 18%);
  display: grid;
  gap: 6px;
}

.access-status-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.access-status-grid strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.access-status-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.access-primary-link,
.access-secondary-link {
  min-height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.access-primary-link {
  background: linear-gradient(135deg, var(--accent), #f77737);
  color: #fff;
}

.access-secondary-link {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

html[data-theme="dark"] .access-hero-panel,
html[data-theme="dark"] .access-card-block,
html[data-theme="dark"] .access-status-card {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .access-visual-slot {
  background:
    radial-gradient(circle at top right, rgba(255, 120, 165, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 25, 40, 0.94), rgba(12, 18, 30, 0.94));
}

html[data-theme="dark"] .access-plan-surface,
html[data-theme="dark"] .access-provider,
html[data-theme="dark"] .access-summary-shell,
html[data-theme="dark"] .access-status-grid div,
html[data-theme="dark"] .access-field input {
  background: rgba(255, 255, 255, 0.04);
}

.admin-body {
  --surface: #0f1726;
  --surface-2: #111c2d;
  --text: #eef4ff;
  --muted: #95a6c5;
  --line: rgba(148, 163, 184, 0.16);
  --shadow: 0 22px 44px rgba(2, 8, 23, 0.36);
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(64, 93, 230, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(225, 48, 108, 0.1), transparent 24%),
    linear-gradient(180deg, #07111d 0%, #0a1423 52%, #0c1728 100%);
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card,
.admin-panel,
.admin-sidebar {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 28, 44, 0.96), rgba(12, 20, 34, 0.96));
  box-shadow: var(--shadow);
}

.admin-login-card {
  width: min(100%, 460px);
  padding: 24px;
  border-radius: 22px;
  display: grid;
  gap: 16px;
}

.admin-eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.admin-login-card h1,
.admin-topbar h1,
.admin-panel-head h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.admin-login-card h1,
.admin-topbar h1 {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
}

.admin-login-copy,
.admin-topbar-meta,
.admin-panel-head p,
.admin-metric-card p,
.admin-login-form label span {
  color: var(--muted);
}

.admin-login-form {
  display: grid;
  gap: 14px;
}

.admin-login-form label {
  display: grid;
  gap: 8px;
}

.admin-login-form label span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-login-form input,
.admin-inline-form input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 15, 28, 0.72);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
}

.admin-primary-button,
.admin-secondary-button,
.admin-logout-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.admin-primary-button {
  background: linear-gradient(135deg, var(--accent), #f77737);
  color: #fff;
}

.admin-secondary-button,
.admin-logout-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}

.admin-login-error,
.admin-flash {
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 700;
}

.admin-login-error,
.admin-flash.is-error {
  border: 1px solid rgba(180, 35, 24, 0.18);
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

.admin-flash.is-success {
  border: 1px solid rgba(18, 183, 106, 0.18);
  background: rgba(18, 183, 106, 0.08);
  color: #067647;
}

.admin-flash.is-info {
  border: 1px solid rgba(64, 93, 230, 0.18);
  background: rgba(64, 93, 230, 0.08);
  color: #2949bf;
}

.admin-shell {
  width: min(1460px, calc(100% - 26px));
  margin: 0 auto;
  padding: 14px 0 18px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 14px;
}

.admin-sidebar {
  border-radius: 22px;
  padding: 16px;
  display: grid;
  gap: 16px;
  align-content: start;
  position: sticky;
  top: 12px;
  height: fit-content;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(9, 14, 24, 0.98)),
    radial-gradient(circle at top left, rgba(64, 93, 230, 0.12), transparent 36%);
}

.admin-brand {
  display: grid;
  gap: 10px;
  align-items: start;
  justify-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand img {
  width: 92px;
  height: auto;
  display: block;
}

.admin-brand > div {
  display: grid;
  gap: 4px;
}

.admin-brand strong,
.admin-topbar-meta span,
.admin-nav-link {
  display: block;
}

.admin-brand span {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-nav {
  display: grid;
  gap: 7px;
}

.admin-nav-link {
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
}

.admin-nav-link:hover,
.admin-nav-link.is-active {
  background: linear-gradient(135deg, rgba(64, 93, 230, 0.18), rgba(225, 48, 108, 0.1));
  color: #fff;
  border-color: rgba(142, 162, 255, 0.26);
}

.admin-main {
  display: grid;
  gap: 14px;
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 2px 2px 0;
}

.admin-topbar-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-topbar-meta span {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.admin-panel {
  border-radius: 20px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.admin-panel--provider {
  background:
    linear-gradient(180deg, rgba(13, 31, 56, 0.98), rgba(9, 22, 40, 0.98)),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 36%);
  border-color: rgba(96, 165, 250, 0.24);
}

.admin-panel--plan {
  background:
    linear-gradient(180deg, rgba(49, 18, 54, 0.98), rgba(33, 12, 40, 0.98)),
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.16), transparent 36%);
  border-color: rgba(244, 114, 182, 0.22);
}

.admin-panel--orders {
  background:
    linear-gradient(180deg, rgba(12, 46, 44, 0.98), rgba(9, 29, 32, 0.98)),
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.16), transparent 36%);
  border-color: rgba(52, 211, 153, 0.22);
}

.admin-panel--expiries {
  background:
    linear-gradient(180deg, rgba(54, 31, 10, 0.98), rgba(37, 20, 7, 0.98)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 36%);
  border-color: rgba(251, 191, 36, 0.24);
}

.admin-panel--provider .admin-panel-head,
.admin-panel--plan .admin-panel-head,
.admin-panel--orders .admin-panel-head,
.admin-panel--expiries .admin-panel-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.admin-panel--provider .admin-panel-head h2 {
  color: #9fd0ff;
}

.admin-panel--plan .admin-panel-head h2 {
  color: #ffb0da;
}

.admin-panel--orders .admin-panel-head h2 {
  color: #9ff0d3;
}

.admin-panel--expiries .admin-panel-head h2 {
  color: #ffd36f;
}

.admin-panel--provider .admin-table-wrap,
.admin-panel--plan .admin-table-wrap,
.admin-panel--orders .admin-table-wrap,
.admin-panel--expiries .admin-table-wrap {
  background: rgba(3, 8, 18, 0.34);
}

.admin-panel--provider .admin-table th {
  background: rgba(96, 165, 250, 0.1);
}

.admin-panel--plan .admin-table th {
  background: rgba(244, 114, 182, 0.1);
}

.admin-panel--orders .admin-table th {
  background: rgba(52, 211, 153, 0.1);
}

.admin-panel--expiries .admin-table th {
  background: rgba(251, 191, 36, 0.1);
}

.admin-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-head p {
  margin: 0;
  max-width: 62ch;
  font-size: 0.84rem;
}

.admin-panel-head h2 {
  font-size: 1.04rem;
  font-weight: 800;
}

.admin-panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-metric-grid,
.admin-two-col {
  display: grid;
  gap: 16px;
}

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

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

.admin-metric-grid--compact {
  gap: 10px;
}

.admin-metric-card {
  min-height: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 31, 48, 0.92), rgba(14, 24, 38, 0.92));
  display: grid;
  gap: 6px;
}

.admin-metric-card span,
.admin-detail-grid span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-metric-card strong,
.admin-detail-grid strong {
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  letter-spacing: -0.04em;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 15, 28, 0.56);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 10px 9px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

.admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.admin-table td a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.admin-status-badge {
  display: inline-flex;
  min-height: 24px;
  padding: 0 8px;
  align-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-status-badge.is-paid {
  background: rgba(18, 183, 106, 0.12);
  color: #067647;
}

.admin-status-badge.is-pending {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.admin-status-badge.is-failed,
.admin-status-badge.is-expired {
  background: rgba(217, 45, 32, 0.1);
  color: #b42318;
}

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

.admin-detail-grid > div {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
}

.admin-inline-form {
  display: inline-flex;
}

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

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

.admin-settings-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 10px;
}

.admin-settings-card h3 {
  margin: 0;
  font-size: 0.96rem;
  letter-spacing: -0.03em;
}

.admin-settings-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

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

.admin-settings-card--intake {
  background:
    linear-gradient(180deg, rgba(17, 49, 43, 0.96), rgba(9, 27, 24, 0.98)),
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.22), transparent 34%);
  border-color: rgba(74, 222, 128, 0.24);
}

.admin-settings-card--checkout {
  background:
    linear-gradient(180deg, rgba(22, 36, 60, 0.96), rgba(12, 21, 38, 0.98)),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.22), transparent 34%);
  border-color: rgba(96, 165, 250, 0.24);
}

.admin-settings-card--methods {
  background:
    linear-gradient(180deg, rgba(49, 28, 62, 0.96), rgba(25, 15, 34, 0.98)),
    radial-gradient(circle at top right, rgba(216, 180, 254, 0.22), transparent 34%);
  border-color: rgba(216, 180, 254, 0.24);
}

.admin-settings-card--recommend {
  background:
    linear-gradient(180deg, rgba(61, 35, 22, 0.96), rgba(33, 19, 11, 0.98)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), transparent 34%);
  border-color: rgba(251, 191, 36, 0.24);
}

.admin-settings-card--plans {
  background:
    linear-gradient(180deg, rgba(40, 22, 46, 0.96), rgba(22, 12, 28, 0.98)),
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.2), transparent 34%);
  border-color: rgba(244, 114, 182, 0.24);
}

.admin-settings-card--pricing {
  background:
    linear-gradient(180deg, rgba(50, 39, 16, 0.96), rgba(29, 20, 8, 0.98)),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.22), transparent 34%);
  border-color: rgba(250, 204, 21, 0.24);
}

.admin-price-grid {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.admin-price-field {
  display: grid;
  gap: 8px;
}

.admin-price-field span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-price-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.admin-price-field em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.5;
}

.admin-panel-actions--sticky {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-check-row,
.admin-radio-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.admin-settings-card > .admin-check-row:first-of-type,
.admin-settings-card > .admin-radio-row:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.admin-check-row input,
.admin-radio-row input {
  margin-top: 3px;
  accent-color: var(--accent-2);
}

.admin-check-row span,
.admin-radio-row span {
  display: grid;
  gap: 4px;
}

.admin-check-row strong,
.admin-radio-row strong {
  font-size: 0.88rem;
}

.admin-check-row em,
.admin-radio-row em,
.admin-settings-note {
  color: var(--muted);
  font-size: 0.83rem;
  font-style: normal;
  line-height: 1.5;
}

.admin-settings-note {
  margin-top: 12px;
}

.admin-payments-page {
  display: grid;
  gap: 14px;
}

.admin-panel--payments-providers {
  background:
    linear-gradient(180deg, rgba(12, 20, 36, 0.98), rgba(9, 16, 28, 0.98)),
    radial-gradient(circle at top left, rgba(64, 93, 230, 0.12), transparent 34%);
}

.admin-panel--payments-hero {
  background:
    linear-gradient(180deg, rgba(17, 28, 45, 0.98), rgba(10, 18, 31, 0.98)),
    radial-gradient(circle at top right, rgba(64, 93, 230, 0.12), transparent 34%);
}

.admin-panel--payments-diagnostics {
  background:
    linear-gradient(180deg, rgba(13, 24, 40, 0.98), rgba(9, 17, 30, 0.98)),
    radial-gradient(circle at top left, rgba(225, 48, 108, 0.08), transparent 34%);
}

.admin-panel--payments-keys,
.admin-panel--payments-plans {
  background: linear-gradient(180deg, rgba(14, 23, 37, 0.98), rgba(10, 17, 29, 0.98));
}

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

.admin-provider-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-provider-card--paddle {
  background:
    linear-gradient(180deg, rgba(20, 32, 52, 0.96), rgba(13, 22, 37, 0.96)),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 34%);
  border-color: rgba(96, 165, 250, 0.24);
}

.admin-provider-card--crypto {
  background:
    linear-gradient(180deg, rgba(30, 21, 52, 0.96), rgba(18, 13, 35, 0.96)),
    radial-gradient(circle at top right, rgba(196, 181, 253, 0.18), transparent 34%);
  border-color: rgba(196, 181, 253, 0.24);
}

.admin-provider-card--proxy {
  background:
    linear-gradient(180deg, rgba(27, 34, 20, 0.96), rgba(17, 24, 14, 0.96)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), transparent 36%);
  border-color: rgba(251, 191, 36, 0.28);
}

.admin-provider-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-provider-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-provider-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.admin-provider-gear {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.admin-provider-statuses {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-provider-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.admin-provider-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.admin-provider-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.admin-provider-meta-list strong {
  color: #dbe6ff;
}

.admin-provider-meta-list span {
  color: var(--muted);
  text-align: right;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 8, 16, 0.76);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.admin-modal-backdrop[hidden] {
  display: none !important;
}

.admin-modal-shell {
  width: min(100%, 820px);
}

.admin-modal-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 22, 36, 0.98), rgba(9, 16, 28, 0.98));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  padding: 18px;
  display: grid;
  gap: 16px;
}

.admin-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-modal-head h3 {
  margin: 0;
  font-size: 1.14rem;
}

.admin-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.admin-modal-form {
  display: grid;
  gap: 16px;
}

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

.admin-modal-field {
  display: grid;
  gap: 8px;
}

.admin-modal-field--full {
  grid-column: 1 / -1;
}

.admin-modal-field span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-modal-field input,
.admin-modal-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 15, 28, 0.82);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
}

.admin-modal-field em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-modal-open {
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(12px);
}

html[data-theme="dark"] .cookie-banner {
  background: rgba(15, 23, 40, 0.94);
}

.cookie-banner-copy strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-banner-copy p {
  margin: 0;
  color: var(--muted);
}

.cookie-banner-copy a {
  color: var(--accent);
}

.cookie-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.seo-section {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.seo-card {
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.seo-card--direct,
.seo-card--library {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fbff;
  box-shadow: 0 24px 48px rgba(88, 35, 101, 0.18);
}

.seo-card--direct {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.28) 0, rgba(255, 255, 255, 0.08) 18%, transparent 36%),
    radial-gradient(circle at 12% 100%, rgba(255, 255, 255, 0.2) 0, transparent 30%),
    var(--hero-surface);
}

.seo-card--library {
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.24) 0, rgba(255, 255, 255, 0.06) 18%, transparent 34%),
    radial-gradient(circle at 90% 100%, rgba(255, 255, 255, 0.18) 0, transparent 28%),
    linear-gradient(135deg, #3b2b88 0%, #6d28d9 22%, #a21caf 48%, #db2777 72%, #fb7185 100%);
}

.seo-card--direct::after,
.seo-card--library::after {
  content: "";
  position: absolute;
  inset: auto -42px -58px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(6px);
  pointer-events: none;
}

.seo-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -0.04em;
}

.seo-card--direct h2,
.seo-card--library h2 {
  color: #ffffff;
}

.seo-card p:last-of-type {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.seo-card--direct .eyebrow,
.seo-card--library .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.seo-card--direct p:last-of-type,
.seo-card--library p:last-of-type {
  color: rgba(248, 251, 255, 0.86);
}

.seo-code {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(64, 93, 230, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  font-size: 0.92rem;
  font-weight: 700;
  word-break: break-word;
}

.seo-card--direct .seo-code,
.seo-card--library .seo-code {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.seo-link-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-link-row a {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.seo-card--direct .seo-link-row a,
.seo-card--library .seo-link-row a {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.seo-card--direct .seo-link-row a:hover,
.seo-card--library .seo-link-row a:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.28);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  cursor: pointer;
}

.vote-notice {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 17, 23, 0.92);
  color: #fff;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
}

.vote-notice.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.masthead-visual.is-sheen-right::after {
  right: -10%;
  animation: hero-sheen-right 1.45s ease-out forwards;
}

.masthead-visual.is-sheen-left::after {
  left: -10%;
  animation: hero-sheen-left 1.45s ease-out forwards;
}

@keyframes hero-sheen-right {
  0% {
    transform: rotate(45deg) translateX(220%);
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  100% {
    transform: rotate(45deg) translateX(-220%);
    opacity: 0;
  }
}

@keyframes hero-sheen-left {
  0% {
    transform: rotate(-45deg) translateX(-220%);
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  100% {
    transform: rotate(-45deg) translateX(220%);
    opacity: 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .result-grid,
  .footer-shell,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .masthead,
  .seo-grid,
  .detail-seo-grid {
    grid-template-columns: 1fr;
  }

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

  .faq-hero-card {
    grid-template-columns: 1fr;
  }

  .profile-picture-hero {
    grid-template-columns: 1fr;
  }

  .access-hero-panel,
  .access-builder {
    grid-template-columns: 1fr;
  }

  .access-builder-side {
    position: static;
  }

  .admin-shell,
  .admin-two-col,
  .admin-metric-grid,
  .admin-detail-grid,
  .admin-settings-grid,
  .admin-payments-control-grid {
    grid-template-columns: 1fr;
  }

  .admin-provider-grid,
  .admin-modal-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .access-plan-grid {
    grid-template-columns: 1fr;
  }

  .policy-overview,
  .legal-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .top-nav {
    grid-template-columns: 1fr auto;
  }

  .top-nav-center,
  .nav-links {
    display: none;
  }

  .result-grid {
    display: grid;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1120px);
  }

  .site-header {
    padding-top: 82px;
  }

  .top-nav {
    width: min(100% - 18px, 1120px);
    min-height: 70px;
  }

  .hero,
  .search-panel,
  .result-section,
  .empty-state,
  .seo-section,
  .content-page,
  .site-footer {
    border-radius: 14px;
  }

  .hero {
    padding: 18px;
  }

  .content-page--faq {
    padding: 20px;
  }

  .access-card-block,
  .access-status-card,
  .access-hero-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .access-form-grid,
  .access-provider-grid,
  .access-status-grid {
    grid-template-columns: 1fr;
  }

  .access-hero-copy h3,
  .access-section-head h4,
  .access-status-card h3 {
    font-size: 1.35rem;
  }

  .access-provider {
    min-height: 72px;
  }

  .admin-login-card,
  .admin-panel,
  .admin-sidebar {
    border-radius: 18px;
    padding: 18px;
  }

  .policy-summary-card,
  .policy-toc-card,
  .policy-card,
  .policy-resource-card,
  .policy-directory-intro,
  .legal-card {
    padding: 18px;
    border-radius: 18px;
  }

  .creator-strip {
    padding: 10px 12px;
  }

  .trend-profiles {
    padding: 16px 14px 18px;
    border-radius: 18px;
  }

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

  .trend-profile-ring {
    width: 88px;
    height: 88px;
  }

  .brand-copy {
    gap: 0;
  }

  .brand-eyebrow {
    font-size: 0.66rem;
  }

  .brand-subtitle {
    font-size: 0.88rem;
  }

  .masthead-visual {
    position: relative;
    left: auto;
    top: auto;
    height: 220px;
  }

  .masthead-image {
    right: 50%;
    bottom: -52px;
    width: 640px;
    max-height: 420px;
    transform: translateX(50%);
  }

  .recent-creator {
    width: 72px;
    flex-basis: 72px;
  }

  .recent-creator-ring {
    width: 62px;
    height: 62px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .input-frame {
    grid-template-columns: 1fr;
  }

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

  .submit-button,
  .button,
  .ghost-button {
    width: 100%;
  }

  .result-actions,
  .catalog-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .site-footer {
    padding: 26px 20px 20px;
  }

  .footer-shell,
  .footer-bottom {
    gap: 18px;
  }

  .footer-brand {
    gap: 12px;
  }

  .footer-copy {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: start;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .seo-card {
    padding: 16px;
  }

  .detail-seo-card {
    padding: 18px;
    border-radius: 18px;
  }

  .creator-page {
    padding: 16px 16px 14px;
  }

  .creator-page-head {
    gap: 16px;
  }

  .creator-page-avatar-wrap {
    flex-basis: 96px;
  }

  .creator-page-avatar {
    width: 96px;
    height: 96px;
  }

  .creator-page-topline {
    flex-wrap: wrap;
    gap: 10px;
  }

  .creator-page-copy h2 {
    font-size: 1.25rem;
  }

  .creator-page-stats {
    gap: 12px;
  }

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

  .catalog-media {
    min-height: 160px;
  }

  .catalog-body {
    padding: 10px;
  }

  .detail-related-grid {
    grid-template-columns: 1fr;
  }
}
