/* EdLoop admin, in edloop.in's design system (premium.css, 2026-10-21): night navy, Manrope set light, emphasis by weight
   not colour, thin rectangular buttons, hairlines, and the eo gradient (#4a63f5 > #2f8af7 > #22d3ee) kept for the mark and
   a few accents. The product accent follows the app: JEE indigo, EAPCET teal (app/lib/core/theme/tokens.dart). */
@font-face { font-family: Manrope; src: url('fonts/manrope-latin.woff2') format('woff2'); font-style: normal; font-weight: 200 800; font-display: swap; }

:root {
  --night: #081028; --night2: #0e1a3a; --panel: #0b1532; --card: #0f1c40; --card2: #13224b;
  --line: #ffffff1c; --line2: #ffffff2e; --text: #eef2fb; --muted: #9eabc6; --faint: #6f7d9c;
  --blue: #2f8af7; --cyan: #22d3ee; --indigo: #4a63f5; --loop: #7ea6ff;
  --accent: #929cff; --accent-bg: #929cff1f;            /* JEE (app's dark accent) */
  --good: #7ad6a0; --warn: #efc35e; --bad: #ff9f8a;
  --eo: linear-gradient(90deg, #4a63f5, #2f8af7 55%, #22d3ee);
  --font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
body[data-product="eapcet"] { --accent: #4fe0cf; --accent-bg: #4fe0cf1f; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: -30% -20% auto 35%; height: 110%; background: radial-gradient(closest-side, #2f4ad42e, transparent); pointer-events: none; z-index: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 300; letter-spacing: -.035em; line-height: 1.08; margin: 0; }
h1 .dim { color: var(--muted); }
h2 { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------------------------------------------------------------- the eo lockup (edloop.in) */
.lockup { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; letter-spacing: -1.1px; line-height: 1; white-space: nowrap; color: #fff; position: relative; z-index: 1; }
.lockup .word { display: inline-block; }
.eo-loop { color: var(--loop); }
.mark-sm { width: 46px; height: 28px; }
.mark-lg { width: 92px; height: 55px; }
.lockup-lg { font-size: 44px; gap: 12px; letter-spacing: -2px; }
.eo-mark .s { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.eo-ed, .eo-loop { display: inline-block; }
@keyframes eo-draw { from { stroke-dashoffset: 1.02; } to { stroke-dashoffset: 0; } }
@keyframes eo-rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
.eo-anim .s1 { animation: eo-draw .25s cubic-bezier(.4,0,.6,1) .05s both; }
.eo-anim .s2 { animation: eo-draw .55s cubic-bezier(.33,0,.2,1) .3s both; }
.eo-anim .s3 { animation: eo-draw .2s linear .95s both; }
.eo-anim .s4 { animation: eo-draw .62s cubic-bezier(.33,0,.2,1) 1.15s both; }
.eo-anim .sx { animation: eo-draw .25s linear 1.52s both; }
.eo-anim .eo-ed { animation: eo-rise .35s cubic-bezier(.2,.7,.2,1) .7s both; }
.eo-anim .eo-loop { animation: eo-rise .35s cubic-bezier(.2,.7,.2,1) 1.55s both; }
.js .eo-wait .s { stroke-dashoffset: 1.02; }
.js .eo-wait .eo-ed, .js .eo-wait .eo-loop { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .eo-anim .s, .eo-anim .eo-ed, .eo-anim .eo-loop { animation: none !important; }
  .js .eo-wait .s { stroke-dashoffset: 0; }
  .js .eo-wait .eo-ed, .js .eo-wait .eo-loop { opacity: 1; }
}

/* ---------------------------------------------------------------- buttons: thin rectangles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; border-radius: 2px; border: 1px solid transparent; font: 600 14px var(--font); letter-spacing: -.005em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; color: var(--text); background: transparent; }
.btn-solid { background: #fff; color: var(--night); }
.btn-solid:hover { background: #dfe8ff; }
.btn-line { border-color: #ffffff59; color: #fff; }
.btn-line:hover { border-color: #fff; background: #ffffff12; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link { font-weight: 600; border-bottom: 1px solid #ffffff66; padding-bottom: 1px; color: #fff; }
.link:hover { border-color: #fff; }

/* ---------------------------------------------------------------- sign-in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.signin-glow { position: absolute; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(closest-side, #2f6af633, #22d3ee12 60%, transparent); filter: blur(10px); animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { from { transform: translate(-6%, -4%) scale(1); } to { transform: translate(6%, 5%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .signin-glow { animation: none; } }
.signin-card { position: relative; width: min(440px, 100%); padding: 44px 36px 30px; text-align: center; border: 1px solid var(--line); background: #0b1532cc; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; justify-items: center; gap: 14px; }
.signin-card::before { content: ""; position: absolute; inset: -1px -1px auto; height: 2px; background: var(--eo); }
.signin-title { font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.signin-msg { margin: 6px 0 8px; color: var(--muted); font-weight: 300; font-size: 16px; }
.gbtn { display: flex; justify-content: center; min-height: 44px; }
.signin-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; font-size: 13px; font-weight: 300; color: var(--faint); }

/* ---------------------------------------------------------------- shell */
#app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; position: relative; z-index: 1; }
#nav { background: #081028e6; -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-right: 1px solid var(--line); padding: 22px 14px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
#nav .lockup { margin: 0 8px; }
.nav-kicker { margin: 8px 10px 18px 62px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); }
.nav-links { display: grid; gap: 2px; margin-top: 10px; }
.nav-links a { position: relative; display: flex; align-items: center; gap: 12px; color: #c8d2e6; font-weight: 500; font-size: 14px; padding: 9px 12px; border-radius: 2px; transition: color .2s, background .2s; }
.nav-links a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.nav-links a:hover { color: #fff; background: #ffffff08; }
.nav-links a.on { color: #fff; background: #ffffff0d; }
.nav-links a.on::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; background: var(--eo); }
.nav-foot { margin-top: auto; display: grid; gap: 10px; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.row-btns { display: flex; gap: 8px; }
.row-btns .btn { flex: 1; }
.products { display: grid; gap: 0; border: 1px solid var(--line); margin: 0 4px 6px; }
.products button { all: unset; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); transition: background .2s, color .2s; }
.products button:last-child { border-bottom: 0; }
.products button:hover:not(:disabled) { color: #fff; background: #ffffff08; }
.products button.on { color: #fff; background: var(--accent-bg); box-shadow: inset 2px 0 0 var(--accent); }
.products button:disabled { cursor: default; opacity: .5; }
.products .count { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--faint); }
.products button.on .count { color: var(--accent); }
main { padding: 34px 40px 80px; max-width: 1320px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.head .sub { margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 300; }

/* ---------------------------------------------------------------- cards and numbers */
.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line); margin-bottom: 14px; background: #0b153299; overflow: hidden; }
.kpis .kpi { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.two { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.card { background: #0b153299; border: 1px solid var(--line); padding: 20px 22px; min-width: 0; }
.kpi { padding: 18px 20px 16px; }
.kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi .value { font-size: 36px; font-weight: 300; letter-spacing: -.03em; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .sub { color: var(--faint); font-size: 12px; margin-top: 2px; }
.chart { position: relative; height: 250px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th { color: var(--faint); font-weight: 500; font-size: 12px; letter-spacing: .02em; }
td.wrap { white-space: normal; min-width: 180px; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: #ffffff05; }
.scroll { overflow-x: auto; }
.bar { height: 6px; background: #ffffff12; overflow: hidden; }
.bar > div { height: 100%; background: var(--eo); }
.funnel-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 84px; gap: 14px; align-items: center; margin: 9px 0; font-size: 14px; color: #c8d2e6; }
.funnel-row .n { text-align: right; font-variant-numeric: tabular-nums; color: #fff; }

/* ---------------------------------------------------------------- forms, pills, composer */
input, select, textarea { font: inherit; color: var(--text); background: #081028; border: 1px solid var(--line2); border-radius: 2px; padding: 10px 12px; width: 100%; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; }
textarea { resize: vertical; min-height: 70px; }
label { display: block; color: var(--muted); font-size: 12.5px; margin: 14px 0 6px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-block; font-size: 11.5px; padding: 3px 9px; border: 1px solid var(--line2); color: var(--muted); letter-spacing: .02em; }
.pill.good { border-color: #7ad6a055; color: var(--good); }
.pill.warn { border-color: #efc35e55; color: var(--warn); }
.pill.bad { border-color: #ff9f8a55; color: var(--bad); }
.notif { background: #f4f6fb; color: #142444; border-radius: 18px; padding: 14px 16px; box-shadow: 0 10px 30px #00000055; }
.notif .app { font-size: 12px; color: #56637c; display: flex; align-items: center; gap: 6px; }
.notif .app::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--eo); }
.notif .t { font-weight: 700; margin-top: 2px; }
.reach { font-size: 16px; font-weight: 300; margin: 18px 0 12px; }
.reach b { font-weight: 700; color: #fff; }
.err { color: var(--bad); font-size: 13px; }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #0e1a3a; border: 1px solid var(--line2); padding: 12px 18px; z-index: 50; font-size: 14px; }
#toast::before { content: ""; position: absolute; inset: -1px -1px auto; height: 2px; background: var(--eo); }
.loading { color: var(--faint); font-weight: 300; }

@media (max-width: 820px) {
  #app { grid-template-columns: 1fr; }
  #nav { position: static; height: auto; }
  .nav-links { grid-template-columns: repeat(4, 1fr); }
  .nav-links a { flex-direction: column; gap: 4px; font-size: 12px; padding: 8px 4px; text-align: center; }
  main { padding: 22px 16px 60px; }
  .two { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 120px minmax(0, 1fr) 70px; }
}
