:root {
  --bg-deep: #3427a8;
  --bg-mid: #3c63de;
  --bg-soft: #655be0;
  --text-main: #f6f8ff;
  --text-soft: rgba(246, 248, 255, 0.91);
  --text-muted: rgba(246, 248, 255, 0.78);
  --chip: rgba(255, 255, 255, 0.14);
  --chip-border: rgba(255, 255, 255, 0.24);
  --panel: rgba(255, 255, 255, 0.1);
  --panel-strong: rgba(255, 255, 255, 0.16);
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif !important;
  line-height: 1.62 !important;
  color: var(--text-main) !important;
  background: linear-gradient(145deg, var(--bg-deep) 0%, var(--bg-mid) 56%, var(--bg-soft) 100%) !important;
  min-height: 100vh;
  padding: 0 !important;
}

a {
  color: #e8ebff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(52, 39, 168, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar-inner {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", cursive;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.2px;
  color: var(--text-main);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.quick-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quick-links a {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
}

.quick-links a:hover {
  background: var(--chip);
  color: var(--text-main);
}

.quick-links a.active {
  background: rgba(255, 255, 255, 0.22);
  color: var(--text-main);
}

.container {
  width: min(var(--maxw), calc(100% - 48px)) !important;
  max-width: none !important;
  margin: 18px auto 24px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--text-main) !important;
}

.logo {
  margin-bottom: 16px !important;
  text-align: left !important;
}

.logo h1 {
  margin: 0 !important;
  font-family: "Baloo 2", cursive;
  font-size: clamp(40px, 4.6vw, 60px) !important;
  color: var(--text-main) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.subtitle,
.last-updated,
.logo p {
  color: var(--text-muted) !important;
}

.page-title {
  margin: 6px 0 6px !important;
  font-family: "Baloo 2", cursive !important;
  font-size: clamp(34px, 4vw, 52px) !important;
  color: var(--text-main) !important;
  text-align: left !important;
}

h2,
h3,
strong,
.faq-question {
  color: var(--text-main) !important;
}

h2 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.24) !important;
}

p,
li,
.faq-answer {
  color: var(--text-soft) !important;
  font-size: 15px !important;
}

table {
  border-collapse: collapse !important;
}

tr[style] {
  background: rgba(255, 255, 255, 0.08) !important;
}

th[style],
td[style] {
  color: var(--text-soft) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.faq-item,
.card,
.highlight,
.operator-box,
.warning,
.note,
.contact-box {
  background: var(--panel) !important;
  border: 1px solid var(--chip-border) !important;
  border-left: none !important;
  border-radius: 14px !important;
  color: var(--text-soft) !important;
}

.contact-box {
  background: linear-gradient(145deg, rgba(201, 47, 255, 0.34), rgba(42, 200, 255, 0.3)) !important;
}

.pill {
  background: var(--panel-strong) !important;
  color: var(--text-main) !important;
}

code {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff;
}

.footer {
  margin-top: 24px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: var(--text-muted) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  font-size: 14px !important;
}

.footer p {
  color: var(--text-muted) !important;
  margin: 0 !important;
}

.footer-left {
  flex: 0 1 auto;
}

.footer-right {
  flex: 0 1 auto;
  text-align: right !important;
}

.footer a {
  color: var(--text-soft) !important;
  text-decoration: none !important;
}

.footer a:hover {
  color: var(--text-main) !important;
}

@media (max-width: 920px) {
  .topbar-inner,
  .container {
    width: min(var(--maxw), calc(100% - 24px));
  }

  .topbar-inner {
    min-height: 72px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0;
  }

  .brand {
    font-size: 30px;
  }

  .quick-links {
    justify-content: flex-start;
  }

  .quick-links a {
    font-size: 12px;
    padding: 7px 9px;
  }

  .page-title {
    text-align: center !important;
  }

  .footer {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .footer-right {
    text-align: left !important;
  }
}
