/* Concept Labs — premium look for plans, "Your plans", buy popups and paywall pills (lime redesign, Nov 2026).
   STYLE ONLY: paywall.js builds the same buttons and calls the same server; this file only changes how they look.
   Loaded right after paywall.css on every page that has it. Delete its <link> tag to get the old look back. */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Unbounded:wght@600;700&display=swap');

@property --pw-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ---------- popup frame ---------- */
html .clpw-bg {
  background: rgba(0, 0, 0, 0.74);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  animation: pwFade 0.25s ease both;
}
html .clpw {
  position: relative;
  max-width: 410px;
  padding: 26px 22px 22px;
  border-radius: 26px;
  color: #f3f6ee;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(200, 255, 46, 0.11), transparent 55%),
    radial-gradient(80% 40% at 0% 100%, rgba(200, 255, 46, 0.05), transparent 60%),
    linear-gradient(180deg, #0d1008, #050604);
  border: 1px solid rgba(200, 255, 46, 0.2);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 70px -24px rgba(200, 255, 46, 0.35);
  animation: pwIn 0.4s cubic-bezier(.2, .9, .2, 1) both;
  scrollbar-width: thin; scrollbar-color: rgba(200, 255, 46, 0.35) transparent;
}
html .clpw.wide { max-width: 520px; }
html .clpw::-webkit-scrollbar { width: 6px; }
html .clpw::-webkit-scrollbar-thumb { background: rgba(200, 255, 46, 0.3); border-radius: 6px; }
@keyframes pwFade { from { opacity: 0; } }
@keyframes pwIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } }

html .clpw .x {
  float: none; position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  color: #c3cab8; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
html .clpw .x:hover { color: #000; background: #c8ff2e; transform: rotate(90deg); }

html .clpw h2 {
  margin: 2px 44px 8px 0;
  font: 700 1.5rem/1.15 'Unbounded', system-ui, sans-serif; letter-spacing: -0.03em;
  background: linear-gradient(120deg, #ffffff 0%, #e8ffb0 45%, #c8ff2e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html .clpw h3 {
  display: flex; align-items: center; gap: 10px;
  margin: 24px 0 6px; color: #f3f6ee;
  font: 600 0.92rem/1.3 'Unbounded', system-ui, sans-serif; letter-spacing: -0.01em;
}
html .clpw h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(200, 255, 46, 0.35), transparent); }
html .clpw p { color: #b9c1ad; }
html .clpw .sub { color: #9aa38e; font-size: 0.86rem; line-height: 1.45; }

/* ---------- monthly / yearly switch ---------- */
html .clpw .tg {
  display: flex; gap: 4px; margin: 14px 0 6px; padding: 4px;
  border-radius: 99px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
}
html .clpw .tg button {
  flex: 1; padding: 10px 8px; border: 0; border-radius: 99px;
  background: transparent; color: #b9c1ad; font: 600 0.88rem 'Outfit', system-ui, sans-serif;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
html .clpw .tg button:hover { color: #f3f6ee; }
html .clpw .tg button.on { background: #c8ff2e; color: #000; font-weight: 800; box-shadow: 0 6px 22px -6px rgba(200, 255, 46, 0.75); }

/* ---------- Pro plan cards ---------- */
html .clpw .pc {
  position: relative; margin-top: 14px; padding: 20px 18px 18px;
  border-radius: 20px; text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), border-color 0.25s, box-shadow 0.25s;
}
html .clpw .pc:hover { transform: translateY(-2px); border-color: rgba(200, 255, 46, 0.35); }
html .clpw .pc.best {
  border: 1.5px solid rgba(200, 255, 46, 0.4);
  background: linear-gradient(180deg, #10150a, #080a05);
  box-shadow: 0 20px 50px -30px rgba(200, 255, 46, 0.5);
}
/* the first plan card (right after the Monthly / Yearly switch) is the featured one: animated glowing border */
html .clpw .tg + .pc.best {
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #11160a, #080a05) padding-box,
    conic-gradient(from var(--pw-a), #c8ff2e, rgba(200, 255, 46, 0.08) 25%, #e8ffb0 50%, rgba(200, 255, 46, 0.08) 75%, #c8ff2e) border-box;
  box-shadow: 0 24px 60px -26px rgba(200, 255, 46, 0.65);
  animation: pwSpin 6s linear infinite;
}
@keyframes pwSpin { to { --pw-a: 360deg; } }
html .clpw .ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
html .clpw .ph b { font: 600 1.02rem/1.25 'Unbounded', system-ui, sans-serif; letter-spacing: -0.02em; color: #ffffff; }
html .clpw .badge {
  flex: none; padding: 5px 10px; border-radius: 99px;
  background: #c8ff2e; color: #000;
  font: 800 0.66rem/1 'Outfit', system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 0 18px rgba(200, 255, 46, 0.55);
}
html .clpw .badge::before { content: "✦ "; }
html .clpw .pp { margin: 12px 0 4px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
html .clpw .pp b { font: 700 2.3rem/1 'Unbounded', system-ui, sans-serif; letter-spacing: -0.045em; color: #ffffff; }
html .clpw .pc.best .pp b { background: linear-gradient(120deg, #ffffff, #c8ff2e); -webkit-background-clip: text; background-clip: text; color: transparent; }
html .clpw .pp span { color: #9aa38e; font-size: 0.92rem; }
html .clpw .pe {
  display: inline-flex; margin-top: 6px; padding: 6px 11px; border-radius: 99px;
  background: rgba(200, 255, 46, 0.1); border: 1px solid rgba(200, 255, 46, 0.2);
  color: #c8ff2e; font-size: 0.78rem; font-weight: 600; line-height: 1.35;
}
html .clpw .pw { margin-top: 16px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #8f977f; }
html .clpw ul.pg { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; }
html .clpw ul.pg li { position: relative; margin: 0; padding-left: 28px; color: #dfe5d5; font-size: 0.86rem; line-height: 1.45; }
html .clpw ul.pg li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(200, 255, 46, 0.14); color: #c8ff2e; font-size: 0.66rem; font-weight: 900;
}

/* ---------- buy buttons (same buttons, new look) ---------- */
html .clpw .by, html .clpw .bt, html .clpw-page .by, html .mbox .by, html .cardbuy .by {
  position: relative; overflow: hidden;
  background: #c8ff2e; color: #000; border: 0; border-radius: 12px;
  font-family: 'Outfit', system-ui, sans-serif; font-weight: 800;
  box-shadow: 0 8px 24px -10px rgba(200, 255, 46, 0.7);
  transition: transform 0.18s, box-shadow 0.2s, opacity 0.2s;
}
html .clpw .by::after, html .clpw .bt:not(.g):not(.gg)::after, html .mbox .by::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg); pointer-events: none; opacity: 0;
}
html .clpw .by:hover:not(:disabled), html .clpw .bt:not(.g):not(.gg):hover, html .mbox .by:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(200, 255, 46, 0.9); }
html .clpw .by:hover:not(:disabled)::after, html .clpw .bt:not(.g):not(.gg):hover::after, html .mbox .by:hover:not(:disabled)::after { opacity: 1; animation: pwShine 0.8s ease; }
@keyframes pwShine { from { left: -60%; } to { left: 130%; } }
html .clpw .by:active, html .clpw .bt:active { transform: translateY(0) scale(0.98); }
html .clpw .by.wide { margin-top: 18px; padding: 14px; border-radius: 14px; font-size: 1rem; }
html .clpw .pc.best .by.wide { box-shadow: 0 12px 34px -8px rgba(200, 255, 46, 0.85); }
html .clpw .bt { margin-top: 12px; padding: 13px; border-radius: 14px; font-size: 0.95rem; }
html .clpw .bt.g { background: transparent; color: #f3f6ee; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: none; font-weight: 600; }
html .clpw .bt.g:hover { border-color: rgba(200, 255, 46, 0.6); color: #c8ff2e; }
html .clpw .bt.gg { background: #ffffff; color: #1f1f1f; box-shadow: 0 8px 24px -12px rgba(255, 255, 255, 0.5); }
html .clpw .bt.gg:hover { background: #f1f1f1; }
html .clpw .bt:focus-visible, html .clpw .by:focus-visible { outline: 2px solid #c8ff2e; outline-offset: 3px; }

/* ---------- offer rows (AI pack, mock bundle, lesson packs, unlock popups) ---------- */
html .clpw .of {
  margin-top: 10px; padding: 14px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
html .clpw .of:hover { border-color: rgba(200, 255, 46, 0.32); background: rgba(200, 255, 46, 0.04); transform: translateY(-1px); }
html .clpw .of.pro { border-color: rgba(200, 255, 46, 0.28); background: linear-gradient(135deg, rgba(200, 255, 46, 0.09), rgba(200, 255, 46, 0.02)); }
html .clpw .of .ot b { color: #ffffff; font-weight: 700; }
html .clpw .of .ot span { color: #9aa38e; }
html .clpw .of .by { padding: 10px 14px; }

html .clpw .pl { border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); }
html .clpw .pl b { color: #c8ff2e; }
html .clpw .ml { gap: 16px; margin-top: 8px; }
html .clpw .lk { color: #c8ff2e; font-weight: 700; }
html .clpw .lk:hover { text-decoration: underline; }
html .clpw .chips { gap: 7px; margin-top: 10px; }
html .clpw .chip { padding: 8px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.14); color: #dfe5d5; background: rgba(255, 255, 255, 0.03); transition: 0.2s; }
html .clpw .chip:hover { background: rgba(200, 255, 46, 0.12); border-color: rgba(200, 255, 46, 0.5); color: #c8ff2e; }
html .clpw .sp { margin-top: 14px; }
html .clpw .sp > b { color: #f3f6ee; }
html .clpw .soon, html .soon { border-radius: 12px; background: rgba(245, 176, 65, 0.1); border: 1px solid rgba(245, 176, 65, 0.25); color: #f5d08a; }
html[data-theme="light"] .soon { color: #7a4a08; background: rgba(245, 176, 65, 0.2); border-color: rgba(122, 74, 8, 0.25); }
html[data-theme="light"] .clpw .soon { color: #f5d08a; background: rgba(245, 176, 65, 0.1); border-color: rgba(245, 176, 65, 0.25); }
html .clpw details.terms { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #9aa38e; }
html .clpw details.terms summary { color: #c3cab8; }
html .clpw details.terms summary:hover { color: #c8ff2e; }

/* ---------- "Your plans" ---------- */
html .clpw .my {
  padding: 16px; border-radius: 18px; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(200, 255, 46, 0.11), rgba(200, 255, 46, 0.02));
  border: 1px solid rgba(200, 255, 46, 0.24);
}
html .clpw .my h3 { margin: 0 0 8px; }
html .clpw .mp { margin: 0; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.1); }
html .clpw .mp:last-of-type { border-bottom: 0; }
html .clpw .mp b { color: #ffffff; }
html .clpw .mp span { color: #9aa38e; }
html .clpw .my .ai { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); color: #c8ff2e; font-weight: 600; }

/* ---------- inputs, QR, messages ---------- */
html .clpw input { border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); color: #f3f6ee; transition: border-color 0.2s, box-shadow 0.2s; }
html .clpw input:focus { outline: none; border-color: #c8ff2e; box-shadow: 0 0 0 3px rgba(200, 255, 46, 0.18); }
html .clpw label.ck input { accent-color: #c8ff2e; }
html .clpw canvas { border-radius: 14px; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04), 0 18px 40px -18px rgba(200, 255, 46, 0.5); }
html .clpw .cs, html .clpw .ok, html[data-theme="dark"] .mbox .cs { color: #c8ff2e; }
html[data-theme="light"] .mbox .cs { color: #15803d; }

/* ---------- small floating pills + toast ---------- */
html .clpw-pill, html .clpw-ai {
  background: rgba(6, 8, 4, 0.92); color: #f3f6ee; border: 1px solid rgba(200, 255, 46, 0.32);
  font-family: 'Outfit', system-ui, sans-serif;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.8);
}
html .clpw-pill:hover, html .clpw-ai:hover { border-color: #c8ff2e; color: #c8ff2e; }
html .clpw-pill.warn { background: #f5b041; border-color: #f5b041; color: #1a1206; }
html .clpw-toast { background: #0b0d07; color: #f3f6ee; border: 1px solid rgba(200, 255, 46, 0.35); font-family: 'Outfit', system-ui, sans-serif; }

/* ---------- mock-test page boxes ---------- */
html .mbox { border-radius: 18px; border: 1px solid rgba(200, 255, 46, 0.18); background: rgba(255, 255, 255, 0.035); }
html .mbox.big { border-color: rgba(200, 255, 46, 0.55); box-shadow: 0 18px 50px -28px rgba(200, 255, 46, 0.6); }

/* ---------- phones ---------- */
@media (max-width: 480px) {
  html .clpw { padding: 22px 16px 18px; border-radius: 22px; }
  html .clpw h2 { font-size: 1.28rem; }
  html .clpw .pp b { font-size: 2rem; }
  html .clpw .of { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html .clpw, html .clpw-bg, html .clpw .pc.best, html .clpw .tg + .pc.best { animation: none; }
  html .clpw .by::after, html .clpw .bt::after { display: none; }
}
