/* MatkaGuru Static Skin — unique names (mgs-*), not copied from any third-party CSS */
:root {
  --mgs-bg: #0b1220;
  --mgs-bg-soft: #111827;
  --mgs-card: #f8fafc;
  --mgs-ink: #0f172a;
  --mgs-sky: #38bdf8;
  --mgs-violet: #a78bfa;
  --mgs-mint: #34d399;
  --mgs-gold: #fbbf24;
  --mgs-rose: #fb7185;
  --mgs-line: #334155;
  --mgs-muted: #94a3b8;
  --mgs-white: #ffffff;
  --mgs-max: 100%;
  --mgs-display: "Libre Baskerville", Georgia, serif;
  --mgs-ui: "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mgs-bg);
  color: var(--mgs-white);
  font-family: var(--mgs-ui);
  font-style: normal;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--mgs-sky);
  text-decoration: none;
}

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

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

.mgs-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 6px 8px 48px;
  border: 0;
}

/* ===== Hero only (unique top section) ===== */
.mgs-hero {
  position: relative;
  margin: 0 0 14px;
  padding: 14px 12px 18px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(800px 280px at 15% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(700px 260px at 90% 20%, rgba(251, 191, 36, 0.16), transparent 50%),
    linear-gradient(160deg, #07111f 0%, #0f2744 48%, #0b3b3a 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.mgs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.02) 18px,
      rgba(255, 255, 255, 0.02) 19px
    );
  pointer-events: none;
}

.mgs-trust {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.45);
  backdrop-filter: blur(6px);
  color: #ecfdf5;
  font-family: var(--mgs-ui);
  font-style: normal;
}

.mgs-trust__text {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mgs-trust__text strong {
  color: #fbbf24;
}

.mgs-trust__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: mgsPulseDot 1.8s ease-out infinite;
  flex-shrink: 0;
}

@keyframes mgsPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.mgs-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6px 4px 2px;
}

.mgs-brand__mark {
  width: fit-content;
  margin: 0 auto 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.mgs-brand__logo {
  width: min(200px, 62vw);
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.mgs-brand__title {
  margin: 0;
  font-family: var(--mgs-ui), sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: clamp(1.9rem, 6.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: none;
}

.mgs-brand__domain {
  display: inline-block;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: #fbbf24 !important;
  font-family: var(--mgs-ui);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.mgs-brand__domain:hover {
  color: #fde68a !important;
  background: transparent;
}

.mgs-auth {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}

.mgs-auth a,
.mgs-auth__login,
.mgs-auth__signup {
  min-width: 100px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--mgs-ui), sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.mgs-auth a:hover,
.mgs-auth__login:hover,
.mgs-auth__signup:hover {
  transform: none;
}

.mgs-auth__login {
  background: #ffffff;
  color: #0f172a !important;
  border: 1px solid #e2e8f0;
}

.mgs-auth__login:hover {
  background: #f1f5f9;
}

.mgs-auth__signup {
  background: #0f766e;
  color: #ffffff !important;
  border: 1px solid #0f766e;
  box-shadow: none;
}

.mgs-auth__signup:hover {
  background: #115e59;
}

.mgs-intro {
  background: #f0fdf4;
  color: #052e16;
  border: 3px solid #34d399;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  font-size: 0.92rem;
  font-family: var(--mgs-display);
  font-style: italic;
  text-align: center;
}

.mgs-intro strong {
  color: #0e7490;
}

/* Lucky table */
.mgs-lucky-title {
  text-align: center;
  color: var(--mgs-gold);
  font-family: var(--mgs-display);
  font-style: italic;
  font-size: 1.15rem;
  margin: 14px 0 8px;
  font-weight: 700;
}

.mgs-lucky {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  overflow: hidden;
}

.mgs-lucky th {
  background: #1e3a8a;
  color: #fff;
  padding: 10px;
  font-size: 1rem;
  border: 2px solid #60a5fa;
}

.mgs-lucky td {
  background: #022c22;
  color: #fff;
  text-align: center;
  padding: 12px 8px;
  font-size: 1.15rem;
  font-weight: 800;
  border: 2px solid #34d399;
}

.mgs-lucky td:last-child,
.mgs-lucky__final {
  background: #3b0764;
  color: var(--mgs-gold);
  padding: 0;
  vertical-align: middle;
}

.mgs-marquee {
  height: 28px;
  overflow: hidden;
  position: relative;
}

.mgs-marquee__track {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: mgsMarqueeUp 7s linear infinite;
  will-change: transform;
}

.mgs-marquee__item {
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fbbf24;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.mgs-marquee:hover .mgs-marquee__track {
  animation-play-state: paused;
}

@keyframes mgsMarqueeUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Section banners (also used as H2 section titles) */
.mgs-banner {
  text-align: center;
  font-family: var(--mgs-display);
  font-style: italic;
  font-weight: 700;
  margin: 14px 0 10px;
  padding: 8px 10px;
  border: 3px solid var(--mgs-gold);
  background: linear-gradient(180deg, #155e75 0%, #0e7490 50%, #155e75 100%);
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

h2.mgs-banner {
  display: block;
}

.mgs-banner--hot {
  background: linear-gradient(180deg, #9f1239 0%, #e11d48 50%, #9f1239 100%);
  border-color: #fda4af;
}

.mgs-banner--mint {
  background: #ecfdf5;
  color: #064e3b;
  border-color: #34d399;
}

.mgs-banner--violet {
  background: #2e1065;
  color: var(--mgs-gold);
  border-color: var(--mgs-violet);
}

/* Live ticker cards */
.mgs-live-list {
  display: grid;
  gap: 10px;
}

.mgs-live-card {
  background: #ecfdf5;
  color: #064e3b;
  border: 3px solid #059669;
  border-radius: 8px;
  text-align: center;
  padding: 10px 8px 12px;
  font-family: var(--mgs-display);
  font-style: italic;
}

.mgs-live-card__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.mgs-live-card__result {
  font-size: 1.35rem;
  font-weight: 800;
  color: #9f1239;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.mgs-live-card__meta {
  margin: 0 0 8px;
  font-family: var(--mgs-ui);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f766e;
  letter-spacing: 0.02em;
}

.mgs-refresh {
  display: inline-block;
  background: #0f766e;
  color: #fff !important;
  border: 2px solid #99f6e4;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 0.85rem;
  font-family: var(--mgs-ui);
  font-style: normal;
  font-weight: 700;
}

.mgs-refresh:hover {
  background: #115e59;
  color: #fff !important;
}

/* Promo boxes */
.mgs-promo {
  margin: 12px 0;
  padding: 12px;
  text-align: center;
  background: #fff7ed;
  color: #7c2d12;
  border: 3px double #ea580c;
  font-family: var(--mgs-display);
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
}

.mgs-promo a,
.mgs-bookmark-btn {
  display: inline-block;
  margin-top: 8px;
  background: #0f172a;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--mgs-gold);
  font-family: var(--mgs-ui);
  font-style: normal;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

.mgs-bookmark-btn:hover {
  background: #1e293b;
}

.mgs-bookmark-guide {
  margin-top: 12px;
  text-align: left;
  background: #fff;
  color: #0f172a;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--mgs-ui);
  font-style: normal;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.45;
}

.mgs-bookmark-guide[hidden] {
  display: none !important;
}

.mgs-bookmark-guide__title {
  margin: 0 0 6px;
  color: #9a3412;
  font-size: 0.95rem;
  text-align: center;
}

.mgs-bookmark-guide ul {
  margin: 0;
  padding-left: 1.15rem;
}

.mgs-bookmark-guide li {
  margin-bottom: 6px;
}

.mgs-bookmark-guide kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 800;
}

.mgs-promo--install {
  display: grid;
  justify-items: center;
  gap: 6px;
  background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 100%);
}

.mgs-install__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 2px solid #0f172a;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.mgs-install__title {
  margin: 2px 0 0;
  font-family: var(--mgs-ui);
  font-style: normal;
  font-weight: 800;
  font-size: 1.15rem;
  color: #0f172a;
}

.mgs-install__text {
  margin: 0;
  max-width: 28rem;
  color: #7c2d12;
  font-size: 0.92rem;
  line-height: 1.4;
}

.mgs-install__btn {
  margin-top: 4px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--mgs-gold);
  background: #0f172a;
  color: #fff;
  font-family: var(--mgs-ui);
  font-style: normal;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

.mgs-install__btn:hover {
  background: #1e293b;
}

.mgs-install__btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.mgs-install__hint,
.mgs-install__status {
  margin: 4px 0 0;
  max-width: 28rem;
  font-family: var(--mgs-ui);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9a3412;
  line-height: 1.4;
}

.mgs-install__status {
  color: #0f766e;
}

.mgs-install__status.is-error {
  color: #b91c1c;
}

.mgs-promo--install.is-installable {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

.mgs-promo--install.is-installable .mgs-install__btn {
  background: #15803d;
  border-color: #86efac;
  animation: mgsInstallPulse 1.6s ease-in-out infinite;
}

@keyframes mgsInstallPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.mgs-install__https-tip {
  margin: 8px 0 0;
  font-family: var(--mgs-ui);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9a3412;
}

.mgs-install__https-tip a {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #1d4ed8 !important;
  text-decoration: underline;
  font-weight: 800;
}

.mgs-install-modal[hidden] {
  display: none !important;
}

.mgs-install-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

.mgs-install-modal__sheet {
  width: min(520px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff7ed;
  color: #7c2d12;
  border: 3px solid #ea580c;
  border-radius: 18px 18px 12px 12px;
  padding: 18px 16px 20px;
  position: relative;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  font-family: var(--mgs-ui);
}

.mgs-install-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.mgs-install-modal__body h3 {
  margin: 0 36px 10px 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.mgs-install-modal__body ol {
  margin: 0 0 10px;
  padding-left: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}

.mgs-install-modal__body li {
  margin-bottom: 6px;
}

.mgs-install-modal__body p {
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.45;
}

.mgs-install-modal__body a {
  color: #1d4ed8 !important;
}

.mgs-install-warn {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 8px 10px;
  border-radius: 10px;
}

.mgs-install-note {
  color: #9a3412;
  font-size: 0.9rem;
}

body.mgs-modal-open {
  overflow: hidden;
}

@media (min-width: 720px) {
  .mgs-install-modal {
    align-items: center;
  }
  .mgs-install-modal__sheet {
    border-radius: 16px;
  }
}

/* Result market rows */
.mgs-result-list {
  display: grid;
  gap: 0;
  background: #fff;
  border: 3px solid #0f172a;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 14px;
}

.mgs-market {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  column-gap: 8px;
  padding: 10px 8px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 0;
  text-align: center;
  color: #0f172a;
  font-family: var(--mgs-ui);
  font-style: normal;
}

.mgs-market:last-child {
  border-bottom: 0;
}

.mgs-market__jodi,
.mgs-market__panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #0f766e;
  color: #fff !important;
  border: 2px solid #115e59;
  font-family: var(--mgs-ui);
  font-style: normal;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  line-height: 1;
}

.mgs-market__panel {
  background: #7c3aed;
  border-color: #5b21b6;
}

.mgs-market__jodi:hover,
.mgs-market__panel:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.mgs-market__mid {
  min-width: 0;
  text-align: center;
}

.mgs-market__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #047857;
  font-family: var(--mgs-ui);
  font-style: normal;
  letter-spacing: 0.02em;
}

.mgs-market__result {
  margin: 2px 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.04em;
  font-family: var(--mgs-ui);
  font-style: normal;
}

.mgs-market__time {
  margin: 0;
  font-size: 0.9rem;
  color: #be123c;
  font-family: var(--mgs-ui);
  font-style: normal;
  font-weight: 700;
}

.mgs-market--highlight {
  background: #fef08a;
}

.mgs-market--highlight .mgs-market__name {
  color: #1d4ed8;
}

.mgs-market--feature {
  background: #fef3c7;
}

.mgs-market--feature .mgs-market__name {
  color: #9a3412;
}

.mgs-market__note {
  margin: 4px 0;
  color: #9f1239;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.mgs-market__links {
  display: none;
}

@media (max-width: 420px) {
  .mgs-market {
    grid-template-columns: 56px 1fr 56px;
    column-gap: 4px;
    padding: 8px 4px;
  }

  .mgs-market__jodi,
  .mgs-market__panel {
    min-width: 48px;
    padding: 6px 6px;
    font-size: 0.8rem;
  }

  .mgs-market__name {
    font-size: 0.92rem;
  }

  .mgs-market__result {
    font-size: 1.15rem;
  }
}

/* Weekly free charts (panel / jodi / OTC) */
.mgs-week {
  display: grid;
  gap: 14px;
  margin: 16px 0 18px;
}

.mgs-week__card {
  border: 3px solid #134e4a;
  border-radius: 10px;
  overflow: hidden;
  background: #f0fdf4;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.mgs-week__head {
  margin: 0;
  padding: 12px 10px;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f172a;
  font-family: var(--mgs-ui), sans-serif;
  font-size: clamp(0.88rem, 2.8vw, 1.05rem);
  font-weight: 800;
  font-style: italic;
  text-align: center;
  line-height: 1.4;
}

.mgs-week__head span {
  color: #9f1239;
  font-style: normal;
}

.mgs-week__body {
  padding: 12px 10px 14px;
  background: #ecfdf5;
  color: #0f172a;
  font-family: var(--mgs-ui), sans-serif;
  font-weight: 800;
  text-align: center;
}

.mgs-week__body--list .mgs-week__line {
  padding: 4px 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.mgs-week__body--jodi .mgs-week__jodi-row {
  padding: 5px 0;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

@media (max-width: 420px) {
  .mgs-week__body--list .mgs-week__line,
  .mgs-week__body--jodi .mgs-week__jodi-row {
    font-size: 0.92rem;
    letter-spacing: 0.04em;
  }
}

/* Live markets timetable */
.mgs-tt {
  margin: 0 0 16px;
  border: 3px solid #0f172a;
  border-radius: 12px;
  overflow: hidden;
  background: #ecfdf5;
}

.mgs-tt__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mgs-ui), sans-serif;
}

.mgs-tt__table th,
.mgs-tt__table td {
  border: 1px solid #99f6e4;
  padding: 10px 8px;
  text-align: center;
  font-weight: 700;
}

.mgs-tt__table thead th {
  background: #0f766e;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.mgs-tt__table tbody tr:nth-child(odd) td {
  background: #ecfdf5;
  color: #0f172a;
}

.mgs-tt__table tbody tr:nth-child(even) td {
  background: #d1fae5;
  color: #0f172a;
}

.mgs-tt__table tbody td:first-child {
  font-weight: 800;
  color: #115e59;
}

/* Compact market-list promo (above Main Starline) */
.mgs-list-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 14px 0 10px;
  padding: 14px 14px 16px;
  text-align: center;
  border: 2px solid #2dd4bf;
  border-radius: 12px;
  background: linear-gradient(165deg, #0b3b3a 0%, #0f2744 52%, #0a1f2e 100%);
  color: #ecfdf5;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
}

.mgs-list-promo__hi {
  margin: 0 0 5px;
  max-width: 34rem;
  font-family: var(--mgs-ui);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #fde68a;
}

.mgs-list-promo__en {
  margin: 0 0 12px;
  max-width: 32rem;
  font-family: var(--mgs-ui);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #ccfbf1;
}

.mgs-list-promo__wa {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 10px;
  border: 2px solid var(--mgs-gold);
  background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
  color: #fff !important;
  font-family: var(--mgs-ui);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
}

.mgs-list-promo__wa:hover {
  background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 100%);
  color: #fff !important;
}

@media (max-width: 520px) {
  .mgs-list-promo {
    padding: 12px 12px 14px;
  }

  .mgs-list-promo__hi {
    font-size: 0.88rem;
  }

  .mgs-list-promo__en {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .mgs-list-promo__wa {
    width: 100%;
    max-width: 18rem;
    padding: 9px 14px;
    font-size: 0.88rem;
  }
}

/* Main Fatafat table block — site-matched, unique from reference */
.mgs-ff {
  margin: 16px 0 18px;
  border: 3px solid #0f172a;
  border-radius: 14px;
  overflow: hidden;
  background: #ecfdf5;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

/* Stacked custom starline boards under Main Starline */
.mgs-ff + .mgs-ff {
  margin-top: 14px;
}

.mgs-ff--custom .mgs-ff__head {
  background: linear-gradient(120deg, #134e4a 0%, #0f766e 55%, #155e75 100%);
}

.mgs-ff__head {
  padding: 16px 14px 14px;
  text-align: center;
  background: linear-gradient(120deg, #0f172a 0%, #0f766e 55%, #0e7490 100%);
  color: #fff;
}

.mgs-ff__title {
  margin: 0 0 6px;
  font-family: var(--mgs-ui), sans-serif;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.mgs-ff__desc {
  margin: 0 auto;
  max-width: 720px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #d1fae5;
  font-family: var(--mgs-ui), sans-serif;
}

.mgs-ff__body {
  padding: 10px;
  background: #a7f3d0;
}

.mgs-ff__table {
  width: 100%;
  border-collapse: collapse;
  background: #ecfdf5;
  font-family: var(--mgs-ui), sans-serif;
}

.mgs-ff__table th,
.mgs-ff__table td {
  border: 2px solid #fff;
  padding: 10px 8px;
  text-align: center;
  font-weight: 800;
  color: #0f172a;
  font-size: 0.98rem;
}

.mgs-ff__table thead th {
  background: #0f766e;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.mgs-ff__table tbody tr:nth-child(even) td {
  background: #d1fae5;
}

.mgs-ff__table tbody tr:nth-child(odd) td {
  background: #ecfdf5;
}

.mgs-ff__table tbody td:last-child {
  color: #be123c;
  font-size: 1.05rem;
}

/* Main Starline dual board: Time | Result | Time | Result */
.mgs-ff__table--split thead th:nth-child(2) {
  border-right: 3px solid #0f172a;
}

.mgs-ff__table--split tbody td:nth-child(2) {
  border-right: 3px solid #0f172a;
  color: #be123c;
  font-size: 1.05rem;
}

.mgs-ff__table--split tbody td:nth-child(4) {
  color: #be123c;
  font-size: 1.05rem;
}

.mgs-ff__table--split tbody td:nth-child(1),
.mgs-ff__table--split tbody td:nth-child(3) {
  color: #0f172a;
  font-size: 0.95rem;
}

.mgs-ff__foot {
  padding: 12px 10px;
  text-align: center;
  background: #fef3c7;
  border-top: 2px solid #0f172a;
}

.mgs-ff__foot a {
  display: inline-block;
  color: #0f766e !important;
  font-family: var(--mgs-ui), sans-serif;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: underline;
}

.mgs-ff__foot a:hover {
  color: #115e59 !important;
}

@media (max-width: 420px) {
  .mgs-ff__table th,
  .mgs-ff__table td {
    padding: 8px 4px;
    font-size: 0.85rem;
  }

  .mgs-ff__desc {
    font-size: 0.8rem;
  }
}

/* Menu / CTA buttons */
.mgs-menu {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.mgs-menu a {
  display: block;
  text-align: center;
  background: #fff;
  color: #1d4ed8;
  border: 3px solid #7c3aed;
  border-radius: 10px;
  padding: 12px 10px;
  font-family: var(--mgs-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1rem;
  text-shadow: 0 1px 0 #fde68a;
}

.mgs-menu a:hover {
  background: #f5f3ff;
  color: #5b21b6;
}

/* Free zone boxes */
.mgs-free-grid {
  display: grid;
  gap: 12px;
}

.mgs-free-box {
  background: #fff;
  color: #9f1239;
  border: 2px groove #e11d48;
  padding: 10px;
  text-align: center;
  font-family: var(--mgs-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
}

.mgs-free-box a {
  color: #1d4ed8;
}

.mgs-free-box h3,
.mgs-free-box__title {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 1.05rem;
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
}

/* Open To Close — Free SamajSeva board */
.mgs-otc-grid {
  padding: 4px 0 2px;
}

.mgs-otc-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 6px;
}

.mgs-otc-time {
  text-align: center;
  padding: 12px 10px;
  border-radius: 12px;
  background: linear-gradient(160deg, #0f172a 0%, #134e4a 100%);
  border: 2px solid rgba(52, 211, 153, 0.45);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.18);
}

.mgs-otc-time__label {
  margin: 0 0 4px;
  color: var(--mgs-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.mgs-otc-time__value {
  margin: 0;
  color: var(--mgs-gold);
  font-family: var(--mgs-display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 700;
}

.mgs-otc-dateband {
  position: relative;
  text-align: center;
  padding: 14px 14px 16px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(420px 120px at 20% 0%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(380px 110px at 90% 100%, rgba(251, 191, 36, 0.18), transparent 55%),
    linear-gradient(145deg, #0b1f33 0%, #0f3d3a 55%, #12263f 100%);
  border: 3px double rgba(251, 191, 36, 0.55);
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.9),
    0 10px 24px rgba(0, 0, 0, 0.28);
  animation: mgs-otc-in 0.45s ease both;
}

.mgs-otc-dateband__label {
  margin: 0 0 4px;
  color: var(--mgs-mint);
  font-family: var(--mgs-ui);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mgs-otc-dateband__date {
  margin: 0;
  color: #fff;
  font-family: var(--mgs-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
}

.mgs-otc-dateband__sync {
  margin: 6px 0 0;
  color: var(--mgs-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.mgs-otc-dateband__wa {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 2px solid rgba(251, 191, 36, 0.65);
  background: rgba(15, 23, 42, 0.55);
  color: var(--mgs-gold) !important;
  font-family: var(--mgs-ui);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.mgs-otc-dateband__wa:hover {
  color: #fff !important;
  border-color: var(--mgs-mint);
  background: rgba(20, 83, 45, 0.45);
}

.mgs-otc-card {
  position: relative;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #38bdf8, #34d399 45%, #fbbf24) border-box;
  color: #0f172a;
  border: 3px solid transparent;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  text-align: center;
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.85),
    0 12px 26px rgba(2, 6, 23, 0.22);
  animation: mgs-otc-in 0.5s ease both;
}

.mgs-otc-card:nth-child(2) { animation-delay: 0.04s; }
.mgs-otc-card:nth-child(3) { animation-delay: 0.08s; }
.mgs-otc-card:nth-child(4) { animation-delay: 0.12s; }
.mgs-otc-card:nth-child(5) { animation-delay: 0.16s; }

.mgs-otc-card--hot {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #fb7185, #fbbf24 50%, #f43f5e) border-box;
}

.mgs-otc-card__name {
  margin: 0;
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(180deg, #0e7490 0%, #155e75 100%);
  color: #fff;
  font-family: var(--mgs-ui);
  font-style: normal;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 3px double rgba(251, 191, 36, 0.7);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.mgs-otc-card--hot .mgs-otc-card__name {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    linear-gradient(180deg, #be123c 0%, #9f1239 100%);
}

.mgs-otc-card__body {
  padding: 10px;
  background:
    repeating-linear-gradient(
      -12deg,
      rgba(15, 23, 42, 0.015),
      rgba(15, 23, 42, 0.015) 8px,
      rgba(56, 189, 248, 0.03) 8px,
      rgba(56, 189, 248, 0.03) 16px
    ),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.mgs-otc-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  text-align: left;
}

.mgs-otc-row:last-child {
  margin-bottom: 2px;
}

.mgs-otc-row__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 6px;
  border-radius: 8px;
  background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
  color: #ecfdf5;
  border: 1px solid #134e4a;
  font-family: var(--mgs-ui);
  font-style: normal;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.15;
}

.mgs-otc-card--hot .mgs-otc-row__label {
  background: linear-gradient(180deg, #e11d48 0%, #9f1239 100%);
  border-color: #881337;
  color: #fff1f2;
}

.mgs-otc-row__val {
  color: #9f1239;
  font-family: var(--mgs-ui);
  font-style: normal;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  word-break: break-word;
}

.mgs-otc-card__line {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.35;
  font-family: var(--mgs-display);
  font-style: italic;
  font-weight: 700;
}

.mgs-otc-card__line--note {
  color: #1d4ed8;
}

.mgs-otc-card__line--cta {
  color: #0f172a;
  font-size: 1.1rem;
}

.mgs-otc-card__line--time {
  color: #0e7490;
}

.mgs-otc-card__line--result {
  color: #be123c;
  font-size: 1.2rem;
  font-style: normal;
  font-family: var(--mgs-ui);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.mgs-otc-card__wa {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 2px solid #be123c;
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  color: #9f1239 !important;
  font-family: var(--mgs-ui);
  font-style: normal;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.mgs-otc-card__wa:hover {
  color: #fff !important;
  background: linear-gradient(180deg, #e11d48 0%, #9f1239 100%);
  border-color: #881337;
}

@keyframes mgs-otc-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .mgs-otc-times {
    grid-template-columns: 1fr;
  }

  .mgs-otc-row {
    grid-template-columns: 1fr;
    gap: 5px;
    text-align: center;
  }

  .mgs-otc-row__label {
    width: fit-content;
    margin: 0 auto;
  }

  .mgs-otc-row__val {
    text-align: center;
  }
}

.mgs-patti {
  background: #0f172a;
  border: 2px solid var(--mgs-mint);
  border-radius: 8px;
  padding: 10px;
  margin: 8px 0;
  font-family: ui-monospace, monospace;
  font-style: normal;
  font-size: 0.88rem;
  color: #e2e8f0;
  text-align: left;
}

/* Guesser table */
.mgs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
}

.mgs-table th {
  background: #1e3a8a;
  color: #fff;
  padding: 8px;
  border: 2px solid #93c5fd;
  font-size: 0.95rem;
}

.mgs-table td {
  background: #052e16;
  color: #fff;
  padding: 8px;
  border: 2px solid #34d399;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Chart link lists */
.mgs-charts {
  display: grid;
  gap: 6px;
  margin: 8px 0 16px;
}

.mgs-chart-link {
  display: block;
  background: #fff;
  color: #1d4ed8 !important;
  border: 2px solid #e11d48;
  padding: 8px 10px;
  text-align: center;
  font-family: var(--mgs-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1rem;
  text-shadow: 0 1px 0 #fde68a;
}

.mgs-chart-link:hover {
  background: #fff1f2;
  color: #9f1239 !important;
}

/* SEO content */
.mgs-seo {
  background: #111827;
  border: 2px solid #475569;
  border-radius: 10px;
  padding: 14px 12px;
  margin: 14px 0;
  color: #e2e8f0;
}

.mgs-seo h2 {
  margin: 0 0 8px;
  color: var(--mgs-sky);
  font-family: var(--mgs-display);
  font-style: italic;
  font-size: 1.2rem;
}

.mgs-seo h3 {
  margin: 14px 0 6px;
  color: var(--mgs-gold);
  font-family: var(--mgs-display);
  font-style: italic;
  font-size: 1.05rem;
}

.mgs-seo p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.mgs-seo ul {
  margin: 0 0 8px;
  padding-left: 1.2rem;
  color: #cbd5e1;
}

.mgs-seo strong {
  color: #fff;
}

.mgs-faq details {
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0;
}

.mgs-faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--mgs-mint);
  font-family: var(--mgs-display);
  font-style: italic;
}

.mgs-faq p {
  margin: 8px 0 2px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

/* Membership page */
.mgs-intro h1 {
  margin: 0 0 8px;
  font-family: var(--mgs-display);
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-style: italic;
  font-weight: 700;
  color: #064e3b;
  text-align: center;
  line-height: 1.3;
}

.mgs-intro h1 + p {
  margin: 0;
}

.mgs-member-hero {
  text-align: center;
}

.mgs-member-hero__price {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
}

.mgs-member-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  color: #fff !important;
  font-family: var(--mgs-ui);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid #166534;
}

.mgs-member-cta:hover {
  filter: brightness(1.05);
}

.mgs-member-copy {
  background: #f8fafc;
  color: #0f172a;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 14px 12px;
  margin: 0 0 12px;
  font-family: var(--mgs-ui);
  font-size: 0.98rem;
  line-height: 1.55;
}

.mgs-member-copy p {
  margin: 0 0 10px;
}

.mgs-member-copy p:last-child {
  margin-bottom: 0;
}

.mgs-member-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 12px;
}

@media (min-width: 640px) {
  .mgs-member-plans {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mgs-member-plan {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #38bdf8;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.14);
}

.mgs-member-plan--hot {
  border-color: #fb7185;
}

.mgs-member-plan__name {
  margin: 0 0 6px;
  font-family: var(--mgs-ui);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0e7490;
}

.mgs-member-plan--hot .mgs-member-plan__name {
  color: #be123c;
}

.mgs-member-plan__desc {
  margin: 0 0 8px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
}

.mgs-member-plan__price {
  margin: 0;
  font-family: var(--mgs-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 700;
  color: #9f1239;
}

.mgs-member-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.mgs-member-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(160deg, #0f172a 0%, #134e4a 100%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #e2e8f0;
}

.mgs-member-step__num {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mgs-gold);
  color: #0f172a;
  font-weight: 800;
  font-family: var(--mgs-ui);
}

.mgs-member-step p {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Footer */
.mgs-footer {
  text-align: center;
  margin-top: 18px;
  padding: 14px 8px 20px;
  border-top: 2px solid #334155;
  color: var(--mgs-muted);
  font-size: 0.85rem;
}

.mgs-footer a {
  color: var(--mgs-gold);
}

/* Shared site footer (legal links + disclaimer) */
.mgs-site-footer {
  margin-top: 22px;
  padding: 18px 12px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background:
    linear-gradient(180deg, rgba(15, 39, 68, 0.35) 0%, rgba(11, 18, 32, 0.2) 100%);
  border-radius: 0 0 16px 16px;
}

.mgs-site-footer__blurb {
  margin: 0 auto 12px;
  max-width: 52rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.55;
}

.mgs-site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 0 0 12px;
}

.mgs-site-footer__nav a {
  color: var(--mgs-mint);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.mgs-site-footer__nav a:hover {
  color: var(--mgs-gold);
}

.mgs-site-footer__copy,
.mgs-site-footer__wa {
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: var(--mgs-muted);
}

.mgs-site-footer__wa a {
  color: var(--mgs-sky);
  font-weight: 700;
}

/* Legal / info pages — solid light reading panel (dark ink) */
.mgs-legal {
  margin: 0 auto 16px;
  max-width: 48rem;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--mgs-card);
  color: var(--mgs-ink);
  border: 1px solid #cbd5e1;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.12);
  font-family: var(--mgs-ui), system-ui, sans-serif;
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: left;
}

/* When paired with homepage .mgs-intro mint box, keep readable legal panel */
.mgs-intro.mgs-legal {
  background: var(--mgs-card);
  color: var(--mgs-ink);
  border: 1px solid #cbd5e1;
  font-family: var(--mgs-ui), system-ui, sans-serif;
  font-style: normal;
  text-align: left;
}

.mgs-intro.mgs-legal strong {
  color: var(--mgs-ink);
}

.mgs-legal h1,
.mgs-intro.mgs-legal h1 {
  margin: 0 0 10px;
  font-family: var(--mgs-display), Georgia, serif;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-style: normal;
  font-weight: 700;
  color: var(--mgs-ink);
  line-height: 1.25;
  text-align: left;
}

.mgs-legal h2,
.mgs-legal h3 {
  margin: 0 0 10px;
  color: var(--mgs-ink);
}

.mgs-legal__meta {
  margin: 0 0 12px;
  color: #475569;
  font-size: 0.88rem;
}

.mgs-legal p {
  margin: 0 0 12px;
  color: var(--mgs-ink);
}

.mgs-legal__list {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  color: var(--mgs-ink);
}

.mgs-legal__list li {
  margin: 0 0 8px;
  color: var(--mgs-ink);
}

.mgs-legal a {
  color: #0369a1;
  font-weight: 700;
}

.mgs-legal a:hover {
  color: #0f766e;
}

.mgs-contact__flash {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  list-style: none;
}

.mgs-contact__flash--ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.mgs-contact__flash--err {
  background: #fff1f2;
  border: 1px solid #fda4af;
  color: #9f1239;
}

.mgs-contact__flash--err li {
  margin: 0 0 4px;
}

.mgs-contact-form {
  margin: 0 auto;
  max-width: 28rem;
  text-align: left;
}

.mgs-contact-form__row {
  margin: 0 0 12px;
}

.mgs-contact-form__select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.mgs-contact-form__check {
  margin: 4px 0 16px;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.45;
}

.mgs-contact-form__check label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.mgs-contact-form__check input {
  margin-top: 4px;
  accent-color: #14b8a6;
}

.mgs-contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e 0%, #155e75 55%, #1e3a5f 100%);
  color: #fff;
  font-family: var(--mgs-ui), sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.35);
}

.mgs-contact-form__submit:hover {
  filter: brightness(1.08);
}

.mgs-contact__aside {
  margin-top: 8px;
  text-align: center;
}

.mgs-contact__aside p {
  margin: 0 0 6px;
}

.mgs-rate {
  margin: 0 auto 16px;
  max-width: 720px;
  padding: 16px 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, #0f172a 0%, #134e4a 100%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #e2e8f0;
}

.mgs-rate__title {
  margin: 0 0 8px;
  font-family: var(--mgs-ui), sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.mgs-rate__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0 0 6px;
  font-size: 1.55rem;
  line-height: 1;
}

.mgs-rate__star {
  color: #fbbf24;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.mgs-rate__star--half {
  background: linear-gradient(90deg, #fbbf24 70%, #64748b 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  -webkit-text-fill-color: transparent;
}

.mgs-rate__score {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: #f8fafc;
  font-weight: 700;
}

.mgs-rate__score strong {
  color: #fbbf24;
  font-size: 1.35rem;
}

.mgs-rate__meta {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.mgs-rate__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.mgs-rate__text strong {
  color: #fff;
}

@media (min-width: 640px) {
  .mgs-page {
    width: 100%;
    max-width: none;
    padding: 10px 16px 56px;
  }

  .mgs-charts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .mgs-page {
    width: 100%;
    max-width: none;
    padding: 12px 24px 64px;
  }

  .mgs-charts {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* Fixed bottom-corner actions */
.mgs-float {
  position: fixed;
  z-index: 9999;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.mgs-float:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.mgs-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.mgs-float--wa {
  left: 14px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  border: 3px solid #fff;
}

.mgs-float--refresh {
  right: 14px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  border: 2px solid #38bdf8;
  font-family: var(--mgs-ui);
  font-weight: 800;
  font-size: 0.92rem;
}

.mgs-float--refresh svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 420px) {
  .mgs-float--wa {
    width: 50px;
    height: 50px;
    left: 10px;
    bottom: 14px;
  }

  .mgs-float--refresh {
    right: 10px;
    bottom: 14px;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .mgs-float--refresh span {
    display: none;
  }
}

/* ===== Auth pages (login / register) ===== */
.mgs-auth-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 6px 12px 48px;
}

.mgs-hero--auth {
  margin-bottom: 18px;
  padding: 18px 20px 24px;
}

.mgs-auth-lead {
  margin: 8px auto 0;
  max-width: 40rem;
  color: #cbd5e1;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: center;
}

.mgs-auth-shell {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.mgs-auth-aside {
  display: none;
}

.mgs-auth-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, #eef2ff 100%);
  color: var(--mgs-ink);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 18px;
  padding: 22px 18px 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.mgs-auth-card__title {
  margin: 0 0 14px;
  font-family: var(--mgs-display);
  font-size: 1.35rem;
  color: #0f766e;
  text-align: center;
}

.mgs-auth-form {
  display: grid;
  gap: 4px;
}

.mgs-auth-label {
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.mgs-auth-input {
  width: 100%;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mgs-auth-input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.mgs-auth-submit {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--mgs-ui);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.35);
}

.mgs-auth-submit:hover {
  filter: brightness(1.06);
}

.mgs-auth-submit--ghost {
  margin-top: 8px;
  background: transparent;
  color: #0f766e;
  border: 1px solid #99f6e4;
  box-shadow: none;
}

.mgs-auth-submit--ghost:hover {
  background: #ecfdf5;
  filter: none;
}

.mgs-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}

.mgs-auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #115e59 !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
}

.mgs-auth-tab.is-active {
  background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
  border-color: #0f766e;
  color: #fff !important;
}

.mgs-auth-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fda4af;
  color: #9f1239;
  font-weight: 700;
  font-size: 0.95rem;
}

.mgs-auth-alert--ok {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

.mgs-auth-switch {
  margin: 14px 0 0;
  text-align: center;
  font-weight: 700;
  color: #334155;
}

.mgs-auth-switch a {
  color: #0f766e;
  font-weight: 800;
}

.mgs-auth-note {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: #64748b;
  text-align: center;
  font-weight: 600;
}

@media (min-width: 640px) {
  .mgs-auth-page {
    padding: 10px 24px 56px;
  }

  .mgs-auth-card {
    max-width: 640px;
    padding: 32px 36px 28px;
  }

  .mgs-auth-input {
    padding: 14px 16px;
    font-size: 1.02rem;
  }

  .mgs-auth-submit {
    padding: 15px 18px;
    font-size: 1.1rem;
  }
}

@media (min-width: 992px) {
  .mgs-auth-page {
    padding: 12px 32px 64px;
  }

  .mgs-hero--auth {
    padding: 22px 40px 28px;
  }

  .mgs-auth-shell {
    grid-template-columns: 1fr minmax(420px, 560px);
    align-items: start;
    gap: 28px;
    max-width: none;
  }

  .mgs-auth-shell .mgs-auth-card {
    max-width: none;
    margin: 0;
    min-height: 420px;
  }

  .mgs-auth-aside {
    display: block;
    padding: 28px 8px 8px 12px;
  }

  .mgs-auth-aside h2 {
    margin: 0 0 10px;
    font-family: var(--mgs-display);
    font-size: 1.8rem;
    color: #f8fafc;
  }

  .mgs-auth-aside p {
    margin: 0 0 12px;
    color: #cbd5e1;
    font-size: 1.05rem;
    font-weight: 600;
    max-width: 34rem;
  }

  .mgs-auth-aside ul {
    margin: 0;
    padding: 0 0 0 1.1rem;
    color: #94a3b8;
    font-weight: 700;
    line-height: 1.7;
  }
}

/* ===== Chart pages (jodi / panel) ===== */
.mgs-chart-page {
  width: 100%;
  max-width: none;
  padding: 6px 10px 48px;
}

.mgs-hero--chart {
  margin-bottom: 12px;
}

.mgs-chart-lead {
  margin: 8px auto 0;
  max-width: 40rem;
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.mgs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 700;
}

.mgs-breadcrumb a {
  color: #5eead4;
}

.mgs-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
}

.mgs-chart-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
  color: #fff !important;
  font-weight: 800;
}

.mgs-chart-jump--alt {
  background: linear-gradient(180deg, #9f1239 0%, #be123c 100%);
  border-color: #fda4af;
}

.mgs-chart-meta {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.92rem;
}

.mgs-chart-main {
  width: 100%;
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.mgs-chart-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.mgs-chart-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  color: #0f172a;
  font-family: var(--mgs-ui);
}

.mgs-chart-table--jodi {
  table-layout: auto;
}

.mgs-chart-table th,
.mgs-chart-table td {
  border: 1px solid #cbd5e1;
  padding: 4px 1px;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
}

.mgs-chart-table thead th {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #111827;
  font-size: 0.72rem;
  font-weight: 800;
}

.mgs-chart-col-date,
.mgs-chart-date-head,
.mgs-chart-date {
  width: 64px;
}

.mgs-chart-date {
  min-width: 64px;
  max-width: 72px;
  font-size: 0.64rem;
  font-weight: 800;
  background: #ecfeff;
  color: #0f766e;
  line-height: 1.4;
  padding: 6px 3px !important;
  overflow: hidden;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  letter-spacing: 0;
  vertical-align: middle;
  border-right: 2px solid #94a3b8;
}

.mgs-chart-date__line {
  display: block;
  white-space: nowrap;
  font-weight: 800;
  color: inherit;
  font-size: 0.64rem;
  line-height: 1.4;
}

.mgs-chart-date__to {
  font-weight: 700;
  color: #64748b;
  font-size: 0.55rem;
}

.mgs-chart-jodi--red,
.mgs-chart-table--jodi-grid td.r {
  color: #b91c1c !important;
}

.mgs-chart-table--jodi-grid {
  table-layout: fixed;
  width: 100%;
}

.mgs-chart-table--jodi-grid th,
.mgs-chart-table--jodi-grid td {
  font-size: 1.05rem;
  font-weight: 800;
  padding: 10px 6px;
  word-break: normal;
}

/* One cell per day: open | jodi | close */
.mgs-chart-game {
  padding: 3px 1px !important;
}

.mgs-chart-game__panna,
.mgs-chart-game__jodi {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.1;
}

.mgs-chart-game__panna {
  font-size: 0.58rem;
  font-weight: 800;
  min-width: 0.7em;
}

.mgs-chart-game__jodi {
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0 2px;
  min-width: 1.35em;
}

/* Legacy class hooks (remote / older markup) */
.mgs-chart-panna {
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 2px 0 !important;
  overflow: hidden;
}

.mgs-chart-jodi {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 2px 0 !important;
  overflow: hidden;
}

.mgs-chart-table--jodi td {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 8px 6px;
}

/* Uniform jodi digits — kill nested <font size> / <b> / <small> size quirks */
.mgs-chart-table--jodi td font,
.mgs-chart-table--jodi td span,
.mgs-chart-table--jodi td b,
.mgs-chart-table--jodi td strong,
.mgs-chart-table--jodi td small,
.mgs-chart-table--jodi td * {
  font-size: inherit !important;
  font-weight: inherit;
  line-height: inherit;
}

.mgs-chart-table tbody tr:nth-child(even) {
  background: #fff8e1;
}

.mgs-chart-empty {
  margin: 18px 8px;
  text-align: center;
  color: #334155;
  font-weight: 700;
}

/* Remote dpbossss chart tables — fit screen, no sideways scroll */
.mgs-chart-remote {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.mgs-chart-remote table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  color: #0f172a;
  font-family: var(--mgs-ui);
  font-weight: 700;
}

.mgs-chart-remote th,
.mgs-chart-remote td {
  border: 1px solid #cbd5e1;
  padding: 3px 0;
  text-align: center;
  vertical-align: middle;
  overflow: visible;
}

/* Header orange: thead only. Do NOT use bare tr:first-child — that also
   matches tbody > tr:first-child and paints the first data row orange
   (stored panel HTML wraps rows in thead+tbody inside .mgs-chart-remote). */
.mgs-chart-remote thead th,
.mgs-chart-remote thead td {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #111827;
  font-size: 0.65rem;
  font-weight: 800;
}

/* Legacy remote tables with no <thead>: first row is the day header */
.mgs-chart-remote table:not(:has(thead)) > tbody > tr:first-child > th,
.mgs-chart-remote table:not(:has(thead)) > tbody > tr:first-child > td,
.mgs-chart-remote table:not(:has(thead)) > tr:first-child > th,
.mgs-chart-remote table:not(:has(thead)) > tr:first-child > td {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #111827;
  font-size: 0.65rem;
  font-weight: 800;
}

.mgs-chart-remote tbody td {
  background: #fff;
  color: #0f172a;
  font-size: 0.58rem;
  line-height: 1.15;
}

/* Stored / panel HTML: keep data cells white; header stays gold via thead */
.mgs-chart-table--panel-html tbody td,
.mgs-chart-remote--panel tbody td {
  background: #fff;
  color: #0f172a;
}

/* Remote jodi: every day cell same digit size (do not reuse panel nth-child sizes) */
.mgs-chart-remote--jodi tbody td {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 10px 6px;
}

.mgs-chart-remote--jodi tbody td font,
.mgs-chart-remote--jodi tbody td span,
.mgs-chart-remote--jodi tbody td b,
.mgs-chart-remote--jodi tbody td strong,
.mgs-chart-remote--jodi tbody td small,
.mgs-chart-remote--jodi tbody td * {
  font-size: inherit !important;
  font-weight: inherit;
  line-height: inherit;
}

/* Panel only — dpbossss / pasted HTML: date | open | jodi | close × N days */
.mgs-chart-remote--panel thead tr th[colspan="3"] {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 800;
}

.mgs-chart-table--panel-html thead th[colspan="3"] {
  text-align: center;
}

.mgs-chart-remote--panel thead tr th:nth-child(1),
.mgs-chart-remote--panel tr:first-child th:nth-child(1),
.mgs-chart-remote--panel tr:first-child td:nth-child(1),
.mgs-chart-remote--panel tbody tr td:nth-child(1) {
  width: 18%;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 3px 3px !important;
  overflow: visible;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  letter-spacing: -0.02em;
}

.mgs-chart-remote--panel tbody tr td:nth-child(3),
.mgs-chart-remote--panel tbody tr td:nth-child(6),
.mgs-chart-remote--panel tbody tr td:nth-child(9),
.mgs-chart-remote--panel tbody tr td:nth-child(12),
.mgs-chart-remote--panel tbody tr td:nth-child(15),
.mgs-chart-remote--panel tbody tr td:nth-child(18),
.mgs-chart-remote--panel tbody tr td:nth-child(21),
.mgs-chart-remote--panel tbody tr td:nth-child(24),
.mgs-chart-remote--panel tbody tr td:nth-child(27) {
  border-left-width: 0;
  border-right-width: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

.mgs-chart-remote--panel tbody tr td:nth-child(2),
.mgs-chart-remote--panel tbody tr td:nth-child(5),
.mgs-chart-remote--panel tbody tr td:nth-child(8),
.mgs-chart-remote--panel tbody tr td:nth-child(11),
.mgs-chart-remote--panel tbody tr td:nth-child(14),
.mgs-chart-remote--panel tbody tr td:nth-child(17),
.mgs-chart-remote--panel tbody tr td:nth-child(20),
.mgs-chart-remote--panel tbody tr td:nth-child(23) {
  border-right-width: 0;
  font-size: 0.55rem;
}

.mgs-chart-remote--panel tbody tr td:nth-child(4),
.mgs-chart-remote--panel tbody tr td:nth-child(7),
.mgs-chart-remote--panel tbody tr td:nth-child(10),
.mgs-chart-remote--panel tbody tr td:nth-child(13),
.mgs-chart-remote--panel tbody tr td:nth-child(16),
.mgs-chart-remote--panel tbody tr td:nth-child(19),
.mgs-chart-remote--panel tbody tr td:nth-child(22),
.mgs-chart-remote--panel tbody tr td:nth-child(25),
.mgs-chart-remote--panel tbody tr td:nth-child(28) {
  border-left-width: 0;
  font-size: 0.55rem;
}

.mgs-chart-remote .r,
.mgs-chart-remote font[color="red"],
.mgs-chart-remote [style*="color:red"],
.mgs-chart-remote [style*="color: red"] {
  color: #b91c1c !important;
}

.mgs-chart-remote a {
  color: #0f766e;
}

.mgs-chart-seo {
  margin-top: 8px;
}

.mgs-chart-related {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .mgs-chart-page {
    padding: 4px 4px 40px;
  }

  .mgs-chart-main {
    padding: 4px;
    border-radius: 10px;
  }

  .mgs-chart-table--panel thead th {
    font-size: 0.55rem;
    padding: 3px 0;
  }

  .mgs-chart-col-date,
  .mgs-chart-date-head,
  .mgs-chart-date {
    width: 58px;
    min-width: 58px;
    max-width: 64px;
  }

  .mgs-chart-date,
  .mgs-chart-date__line {
    font-size: 0.58rem;
    line-height: 1.4;
    padding: 5px 2px !important;
  }

  .mgs-chart-date__to {
    font-size: 0.5rem;
  }

  .mgs-chart-game__panna {
    font-size: 0.5rem;
  }

  .mgs-chart-game__jodi {
    font-size: 0.78rem;
    padding: 0 1px;
  }

  .mgs-chart-table--jodi-grid th,
  .mgs-chart-table--jodi-grid td {
    font-size: 0.95rem;
    padding: 8px 4px;
  }

  .mgs-chart-panna {
    font-size: 0.5rem;
  }

  .mgs-chart-jodi {
    font-size: 0.72rem;
  }

  .mgs-chart-remote thead th,
  .mgs-chart-remote thead td,
  .mgs-chart-remote table:not(:has(thead)) > tbody > tr:first-child > th,
  .mgs-chart-remote table:not(:has(thead)) > tbody > tr:first-child > td,
  .mgs-chart-remote table:not(:has(thead)) > tr:first-child > th,
  .mgs-chart-remote table:not(:has(thead)) > tr:first-child > td {
    font-size: 0.55rem;
  }

  .mgs-chart-remote--jodi tbody td {
    font-size: 0.95rem;
    padding: 8px 4px;
  }

  .mgs-chart-remote--panel thead tr th:nth-child(1),
  .mgs-chart-remote--panel tr:first-child th:nth-child(1),
  .mgs-chart-remote--panel tr:first-child td:nth-child(1),
  .mgs-chart-remote--panel tbody tr td:nth-child(1) {
    width: 19%;
    font-size: 0.54rem;
    padding: 3px 3px !important;
  }

  .mgs-chart-remote--panel tbody tr td:nth-child(3),
  .mgs-chart-remote--panel tbody tr td:nth-child(6),
  .mgs-chart-remote--panel tbody tr td:nth-child(9),
  .mgs-chart-remote--panel tbody tr td:nth-child(12),
  .mgs-chart-remote--panel tbody tr td:nth-child(15),
  .mgs-chart-remote--panel tbody tr td:nth-child(18),
  .mgs-chart-remote--panel tbody tr td:nth-child(21),
  .mgs-chart-remote--panel tbody tr td:nth-child(24),
  .mgs-chart-remote--panel tbody tr td:nth-child(27) {
    font-size: 0.7rem;
  }

  .mgs-chart-table--jodi th,
  .mgs-chart-table--jodi td {
    font-size: 0.9rem;
    padding: 8px 4px;
  }
}

@media (min-width: 768px) {
  .mgs-chart-page {
    padding: 10px 20px 56px;
  }

  .mgs-chart-main {
    padding: 14px;
  }

  .mgs-chart-table--panel {
    table-layout: auto;
  }

  .mgs-chart-col-date,
  .mgs-chart-date-head,
  .mgs-chart-date {
    width: 78px;
    min-width: 78px;
    max-width: 88px;
  }

  .mgs-chart-date,
  .mgs-chart-date__line {
    font-size: 0.78rem;
  }

  .mgs-chart-game__panna {
    font-size: 0.78rem;
  }

  .mgs-chart-game__jodi {
    font-size: 1.15rem;
    padding: 0 4px;
  }

  .mgs-chart-table--jodi-grid th,
  .mgs-chart-table--jodi-grid td {
    font-size: 1.2rem;
    padding: 12px 8px;
  }

  .mgs-chart-panna {
    font-size: 0.85rem;
  }

  .mgs-chart-jodi {
    font-size: 1.15rem;
  }

  .mgs-chart-remote table {
    table-layout: auto;
  }

  .mgs-chart-remote--panel tbody td {
    font-size: 0.8rem;
  }

  .mgs-chart-remote--jodi tbody td {
    font-size: 1.2rem;
    padding: 12px 8px;
  }

  .mgs-chart-remote--panel tbody tr td:nth-child(3),
  .mgs-chart-remote--panel tbody tr td:nth-child(6),
  .mgs-chart-remote--panel tbody tr td:nth-child(9),
  .mgs-chart-remote--panel tbody tr td:nth-child(12),
  .mgs-chart-remote--panel tbody tr td:nth-child(15),
  .mgs-chart-remote--panel tbody tr td:nth-child(18),
  .mgs-chart-remote--panel tbody tr td:nth-child(21),
  .mgs-chart-remote--panel tbody tr td:nth-child(24),
  .mgs-chart-remote--panel tbody tr td:nth-child(27) {
    font-size: 1.15rem;
  }
}

@media (min-width: 1200px) {
  .mgs-chart-page {
    padding: 12px 28px 64px;
  }
}

/* ===== Guessing Forum ===== */
.mgs-forum-page {
  --mgs-fc-red: #b91c1c;
  --mgs-fc-blue: #1d4ed8;
  --mgs-fc-green: #15803d;
  --mgs-fc-black: #0f172a;
  --mgs-fc-orange: #c2410c;
  --mgs-fc-teal: #0f766e;
  --mgs-fc-gold: #a16207;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 6px 10px 48px;
}

.mgs-forum-page .mgs-hero--chart,
.mgs-forum-nav,
.mgs-forum-rules,
.mgs-forum-alert,
.mgs-forum-compose,
.mgs-forum-feed,
.mgs-forum-pager,
.mgs-forum-page .mgs-footer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 768px) {
  .mgs-forum-page {
    padding: 10px 18px 56px;
  }
}

@media (min-width: 1200px) {
  .mgs-forum-page {
    padding: 12px 22px 64px;
  }
}

.mgs-forum-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 14px;
}

.mgs-forum-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 800;
  color: #111827 !important;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  border: 1px solid #b45309;
}

.mgs-forum-rules {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #0f172a;
}

.mgs-forum-rules h2 {
  margin: 0 0 10px;
  font-family: var(--mgs-display);
  font-size: 1.25rem;
  color: #0f766e;
}

.mgs-forum-rules ol {
  margin: 0;
  padding-left: 1.2rem;
  font-weight: 700;
  line-height: 1.55;
}

.mgs-forum-rules li {
  margin: 0 0 6px;
}

.mgs-forum-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
}

.mgs-forum-alert--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.mgs-forum-alert--ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.mgs-forum-compose {
  margin: 0 0 18px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(253, 224, 71, 0.22), transparent 50%),
    linear-gradient(145deg, #0f766e 0%, #115e59 42%, #134e4a 100%);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.mgs-forum-hint code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.35);
  color: #fde68a;
  font-size: 0.84em;
}

.mgs-forum-color-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 0 10px;
}

.mgs-forum-color {
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.28);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 var(--swatch, transparent);
}

.mgs-forum-color:hover {
  background: rgba(15, 23, 42, 0.45);
}

.mgs-forum-compose h2 {
  margin: 0 0 10px;
  font-family: var(--mgs-display);
  font-size: 1.35rem;
  text-align: center;
}

.mgs-forum-label {
  display: block;
  margin: 0 0 6px;
  font-weight: 800;
  text-align: center;
}

.mgs-forum-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #0f172a;
  font: 700 1rem/1.45 var(--mgs-ui);
  resize: vertical;
}

.mgs-forum-hint {
  margin: 8px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #dcfce7;
  text-align: center;
}

.mgs-forum-emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 0 10px;
}

.mgs-forum-emoji {
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.2rem;
  cursor: pointer;
}

.mgs-forum-emoji:hover {
  background: rgba(255, 255, 255, 0.32);
}

.mgs-forum-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mgs-forum-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #fff;
  background: #fff;
  color: #14532d !important;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none !important;
}

.mgs-forum-btn--ghost {
  background: transparent;
  color: #fff !important;
}

.mgs-forum-btn--small {
  min-height: 38px;
  padding: 6px 14px;
  margin-top: 8px;
}

.mgs-forum-login-need {
  margin: 0;
  text-align: center;
  font-weight: 800;
}

.mgs-forum-login-need a {
  color: #fef08a;
  text-decoration: underline;
}

.mgs-forum-feed {
  display: grid;
  gap: 14px;
}

.mgs-forum-empty {
  padding: 18px;
  text-align: center;
  font-weight: 800;
  color: #cbd5e1;
}

.mgs-forum-post {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #e8f7f1;
  border: 1px solid rgba(15, 118, 110, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 14px 30px rgba(0, 0, 0, 0.24);
}

.mgs-forum-post__head {
  display: grid;
  gap: 6px;
  padding: 12px 14px 18px;
  background:
    linear-gradient(120deg, rgba(253, 224, 71, 0.12), transparent 40%),
    linear-gradient(180deg, #134e4a 0%, #0f766e 55%, #115e59 100%);
  color: #fff;
  position: relative;
}

.mgs-forum-post__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 12px;
  background:
    radial-gradient(circle at 8px 0, transparent 7px, #e8f7f1 8px) 0 0 / 16px 12px repeat-x;
}

.mgs-forum-post__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.mgs-forum-post__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mgs-forum-post__name {
  color: #bbf7d0;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.mgs-forum-post__who time {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ccfbf1;
}

.mgs-forum-post__role {
  color: #fde047;
  text-align: center;
  font-weight: 800;
}

.mgs-forum-post__status {
  text-align: right;
  font-weight: 800;
}

.mgs-forum-post__status.is-online,
.mgs-forum-reply__head .is-online {
  color: #4ade80;
}

.mgs-forum-post__trace {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #99f6e4;
}

.mgs-forum-post__body {
  padding: 18px 16px 16px;
  color: #b91c1c;
  font-weight: 800;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.55;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  background:
    linear-gradient(180deg, #e8f7f1 0%, #f3faf7 100%);
}

.mgs-forum-post__body .mgs-forum-c {
  font-style: italic;
  font-weight: 800;
}

.mgs-forum-post__body .mgs-forum-b {
  font-style: italic;
}

.mgs-forum-post__body a {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
  cursor: text;
}

.mgs-forum-replies {
  margin: 0 12px 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(15, 118, 110, 0.35);
}

.mgs-forum-reply {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d1fae5;
}

.mgs-forum-reply:last-child {
  margin-bottom: 0;
}

.mgs-forum-reply__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #334155;
  text-align: center;
}

.mgs-forum-reply__head strong {
  color: #0f766e;
}

.mgs-forum-reply__body {
  color: #0f172a;
  font-weight: 700;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
  word-break: break-word;
}

.mgs-forum-foot {
  display: flex;
  justify-content: flex-end;
  padding: 0 12px 12px;
}

.mgs-forum-reply-opt {
  width: min(100%, 420px);
}

.mgs-forum-reply-opt > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.mgs-forum-reply-opt > summary::-webkit-details-marker {
  display: none;
}

.mgs-forum-reply-opt[open] > summary {
  margin-bottom: 8px;
  background: #115e59;
}

.mgs-forum-form--reply {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.mgs-forum-textarea--reply {
  min-height: 64px;
  background: #fff;
  border: 1px solid #99f6e4;
  text-align: left;
  font-style: normal;
}

.mgs-forum-reply-link {
  font-weight: 800;
  color: #0f766e !important;
  font-size: 0.9rem;
}

.mgs-forum-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 18px 0 8px;
  font-weight: 800;
  color: #e2e8f0;
}

.mgs-forum-pager a {
  color: #5eead4;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

@media (max-width: 640px) {
  .mgs-forum-page {
    padding: 6px 8px 40px;
  }

  .mgs-forum-post__top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mgs-forum-post__status {
    text-align: center;
  }

  .mgs-forum-post__trace {
    justify-content: center;
  }
}

/* Custom starline pana chart (multi-time columns) */
.mgs-starline-chart-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mgs-starline-pana-table {
  table-layout: auto;
  min-width: 100%;
}

.mgs-starline-pana-table thead th {
  white-space: nowrap;
  font-size: 0.68rem;
  padding: 8px 4px;
}

.mgs-starline-pana-table .mgs-chart-date,
.mgs-starline-pana-table .mgs-chart-date-head {
  width: 88px;
  min-width: 88px;
  max-width: 100px;
  white-space: nowrap;
}

.mgs-starline-pana-cell {
  padding: 6px 4px !important;
  min-width: 52px;
}

.mgs-starline-pana-cell__panna,
.mgs-starline-pana-cell__digit {
  display: block;
  line-height: 1.15;
  font-weight: 800;
}

.mgs-starline-pana-cell__panna {
  font-size: 0.72rem;
  color: #0f172a;
}

.mgs-starline-pana-cell__digit {
  font-size: 1.05rem;
  color: #0f766e;
}

.mgs-starline-pana-cell__empty {
  color: #94a3b8;
  font-weight: 700;
}

@media (max-width: 640px) {
  .mgs-starline-pana-table thead th {
    font-size: 0.58rem;
    padding: 6px 2px;
  }

  .mgs-starline-pana-cell__panna {
    font-size: 0.62rem;
  }

  .mgs-starline-pana-cell__digit {
    font-size: 0.9rem;
  }

  .mgs-site-footer__nav {
    gap: 6px 10px;
  }

  .mgs-site-footer__nav a {
    font-size: 0.82rem;
  }

  .mgs-legal {
    font-size: 0.94rem;
  }
}
