/* ============================================================
   tip-detail.css — v3.14.58.12 (2026-05-30)
   Full v2 redesign — promoted from preview, now applied to all 30 tips.

   Structure:
     header.page-header                (universal nav)
     main.tip-shell
       div.tip-hero                    (image + overlay with meta top, content bottom)
       aside.tip-disclaimer            (compact glass + green outline)
       div.tip-grid                    (2-col: left article, right sticky sidebar)
         article.tip-main
           div.tip-content-card        (liquid glass wrapper)
             div.tip-tldr              (blue clock icon + inline strong)
             div.tip-body
               h2 + p prose
               div.tip-howto           (blue callout)
               div.tip-protip          (amber callout)
               aside.tip-callout--*    (legacy body callouts aliased to v2 look)
             section.tip-sources
         aside.tip-side                (sticky sidebar)
           div.tip-side-card           (Why this matters)
       nav.tip-pn-nav                  (prev/next pills)
       section.tip-related             (related-tips grid)
     footer.page-footer
============================================================ */

/* ---------- Universal resets (mirror tips.html for parity) ---------- */
* { box-sizing: border-box; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 5px; }
*::-webkit-scrollbar-track { background: transparent; }

:root {
  --tip-ink: #0F172A;
  --tip-ink-soft: #1f2937;
  --tip-ink-muted: #475569;
  --tip-line: #E5E7EB;
  --tip-line-soft: #F3F4F6;
  --tip-accent: #2563EB;
  --tip-accent-soft: #DBEAFE;
  --tip-accent-strong: #1D4ED8;
  --ink: #0F172A;
  --muted: #475569;
  --line: #E5E7EB;
  --panel: #ffffff;
  --accent: #2563EB;
  --accent-soft: #DBEAFE;
  --bg: #FBF9F3;

  /* Shared liquid-glass tokens used by every card on the page */
  --glass-bg: linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.42) 100%);
  --glass-border: 1px solid rgba(255,255,255,0.55);
  --glass-blur: blur(28px) saturate(180%);
  --glass-shadow:
    inset 1.5px 1.5px 0 rgba(255, 252, 245, 0.65),
    inset -1.5px -1.5px 0 rgba(0, 5, 15, 0.04),
    0 12px 32px rgba(20, 16, 5, 0.08);
}

html { background: var(--bg); }
html, body {
  margin: 0; padding: 0; min-height: 100vh;
  color: var(--tip-ink);
  font: 16px/1.6 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body { background: transparent; }
#mBgFixed { display: none; }

.tip-shell { max-width: 1180px; margin: 8px auto 60px; padding: 0 24px; }

/* ===== Hero: taller, meta top, content bottom, capped to ~48% of width ===== */
.tip-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
  margin-bottom: 24px;
}
.tip-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.tip-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.35) 0%,
      rgba(0,0,0,0.05) 28%,
      rgba(0,0,0,0.10) 55%,
      rgba(0,0,0,0.65) 100%);
  padding: 28px 52px 36px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}
.tip-hero-top {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.tip-hero-pill {
  background: #ffffff;
  color: var(--tip-accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.tip-hero-date {
  color: rgba(255,255,255,0.92);
  font-size: 13px;
}
.tip-hero-date::before {
  content: "•  "; color: rgba(255,255,255,0.7);
}
.tip-hero-bottom {
  max-width: 48%;
  display: flex; flex-direction: column;
}
.tip-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 44px; font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.tip-hero-sub {
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0 0 22px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.tip-hero-cta {
  display: inline-flex; align-self: flex-start;
  background: linear-gradient(180deg, #4d9aff 0%, var(--tip-accent) 100%);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600; font-size: 14.5px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform .12s ease, box-shadow .12s ease;
}
.tip-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45); }

/* ===== Compact disclaimer ===== */
.tip-disclaimer {
  display: flex; gap: 14px; align-items: center;
  background: var(--glass-bg);
  border: 1px solid rgba(110, 231, 183, 0.50);
  border-radius: 14px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  padding: 12px 18px;
  margin-bottom: 26px;
}
.tip-disclaimer-icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  background: rgba(236, 253, 245, 0.85);
  border: 1px solid #A7F3D0;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #047857;
}
.tip-disclaimer-icon svg { width: 20px; height: 20px; }
.tip-disclaimer-text {
  font-size: 13.5px; line-height: 1.5;
  color: var(--tip-ink);
}
.tip-disclaimer-text strong {
  color: #047857; font-weight: 700;
  margin-right: 4px;
}

/* ===== Two-column layout (sidebar sticky) ===== */
.tip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.tip-main { min-width: 0; }
.tip-side { position: sticky; top: 18px; }

/* ===== Main content card (liquid glass) ===== */
.tip-content-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 20px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  padding: 26px 30px 30px;
}

/* ===== TL;DR card ===== */
.tip-tldr {
  display: flex; gap: 18px; align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(245,247,252,0.78) 100%);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 4px 12px rgba(15,23,42,0.04);
}
.tip-tldr-icon {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  background: linear-gradient(180deg, #4d9aff 0%, #3b7fef 100%);
  border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.tip-tldr-icon svg { width: 24px; height: 24px; }
.tip-tldr-body {
  font-size: 15px; line-height: 1.55;
  color: var(--tip-ink);
  margin: 0; flex: 1;
}
.tip-tldr-body strong {
  color: var(--tip-accent);
  font-weight: 800; font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
  margin-right: 10px;
  vertical-align: 1px;
}

/* ===== Article body — qualified with .tip-body to win specificity ===== */
.tip-body { color: var(--tip-ink); }
.tip-body h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.012em;
  margin: 32px 0 14px;
  color: var(--tip-ink);
}
.tip-body h2:first-child { margin-top: 4px; }
.tip-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px; font-weight: 700;
  margin: 22px 0 8px;
  color: var(--tip-ink-soft);
}
.tip-body p {
  font-size: 15px; line-height: 1.65;
  margin: 0 0 14px;
}
.tip-body ul, .tip-body ol { margin: 8px 0 18px; padding-left: 22px; }
.tip-body li { margin-bottom: 6px; }
.tip-body strong { font-weight: 700; color: var(--tip-ink); }
.tip-body em { font-style: italic; color: var(--tip-ink-soft); }
.tip-body a { color: var(--tip-accent); text-decoration: underline; text-underline-offset: 2px; }
.tip-body a:hover { color: var(--tip-accent-strong); }
.tip-body blockquote {
  border-left: 3px solid var(--tip-accent);
  padding: 4px 0 4px 16px;
  margin: 14px 0 18px;
  color: var(--tip-ink-soft);
  font-style: italic;
}
.tip-body code {
  background: var(--tip-line-soft);
  padding: 2px 6px; border-radius: 4px;
  font-family: 'JetBrains Mono','Menlo','Consolas',monospace;
  font-size: 0.92em;
}

/* ===== How-to-actually-do-it callout (blue) ===== */
.tip-howto {
  display: flex; gap: 16px; align-items: center;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.45) 0%, rgba(239, 246, 255, 0.30) 100%);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 16px;
  padding: 12px 20px;
  margin: 22px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.tip-howto-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  background: linear-gradient(180deg, #4d9aff 0%, #3b7fef 100%);
  color: #ffffff;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}
.tip-howto-icon svg { width: 24px; height: 24px; }
.tip-body .tip-howto-body {
  font-size: 14px;
  color: var(--tip-ink);
  line-height: 1.45;
  margin: 0; flex: 1;
}
.tip-body .tip-howto-body strong {
  color: var(--tip-accent);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: inherit;
  margin-right: 10px;
}

/* ===== Pro-tip callout (amber) ===== */
.tip-protip {
  display: flex; gap: 16px; align-items: center;
  background: var(--glass-bg);
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-radius: 16px;
  padding: 12px 20px;
  margin: 22px 0;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.tip-protip-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  background: linear-gradient(180deg, #FBBF24 0%, #D97706 100%);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.32);
}
.tip-protip-icon svg { width: 24px; height: 24px; }
.tip-body .tip-protip-body {
  font-size: 14px;
  color: var(--tip-ink);
  line-height: 1.45;
  margin: 0; flex: 1;
}
.tip-body .tip-protip-body strong {
  color: #B45309;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: inherit;
  margin-right: 10px;
}

/* ===== Legacy <aside class="tip-callout--*"> from existing body content
   alias to the new v2 callout look so we don't have to rewrite tip_content.py.
   --warning → red glass, --tip → blue/howto, --note → amber/pro-tip. ===== */
.tip-body .tip-callout {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: 16px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.5;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.tip-body .tip-callout p { margin: 0; flex: 1; font-size: 14px; line-height: 1.5; }
.tip-body .tip-callout-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: #ffffff;
}
.tip-body .tip-callout--warning {
  background: linear-gradient(180deg, rgba(254,242,242,0.62) 0%, rgba(254,226,226,0.42) 100%);
  border: 1px solid rgba(252, 165, 165, 0.55);
  color: #7f1d1d;
}
.tip-body .tip-callout--warning .tip-callout-icon {
  background: linear-gradient(180deg, #F87171 0%, #B91C1C 100%);
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.30);
}
.tip-body .tip-callout--tip {
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.45) 0%, rgba(239, 246, 255, 0.30) 100%);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--tip-ink);
}
.tip-body .tip-callout--tip .tip-callout-icon {
  background: linear-gradient(180deg, #4d9aff 0%, #3b7fef 100%);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.30);
}
.tip-body .tip-callout--note {
  background: var(--glass-bg);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: var(--tip-ink);
  box-shadow: var(--glass-shadow);
}
.tip-body .tip-callout--note .tip-callout-icon {
  background: linear-gradient(180deg, #FBBF24 0%, #D97706 100%);
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.32);
}

/* ===== Right sidebar (sticky) ===== */
.tip-side-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 20px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  padding: 24px;
}
.tip-side-head-title {
  color: var(--tip-accent);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 14px;
}
.tip-side-intro {
  font-size: 14px;
  line-height: 1.5;
  color: var(--tip-ink);
  margin: 0 0 16px;
}
.tip-side-item {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  align-items: flex-start;
}
.tip-side-item:first-of-type { border-top: none; padding-top: 4px; }
.tip-side-item-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(244,247,252,0.85) 100%);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--tip-accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.tip-side-item-icon svg { width: 22px; height: 22px; }
.tip-side-item-label {
  color: var(--tip-accent);
  font-weight: 700;
  font-size: 14px;
  margin: 2px 0 4px;
}
.tip-side-item-body {
  font-size: 13px;
  line-height: 1.45;
  color: var(--tip-ink-soft);
}
.tip-side-outro {
  font-size: 13px;
  line-height: 1.5;
  color: var(--tip-ink-soft);
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}

/* ===== Sources block ===== */
.tip-sources {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(229, 231, 235, 0.7);
}
.tip-sources h2,
.tip-sources h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--tip-ink-soft);
}
.tip-sources ol {
  margin: 0; padding-left: 22px;
  font-size: 13.5px;
  color: var(--tip-ink-muted);
}
.tip-sources li { margin-bottom: 4px; }
.tip-sources a { color: var(--tip-accent); }

/* ===== Prev / next pills ===== */
.tip-pn-nav {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(229, 231, 235, 0.7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tip-pn-card {
  display: block;
  padding: 16px 18px;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 14px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  text-decoration: none;
  color: var(--tip-ink-soft);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.tip-pn-card:hover {
  transform: translateY(-1px);
  border-color: var(--tip-accent-soft);
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.tip-pn-card--placeholder {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(229, 231, 235, 0.5);
  cursor: default;
}
.tip-pn-card--placeholder:hover {
  transform: none; box-shadow: none;
  border-color: rgba(229, 231, 235, 0.5);
}
.tip-pn-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tip-ink-muted);
  margin-bottom: 4px;
}
.tip-pn-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--tip-ink);
  line-height: 1.3;
}
/* v3.14.58.18: blue hover only on the "Previous tip" / "Next tip" label,
   not on the actual tip title — the title should stay readable as content. */
.tip-pn-label { transition: color .12s ease; }
.tip-pn-card:hover .tip-pn-label { color: var(--tip-accent); }
.tip-pn-card--placeholder:hover .tip-pn-label { color: inherit; }
.tip-pn-card--next { text-align: right; }

/* ===== Related grid ===== */
.tip-related {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(229, 231, 235, 0.7);
}
.tip-related h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 16px;
}
.tip-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tip-related-card {
  display: block;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--tip-ink-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform .12s ease, box-shadow .12s ease;
}
.tip-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15,23,42,0.08);
}
.tip-related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.tip-related-card-body { padding: 12px 14px; }
.tip-related-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--tip-ink);
  line-height: 1.3;
}

/* ===== Back CTA (bottom) ===== */
.tip-back-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 18px;
  background: var(--tip-accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background .12s ease;
}
.tip-back-cta:hover { background: var(--tip-accent-strong); }
.tip-back-cta-wrap { text-align: center; margin-top: 8px; }

/* ===== Page header nav (verbatim from tips.html for parity) ===== */
.page-header { position: static; max-width: 1428px; margin: 0 auto; padding: 14px 34px; background: transparent; }
.page-header .page-header-inner { display: flex; align-items: center; gap: 14px; width: 100%; }
.page-header .brand-tab { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); margin-right: auto; background: transparent; border: none; padding: 0; }
.page-header .brand-logo { height: 56px; width: auto; display: block; }
.page-header .page-tabs { display: inline-flex; align-items: center; gap: 8px; }
.page-header .page-tab { display: inline-flex; align-items: center; position: relative; }
.page-header .page-tab-segment { display: inline-flex; align-items: center; gap: 4px; background: rgba(225, 235, 248, 0.70); border-radius: 999px; padding: 5px; border: 1px solid rgba(255, 255, 255, 0.55); backdrop-filter: blur(28px) saturate(190%); -webkit-backdrop-filter: blur(28px) saturate(190%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.80), inset 0 -1px 0 rgba(0,5,15,0.04), 0 2px 6px rgba(0,0,0,0.08), 0 6px 16px rgba(0,0,0,0.10); }
.page-header .page-tab-segment .page-tab-link { display: inline-flex; align-items: center; gap: 9px; padding: 11px 26px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none; transition: background .15s ease, color .15s ease; }
.page-header .page-tab-segment .page-tab-link:not(.active) { color: #4a4a4a; background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(252,253,255,0.78) 100%); border: 1px solid rgba(0,0,0,0.05); box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 1px 2px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04); }
.page-header .page-tab-segment .page-tab-link:hover:not(.active) { color: #2a2a2a; background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(252,253,255,0.88) 100%); }
.page-header .page-tab-segment .page-tab-link.active { color: #ffffff; background: linear-gradient(180deg, #4d9aff 0%, #3b7fef 100%); border: 1px solid rgba(59,127,239,0.55); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(0,30,80,0.18), 0 2px 4px rgba(59,127,239,0.35), 0 4px 10px rgba(59,127,239,0.30); }
.page-header .page-tab-icon { width: 20px; height: 20px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.page-header .page-tab-icon svg { width: 100%; height: 100%; display: block; }

.auth-signin { font: inherit; font-weight: 400; font-size: 14px; color: #b0b0b0; background: linear-gradient(135deg, rgba(255,250,240,0.55) 0%, rgba(255,252,245,0.18) 28%, transparent 50%), linear-gradient(315deg, rgba(240,248,255,0.42) 0%, rgba(245,250,255,0.14) 28%, transparent 50%), linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(220,222,228,0.05) 45%, rgba(220,222,228,0.05) 55%, rgba(255,255,255,0.35) 100%), rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; padding: 10px 22px; backdrop-filter: blur(28px) saturate(190%); -webkit-backdrop-filter: blur(28px) saturate(190%); box-shadow: inset 1.5px 1.5px 0 rgba(255,252,245,0.95), inset -1.5px -1.5px 0 rgba(0,5,15,0.08), 0 1px 2px rgba(0,0,0,0.06), 0 2px 5px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,5,0.12); cursor: pointer; line-height: 1; }
.auth-signin:hover { color: #6a6a6a; transform: scale(1.03); }
.user-btn { position: relative; width: 36px; height: 36px; padding: 0; margin-right: 5px; border: 1px solid rgba(255,255,255,0.4); border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, rgba(255,250,240,0.55) 0%, rgba(255,252,245,0.18) 28%, transparent 50%), linear-gradient(315deg, rgba(240,248,255,0.42) 0%, rgba(245,250,255,0.14) 28%, transparent 50%), linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(220,222,228,0.05) 45%, rgba(220,222,228,0.05) 55%, rgba(255,255,255,0.35) 100%), rgba(255,255,255,0.35); backdrop-filter: blur(28px) saturate(190%); -webkit-backdrop-filter: blur(28px) saturate(190%); box-shadow: inset 1.5px 1.5px 0 rgba(255,252,245,0.95), inset -1.5px -1.5px 0 rgba(0,5,15,0.08), 0 1px 2px rgba(0,0,0,0.06), 0 2px 5px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,5,0.12); transition: transform .15s ease; }
.user-btn:hover { transform: scale(1.03); }
.user-btn .user-initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--accent); line-height: 1; user-select: none; }
.user-avatar { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-popover { position: absolute; top: calc(100% + 4px); right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 220px; padding: 8px; z-index: 1100; display: flex; flex-direction: column; gap: 4px; }
.auth-signin[hidden], .user-btn[hidden], .auth-popover[hidden] { display: none; }
.signin-google { font: inherit; font-size: 13px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); padding: 9px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; text-align: left; }
.signin-google:hover { background: var(--accent-soft); border-color: var(--accent); }
.user-popover .user-info { padding: 6px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.user-popover .user-name { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.user-popover .user-email { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.user-popover .user-item { font: inherit; font-size: 13px; background: transparent; color: var(--ink); border: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; display: block; width: 100%; text-align: left; }
.user-popover .user-item:hover { background: var(--accent-soft); }
.user-popover .user-divider { height: 1px; background: var(--line); margin: 4px 0; }

.page-header .help-btn { font: inherit; font-size: 18px; color: #1a1a1a; line-height: 1; background: linear-gradient(135deg, rgba(255,250,240,0.55) 0%, rgba(255,252,245,0.18) 28%, transparent 50%), linear-gradient(315deg, rgba(240,248,255,0.42) 0%, rgba(245,250,255,0.14) 28%, transparent 50%), linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(220,222,228,0.05) 45%, rgba(220,222,228,0.05) 55%, rgba(255,255,255,0.35) 100%), rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.4); width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(28px) saturate(190%); -webkit-backdrop-filter: blur(28px) saturate(190%); box-shadow: inset 1.5px 1.5px 0 rgba(255,252,245,0.95), inset -1.5px -1.5px 0 rgba(0,5,15,0.08), 0 1px 2px rgba(0,0,0,0.06), 0 2px 5px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,5,0.12); cursor: pointer; }
.page-header .help-btn:hover { transform: scale(1.03); }
@media (min-width: 721px) { #navPlans { display: none !important; } }
.page-header .header-right { display: inline-flex; align-items: center; gap: 6px; }

.page-footer { margin-top: 40px; padding: 24px 24px 22px; text-align: center; font-size: 12px; color: var(--muted); }
.page-footer-row { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-bottom: 6px; }
.page-footer-row a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted transparent; }
.page-footer-row a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .tip-grid { grid-template-columns: 1fr; }
  .tip-side { position: static; }
  .tip-hero { aspect-ratio: 16 / 10; }
  .tip-hero-overlay { padding: 22px 24px 28px; }
  .tip-hero-bottom { max-width: 70%; }
  .tip-hero-title { font-size: 30px; }
  .tip-hero-sub { font-size: 14px; margin-bottom: 18px; }
  .tip-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { background: transparent !important; }
  #mBgFixed { display: block; position: fixed; inset: 0; z-index: -1; background: #f4f5f7; }
  .page-header { padding: 10px 16px; }
  .page-header .brand-logo { height: 44px; }
  .page-header .page-tab-segment .page-tab-link { padding: 8px 10px; font-size: 12px; gap: 4px; }
  .page-header .page-tab-link span:not(.page-tab-icon) { display: none; }
}
@media (max-width: 540px) {
  .tip-shell { padding: 0 16px; }
  .tip-hero { border-radius: 18px; aspect-ratio: 4 / 5; }
  .tip-hero-overlay { padding: 16px 18px 20px; }
  .tip-hero-bottom { max-width: 100%; }
  .tip-hero-title { font-size: 24px; line-height: 1.15; }
  .tip-hero-sub { font-size: 13.5px; }
  .tip-disclaimer { padding: 10px 14px; gap: 12px; }
  .tip-disclaimer-icon { width: 32px; height: 32px; }
  .tip-content-card { padding: 18px 18px 22px; }
  .tip-tldr-icon { width: 44px; height: 44px; }
  .tip-body h2 { font-size: 22px; }
  .tip-pn-nav { grid-template-columns: 1fr; }
  .tip-related-grid { grid-template-columns: 1fr; }
}
