:root {
  --brand: #08a85a;
  --brand-dark: #078348;
  --navy: #070d35;
  --ink: #081235;
  --muted: #6b7280;
  --paper: #ffffff;
  --soft: #eafff4;
  --line: #e5e7eb;
  --shadow: 0 14px 35px rgba(31, 41, 55, 0.09);
}

* { box-sizing: border-box; }

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7fbff;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.site-header {
  min-height: 118px;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.top-trust-bar {
  background: #04092c;
  color: #fff;
  min-height: 36px;
  display: flex;
  align-items: center;
  font-size: .88rem;
  font-weight: 700;
}

.top-links {
  opacity: .96;
}

.nav-shell {
  min-height: 82px;
  gap: 18px;
  max-width: 1640px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.brand::after { content: ""; }
.brand b { color: var(--brand); }
.brand small {
  display: block;
  color: #64708f;
  font-size: .72rem;
  font-weight: 600;
  margin-top: 5px;
}

.brand-cup {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #ffb000;
  background: linear-gradient(145deg, #fff4cd, #fff);
  border: 2px solid #ffb000;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(255, 176, 0, .18);
}

.brand-logo img {
  width: 154px;
  height: 78px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.brand-logo > span {
  display: none;
}

.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
}

.main-nav a,
.admin-sidebar a {
  color: var(--navy);
  font-weight: 700;
  padding: 12px 13px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1;
}

.main-nav a.active,
.main-nav a:hover,
.admin-sidebar a.active,
.admin-sidebar a:hover {
  color: #fff;
  background: linear-gradient(135deg, #10b96b, #079b55);
  box-shadow: 0 10px 22px rgba(8, 168, 90, .22);
}

.main-nav a i,
.login-pill i,
.my-checks-pill i {
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 0 auto;
}

.student-account-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: clamp(170px, 14vw, 260px);
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #dce4f1;
  border-radius: 10px;
  background: #fff;
}

.header-search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  color: var(--navy);
}

.login-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  color: #fff;
  background: linear-gradient(135deg, #10b96b, #079b55);
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.login-pill:hover { color: #fff; background: var(--brand-dark); }

.student-account-pill {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-checks-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  border: 1px solid #cfe7db;
  border-radius: 8px;
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

.header-logout-btn {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-toggle {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 5px;
  padding: 12px 15px;
}

.page-shell { padding-top: 118px; min-height: calc(100vh - 120px); }

.hero {
  background:
    radial-gradient(circle at 12% 16%, rgba(220,53,69,0.13), transparent 28%),
    linear-gradient(135deg, #fff 0%, #fff8f8 50%, #f9fafb 100%);
  padding: 34px 0 56px;
}

.student-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 58px) 0 22px;
  background:
    radial-gradient(circle at 92% 22%, rgba(42, 181, 255, .16), transparent 22%),
    radial-gradient(circle at 12% 14%, rgba(255, 185, 56, .12), transparent 20%),
    linear-gradient(180deg, #f8fdff 0%, #ffffff 58%, #f7fbff 100%);
}

.hero-confetti::before,
.hero-confetti::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  transform: rotate(45deg);
}

.hero-confetti::before {
  left: 18px;
  top: 155px;
  background: #ffc7d0;
  box-shadow: 210px -95px #bfe9f6, 560px 5px #fde68a, 1120px 60px #bfdbfe, 1380px -32px #d8b4fe;
}

.hero-confetti::after {
  right: 60px;
  top: 210px;
  background: #c7f9df;
  box-shadow: -260px -110px #fde68a, -700px 30px #bbf7d0, -1020px -70px #e0f2fe;
}

.student-hero h1 {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  font-size: clamp(2rem, 3.35vw, 3.65rem);
  line-height: 1.12;
  white-space: nowrap;
}

.student-hero h1 span { color: #f12c4c; }

.hero-copy {
  max-width: 560px;
  margin: 18px 0 24px;
  color: #243153;
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-cta .btn {
  min-width: 250px;
  padding: 15px 22px;
  border-radius: 9px;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.trust-points span {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: .88rem;
}

.trust-points i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: #dbfbea;
  border-radius: 50%;
  font-size: 1.2rem;
}

.analytics-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid #e7edf6;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .08);
}

.rank-gauge,
.service-tile,
.mini-kpi,
.trend-card {
  border: 1px solid #e6edf7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.rank-gauge {
  min-height: 116px;
  position: relative;
  padding: 42px 14px 16px;
  text-align: center;
}

.gauge-arc {
  position: absolute;
  inset: 12px 24px auto;
  height: 58px;
  border-top: 12px solid transparent;
  border-radius: 90px 90px 0 0;
  background: conic-gradient(from 255deg, #fb234e, #ffbc10, #0ab75e 43%, transparent 0);
  mask: radial-gradient(circle at 50% 100%, transparent 48px, #000 50px);
}

.rank-gauge span,
.rank-gauge small {
  display: block;
  color: #55617d;
  font-weight: 700;
}

.rank-gauge strong {
  display: block;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 900;
}

.mini-kpi {
  min-height: 116px;
  padding: 22px;
}

.mini-kpi i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  margin-bottom: 12px;
}

.mini-kpi.success i { background: #0aac62; }
.mini-kpi.danger i { background: #f12c4c; }
.mini-kpi.muted i { background: #768098; }
.mini-kpi strong {
  display: inline-block;
  color: var(--navy);
  font-size: 1.6rem;
  margin-right: 10px;
}
.mini-kpi span { color: #53607b; font-weight: 700; }

.service-tile {
  min-height: 138px;
  padding: 20px 18px;
  overflow-wrap: anywhere;
}

.service-tile i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.service-tile.primary i { background: #2f7cff; }
.service-tile.success i { background: #0aae65; }
.service-tile.warning i { background: #ff9f00; }
.service-tile.muted i { background: #768098; }

.service-tile strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.service-tile span {
  color: #53607b;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.45;
}

.trend-card {
  grid-column: 1 / -1;
  position: relative;
  padding: 18px 20px 8px;
}

.trend-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 900;
}

.trend-card svg {
  width: 100%;
  height: 150px;
}

.student-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 28px 0 10px;
}

.student-flow div {
  position: relative;
  padding: 18px 12px;
  border: 1px dashed #cdd9e8;
  border-radius: 12px;
  background: #fbfdff;
  text-align: center;
}

.student-flow i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  color: var(--brand);
  background: #e8fff3;
  border-radius: 50%;
  font-size: 1.25rem;
}

.student-flow strong {
  display: block;
  color: var(--navy);
}

.student-flow span {
  color: #53607b;
  font-size: .82rem;
  font-weight: 700;
}

.trend-pop {
  position: absolute;
  right: 34px;
  bottom: 54px;
  padding: 15px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.trend-pop span,
.trend-pop em {
  display: block;
  color: #59657f;
  font-style: normal;
  font-weight: 800;
}
.trend-pop strong { display: block; color: var(--navy); font-size: 1.3rem; }
.trend-pop em { color: var(--brand); }

.live-strip {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  margin-top: 28px;
  border: 1px solid #e7edf6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, .07);
  overflow: hidden;
}

.live-news {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 19px 24px;
  background: linear-gradient(90deg, #fff8ea, #fff);
}

.live-news span {
  color: #fff;
  background: #f12c4c;
  border-radius: 7px;
  padding: 8px 11px;
  font-weight: 900;
}

.live-news strong { color: var(--navy); }
.live-news a {
  margin-left: auto;
  color: #f12c4c;
  font-weight: 900;
}

.platform-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 20px;
}

.platform-stats div {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  align-items: center;
}

.platform-stats i {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: #e6fff2;
  border-radius: 50%;
  font-size: 1.2rem;
}

.platform-stats strong { color: var(--navy); font-weight: 900; }
.platform-stats span { color: #53607b; font-size: .82rem; }

.student-sections { padding: 24px 0 42px; }

.student-card {
  padding: 18px;
  border: 1px solid #e7edf6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, .06);
}

.student-profile-list {
  display: grid;
  gap: 10px;
}

.student-profile-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e7edf6;
  border-radius: 10px;
  background: #f8fbff;
}

.student-profile-list span {
  color: #667085;
  font-weight: 700;
}

.student-profile-list strong {
  color: var(--navy);
  text-align: right;
  word-break: break-word;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.card-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
}
.card-head h2 i { color: #315cff; margin-right: 8px; }
.card-head a { color: #53607b; font-size: .85rem; font-weight: 800; }

.key-row,
.update-row,
.why-row,
.premium-strip,
.telegram-row {
  display: flex;
  gap: 14px;
  align-items: center;
  border-radius: 11px;
}

.key-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 74px 132px;
  gap: 14px;
  align-items: center;
  position: relative;
  padding: 13px 6px;
  min-width: 0;
}

.round-seal {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: radial-gradient(circle, #ff304f, #cf1730);
  border-radius: 50%;
}

.key-row h3,
.update-row h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: .96rem;
  font-weight: 900;
}

.key-row h3 a {
  color: inherit;
}

.key-row h3 a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.key-row p,
.update-row p,
.why-row span,
.premium-strip span,
.telegram-row span {
  margin: 0;
  display: block;
  color: #53607b;
  font-size: .84rem;
}

.calc-rule-line {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  color: #0f766e;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
}

.calc-rule-line i {
  margin-top: 1px;
}

.key-row > div:nth-child(2),
.update-row > div {
  min-width: 0;
}

.status {
  align-self: center;
  justify-self: end;
  color: #fff;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: .72rem;
  font-weight: 900;
}
.status.live { background: #0aae65; }
.status.new { background: #2f7cff; }
.check-link {
  justify-self: end;
  color: #f12c4c;
  background: #fff0f3;
  border-radius: 8px;
  padding: 8px 12px;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.premium-strip {
  margin-top: 10px;
  padding: 12px;
  background: linear-gradient(90deg, #effff7, #f7fffb);
  border: 1px solid #bff3d8;
}
.premium-strip > i {
  color: #ff9d00;
  font-size: 1.55rem;
}
.premium-strip strong,
.telegram-row strong,
.why-row strong {
  display: block;
  color: var(--navy);
  font-size: .9rem;
}
.premium-strip a {
  margin-left: auto;
  padding: 8px 12px;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.why-row {
  padding: 9px 4px;
}
.why-row i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: #e8fff3;
  border-radius: 10px;
  flex: 0 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.why-grid .why-row {
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  background: #fbfdff;
}

.update-row {
  padding: 12px;
  border: 1px solid #edf2f8;
  margin-bottom: 11px;
  color: var(--navy);
}
.update-row:hover {
  color: var(--navy);
  border-color: #cfe7db;
  background: #fbfffd;
}
.update-row > span {
  padding: 7px 9px;
  color: #f12c4c;
  background: #ffeaf0;
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 900;
}
.update-row time {
  margin-left: auto;
  align-self: flex-start;
  color: #7a849c;
  font-size: .75rem;
  white-space: nowrap;
}
.telegram-row {
  padding: 13px;
  background: linear-gradient(90deg, #ecf7ff, #faf1ff);
}
.telegram-row > i:first-child {
  color: #24a1de;
  font-size: 1.8rem;
}

.student-sections .col-xl-5 .why-grid {
  grid-template-columns: 1fr;
}

.student-bottom-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 17px 32px;
  border: 1px solid #ffe0a3;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff9eb, #fff);
}
.student-bottom-cta > i {
  color: #f7a600;
  font-size: 2.2rem;
}
.student-bottom-cta strong {
  display: block;
  color: var(--navy);
}
.student-bottom-cta span {
  color: #53607b;
}
.student-bottom-cta .btn {
  margin-left: auto;
  color: #fff;
  background: #ff9f00;
  border: 0;
  padding: 12px 24px;
}

.hero-title {
  font-weight: 900;
  line-height: 1.05;
  font-size: clamp(2rem, 4vw, 4rem);
}

.section-title {
  display: inline-block;
  font-weight: 900;
  margin-bottom: 22px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 55%;
  height: 4px;
  background: var(--brand);
  border-radius: 99px;
}

.exam-card,
.tool-card,
.blog-card,
.result-card,
.admin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.exam-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
}

.exam-card:hover { border-color: rgba(220,53,69,0.4); transform: translateY(-1px); }

.badge-live { background: var(--brand); }
.badge-new { background: #111827; }

.tool-card { padding: 22px; }
.blog-card { padding: 18px; height: 100%; }
.result-card { padding: 20px; }
.admin-card { padding: 18px; }

.form-control,
.form-select {
  border-radius: 6px;
  min-height: 44px;
}

.btn {
  border-radius: 6px;
  font-weight: 800;
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
}

.score-table th {
  background: var(--brand);
  color: #fff;
  white-space: nowrap;
}

.share-card {
  background: linear-gradient(135deg, #111827, #7f1d1d);
  color: #fff;
  border-radius: 8px;
  padding: 26px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.stat strong {
  display: block;
  font-size: 1.55rem;
}

.site-footer {
  margin-top: 44px;
  padding: 24px 0;
  color: #fff;
  background: #111827;
}

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: #fff; opacity: .9; }

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.admin-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
}

.admin-body {
  background: #f4f8fb;
}

.admin-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(15, 23, 42, .04);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-brand i {
  color: var(--brand);
}

.admin-toplinks {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-toplinks a {
  color: var(--navy);
  border: 1px solid #dce4f1;
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-toplinks a:last-child {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.admin-page-shell {
  min-height: calc(100vh - 72px);
  padding-top: 104px;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: start;
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.admin-content { min-width: 0; }
.admin-content .section-title {
  margin-top: 0;
}
.table td, .table th { vertical-align: middle; }

.rg-title-band {
  background: #f3f3f3;
  border-bottom: 1px solid #ededed;
  padding: 20px 0 22px;
}

.rg-title-band .container,
.rg-calc-page {
  max-width: 900px;
}

.rg-title-band h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
}

.rg-calc-page {
  padding-top: 12px;
}

.rg-calculator-card {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  padding: 13px 13px 14px;
}

.rg-exam-select-card {
  margin-bottom: 12px;
  padding: 12px 13px;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

.rg-exam-select-card .form-label {
  margin-bottom: 5px;
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
}

.rg-calculator-card .form-label {
  margin-bottom: 3px;
  font-size: 1.18rem;
  color: #111;
}

.rg-calculator-card .form-control,
.rg-calculator-card .form-select {
  min-height: 47px;
  border-radius: 7px;
  font-size: 1.12rem;
}

.rg-paste-btn {
  min-width: 42px;
  border-color: #dee2e6;
}

.rg-calculate-btn {
  min-height: 59px;
  font-size: 1.5rem;
  font-weight: 400;
  background: #0d6efd;
  border-color: #0d6efd;
}

.rg-score-card {
  margin-top: 20px;
  border: 2px solid #ef2d2d;
  background: #fff;
}

.score-card-brand {
  display: flex;
  justify-content: center;
  padding: 10px 12px 6px;
  background: #fff;
  border-bottom: 1px solid #e5edf7;
}

.score-card-brand img {
  max-width: min(360px, 86%);
  height: auto;
  max-height: 116px;
  object-fit: contain;
}

.card-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  padding: 4px 8px;
  overflow: hidden;
}

.card-header-logo img {
  width: 116px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.rg-candidate-header {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  gap: 10px;
  align-items: center;
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #ef2d2d;
}

.rg-candidate-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.rg-candidate-header p {
  margin: 0;
  font-weight: 700;
}

.rg-emblem,
.rg-rail-seal {
  color: #d71920;
  font-weight: 900;
}

.rg-emblem {
  color: #444;
  font-size: 1rem;
}

.rg-rail-seal {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 5px solid #e72b35;
  border-radius: 50%;
  font-size: .9rem;
}

.rg-info-table,
.rg-score-table {
  width: 100%;
  border-collapse: collapse;
}

.rg-info-table th,
.rg-info-table td,
.rg-score-table th,
.rg-score-table td {
  border: 1px solid #ef2d2d;
  padding: 4px 5px;
}

.rg-info-table th {
  width: 36%;
  font-weight: 800;
}

.rg-score-table thead th {
  background: #da2a2f;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.rg-score-table tbody td {
  text-align: center;
}

.rg-score-table tbody td:first-child {
  text-align: left;
}

.rg-total-row th {
  background: #ffff00;
  color: #000;
  text-align: center;
  font-weight: 900;
}

.rg-action-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.rg-action-row .btn {
  min-width: 260px;
  font-size: 1.1rem;
  font-weight: 500;
}

.rank-page {
  max-width: 900px;
  padding-top: 28px;
}

.rank-rail-banner,
.rank-panel,
.discover-panel {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(31, 41, 55, 0.06);
}

.rank-rail-banner {
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  gap: 12px;
  align-items: center;
  text-align: center;
  padding: 14px 18px;
  margin-bottom: 30px;
}

.rank-rail-banner h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 900;
}

.rank-rail-banner p {
  margin: 0;
  font-weight: 800;
}

.rank-panel {
  padding: 6px;
  margin-bottom: 18px;
}

.rank-panel h3 {
  margin: 0;
  padding: 12px 16px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 900;
}

.rank-panel h3 i {
  color: #4f46e5;
}

.rank-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 7px 0;
  padding: 10px 8px;
  background: #f4f7fb;
  border-radius: 7px;
}

.rank-info-row span {
  color: #64748b;
  font-weight: 800;
}

.rank-info-row strong {
  text-align: right;
  color: #020617;
}

.score-pill {
  border-top: 4px solid #10b981;
  border-radius: 9px;
  background: #eafff6;
  text-align: center;
  padding: 12px;
  margin: 8px 0 12px;
}

.score-pill span,
.mini-score span {
  display: block;
  color: #065f46;
  font-weight: 800;
}

.score-pill strong {
  display: block;
  color: #047857;
  font-size: 1.55rem;
}

.mini-score {
  background: #f8fafc;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.mini-score strong {
  display: block;
  font-size: 1.35rem;
}

.mini-score small {
  color: #64748b;
  font-weight: 700;
}

.telegram-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: linear-gradient(90deg, #25afe3, #2994c8);
  color: #fff;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 10px 0 20px;
}

.telegram-strip i {
  font-size: 1.7rem;
}

.telegram-strip span {
  font-weight: 700;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rank-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #d9e2ef;
  border-left: 4px solid var(--metric);
  border-radius: 10px;
  padding: 12px 14px;
}

.rank-metric h4 {
  margin: 0 0 4px;
  font-size: .98rem;
  font-weight: 900;
}

.rank-metric h4 i {
  color: var(--metric);
}

.rank-metric p {
  margin: 0;
  color: #64748b;
  font-size: .88rem;
  font-weight: 800;
}

.rank-metric p span {
  color: #059669;
  background: #d1fae5;
  border-radius: 4px;
  padding: 2px 5px;
}

.rank-metric strong {
  min-width: 72px;
  text-align: center;
  color: var(--metric);
  background: color-mix(in srgb, var(--metric) 10%, white);
  border: 1px solid color-mix(in srgb, var(--metric) 22%, white);
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 1.12rem;
}

.rank-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.rank-exam-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.rank-exam-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid #e0e8f3;
  border-radius: 10px;
  color: var(--navy);
  background: #fbfdff;
  font-weight: 800;
}

.rank-exam-list a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.rank-exam-list span {
  align-self: flex-start;
  color: #fff;
  background: #0aae65;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .72rem;
}

.danger-pill {
  border-color: #fecdd3;
  background: #fff1f2;
}

.danger-pill strong {
  color: #e11d48;
}

.telegram-gate {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(4, 9, 44, .64);
}

.telegram-gate.open {
  display: grid;
}

.telegram-gate-card {
  position: relative;
  width: min(420px, 100%);
  padding: 26px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

.telegram-gate-card > i {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: #fff;
  background: #24a1de;
  font-size: 1.8rem;
}

.telegram-gate-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 900;
}

.telegram-gate-card p {
  color: #53607b;
  font-weight: 700;
}

.telegram-gate-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.6rem;
}

.alp-floating-link {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 13px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 18px 35px rgba(239, 68, 68, .28);
  font-weight: 900;
}

.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 26px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 18px 35px rgba(18, 140, 126, .28);
  font-weight: 900;
}

.whatsapp-float:hover {
  color: #fff;
  transform: translateY(-1px);
}

.whatsapp-float i {
  font-size: 1.2rem;
}

.alp-floating-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.alp-merit-page {
  padding-top: 18px;
  padding-bottom: 42px;
}

.alp-hero-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #f3d9a6;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8e6, #ffffff);
  box-shadow: var(--shadow);
}

.alp-hero-card h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 900;
}

.alp-hero-card p {
  margin: 0;
  color: #53607b;
  font-weight: 700;
}

.alp-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.alp-kpis span,
.alp-result-card {
  padding: 14px;
  border: 1px solid #e7edf6;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.alp-kpis strong,
.alp-result-card strong {
  display: block;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 900;
}

.alp-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.alp-result-card span {
  display: block;
  color: #53607b;
  font-weight: 800;
}

.alp-result-card.highlight {
  border-color: #fbbf24;
  background: #fffbeb;
}

.alp-result-card.highlight strong {
  color: #d97706;
  font-size: 1.05rem;
}

.alp-sheet-page {
  padding: 18px 18px 44px;
  background: #eef2f7;
}

.alp-sheet {
  max-width: 1430px;
  margin: 0 auto;
  border: 1px solid #d8dee8;
  background: #f6f8fb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
  overflow: hidden;
}

.alp-sheet-title {
  padding: 18px;
  background: #b91c1c;
  color: #fff;
  text-align: center;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.18;
  font-weight: 900;
}

.alp-sheet-subtitle {
  padding: 10px 16px;
  background: #0f2f47;
  color: #fff;
  text-align: center;
  font-size: clamp(.78rem, 1.15vw, .95rem);
  line-height: 1.45;
  font-weight: 800;
}

.alp-sheet-main {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(560px, 1.22fr);
  gap: 70px;
  padding: 24px 30px;
}

.alp-input-table {
  display: grid;
  align-self: start;
  border: 1px solid #d8dee8;
}

.alp-table-title,
.alp-detail-title {
  padding: 8px 12px;
  background: #1e6b9f;
  color: #fff;
  text-align: center;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.18;
  font-weight: 900;
}

.alp-input-table label {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  margin: 0;
  min-height: 50px;
}

.alp-input-table span,
.alp-input-table input,
.alp-input-table select {
  min-width: 0;
  border: 0;
  color: #071733;
  font-size: clamp(.9rem, 1.35vw, 1.05rem);
  line-height: 1.25;
  font-weight: 900;
}

.alp-input-table span {
  display: grid;
  place-items: center;
  padding: 8px;
  background: #eef2f7;
  text-align: center;
}

.alp-input-table input,
.alp-input-table select {
  width: 100%;
  padding: 8px 12px;
  background: #eaf2ff;
  text-align: center;
  outline: 0;
}

.alp-input-table .yellow span,
.alp-input-table .yellow select {
  background: #ede9fe;
}

.alp-output-row .yellow {
  background: #fef3c7;
}

.alp-input-table .green span,
.alp-input-table .green input,
.alp-output-row .green {
  background: #d1fae5;
}

.alp-input-table .green input,
.alp-input-table .green span {
  color: #071733;
}

.alp-output-area {
  display: grid;
  gap: 50px;
}

.alp-output-row {
  display: grid;
  gap: 0;
}

.alp-output-row.top {
  grid-template-columns: .95fr 1fr 1.08fr;
}

.alp-output-row.bottom {
  grid-template-columns: 1.35fr 1fr;
}

.alp-output-row > div {
  min-height: 136px;
  display: grid;
  grid-template-rows: minmax(46px, auto) 1fr;
  text-align: center;
}

.alp-output-row span {
  display: grid;
  place-items: center;
  padding: 8px 10px;
  color: #fff;
  background: #0f2f47;
  font-size: clamp(.78rem, 1.2vw, 1rem);
  line-height: 1.25;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.alp-output-row strong {
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-size: clamp(2rem, 3.4vw, 3.05rem);
  font-weight: 900;
}

.alp-output-row .yellow strong {
  color: #b91c1c;
}

.alp-output-row .green strong {
  color: #047857;
}

.alp-output-row .navy {
  background: #123854;
}

.alp-sheet-submit {
  display: block;
  width: calc(100% - 24px);
  margin: 12px;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  color: #fff;
  background: #0d6efd;
  font-size: 1.15rem;
  font-weight: 900;
}

.alp-status-band {
  margin: 0 30px 26px;
  padding: 18px;
  border: 2px solid #111;
  text-align: center;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 900;
}

.alp-status-band.bad {
  color: #991b1b;
  background: #fee2e2;
}

.alp-status-band.good {
  color: #065f46;
  background: #d1fae5;
}

.alp-detail-title {
  margin: 0 30px;
  font-size: 1.15rem;
}

.alp-detail-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0 30px 24px;
  background: #fff;
}

.alp-detail-grid div {
  min-width: 0;
  text-align: center;
}

.alp-detail-grid span {
  display: block;
  min-height: 38px;
  padding: 8px 6px;
  color: #fff;
  background: #0f2f47;
  font-size: clamp(.72rem, .95vw, .82rem);
  line-height: 1.25;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.alp-detail-grid strong {
  display: block;
  padding: 14px 6px;
  color: #071733;
  font-size: 1.25rem;
  font-weight: 900;
}

.alp-shortlist-note {
  margin: 0 30px 30px;
  padding: 14px;
  background: #fff3c4;
  color: #111827;
  text-align: center;
  font-weight: 900;
}

.discover-panel {
  padding: 0;
  overflow: hidden;
}

.discover-panel h3 {
  margin: 0;
  padding: 14px 22px;
  background: #e8f1ff;
  font-weight: 900;
}

.discover-panel a {
  display: block;
  padding: 12px 22px;
  border-top: 1px solid #d9e2ef;
  font-weight: 800;
}

@media (max-width: 1500px) {
  .brand {
    font-size: 1.45rem;
  }
  .brand-cup {
    width: 48px;
    height: 48px;
  }
  .brand-logo img {
    width: 132px;
    height: 68px;
  }
  .main-nav a,
  .admin-sidebar a {
    padding: 10px 9px;
    gap: 5px;
    font-size: .92rem;
  }
  .login-pill,
  .my-checks-pill {
    padding: 10px 11px;
    font-size: .9rem;
  }
  .student-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.7rem);
  }
  .service-tile {
    padding: 16px 14px;
  }
}

@media (max-width: 1920px) {
  .header-search,
  .my-checks-pill {
    display: none;
  }
  .main-nav a {
    font-size: .95rem;
    padding: 10px 9px;
  }
}

@media (max-width: 1920px) {
  .nav-shell {
    gap: 12px;
  }
  .student-hero .col-lg-5,
  .student-hero .col-lg-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .student-hero h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 4.7vw, 3.75rem);
  }
  .hero-copy {
    max-width: 720px;
  }
  .analytics-board {
    margin-top: 10px;
  }
}

@media (max-width: 1250px) {
  .header-search {
    display: none;
  }
  .main-nav {
    gap: 4px;
  }
  .main-nav a {
    font-size: .86rem;
    padding: 9px 7px;
  }
  .brand small,
  .main-nav a i {
    display: none;
  }
  .my-checks-pill {
    display: none;
  }
  .analytics-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trend-card {
    grid-column: 1 / -1;
  }
  .student-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .main-nav a {
    font-size: .8rem;
    padding: 8px 6px;
  }
  .login-pill {
    font-size: .82rem;
    padding: 9px 10px;
  }
  .brand {
    font-size: 1.28rem;
  }
  .brand-cup {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .brand-logo img {
    width: 112px;
    height: 58px;
  }
}

@media (max-width: 991px) {
  .top-trust-bar,
  .header-actions {
    display: none;
  }
  .site-header {
    min-height: 86px;
  }
  .nav-shell {
    min-height: 86px;
  }
  .brand {
    font-size: 1.25rem;
  }
  .brand-cup {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .brand-logo img {
    width: 138px;
    height: 68px;
  }
  .brand small {
    font-size: .64rem;
  }
  .page-shell {
    padding-top: 86px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open { display: flex; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-page-shell {
    padding-top: 92px;
  }
  .rg-candidate-header {
    grid-template-columns: 1fr;
  }
  .card-header-logo {
    min-width: 0;
  }
  .card-header-logo img {
    width: 180px;
  }
  .rank-rail-banner,
  .rank-grid,
  .alp-hero-card,
  .alp-result-grid {
    grid-template-columns: 1fr;
  }
  .alp-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .alp-sheet-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 18px;
  }
  .alp-output-row.top,
  .alp-output-row.bottom {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .alp-output-row > div {
    min-height: 120px;
  }
  .alp-status-band,
  .alp-detail-title,
  .alp-detail-grid,
  .alp-shortlist-note {
    margin-left: 18px;
    margin-right: 18px;
  }
  .alp-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rank-info-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .rank-info-row strong {
    text-align: left;
  }
  .rg-title-band h1 {
    font-size: 1.35rem;
  }
  .rg-calculator-card .form-label {
    font-size: 1rem;
  }
  .student-hero {
    padding-top: 34px;
  }
  .trust-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trend-card {
    grid-column: auto;
    padding: 16px;
  }
  .trend-card > .d-flex {
    gap: 12px;
    align-items: flex-start !important;
  }
  .trend-card h3 {
    font-size: 1rem;
    line-height: 1.2;
  }
  .live-strip {
    grid-template-columns: 1fr;
  }
  .platform-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .student-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 20px;
  }
  .student-flow div {
    min-width: 0;
    padding: 15px 10px;
  }
  .student-flow i {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
  }
  .student-flow span {
    font-size: .78rem;
  }
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-bottom-cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .student-bottom-cta .btn {
    margin-left: 0;
  }
  .key-row,
  .update-row {
    align-items: flex-start;
  }
  .key-row {
    grid-template-columns: 48px minmax(0, 1fr) 70px;
  }
  .key-row .check-link {
    display: none;
  }
  .check-link,
  .update-row time {
    display: none;
  }
}

@media (max-width: 575px) {
  .student-hero {
    padding: 26px 0 18px;
  }
  .student-hero h1 {
    max-width: 360px;
    font-size: clamp(1.7rem, 9vw, 2.05rem);
    line-height: 1.08;
    white-space: normal;
    text-wrap: balance;
  }
  .student-hero h1 span {
    display: inline-block;
  }
  .hero-copy {
    max-width: 340px;
    margin: 12px 0 18px;
    font-size: .98rem;
    line-height: 1.5;
  }
  .hero-cta {
    gap: 12px;
  }
  .hero-cta .btn {
    min-width: 0;
    padding: 13px 16px;
    font-size: 1rem;
  }
  .trust-points {
    gap: 12px;
    margin-top: 20px;
  }
  .trust-points span {
    grid-template-columns: 34px 1fr;
    font-size: .88rem;
    line-height: 1.25;
  }
  .trust-points i {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
  .hero-cta .btn,
  .platform-stats,
  .trust-points,
  .why-grid,
  .analytics-board {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .trend-card {
    padding: 14px 12px;
  }
  .trend-card > .d-flex {
    flex-direction: column;
  }
  .trend-card .btn {
    width: 100%;
  }
  .student-flow {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .student-flow div {
    padding: 13px 8px;
  }
  .student-flow strong {
    font-size: .92rem;
  }
  .student-flow span {
    font-size: .74rem;
  }
  .live-news {
    align-items: flex-start;
    flex-direction: column;
  }
  .live-news a {
    margin-left: 0;
  }
  .alp-floating-link {
    right: 14px;
    bottom: 82px;
    max-width: 54px;
    width: 54px;
    height: 54px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }
  .alp-floating-link span {
    display: none;
  }
  .whatsapp-float {
    left: 14px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }
  .whatsapp-float span {
    display: none;
  }
  .alp-kpis {
    grid-template-columns: 1fr;
  }
  .alp-sheet-page {
    padding-left: 8px;
    padding-right: 8px;
  }
  .alp-input-table label {
    grid-template-columns: 1fr;
  }
  .alp-table-title {
    font-size: 1.25rem;
  }
  .alp-output-row strong {
    font-size: 2rem;
  }
  .alp-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .student-flow {
    grid-template-columns: 1fr;
  }
}
