/* Techonquer Certification Portal: same look as techonquer.org
   dark purple-black base, violet to pink gradient accents, floating pill navbar */

:root {
  --bg: #08060F;
  --bg-2: #0C0918;
  --surface: #130E20;
  --surface-2: #1A1329;
  --surface-3: #241A38;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #F4F1FB;
  --muted: #A79EBB;
  --violet: #8B5CF6;
  --violet-2: #A78BFA;
  --pink: #EC4899;
  --pink-2: #F472B6;
  --grad: linear-gradient(100deg, #8B5CF6 0%, #EC4899 100%);
  --accent-soft: rgba(139, 92, 246, .16);
  --accent-line: rgba(139, 92, 246, .4);
  --green: #22C55E;
  --green-soft: rgba(34, 197, 94, .13);
  --red: #F43F5E;
  --red-soft: rgba(244, 63, 94, .13);
  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, .13);
  --ink: #FFFFFF;
  --nav-h: 58px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 18px;
  --pill: 999px;
  --shadow-nav: 0 10px 30px rgba(0, 0, 0, .5);
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 460px at 15% -10%, rgba(139, 92, 246, .16), transparent 62%),
    radial-gradient(780px 400px at 88% 2%, rgba(236, 72, 153, .12), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet-2); }
h1, h2, h3 { font-family: var(--head); line-height: 1.16; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
.mono { font-family: var(--mono); font-size: .86em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }
::selection { background: var(--violet); color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--violet); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* Panel shell */
.panel { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  background: linear-gradient(180deg, #0B1220 0%, #080D18 100%);
  border-right: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side nav { display: flex; flex-direction: column; flex: 1; gap: 2px; padding: 4px 12px; }
.side nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-weight: 500;
  position: relative;
}
.side nav a:hover { background: var(--surface-2); color: var(--text); }
.side nav a.on { background: var(--accent-soft); color: var(--violet-2); }
.side nav a.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--violet); }
.who { padding: 16px 22px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.who-id { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.who-id strong { color: var(--text); display: block; line-height: 1.2; }
.who-id em { font-style: normal; color: var(--muted); font-size: .82rem; display: block; line-height: 1.3; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--head); }
.who a { color: var(--muted); text-decoration: none; }
.who a:hover { color: var(--violet-2); }
.logout-form { margin: 0; }
.logout-form button { font: inherit; background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; }
.logout-form button:hover { color: var(--violet-2); }

.main { padding: 28px 34px 60px; min-width: 0; min-height: 100vh; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.top h1 { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Brand block */
.brand-img { display: inline-flex; align-items: center; }
.brand-img img { display: block; max-height: 40px; max-width: 150px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--head); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-text .tail, .tp-brand b .tail { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: .78rem; font-weight: 400; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 22px 20px; color: var(--text); text-decoration: none; }
.brand .brand-img img { max-height: 32px; max-width: 34px; }
.brand .brand-text small { margin-top: 1px; }

/* Cards, stats */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 20px; }
.box > h2:first-child, .box > h1:first-child { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 17px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--grad); }
.stat b { display: block; font-family: var(--head); font-size: 1.8rem; font-weight: 700; }
.stat span { color: var(--muted); font-size: .88rem; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 20px; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.t th, .t td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t th { font-weight: 600; color: var(--muted); background: var(--surface-2); white-space: nowrap; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.t td.num, .t th.num { text-align: right; }
.t .row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.thumb { width: 38px; height: 46px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line-2); display: block; }
.empty { padding: 30px; text-align: center; color: var(--muted); }

/* Badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 500; border: 1px solid currentColor; white-space: nowrap; }
.b-green { color: var(--green); background: var(--green-soft); }
.b-red { color: var(--red); background: var(--red-soft); }
.b-grey { color: var(--muted); background: rgba(255, 255, 255, .05); }
.b-cyan { color: var(--violet-2); background: var(--accent-soft); }
.b-amber { color: var(--amber); background: var(--amber-soft); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.wide { grid-column: 1 / -1; }
label { font-weight: 500; font-size: .9rem; }
.hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=tel], input[type=url], input[type=file], select, textarea {
  font: inherit;
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  width: 100%;
}
input[type=file] { padding: 8px 10px; font-size: .86rem; }
input::placeholder, textarea::placeholder { color: #61789A; }
select option { background: var(--surface); color: var(--text); }
textarea { min-height: 92px; resize: vertical; font-family: var(--sans); }
input:focus, select:focus, textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
input[type=checkbox], input[type=radio] { accent-color: var(--violet); width: 16px; height: 16px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.inline-form { display: inline; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters .field { min-width: 170px; }

.btn {
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 17px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 8px 24px rgba(139, 92, 246, .35); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-3); filter: none; border-color: var(--accent-line); }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(255, 97, 104, .4); }
.btn-danger:hover { background: var(--red-soft); filter: none; }
.btn-sm { padding: 6px 11px; font-size: .84rem; }
.btn-block { width: 100%; justify-content: center; padding: 12px 16px; }
button:disabled, .btn:disabled { opacity: .55; cursor: not-allowed; }

.flash { padding: 11px 14px; border-radius: var(--r-sm); margin-bottom: 14px; border: 1px solid; }
.flash-ok { background: var(--green-soft); border-color: rgba(34, 229, 140, .35); color: #7DF3BE; }
.flash-error { background: var(--red-soft); border-color: rgba(255, 97, 104, .35); color: #FF9DA2; }
.flash-info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--violet-2); }

.copy-row { display: flex; gap: 6px; align-items: center; }
.copy-row input { font-family: var(--mono); font-size: .8rem; min-width: 0; color: var(--violet-2); }

/* Hamburger */
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Signature and seal preview (My institute) */
.sign-preview { background: #F6F1FC; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: flex; justify-content: center; margin-bottom: 6px; }
.sp-block { position: relative; width: 340px; padding: 10px 0 0 100px; color: #241539; text-align: center; }
.sp-seal { position: absolute; left: 0; bottom: 2px; width: 88px; height: 88px; object-fit: contain; transform: rotate(-8deg); opacity: .92; }
.sp-sign { position: relative; }
.sp-sign img { max-height: 46px; max-width: 170px; display: block; margin: 0 auto 2px; }
.sp-line { display: block; border-top: 1px solid rgba(109, 40, 217, .5); margin: 0 30px 4px; height: 1px; }
.sp-sign b { display: block; font-size: .95rem; }
.sp-sign small { color: #5C5471; }

/* Verify page */
.verify-head { text-align: center; margin-bottom: 18px; }
.verify-head h1 { margin-bottom: .25em; }
.verify-head p { margin: 0 auto; max-width: 52ch; }
.verify-card { max-width: 660px; margin: 0 auto 22px; }
.verify-card .tabs { margin-bottom: 16px; }
.verify-card .filters { margin-bottom: 0; }

/* Floating pill navbar, techonquer.org pattern */
.navwrap { position: sticky; top: 0; z-index: 100; padding: 14px 20px 0; }
.nav {
  max-width: 1240px;
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(19, 14, 32, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: var(--shadow-nav);
}
.navwrap.is-stuck .nav { background: rgba(8, 6, 15, .94); border-color: var(--line-2); }

.nav-logo { display: flex; align-items: center; gap: 9px; margin-right: 12px; flex: 0 0 auto; color: var(--text); text-decoration: none; }
.nav-logo img { display: block; width: 30px; height: 30px; object-fit: contain; }
.nav-logo span { font-family: var(--head); font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.nav-logo .tail { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; }
.nav-link {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-radius: var(--pill);
  font-size: 13.5px; font-weight: 500;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-link.is-active { color: #fff; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--accent-line); }
.nav-link .ic { opacity: .9; }

.nav-right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  border-radius: var(--pill);
  background: var(--grad);
  color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(236, 72, 153, .35); }

.nav-burger { display: none; width: 38px; height: 38px; border: 0; background: none; color: var(--text); border-radius: 10px; cursor: pointer; }
.nav-burger:hover { background: rgba(255, 255, 255, .06); }

.nav-mobile {
  max-width: 1240px; margin: 8px auto 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 8px; box-shadow: var(--shadow-nav);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-mobile a:hover { background: var(--surface-2); color: var(--text); }
.nav-mobile a.is-active { background: var(--accent-soft); color: var(--violet-2); }
.dd-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.public { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.pub-main { flex: 1 0 auto; width: 100%; max-width: 880px; margin: 0 auto; padding: 34px 20px 56px; }
.pub-main.narrow { max-width: 460px; }
.pub-foot { margin-top: auto; padding: 20px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-in { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.pub-foot a { color: var(--muted); }
.pub-foot a:hover { color: var(--violet-2); }

.hero { padding: 40px 0 14px; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; margin: 0 auto .5em; max-width: 24ch; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 58ch; margin: 0 auto; font-size: 1.06rem; }
.pill-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .88rem; margin-bottom: 22px; }
.pill-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: block; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a.on { color: var(--violet-2); border-bottom-color: var(--violet); }

.profile { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: start; }
.profile img { width: 110px; height: 135px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line-2); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

.status-line { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 1.15rem; font-weight: 600; margin-bottom: 14px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.dot.bad { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

/* Exam */
.exam-bar { position: sticky; top: 0; z-index: 5; background: rgba(15, 21, 36, .96); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 18px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.timer { font-family: var(--mono); font-size: 1.4rem; color: var(--pink-2); }
.timer.low { color: var(--red); }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 14px; }
.qcard .qno { color: var(--muted); font-size: .85rem; margin-bottom: 4px; font-family: var(--mono); }
.qcard .qtext { font-weight: 500; margin-bottom: 12px; white-space: pre-wrap; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm); margin-bottom: 8px; cursor: pointer; font-weight: 400; background: var(--bg-2); }
.opt:hover { border-color: var(--accent-line); }
.opt input { margin-top: 3px; flex: none; }
.opt:has(input:checked) { border-color: var(--violet); background: var(--accent-soft); }
.save-state { font-size: .82rem; color: var(--muted); font-family: var(--mono); }
.otp-input { font-family: var(--mono) !important; font-size: 1.5rem !important; letter-spacing: .4em; text-align: center; color: var(--violet-2) !important; }
.result-big { font-family: var(--head); font-size: 3.2rem; font-weight: 800; line-height: 1; margin: 6px 0 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Settings: logos */
.preview-label { font-size: .8rem; font-weight: 600; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.tab-preview { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg); }
.tp-tab { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); margin: 8px 0 0 10px; padding: 7px 14px; border-radius: 8px 8px 0 0; font-size: .8rem; max-width: 80%; }
.tp-tab img, .tp-tab i { width: 16px; height: 16px; flex: none; display: block; }
.tp-tab i { border-radius: 50%; background: var(--line-2); }
.tp-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.tp-nav { background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tp-brand { display: flex; align-items: center; gap: 8px; }
.tp-brand img { max-height: 32px; max-width: 130px; display: block; }
.tp-brand b { font-family: var(--head); }
.tp-links { display: flex; gap: 14px; align-items: center; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.tp-btn { background: var(--grad); color: #fff; padding: 4px 10px; border-radius: 5px; font-weight: 600; }
.logo-preview { display: grid; grid-template-columns: 110px 1fr 110px; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; background: #fff; color: #0E2A35; }
.logo-preview img { max-width: 110px; max-height: 80px; display: block; }
.lp-left span, .lp-right span { display: flex; align-items: center; justify-content: center; width: 90px; height: 70px; border: 1px dashed #C7D5DB; border-radius: var(--r-sm); color: #5B7280; font-size: .8rem; text-align: center; line-height: 1.2; }
.lp-right { justify-self: end; }
.lp-mid { text-align: center; }
.lp-mid b { display: block; font-size: 1.15rem; font-family: var(--head); }
.lp-mid small { color: #0891B2; font-weight: 500; }
.logo-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 16px 0 12px; }
.logo-slot { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; min-width: 0; background: var(--surface-2); }
.slot-body { min-width: 0; overflow-wrap: anywhere; }
.slot-img { width: 96px; height: 96px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: repeating-conic-gradient(#1C2740 0 25%, #131B2E 0 50%) 0 0 / 14px 14px; border: 1px solid var(--line-2); }
.slot-img img { max-width: 88px; max-height: 88px; display: block; }
.slot-body h3 { margin: 0 0 4px; }
.slot-body p { margin: 0 0 8px; }
.slot-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.slot-form input[type=file] { width: 100%; min-width: 0; }

/* Panel top bar + drawer (mobile) */
.ptop { display: none; }
.ptop-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.ptop-brand .brand-img img { max-height: 30px; max-width: 32px; }
.ptop-brand .brand-text { flex-direction: row; align-items: baseline; }
.ptop-brand .brand-text b { font-size: 1.08rem; white-space: nowrap; }
.ptop-brand .brand-text small { display: none; }
.scrim[hidden] { display: none; }

@media (max-width: 900px) {
  .panel { display: block; }
  .ptop { display: flex; position: sticky; top: 0; z-index: 30; background: rgba(6, 10, 20, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 10px 16px; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; }
  .ptop .menu-btn { display: flex; }
  .side { position: fixed; top: 0; bottom: 0; left: 0; width: 280px; max-width: 85vw; height: 100dvh; z-index: 50; transform: translateX(-100%); transition: transform .22s ease; overflow-y: auto; box-shadow: 0 0 50px rgba(0, 0, 0, .6); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(2, 6, 14, .7); z-index: 40; }
  body.menu-open { overflow: hidden; }
  .main { padding: 20px 16px 50px; }
}

@media (max-width: 1000px) {
  .nav-list { display: none; }
  .nav-burger { display: grid; place-items: center; }
}
@media (max-width: 620px) {
  .navwrap { padding: 10px 12px 0; }
  .nav { padding: 6px 6px 6px 14px; }
  .btn-cta { padding: 10px 14px; font-size: 12.5px; }
  .brand-img img { max-height: 34px; max-width: 120px; }
}

@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .profile { grid-template-columns: 1fr; }
  .logo-preview { grid-template-columns: 70px 1fr 70px; }
  .logo-preview img { max-width: 70px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
