/* Sahitya1 → Shudarsana theme bridge.
   Re-maps Sahitya1's local tokens onto the Shudarsana design system so the
   plugin screens look native inside the KNEC ecosystem. */
.sahitya1-public-shell{
  --s1-bg: var(--bg, #08090f);
  --s1-bg-2: var(--surface-2, #0d1018);
  --s1-panel: var(--surface-1, rgba(255,255,255,.03));
  --s1-panel-soft: var(--surface-2, rgba(255,255,255,.05));
  --s1-line: var(--border, rgba(255,255,255,.08));
  --s1-text: var(--fg, #eef4f8);
  --s1-muted: var(--muted, #8a96a8);
  --s1-gold: var(--primary, #fab50d);
  --s1-gold-soft: rgba(250,181,13,.12);
  font-family: 'Inter', 'Space Grotesk', system-ui, sans-serif;
  background: radial-gradient(circle at 20% 0%, rgba(250,181,13,.10), transparent 55%), var(--s1-bg);
  border-radius: calc(var(--radius, 14px) + 6px);
}
.sahitya1-public-shell h1,
.sahitya1-public-shell h2,
.sahitya1-public-shell h3{font-family:'Space Grotesk','Inter',sans-serif;letter-spacing:-.01em}
.sahitya1-public-shell .sahitya1-public-panel{
  background:var(--s1-panel);border:1px solid var(--s1-line);
  border-radius:var(--radius,14px);backdrop-filter:blur(14px)}
.sahitya1-public-shell a{color:var(--s1-gold)}
.sahitya1-public-shell .button,
.sahitya1-public-shell button[type="submit"]{
  background:var(--s1-gold);color:#0a0c12;border:0;border-radius:999px;
  padding:.7rem 1.35rem;font-weight:700;cursor:pointer;transition:.2s}
.sahitya1-public-shell .button:hover,
.sahitya1-public-shell button[type="submit"]:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(250,181,13,.28)}

/* KNEC gate notice rendered when the plan does not include Sahitya1 */
.s1-knec-gate{max-width:640px;margin:3rem auto;padding:2rem;text-align:center;color:var(--fg,#eef4f8);
  background:var(--surface-1,rgba(255,255,255,.03));border:1px solid var(--border,rgba(255,255,255,.08));
  border-radius:calc(var(--radius,14px) + 6px);font-family:'Inter',sans-serif}
.s1-knec-gate h3{font-family:'Space Grotesk','Inter',sans-serif;margin:.2rem 0 .6rem}
.s1-knec-gate p{color:var(--muted,#8a96a8)}
.s1-knec-gate a.s1-knec-cta{display:inline-block;margin-top:1rem;padding:.75rem 1.5rem;border-radius:999px;
  background:var(--primary,#fab50d);color:#0a0c12;font-weight:700;text-decoration:none}

/* ---- Calmer surface: replace the amber bloom with a deep graphite wash -- */
.sahitya1-public-shell{
  background:
    radial-gradient(circle at 18% -10%, rgba(90,102,125,.16), transparent 58%),
    linear-gradient(180deg, #0b0d13 0%, var(--s1-bg, #08090f) 62%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.sahitya1-public-shell .sahitya1-public-panel{box-shadow:0 18px 44px rgba(0,0,0,.45)}
.sahitya1-public-shell .button:hover,
.sahitya1-public-shell button[type="submit"]:hover{box-shadow:0 12px 28px rgba(0,0,0,.5)}

/* ---- Readable form controls on dark ---------------------------------- */
.sahitya1-public-shell select,
.sahitya1-public-shell input,
.sahitya1-public-shell textarea{
  background-color:#0b0d14 !important;color:var(--s1-text,#eef4f8) !important;
  border:1px solid var(--s1-line,rgba(255,255,255,.12));border-radius:10px;padding:.55rem .7rem}
.sahitya1-public-shell select option,
.sahitya1-public-shell select optgroup{background-color:#0b0d14 !important;color:#eef4f8 !important}
.sahitya1-public-shell input::placeholder,
.sahitya1-public-shell textarea::placeholder{color:var(--s1-muted,#8a96a8)}

/* ---- Never yellow-on-yellow ------------------------------------------ */
.sahitya1-public-shell .button,
.sahitya1-public-shell button[type="submit"],
.sahitya1-public-shell .s1-knec-cta{color:#0a0c12 !important;-webkit-text-fill-color:#0a0c12}

/* Guest gate — dual action (View pricing / Sign in with Kavach) */
.s1-knec-gate .s1-knec-actions{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;margin-top:1rem}
.s1-knec-gate a.s1-knec-cta.is-ghost{background:transparent;border:1px solid rgba(250,181,13,.45);
  color:#fab50d !important;-webkit-text-fill-color:#fab50d}
.s1-knec-gate a.s1-knec-cta.is-ghost:hover{background:rgba(250,181,13,.12)}
