/* Purno (ICT Division), served from here so every browser has it: the text font; the styled
   fonts (serif headings, script, blackletter) fall back to it for Bangla letters */
@font-face { font-family: "Purno"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/purno-regular.woff") format("woff"), url("/static/fonts/purno-regular.ttf") format("truetype"); }
@font-face { font-family: "Purno"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/purno-bold.woff") format("woff"), url("/static/fonts/purno-bold.ttf") format("truetype"); }
@font-face { font-family: "Purno"; font-style: italic; font-weight: 400; font-display: swap; src: url("/static/fonts/purno-italic.woff") format("woff"), url("/static/fonts/purno-italic.ttf") format("truetype"); }
@font-face { font-family: "Purno"; font-style: italic; font-weight: 700; font-display: swap; src: url("/static/fonts/purno-bold-italic.woff") format("woff"), url("/static/fonts/purno-bold-italic.ttf") format("truetype"); }

:root {
  --du-blue: #1d2a7a;
  --navy-950: #060f1f;
  --navy-900: #0a1d35;
  --navy-800: #0f2a4a;
  --navy-700: #183a63;
  --gold-600: #b08516;
  --gold-500: #c9a227;
  --gold-400: #e0bd4f;
  --gold-200: #f3dd95;
  --gold-100: #f8edc9;
  --red-500: #c8102e;
  --green-600: #006a4e;
  --ink: #1b2430;
  --muted: #5d6877;
  --line: #e7e1d1;
  --bg: #fffdf7;
  --bg-alt: #f8f2e2;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(10, 29, 53, 0.09);
  --gold-grad: linear-gradient(135deg, #f7e3a1 0%, #d9b03b 45%, #b08516 100%);
  --serif: "Cormorant Garamond", "Purno", Georgia, serif;
  --script: "Great Vibes", "Cormorant Garamond", "Purno", cursive;
  --sans: "Purno", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bangla: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* form controls read in the text font too (browsers give them their own) */
button, input, select, textarea, optgroup { font-family: inherit; }
/* every size is in rem: this one line sets the whole site's text size (18px, 17px on phones) */
html { scroll-behavior: smooth; scroll-padding-top: 100px; font-size: 112.5%; }
@media (max-width: 640px) { html { font-size: 106.25%; } }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); }
h1, h2, h3 { font-variant-numeric: lining-nums; font-family: var(--serif); line-height: 1.15; margin: 0 0 0.5em; color: var(--navy-900); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.bn { font-family: var(--bangla); }
.muted { color: var(--muted); }
.center { text-align: center; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.narrow-sm { width: min(460px, 100% - 32px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em; padding: 0.8em 1.6em; border-radius: 999px;
  font: 600 0.95rem/1.2 var(--sans); text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background .15s, color .15s, box-shadow .15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 0.45em 1.1em; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold-grad); color: var(--navy-950); box-shadow: 0 6px 18px rgba(201,162,39,.35); }
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-20deg); transition: left .6s;
}
.btn-gold:hover::after { left: 130%; }
.btn-ghost { border-color: rgba(243,221,149,.6); color: #fff; }
.btn-ghost:hover { background: rgba(243,221,149,.12); }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); background: transparent; }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn.is-disabled, .btn:disabled { opacity: .65; cursor: default; transform: none; box-shadow: none; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-lg { padding: .95em 1.9em; font-size: 1.05rem; }
.btn-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-arrow { margin-left: 6px; font-size: 1.1em; }
.btn-ghost-gold { border-color: var(--gold-400); color: #fff; background: rgba(6,15,31,.35); }
.btn-ghost-gold:hover { background: rgba(224,189,79,.16); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header (white, as in the convocation design) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  color: var(--navy-900);
  transition: box-shadow .2s;
}
/* hairline gold rule under the navigation */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(201,162,39,.35), #c9a227 12%, #e9c96a 50%, #c9a227 88%, rgba(201,162,39,.35));
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10,29,53,.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--du-blue); text-decoration: none; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-bn { font-weight: 600; font-size: 1.45rem; color: var(--du-blue); }
.brand-title { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; color: var(--du-blue); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { position: relative; color: #1b2a5a; text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 0; white-space: nowrap; }
.nav-links a:hover { color: var(--gold-600); }
.nav-links a.is-active { font-weight: 600; }
.nav-links a.is-active::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -2px; height: 3px; border-radius: 2px; background: var(--gold-500); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.inline-form { margin: 0; display: inline; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 78% 35%, rgba(224,189,79,.35), transparent 42%),
    radial-gradient(circle at 15% 85%, rgba(200,16,46,.18), transparent 40%),
    radial-gradient(circle at 5% 10%, rgba(0,106,78,.25), transparent 35%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800) 60%, var(--navy-700));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(243,221,149,.18) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.caps { position: absolute; inset: 0; pointer-events: none; }
.cap { position: absolute; width: 54px; opacity: .85; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); animation: toss 7s ease-in-out infinite; }
.cap-0 { left: 6%;  top: 18%; width: 40px; animation-delay: -1s; }
.cap-1 { left: 46%; top: 10%; width: 34px; animation-delay: -3s; }
.cap-2 { right: 6%; top: 12%; width: 48px; animation-delay: -5s; }
.cap-3 { right: 34%; bottom: 14%; width: 30px; animation-delay: -2s; }
.cap-4 { left: 38%; bottom: 8%; width: 26px; animation-delay: -4s; opacity: .6; }
.cap-5 { right: 2%; bottom: 30%; width: 36px; animation-delay: -6s; opacity: .7; }
@keyframes toss {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-26px) rotate(14deg); }
}

.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.hero-inner { padding: clamp(28px, 4vw, 56px) 0 clamp(72px, 9vw, 112px); }
.ribbon { margin: 0 0 18px; }
.ribbon span {
  position: relative; display: inline-block; padding: 6px 22px;
  background: var(--gold-grad); color: var(--navy-950);
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%);
}
.eyebrow { color: var(--gold-200); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-weight: 600; }
.hero h1 { color: #fff; font-size: clamp(3.2rem, 9vw, 6.2rem); font-weight: 600; margin-bottom: .15em; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero h1 .edition { display: block; font-size: .72em; font-weight: 700; font-style: italic; letter-spacing: .02em; }
.shimmer {
  background: linear-gradient(100deg, #e0bd4f 0%, #f7e3a1 25%, #e8c55a 45%, #fff5d1 55%, #e0bd4f 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
  text-shadow: none;
}
@keyframes shimmer { to { background-position: -250% 0; } }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d7dfea; max-width: 600px; }
.lead.script { font-family: var(--script); font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--gold-200); line-height: 1.25; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0; }
.meta-item {
  display: flex; flex-direction: column; padding: 14px 20px;
  border: 1px solid rgba(243,221,149,.25); border-left: 3px solid var(--gold-500);
  background: rgba(255,255,255,.06); backdrop-filter: blur(4px); border-radius: 12px; min-width: 220px;
}
.meta-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-200); }
.meta-value { font-weight: 600; }
.countdown { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.countdown div {
  min-width: 82px; padding: 12px 10px; text-align: center; border-radius: 12px;
  background: rgba(6,15,31,.6); border: 1px solid rgba(224,189,79,.5);
}
.countdown span { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--gold-400); line-height: 1; }
.countdown small { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #c7d1de; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* laurel badge */
.hero-badge { position: relative; justify-self: center; width: min(360px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.hero-badge::after {
  content: ""; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,189,79,.35), transparent 70%);
  filter: blur(10px);
}
.logo { object-fit: contain; }
.brand .logo { width: 68px; height: 68px; }
.footer-brand .logo { width: 60px; height: 60px; }
.login-emblem.logo { width: 110px; height: 110px; }
.venue-card .logo { width: 150px; height: 150px; }
@media (max-width: 600px) { .brand .logo { width: 56px; height: 56px; } }
.badge-cap {
  position: absolute; z-index: 2; top: 6%; left: 50%; width: 46%;
  transform: translateX(-50%) rotate(-10deg);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.5));
  animation: cap-bob 4s ease-in-out infinite;
}
@keyframes cap-bob {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-10deg); }
  50% { transform: translateX(-50%) translateY(-8px) rotate(-4deg); }
}
.laurel { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.badge-core {
  position: relative; z-index: 1; width: 52%; margin-top: 14%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, var(--navy-700), var(--navy-950));
  border: 4px solid var(--gold-500);
  box-shadow: 0 0 0 6px rgba(201,162,39,.2), 0 18px 40px rgba(0,0,0,.45), inset 0 0 30px rgba(224,189,79,.25);
}
.badge-num { font-family: var(--serif); font-weight: 700; font-size: clamp(3rem, 7vw, 4.6rem); line-height: .95; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge-text { font-family: var(--script); font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--gold-100); }
.badge-year { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-200); margin-top: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30C240 0 480 0 720 22s480 30 720 0V48H0z' fill='%23fffdf7'/%3E%3Cpath d='M0 30C240 0 480 0 720 22s480 30 720 0' fill='none' stroke='%23c9a227' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- sections ---------- */
.section { padding: clamp(36px, 4.5vw, 60px) 0; position: relative; }
.section-tight { padding: 40px 0 80px; }
.section-alt {
  background:
    radial-gradient(circle at 0 0, rgba(201,162,39,.12), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(201,162,39,.12), transparent 30%),
    var(--bg-alt);
}
.section-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-600); font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: .78rem; margin-bottom: .5em;
}
.section-kicker::before, .section-kicker::after { content: "✦"; font-size: .7rem; color: var(--gold-500); }

.about-grid, .venue-grid, .contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li {
  display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.feature-list li:hover { transform: translateX(6px); border-color: var(--gold-400); }
.feature-list p { margin: 0; color: var(--muted); font-size: .93rem; }
.feature-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); box-shadow: 0 4px 12px rgba(201,162,39,.35);
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--navy-950); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.timeline-item { position: relative; }
.timeline-step {
  position: absolute; top: -16px; left: 20px; width: 36px; height: 36px; border-radius: 50%; z-index: 1;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  background: var(--gold-grad); color: var(--navy-950); box-shadow: 0 0 0 4px var(--bg-alt), 0 4px 10px rgba(0,0,0,.15);
}
.timeline-card {
  height: 100%; padding: 32px 22px 22px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 3px solid var(--gold-500);
}
.timeline-item:last-child .timeline-card { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); border-color: var(--gold-500); }
.timeline-item:last-child .timeline-card h3 { color: var(--gold-200); }
.timeline-item:last-child .timeline-card p { color: #d7dfea; }
.timeline-date { display: inline-block; font-size: .76rem; font-weight: 600; color: var(--gold-600); background: var(--gold-100); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.timeline-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.step { position: relative; padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold-grad); }
.step span { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin-top: 10px; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* notices */
.notice-list { list-style: none; padding: 0; margin: 32px 0 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.notice-list li { display: flex; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--line); align-items: baseline; }
.notice-list li:last-child { border-bottom: 0; }
.notice-list time { flex: none; font-size: .82rem; font-weight: 700; color: var(--gold-600); min-width: 96px; }

/* venue */
.venue-card {
  position: relative; overflow: hidden;
  display: grid; place-items: center; text-align: center; gap: 8px; padding: 48px 24px;
  border-radius: 24px; color: #fff; border: 2px solid var(--gold-500);
  background: radial-gradient(circle at 50% 0, rgba(224,189,79,.35), transparent 60%), linear-gradient(150deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow);
}
.venue-card .bn { font-size: 1.6rem; color: var(--gold-200); margin: 12px 0 0; }
.venue-card p { margin: 0; color: #c7d1de; }

/* faq */
.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--gold-400); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-600); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* contact */
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; flex-direction: column; padding: 20px 24px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.contact-card span { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-600); font-weight: 700; }
.contact-card strong { font-size: 1.1rem; word-break: break-word; }
a.contact-card:hover { border-color: var(--gold-500); }

.not-found { text-align: center; min-height: 50vh; display: grid; place-items: center; }

/* ---------- inner pages use .dash-hero (one header style for the whole portal) ---------- */

.auth-shell { position: relative; overflow: hidden; isolation: isolate; padding: clamp(22px, 4vw, 48px) 0; background: #0b1a3a; }
.auth-shell > .container { position: relative; z-index: 2; }
.auth-shell .hero2-photo { background-position: 50% 35%; }
.auth-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,26,58,.94) 0%, rgba(11,26,58,.84) 45%, rgba(11,26,58,.62) 100%),
    linear-gradient(0deg, rgba(6,15,31,.6) 0%, transparent 40%);
}
/* soft gold light that slowly breathes, like the home page hero */
.auth-glow {
  position: absolute; inset: -10%; pointer-events: none;
  background:
    radial-gradient(circle at 22% 32%, rgba(224,189,79,.3), transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(243,221,149,.16), transparent 30%);
  animation: auth-glow 7s ease-in-out infinite alternate;
}
@keyframes auth-glow { from { opacity: .55; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .auth-glow { animation: none; } }
.auth-shell .confetti { z-index: 1; }
.auth-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 40px; align-items: start; }
.auth-aside {
  position: sticky; top: 100px; overflow: hidden;
  padding: 36px 30px; border-radius: 24px; color: #fff;
  background: radial-gradient(circle at 80% 10%, rgba(224,189,79,.3), transparent 50%), linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border: 2px solid var(--gold-500);
}
.auth-aside h1 { color: #fff; font-size: 2.2rem; }
.auth-aside p { color: #d7dfea; }
.aside-laurel { position: absolute; right: -60px; bottom: -60px; width: 240px; opacity: .25; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; position: relative; }
.check-list li { padding-left: 28px; position: relative; color: #e8edf4; font-size: .93rem; }
.check-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-400); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 32px); }
.form-card { border-top: 4px solid var(--gold-500); }
.login-card { text-align: left; }
.login-card h1 { text-align: center; font-size: 2rem; }
.login-emblem { margin: 0 auto 12px; }

fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--navy-900);
  padding: 0; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; width: 100%;
}
legend::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-400), transparent); }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.req { color: var(--red-500); }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1.5px solid #d9d2bf; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(201,162,39,.18); }
.field:has(.field-error) input, .field:has(.field-error) select, .field:has(.field-error) textarea { border-color: var(--red-500); }
.hint { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.field-error { color: var(--red-500); font-size: .82rem; font-weight: 500; margin: 6px 0 0; }
.form-foot { text-align: center; margin: 16px 0 0; color: var(--muted); font-size: .92rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid #d9d2bf; border-radius: 12px; cursor: pointer; font-weight: 400; margin: 0; }
.choice:has(input:checked) { border-color: var(--gold-500); background: var(--gold-100); }
.choice input { margin-top: 4px; accent-color: var(--gold-600); }
.choice small { display: block; color: var(--muted); font-size: .8rem; }

.photo-field { display: flex; gap: 20px; align-items: flex-start; }
.photo-preview {
  flex: none; width: 110px; height: 132px; border-radius: 10px; overflow: hidden;
  border: 2px dashed var(--gold-400); background: var(--bg-alt);
  display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .8rem;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.declaration { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .92rem; padding: 14px 16px; background: var(--bg-alt); border-radius: 12px; }
.declaration input { margin-top: 4px; accent-color: var(--gold-600); }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: .93rem; border: 1px solid; }
.alert-error { background: #fdecef; border-color: #f2b8c2; color: #8a0f24; }
.alert-info { background: #eef4fb; border-color: #c4d6ec; color: var(--navy-700); }
.alert-success { background: #e9f6f0; border-color: #a9dcc6; color: #00553e; }
.alert-success::before { content: "🎉 "; }

/* dashboard header: the home page hero, compact */
.dash-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #0b1a3a; }
.dash-hero .hero2-photo { background-position: 60% 38%; }
.dash-hero .confetti { z-index: 1; }
.dash-hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(10px, 1.6vw, 18px); padding: clamp(10px, 1.6vw, 16px) 0; }
.dash-hero .ed-num { font-size: clamp(2.6rem, 5vw, 3.6rem); flex: none; }
.dash-hero-text { min-width: 0; }
.dash-kicker { margin: 0 0 2px; color: var(--gold-200); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.dash-kicker .bn { letter-spacing: 0; text-transform: none; }
@media (max-width: 600px) { .dash-kicker .bn { display: none; } .dash-hero .ed-num { font-size: 2.4rem; } }
.dash-hero h1 { margin: 0 0 2px; color: #fff; font-size: clamp(1.25rem, 2.6vw, 1.8rem); line-height: 1.15; text-shadow: 0 3px 18px rgba(0,0,0,.4); overflow-wrap: anywhere; }
.dash-hero-text > p:last-child { margin: 0; color: #e6ebf5; font-size: .88rem; }
.dash-body { padding: clamp(18px, 3vw, 28px) 0 clamp(36px, 5vw, 56px); }
.dash-body .card { padding: clamp(16px, 2.6vw, 24px); }
.dash-body .card-head { margin-bottom: 10px; }
.dash-body .card-head h2, .dash-body .profile-card h2 { font-size: 1.35rem; }
.dash-body .profile-card h2 { margin-bottom: 10px; }
.dash-body .kv { gap: 6px 14px; font-size: .88rem; }
.dash-body .empty { padding: 16px 10px; }
.dash-body .empty img { width: 52px; margin-bottom: 8px; }
.dash-body .apply-rules { margin-top: 16px; padding: 12px 14px; }
.dash-body .apply-rules ul { gap: 4px; }
.dash-body .apply-rules ul.bn { font-size: .92rem; line-height: 1.55; }
.dash-body .apply-rules ul[lang=en] { margin-top: 8px; padding-top: 8px; font-size: .84rem; }
.dash-body .next-steps { margin-top: 14px; padding-top: 12px; }
.dash-body .sync-note { margin-top: 10px; }
.dash-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: start; }
.dash-grid > * { min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h2, .profile-card h2 { font-size: 1.6rem; margin: 0; }
.profile-card h2 { margin-bottom: 14px; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty img { margin: 0 auto 12px; }
.empty .bn { display: block; margin-top: 4px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--gold-200); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.status { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.status-pending { background: var(--gold-100); color: #7a5a06; }
.status-ok { background: #dff3ea; color: #00553e; }
.status-bad { background: #fde3e7; color: #8a0f24; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.apply-rules { margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: var(--bg-alt); border-left: 4px solid var(--gold-500); }
.apply-rules h3 { font-family: var(--sans); font-size: 1rem; margin: 0 0 8px; color: var(--navy-900); }
.apply-rules h3 .bn { display: block; font-size: 1.08rem; }
.apply-rules ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; color: var(--ink); }
.apply-rules ul.bn { font-size: .98rem; line-height: 1.65; }
.apply-rules ul[lang=en] { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--gold-400); color: var(--muted); }
.next-steps { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--gold-400); }
.next-steps h3 { font-size: 1.2rem; }
.next-steps ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: .9rem; display: grid; gap: 6px; }
.app-head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.app-photo { width: 104px; height: 104px; object-fit: cover; border-radius: 10px; border: 3px solid var(--gold-400); }
.app-head h2 { font-size: 1.8rem; margin-bottom: 4px; overflow-wrap: anywhere; }
.app-head > div { min-width: 0; }

/* ---------- login / registration tabs (ECO) ---------- */
.auth-wrap { width: min(760px, 100% - 32px); }
.auth-wrap.auth-split {
  width: min(1120px, 100% - 32px); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 40px); align-items: start;
}
.auth-info { color: #e6ebf5; }
.auth-info .eco-notice {
  margin: 0; padding: 16px 18px; background: linear-gradient(135deg, #fff8e1, #fdf1cc); border: 1px solid var(--gold-400);
  border-left: 5px solid var(--gold-500); box-shadow: 0 18px 44px rgba(0,0,0,.3);
}
.auth-info .eco-notice p { color: #3b3220; font-size: .9rem; }
.auth-info .eco-notice .eco-bn { font-size: 1.02rem; line-height: 1.6; }
.auth-info .eco-notice .eco-bn strong { color: var(--navy-900); }
.auth-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.auth-steps li {
  padding: 12px 16px; border-radius: 12px; font-size: .95rem; line-height: 1.55; color: var(--ink);
  background: #fff; border-left: 4px solid var(--gold-500); box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.auth-steps strong { color: var(--navy-900); }
.auth-steps .en { display: block; margin-top: 3px; color: var(--muted); font-size: .85rem; }
.auth-main { min-width: 0; }
@media (max-width: 900px) {
  .auth-wrap.auth-split { grid-template-columns: 1fr; width: min(760px, 100% - 32px); gap: 14px; }
  .auth-steps { display: none; }
}
.narrow-auth { width: min(560px, 100% - 32px); }
.eco-notice {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px;
  padding: 10px 14px; border-radius: 12px;
  background: linear-gradient(135deg, #fff8e1, #fdf1cc); border: 1px solid var(--gold-400);
  border-left: 5px solid var(--gold-500); box-shadow: var(--shadow);
}
.eco-notice .logo { flex: none; width: 34px; height: 34px; }
.eco-notice p { margin: 0; font-size: .82rem; line-height: 1.5; color: #3b3220; }
.eco-notice .eco-bn { font-size: .86rem; line-height: 1.55; }
.eco-notice .eco-en { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--gold-400); }
.eco-notice a { color: var(--navy-700); font-weight: 600; }
.eco-down-bn { display: block; margin-top: 6px; }
.existing-modal {
  position: relative; width: min(540px, 100% - 32px); max-height: calc(100% - 32px); overflow: auto; padding: 26px 28px 24px; margin: 20px 0;
  border: 1px solid #f2b8c2; border-top: 5px solid var(--red-500); border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.existing-modal:modal { margin: auto; }
.existing-modal:not(:modal) { position: static; width: auto; margin: 18px 0 0; }
.existing-modal::backdrop { background: rgba(6,15,31,.6); backdrop-filter: blur(3px); }
.existing-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.existing-close:hover { background: var(--bg-alt); color: var(--ink); }
.existing-lang h2 { margin: 0 36px 8px 0; font-family: var(--bangla); font-size: 1.3rem; font-weight: 700; line-height: 1.45; color: #8a0f24; }
.existing-lang h3 { margin: 0 0 6px; font-family: var(--sans); font-size: 1.02rem; font-weight: 700; color: #8a0f24; }
.existing-lang p { margin: 0 0 8px; font-size: .93rem; line-height: 1.6; }
.existing-lang.bn p { font-size: 1rem; line-height: 1.75; }
.existing-lang[lang=en] { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e6c3ca; }
.existing-lang[lang=en] p { color: #3a4452; }
.existing-tip { color: var(--muted) !important; font-size: .88rem !important; }
.existing-rows { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px 16px; margin: 12px 0 0; padding: 12px 16px; background: var(--bg-alt); border-radius: 10px; font-size: .92rem; }
.existing-rows dt { color: var(--muted); }
.existing-rows dt small { display: block; font-size: .76rem; }
.existing-rows dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.existing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.auth-card { padding: 0; overflow: hidden; border-top: 4px solid var(--gold-500); }
.auth-card > .tab-panel, .narrow-auth .auth-card, .auth-card.flow-card { padding: clamp(16px, 3vw, 24px) clamp(16px, 3.5vw, 28px); }
.auth-card h1 { font-size: clamp(1.45rem, 3.4vw, 1.8rem); margin-bottom: .15em; }
.auth-card h1 + .muted { font-size: .86rem; margin: 0 0 14px; }
.auth-card .field { margin-bottom: 12px; }
.auth-card label { margin-bottom: 4px; }
.auth-card input:not([type=checkbox]):not([type=radio]), .auth-card select { padding: 9px 12px; }
.auth-card .alert { padding: 10px 14px; margin-bottom: 14px; }
.tab-list { display: grid; grid-template-columns: 1fr 1fr; background: #eceef1; border-bottom: 1px solid var(--line); }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 0; padding: 10px 12px;
  text-decoration: none; color: #8b929c; font-weight: 600; border-bottom: 3px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.tab small { font-weight: 500; font-size: .74rem; }
.tab:hover { color: #5d6570; background: #e3e6ea; }
.tab.is-active { color: var(--navy-900); background: #fff; border-bottom-color: var(--gold-500); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.small-link { font-size: .82rem; }
.auth-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: .86rem; color: var(--muted); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-700); text-decoration: underline; cursor: pointer; }
.resend-form { text-align: center; margin: 16px 0 0; font-size: .9rem; }
.prefix-row { grid-template-columns: 1fr 2fr; }
.captcha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.captcha img { height: 42px; width: auto; border-radius: 8px; border: 1px solid var(--gold-400); background: var(--gold-100); }
.captcha-refresh { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gold-500); background: #fff; color: var(--gold-600); font-size: 1.2rem; cursor: pointer; }
.captcha-refresh:hover { background: var(--gold-100); }
.captcha .captcha-input { flex: 1 1 140px; width: auto; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; }
.otp-input { font-size: 1.5rem !important; letter-spacing: .5em; text-align: center; font-weight: 700; }
.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 14px; counter-reset: none; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); padding-bottom: 6px; border-bottom: 3px solid var(--line); }
.stepper span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--line); color: var(--muted); flex: none; }
.stepper .is-current { color: var(--navy-900); border-bottom-color: var(--gold-500); }
.stepper .is-current span { background: var(--gold-grad); color: var(--navy-950); }
.stepper .is-done { color: #00553e; border-bottom-color: #8fd1b5; }
.stepper .is-done span { background: #dff3ea; color: #00553e; }
.sync-note { margin: 14px 0 0; font-size: .78rem; color: var(--muted); }
.btn-subtle { border-color: rgba(243,221,149,.3); }
@media (max-width: 600px) {
  .eco-notice .logo { width: 28px; height: 28px; }
  .prefix-row { grid-template-columns: 1fr; }
  .stepper li { font-size: 0; gap: 0; justify-content: center; }
}

/* ---------- degree selection & certificate application ---------- */
.wizard { margin-bottom: 20px; }
.degree-list { display: grid; gap: 12px 16px; } /* same columns as .field-row below */
.degree-option {
  display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 11px 14px; cursor: pointer;
  border: 1.5px solid #d9d2bf; border-radius: 10px; background: #fff; font-weight: 400;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.degree-option:hover { border-color: var(--gold-400); }
.degree-option:has(input:checked) { border-color: var(--gold-500); background: var(--gold-100); box-shadow: 0 6px 18px rgba(201,162,39,.18); }
.degree-option input { margin-top: 3px; accent-color: var(--gold-600); width: 18px; height: 18px; flex: none; }
.degree-option.is-disabled { opacity: .6; cursor: not-allowed; background: var(--bg-alt); }
.degree-body { display: grid; gap: 1px; min-width: 0; flex: 1; }
.degree-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.degree-top strong { font-size: .95rem; color: var(--navy-900); }
.degree-level { font-size: .74rem; font-weight: 600; color: var(--gold-600); background: var(--gold-100); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.degree-meta { color: var(--muted); font-size: .85rem; }
.degree-other { border-style: dashed; }
.choice-row.three-col { grid-template-columns: repeat(3, 1fr); }
.eco-badge { display: inline-block; margin-left: 8px; font: 600 .7rem/1.6 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #00553e; background: #dff3ea; padding: 1px 10px; border-radius: 999px; vertical-align: middle; }
.eco-badge.is-manual { color: #7a5a06; background: var(--gold-100); }
.eco-record { background: var(--bg-alt); padding: 16px 18px; border-radius: 12px; }
.eco-id-card {
  display: grid; gap: 6px; justify-items: start; margin-bottom: 20px; padding: 20px 22px; border-radius: var(--radius);
  color: #fff; background: radial-gradient(circle at 90% 0, rgba(224,189,79,.35), transparent 50%), linear-gradient(150deg, var(--navy-800), var(--navy-950));
  border: 2px solid var(--gold-500); box-shadow: var(--shadow);
}
.eco-id-card.is-pending { background: var(--bg-alt); color: var(--ink); border-style: dashed; }
.eco-id-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-200); }
.eco-id-card.is-pending .eco-id-label { color: var(--gold-600); }
.eco-id { font-variant-numeric: lining-nums; overflow-wrap: anywhere; font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.1; letter-spacing: .03em; }
.eco-id-card .muted { color: #c7d1de; font-size: .85rem; }
.eco-id-card form { margin: 6px 0 0; }
@media (max-width: 600px) {
  .choice-row.three-col { grid-template-columns: 1fr; }
  .app-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- multi-step application ---------- */
.work-panel { width: min(1140px, 100% - 32px); }
@media (min-width: 900px) {
  .work-panel .kv-2 { grid-template-columns: auto 1fr auto 1fr; column-gap: 24px; }
  .work-panel .field-row.three { grid-template-columns: repeat(3, 1fr); }
  .work-panel .degree-list { grid-template-columns: 1fr 1fr; }
  .work-panel .degree-other { grid-column: 1 / -1; }
}
.main-steps li { font-size: .9rem; }
.form-actions .btn-left { margin-right: auto; }
.field-label { font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.hint-list { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .82rem; }
.photo-large { width: 150px; height: 180px; }
.same-address { margin: 4px 0 14px; }
.submit-box { padding: 18px; border: 1.5px dashed var(--gold-400); border-radius: 14px; background: #fffaf0; }
.submit-box legend { margin-bottom: 4px; }
.ok-line { color: #00553e; font-weight: 600; margin: 0 0 10px; }
.incomplete-list { margin: 0 0 12px; padding-left: 20px; }
.freeze-note { margin: 12px 0; }
.freeze-note .bn { display: block; margin-top: 6px; }
.status-draft { background: #eef1f5; color: #3d4b5c; }
.step-card { margin-bottom: 16px; opacity: .75; }
.step-card.is-active { opacity: 1; border-left: 4px solid var(--gold-500); }
.step-card h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step-card h2 .muted { font-size: 1rem; font-family: var(--bangla); }
.step-no { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 .9rem var(--sans); background: var(--gold-grad); color: var(--navy-950); }
.clearance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.clearance-grid.single { grid-template-columns: 1fr; }
.clearance { display: grid; gap: 3px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-alt); }
.clear-num { font-size: .72rem; font-weight: 700; color: var(--gold-600); letter-spacing: .08em; }
.clear-sub { font-size: .82rem; color: var(--muted); }
.clear-state { font-weight: 600; font-size: .9rem; margin-top: 4px; }
.clear-note { font-size: .82rem; color: #8a0f24; }
.clearance-approved { border-color: #8fd1b5; background: #effaf5; }
.clearance-approved .clear-state { color: #00553e; }
.clearance-rejected { border-color: #f2b8c2; background: #fdf1f3; }
.clearance-rejected .clear-state { color: #8a0f24; }
.clearance-pending .clear-state { color: #7a5a06; }
.clear-money { font-size: .85rem; color: var(--navy-800); }
.degree-check { margin: 10px 0 0; font-size: .9rem; font-weight: 600; color: #7a5a06; }
.degree-check-approved { color: #00553e; }
.degree-check-rejected { color: #8a0f24; }
.money-box { margin: 4px 0 12px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-alt); }
.fee-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.fee-table td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table td.num { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 12px; }
.money-total { margin: 8px 0 0; }
.approvals-card summary { cursor: pointer; }
.approvals-card summary h2 { display: inline; }
.approvals-card h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.approvals-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; margin-top: 12px; }
.approvals-head .kv { min-width: 0; }
tr.is-removed td { color: var(--muted); text-decoration: line-through; }
tr.is-removed td small { text-decoration: none; }
.summary-card { margin-top: 8px; }
.summary-card summary { cursor: pointer; list-style: none; }
.summary-card summary::-webkit-details-marker { display: none; }
.summary-card summary h2 { display: inline; font-size: 1.4rem; }
.summary-card summary::after { content: " ▾"; color: var(--gold-600); }
.summary-card[open] summary { margin-bottom: 16px; }
.inline-retry { display: inline; margin-left: 8px; }
.stepper li { min-width: 0; }
@media (max-width: 600px) {
  .main-steps li { font-size: .68rem; flex-direction: column; gap: 4px; text-align: center; }
  .clearance-grid { grid-template-columns: 1fr; }
  .form-actions .btn-left { margin-right: 0; }
}

/* ---------- landing page (convocation design) ---------- */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 84px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 14px;
    background: #fff; padding: 8px 20px 20px; box-shadow: 0 16px 30px rgba(10,29,53,.14); border-bottom: 3px solid var(--gold-500);
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid #eef0f4; }
  .nav-links a.is-active::after { display: none; }
  .nav-tools { flex-wrap: wrap; }
}

.hero2 { position: relative; overflow: hidden; color: #fff; background: #0b1a3a; }
.container.wide { width: min(1400px, 100% - 48px); }
.hero2-photo {
  position: absolute; inset: 0;
  background: url("/static/img/hero-campus.jpg") 60% 38% / cover no-repeat;
}
.hero2-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 40%, rgba(224,189,79,.16), transparent 38%),
    linear-gradient(90deg, rgba(11,26,58,.94) 0%, rgba(11,26,58,.86) 28%, rgba(11,26,58,.55) 46%, rgba(11,26,58,.12) 64%, rgba(11,26,58,0) 76%),
    linear-gradient(0deg, rgba(6,15,31,.6) 0%, transparent 32%);
}
.hero2-inner { position: relative; padding: clamp(48px, 7vw, 84px) 0 150px; }
.hero2-copy { width: fit-content; max-width: 100%; }
.hero2-title { display: flex; align-items: flex-end; gap: clamp(8px, 1.4vw, 16px); }
.ed-num {
  font-family: var(--serif); font-weight: 700; font-variant-numeric: lining-nums;
  font-size: clamp(6rem, 12vw, 10rem); line-height: .78; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff0bf 0%, #e9c45a 42%, #b8861a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.4));
}
.ed-right { display: flex; flex-direction: column; min-width: 0; }
.ed-suffix { font-size: .3em; line-height: 1; vertical-align: top; position: relative; top: .02em; margin-left: .03em; letter-spacing: 0; }
.hero2 h1 {
  font-family: var(--serif); font-weight: 700; text-transform: uppercase; color: #fff;
  font-size: clamp(2.6rem, 6.4vw, 5.1rem); letter-spacing: .02em; line-height: 1; margin: 6px 0 10px;
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.ed-univ { margin: 0; color: #fff; font-family: var(--serif); font-weight: 600; text-transform: uppercase; letter-spacing: .48em; font-size: clamp(.95rem, 1.8vw, 1.45rem); }
.hero2-tags { text-align: center; }
.hero2-tag-bn { margin: 18px 0 2px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; color: var(--gold-400); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero2-tag-en { margin: 0 0 20px; font-size: clamp(1rem, 1.6vw, 1.22rem); letter-spacing: .06em; color: #e6ebf5; }
.hero2-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.hero2 .countdown { justify-content: center; margin: 26px 0 0; }

.quick-wrap { position: relative; z-index: 2; margin-top: -80px; }
.quick-links {
  display: grid; grid-template-columns: repeat(6, 1fr); padding: 22px 10px;
  background: #fff; border-radius: 18px; box-shadow: 0 18px 44px rgba(10,29,53,.16);
}
.quick-links a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 8px; text-align: center;
  color: var(--navy-900); text-decoration: none; border-right: 1px solid #eceef3; transition: transform .15s;
}
.quick-links a:last-child { border-right: 0; }
.quick-links a:hover { transform: translateY(-3px); }
.quick-links a:hover strong { color: var(--gold-600); }
.quick-links svg { width: 42px; height: 42px; margin-bottom: 10px; fill: none; stroke: var(--du-blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.quick-links strong { font-size: 1rem; }
.quick-links span { font-size: .82rem; color: var(--muted); }

.info-row-wrap { padding: 26px 0 10px; }
.info-row { display: grid; grid-template-columns: 1.05fr 1.15fr .62fr; gap: 20px; align-items: stretch; }
.quote-card {
  position: relative; overflow: hidden; margin: 0; padding: 38px 40px 32px; border-radius: 18px; color: #fff;
  display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow);
  background: radial-gradient(circle at 100% 100%, rgba(201,162,39,.2), transparent 45%), linear-gradient(135deg, #172d6b, #0b1a45);
}
.quote-card blockquote { position: relative; margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.6; font-weight: 500; }
.quote-card figcaption { position: relative; margin-top: 14px; color: #d7dfea; }
.quote-lotus { position: absolute; right: -16px; bottom: -12px; width: 170px; opacity: .5; }
.facts-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 22px; align-content: center; padding: 30px 34px;
  background: #fff; border: 1px solid #f0ece2; border-radius: 18px; box-shadow: var(--shadow);
}
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact svg { flex: none; width: 38px; height: 38px; fill: none; stroke: var(--gold-600); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fact strong { display: block; font-size: .95rem; color: var(--navy-900); }
.fact span { color: var(--muted); font-size: .9rem; }
.photo-card { margin: 0; min-height: 200px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }

@media (max-width: 1100px) {
  .quick-links { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
  .quick-links a { border-right: 0; }
  .info-row { grid-template-columns: 1fr 1fr; }
  .photo-card { grid-column: 1 / -1; height: 260px; }
}
@media (max-width: 760px) {
  .hero2-photo { background-position: 78% 40%; }
  .hero2-shade { background: linear-gradient(180deg, rgba(11,26,58,.92) 0%, rgba(11,26,58,.78) 55%, rgba(11,26,58,.9) 100%); }
  .hero2-copy { width: auto; }
  .ed-num { font-size: 21vw; }
  .hero2 h1 { font-size: 8.4vw; }
  .ed-univ { font-size: 3vw; letter-spacing: .2em; }
  .hero2-tag-bn { font-size: 6.4vw; }
  .hero2-actions { gap: 10px; margin-top: 20px; flex-wrap: nowrap; }
  .hero2-actions .btn { flex: 1 1 0; min-width: 0; padding: .55em .8em; font-size: .82rem; gap: .4em; box-shadow: none; }
  .hero2-actions .btn-2l { align-items: center; text-align: center; white-space: normal; }
  .hero2-actions .btn-2l small { font-size: .82em; }
  .hero2-actions .btn-arrow, .hero2-actions .btn-ico { display: none; }
  .hide-sm { display: none; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .info-row, .facts-card { grid-template-columns: 1fr; }
  .quote-card { padding: 30px 26px; }
  .brand-bn { font-size: 1.15rem; }
  .brand-title { font-size: 1rem; }
}

/* ---------- Bangla shown beside English (no language switch) ---------- */
.h2-bn { margin: -.35em 0 1.1em; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; color: var(--gold-600); }
.section-kicker .bn { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.step h3 span.h3-bn, .h3-bn { display: block; margin-top: 2px; font-family: var(--bangla); font-size: 1rem; font-weight: 600; line-height: 1.4; background: none; -webkit-text-fill-color: currentColor; color: var(--gold-600); }
.btn-2l { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-2l small { font-size: .78em; font-weight: 500; opacity: .85; margin-top: 2px; }
.quick-links em { font-style: normal; font-weight: 600; font-size: .9rem; color: var(--gold-600); }
.fact strong em { display: block; font-style: normal; font-weight: 600; font-size: .88rem; color: var(--gold-600); }

/* ---------- festive hero: flowers, lotus, certificate lettering ---------- */
.hero2-lotus { position: absolute; z-index: 1; left: -80px; bottom: 20px; width: clamp(170px, 17vw, 250px); opacity: .32; pointer-events: none; }
.hero2 .confetti { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero2-inner { z-index: 2; padding-top: clamp(36px, 4.5vw, 64px); padding-bottom: 118px; }
.hero2-shade { z-index: 0; }
.hero2-photo { z-index: 0; }

/* "54th Convocation" in certificate (blackletter) lettering */
.ed-num, .hero2 h1 { font-family: "UnifrakturMaguntia", "Old English Text MT", var(--serif); }
/* the gradient is painted in the padding box too: room above the line for the head of ৪ */
.ed-num { font-weight: 400; letter-spacing: 0; line-height: .82; padding-top: .2em; margin-top: -.2em; }
.ed-suffix { font-family: "UnifrakturMaguntia", var(--serif); top: .08em; }
.hero2 h1 {
  text-transform: none; font-weight: 400; letter-spacing: .01em;
  font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .95; margin: 0 0 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fff6dc 60%, #f3dd95 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.5));
}
.ed-univ { padding-left: .2em; }
.hero2-title { position: relative; }
.hero2-title::before {
  content: ""; position: absolute; z-index: -1; left: -6%; right: -8%; top: -30%; bottom: -30%;
  background: radial-gradient(closest-side, rgba(224,189,79,.2), transparent);
}
@media (max-width: 760px) {
  .hero2-lotus { width: 160px; bottom: 60px; }
  .hero2-inner { padding-top: 28px; padding-bottom: 104px; }
  .hero2 h1 { font-size: 11vw; }
  .ed-num { font-size: 22vw; }
}

/* ---------- compact merged sections ---------- */
.about-steps { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.about-copy p:last-child { margin-bottom: 0; color: var(--ink); }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.steps-list li { display: flex; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.steps-list strong { display: block; font-size: .98rem; color: var(--navy-900); }
.steps-list strong em, .tc-n + .tc-date + strong em { font-style: normal; font-weight: 600; font-size: .85rem; color: var(--gold-600); margin-left: 4px; }
.steps-list p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--gold-grad); color: var(--navy-950); }

.section-head { margin-bottom: 18px; }
.section-head h2, .news-faq h2 { margin-bottom: .3em; }
.h2-inline-bn { font-size: .55em; font-weight: 600; color: var(--gold-600); margin-left: 8px; white-space: nowrap; }
.timeline-compact { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; counter-reset: none; }
.timeline-compact li {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: 12px; box-shadow: var(--shadow);
}
.timeline-compact li:last-child { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); border-color: var(--gold-500); }
.timeline-compact li:last-child strong { color: var(--gold-200); }
.timeline-compact li:last-child p { color: #d7dfea; }
.tc-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--gold-grad); color: var(--navy-950); }
.tc-date { align-self: flex-start; font-size: .72rem; font-weight: 600; color: var(--gold-600); background: var(--gold-100); padding: 1px 8px; border-radius: 999px; }
.timeline-compact strong { font-family: var(--serif); font-size: 1.08rem; line-height: 1.2; color: var(--navy-900); }
.timeline-compact p { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.timeline-compact strong em { display: block; font-family: var(--bangla); font-style: normal; font-size: .82rem; font-weight: 600; color: var(--gold-600); margin: 2px 0 0; }
.timeline-compact li:last-child strong em { color: var(--gold-400); }
.tc-date { margin: 4px 0 2px; }
.timeline-compact p.tc-bn { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: .86rem; line-height: 1.55; }
.timeline-compact li:last-child p.tc-bn { border-top-color: rgba(255,255,255,.2); }
.fact-bn { display: block; color: var(--muted); font-size: .88rem; }
.notice-bn { display: block; margin-top: 2px; color: var(--muted); font-size: .9rem; }

.news-faq { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.news-faq .notice-list, .news-faq .faq { margin-top: 10px; }
.news-faq .faq details { padding: 2px 16px; }
.news-faq .faq summary { padding: 11px 0; font-size: .93rem; }

.fact-link { display: inline-block; margin-top: 4px; font-size: .82rem; font-weight: 600; color: var(--navy-700); text-decoration: none; }
.fact-link:hover { color: var(--gold-600); }

.footer-contact { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.footer-contact strong { color: #fff; margin-bottom: 4px; }
.footer-contact a { color: #c7d1de; text-decoration: none; }
.footer-contact a:hover { color: var(--gold-400); }

@media (max-width: 1100px) {
  .timeline-compact { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .about-steps, .news-faq { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .quick-links { grid-template-columns: repeat(3, 1fr); padding: 12px 4px; row-gap: 4px; }
  .quick-links a { padding: 8px 2px; gap: 1px; }
  .quick-links svg { width: 28px; height: 28px; margin-bottom: 4px; }
  .quick-links strong { font-size: .72rem; line-height: 1.2; }
  .quick-links em { font-size: .68rem; }
  .quick-links span { display: none; }
  .steps-list { grid-template-columns: 1fr; }
  .timeline-compact { grid-template-columns: 1fr 1fr; }
  .h2-inline-bn { display: block; margin: 4px 0 0; font-size: .6em; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: #c7d1de; padding-top: 48px; position: relative; }
.footer-ornament { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold-grad); }
.footer-ornament span { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-950); color: var(--gold-400); border: 2px solid var(--gold-500); font-size: .8rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 10px; }
.footer-brand .bn { color: var(--gold-200); }
.site-footer .muted { color: #8e9bb0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: #c7d1de; text-decoration: none; }
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .85rem; color: #8e9bb0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-bottom: 20px; }
  .hero-badge { width: min(260px, 70%); margin-bottom: 70px; }
  .auth-grid, .dash-grid { grid-template-columns: 1fr; }
  .auth-aside { position: relative; top: 0; }
}
@media (max-width: 860px) {
  .about-grid, .venue-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .timeline, .steps { grid-template-columns: 1fr; }
  .meta-item { min-width: 0; flex: 1 1 100%; }
  .notice-list li { flex-direction: column; gap: 4px; }
  .brand-title { font-size: 1rem; }
  .field-row, .field-row.three, .choice-row { grid-template-columns: 1fr; }
  .photo-field { flex-direction: column; }
  .form-actions .btn { flex: 1; }
  .cap-1, .cap-3, .cap-4 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .confetti { display: none; }
}

/* ---------- admin panel ---------- */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px clamp(16px, 3vw, 28px); color: #fff;
  background: radial-gradient(circle at 85% 0, rgba(224,189,79,.25), transparent 45%), linear-gradient(150deg, var(--navy-800), var(--navy-950));
}
.admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.admin-brand .logo { flex: none; width: auto; height: 44px; } /* the crest is portrait (778 x 970) */
.admin-brand strong { display: block; font-family: var(--serif); font-size: 1.2rem; }
.admin-brand small { display: block; color: var(--gold-200); font-size: .78rem; }
.admin-user { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .88rem; }
.admin-user small { color: #c7d1de; }
.admin-user a { color: var(--gold-200); }
.admin-user .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 24px clamp(16px, 3vw, 28px); max-width: 1300px; margin: 0 auto; }
.admin-layout.no-menu { grid-template-columns: minmax(0, 1fr); }
.admin-menu { display: grid; gap: 6px; align-content: start; }
.admin-menu a {
  display: flex; flex-direction: column; padding: 10px 14px; border-radius: 10px; text-decoration: none;
  color: var(--navy-800); font-weight: 600; border: 1px solid var(--line); background: #fff;
}
.admin-menu a small { font-weight: 500; color: var(--muted); }
.admin-menu a.is-active { border-color: var(--gold-500); background: var(--gold-100); }
.admin-main { min-width: 0; }
.admin-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .2em; }
.admin-head p .bn { display: block; margin-top: 4px; }
.admin-card { margin-bottom: 20px; }
.admin-card h1 { font-size: 1.7rem; }
.admin-card h2 { font-size: 1.35rem; margin-bottom: 12px; }
.admin-card.narrow { max-width: 460px; margin: 30px auto; }
.sync-form fieldset { border: 1px dashed var(--gold-400); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.sync-form legend { padding: 0 6px; font-weight: 600; font-size: .92rem; }
.sync-form .muted .bn { display: block; margin-top: 4px; }
.payload { background: var(--bg-alt); border-radius: 10px; padding: 12px 14px; font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 14px; }
@media (max-width: 760px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-menu { display: flex; flex-wrap: wrap; min-width: 0; }
}

/* "Login as student": the student portal opened from the admin panel */
.impersonation-bar { background: #fff4d6; border-bottom: 1px solid var(--gold-400); color: #6b4a00; font-size: .88rem; }
.impersonation-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; }
.impersonation-bar .bn { display: block; font-size: .82rem; }

/* admin: students */
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 6px; }
.student-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.student-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.impersonation-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.student-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 20px; margin: 0; }
.student-grid dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.student-grid dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.find-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.find-form .field { margin: 0; }
.search-form { display: flex; gap: 8px; }
.search-form input { min-width: 220px; }
@media (max-width: 760px) { .find-form { grid-template-columns: 1fr; } }
.degree-reason { display: block; margin-top: 4px; font-size: .82rem; color: #8a0f24; }
.saved-photo-note { margin-top: 10px; }
.saved-photo-note .bn { display: block; margin-top: 4px; }

/* Step 1's four parts: folder tabs that form the header of the section's card */
.section-nav { position: relative; z-index: 1; margin-top: 6px; }
.sub-tabs { display: flex; gap: 3px; align-items: flex-end; }
.sub-tab {
  flex: 0 1 auto; display: flex; align-items: center; gap: 5px; padding: 7px 16px 6px;
  margin-bottom: -1px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0;
  background: var(--bg-alt); color: var(--muted); text-decoration: none; white-space: nowrap; font-size: .86rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.sub-tab:hover { background: #fffaf0; color: var(--navy-800); }
.sub-tab.is-current { position: relative; padding-top: 6px; background: #fff; color: var(--navy-900); border-top: 3px solid var(--gold-500); }
.sub-tab.is-current::after { /* hides the card's top border under the open tab */
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: #fff;
}
.sub-tab.is-locked { opacity: .5; cursor: not-allowed; }
.sub-tab.is-locked:hover { background: var(--bg-alt); color: var(--muted); }
.sub-done { color: #00805c; font-size: .8rem; }
.form-card.tabbed-card { border-top: 1px solid var(--line); border-top-left-radius: 0; }
@media (max-width: 600px) {
  .sub-tab { flex: 1 1 0; justify-content: center; padding: 7px 4px 6px; font-size: .78rem; }
}

/* a link or button inside a page header sits in its free right-hand side (the header does not grow) */
.hero-action {
  flex: none; margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; font-size: .86rem; font-weight: 600; text-decoration: none;
  backdrop-filter: blur(4px); transition: background .15s, border-color .15s;
}
.hero-action:hover { background: rgba(255,255,255,.18); border-color: var(--gold-400); color: #fff; }
.hero-action .bn { opacity: .8; font-weight: 500; }
@media (max-width: 600px) {
  .hero-action { align-self: flex-start; width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 1rem; }
  .hero-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* admin: degree tree */
.dtree-type > summary { cursor: pointer; font-size: 1.05rem; }
.dtree-type[open] > summary { margin-bottom: 10px; }
.dtree-node { margin-left: 16px; padding: 6px 0; border-top: 1px solid var(--line); }
.dtree-type > .dtree-node { margin-left: 0; }
.dtree-node > summary { cursor: pointer; font-weight: 600; }
.dtree-degrees { margin: 6px 0 4px; padding-left: 22px; font-size: .9rem; }
.dtree-degrees li { margin: 3px 0; }
.dtree-degrees .status { padding: 1px 8px; font-size: .72rem; }
/* language: Bangla pages read in Purno (headings too); the বাংলা | English link in the header */
html[lang="bn"] body, html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3, html[lang="bn"] .btn { font-family: var(--bangla); }
html[lang="bn"] .brand-title { font-family: var(--serif); }
.lang-switch { font-weight: 600; font-size: .88rem; color: var(--du-blue); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; white-space: nowrap; }
.lang-switch:hover { background: var(--bg-alt); }
.lang-switch:lang(bn) { font-family: var(--bangla); }
.lang-switch:lang(en) { font-family: var(--sans); }

/* ---------- application form: compact ---------- */
.page-form .section-tight { padding-top: 16px; padding-bottom: 28px; }
.work-panel .stepper { margin-bottom: 8px; }
.work-panel .card { padding: clamp(14px, 2.4vw, 22px); }
.work-panel fieldset { margin-bottom: 14px; }
.work-panel legend { font-size: 1.12rem; margin-bottom: 8px; }
.work-panel .field { margin-bottom: 10px; }
.work-panel label, .work-panel .field-label { font-size: .82rem; margin-bottom: 3px; }
.work-panel input:not([type=checkbox]):not([type=radio]), .work-panel select, .work-panel textarea { padding: 7px 11px; font-size: .9rem; border-radius: 8px; border-width: 1px; }
.work-panel textarea { min-height: 60px; }
.work-panel .field-row { gap: 0 12px; }
.work-panel .hint, .work-panel .field-error { margin-top: 2px; font-size: .78rem; }
.work-panel .form-actions { margin-top: 12px; gap: 8px; }
.work-panel .degree-list { gap: 8px 12px; }
.work-panel .degree-option { padding: 8px 12px; }
.work-panel .choice { padding: 9px 12px; }
.work-panel .choice-row { gap: 8px; margin-bottom: 10px; }
.work-panel .alert { padding: 9px 14px; margin-bottom: 10px; }
.work-panel .submit-box { padding: 12px 14px; }
/* wide screens: pack fields three or four to a row */
@media (min-width: 900px) {
  .work-panel .field-row, .work-panel .field-row.three { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}
.work-panel .kv { gap: 3px 12px; font-size: .86rem; }
.work-panel .eco-record { padding: 10px 12px; border-radius: 10px; }
.work-panel .stepper li { padding-bottom: 4px; font-size: .8rem; }
.work-panel .stepper span { width: 22px; height: 22px; font-size: .74rem; }
.work-panel .sub-tab { padding-top: 5px; padding-bottom: 5px; }

/* ---------- application form: clean ---------- */
.work-panel legend { font-family: inherit; font-size: 1rem; font-weight: 700; gap: 8px; margin-bottom: 10px; }
.work-panel legend::before { content: ""; width: 4px; height: 1.05em; border-radius: 2px; background: var(--gold-500); flex: none; }
.work-panel legend::after { background: var(--line); }
.work-panel fieldset + fieldset, .work-panel fieldset + div > fieldset:first-child { padding-top: 14px; border-top: 1px dashed var(--line); }
.work-panel .form-intro { margin: 0 0 10px; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.work-panel .alert { font-size: .85rem; }
.work-panel .hint { color: #8a8f99; }
.work-panel .field-label { margin-bottom: 6px; }
/* one answer from a few: bordered options with a visible radio dot */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 8px 14px 8px 11px; border: 1px solid #d9d2bf; border-radius: 10px; background: #fff; font-weight: 500; font-size: .88rem; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--gold-400); }
.opt input { appearance: none; -webkit-appearance: none; flex: none; width: 17px; height: 17px; margin: 0; border: 1.5px solid #b9b2a0; border-radius: 50%; background: #fff; display: grid; place-items: center; cursor: pointer; }
.opt input::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-600); transform: scale(0); transition: transform .12s; }
.opt input:checked { border-color: var(--gold-600); }
.opt input:checked::before { transform: scale(1); }
.opt:has(input:checked) { border-color: var(--gold-500); background: var(--gold-100); color: var(--navy-900); font-weight: 600; }
.opt:has(input:focus-visible) { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.field:has(.field-error) .opt:not(:has(input:checked)) { border-color: #f0b7c0; }
@media (max-width: 600px) { .opts:not(.pair) { flex-direction: column; } .opts:not(.pair) .opt { width: 100%; } .opts.pair .opt { flex: 1; } }
/* buttons: one compact row */
.work-panel .form-actions { padding-top: 12px; border-top: 1px solid var(--line); }
.work-panel .form-actions .btn { padding: 8px 18px; font-size: .9rem; }
@media (max-width: 600px) {
  .work-panel .field-row.short { grid-template-columns: 1fr 1fr; }
  .work-panel .form-actions { gap: 6px; }
  .work-panel .form-actions .btn { flex: 1 1 auto; padding: 8px 12px; text-align: center; }
  .work-panel .form-actions .btn-left { flex: 0 0 auto; }
}

/* delete a draft */
.btn-danger-outline { background: #fff; border: 1px solid #e3a5ae; color: #b3263a; }
.btn-danger-outline:hover { background: #fdf0f2; border-color: #b3263a; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions form { display: inline; margin: 0 0 0 4px; }
/* icon-only actions; the name shows on hover (data-tip) */
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--navy-900); cursor: pointer; vertical-align: middle; transition: background .15s, border-color .15s, color .15s; }
.icon-btn:hover { border-color: var(--gold-500); background: var(--gold-100); }
.icon-btn.danger { color: #b3263a; }
.icon-btn.danger:hover { border-color: #b3263a; background: #fdf0f2; }
.icon-btn svg, .btn-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-icon { display: inline-grid; place-items: center; overflow: visible; padding-left: 12px !important; padding-right: 12px !important; }
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translate(-50%, 4px); padding: 4px 9px; border-radius: 6px; background: var(--navy-900); color: #fff; font-size: .75rem; font-weight: 500; line-height: 1.3; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s; z-index: 5; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
/* a hidden tip takes no room (no sideways scroll at the page edge); long tips wrap */
[data-tip]:not(:hover):not(:focus-visible)::after { display: none; }
[data-tip]::after { width: max-content; max-width: min(240px, 70vw); white-space: normal; text-align: center; }

/* dashboard applications: a card per application on phones (no sideways scroll) */
@media (max-width: 700px) {
  .app-list thead { display: none; }
  .app-list, .app-list tbody { display: block; }
  .app-list tr {
    display: grid; grid-template-columns: 1fr auto; gap: 6px 10px;
    grid-template-areas: "no status" "degree degree" "eco actions";
    align-items: center; padding: 14px; margin-bottom: 10px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
  }
  .app-list td { display: block; padding: 0; border: 0; min-width: 0; }
  .app-list .c-no { grid-area: no; }
  .app-list .c-status { grid-area: status; justify-self: end; }
  .app-list .c-degree { grid-area: degree; overflow-wrap: anywhere; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
  .app-list .c-eco { grid-area: eco; font-size: .82rem; overflow-wrap: anywhere; }
  .app-list .c-eco::before { content: attr(data-label); display: block; font-size: .7rem; color: var(--muted); }
  .app-list .c-actions { grid-area: actions; align-self: end; }
  .app-list .status { white-space: normal; text-align: center; }
}

/* other lists: a card per row on phones, each value under its column name */
@media (max-width: 700px) {
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody { display: block; }
  .table.stack tr { display: block; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .table.stack td { display: block; position: relative; padding: 6px 0 6px 38%; border: 0; overflow-wrap: anywhere; min-width: 0; }
  .table.stack td + td { border-top: 1px dashed var(--line); }
  .table.stack td::before { content: attr(data-label); position: absolute; left: 0; top: 7px; width: 35%; color: var(--muted); font-size: .76rem; line-height: 1.35; }
  .table.stack td:not([data-label]), .table.stack td[data-label=""] { padding-left: 0; }
  .table.stack td:not([data-label])::before, .table.stack td[data-label=""]::before { display: none; }
}

/* address: four drop-downs, then the house / road line and the post code */
.addr { margin: 6px 0 4px; }
.addr + .same-address, .same-address + [data-permanent] { margin-top: 6px; }
.addr-title { margin: 10px 0 6px; font-weight: 700; color: var(--navy-900); font-size: .92rem; }
@media (min-width: 900px) { .work-panel .addr-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.work-panel .addr-line-row { grid-template-columns: minmax(0, 1fr) 120px; }
.addr-code input { background: var(--bg-alt); color: var(--muted); }

/* Pay setup: fee of each degree name, and on the degree tree */
.fee-amount { font-weight: 700; color: #00553e; white-space: nowrap; }
.fee-missing { font-weight: 700; color: var(--red-500); white-space: nowrap; }
.status-auto { background: #e8f0fe; color: #1f4fa8; }
.pay-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 18px; align-items: end; }
.pay-amounts .hint, .pay-amounts .form-actions { grid-column: 1 / -1; }
.pay-amounts label { font-size: .84rem; line-height: 1.35; }
.pay-amount { display: flex; align-items: center; gap: 6px; }
.pay-amount span { font-weight: 700; color: var(--navy-900); }
.pay-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pay-summary p { margin: 0; }
.pay-filter { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr) auto; gap: 4px 16px; align-items: end; position: sticky; top: 0; z-index: 5; }
.pay-filter .field { margin: 0; }
.pay-filter .declaration { margin: 0 0 10px; }
.pay-filter [data-filter-count] { grid-column: 1 / -1; margin: 0; font-size: .85rem; }
.pay-filter [data-filter-count]:empty { display: none; }
.pay-grid { margin: 8px 0 6px; font-size: .9rem; }
.pay-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, 92px); gap: 6px; align-items: center; padding: 7px 4px; border-top: 1px solid var(--line); }
.pay-row[hidden], [data-pay-node][hidden] { display: none; }
.pay-row.is-changed { background: var(--gold-100); }
.pay-head { border-top: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pay-col { font: inherit; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--navy-900); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; cursor: pointer; position: relative; }
.pay-col:hover { border-color: var(--gold-500); }
.pay-name .status { padding: 1px 8px; font-size: .72rem; }
.pay-opt { display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 5px 4px; white-space: nowrap; }
.pay-opt:has(input:checked) { border-color: #00553e; background: #dff3ea; font-weight: 600; }
.pay-none:has(input:checked) { border-color: var(--red-500); background: #fde3e7; color: var(--red-500); }
.pay-opt input { margin: 0; }
.pay-savebar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); z-index: 5; }
@media (max-width: 760px) {
  .pay-filter { grid-template-columns: minmax(0, 1fr); position: static; }
  .pay-head > span { display: none; }
  .pay-row, .pay-head { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .pay-name { grid-column: 1 / -1; }
  .pay-opt, .pay-col { font-size: .76rem; padding: 6px 2px; gap: 3px; white-space: normal; text-align: center; }
  .pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
}
.invoice-table th { text-align: left; padding: 6px 0; font-size: .85rem; color: var(--muted); font-weight: 600; border-bottom: 1.5px solid var(--line); }
.invoice-table th.num, .invoice-table td.num { text-align: right; padding-left: 12px; }
.invoice-table tfoot th { color: inherit; font-size: 1rem; font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 8px; }
.step-card.is-readonly { opacity: 1; background: var(--bg-alt); }
.step-card.is-upcoming { opacity: .55; }
.readonly-tag { margin-left: auto; font-size: .8rem; font-weight: 600; font-family: var(--bangla); color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.app-glance { margin-bottom: 16px; padding: 14px 18px; }
.app-glance .kv { margin: 0; }
.app-glance { position: relative; }
.glance-details { margin-top: 12px; }
.report-modal {
  width: min(820px, 100% - 24px); max-height: calc(100% - 24px); overflow: auto; margin: auto; padding: 24px 26px 20px;
  border: 1px solid var(--line); border-top: 5px solid var(--gold-500); border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.report-modal::backdrop { background: rgba(6,15,31,.6); backdrop-filter: blur(3px); }
.report-modal h2 { margin: 0 40px 4px 0; font-size: 1.35rem; }
.report-step { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.report-step > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.1rem; }
.report-step .app-head { margin-top: 10px; }
.report-table td.num, .report-table th.num { text-align: right; white-space: nowrap; }
.report-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@media (max-width: 560px) { .report-modal { padding: 18px 16px 16px; } }
/* the payment invoice: compact, on the left */
.money-box.invoice { max-width: 420px; margin: 8px 0 14px; padding: 10px 16px; }
.invoice-table { font-size: .88rem; }
.invoice-table td, .invoice-table th { padding: 4px 0; }
.invoice-table tfoot th { padding-top: 6px; font-size: .95rem; }
/* application page: the current step, the summary on its right (below it on phones) */
.app-layout { display: grid; gap: 16px; align-items: start; }
.app-layout > .step-card { margin-bottom: 0; }
.app-layout .app-glance { margin-bottom: 0; }
.app-glance .kv-2 { grid-template-columns: max-content 1fr; column-gap: 14px; font-size: .9rem; }
@media (min-width: 900px) {
  .app-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-layout .app-glance { grid-column: 2; grid-row: 1; position: sticky; top: 90px; }
  .app-layout > .step-card { grid-column: 1; grid-row: 1; }
}
/* Exam year setup: the degree name, then the two years */
.pay-row.year-row { grid-template-columns: minmax(0, 1fr) 150px 150px; }
.year-row select { width: 100%; padding: 5px 6px; font-size: .88rem; }
.pay-row.is-error { background: #fde8eb; }
.year-range { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: #00553e; background: #dff3ea; }
@media (max-width: 720px) {
  .pay-row.year-row, .pay-head.year-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year-row.pay-head > span:not(:first-child) { display: block; }
}
/* Costume and Gift Center setup: six centers and "not setup" */
.pay-row.center-row { grid-template-columns: minmax(0, 1fr) repeat(7, 86px); }
.center-row .pay-opt, .center-row .pay-col { white-space: normal; text-align: center; line-height: 1.25; font-size: .8rem; }
.center-list { margin: 4px 0 0; padding-left: 22px; }
.center-list li { margin: 3px 0; }
.center-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--navy-900); background: var(--gold-100); }
@media (max-width: 900px) {
  .pay-row.center-row, .pay-head.center-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .center-row .pay-name { grid-column: 1 / -1; }
  .center-row.pay-head > span { display: none; }
}
/* confirmations under a question (certificate collected, hall changed) */
.cert-confirm, .hall-changed { margin-top: 10px; line-height: 1.55; }
.cert-confirm[hidden], .hall-changed[hidden] { display: none; }
/* a step that does not apply (clearance after a collected certificate) */
.step-skip { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); }
/* dashboard: the application's cells open it */
tr.row-link .c-no, tr.row-link .c-degree, tr.row-link .c-eco { cursor: pointer; }
tr.row-link:hover td { background: var(--bg-alt); }
tr.row-link .c-no a { color: inherit; text-decoration: none; }
/* Other setup: min / max per range */
.other-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px 160px; gap: 12px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }
.other-row:first-child { border-top: 0; }
.other-row h2 { margin: 0; font-size: 1.05rem; align-self: center; }
.other-row .field { margin: 0; }
.other-row .field-error { grid-column: 1 / -1; margin: 0; }
@media (max-width: 600px) { .other-row { grid-template-columns: 1fr 1fr; } .other-row h2 { grid-column: 1 / -1; } }

/* step 4: what this graduate has to do */
.todo-box { margin: 12px 0 14px; padding: 12px 14px; border: 1px solid var(--gold-400); border-left-width: 4px; border-radius: 8px; background: rgba(224, 189, 79, .08); }
.todo-box h3 { margin: 0 0 6px; font-size: 1rem; }
.todo-box p { margin: 0 0 6px; }
.todo-docs { margin: 0; padding-left: 0; list-style: none; }
.todo-docs li { padding: 1px 0; }

/* ---------- helpdesk (the graduates' tickets and the staff's queue share these) ---------- */
.hd-narrow { max-width: 920px; }
.hd-list { list-style: none; margin: 0; padding: 0; }
.hd-row a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.hd-row:last-child a { border-bottom: 0; }
.hd-row a:hover { background: var(--bg-alt); }
.hd-row-main { display: grid; gap: 2px; min-width: 0; }
.hd-row-main strong { overflow-wrap: anywhere; }
.hd-row-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hd-row.is-new strong { color: var(--navy-700); }
.hd-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
.status.hd-st-open { background: var(--gold-100); color: #7a5a06; }
.status.hd-st-answered { background: #e8f0fe; color: #1f4fa8; }
.status.hd-st-closed { background: #eef1f5; color: #3d4b5c; }

.hd-ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.hd-ticket-head h2 { margin: 0 0 4px; font-size: 1.35rem; overflow-wrap: anywhere; }
.hd-ticket-head p { margin: 0; font-size: .88rem; }
.hd-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hd-msg { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: start; }
.hd-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); font-size: 1.1rem; }
.hd-msg.is-staff .hd-avatar { background: var(--navy-800); }
.hd-bubble { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
.hd-msg.is-staff .hd-bubble { background: #f4f7fc; border-color: #d6e1f1; }
.hd-msg.is-internal .hd-bubble { background: #fff8e1; border: 1px dashed var(--gold-500); }
.hd-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: .85rem; margin-bottom: 4px; }
.hd-meta time { color: var(--muted); margin-left: auto; font-size: .8rem; }
.hd-tag { font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: var(--gold-100); color: #7a5a06; }
.rich { overflow-wrap: anywhere; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 .6em; }
.rich ul, .rich ol { margin: 0 0 .6em; padding-left: 1.4em; }
.rich blockquote { margin: 0 0 .6em; padding: 4px 12px; border-left: 3px solid var(--gold-400); color: var(--muted); }
.rich pre { margin: 0 0 .6em; padding: 8px 12px; border-radius: 8px; background: #0f2a4a; color: #f3f6fa; overflow-x: auto; font-size: .85rem; white-space: pre-wrap; }
.rich code { font-family: Consolas, monospace; }
.rich h3, .rich h4 { margin: .4em 0 .3em; font-family: var(--sans); }
.rich h3 { font-size: 1.1rem; }
.rich h4 { font-size: 1rem; }
.hd-file { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; max-width: 100%; }
.hd-file:hover { border-color: var(--gold-400); }
.hd-file img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.hd-file-ico { font-size: 1.6rem; }
.hd-file span { overflow-wrap: anywhere; font-size: .88rem; }

.hd-reply h3 { margin-top: 0; }
.hd-editor { min-height: 160px; background: #fff; font-family: var(--sans); font-size: 1rem; }
.hd-editor .ql-editor { min-height: 160px; font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
.hd-editor .ql-editor.ql-blank::before { font-style: normal; color: #8a94a3; }
.ql-toolbar.ql-snow { border-radius: 10px 10px 0 0; background: #fbfaf6; font-family: var(--sans); }
.ql-container.ql-snow { border-radius: 0 0 10px 10px; }
.hd-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; position: relative; }
.hd-attach input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hd-attach-btn { cursor: pointer; display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; margin: 0; }
.hd-attach-btn:hover { border-color: var(--gold-400); }
.hd-attach-name { font-size: .85rem; }
.hd-attach-name.is-bad { color: var(--red-500); }
.hd-solved { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.help-box { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, #0f2a4a, #183a63); color: #fff; }
.help-box h3 { margin: 0 0 4px; color: var(--gold-200); font-size: 1.05rem; }
.help-box p { margin: 0 0 10px; font-size: .9rem; }
.help-box .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.help-new { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.help-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.glance-help { margin: 10px 0 0; font-size: .88rem; }

/* the staff's side */
.hd-count { margin-left: auto; min-width: 24px; padding: 0 7px; border-radius: 999px; background: var(--navy-700); color: #fff; font-size: .75rem; line-height: 20px; text-align: center; }
.hd-count.is-hot { background: var(--red-500); }
.hd-count.is-quiet { background: #dfe4ea; color: #3d4b5c; }
.helpdesk-body .admin-menu a { flex-direction: row; align-items: center; gap: 8px; }
.hd-filters { display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px; margin-bottom: 14px; }
.hd-filters select, .hd-filters input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; min-width: 0; }
.hd-table tr.is-overdue td:first-child { box-shadow: inset 3px 0 0 var(--red-500); }
.hd-table td { vertical-align: top; }
.hd-pages { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.hd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.hd-main, .hd-side { min-width: 0; }
.hd-side .card { margin-bottom: 14px; padding: 16px 18px; }
.hd-side h3 { margin: 0 0 10px; font-size: 1.05rem; }
.hd-side .kv { font-size: .86rem; grid-template-columns: 78px 1fr; }
.hd-props { display: grid; gap: 10px; }
.hd-props label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.hd-props select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; font: inherit; color: var(--ink); background: #fff; }
.hd-apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .86rem; }
.hd-apps li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.hd-apps li.is-this { border-color: var(--gold-400); background: #fffaf0; }
.hd-mode { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hd-mode label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .9rem; margin: 0; }
.hd-mode label:has(input:checked) { border-color: var(--navy-700); background: #eef4fb; font-weight: 600; }
.hd-reply.is-note { background: #fffdf2; border-color: var(--gold-400); }
.hd-reply.is-note .hd-mode label:has(input:checked) { border-color: var(--gold-500); background: var(--gold-100); }
.hd-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hd-send select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.hd-kbd { font-size: .78rem; }
.hd-issued { display: grid; gap: 6px; }
.hd-issued code { font-size: 1.15rem; letter-spacing: .05em; padding: 6px 10px; background: #fff; border-radius: 8px; justify-self: start; user-select: all; }
@media (max-width: 900px) {
  .hd-layout { grid-template-columns: minmax(0, 1fr); }
  .hd-filters { grid-template-columns: 1fr 1fr; }
  .hd-filters input { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hd-row a { flex-direction: column; align-items: flex-start; }
  .hd-msg { grid-template-columns: 1fr; }
  .hd-avatar { display: none; }
  .hd-ticket-head { flex-direction: column; }
  .hd-ticket.card, .hd-reply.card { padding: 16px 14px; }
  .helpdesk-body .admin-menu a { padding: 8px 12px; font-size: .9rem; }
}

/* helpdesk live updates (static/js/notify.js) */
.hd-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 1000; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.hd-toast { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 12px; background: var(--navy-900); color: #fff; text-decoration: none; box-shadow: 0 14px 34px rgba(6, 15, 31, .35); border-left: 4px solid var(--gold-400); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.hd-toast.is-in { opacity: 1; transform: none; }
.hd-toast strong { display: block; font-size: .92rem; color: var(--gold-200); }
.hd-toast small { display: block; font-size: .84rem; color: #dbe3ee; overflow-wrap: anywhere; }
a.hd-toast:hover strong { text-decoration: underline; }
.hd-toast-ico { font-size: 1.1rem; line-height: 1.4; }
.hd-toast-x { border: 0; background: none; color: #c7d1de; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.hd-bell { grid-template-columns: auto 1fr; }
.hd-bell-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.hd-bell .btn-ghost { color: #fff; }
.hd-msg.is-fresh .hd-bubble { animation: hd-fresh 2.4s ease-out; }
@keyframes hd-fresh { 0% { box-shadow: 0 0 0 4px rgba(224, 189, 79, .7); } 100% { box-shadow: 0 0 0 0 rgba(224, 189, 79, 0); } }
@media (prefers-reduced-motion: reduce) { .hd-toast { transition: none; } .hd-msg.is-fresh .hd-bubble { animation: none; } }

/* date fields with the calendar (static/js/datepicker.js) */
.date-field { position: relative; }
.date-field input { padding-right: 40px; }
.date-ico { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 1rem; }
.flatpickr-calendar { font-family: var(--sans); }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--navy-700); border-color: var(--navy-700); }
.flatpickr-day.today { border-color: var(--gold-500); }

/* photo (300 x 300) and signature (300 x 100) with the crop window (static/js/crop.js) */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 8px; }
.media-card { display: grid; gap: 10px; justify-items: start; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.media-card h3 { margin: 0; font-size: 1.05rem; font-family: var(--sans); }
.media-card .hint-list { margin: 0; }
.media-card .photo-preview.photo-large { width: 150px; height: 150px; }
.signature-preview { width: 240px; height: 80px; border: 1px dashed var(--line); border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: .85rem; }
.signature-preview img { width: 100%; height: 100%; object-fit: contain; }
.photo-preview.is-new, .signature-preview.is-new { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.media-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.media-pick { cursor: pointer; }
.media-input:focus-visible + * , .media-pick:focus-within { outline: 2px solid var(--navy-700); }

.crop-modal { width: min(560px, calc(100vw - 24px)); padding: 18px; border: 0; border-radius: 16px; box-shadow: var(--shadow); }
.crop-modal::backdrop { background: rgba(6, 15, 31, .6); }
.crop-modal h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 1.1rem; }
.crop-stage { height: min(60vh, 400px); background: #20262e; border-radius: 10px; overflow: hidden; }
.crop-stage img { display: block; max-width: 100%; }
/* the box is the frame, the rest is masked (Cropper's modal) */
.crop-stage .cropper-modal { background: #06101e; opacity: .72; }
.crop-stage .cropper-view-box { outline: 2px solid var(--gold-400); outline-color: var(--gold-400); }
.crop-stage .cropper-face { background: transparent; }
/* the photo: an oval where the face goes */
.crop-stage.is-photo .cropper-view-box::after { content: ""; position: absolute; left: 22%; right: 22%; top: 10%; bottom: 16%; border: 2px dashed rgba(255, 255, 255, .9); border-radius: 50%; box-shadow: 0 0 0 1px rgba(6, 16, 30, .45), inset 0 0 0 1px rgba(6, 16, 30, .45); pointer-events: none; }
.crop-tools { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.crop-tools input[type="range"] { flex: 1; accent-color: var(--navy-700); }
.crop-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

.app-media { display: grid; gap: 6px; justify-items: center; }
.app-sign { width: 96px; height: 32px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }

/* the review tab */
.review-card .hint { margin-top: 0; }
.review-block { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; background: #fff; }
.review-block header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.review-block h3 { margin: 0; font-size: 1.05rem; font-family: var(--sans); }
.review-media { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.review-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 3px solid var(--gold-400); }
.review-issues ul { margin: 6px 0 0; padding-left: 1.2em; }

/* confirmations (main.js, [data-confirm]): the site's own modal */
.confirm-modal { width: min(440px, calc(100vw - 32px)); padding: 26px 24px 20px; border: 0; border-radius: 18px; text-align: center; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(6, 15, 31, .35); border-top: 5px solid var(--gold-400); }
.confirm-modal[open] { animation: confirm-in .18s ease-out; }
.confirm-modal::backdrop { background: rgba(6, 15, 31, .6); backdrop-filter: blur(3px); }
.confirm-modal.is-danger { border-top-color: #b3263a; }
.confirm-ico { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: var(--gold-100); box-shadow: 0 0 0 6px rgba(224, 189, 79, .18); }
.confirm-modal.is-danger .confirm-ico { background: #fde3e7; box-shadow: 0 0 0 6px rgba(179, 38, 58, .12); }
.confirm-modal h3 { margin: 0 0 8px; font-family: var(--sans); font-size: 1.25rem; color: var(--navy-800); }
.confirm-text { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.confirm-actions .btn { min-width: 140px; justify-content: center; }
.btn-danger { background: #b3263a; border: 1px solid #b3263a; color: #fff; }
.btn-danger:hover { background: #8f1d2e; }
@keyframes confirm-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .confirm-modal[open] { animation: none; } }
/* the review's declaration when "submit" is pressed without it */
.declaration.needs-check { outline: 2px solid #b3263a; background: #fdf0f2; }
.decl-need { display: none; }
.declaration.needs-check + .decl-need { display: block; }

/* the calendar's year drop-down (datepicker.js) */
/* month and year side by side in the header (flatpickr's header is one fixed-height line) */
.flatpickr-calendar .flatpickr-current-month { display: flex !important; align-items: center; justify-content: center; gap: 6px; padding: 4px 0 0; left: 12.5%; width: 75%; }
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-calendar .flatpickr-current-month .flatpickr-yearDropdown { width: auto !important; flex: 0 1 auto; margin: 0; font-family: inherit; font-size: .95rem; font-weight: 600; line-height: 1.3; height: 28px; padding: 0 22px 0 8px; border: 1px solid var(--line); border-radius: 6px; background-color: #fff; color: var(--ink); cursor: pointer; appearance: auto; -webkit-appearance: menulist; }
.flatpickr-calendar .flatpickr-current-month .flatpickr-yearDropdown { min-width: 76px; }

/* admin: Payment heads */
.heads-tools { display: grid; gap: 12px; }
.heads-tools form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.heads-add input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.head-card { padding: 16px 18px; }
.head-card.is-off { opacity: .72; }
.head-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.head-top h2 { margin: 0; font-size: 1.1rem; font-family: var(--sans); }
.head-top code { font-size: .85rem; padding: 2px 6px; background: var(--bg-alt); border-radius: 5px; }
.head-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.head-active { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; margin: 0; }
.head-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; }
.head-grid label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); margin: 0; }
.head-grid input { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: #fff; min-width: 0; }
.head-grid input.mono { font-family: Consolas, monospace; }
.head-actions { display: flex; gap: 8px; margin-top: 12px; }
.heads-add input { width: auto; flex: 1 1 200px; }
