:root {
  color-scheme: dark;
  --font-body: "Lexend", "Segoe UI", sans-serif;
  --font-display: "Lexend", "Segoe UI", sans-serif;

  --bg: #0f1115;
  --bg-soft: #111317;
  --surface: rgba(30, 41, 59, 0.94);
  --surface-elevated: rgba(51, 65, 85, 0.98);
  --surface-card: rgba(22, 27, 36, 0.96);
  --card-border: rgba(204, 255, 0, 0.14);

  --text-main: #e2e2e8;
  --text-subtle: #c4c9ac;
  --text-faint: #8e9379;

  --accent: #ccff00;
  --accent-strong: #abd600;
  --accent-soft: rgba(204, 255, 0, 0.14);
  --accent-wash: rgba(204, 255, 0, 0.06);
  --free: #ccff00;
  --vip: #d8e3fb;

  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-pill: 8px;
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.34);
  --shadow-card: 0 28px 72px rgba(0, 0, 0, 0.42);

  --header-bg: rgba(17, 19, 23, 0.86);
  --noise-opacity: 0.05;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 12%, rgba(204, 255, 0, 0.1) 0%, transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(204, 255, 0, 0.06) 0%, transparent 26%),
    radial-gradient(circle at 50% 110%, rgba(255, 255, 255, 0.05) 0%, transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  line-height: 1.58;
}

a {
  color: inherit;
}

img,
svg,
canvas,
video {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--surface-elevated);
  color: var(--text-main);
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 10px;
}

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

.page-backdrop,
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-backdrop {
  z-index: 0;
  background:
    radial-gradient(60rem 32rem at -10% 6%, rgba(204, 255, 0, 0.1), transparent),
    radial-gradient(46rem 28rem at 108% 14%, rgba(204, 255, 0, 0.06), transparent),
    radial-gradient(40rem 24rem at 35% 110%, rgba(255, 255, 255, 0.04), transparent);
}

.page-noise {
  z-index: 1;
  opacity: var(--noise-opacity);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 12px
  );
}

.site-header,
.layout,
.site-footer {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.site-header {
  max-width: 1160px;
  margin: 18px auto 0;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius-lg) + 4px);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brand-home {
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
}

.brand-home:hover .brand,
.brand-home:focus-visible .brand {
  color: var(--accent);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
  font-size: 1.22rem;
  font-weight: 800;
}

.brand-subtitle {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.82rem;
  letter-spacing: 0.2px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.top-nav a {
  text-decoration: none;
  color: var(--text-subtle);
  font-size: 0.9rem;
  padding: 9px 13px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--card-border);
  transform: translateY(-1px);
}

.top-nav a[aria-current="page"],
.mobile-nav-links a[aria-current="page"],
.page-shortcuts a[aria-current="page"] {
  border-color: rgba(204, 255, 0, 0.36);
  background: rgba(204, 255, 0, 0.1);
  color: var(--accent);
}

.header-cta,
.btn.header-cta {
  padding-inline: 16px;
}

.page-shortcuts {
  display: none;
}

.mobile-nav-toggle,
.mobile-nav-overlay,
.mobile-nav-drawer {
  display: none;
}

.mobile-nav-toggle {
  border: 1px solid rgba(204, 255, 0, 0.24);
  border-radius: 10px;
  background: rgba(204, 255, 0, 0.08);
  color: var(--text-main);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 10px;
  place-items: center;
  gap: 4px;
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(3, 7, 12, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 39;
  width: min(86vw, 340px);
  border-left: 1px solid rgba(204, 255, 0, 0.18);
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.98), rgba(8, 11, 16, 0.98));
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.42);
  color: var(--text-main);
  padding: 18px;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.mobile-nav-drawer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}

.mobile-nav-close {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-subtle);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 10px;
}

.mobile-nav-links {
  display: grid;
  gap: 8px;
  padding-top: 16px;
}

.mobile-nav-links a,
.mobile-nav-link {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 12px;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible,
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.mobile-nav-close:hover,
.mobile-nav-close:focus-visible,
.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
  border-color: rgba(204, 255, 0, 0.48);
  background: rgba(204, 255, 0, 0.1);
  color: var(--accent);
  outline: none;
}

body.mobile-nav-open {
  overflow: hidden;
}

body.mobile-nav-open .mobile-nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.mobile-nav-open .mobile-nav-drawer {
  transform: translateX(0);
}

.layout {
  max-width: 1160px;
  margin: 14px auto 36px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

/* `/subscriptions` is a destination, not an in-page landing anchor. Keep plans
   above account and download content so late font/auth layout cannot strand the
   user in the middle of the landing page. */
html[data-pp-route="/subscriptions"] .hero {
  display: none;
}

html[data-pp-route="/subscriptions"] .subscriptions {
  order: -2;
}

html[data-pp-route="/subscriptions"] .auth {
  order: -1;
}

.card {
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(180deg, rgba(20, 25, 35, 0.98), rgba(14, 18, 26, 0.96));
  box-shadow: var(--shadow-card);
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  animation: fade-rise 0.56s ease backwards;
}

body.is-signed-in .hero {
  grid-column: span 12;
}

body.is-signed-in .auth {
  display: none;
}

body.is-auth-hydrating .auth .tabs,
body.is-auth-hydrating .auth form,
body.is-auth-hydrating .auth .auth-tools,
body.is-auth-hydrating .auth .auth-hint {
  display: none;
}

/* Hide hero content during auth hydration to prevent flash of wrong state */
body.is-auth-hydrating .hero .hero-copy,
body.is-auth-hydrating .hero .hero-layout,
body.is-auth-hydrating .hero .hero-cta,
body.is-auth-hydrating .hero .eyebrow,
body.is-auth-hydrating .hero h1,
body.is-auth-hydrating .hero .lead,
body.is-auth-hydrating .hero-layout {
  visibility: hidden;
}

body.is-auth-hydrating .hero::after {
  content: "Loading your account...";
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(204, 255, 0, 0.08), transparent 70%),
    rgba(248, 250, 252, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 16px;
}

/* Hide header CTA button during auth hydration */
body.is-auth-hydrating .header-cta {
  visibility: hidden;
}

body.is-auth-hydrating .auth::after,
body.is-auth-hydrating #category-grid:empty::before {
  content: "Loading...";
  display: block;
  margin-top: 16px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.06);
  color: var(--text-muted);
  padding: 16px;
}

body.is-auth-hydrating #category-grid:empty::before {
  content: "Loading categories...";
  grid-column: 1 / -1;
  margin-top: 0;
}

@media (min-width: 761px) {
  body.is-auth-hydrating .subscriptions {
    min-height: 180px;
  }

  body.is-auth-hydrating.is-subscriptions-route .subscription-plan-surface {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  body.is-auth-hydrating:not(.is-subscriptions-route) .subscription-plan-surface,
  body.is-auth-hydrating #category-grid,
  body.is-auth-hydrating #recurring-status-surface {
    display: none;
  }

  body.is-auth-hydrating .subscriptions::after {
    content: "Loading your tips...";
    display: flex;
    align-items: flex-start;
    min-height: 126px;
    margin-top: 16px;
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: var(--radius-md);
    background:
      linear-gradient(90deg, rgba(204, 255, 0, 0.12), rgba(255, 255, 255, 0.05), rgba(204, 255, 0, 0.08)) 18px 58px / 42% 14px no-repeat,
      linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)) 18px 86px / 64% 12px no-repeat,
      rgba(248, 250, 252, 0.045);
    color: var(--text-subtle);
    font-weight: 800;
    padding: 16px;
  }
}

body.is-auth-hydrating .verify-actions {
  visibility: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(204, 255, 0, 0.36), transparent);
}

.hero {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Smooth fade-in after auth hydration completes */
body:not(.is-auth-hydrating) .hero-copy,
body:not(.is-auth-hydrating) .hero-layout,
body:not(.is-auth-hydrating) .tips-hero-copy,
body:not(.is-auth-hydrating) .tips-hero-aside,
body:not(.is-auth-hydrating) .hero-cta,
body:not(.is-auth-hydrating) .header-cta {
  animation: pp-fade-in 0.35s ease-out both;
}

@keyframes pp-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscriptions,
.tips,
.downloads {
  grid-column: span 12;
}

.hero.card {
  animation-delay: 0.08s;
}

.auth.card {
  animation-delay: 0.16s;
}

.subscriptions.card {
  animation-delay: 0.22s;
}

.tips.card {
  animation-delay: 0.28s;
}

.downloads.card {
  animation-delay: 0.34s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  background: rgba(204, 255, 0, 0.12);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

h1,
.card-title,
.tip-title,
.category-name {
  font-family: var(--font-display);
}

.card-title,
.category-name,
.category-price,
.category-description,
.tip-title,
.tip-match,
.tip-analysis,
.tip-stat strong,
.download-note,
.account-meta,
.toast {
  overflow-wrap: anywhere;
}

h2.card-title {
  margin: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  color: var(--text-subtle);
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.6;
}

.hero-layout,
.tips-hero-layout,
.download-shell,
.section-header {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.hero-layout,
.tips-hero-layout,
.download-shell {
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.95fr);
  align-items: stretch;
}

.hero-copy,
.tips-hero-copy,
.download-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.hero-preview,
.tips-hero-aside,
.download-rail {
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius-lg) - 2px);
  background: linear-gradient(180deg, rgba(11, 15, 22, 0.98), rgba(18, 22, 31, 0.96));
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.preview-status,
.hero-aside-chip {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  background: rgba(204, 255, 0, 0.12);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.hero-preview strong,
.tips-hero-aside strong,
.download-rail strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  color: var(--text-main);
}

.hero-preview p,
.tips-hero-aside p,
.download-rail p {
  margin: 10px 0 0;
  color: var(--text-subtle);
}

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

.preview-stat,
.preview-step,
.section-note,
.download-note {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.preview-stat {
  padding: 13px 14px;
}

.preview-stat span,
.preview-step span {
  display: block;
  color: var(--text-faint);
  font-size: 0.73rem;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.preview-stat strong {
  margin-top: 6px;
  color: var(--text-main);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.preview-flow {
  display: grid;
  gap: 10px;
}

.preview-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
}

.preview-step::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.preview-step strong,
.preview-step p {
  margin: 0;
}

.preview-step p {
  margin-top: 4px;
  color: var(--text-subtle);
  font-size: 0.88rem;
  line-height: 1.4;
}

.section-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.section-header .card-title {
  margin-bottom: 0;
  font-size: 1.18rem;
}

.section-note {
  margin: 0;
  padding: 12px 14px;
  color: var(--text-subtle);
  font-size: 0.92rem;
}

.section-note.compact-note {
  max-width: 34rem;
}

.hero-cta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-signals {
  margin-top: 2px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.is-signed-in .hero-layout {
  grid-template-columns: 1fr;
}

body.is-signed-in .hero-preview,
body.is-signed-in .hero-signals {
  display: none;
}

.signal-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  padding: 13px 14px;
}

.signal-item strong {
  display: block;
  margin-top: 5px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.signal-label {
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-faint);
}

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

.trust-item {
  border: 1px solid rgba(204, 255, 0, 0.16);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(204, 255, 0, 0.08), rgba(255, 255, 255, 0.03));
  padding: 14px;
}

.trust-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.trust-item strong {
  display: block;
  color: var(--text-main);
  font-size: 0.88rem;
  line-height: 1.45;
}

.service-clarity {
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.service-clarity h2 {
  margin: 10px 0 8px;
  color: var(--text-main);
  font-size: 1.2rem;
  line-height: 1.25;
}

.service-clarity p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.92rem;
  line-height: 1.55;
}

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

.clarity-list li {
  border: 1px solid rgba(204, 255, 0, 0.13);
  border-radius: var(--radius-md);
  background: rgba(204, 255, 0, 0.055);
  color: var(--text-subtle);
  padding: 11px 12px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.subscription-confidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 14px;
}

.subscription-confidence p {
  margin: 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.subscription-confidence p {
  padding: 13px 14px;
}

.subscription-confidence strong {
  display: block;
  color: var(--text-main);
  font-size: 0.86rem;
  margin-bottom: 5px;
}

.subscription-confidence span {
  display: block;
  color: var(--text-subtle);
  font-size: 0.84rem;
  line-height: 1.45;
}

.compact {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.card-title {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--text-subtle);
  font: inherit;
  font-size: 0.84rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--text-main);
}

.auth-hint {
  margin: 0;
  font-size: 0.82rem;
}

.auth-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--text-subtle);
  font-size: 0.84rem;
  line-height: 1.45;
}

.auth-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.auth-consent a {
  color: var(--accent);
  font-weight: 800;
}

.terms-acceptance-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(5, 8, 13, 0.72);
  backdrop-filter: blur(10px);
}

.terms-acceptance-dialog {
  width: min(100%, 460px);
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(20, 26, 37, 0.98), rgba(12, 16, 23, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.terms-acceptance-dialog h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.25;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-top: 4px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.btn-google {
  width: 100%;
  gap: 12px;
}

.btn-google::before {
  content: "G";
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tabs {
  display: inline-flex;
  margin: 8px 0 14px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  overflow: hidden;
}

.tab {
  border: 0;
  background: transparent;
  color: var(--text-subtle);
  padding: 10px 16px;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab.active {
  color: var(--primaryDark, #0f1115);
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 20px rgba(204, 255, 0, 0.18);
}

.input {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-radius: 14px;
  padding: 13px 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 48px;
}

.input::placeholder {
  color: var(--text-faint);
}

.input:focus,
.skip-link:focus-visible,
.tab:focus-visible,
.btn:focus-visible,
.top-nav a:focus-visible,
.text-link:focus-visible,
.tips-category-btn:focus-visible,
.tips-page-chip:focus-visible,
.tips-page-chip:focus-within,
.plan-option:focus-visible,
.category-card--interactive:focus-visible {
  outline: 2px solid rgba(204, 255, 0, 0.7);
  outline-offset: 3px;
}

.input:focus {
  border-color: rgba(204, 255, 0, 0.32);
  box-shadow: 0 0 0 4px rgba(204, 255, 0, 0.08);
  transform: translateY(-1px);
}

.input--invalid {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(248, 113, 113, 0.07);
}

.input--invalid:focus {
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.field-error {
  margin: -6px 0 2px;
  color: #fecaca;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.auth-message {
  margin: 0 0 2px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.auth-message--error {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.auth-message--success {
  border-color: rgba(204, 255, 0, 0.28);
  background: rgba(204, 255, 0, 0.1);
  color: var(--accent);
}

.auth-message--info {
  border-color: rgba(204, 255, 0, 0.18);
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.btn-primary {
  color: var(--bg);
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: 0 4px 20px rgba(204, 255, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(204, 255, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  border-radius: inherit;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(204, 255, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #d4ff0a, #b8e600);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(204, 255, 0, 0.2);
}

/* Unlock CTA – extra prominence */
.unlock-btn {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 14px;
  letter-spacing: 0.02em;
  animation: unlock-pulse 2.4s ease-in-out infinite;
}

@keyframes unlock-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(204, 255, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 6px 32px rgba(204, 255, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35); }
}

.unlock-btn:hover {
  animation: none;
}

.btn-secondary {
  color: var(--text-main);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn-ghost {
  color: var(--accent);
  border: 1px solid rgba(204, 255, 0, 0.3);
  background: rgba(204, 255, 0, 0.08);
}

.muted {
  color: var(--text-subtle);
}

.hidden {
  display: none !important;
}

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr));
  grid-auto-rows: auto;
  align-items: start;
  gap: 14px;
}

.category-access-lock {
  grid-column: 1 / -1;
  margin-top: 14px;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(19, 24, 35, 0.98), rgba(14, 18, 26, 0.96));
  box-shadow: var(--shadow-soft);
}

.category-access-lock__eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.category-access-lock h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.category-access-lock p {
  margin: 10px 0 0;
  color: var(--text-subtle);
  max-width: 52ch;
}

.website-plan-preview {
  margin-top: 16px;
  border: 1px solid rgba(204, 255, 0, 0.16);
  border-radius: var(--radius-md);
  background: rgba(204, 255, 0, 0.055);
  padding: 14px;
}

.website-plan-preview--stable {
  grid-column: 1 / -1;
}

/* The guest checkout preview is injected directly into the category grid after
   the account prompt. Keep that one preview on its own row instead of letting
   an auto-fit category column squeeze the plans on wider screens. */
#category-grid > .website-plan-preview {
  grid-column: 1 / -1;
  min-width: 0;
}

.website-plan-preview--contextual {
  border-color: rgba(204, 255, 0, 0.42);
  background: rgba(204, 255, 0, 0.085);
}

.website-plan-preview__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.website-plan-preview__top strong,
.website-plan-name,
.website-plan-price {
  display: block;
  color: var(--text-main);
}

.website-plan-preview__top span {
  color: var(--text-subtle);
  font-size: 0.84rem;
  text-align: right;
}

.website-plan-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.website-plan-row {
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.46);
  padding: 11px;
  min-width: 0;
}

.website-plan-row--selected {
  border-color: rgba(204, 255, 0, 0.58);
  background: rgba(204, 255, 0, 0.11);
  box-shadow: 0 0 0 1px rgba(204, 255, 0, 0.12);
}

.website-plan-name {
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 800;
}

.website-plan-selected-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  border: 1px solid rgba(204, 255, 0, 0.36);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.website-plan-price {
  color: var(--text-subtle);
  font-size: 0.78rem;
  line-height: 1.45;
}

.website-plan-price + .website-plan-price {
  margin-top: 4px;
}

.website-plan-price small {
  color: var(--text-faint);
}

.website-plan-preview__cta {
  margin-top: 14px;
}

.category-load-panel,
.category-load-banner {
  grid-column: 1 / -1;
  border: 1px solid rgba(204, 255, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-subtle);
}

.category-load-panel {
  padding: 18px;
}

.category-load-panel h3 {
  margin: 4px 0 8px;
  color: var(--text-main);
  font-size: 1.05rem;
}

.category-load-panel p {
  margin: 0 0 14px;
}

.category-load-banner {
  padding: 11px 13px;
  font-size: 0.86rem;
}

.category-card {
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(19, 24, 35, 0.98), rgba(14, 18, 26, 0.96));
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
  min-height: 276px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform: translateY(0);
  will-change: transform, box-shadow;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(204, 255, 0, 0.78), rgba(204, 255, 0, 0.08));
  opacity: 0.28;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.16), transparent 38%, rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.category-card--vip::after {
  opacity: 0.45;
}

.category-card--expired {
  border-color: rgba(248, 113, 113, 0.24);
}

.category-card--expired::after {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.72), rgba(248, 113, 113, 0.08));
}

.category-card--attention {
  border-color: rgba(204, 255, 0, 0.58);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(204, 255, 0, 0.2),
    0 0 28px rgba(204, 255, 0, 0.12);
}

.category-card--interactive:hover,
.category-card--interactive:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(204, 255, 0, 0.3);
  background: linear-gradient(180deg, rgba(20, 26, 36, 0.99), rgba(14, 18, 26, 0.98));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(204, 255, 0, 0.08),
    0 0 24px rgba(204, 255, 0, 0.08);
}

.category-card--interactive:active,
.plan-option:active,
.tips-category-btn:active,
.tips-page-chip:active {
  transform: translateY(0);
}

.category-card--interactive:focus-visible {
  outline: 2px solid rgba(204, 255, 0, 0.75);
  outline-offset: 3px;
}

.category-card--interactive:hover::before,
.category-card--interactive:focus-visible::before {
  opacity: 0.14;
}

.category-card--interactive:hover::after,
.category-card--interactive:focus-visible::after {
  opacity: 0.5;
}

.category-card--interactive:hover .category-price,
.category-card--interactive:focus-visible .category-price {
  color: var(--accent);
}

.category-card--interactive:hover .pill,
.category-card--interactive:focus-visible .pill {
  transform: translateY(-1px);
}

.category-card--interactive:hover .category-name,
.category-card--interactive:focus-visible .category-name,
.category-card--interactive:hover .category-description,
.category-card--interactive:focus-visible .category-description,
.category-card--interactive:hover .category-card__meta strong,
.category-card--interactive:focus-visible .category-card__meta strong,
.category-card--interactive:hover .category-card__meta,
.category-card--interactive:focus-visible .category-card__meta {
  color: var(--text-main);
}

.category-card--interactive:hover .pill.free,
.category-card--interactive:focus-visible .pill.free,
.category-card--interactive:hover .pill.vip,
.category-card--interactive:focus-visible .pill.vip {
  background: rgba(204, 255, 0, 0.16);
  color: var(--accent);
}

.category-card--interactive:hover .category-card__top,
.category-card--interactive:focus-visible .category-card__top,
.category-card--interactive:hover .category-card__meta,
.category-card--interactive:focus-visible .category-card__meta {
  position: relative;
  z-index: 1;
}

.category-card__top,
.tip-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.category-price {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-align: right;
  max-width: 48%;
}

.category-description {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.92rem;
  line-height: 1.5;
}

.category-plan-options {
  display: grid;
  gap: 8px;
  margin-top: auto;
  position: relative;
  z-index: 1;
  min-height: 112px;
  align-content: end;
}

.plan-option {
  border: 1px solid rgba(204, 255, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  text-align: left;
  text-decoration: none;
  font: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.plan-option > span {
  flex: 1 1 auto;
  min-width: 0;
}

.plan-option:hover,
.plan-option:focus-visible,
.plan-option.is-busy {
  border-color: rgba(204, 255, 0, 0.52);
  background: rgba(204, 255, 0, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.plan-option.is-busy {
  cursor: wait;
}

.plan-option strong,
.plan-option small,
.plan-option em {
  display: block;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.plan-option strong {
  font-size: 0.92rem;
}

.plan-option small {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 0.74rem;
}

.plan-option em {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.plan-option-wrap {
  display: grid;
  gap: 8px;
}

.auto-renew-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.76rem;
  line-height: 1.35;
}

.auto-renew-option input {
  margin-top: 2px;
}

.recurring-status-surface {
  grid-column: 1 / -1;
}

.recurring-status-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.68);
}

.recurring-status-panel strong,
.recurring-status-row strong {
  color: var(--text-main);
}

.recurring-status-panel span,
.recurring-status-row small {
  display: block;
  color: var(--text-faint);
}

.recurring-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--card-border);
}

.category-plan-note,
.category-card__entitlement {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.78rem;
}

.category-card__meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.category-card__meta strong {
  color: var(--text-main);
  font-size: 0.88rem;
}

.category-card .btn {
  margin-top: auto;
  align-self: stretch;
}

.tips-category-grid {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tips-category-btn {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  min-height: 44px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.tips-category-btn:hover,
.tips-category-btn:focus-visible {
  border-color: rgba(204, 255, 0, 0.3);
  transform: translateY(-1px);
}

.tips-category-btn.active {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: var(--bg);
  box-shadow: 0 12px 22px rgba(204, 255, 0, 0.16);
}

.tips-category-btn.locked {
  border-style: dashed;
  opacity: 0.82;
}

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

.tips-layout {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.tips-hero,
.tips-page-shell {
  grid-column: span 12;
}

.tips-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tips-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.95fr);
  gap: 16px;
}

.tips-hero-copy,
.download-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tips-hero-aside,
.download-rail {
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius-lg) - 2px);
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.98), rgba(17, 21, 30, 0.96));
  padding: 18px;
}

.tips-page-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tips-page-shell .muted {
  margin-bottom: 0;
}

.tips-page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
}

.tips-page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.tips-page-category-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  grid-auto-rows: auto;
  gap: 16px;
  align-items: start;
  min-width: 0;
  width: 100%;
}

.tips-page-chip {
  border: 1px solid rgba(204, 255, 0, 0.16);
  background:
    linear-gradient(145deg, rgba(23, 31, 44, 0.98), rgba(12, 16, 24, 0.98)),
    linear-gradient(90deg, rgba(204, 255, 0, 0.1), transparent);
  color: var(--text-main);
  border-radius: 14px;
  padding: 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: default;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 252px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 12px 14px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tips-page-chip::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.45;
}

.tips-page-chip::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(204, 255, 0, 0.05));
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.tips-page-chip:hover,
.tips-page-chip:focus-within {
  border-color: rgba(204, 255, 0, 0.42);
  transform: translateY(-4px);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(204, 255, 0, 0.08);
  outline: none;
}

.tips-page-chip:hover::after,
.tips-page-chip:focus-within::after {
  opacity: 1;
}

.tips-page-chip.active {
  border-color: rgba(204, 255, 0, 0.56);
  background:
    linear-gradient(145deg, rgba(31, 41, 55, 0.98), rgba(15, 20, 29, 0.98)),
    linear-gradient(90deg, rgba(204, 255, 0, 0.16), transparent);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(204, 255, 0, 0.12);
}

.tips-page-chip.locked {
  border-style: solid;
  background:
    linear-gradient(145deg, rgba(20, 24, 32, 0.98), rgba(12, 15, 22, 0.98)),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08), transparent);
}

.tips-page-chip__mark {
  width: 54px;
  min-height: 68px;
  border: 1px solid rgba(204, 255, 0, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(204, 255, 0, 0.14), rgba(255, 255, 255, 0.04));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  position: relative;
  z-index: 1;
}

.tips-page-chip__mark span {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.tips-page-chip__mark small {
  color: var(--text-faint);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.tips-page-chip__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  min-height: 86px;
  position: relative;
  z-index: 1;
}

.tips-page-chip__eyebrow {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.tips-page-chip__title {
  color: var(--text-main);
  display: -webkit-box;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
}

.tips-page-chip__description {
  color: var(--text-subtle);
  display: -webkit-box;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
}

.tips-page-chip__side {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.tips-page-chip__meta {
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  padding: 8px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.tips-page-chip__open {
  border: 1px solid rgba(204, 255, 0, 0.28);
  border-radius: 999px;
  background: rgba(204, 255, 0, 0.08);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 8px 11px;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.tips-page-chip__open:hover,
.tips-page-chip__open:focus-visible {
  border-color: rgba(204, 255, 0, 0.54);
  background: rgba(204, 255, 0, 0.16);
  color: var(--accent);
  outline: none;
}

.tips-page-chip__meta.free,
.tips-page-chip__meta.open {
  background: rgba(204, 255, 0, 0.12);
  color: var(--accent);
}

.tips-page-chip__meta.locked {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-subtle);
}

.tips-page-chip__plans {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
  min-width: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.tips-page-chip__plans .plan-option {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 9px 10px;
}

.tips-page-chip__plans .plan-option small {
  margin-top: 1px;
}

.tips-page-chip__plans .plan-option em {
  text-align: left;
}

#category-grid .category-card.tips-page-chip {
  min-height: 276px;
}

#category-grid .category-card.tips-page-chip:not(.locked) {
  min-height: 236px;
}

#category-grid .tips-page-chip__content {
  min-height: 82px;
}

#category-grid .category-card__entitlement {
  -webkit-line-clamp: 1;
}

#category-grid .category-plan-options.tips-page-chip__plans {
  min-height: 124px;
}

#category-grid .tips-page-chip__plans .plan-option strong {
  font-size: 0.84rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

#category-grid .tips-page-chip__plans .plan-option small,
#category-grid .tips-page-chip__plans .plan-option em {
  font-size: 0.68rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tips-page-message-link {
  color: var(--accent);
  font-weight: 800;
}

.tips-page-shell #tips-page-message {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
}

.tips-hero-aside .btn {
  margin-top: auto;
  width: fit-content;
}

.tips-empty-state {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(19, 24, 35, 0.98), rgba(12, 16, 24, 0.96));
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tips-empty-state p {
  margin: 0;
  color: var(--text-subtle);
}

.tips-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.category-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.pill {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.pill.free {
  background: rgba(204, 255, 0, 0.12);
  color: var(--free);
}

.pill.vip {
  background: rgba(168, 255, 87, 0.14);
  color: var(--vip);
}

.tip-header__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pill.result-showcase {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
}

.pill.expired {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

.tip-item {
  border: 1px solid rgba(204, 255, 0, 0.16);
  background:
    linear-gradient(180deg, rgba(20, 26, 38, 0.98), rgba(10, 14, 22, 0.98)),
    linear-gradient(90deg, rgba(204, 255, 0, 0.08), transparent);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.tip-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(204, 255, 0, 0.08));
  opacity: 0.54;
}

.tip-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(204, 255, 0, 0.08), transparent 35%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.04), transparent 42%);
  pointer-events: none;
  opacity: 0.78;
}

.tip-header {
  align-items: start;
  position: relative;
  z-index: 1;
}

.tip-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
}

.tip-kicker {
  margin: 0 0 4px;
  color: var(--text-faint);
  font-size: 0.74rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tip-match {
  margin: 7px 0 0;
  color: var(--text-subtle);
  font-size: 0.88rem;
  font-weight: 600;
}

.tip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(120px, 0.7fr));
  gap: 10px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.tip-stat {
  border: 1px solid rgba(204, 255, 0, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  min-height: 74px;
  padding: 13px 14px;
}

.tip-stat--primary {
  background: rgba(204, 255, 0, 0.08);
  border-color: rgba(204, 255, 0, 0.24);
}

.tip-stat span {
  display: block;
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tip-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--text-main);
  font-size: 0.94rem;
  line-height: 1.35;
}

.tip-stat--primary strong {
  color: var(--accent);
  font-size: 1.06rem;
}

.tip-stat--result strong {
  color: #bfdbfe;
}

.tip-stat--result-won strong {
  color: #86efac;
}

.tip-stat--result-lost strong {
  color: #fca5a5;
}

.tip-stat--result-void strong,
.tip-stat--result-push strong {
  color: #fde68a;
}

.tip-transparency {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.tip-transparency span {
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-subtle);
  padding: 7px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.tip-meta {
  margin: 6px 0;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.tip-item p {
  margin: 0;
}

.tip-analysis {
  margin-top: 14px !important;
  border-left: 3px solid rgba(204, 255, 0, 0.5);
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-subtle);
  font-size: 0.9rem;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.tip-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(204, 255, 0, 0.12);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.tip-footer strong {
  color: var(--accent);
}

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

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.download-note {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.account-meta {
  margin-top: 10px;
  border-top: 1px solid var(--card-border);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--card-border);
  margin: 10px auto 0;
  max-width: 1160px;
  padding: 18px 22px 30px;
  color: var(--text-faint);
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-subtle);
}

.site-footer .data-attribution {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-soft);
  color: var(--text-main);
  padding: 11px 14px;
  z-index: 30;
  backdrop-filter: blur(12px);
  max-width: min(420px, calc(100vw - 24px));
}

.loading-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  width: 100%;
}

.loading-state {
  display: grid;
  gap: 12px;
  width: 100%;
}

.loading-state__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--text-subtle);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.loading-state__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(204, 255, 0, 0.22);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: loading-spinner 0.82s linear infinite;
}

.loading-skeleton-card {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--surface-elevated);
  padding: 18px;
  min-height: 132px;
}

.loading-skeleton {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.18);
}

.loading-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(204, 255, 0, 0.16), transparent);
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.loading-skeleton-line {
  height: 12px;
  margin-bottom: 14px;
  width: 100%;
}

.loading-skeleton-line.short {
  width: 42%;
}

.loading-skeleton-line.muted {
  width: 72%;
  opacity: 0.72;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes loading-spinner {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-skeleton::after,
  .loading-state__spinner {
    animation: none;
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero,
  .auth,
  .subscriptions,
  .tips,
  .downloads {
    grid-column: span 12;
  }

  .hero-layout,
  .tips-hero-layout,
  .download-shell,
  .section-header {
    grid-template-columns: 1fr;
  }

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

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

  .header-tools {
    justify-content: flex-start;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .hero-preview {
    display: none;
  }

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

  .hero h1 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
  }
}

@media (max-width: 1024px) {
  #main-content,
  #auth,
  #subscriptions,
  #downloads,
  #tips-page-category-grid {
    scroll-margin-top: 88px;
  }

  .site-header {
    max-width: calc(100% - 24px);
    margin-inline: 12px;
    padding: 12px 14px;
    flex-direction: row;
    align-items: center;
    border-radius: 12px;
  }

  .brand-subtitle {
    display: none;
  }

  .header-tools {
    display: none;
  }

  .mobile-nav-toggle {
    display: grid;
    margin-left: auto;
  }

  .mobile-nav-overlay {
    display: block;
  }

  .mobile-nav-drawer {
    display: block;
  }

  .page-shortcuts {
    position: sticky;
    top: 8px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(calc(100% - 24px), 1160px);
    margin: 10px auto 0;
    padding: 8px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(14, 18, 26, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
  }

  .page-shortcuts a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 8px;
    background: rgba(204, 255, 0, 0.08);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }

  .page-shortcuts a:hover,
  .page-shortcuts a:focus-visible {
    border-color: rgba(204, 255, 0, 0.52);
    background: rgba(204, 255, 0, 0.16);
    color: var(--accent);
    outline: none;
  }

  .hero-preview,
  .hero-signals,
  .tips-hero-aside {
    display: none;
  }

  .hero-copy {
    gap: 8px;
  }

  .hero-copy .lead {
    font-size: 0.98rem;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero-cta .btn {
    min-width: 0;
    justify-content: center;
  }

  .account-meta {
    display: none !important;
  }

  .tips-page-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
  }

  .tips-page-toolbar .muted {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tips-page-actions {
    display: flex;
    justify-content: flex-end;
    width: auto;
  }

  .tips-page-actions .btn:not(#tips-page-nav-link) {
    display: none;
  }

  #tips-page-nav-link {
    min-height: 40px;
    padding: 8px 10px;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .site-header {
    margin-inline: 12px;
    padding: 12px 14px;
    flex-direction: row;
    align-items: center;
    border-radius: 12px;
  }

  .layout {
    padding-inline: 12px;
    margin-top: 10px;
  }

  .brand-subtitle {
    display: none;
  }

  .header-tools {
    display: none;
  }

  .mobile-nav-toggle {
    display: grid;
    margin-left: auto;
  }

  .mobile-nav-overlay {
    display: block;
  }

  .mobile-nav-drawer {
    display: block;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    overflow: visible;
  }

  .top-nav a {
    justify-content: center;
    min-width: 0;
    padding-inline: 8px;
    text-align: center;
    white-space: normal;
    line-height: 1.18;
  }

  .header-cta,
  .btn.header-cta {
    align-self: flex-start;
    min-width: 112px;
  }

  .hero {
    padding: 18px;
  }

  .hero-preview,
  .hero-signals,
  .tips-hero-aside {
    display: none;
  }

  .hero-copy {
    gap: 8px;
  }

  .hero-copy .lead {
    font-size: 0.98rem;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-cta .btn {
    justify-content: center;
    min-width: 0;
  }

  .tips-hero {
    padding: 18px;
  }

  .hero-signals,
  .trust-strip,
  .service-clarity,
  .subscription-confidence {
    grid-template-columns: 1fr;
  }

  .download-buttons {
    width: 100%;
  }

  .download-buttons .btn {
    width: 100%;
  }

  .tips-page-actions {
    width: 100%;
  }

  .tips-page-toolbar {
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
  }

  .tips-page-toolbar .muted {
    font-size: 0.78rem;
  }

  .tips-page-actions {
    justify-content: flex-start;
  }

  .tips-page-actions .btn:not(#tips-page-nav-link) {
    display: none;
  }

  .tips-page-category-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .tips-page-chip {
    min-height: 0;
  }

  .tips-page-chip__plans {
    grid-template-columns: 1fr;
  }

  .tips-page-actions .btn {
    flex: 1;
    min-width: 140px;
  }

  .tips-page-toolbar,
  .section-header,
  .category-card__top,
  .category-card__meta,
  .tip-header,
  .website-plan-preview__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .website-plan-preview__top span {
    text-align: left;
  }

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

  .category-card__meta {
    width: 100%;
  }

  .category-card {
    min-height: auto;
    padding: 16px;
  }

  .category-price {
    max-width: 100%;
    text-align: left;
  }

  .plan-option {
    align-items: flex-start;
  }

  .auth-message {
    font-size: 0.84rem;
  }

  .tip-item {
    padding: 16px;
  }

  .tip-stat {
    min-height: 0;
  }

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

  .download-actions,
  .download-buttons,
  .tips-empty-actions {
    width: 100%;
  }

  .download-actions .btn,
  .download-buttons .btn,
  .tips-empty-actions .btn {
    width: 100%;
  }

  .site-footer {
    margin-inline: 12px;
    padding-inline: 14px;
    flex-direction: column;
  }

  .account-meta {
    display: none !important;
  }

  .tips-page-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
  }

  .tips-page-toolbar .muted {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tips-page-actions {
    display: flex;
    justify-content: flex-end;
    width: auto;
  }

  .tips-page-actions .btn:not(#tips-page-nav-link) {
    display: none;
  }

  #tips-page-nav-link {
    min-height: 40px;
    padding: 8px 10px;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .site-header {
    margin-inline: 8px;
    padding: 12px;
  }

  .layout {
    padding-inline: 8px;
    gap: 12px;
  }

  .page-shortcuts {
    width: calc(100% - 16px);
    margin-top: 8px;
    gap: 6px;
    padding: 6px;
  }

  .page-shortcuts a {
    padding-inline: 5px;
    font-size: 0.74rem;
  }

  .card,
  .hero,
  .tips-hero {
    padding: 16px;
  }

  h1 {
    font-size: 1.7rem;
    line-height: 1.1;
  }

  .hero-cta,
  .tips-page-actions,
  .download-actions,
  .tips-empty-actions {
    gap: 8px;
  }

  .hero-cta .btn,
  .tips-page-actions .btn,
  .download-actions .btn,
  .tips-empty-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .grid,
  .loading-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .tips-page-chip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tips-page-chip__mark {
    width: 48px;
    min-height: 48px;
  }

  .tips-page-chip__side,
  .plan-option {
    align-items: flex-start;
    flex-direction: column;
  }

  .tip-title {
    font-size: 1.05rem;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 760px) {
  #category-grid .tips-page-chip__plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  #category-grid .tips-page-chip__side {
    align-items: center;
    flex-direction: row;
  }

  #category-grid .tips-page-chip__plans {
    grid-template-columns: 1fr;
  }

  #category-grid .tips-page-chip__plans .plan-option {
    min-height: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
