:root {
  --bg: #070b18;
  --card: #101830;
  --card2: #16203c;
  --gold: #ffce3d;
  --text: #eef2ff;
  --muted: #9fb0d0;
  --green: #22c55e;
  --red: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 5%;
  background: rgba(7, 11, 24, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #22305a;
}

.brand {
  font-weight: 900;
  font-size: 20px;
  color: var(--gold);
}

.brand span {
  color: #fff;
  font-weight: 600;
}

.nav nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav nav a:hover {
  color: var(--gold);
}

.hero {
  padding: 80px 5%;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, #1d2b56, transparent),
    radial-gradient(circle at 80% 10%, #3b1d56, transparent),
    var(--bg);
}

.hero h1 {
  font-size: clamp(30px, 6vw, 58px);
  line-height: 1.1;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  max-width: 760px;
  margin: 18px auto;
  color: var(--muted);
  font-size: 17px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 26px 0;
}

.btn {
  border: 0;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  transition: .2s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold), #ff9d00);
  color: #231a00;
}

.btn.ghost {
  background: #1a2547;
  color: #dbe6ff;
  border: 1px solid #2c3d70;
}

.btn.danger {
  background: var(--red);
  color: #fff;
}

.btn.full {
  width: 100%;
  margin-top: 10px;
}

.btn:hover {
  transform: translateY(-2px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: auto;
}

.stats div {
  background: var(--card);
  border: 1px solid #243258;
  padding: 18px;
  border-radius: 16px;
}

.stats b {
  display: block;
  color: var(--gold);
  font-size: 24px;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 70px 5%;
}

.section.dark {
  background: #0a1023;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--card);
  border: 1px solid #243258;
  border-radius: 20px;
  padding: 24px;
  transition: .25s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.card h3 {
  margin-bottom: 10px;
}

.card ul {
  margin: 14px 0 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

.card.premium {
  background: linear-gradient(160deg, #141d38, #0e1428);
  border: 1px solid #3a4b80;
}

.price {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 14px;
}

.price small {
  color: var(--muted);
  font-size: 13px;
}

.test-panel,
.result {
  max-width: 850px;
  margin: 30px auto;
  background: var(--card);
  border: 1px solid #2b3a68;
  border-radius: 20px;
  padding: 24px;
}

.test-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.timer {
  background: #241033;
  color: #ff7ab6;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 800;
}

.question {
  background: var(--card2);
  padding: 18px;
  border-radius: 14px;
  margin: 16px 0;
}

.question b {
  color: var(--gold);
}

.opt {
  display: block;
  width: 100%;
  text-align: left;
  background: #0d1530;
  border: 1px solid #2b3a68;
  color: var(--text);
  padding: 12px;
  border-radius: 10px;
  margin-top: 10px;
  cursor: pointer;
}

.opt.selected {
  border-color: var(--gold);
  background: #2a2410;
}

.test-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.score-big {
  font-size: 44px;
  font-weight: 900;
  color: var(--gold);
}

.explain {
  margin-top: 10px;
  padding: 12px;
  border-left: 4px solid var(--gold);
  background: #101a36;
  border-radius: 8px;
  color: #d8e3ff;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid #243258;
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

th,
td {
  padding: 13px;
  text-align: left;
  border-bottom: 1px solid #22305a;
  font-size: 14px;
}

th {
  background: #111a34;
  color: var(--gold);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 16px;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid #3a4b80;
  padding: 26px;
  border-radius: 20px;
}

.modal-box h3 {
  margin-bottom: 14px;
  color: var(--gold);
}

.modal-box input {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #33447a;
  background: #0d1530;
  color: #fff;
}

.small {
  font-size: 12px;
  margin-top: 12px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #231a00;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 200;
}

.toast.show {
  opacity: 1;
}

.hidden {
  display: none !important;
}

footer {
  padding: 26px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid #22305a;
}

.developer-bio {
  padding: 28px 20px;
  background: #080d1c;
}

.bio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 950px;
  margin: auto;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(245, 190, 75, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at top right,
      rgba(99, 102, 241, 0.16), transparent 55%),
    linear-gradient(135deg, #141b32, #0b1020);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.bio-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffe08a, #ff9d00);
  color: #151515;
  font-size: 27px;
  font-weight: 900;
  box-shadow: 0 0 25px rgba(255, 174, 0, 0.15);
}

.bio-content {
  min-width: 0;
  flex: 1;
}

.bio-label {
  color: #f7c968;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.bio-content h3 {
  margin: 8px 0 5px;
  color: #f8fafc;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.5px;
}

.bio-heart {
  color: #ff76ad;
}

.bio-role {
  margin: 0;
  color: #f4d28a;
  font-size: 13px;
  font-weight: 700;
}

.bio-brand {
  margin: 5px 0 14px;
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
}

.bio-description {
  max-width: 650px;
  color: #b9c4d8;
  font-size: 13px;
  line-height: 1.9;
}

.bio-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.bio-skills span {
  padding: 7px 11px;
  border: 1px solid rgba(165, 180, 252, 0.2);
  border-radius: 30px;
  background: rgba(99, 102, 241, 0.1);
  color: #dce4ff;
  font-size: 11px;
  transition: 0.25s ease;
}

.bio-skills span:hover {
  border-color: #f4c568;
  background: rgba(245, 190, 75, 0.12);
  transform: translateY(-2px);
}

.bio-quote {
  margin-top: 20px;
  color: #f8d989;
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
}

.bio-signature {
  margin: 8px 0 0;
  color: #ff8fbd;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .nav {
    flex-direction: column;
  }

  .nav nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .developer-bio {
    padding: 22px 14px;
  }

  .bio-card {
    gap: 13px;
    padding: 18px 14px;
    border-radius: 18px;
  }

  .bio-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 19px;
  }

  .bio-label {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .bio-content h3 {
    font-size: 20px;
  }

  .bio-description {
    font-size: 12px;
  }

  .bio-skills {
    gap: 6px;
  }

  .bio-skills span {
    padding: 6px 8px;
    font-size: 10px;
  }
}

/* LGS RESPONSIVE DESIGN — additive changes only */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-wrap: break-word;
}

img,
video,
iframe {
  max-width: 100%;
}

button,
.btn,
input,
select,
textarea {
  max-width: 100%;
  font: inherit;
}

button,
.btn {
  touch-action: manipulation;
}

.card,
.premium,
.test-panel,
.result,
.bio-card,
.modal-box {
  min-width: 0;
  box-sizing: border-box;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.card,
.premium {
  overflow-wrap: anywhere;
}

.btn {
  min-height: 42px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  min-width: 520px;
}

.test-head,
.test-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.test-actions .btn {
  flex: 1 1 120px;
}

.modal-box {
  width: min(100% - 24px, 480px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

input,
select,
textarea {
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .nav {
    gap: 12px;
  }

  .nav nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .test-actions .btn {
    flex: 1 1 135px;
  }

  .ml-modes,
  .ml-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .ml-modes .btn,
  .ml-tools .btn {
    flex: 1 1 135px;
  }

  .bio-card {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(25px, 7vw, 36px);
  }

  h2 {
    font-size: clamp(21px, 5.5vw, 29px);
  }
}

@media (max-width: 380px) {
  .section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .card,
  .premium {
    padding: 14px;
  }

  .test-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .test-actions .btn {
    width: 100%;
  }
}

/* LOYAL GLOBAL STUDIES — professional responsive layout */
:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --card2: #eef3fb;
  --gold: #f4b400;
  --text: #18243a;
  --muted: #627089;
  --green: #16834a;
  --red: #dc3545;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.nav {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #e0e7f0;
  box-shadow: 0 4px 18px rgba(23, 43, 77, .06);
}

.brand {
  color: #174ea6;
}

.brand span {
  color: #28364d;
}

.nav nav a {
  color: #35445d;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav nav a:hover {
  color: #174ea6;
  background: #edf3ff;
}

.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(244, 180, 0, .16), transparent 32%),
    linear-gradient(135deg, #edf4ff, #ffffff 58%, #f7faff);
  padding-top: 72px;
  padding-bottom: 60px;
}

.hero h1 {
  color: #142b50;
}

.hero h1 span {
  color: #174ea6;
}

.hero p,
.muted {
  color: #627089;
}

.stats div {
  background: #fff;
  border-color: #e0e7f0;
  box-shadow: 0 6px 20px rgba(23, 43, 77, .05);
}

.stats b {
  color: #174ea6;
}

.section.dark {
  background: #edf3fb;
}

h2 {
  color: #172b4d;
}

.grid {
  align-items: stretch;
  gap: 20px;
}

.card,
.card.premium {
  background: #fff;
  color: #18243a;
  border: 1px solid #e0e7f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(23, 43, 77, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover,
.card.premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(23, 43, 77, .11);
}

.card h3 {
  color: #173d79;
  line-height: 1.4;
}

.card ul {
  padding-left: 20px;
}

.card li {
  margin: 5px 0;
  color: #53627a;
}

.card.premium {
  border-top: 3px solid #f4b400;
}

.price {
  color: #174ea6;
  font-size: 25px;
  font-weight: 800;
  margin: 16px 0;
}

.btn {
  border-radius: 10px;
}

.btn.primary {
  background: #174ea6;
  color: #fff;
}

.btn.primary:hover {
  background: #103d85;
}

.btn.ghost {
  background: #edf3ff;
  color: #174ea6;
  border-color: #d4e1f7;
}

.question,
.result,
.modal-box {
  background: #fff;
  color: #18243a;
  border-color: #e0e7f0;
}

footer {
  background: #132746;
  color: #fff;
}

@media (max-width: 700px) {
  .nav {
    padding: 12px 4%;
  }

  .brand {
    font-size: 18px;
  }

  .nav nav {
    justify-content: flex-start;
    gap: 5px;
  }

  .nav nav a {
    font-size: 13px;
    padding: 7px 8px;
  }

  .hero {
    padding: 48px 5% 38px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-btns .btn {
    flex: 1 1 140px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .card,
  .card.premium {
    padding: 19px;
    border-radius: 15px;
  }
}

@media (max-width: 380px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    width: 100%;
  }
}

/* KGS-inspired LOYAL navigation menu */
.nav {
  flex-wrap: wrap;
}

.brand {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border: 1px solid #d7e1ef;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #174ea6;
  margin: 5px 0;
  border-radius: 2px;
}

#mainMenu {
  display: flex;
  align-items: center;
  gap: 8px;
}

#mainMenu > a,
.menu-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #35445d;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#mainMenu > a:hover,
.menu-dropdown-toggle:hover {
  color: #174ea6;
  background: #edf3ff;
}

.menu-group {
  position: relative;
}

.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  min-width: 210px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(23, 43, 77, .14);
}

.menu-group.open .menu-dropdown {
  display: block;
}

.menu-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #35445d;
  font-size: 14px;
}

.menu-dropdown a:hover {
  color: #174ea6;
  background: #edf3ff;
}

#mainMenu .menu-cta {
  background: #174ea6;
  color: #fff;
}

#mainMenu .menu-cta:hover {
  background: #103d85;
  color: #fff;
}

@media (max-width: 850px) {
  .nav {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  #mainMenu {
    display: none;
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0 4px;
  }

  #mainMenu.menu-open {
    display: flex;
  }

  #mainMenu > a,
  .menu-dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .menu-group {
    width: 100%;
  }

  .menu-dropdown {
    position: static;
    min-width: 0;
    margin: 2px 0 6px 10px;
    box-shadow: none;
    border-radius: 8px;
    background: #f4f7fb;
  }

  #authArea {
    order: 3;
  }
}

/* LOYAL ULTRA PRO MAX DESIGN */
:root {
  --bg: #050916;
  --card: #0d1730;
  --card2: #121f3c;
  --gold: #ffd76a;
  --text: #f5f7ff;
  --muted: #b0bdd7;
  --green: #35d69a;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  overflow-x: hidden;
  line-height: 1.65;
  background:
    radial-gradient(ellipse at 50% -15%, rgba(48, 77, 145, .23), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #080d1a;
  background: var(--gold);
}

.nav {
  padding: 15px clamp(16px, 4vw, 64px);
  background: rgba(5, 9, 22, .88);
  border-bottom: 1px solid rgba(255, 215, 106, .18);
  box-shadow: 0 8px 35px rgba(0, 0, 0, .16);
}

.brand {
  letter-spacing: -.5px;
  text-shadow: 0 0 24px rgba(255, 215, 106, .14);
}

.nav nav a {
  padding: 8px 10px;
  border-radius: 9px;
  transition: color .2s ease, background .2s ease;
}

.nav nav a:hover {
  color: var(--gold);
  background: rgba(255, 215, 106, .08);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(66px, 10vw, 124px) 5%;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(31, 68, 145, .35), transparent 42%),
    radial-gradient(ellipse at 85% 5%, rgba(147, 91, 35, .17), transparent 38%),
    linear-gradient(180deg, #080f24 0%, var(--bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 215, 106, .10);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255, 215, 106, .025),
              0 0 0 75px rgba(255, 215, 106, .018);
  pointer-events: none;
}

.hero h1 {
  max-width: 1000px;
  margin-inline: auto;
  font-weight: 900;
  letter-spacing: -1.7px;
  line-height: 1.12;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--gold);
  text-shadow: 0 0 32px rgba(255, 215, 106, .15);
}

.hero p {
  line-height: 1.85;
}

.hero-btns {
  gap: 12px;
  margin-top: 30px;
}

button, .btn, .hero-btns a, input, select, textarea {
  font: inherit;
}

button, .btn, .hero-btns a {
  transition: transform .2s ease, box-shadow .2s ease,
              border-color .2s ease, background .2s ease;
}

button, .btn {
  cursor: pointer;
}

button:hover, .btn:hover, .hero-btns a:hover {
  transform: translateY(-2px);
}

.hero-btns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 215, 106, .45);
  border-radius: 13px;
  font-weight: 750;
}

.hero-btns a:first-child {
  color: #10101a;
  border-color: var(--gold);
  background: linear-gradient(135deg, #ffe8a0, #f3bd43);
  box-shadow: 0 8px 28px rgba(255, 195, 65, .13);
}

.section {
  padding: clamp(44px, 7vw, 82px) clamp(16px, 5%, 72px);
  scroll-margin-top: 82px;
}

.section h2, .developer-bio h2 {
  letter-spacing: -.7px;
  text-wrap: balance;
}

.section h2 {
  margin-bottom: 12px;
}

.section.dark {
  background: linear-gradient(180deg, rgba(14, 25, 51, .65), rgba(5, 9, 22, .3));
  border-block: 1px solid rgba(255, 255, 255, .045);
}

.section a:not(.hero-btns a) {
  transition: color .2s ease, border-color .2s ease;
}

.card, .batch-card, .test-card, .feature-card,
.stat-card, .result-card, .developer-bio {
  border-color: rgba(151, 176, 224, .15);
  border-radius: 18px;
}

.card, .batch-card, .test-card, .feature-card, .stat-card {
  background: linear-gradient(145deg, rgba(20, 34, 65, .96),
                                      rgba(10, 18, 37, .98));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .13);
  transition: transform .22s ease, border-color .22s ease,
              box-shadow .22s ease;
}

.card:hover, .batch-card:hover, .test-card:hover,
.feature-card:hover, .stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 106, .4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .23);
}

input, select, textarea {
  max-width: 100%;
  border-radius: 11px;
}

input:focus-visible, select:focus-visible,
textarea:focus-visible, button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

#public {
  background: radial-gradient(ellipse at 50% 0%, rgba(28, 56, 111, .17), transparent 60%);
}

#publicBoard {
  overflow-wrap: anywhere;
}

.developer-bio {
  margin: clamp(18px, 4vw, 48px);
  padding: clamp(22px, 4vw, 44px);
  background: linear-gradient(135deg, rgba(20, 34, 65, .95),
                                      rgba(8, 14, 29, .98));
  border: 1px solid rgba(255, 215, 106, .19);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .17);
}

#toast {
  max-width: calc(100vw - 28px);
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
}

@media (min-width: 1000px) {
  .hero {
    padding-block: 120px 110px;
  }

  .section {
    padding-inline: max(5%, calc((100% - 1240px) / 2));
  }
}

@media (max-width: 700px) {
  .nav {
    gap: 10px;
    padding: 12px 15px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: clamp(16px, 4.5vw, 20px);
  }

  .nav nav {
    width: 100%;
    gap: 5px;
    padding-top: 5px;
  }

  .nav nav a {
    padding: 7px 9px;
    font-size: 13px;
  }

  .hero {
    padding: 68px 18px 58px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 48px);
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-btns {
    gap: 10px;
  }

  .hero-btns a {
    flex: 1 1 145px;
    padding: 11px 14px;
  }

  .section {
    padding: 45px 16px;
  }

  .developer-bio {
    margin: 16px;
    padding: 22px 17px;
  }

  table {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* LOYAL GLOBAL STUDIES - INDIAN TRICOLOR BACKGROUND */
html {
  min-height: 100%;
  background: #ffffff;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 153, 51, 0.18) 0%,
      rgba(255, 153, 51, 0.08) 28%,
      rgba(255, 255, 255, 0.96) 45%,
      rgba(255, 255, 255, 0.96) 58%,
      rgba(19, 136, 8, 0.08) 76%,
      rgba(19, 136, 8, 0.18) 100%
    ),
    #ffffff !important;
  background-attachment: fixed;
}

/* Sections stay readable over the tricolor background */
section {
  position: relative;
}

/* Mobile-friendly background */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  body {
    scroll-behavior: auto;
  }
}




/* ===== LOYAL PREMIUM HOME PAGE ===== */
.nav {
  background:linear-gradient(110deg,#041b3d,#092d60 65%,#04172f)!important;
  color:#fff;border-bottom:1px solid rgba(255,205,45,.45);
  box-shadow:0 5px 20px rgba(2,18,45,.24);
}
.nav .brand{color:#ffd42a!important;font-weight:900}
.nav .brand span,.nav nav a,.nav .menu-dropdown-toggle{color:#fff!important}
.nav nav a:hover{color:#ffd42a!important}

.hero.loyal-home{
  display:grid;grid-template-columns:minmax(0,1.3fr) minmax(230px,.8fr);
  align-items:center;gap:25px;min-height:370px;overflow:hidden;
  padding:38px clamp(18px,4vw,55px);color:#fff;border-radius:0!important;
  background:radial-gradient(ellipse at 80% 15%,rgba(255,193,91,.32),transparent 32%),
  radial-gradient(ellipse at 65% 100%,rgba(14,120,151,.38),transparent 42%),
  linear-gradient(112deg,#031b40,#063362 62%,#092344)!important;
}
.hero-copy,.hero-art{position:relative;z-index:1}
.hero-kicker{color:#ffda32;font-weight:800;font-size:14px;margin-bottom:8px}
.hero.loyal-home h1{color:#fff!important;font-size:clamp(34px,5vw,62px);line-height:1.06;margin:5px 0 10px;letter-spacing:-1px}
.hero.loyal-home h1 .hero-loyal{color:#ffd323!important;background:none!important;-webkit-text-fill-color:#ffd323!important}
.hero.loyal-home h2{color:#fff;font-size:clamp(17px,2vw,24px);margin:0 0 10px}
.hero.loyal-home .hero-tagline{color:#f5f7ff;font-size:17px;margin:10px 0 20px}
.hero-benefits{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 22px}
.hero-benefits>div{display:flex;align-items:center;gap:9px;padding-right:12px;border-right:1px solid #ffffff40}
.hero-benefits b{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:50%;background:#ffd32d;color:#082957;font-size:20px}
.hero-benefits span{display:grid;gap:3px}
.hero-benefits strong{color:#ffdc45;font-size:12px}
.hero-benefits small{color:#fff;font-size:11px}
.hero.loyal-home .hero-btns{display:flex;flex-wrap:wrap;gap:12px}
.hero.loyal-home .hero-btns .btn{border-radius:10px;padding:13px 18px;font-weight:800;text-decoration:none}
.hero.loyal-home .hero-btns .btn.primary{background:#ffd32d!important;border:1px solid #ffd32d;color:#08244b!important}
.hero.loyal-home .hero-btns .btn.ghost{background:transparent!important;border:1px solid #ffd32d;color:#fff!important}
.hero-art{min-height:265px;display:flex;align-items:center;justify-content:center}
.hero-slogan{position:absolute;left:0;top:20px;color:#ffda32;font-size:clamp(24px,3vw,35px);font-weight:900;font-style:italic;line-height:1.15;transform:rotate(-8deg);text-shadow:0 3px 12px #00132f}
.hero-slogan span{color:#fff;padding-left:15px}
.hero-books{width:min(76%,290px);margin:45px 0 0 65px;filter:drop-shadow(0 15px 12px #0005)}
.hero-books .book{padding:9px 15px;margin-top:3px;border-radius:4px 12px 12px 4px;border-bottom:4px solid #0004;color:#fff;text-align:center;font-weight:900;font-size:clamp(17px,2vw,23px);box-shadow:inset 7px 0 #ffffff26}
.book-upsc{background:linear-gradient(90deg,#0a2853,#2466a0)}
.book-bpsc{background:linear-gradient(90deg,#8b1725,#d3424a)}
.book-stet{background:linear-gradient(90deg,#08734d,#1cb887)}
.book-pet{background:linear-gradient(90deg,#c65b08,#ff9d27)}
.book-last{background:linear-gradient(90deg,#54208e,#9545c5)}
.hero-cap{position:absolute;right:2%;top:0;font-size:38px}

.loyal-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;padding:16px clamp(12px,3.2vw,48px);background:#fff}
.loyal-shortcuts>a{min-width:0;display:flex;align-items:center;gap:10px;padding:13px;color:#102e60;text-decoration:none;background:linear-gradient(145deg,#fff,#f5f9ff);border:1px solid #dbe7f7;border-radius:12px;box-shadow:0 3px 10px #0e315a12;transition:transform .2s}
.loyal-shortcuts>a:hover{transform:translateY(-3px)}
.shortcut-icon{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;border-radius:13px;color:#fff;font-size:23px;font-weight:900}
.shortcut-blue{background:linear-gradient(135deg,#2479ff,#4d42d8)}
.shortcut-green{background:linear-gradient(135deg,#04b77d,#087a57)}
.shortcut-red{background:linear-gradient(135deg,#ff426b,#c90e47)}
.shortcut-orange{background:linear-gradient(135deg,#ff9c32,#f06417)}
.loyal-shortcuts>a>span:nth-child(2){display:grid;gap:4px;min-width:0}
.loyal-shortcuts strong{font-size:14px}
.loyal-shortcuts small{font-size:11px;color:#526783}
.loyal-shortcuts>a>b{margin-left:auto;color:#1758c4}

@media(max-width:900px){
 .hero.loyal-home{grid-template-columns:minmax(0,1.2fr) minmax(180px,.7fr)}
 .hero-benefits{gap:8px}
 .loyal-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .loyal-shortcuts>a:last-child{grid-column:1/-1}
}
@media(max-width:600px){
 .hero.loyal-home{grid-template-columns:1fr;gap:0;padding:28px 18px 22px}
 .hero.loyal-home h1{font-size:clamp(34px,9vw,48px)}
 .hero-art{min-height:185px;margin-top:0}
 .hero-slogan{left:7%;top:18px;font-size:27px}
 .hero-books{width:58%;max-width:230px;margin:22px 0 0 85px}
 .hero-books .book{padding:6px 10px;font-size:17px}
 .hero-cap{right:8%;top:0}
 .hero-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .hero-benefits>div{border-right:0}
 .hero.loyal-home .hero-btns{display:grid;grid-template-columns:1fr}
 .hero.loyal-home .hero-btns .btn{text-align:center}
 .loyal-shortcuts{gap:9px;padding:12px}
 .loyal-shortcuts>a{padding:10px 8px;gap:8px}
 .shortcut-icon{width:36px;height:36px;flex-basis:36px;font-size:19px}
 .loyal-shortcuts strong{font-size:12px}
 .loyal-shortcuts small{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.loyal-shortcuts>a{transition:none}}
