/*
 * SarkariKit — colourful theme (yashvikledger / autobotwork jaisa).
 * Blue gradient header, rangeen gradient icon circles, safed cards, badges.
 * Fonts: Baloo 2 (headings), Mukta (body) — dono static/fonts mein.
 */
:root {
  --bg: #F1F5FB;
  --card: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #94A3B8;
  --line: #E2E8F0;
  --line-2: #EEF2F7;

  --blue: #2563EB;  --indigo: #4F46E5; --purple: #7C3AED; --pink: #DB2777; --red: #DC2626;
  --orange: #EA580C; --amber: #D97706; --green: #16A34A; --emerald: #059669; --teal: #0D9488; --cyan: #0891B2;

  --g-blue: linear-gradient(135deg, #3B82F6, #2563EB);
  --g-indigo: linear-gradient(135deg, #6366F1, #4F46E5);
  --g-purple: linear-gradient(135deg, #A855F7, #7C3AED);
  --g-pink: linear-gradient(135deg, #F472B6, #DB2777);
  --g-red: linear-gradient(135deg, #F87171, #DC2626);
  --g-orange: linear-gradient(135deg, #F97316, #C2410C);
  --g-amber: linear-gradient(135deg, #F59E0B, #B45309);
  --g-green: linear-gradient(135deg, #22C55E, #15803D);
  --g-emerald: linear-gradient(135deg, #10B981, #047857);
  --g-teal: linear-gradient(135deg, #14B8A6, #0F766E);
  --g-cyan: linear-gradient(135deg, #06B6D4, #0E7490);
  --g-header: linear-gradient(120deg, #1E3A8A 0%, #1D4ED8 45%, #4F46E5 100%);

  --tc: var(--blue);
  --tg: var(--g-blue);
  --tc-soft: #EFF6FF;

  --f-head: "Baloo 2", "Mukta", system-ui, sans-serif;
  --f-body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 4px 18px rgba(15, 23, 42, .06);
  --shadow-lg: 0 14px 40px -12px rgba(30, 58, 138, .28);
}

/* colour classes: page (body) aur cards dono par */
.c-blue    { --tc: var(--blue);    --tg: var(--g-blue);    --tc-soft: #EFF6FF; }
.c-indigo  { --tc: var(--indigo);  --tg: var(--g-indigo);  --tc-soft: #EEF2FF; }
.c-purple  { --tc: var(--purple);  --tg: var(--g-purple);  --tc-soft: #F5F3FF; }
.c-pink    { --tc: var(--pink);    --tg: var(--g-pink);    --tc-soft: #FDF2F8; }
.c-red     { --tc: var(--red);     --tg: var(--g-red);     --tc-soft: #FEF2F2; }
.c-orange  { --tc: var(--orange);  --tg: var(--g-orange);  --tc-soft: #FFF7ED; }
.c-amber   { --tc: var(--amber);   --tg: var(--g-amber);   --tc-soft: #FFFBEB; }
.c-green   { --tc: var(--green);   --tg: var(--g-green);   --tc-soft: #F0FDF4; }
.c-emerald { --tc: var(--emerald); --tg: var(--g-emerald); --tc-soft: #ECFDF5; }
.c-teal    { --tc: var(--teal);    --tg: var(--g-teal);    --tc-soft: #F0FDFA; }
.c-cyan    { --tc: var(--cyan);    --tg: var(--g-cyan);    --tc-soft: #ECFEFF; }
.g-blue { background: var(--g-blue); } .g-purple { background: var(--g-purple); } .g-orange { background: var(--g-orange); }
.g-green { background: var(--g-green); } .g-pink { background: var(--g-pink); } .g-teal { background: var(--g-teal); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--tc); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); }

h1, h2, h3 { font-family: var(--f-head); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; margin: 0 0 6px; }
h2 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 10px; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 18px 0 6px; }
p { margin: 0 0 12px; }

/* ================= Header ================= */
.site-header { background: var(--g-header); color: #fff; position: relative; z-index: 50; box-shadow: 0 2px 20px rgba(30, 58, 138, .35); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 66px; flex-wrap: wrap; padding: 8px 16px; }
@media (min-width: 720px) { .header-inner { padding: 8px 24px; } }
.menu-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.menu-btn:hover { background: rgba(255, 255, 255, .25); }
.menu-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #FBBF24, #F97316); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(249, 115, 22, .45); flex: none; }
.brand-mark svg { width: 24px; height: 28px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-family: var(--f-head); font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.bn-hl { color: #FBBF24; }
.brand-by { font-size: .74rem; opacity: .8; white-space: nowrap; }
@media (max-width: 640px) { .brand-by { display: none; } .brand-mark { width: 36px; height: 36px; } .brand-name { font-size: 1.15rem; } }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.hdr-btn { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700; font-size: .95rem; padding: 9px 14px; border-radius: 999px; min-height: 42px; }
.hdr-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hdr-login { background: #fff; color: var(--blue); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.hdr-locker { background: linear-gradient(135deg, #FBBF24, #F97316); color: #fff; box-shadow: 0 4px 12px rgba(249, 115, 22, .4); }
@media (max-width: 359px) { .hdr-btn span { display: none; } .hdr-btn { padding: 9px 11px; } }
@media (max-width: 420px) { .hdr-locker span { display: none; } .hdr-locker { padding: 9px 11px; } }
.search { position: relative; flex: 1 1 260px; max-width: 480px; margin-left: 12px; }
@media (max-width: 899px) { .search { order: 9; flex-basis: 100%; max-width: none; margin-left: 0; } }
.search input {
  width: 100%; font: 500 .98rem var(--f-body); color: var(--ink); background: #fff; border: 0; border-radius: 999px;
  padding: 11px 16px 11px 42px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); min-height: 44px;
}
.search input:focus { outline: 3px solid rgba(255, 255, 255, .55); }
.search-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 2; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 40; max-height: 70vh; overflow: auto; }
.search-results a { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search-results li.is-active a, .search-results a:hover { background: #F1F5FB; }
.sr-kind { grid-row: span 2; align-self: center; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; color: #fff; background: var(--g-blue); }
.sr-exam { background: var(--g-purple); }
.sr-naukri { background: var(--g-green); }
.sr-name { font-weight: 700; }
.sr-sub { font-size: .82rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-empty { padding: 10px; color: var(--ink-2); }

main { min-height: 60vh; padding-bottom: 56px; }

/* ================= Layout + sidebar ================= */
.layout { display: flex; align-items: flex-start; }
.content-col { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.content-col main { flex: 1; }
.sidebar { width: 272px; flex: none; background: #fff; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 12px 28px; scrollbar-width: thin; }
.sidebar-overlay { display: none; }
body.sidebar-collapsed .sidebar { display: none; }
@media (max-width: 1023px) {
  .sidebar { position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; height: 100%; width: min(86vw, 310px); transform: translateX(-105%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(15, 23, 42, .3); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 65; }
  body.sidebar-open { overflow: hidden; }
}
.side-user { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #EEF2FF, #FDF2F8); margin-bottom: 10px; }
.side-user b { display: block; font-family: var(--f-head); }
.side-user div > span { display: block; font-size: .82rem; color: var(--ink-2); line-height: 1.35; }
.side-user a { font-size: .88rem; font-weight: 700; }
.side-user-btns { display: flex; gap: 6px; margin-top: 8px; }
.side-user-btns .btn { flex: 1; padding: 7px 8px; min-height: 34px; font-size: .85rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--g-purple); color: #fff; display: grid; place-items: center; font: 800 1.1rem var(--f-head); flex: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-title { font: 800 .86rem var(--f-head); color: var(--ink-2); margin: 14px 8px 4px; letter-spacing: .01em; }
.side-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.side-group summary::-webkit-details-marker { display: none; }
.side-group summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); margin-right: 8px; transition: transform .2s; }
.side-group[open] summary::after { transform: rotate(-135deg); }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .93rem; font-weight: 500; line-height: 1.25; }
.side-nav a:hover { background: var(--tc-soft); color: var(--tc); }
.side-nav a.is-active { background: var(--tc-soft); color: var(--tc); font-weight: 700; box-shadow: inset 3px 0 0 var(--tc); }
.side-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--tg); display: grid; place-items: center; flex: none; box-shadow: 0 3px 8px -3px var(--tc); }
.side-ico.g-blue { background: var(--g-blue); } .side-ico.g-red { background: var(--g-red); } .side-ico.g-purple { background: var(--g-purple); }
.side-ico .ico { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.2; }
.side-new { margin-left: auto; font-style: normal; font-size: .64rem; font-weight: 800; color: #fff; background: var(--g-pink); padding: 2px 6px; border-radius: 999px; }
.side-count { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 700; color: var(--ink-2); background: #F1F5F9; padding: 1px 8px; border-radius: 999px; }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--blue)); margin: 0 10px 0 10px; flex: none; }
.side-cat { padding-left: 2px; }

/* site notice bar (admin se) */
.notice-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; font-weight: 600; font-size: .95rem; color: #fff; background: var(--g-blue); }
@media (min-width: 720px) { .notice-bar { padding: 10px 24px; } }
.notice-bar.nb-warn { background: var(--g-orange); } .notice-bar.nb-ok { background: var(--g-green); }
.notice-bar a { color: #fff; background: rgba(255, 255, 255, .2); padding: 3px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.notice-bar a:hover { background: rgba(255, 255, 255, .32); }
.nb-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); animation: nb-pulse 1.6s infinite; }
@keyframes nb-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }

/* flash + toasts */
.flash-wrap { padding: 12px 16px 0; }
.flash { margin: 0 0 8px; padding: 12px 16px; border-radius: 12px; font-weight: 600; background: #EFF6FF; color: #1E40AF; }
.flash-success { background: #F0FDF4; color: #166534; }
.flash-error { background: #FEF2F2; color: #991B1B; }
.toasts { position: fixed; z-index: 90; right: 16px; bottom: 16px; left: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; max-width: 420px; background: #0F172A; color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: 0 12px 30px rgba(15, 23, 42, .35); font-size: .95rem; border-left: 5px solid #22C55E; animation: toast-in .25s ease; }
.toast a { color: #FDE68A; font-weight: 700; }
.toast.info { border-left-color: #60A5FA; } .toast.err { border-left-color: #F87171; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ================= Buttons & controls ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font: 700 1rem/1 var(--f-body); padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer; min-height: 46px;
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.btn:active { transform: translateY(1px); }
.btn-go { background: var(--tg); color: #fff; box-shadow: 0 6px 16px -6px var(--tc); }
.btn-go:hover { filter: brightness(1.06); color: #fff; box-shadow: 0 10px 22px -8px var(--tc); }
.btn-go:disabled { background: #CBD5E1; box-shadow: none; cursor: not-allowed; }
.btn-quiet { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-quiet:hover { border-color: var(--tc); color: var(--tc); }
.btn-white { background: #fff; color: var(--blue); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-danger { background: var(--g-red); color: #fff; box-shadow: 0 6px 16px -6px var(--red); }
.btn-danger:hover { color: #fff; filter: brightness(1.06); }
.btn-save:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

label.f { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 500; color: var(--ink-2); }
label.f input:not([type=range]), label.f select, label.f textarea {
  font: 500 1rem var(--f-body); color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px; width: 100%; min-height: 46px;
}
label.f textarea { min-height: 0; resize: vertical; }
label.f input:focus, label.f select:focus, label.f textarea:focus { border-color: var(--tc); outline: none; box-shadow: 0 0 0 4px var(--tc-soft); }
label.f input.bad { border-color: var(--red); background: #FEF2F2; }
label.f input[type=range] { accent-color: var(--tc); width: 100%; min-height: 32px; }
label.f-wide { margin-bottom: 12px; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .fields { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fields-2 { margin-top: 12px; }
@media (min-width: 760px) { .fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .fields-2 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; font-size: .97rem; margin: 12px 0 4px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--tc); flex: none; }
.hint { font-size: .86rem; color: var(--ink-2); margin: 6px 0 0; }

.seg { display: flex; gap: 6px; background: #F1F5F9; padding: 5px; border-radius: 12px; flex-wrap: wrap; }
.seg label { flex: 1 1 auto; cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px 12px; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.seg input:checked + span { background: var(--tg); color: #fff; box-shadow: 0 4px 12px -4px var(--tc); }
.seg input:focus-visible + span { outline: 3px solid #93C5FD; }

/* ================= Hero ================= */
.hero { background: var(--g-header); color: #fff; padding: 28px 0 76px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; opacity: .35; pointer-events: none; }
.hero::before { width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(circle, #A855F7, transparent 70%); }
.hero::after { width: 360px; height: 360px; left: -140px; bottom: -160px; background: radial-gradient(circle, #22D3EE, transparent 70%); }
.hero-grid { display: grid; gap: 24px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .hero { padding-top: 48px; padding-bottom: 84px; } .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; } }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3.2vw, 3.3rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 14px; }
.hero-kicker { display: inline-block; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25); padding: 5px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.hero-sub { font-size: 1.1rem; opacity: .92; max-width: 52ch; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { margin: 0; justify-self: center; width: 100%; max-width: 420px; }
@media (max-width: 899px) { .hero-art { max-width: 320px; } }
@media (max-width: 599px) { .hero-art { display: none; } .hero { padding-bottom: 68px; } }
.page-home .hero { border-radius: 0; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 24px 30px rgba(15, 23, 42, .35)); }
.hero-art .sheet { fill: #fff; }
.hero-art .sheet-title { font: 800 16px var(--f-head); fill: #1E3A8A; }
.hero-art .rows text { font: 500 10.5px var(--f-body); fill: #94A3B8; }
.hero-art .rows line { stroke: #CBD5E1; stroke-width: 1.2; stroke-dasharray: 2 3; }
.hero-art .handwriting path { fill: none; stroke: #2563EB; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .dims line { stroke: #94A3B8; }
.hero-art .dims text { font: 700 10px var(--f-body); fill: #475569; }
.hero-art .photo-box, .hero-art .sign-box { fill: #EFF6FF; stroke: #2563EB; stroke-width: 1.6; stroke-dasharray: 5 3; }
.hero-art .portrait circle, .hero-art .portrait path { fill: #BFDBFE; stroke: #2563EB; stroke-width: 1.4; }
.hero-art .sign { fill: none; stroke: #1E40AF; stroke-width: 1.8; stroke-linecap: round; }
.hero-art .stamp circle { fill: none; stroke: #7C3AED; }
.hero-art .stamp circle:first-child { stroke-width: 3; fill: rgba(124, 58, 237, .06); }
.hero-art .stamp circle:nth-child(2) { stroke-width: 1.2; stroke-dasharray: 2.5 2; }
.hero-art .stamp text { fill: #7C3AED; font-family: var(--f-head); }
.hero-art .stamp-big { font-size: 19px; font-weight: 800; }
.hero-art .stamp-small { font-size: 9.5px; font-weight: 700; }
.hero-art .stamp { transform-box: fill-box; transform-origin: center; animation: stamp-land .55s cubic-bezier(.2, 1.4, .4, 1) .5s both; }
@keyframes stamp-land { 0% { opacity: 0; transform: scale(1.6); } 100% { opacity: 1; transform: scale(1); } }

.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; position: relative; z-index: 2; margin-top: -48px; }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.stat-card { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 16px; border-radius: var(--r); box-shadow: var(--shadow-lg); min-height: 84px; }
.stat-card:hover { color: #fff; filter: brightness(1.05); }
.stat-card b { display: block; font: 800 1.7rem/1 var(--f-head); }
.stat-card span:last-child { font-size: .9rem; font-weight: 500; line-height: 1.25; }
.stat-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; }
.stat-ico .ico { width: 26px; height: 26px; stroke: #fff; }
@media (max-width: 420px) { .stat-card { padding: 12px; gap: 8px; } .stat-ico { width: 36px; height: 36px; } .stat-card b { font-size: 1.4rem; } .stat-card span:last-child { font-size: .8rem; } }
.page-home main > .wrap:not(.stat-row) { padding-top: 8px; }

/* ================= Sections & tool cards ================= */
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 14px; padding-left: 14px; border-left: 5px solid var(--tc); }
.section-head h2 { margin: 0; font-size: 1.45rem; }
.section-head p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.section-head a { font-weight: 700; text-decoration: none; }
.tool-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1080px) { .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tool-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: #fff; border-radius: var(--r); padding: 22px 14px 18px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); border: 1px solid var(--line-2); transition: transform .15s, box-shadow .15s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(15, 23, 42, .25); color: var(--ink); }
.icon-circle { width: 62px; height: 62px; border-radius: 50%; background: var(--tg); display: grid; place-items: center; box-shadow: 0 8px 18px -6px var(--tc); margin-bottom: 4px; }
.icon-circle .ico { width: 32px; height: 32px; stroke: #fff; }
.tc-name { font: 700 1.06rem/1.25 var(--f-head); }
.tc-desc { font-size: .88rem; color: var(--ink-2); line-height: 1.4; flex: 1; }
.btn-open { margin-top: 8px; display: inline-block; background: var(--tc-soft); color: var(--tc); font-weight: 700; font-size: .88rem; padding: 7px 16px; border-radius: 999px; }
.tool-card:hover .btn-open { background: var(--tg); color: #fff; }
.badge-new { position: absolute; top: 10px; right: 10px; background: var(--g-pink); color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; box-shadow: 0 4px 10px -3px #DB2777; }
@media (max-width: 420px) { .tool-card { padding: 18px 10px 14px; } .icon-circle { width: 54px; height: 54px; } .tc-desc { font-size: .82rem; } }

.ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.exam-chips { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.exam-chip, .exam-card { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-left: 5px solid var(--cat, var(--blue)); transition: transform .15s, box-shadow .15s; }
.exam-chip:hover, .exam-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(15, 23, 42, .3); color: var(--ink); }
.exam-chip b, .exam-card b { font-family: var(--f-head); font-size: 1.02rem; }
.exam-chip span, .ec-spec { font-size: .85rem; color: var(--ink-2); }
.exam-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ec-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ec-tags:empty { display: none; }
.tag { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #F1F5F9; color: var(--ink-2); }
.tag-live { background: #FEF3C7; color: #92400E; }
.tag-open { background: #DCFCE7; color: #166534; }
.tag-draft { background: #FEE2E2; color: #991B1B; }
.cat-ssc { --cat: #2563EB; } .cat-railway { --cat: #EA580C; } .cat-bank { --cat: #16A34A; } .cat-upsc { --cat: #7C3AED; }
.cat-entrance { --cat: #DB2777; } .cat-defence { --cat: #0D9488; } .cat-teaching { --cat: #D97706; } .cat-bihar { --cat: #DC2626; }
.cat-central { --cat: #0891B2; } .cat-state, .cat-other { --cat: #64748B; }

.form-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.form-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: var(--r); padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-top: 4px solid var(--green); }
.form-card.is-urgent { border-top-color: var(--red); }
.form-card b { font: 700 1.1rem var(--f-head); }
.fc-status { align-self: flex-start; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #DCFCE7; color: #166534; }
.fc-upcoming { background: #FEF3C7; color: #92400E; }
.fc-closed { background: #F1F5F9; color: #64748B; }
.is-urgent .fc-status { background: #FEE2E2; color: #991B1B; }
.fc-note, .fc-dates { font-size: .88rem; color: var(--ink-2); }
.fc-cta { margin-top: 6px; font-weight: 700; font-size: .88rem; color: var(--blue); }

.why { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 760px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why-card { border-radius: var(--r); padding: 20px; background: #fff; box-shadow: var(--shadow); }
.why-card h3 { margin: 12px 0 4px; }
.why-card p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.why-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.why-ico .ico { stroke: #fff; }
.g-soft-blue { background: linear-gradient(180deg, #EFF6FF, #fff); }
.g-soft-purple { background: linear-gradient(180deg, #F5F3FF, #fff); }
.g-soft-green { background: linear-gradient(180deg, #F0FDF4, #fff); }
.made-by { text-align: center; color: var(--ink-3); font-size: .9rem; margin-top: 28px; }

/* ================= Page banner ================= */
.page-banner { background: var(--tg); color: #fff; padding: 18px 0 64px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.page-banner-sm { padding-bottom: 56px; }
.page-banner h1 { color: #fff; margin-bottom: 4px; }
.page-banner .lead { color: rgba(255, 255, 255, .92); margin: 0; font-size: 1.05rem; max-width: 70ch; }
.crumbs { font-size: .86rem; display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; color: rgba(255, 255, 255, .85); position: relative; z-index: 1; }
.crumbs a { color: #fff; text-decoration: none; opacity: .85; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.banner-row { display: flex; gap: 16px; align-items: center; position: relative; z-index: 1; }
.banner-ico { flex: none; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); }
.banner-ico .ico { width: 36px; height: 36px; stroke: #fff; }
@media (max-width: 520px) { .banner-ico { width: 48px; height: 48px; border-radius: 14px; align-self: flex-start; } .banner-ico .ico { width: 28px; height: 28px; } }
.banner-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.banner-tags span { background: rgba(255, 255, 255, .18); padding: 3px 12px; border-radius: 999px; font-size: .85rem; }
.banner-tags .checked { background: #fff; color: var(--green); font-weight: 700; }
.page-tool { margin-top: -40px; position: relative; z-index: 2; }

.content-card { background: #fff; border-radius: var(--r); padding: 20px 18px; box-shadow: var(--shadow); margin-bottom: 24px; }
@media (min-width: 720px) { .content-card { padding: 28px 32px; } }
.prose > * { max-width: 78ch; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 6px; }
.prose ol, .prose ul { padding-left: 1.3em; }
.note { border-left: 4px solid var(--blue); background: #EFF6FF; padding: 12px 14px; border-radius: 0 12px 12px 0; color: var(--ink); font-size: .97rem; }
.page-tool > .note:first-child { box-shadow: var(--shadow); }
.note-warn { border-left-color: var(--amber); background: #FFFBEB; }
details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 10px 34px 10px 0; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 2px; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--tc-soft); color: var(--tc); display: grid; place-items: center; font: 800 1.1rem/1 var(--f-head); }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--ink-2); }
.updated { color: var(--ink-3); font-size: .9rem; margin-top: 24px; }
.empty { padding: 26px; text-align: center; background: #fff; border: 2px dashed var(--line); border-radius: var(--r); color: var(--ink-2); }

/* ================= Tool panel ================= */
.tool { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px 16px 20px; margin: 0 0 24px; border-top: 5px solid var(--tc); }
@media (min-width: 720px) { .tool { padding: 14px 28px 26px; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding: 18px 0 18px 48px; counter-increment: step; }
.step + .step { border-top: 1px dashed var(--line); }
.step::before { content: counter(step); position: absolute; left: 0; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--tg); color: #fff; font: 800 1rem/34px var(--f-head); text-align: center; box-shadow: 0 6px 14px -6px var(--tc); }
.step-title { margin: 0 0 12px; font-size: 1.15rem; line-height: 34px; }
@media (max-width: 520px) { .step { padding-left: 0; } .step::before { position: static; display: inline-block; margin-right: 8px; vertical-align: middle; } .step-title { display: inline; } .step-title + * { margin-top: 12px; } }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border: 2px dashed color-mix(in srgb, var(--tc) 45%, white); border-radius: var(--r); background: var(--tc-soft); padding: 26px 16px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.drop:hover, .drop.drag { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, white); }
.drop input { display: none; }
.drop-icon { width: 46px; height: 46px; fill: none; stroke: var(--tc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.drop-label { font: 800 1.12rem var(--f-head); color: var(--tc); }
.drop-sub { font-size: .9rem; color: var(--ink-2); }
.has-image .drop { padding: 12px; flex-direction: row; gap: 10px; }
.has-image .drop .drop-icon { width: 28px; height: 28px; }
.has-image .drop .drop-sub { display: none; }
.privacy-note { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); margin: 10px 0 0; }
.privacy-note svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 1.8; flex: none; }
.alert { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: #FEF2F2; color: var(--red); font-weight: 500; }
.alert:empty { display: none; }

.editor-grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .editor-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.editor-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stage { background: #1A2547; border-radius: var(--r); overflow: hidden; touch-action: none; user-select: none; display: flex; justify-content: center; cursor: grab; }
.stage:active { cursor: grabbing; }
.stage canvas { display: block; max-width: 100%; }
.result { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.result-frame { padding: 14px; border-radius: var(--r); width: 100%; display: grid; place-items: center; min-height: 160px; background-color: #EEF1F7; background-image: linear-gradient(45deg, #E3E8F1 25%, transparent 25%, transparent 75%, #E3E8F1 75%), linear-gradient(45deg, #E3E8F1 25%, transparent 25%, transparent 75%, #E3E8F1 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.result-frame img { max-height: 280px; background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .18); }
.result-frame img:not([src]) { display: none; }
.stats { font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.status { margin: 0; font-weight: 700; font-size: .95rem; }
.status:empty { display: none; }
.status.is-ok { color: #6D28D9; border: 2px solid #7C3AED; border-radius: 10px; padding: 6px 12px; background: #F5F3FF; transform: rotate(-2deg); }
.status.is-warn { color: #92400E; background: #FFFBEB; border-radius: 10px; padding: 8px 12px; text-align: left; }
.status.stamp-in { animation: stamp-in .4s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes stamp-in { 0% { transform: rotate(-2deg) scale(1.35); opacity: 0; } 100% { transform: rotate(-2deg) scale(1); opacity: 1; } }
.result .btn-go { width: 100%; max-width: 320px; }
.sticky-dl { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #0F172A; color: #fff; padding: 10px 10px 10px 16px; border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, .4); font-weight: 700; font-size: .92rem; }
.sticky-dl .btn { min-height: 42px; padding: 10px 18px; }
[data-photo-tool]:not(.is-active) .sticky-dl, [data-photo-tool].dl-visible .sticky-dl { display: none; }
@media (min-width: 820px) { .sticky-dl { display: none !important; } }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slot { padding: 14px 8px; }
.slot canvas { width: 80px; height: 90px; display: none; }
.slot.is-filled canvas { display: block; }
.slot.is-filled .drop-sub { display: none; }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.jump a { padding: 6px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); text-decoration: none; font-weight: 700; font-size: .92rem; }
.widget-head { margin: 28px 0 4px; scroll-margin-top: 16px; }
.widget-sub { color: var(--ink-2); margin-bottom: 12px; }

.out-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.out-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.out-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.out-item > a { flex: none; line-height: 0; }
.out-item .out-info { flex: 1; min-width: 0; }
.out-item .out-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out-item .out-info span { display: block; font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.out-item .out-info .out-q { color: var(--purple); font-weight: 600; }
.out-item .btn { min-height: 40px; padding: 8px 14px; }
@media (max-width: 480px) { .out-item { flex-wrap: wrap; } .out-item .btn { width: 100%; } }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin: 14px 0; counter-reset: pg; }
.thumbs:empty { display: none; }
.thumb { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; counter-increment: pg; }
.thumb::before { content: counter(pg); position: absolute; top: 6px; left: 6px; background: var(--tg); color: #fff; font: 700 .75rem/1 var(--f-body); padding: 4px 7px; border-radius: 6px; }
.thumb img { width: 100%; height: 120px; object-fit: cover; display: block; }
.thumb .ctrl { display: flex; padding: 4px; gap: 4px; }
.thumb button { flex: 1; border: 0; background: #F1F5F9; border-radius: 6px; cursor: pointer; padding: 6px 0; font: 700 .95rem var(--f-body); color: var(--ink-2); }
.thumb button:hover { background: var(--tc-soft); color: var(--tc); }
.age-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.age-out div { padding: 16px 8px; text-align: center; color: #fff; font-weight: 600; border-radius: var(--r); background: var(--g-orange); }
.age-out div:nth-child(2) { background: var(--g-pink); } .age-out div:nth-child(3) { background: var(--g-purple); }
.age-out b { display: block; font: 800 2.4rem/1 var(--f-head); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.age-total { text-align: center; color: var(--ink-2); margin: 10px 0 0; }
.verdict { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.verdict:empty { display: none; }
.verdict.is-ok { background: #F0FDF4; color: #166534; }
.verdict.is-warn { background: #FFFBEB; color: #92400E; }

/* ================= Calculators ================= */
.calc-grid { display: grid; gap: 20px; padding-top: 12px; }
@media (min-width: 860px) { .calc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.calc-inputs { display: flex; flex-direction: column; gap: 14px; }
.calc-inputs .fields-2 { margin-top: 0; }
.calc-inputs .check { margin: 0; }
.calc-result { background: var(--tc-soft); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.big-figure { background: var(--tg); color: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 10px 24px -10px var(--tc); }
.big-figure span { display: block; font-size: .92rem; opacity: .9; }
.big-figure b { display: block; font: 800 clamp(2rem, 1.5rem + 2vw, 2.7rem)/1.1 var(--f-head); font-variant-numeric: tabular-nums; word-break: break-word; }
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #E2E8F0; }
.bar-seg { height: 100%; transition: width .3s; }
.seg-a { background: var(--g-blue); } .seg-b { background: var(--g-orange); } .seg-c { background: var(--g-purple); } .seg-d { background: var(--g-pink); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--ink-2); margin-top: -6px; }
.legend .lg { background: none !important; display: inline-flex; align-items: center; gap: 6px; }
.legend .lg::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.legend .seg-a::before { background: var(--g-blue); } .legend .seg-b::before { background: var(--g-orange); } .legend .seg-c::before { background: var(--g-purple); } .legend .seg-d::before { background: var(--g-pink); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kv > div { background: #fff; border-radius: 12px; padding: 10px 12px; }
.kv span { display: block; font-size: .8rem; color: var(--ink-2); }
.kv b { font: 700 1.1rem var(--f-head); font-variant-numeric: tabular-nums; }
.kv-split:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .9rem var(--f-body); padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.chip:hover, .chip.is-on { border-color: var(--tc); color: var(--tc); background: var(--tc-soft); }
.chips-sm .chip { padding: 5px 12px; font-size: .85rem; }
.table-wrap { margin-top: 16px; }
.table-wrap summary { cursor: pointer; font-weight: 700; color: var(--tc); padding: 8px 0; }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: right; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { background: var(--tc-soft); color: var(--ink-2); font-weight: 600; }
@media (max-width: 520px) { table.data { font-size: .8rem; } table.data th, table.data td { padding: 6px 4px; } }

.preset-label { font-weight: 700; margin: 12px 0 8px; }
.presets { margin-bottom: 8px; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; }
.prompt-box { background: #fff; border-radius: 12px; padding: 14px; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; border: 1.5px solid color-mix(in srgb, var(--tc) 25%, white); }
.prompt-neg { font-size: .82rem; color: var(--ink-2); }
.prompt-explain { margin: 0; padding-left: 1.2em; font-size: .92rem; color: var(--ink-2); }
.btn.is-done { background: var(--g-green); }

/* invoice */
.invoice-tool { display: grid; gap: 20px; padding-top: 18px; }
.inv-form, .inv-preview { min-width: 0; }
@media (min-width: 1000px) { .invoice-tool { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } .inv-preview { position: sticky; top: 12px; } }
.inv-form fieldset { border: 0; border-radius: 14px; background: #F8FAFC; padding: 14px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.inv-form legend { font: 800 1.05rem var(--f-head); color: var(--tc); padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.items-wrap { overflow-x: auto; }
.items-edit { width: 100%; border-collapse: collapse; min-width: 540px; table-layout: fixed; }
@media (min-width: 1000px) { .items-edit { min-width: 0; } }
.items-edit input[type=number] { -moz-appearance: textfield; }
.items-edit input[type=number]::-webkit-inner-spin-button, .items-edit input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.items-edit th { font-size: .78rem; color: var(--ink-2); text-align: left; padding: 4px; font-weight: 600; }
.items-edit td { padding: 3px; }
.items-edit input, .items-edit select { width: 100%; font: 500 .92rem var(--f-body); border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 8px; background: #fff; }
.items-edit th:nth-child(1) { width: 30%; } .items-edit th:nth-child(2) { width: 14%; } .items-edit th:nth-child(3) { width: 10%; } .items-edit th:nth-child(4) { width: 14%; } .items-edit th:nth-child(5) { width: 13%; } .items-edit th:nth-child(6) { width: 13%; } .items-edit th:nth-child(7) { width: 36px; }
.items-edit select { padding: 7px 2px; }
.items-edit .row-amt { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; }
.row-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.icon-btn { border: 0; background: #FEE2E2; color: var(--red); width: 30px; height: 30px; border-radius: 8px; font: 800 1.1rem/1 var(--f-body); cursor: pointer; }
.inv-actions { margin-top: 4px; }
.preview-label { font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.invoice-sheet { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px; font-size: 13px; line-height: 1.45; color: #111; box-shadow: 0 6px 20px rgba(15, 23, 42, .08); font-family: var(--f-body); overflow-x: auto; }
.inv-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid #111; flex-wrap: wrap; }
.inv-seller strong { font-size: 16px; }
.inv-title h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: .04em; color: #111; text-align: right; }
.inv-meta td { padding: 1px 0 1px 10px; font-size: 12px; } .inv-meta td:first-child { color: #555; }
.inv-bill { padding: 10px 0; border-bottom: 1px solid #ccc; }
.inv-bill > span { display: block; font-size: 11px; color: #555; letter-spacing: .06em; }
.inv-items { width: 100%; border-collapse: collapse; margin: 10px 0; }
.inv-items th { background: #F1F5F9; font-size: 11.5px; text-align: left; padding: 6px; border-bottom: 1px solid #999; }
.inv-items td { padding: 6px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
.inv-items .r { text-align: right; } .inv-empty { text-align: center; color: #888; padding: 16px !important; }
.inv-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inv-words { flex: 1 1 220px; } .inv-words span { display: block; font-size: 11px; color: #555; }
.inv-notes { margin-top: 10px; font-size: 12px; color: #333; }
.inv-totals { border-collapse: collapse; min-width: 220px; } .inv-totals td { padding: 3px 0 3px 16px; text-align: right; font-variant-numeric: tabular-nums; }
.inv-totals td:first-child { text-align: left; padding-left: 0; color: #444; }
.inv-totals .grand td { border-top: 2px solid #111; font-weight: 800; font-size: 15px; padding-top: 6px; color: #111; }
.inv-sign { display: flex; flex-direction: column; align-items: flex-end; margin-top: 28px; gap: 34px; }
.inv-sign-line { border-top: 1px solid #333; padding-top: 4px; font-size: 12px; }
.inv-gen { text-align: center; color: #888; font-size: 11px; margin: 16px 0 0; }

/* ================= Exams ================= */
.spec-sheet { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; margin: 0 0 22px; border-top: 5px solid var(--tc); }
.spec-sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec-sheet th, .spec-sheet td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.spec-sheet thead th { font-size: .82rem; color: var(--ink-2); font-weight: 600; background: var(--tc-soft); }
.spec-sheet tbody th { font-family: var(--f-head); font-weight: 700; width: 32%; }
.spec-sheet tr:last-child td, .spec-sheet tr:last-child th { border-bottom: 0; }
@media (max-width: 560px) { .spec-sheet th, .spec-sheet td { padding: 10px; font-size: .9rem; } }
.form-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-radius: var(--r); padding: 16px 18px; margin-bottom: 18px; color: #fff; background: var(--g-green); box-shadow: var(--shadow-lg); }
.form-status.fs-upcoming { background: var(--g-amber); } .form-status.fs-closed { background: linear-gradient(135deg, #94A3B8, #64748B); }
.form-status b { display: block; font: 800 1.2rem var(--f-head); } .form-status span { display: block; font-size: .92rem; opacity: .95; }
.live-box { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px; border: 1px solid #FDE68A; }
.live-box h2 { margin: 0 0 6px; font-size: 1.2rem; }
.ticks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
@media (min-width: 720px) { .ticks { grid-template-columns: 1fr 1fr; } }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--g-green); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }

/* ================= Footer ================= */
.site-footer { background: linear-gradient(135deg, #0F172A, #1E1B4B); color: #CBD5E1; padding: 0 16px 16px; font-size: .93rem; margin-top: 28px; }
@media (min-width: 720px) { .site-footer { padding: 0 28px 18px; } }
.site-footer a { color: #E2E8F0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--g-header); margin: 0 -16px 28px; padding: 18px 16px; }
@media (min-width: 720px) { .footer-top { margin: 0 -28px 32px; padding: 20px 28px; } }
.footer-follow b { display: block; font: 800 1.2rem var(--f-head); color: #fff; }
.footer-follow span { color: #DBEAFE; font-size: .92rem; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.soc { background: rgba(255, 255, 255, .15); color: #fff !important; padding: 8px 16px; border-radius: 999px; font-weight: 700; border: 1px solid rgba(255, 255, 255, .25); }
.soc:hover { background: rgba(255, 255, 255, .28); text-decoration: none !important; }
.soc-youtube { background: #DC2626; border-color: #DC2626; } .soc-facebook { background: #1D4ED8; border-color: #1D4ED8; }
.soc-whatsapp { background: #16A34A; border-color: #16A34A; } .soc-telegram { background: #0284C7; border-color: #0284C7; }
.soc-instagram { background: linear-gradient(135deg, #F59E0B, #DB2777, #7C3AED); border: 0; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer-about { grid-column: auto; } }
.footer-brand { font: 800 1.4rem var(--f-head); margin-bottom: 6px; background: linear-gradient(90deg, #FBBF24, #F472B6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.footer-company { color: #94A3B8; font-size: .86rem; }
.footer-head { font-weight: 700; color: #fff; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.footer-bottom { margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .84rem; color: #94A3B8; }
.footer-bottom nav { display: flex; gap: 14px; flex-wrap: wrap; }

/* ================= Accounts / Locker ================= */
.auth-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .auth-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.auth-card, .auth-side { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 22px; }
.auth-card { border-top: 5px solid var(--tc); }
.auth-side h2 { margin-top: 0; font-size: 1.2rem; }
.auth-side .ticks { grid-template-columns: 1fr; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form .btn-lg { margin-top: 6px; }
.auth-form label.check.consent { align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.auth-form label.check.consent input { margin-top: 3px; }
.field-err { color: var(--red); font-size: .86rem; margin: -6px 0 0; font-weight: 600; }
.auth-links { margin: 16px 0 0; font-size: .95rem; color: var(--ink-2); }
.locker-bar { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 5px solid var(--tc); }
.usage { flex: 1 1 260px; }
.usage-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .92rem; color: var(--ink-2); }
.usage-top b { color: var(--ink); }
.locker-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.locker-item { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.li-preview { background: #F1F5FB; height: 150px; display: grid; place-items: center; }
.li-preview img { max-height: 140px; max-width: 92%; object-fit: contain; background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .15); }
.li-preview a { display: grid; place-items: center; width: 100%; height: 100%; }
.li-doc { width: 70px; height: 70px; border-radius: 18px; background: var(--tg); display: grid !important; place-items: center; color: #fff; text-decoration: none; font-weight: 800; font-size: .8rem; }
.li-doc .ico { stroke: #fff; width: 32px; height: 32px; }
a.li-doc { width: 70px !important; height: 70px !important; background: var(--g-red); align-content: center; gap: 0; }
.li-body { padding: 12px 14px 6px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.li-body b { font-family: var(--f-head); line-height: 1.25; word-break: break-word; }
.li-meta { font-size: .8rem; color: var(--ink-3); }
.li-sum { font-size: .86rem; color: var(--ink-2); }
.li-actions { display: flex; gap: 8px; padding: 8px 14px 14px; align-items: center; flex-wrap: wrap; }
.li-actions form { margin: 0; }
.locker-empty { margin-top: 20px; }
.out-acts { display: flex; gap: 6px; }
@media (max-width: 480px) { .out-acts { width: 100%; } .out-acts .btn { flex: 1; } }
.section-head h2 small { font-size: .9rem; color: var(--ink-3); font-weight: 600; }
.calc-result > .btn-save, .step > .btn-save { align-self: flex-start; }
.result .btn-save { width: 100%; max-width: 320px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  body * { visibility: hidden; }
  .invoice-sheet, .invoice-sheet * { visibility: visible; }
  .invoice-sheet { position: absolute; left: 0; top: 0; width: 100%; border: 0; box-shadow: none; padding: 0; font-size: 12px; }
}

/* ---------- Naukri + Jaankari ---------- */
.job-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.job-filter .exam-chip { flex-direction: row; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; border-left-width: 0; border: 1.5px solid var(--line); box-shadow: none; }
.job-filter .exam-chip.is-on { background: var(--tc); color: #fff; border-color: var(--tc); }
.job-card .fc-cta { color: var(--green); }
.photo-cta { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
  border: 1.5px solid #C7D2FE; border-radius: var(--r); padding: 18px 20px; margin: 0 0 24px; }
.photo-cta > div:first-child { flex: 1 1 320px; min-width: 0; }
.photo-cta h2 { margin: 0 0 4px; font-size: 1.2rem; }
.photo-cta p { margin: 0; color: var(--ink-2); }
.photo-cta-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.links-sheet a { font-weight: 700; word-break: break-word; }
.article-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.article-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); border-top: 4px solid var(--purple, #7C3AED); transition: transform .15s; }
.article-card:hover { transform: translateY(-2px); color: var(--ink); }
.article-card b { font: 700 1.1rem var(--f-head); }
.article-card span { color: var(--ink-2); font-size: .93rem; }
.article-card small { color: var(--ink-3); font-weight: 600; margin-top: auto; }
.prose h3 { margin-top: 1.4em; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }
.update-log ul { list-style: none; padding: 0; margin: 10px 0 0; }
.update-log li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.update-log li:last-child { border-bottom: 0; }
.update-log s { color: #B91C1C; }
.update-log strong { color: #15803D; }
.ul-date { display: inline-block; min-width: 92px; margin-right: 8px; font-size: .82rem; font-weight: 700; color: var(--ink-3); }
