/* /assets/styles/niche_monitor.css */

/* =========================================================
   NICHE MONITOR v3 — modern, minimal, no white cards for rails
   Loader: thick progress bar + step text (no card, no border)
   ========================================================= */

/* Page spacing */
.niche-monitor-page .hero.hero--niche{
  padding-bottom: 78px;
}

/* =========================================================
   ERROR BANNER (kept minimal; no loading card)
   ========================================================= */
.n2-banner{
  margin: 18px auto 0;
  max-width: 940px;
  display: grid;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.n2-banner__title{ font-weight: 900; }
.n2-banner__desc{ color: var(--muted); margin-top: 2px; font-size: var(--fs-400); }

.n2-banner--error{
  grid-template-columns: 1fr;
}
.n2-banner--error .n2-banner__title{ color: var(--yt-red-700); }

/* =========================================================
   LOADER (no card, no border, thick progress bar)
   ========================================================= */
.n2-loader{
  margin: 22px auto 0;
  max-width: 940px;
  text-align: center;
}

.n2-loader__bar{
  margin: 14px auto 0;
  width: min(720px, 92vw);
  height: 14px;
  border-radius: 999px;
  background: rgba(15,19,32,.12);
  overflow: hidden;
}

.n2-loader__barFill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yt-red-600), var(--yt-red-400));
  transition: width 220ms ease;
}

.n2-loader__step{
  margin-top: 10px;
  font-weight: 900;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: .01em;
}

/* ---------- Empty state ---------- */
.n2-empty{ margin-top: 42px; }

/* ---------- Dashboard ---------- */
.n2-dash{
  margin-top: 42px;
  text-align: left;
  position: relative; /* wichtig für Paywall-Overlay */
}

/* Center label */
.n2-head{
  margin-top: 150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.n2-primary{
  font-weight: 700;
  font-size: clamp(1.8rem, 1.25rem + 1.6vw, 2.8rem);
  line-height: 1.08;
}
.n2-meta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 14px 14px;
  color: var(--muted-2);
  font-weight: 400;
  font-size: 1rem;
}

/* Sections + left-aligned headings */
.n2-section{ margin-top: 48px; }
.n2-title{
  margin: 0 0 18px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-align: left;
}

/* One-line section title with muted context */
.n2-title__context{
  color: var(--muted-2);
  font-weight: 400;
  margin-left: 4px;
}

/* =========================================================
   Ring gauge (shared)
   ========================================================= */

.n2-ring{
  position: relative;
  width: 168px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display:grid;
  place-items:center;
}

.n2-ring__svg{ width: 100%; height: 100%; display:block; }

.n2-ring__track,
.n2-ring__fill{
  fill: none;
  stroke-width: 10;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
}

.n2-ring__track{ stroke: rgba(15,19,32,.10); }

.n2-ring__fill{
  stroke: var(--yt-red-600);
  stroke-linecap: round;
  stroke-dasharray: 0 289; /* JS sets real values */
  transition: stroke-dasharray .55s cubic-bezier(.2,.75,.2,1), stroke .25s ease;
}

.n2-ring__center{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  pointer-events:none;
}

.n2-ring__value{
  font-weight: 800;
  font-size: clamp(2.0rem, 1.6rem + 0.8vw, 2.6rem);
  line-height: 1;
  color: var(--text);
  transition: color .25s ease;
}

/* score colors (set by JS via class) */
.n2-ring.is-low  .n2-ring__fill{  stroke: rgba(220, 38, 38, .95); }
.n2-ring.is-mid  .n2-ring__fill{  stroke: rgba(245, 158, 11, .95); }
.n2-ring.is-high .n2-ring__fill{  stroke: rgba(16, 185, 129, .95); }

.n2-ring.is-low  .n2-ring__value{ color: rgba(220, 38, 38, .95); }
.n2-ring.is-mid  .n2-ring__value{ color: rgba(245, 158, 11, .95); }
.n2-ring.is-high .n2-ring__value{ color: rgba(16, 185, 129, .95); }

/* Legend bits (reused) */
.n2-scorelegend__item{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  white-space: nowrap;
}
.n2-scorelegend__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.n2-scorelegend__dot.is-low  { background: rgba(220, 38, 38, .95); }
.n2-scorelegend__dot.is-mid  { background: rgba(245, 158, 11, .95); }
.n2-scorelegend__dot.is-high { background: rgba(16, 185, 129, .95); }

/* ============================
   Score legend: legend-only hover
   ============================ */

/* Stabiler Wrapper */
.n2-scorelegend__txt{
  position: relative;
  display: inline-block;
  min-width: 4ch;
  line-height: 1;
}

/* Beide Textebenen */
.n2-scorelegend__label,
.n2-scorelegend__range{
  display: inline-block;
  transition: opacity 160ms ease, transform 160ms ease;
  will-change: opacity, transform;
}

/* Default: Label sichtbar */
.n2-scorelegend__range{
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
}

/* =========================================
   HOVER NUR AUF LEGENDENBEREICH
   ========================================= */

/* Label ausblenden */
.n2-mcard__legend:hover .n2-scorelegend__label,
.n2-mcard__legend:focus-within .n2-scorelegend__label{
  opacity: 0;
  transform: translateY(-2px);
}

/* Range einblenden */
.n2-mcard__legend:hover .n2-scorelegend__range,
.n2-mcard__legend:focus-within .n2-scorelegend__range{
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   NEW: Overview metric cards (Screenshot-like placement)
   ========================================================= */
.n2-mcards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px){
  .n2-mcards{ grid-template-columns: 1fr; }
}

.n2-mcard{
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 18px 18px 16px;
  text-align:center;
  overflow:hidden;
  position:relative;
}

.n2-mcard__title{
  font-weight: 700;
  letter-spacing: .01em;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.n2-mcard__ring{
  margin: 10px auto 0;
  width: 176px;
}
@media (max-width: 980px){
  .n2-mcard__ring{ width: 190px; }
}

.n2-mcard__legend{
  margin-top: 8px;
  display:flex;
  gap: 14px;
  align-items:center;
  justify-content:center;
  font-size: .8rem;
  color: var(--muted-2);
  font-weight: 500;
}

.n2-mpair{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align:left;
}

@media (max-width: 980px){
  .n2-mpair{ grid-template-columns: 1fr; }
}

.n2-mpair__item{
  border-top: 1px solid rgba(15,19,32,.08);
  padding-top: 12px;
}

.n2-mpair__k{
  font-size: .8rem;
  color: var(--muted-2);
  font-weight: 400;
}

.n2-mpair__v{
  margin-top: 6px;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
}

.n2-mcard__note{
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 0.9rem;
  text-align:left;
  font-weight: 400;
}

/* Slight “category feel” without heavy borders/cards */
.n2-mcard--market .n2-mcard__title{ color: var(--text); }
.n2-mcard--comp   .n2-mcard__title{ color: var(--text); }
.n2-mcard--prof   .n2-mcard__title{ color: var(--text); }

/* ---------- Top channels: wide card with divider + expandable competitors ---------- */

.n2-ch-card{
  border-radius: var(--r-sm);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  background: var(--surface);
  padding: var(--gutter) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25px minmax(0, 5fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px){
  .n2-ch-card{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .n2-ch-divider{ display:none; }
}

.n2-ch-divider{
  width:1px;
  height:100%;
  background: rgba(15,19,32,.10);
}

.n2-ch-col__title{
  font-weight: 700;
  letter-spacing: .01em;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.n2-ch-ownwrap{ padding-right: 6px; }

.n2-comp-body{
  overflow: hidden;
  max-height: 0px;
  transition: max-height 380ms cubic-bezier(.22,1,.36,1);
  will-change: max-height;
}

.n2-comp-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1200px){
  .n2-comp-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .n2-comp-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .n2-comp-grid{ grid-template-columns: 1fr; }
}

/* Wenn kein eigener Channel gerendert wird: mehr Platz -> 6 Spalten */
.n2-ch-card.is-no-own{
  grid-template-columns: 1fr; /* nur Competitors-Column */
}

/* Competitors Grid wird 6-spaltig im "no own" Zustand */
.n2-ch-card.is-no-own .n2-comp-grid{
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Optional: Responsive Breakpoints für "no own" etwas breiter halten */
@media (max-width: 1200px){
  .n2-ch-card.is-no-own .n2-comp-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .n2-ch-card.is-no-own .n2-comp-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .n2-ch-card.is-no-own .n2-comp-grid{ grid-template-columns: 1fr; }
}

.n2-comp-footer{
  display:flex;
  justify-content:center;
  margin-top: 20px;
}

.n2-comp-toggle{
  color: var(--muted-2);
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  padding:12px 14px;
  border-radius:var(--r-sm);
  transition:background .15s,color .15s,transform .12s;
}
.n2-comp-toggle:hover{
  color:var(--text);
  background:rgba(0,0,0,.06);
}

.n2-ch-tile{
  display:block;
  padding: 6px 0 0;
  text-decoration:none;
  color: inherit;
}

.n2-ch-avatar{
  width: 86px;
  height: 86px;
  border-radius: 999px;
  overflow:hidden;
}
.n2-ch-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.n2-ch-name{
  margin-top: 10px;
  font-weight: 600;
  font-size: 1rem;
}
.n2-ch-line{
  margin-top: 6px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  align-items:center;
  color: var(--muted-2);
  font-weight: 400;
  font-size: .9rem;
}
.n2-ch-line .dot{ opacity: .65; }
.n2-ch-m strong{
  color: var(--text);
  font-weight: 600;
}

/* ---------- Videos: horizontal rail, no white boxes, bleed right ---------- */
.n2-bleed-right{
  width: calc(100vw - max((100vw - var(--container)) / 2, var(--gutter)));
  margin-right: calc(-1 * max((100vw - var(--container)) / 2, var(--gutter)));
}

.n2-video-rail{
  display:flex;
  gap: 18px;
  overflow-x:auto;
  padding-bottom: 6px;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
}
.n2-video-rail::-webkit-scrollbar{ height: 10px; }
.n2-video-rail::-webkit-scrollbar-thumb{
  background: rgba(15,19,32,.18);
  border-radius: 999px;
}
.n2-video-rail::-webkit-scrollbar-track{
  background: rgba(255,255,255,.25);
  border-radius: 999px;
}

.n2-v{
  flex: 0 0 auto;
  width: 400px;
  color: inherit;
  text-decoration:none;
  scroll-snap-align: start;
  background: transparent;
  border: none;
  box-shadow: none;
}
@media (max-width: 720px){ .n2-v{ width: 320px; } }
@media (max-width: 480px){ .n2-v{ width: 290px; } }

.n2-v-thumb{
  position: relative;
  width:100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  overflow:hidden;
}
.n2-v-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.n2-v-title{
  margin-top: 10px;
  font-weight: 600;
  line-height: 1.2;
  font-size: 1rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.n2-v-meta{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  align-items:center;
  color: var(--muted-2);
  font-weight: 400;
  font-size: .9rem;
}
.n2-v-meta .dot{ opacity: .65; }
.n2-v-ch{ color: var(--text); font-weight: 500; }

.n2-otag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color:#fff;
  background: var(--green-500);
}
.n2-otag--thumb{
  position:absolute;
  top: 10px;
  left: 10px;
  box-shadow: none;
}

/* Rail buttons */
.n2-rail{ position: relative; }

.n2-rail-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(25,25,25,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  cursor: pointer;
  user-select: none;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.n2-rail:hover .n2-rail-btn{
  opacity: 1;
  pointer-events: auto;
}
.n2-rail-btn.is-hidden{
  opacity: 0 !important;
  pointer-events: none !important;
}
.n2-rail-btn--left{ left: -14px; }
.n2-rail-btn--right{
  position: fixed;
  right: 14px;
  left: auto;
}

/* =========================================================
   N2 Outliers/TopVideos — Outlier-Finder style (isolated)
   Uses .n2of-* only
   ========================================================= */

/* =========================================================
   N2 Outliers/TopVideos — Rail: 3 cards visible in column,
   rest bleeds out to the right (like Outlier Finder)
   ========================================================= */

/* =========================================================
   N2 Outliers/TopVideos — Rail with RIGHT bleed
   Goal:
   - exactly 3 cards fit into normal content width
   - additional cards bleed out to the right (~3.5 visible)
   ========================================================= */

.n2of-grid{
  /* rail */
  display:flex;
  flex-wrap: nowrap;
  gap: 22px;

  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;

  padding-bottom: 10px;

  /* IMPORTANT:
     Base = normal content width,
     but extend right side beyond container for "peek". */
  --n2of-bleed-base: max((100vw - var(--container)) / 2, var(--gutter));
  --n2of-peek: 140px; /* how much of the next card you want to see */
  --n2of-bleed: calc(var(--n2of-bleed-base) + var(--n2of-peek));

  width: calc(100% + var(--n2of-bleed));
  margin-right: calc(-1 * var(--n2of-bleed));
}

.n2of-grid::-webkit-scrollbar{ height: 10px; }
.n2of-grid::-webkit-scrollbar-thumb{
  background: rgba(15,19,32,.18);
  border-radius: 999px;
}
.n2of-grid::-webkit-scrollbar-track{
  background: rgba(255,255,255,.25);
  border-radius: 999px;
}

/* EXACTLY 3 cards inside the NORMAL content width (not the extended rail width) */
.n2of-v{
  flex: 0 0 calc(((100% - var(--n2of-bleed)) - (22px * 2)) / 3);
  min-width: 0;
}

/* Responsive like Outlier Finder */
@media (max-width: 1100px){
  .n2of-grid{ --n2of-peek: 110px; }
  .n2of-v{
    flex-basis: calc(((100% - var(--n2of-bleed)) - 22px) / 2);
  }
}

@media (max-width: 560px){
  .n2of-grid{ --n2of-peek: 70px; }
  .n2of-v{
    flex-basis: calc((100% - var(--n2of-bleed)) * 0.88);
  }
}




.n2of-v__thumbLink{ display:block; text-decoration:none; color:inherit; }

.n2of-v__thumb{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
/* Thumb: sharper rendering + consistent feel */
.n2of-v__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;

  /* perceived quality */
  transform: translateZ(0);
  backface-visibility: hidden;

  /* match OF */
  image-rendering: auto;
}

.n2of-v__thumbLink:hover .n2of-v__thumb{
  transform: translateY(-1px);
  box-shadow: 0 16px 44px rgba(12,24,60,.16);
}

/* Optional placeholder (if no thumb) */
.n2of-v__thumbPh{
  width:100%;
  height:100%;
  background: rgba(15,19,32,.10);
}

/* Duration badge */
.n2of-v__duration{
  position:absolute;
  left:10px;
  bottom:10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
  color:#fff;
  background: rgba(0,0,0,.85);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* Score badge (e.g. x3.4) */
.n2of-v__score{
  position:absolute;
  top:10px;
  right:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color:#fff;
  background: var(--green-500);
  font-variant-numeric: tabular-nums;
}

/* Meta row */
.n2of-v__meta{
  display:flex;
  gap: 12px;
  margin-top: 10px;
  min-width:0;
  align-items:flex-start;
}

/* Channel avatar */
.n2of-v__chimg{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow:hidden;
  flex: 0 0 auto;
  display:grid;
  place-items:center;
  text-decoration:none;
  color:inherit;
  background: rgba(15,19,32,.06);
}
.n2of-v__chimg img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.n2of-v__chph{
  font-weight:800;
  font-size:.95rem;
  color:#fff;
}

/* Text block */
.n2of-v__text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap: 8px;
  padding: 0 2px;
  text-align:left;
}

a.n2of-v__title{
  margin:0;
  text-decoration:none;
  color: var(--text);
  text-align:left;
  font-size:1.0rem;
  font-weight:520;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
a.n2of-v__title:hover{ text-decoration:underline; }

.n2of-v__line{
  margin:0;
  text-align:left;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-size:.9rem;
  color:var(--muted-2);
  line-height:1.35;
  font-weight:420;
  font-variant-numeric: tabular-nums;
}
.n2of-v__dot{ opacity:.6; }

/* =========================================================
   Locked blur (blur ONLY content, not overlay)
   Requires: first blurred card has .is-first-blur
   ========================================================= */

/* Ensure card is positioning context */
.n2of-v{
  position: relative;
}

/* --- Blur only the content layer --- */
.n2of-v.is-blurred .n2of-v__thumb img,
.n2of-v.is-blurred .n2of-v__duration,
.n2of-v.is-blurred .n2of-v__chimg img,
.n2of-v.is-blurred .n2of-v__chph,
.n2of-v.is-blurred .n2of-v__title,
.n2of-v.is-blurred .n2of-v__line{
  filter: blur(4px);
  transform: translateZ(0);
  transition: filter .22s ease;
  will-change: filter;
}

/* Score badge stays sharp */
.n2of-v.is-blurred .n2of-v__score{
  filter: none !important;
}

/* Slight unblur on hover (optional) */
.n2of-v.is-blurred:hover .n2of-v__thumb img,
.n2of-v.is-blurred:hover .n2of-v__title,
.n2of-v.is-blurred:hover .n2of-v__line{
  filter: blur(3px);
}

/* Prevent selecting/dragging */
.n2of-v.is-blurred .n2of-v__title,
.n2of-v.is-blurred .n2of-v__line{
  user-select: none;
}
.n2of-v.is-blurred img{
  -webkit-user-drag: none;
  user-drag: none;
}

/* =========================================================
   Locked overlay (title + CTA)
   ========================================================= */

.n2of-lockOverlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;

  /* Overlay must be clickable, BUT we’ll only enable clicks for the panel */
  pointer-events: none;
  z-index: 5;
}

/* Panel is the clickable area */
.n2of-lockOverlay__panel{
  pointer-events: auto;
  display: none;              /* hidden by default */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  /* NO glass panel */
  padding: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;

  color: #fff;
  text-align: center;
}

.n2of-lockOverlay__title{
  font-weight: 900;
  letter-spacing: .01em;
  font-size: 1.05rem;
  line-height: 1.15;
  text-shadow: 0 10px 28px rgba(0,0,0,.55);
}

.n2of-lockOverlay__btn{
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   Show overlay ONLY on the first blurred card
   (NO :first-of-type; deterministic)
   ========================================================= */

.n2of-v.is-first-blur .n2of-lockOverlay__panel{
  display: flex;
}


/* =========================================================
   PAYWALL BLUR + INLINE PAYWALL (ANON)
   Re-added (was previously in paywall css)
   ========================================================= */

/* JS sets .n2-pay-blur on selected tiles/cards */
.n2-pay-blur{
  filter: blur(3.6px) saturate(.8);
  opacity: .65;
  transition: filter .12s, opacity .12s;
  user-select: none;
  pointer-events: none;
  will-change: filter, opacity;
}

/* Inline paywall overlay (the center panel) */
.n2-paywall{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
  z-index: 40;
  padding-top: 24px;

  background: radial-gradient(
    ellipse at 50% 10%,
    rgba(0,0,0,.08),
    rgba(0,0,0,0) 55%
  );
}

.n2-paywall.is-hidden{ display:none; }

.n2-paywall__panel{
  pointer-events: auto;
  width: min(420px, 100% - 32px);
  margin-top: 180px;
  padding: 36px 32px 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0,0,0,.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(0,0,0,.05);
}

.n2-paywall__text{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:26px;
}

.n2-paywall__title{
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}

.n2-paywall__desc{
  font-size: .95rem;
  color: var(--muted-2);
  max-width: 360px;
}

.n2-paywall__actions{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
}

/* Primary Google CTA inside paywall */
#n2-paywall-login.btn-google{
  width:100%;
  justify-content:center;
  padding:16px 16px;
  border-radius:var(--r-md);
  font-size:1rem;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
}
#n2-paywall-login.btn-google:hover{
  transform: translateY(-1px);
}

.n2-paywall__divider{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted-2);
  font-size:.82rem;
  letter-spacing:.08em;
}
.n2-paywall__divider::before,
.n2-paywall__divider::after{
  content:"";
  flex:1;
  height:1px;
  background:rgba(0,0,0,.12);
}
.n2-paywall__divider span{
  transform: translateY(-1px);
}

.n2-paywall__cta{
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:var(--r-md);
  font-size:1rem;
  font-weight:600;
  box-shadow:var(--shadow-md);
}

.n2-paywall__secondary{
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:var(--r-md);
  border:2px solid rgba(255,0,0,.35);
  background:transparent;
  color:var(--muted);
  font-size:1rem;
  font-weight:500;
  text-decoration:none;
}
.n2-paywall__secondary:hover{
  border-color: rgba(255,0,0,.6);
  background: rgba(255,0,0,.04);
}

.n2-paywall__social{
  font-size:.95rem;
  color:var(--muted-2);
  font-weight:400;
}

.n2-paywall__note{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:.86rem;
  opacity:.7;
}
.n2-paywall__usage{ font-weight:600; color:var(--text); }
.n2-paywall__reset{ font-size:.84rem; color:var(--muted-2); }

/* =========================================================
   SECTION LOCK (ANON preview blur + in-section login CTA)
   Needed for applyAnonLocksAll()
   ========================================================= */

.n2-lockwrap{ position:relative; }

.n2-lockwrap.is-locked .n2-locktarget{
  filter: blur(3.6px) saturate(.8);
  opacity: .65;
  pointer-events:none;
  user-select:none;
  transition: filter .12s, opacity .12s;
}

.n2-lockcta{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index:60;
}

.n2-lockwrap.is-locked .n2-lockcta{
  pointer-events:auto;
}

/* Optional: match your paywall panel style for lock CTA panels */
.n2-login-panel{
  width:min(420px, 100% - 32px);
  padding:36px 32px 30px;
  border-radius:var(--r-lg);
  background:var(--surface);
  box-shadow:0 20px 60px rgba(0,0,0,.14);
  border:1px solid rgba(0,0,0,.05);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.n2-login-panel .n2-lockcta__title{
  font-weight:700;
  font-size:1.5rem;
  color:var(--text);
}

.n2-login-panel .n2-lockcta__desc{
  font-size:.95rem;
  color:var(--muted-2);
  max-width:360px;
}

.btn-google.n2-google-cta{
  width:100%;
  justify-content:center;
  padding:16px 16px;
  border-radius:var(--r-md);
  font-size:1rem;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
  margin-top:18px;
}

.btn-google.n2-google-cta:hover{
  transform: translateY(-1px);
}
