/* Source-style iframe embed.
 * WordPress hosts account bridge + menu page.
 * The game itself runs from game/index.html, like the original Monster Tamer demo.
 */

.mathie-adventure-shell {
  position: relative !important;
  z-index: 10050 !important;
  isolation: isolate !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 18px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  pointer-events: auto !important;
}

body.page-id-56228 #header,
body.page-id-56228 .header,
body.page-id-56228 .site-header,
body.page-id-56228 .stm_lms_header,
body.page-id-56228.mathie-adventure-page #header,
body.page-id-56228.mathie-adventure-page .header,
body.page-id-56228.mathie-adventure-page .site-header,
body.page-id-56228.mathie-adventure-page .stm_lms_header {
  position: relative !important;
  z-index: auto !important;
}

body.page-id-56228 .stm_lms_account_dropdown .masterstudy-dropdown-menu,
body.page-id-56228 .stm_lms_account_dropdown .masterstudy-dropdown-menu__wrap,
body.page-id-56228 .stm_lms_account_dropdown .masterstudy-dropdown-menu__list,
body.page-id-56228 .stm_lms_account_dropdown .dropdown-menu,
body.page-id-56228 .masterstudy-account .masterstudy-dropdown-menu,
body.page-id-56228 .masterstudy-user-account .masterstudy-dropdown-menu,
body.page-id-56228 .masterstudy-authorization__dropdown .masterstudy-dropdown-menu,
body.page-id-56228.mathie-adventure-page .stm_lms_account_dropdown .masterstudy-dropdown-menu,
body.page-id-56228.mathie-adventure-page .stm_lms_account_dropdown .masterstudy-dropdown-menu__wrap,
body.page-id-56228.mathie-adventure-page .stm_lms_account_dropdown .masterstudy-dropdown-menu__list,
body.page-id-56228.mathie-adventure-page .stm_lms_account_dropdown .dropdown-menu,
body.page-id-56228.mathie-adventure-page .masterstudy-account .masterstudy-dropdown-menu,
body.page-id-56228.mathie-adventure-page .masterstudy-user-account .masterstudy-dropdown-menu,
body.page-id-56228.mathie-adventure-page .masterstudy-authorization__dropdown .masterstudy-dropdown-menu {
  z-index: 10080 !important;
  pointer-events: auto !important;
}

.mathie-adventure-shell,
.mathie-adventure-shell *,
.mathie-adventure-iframe,
.mathie-fullscreen-button {
  -webkit-tap-highlight-color: transparent !important;
}

.mathie-adventure-iframe {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  max-width: 1280px !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #061b2e url("/wp-content/plugins/mathie-adventure-bridge/game/assets/images/mathie/cover.png?v=20260727-loading-cover-v2") center center / 100% 100% no-repeat !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22) !important;
  pointer-events: auto !important;
}

body.page-id-56228 .stm_lms_user_float_menu,
body.page-id-56228 .stm_lms_user_float_menu__tip,
body.page-id-56228.mathie-adventure-page .stm_lms_user_float_menu,
body.page-id-56228.mathie-adventure-page .stm_lms_user_float_menu__tip {
  visibility: hidden !important;
  pointer-events: none !important;
}

.mathie-fullscreen-button {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 20 !important;

  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;

  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 10px !important;

  background: rgba(30, 63, 117, 0.55) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0 !important;
  line-height: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  text-indent: 0 !important;
  white-space: nowrap !important;

  opacity: 0.72 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  user-select: none !important;
  -webkit-user-select: none !important;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.mathie-fullscreen-button::before {
  content: none !important;
  display: none !important;
}

.mathie-fullscreen-icon {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  color: currentColor !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.4 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  pointer-events: none !important;
}

.mathie-fullscreen-button:hover,
.mathie-fullscreen-button:focus {
  opacity: 0.95;
  background: rgba(30, 63, 117, 0.75);
}

.mathie-adventure-status {
  max-width: 1280px !important;
  margin: 0 auto 10px auto !important;
  padding: 10px 14px !important;
  color: #1f3b73;
  background: #eaf7ff;
  border: 1px solid #d6e9ff;
  border-radius: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none !important;
}

.mathie-adventure-status.is-ready {
  color: #1b5e20;
  background: #eef9ee;
  border-color: #cfe8cf;
}

.mathie-adventure-status.is-error {
  color: #b00020;
  background: #fff0f3;
  border-color: #ffc8d2;
}

.mathie-adventure-login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: #ffffff;
}

.mathie-adventure-shell:fullscreen,
html:fullscreen .mathie-adventure-shell,
html:-webkit-full-screen .mathie-adventure-shell,
.mathie-adventure-shell.is-browser-fullscreen,
.mathie-adventure-shell.is-ios-fullscreen-fallback {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: #000000 !important;
  background-image: none !important;
  overflow: hidden !important;
}

.mathie-adventure-shell.is-ios-fullscreen-fallback {
  width: max(100vw, var(--mathie-vv-width, var(--mathie-visual-viewport-width, 100vw))) !important;
  height: 100vh !important;
  height: 100lvh !important;
  min-height: 100vh !important;
  min-height: 100lvh !important;
}

.mathie-adventure-shell:fullscreen .mathie-adventure-iframe,
html:fullscreen .mathie-adventure-shell .mathie-adventure-iframe,
html:-webkit-full-screen .mathie-adventure-shell .mathie-adventure-iframe,
.mathie-adventure-shell.is-browser-fullscreen .mathie-adventure-iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 100% !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000000 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.mathie-adventure-shell.is-ios-fullscreen-fallback .mathie-adventure-iframe {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(
    100vw,
    calc(100lvh * 16 / 9)
  ) !important;
  height: min(
    100lvh,
    calc(100vw * 9 / 16)
  ) !important;
  max-width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 0 !important;
  background: #000000 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.mathie-adventure-shell:fullscreen .mathie-fullscreen-button,
html:fullscreen .mathie-adventure-shell .mathie-fullscreen-button,
html:-webkit-full-screen .mathie-adventure-shell .mathie-fullscreen-button,
.mathie-adventure-shell.is-browser-fullscreen .mathie-fullscreen-button,
.mathie-adventure-shell.is-ios-fullscreen-fallback .mathie-fullscreen-button {
  position: fixed !important;
  top: max(10px, env(safe-area-inset-top)) !important;
  right: max(10px, env(safe-area-inset-right)) !important;
  z-index: 2147483300 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

.mathie-adventure-shell:fullscreen .mathie-adventure-status,
html:fullscreen .mathie-adventure-shell .mathie-adventure-status,
html:-webkit-full-screen .mathie-adventure-shell .mathie-adventure-status,
.mathie-adventure-shell.is-browser-fullscreen .mathie-adventure-status,
.mathie-adventure-shell.is-ios-fullscreen-fallback .mathie-adventure-status {
  display: none !important;
}

html.mathie-ios-fullscreen-lock,
body.mathie-ios-fullscreen-lock {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  background: #061b2e !important;
}

.mathie-adventure-empty,
.mathie-adventure-login-card {
  max-width: 760px;
  margin: 40px auto;
  padding: 28px;
  background: #ffffff;
  border: 3px solid #1f3b73;
  border-radius: 16px;
  font-family: Arial, Helvetica, sans-serif;
  color: #111827;
}

.mathie-adventure-login-card {
  width: min(100%, 460px);
  margin: 0;
  box-shadow: 0 10px 28px rgba(31, 59, 115, 0.12);
}

.mathie-adventure-login-card h2 {
  margin: 0 0 10px 0;
  color: #1f3b73;
}

.mathie-adventure-login-card p {
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.mathie-adventure-login-card #loginform {
  margin-top: 18px;
}

.mathie-adventure-login-card .login-username,
.mathie-adventure-login-card .login-password,
.mathie-adventure-login-card .login-remember {
  margin-bottom: 14px;
}

.mathie-adventure-login-card label {
  display: block;
  margin-bottom: 6px;
  color: #1f3b73;
  font-weight: 700;
}

.mathie-adventure-login-card input[type="text"],
.mathie-adventure-login-card input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-size: 16px;
}

.mathie-adventure-login-card .login-submit .button,
.mathie-adventure-login-card .login-submit .button-primary {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: #1f3b73;
  color: #ffffff;
  font-weight: 700;
  box-shadow: none;
}

.mathie-adventure-empty code {
  display: inline-block;
  padding: 5px 8px;
  background: #f3f4f6;
  border-radius: 6px;
  color: #b00020;
  font-weight: 700;
}

.mathie-adventure-button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: #1f3b73;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 760px) {
  .mathie-adventure-shell {
    padding: 8px !important;
  }

  .mathie-adventure-iframe {
    min-height: auto !important;
  }

  .mathie-fullscreen-button {
    position: absolute !important;
    top: max(14px, env(safe-area-inset-top)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    z-index: 20 !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 34px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .mathie-adventure-shell:fullscreen .mathie-fullscreen-button,
  .mathie-adventure-shell.is-browser-fullscreen .mathie-fullscreen-button {
    display: none !important;
  }

  .mathie-adventure-shell.is-ios-fullscreen-fallback .mathie-fullscreen-button {
    display: flex !important;
  }

  .mathie-adventure-status {
    font-size: 12px;
    padding: 8px 10px !important;
    margin-bottom: 8px !important;
  }
}

/* Android WebView host presentation. Authentication and bridge markup remain
 * on the WordPress page; only the page chrome and embed geometry change. */
html:has(> body.mathie-android-app),
body.mathie-android-app {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #061b2e !important;
}

body.mathie-android-app > #header,
body.mathie-android-app > header,
body.mathie-android-app > .header,
body.mathie-android-app > .site-header,
body.mathie-android-app > .footer,
body.mathie-android-app > footer,
body.mathie-android-app header,
body.mathie-android-app .site-header,
body.mathie-android-app .stm-header,
body.mathie-android-app .stm_lms_header,
body.mathie-android-app .stm_lms_header_1,
body.mathie-android-app .stm_lms_account_dropdown,
body.mathie-android-app .stm_lms_user_info,
body.mathie-android-app .stm-lms-user-info,
body.mathie-android-app .stm_mobile__header,
body.mathie-android-app .mobile-menu,
body.mathie-android-app .hamburger,
body.mathie-android-app nav,
body.mathie-android-app .navigation,
body.mathie-android-app .menu-toggle,
body.mathie-android-app .page-title,
body.mathie-android-app .entry-title,
body.mathie-android-app .breadcrumbs,
body.mathie-android-app .breadcrumb,
body.mathie-android-app .sidebar,
body.mathie-android-app aside,
body.mathie-android-app footer,
body.mathie-android-app .site-footer {
  display: none !important;
}

body.mathie-android-app #wrapper,
body.mathie-android-app #wrapper > .container,
body.mathie-android-app #wrapper .pages-template,
body.mathie-android-app #wrapper .page-content,
body.mathie-android-app #wrapper .entry-content,
body.mathie-android-app .site,
body.mathie-android-app .site-content,
body.mathie-android-app .content-area,
body.mathie-android-app .container,
body.mathie-android-app .row,
body.mathie-android-app .col,
body.mathie-android-app .elementor,
body.mathie-android-app .elementor-section,
body.mathie-android-app .elementor-container,
body.mathie-android-app .elementor-widget-wrap,
body.mathie-android-app .elementor-widget-container {
  width: 100% !important;
  height: 100% !important;
  min-height: 100dvh !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.mathie-android-app .mathie-adventure-shell {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #061b2e !important;
}

body.mathie-android-app .mathie-adventure-iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.mathie-android-app #mathie-fullscreen-button,
body.mathie-android-app .mathie-fullscreen-button,
body.mathie-android-app .mathie-adventure-status {
  display: none !important;
}

body.mathie-android-app .mathie-adventure-login-shell {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: #061b2e url("/wp-content/plugins/mathie-adventure-bridge/game/assets/images/mathie/cover.png?v=20260727-loading-cover-v2") center center / cover no-repeat !important;
}

body.mathie-android-app .mathie-adventure-login-card {
  width: min(420px, 80vw) !important;
  max-width: 420px !important;
  max-height: calc(100dvh - 28px) !important;
  margin: 0 !important;
  padding: 22px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 14px !important;
  background: rgba(7, 24, 44, 0.9) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}

body.mathie-android-app .mathie-adventure-login-card h2 {
  margin: 0 0 8px 0 !important;
  color: #ffffff !important;
  font-size: 30px !important;
  line-height: 1.05 !important;
  text-align: center !important;
}

body.mathie-android-app .mathie-adventure-login-card p {
  color: rgba(255, 255, 255, 0.84) !important;
  margin: 0 0 12px 0 !important;
  text-align: center !important;
}

body.mathie-android-app .mathie-adventure-login-card #mathie-adventure-login-form {
  margin-top: 14px !important;
}

body.mathie-android-app .mathie-adventure-login-card .login-username,
body.mathie-android-app .mathie-adventure-login-card .login-password,
body.mathie-android-app .mathie-adventure-login-card .login-remember,
body.mathie-android-app .mathie-adventure-login-card .login-submit {
  margin: 0 0 12px 0 !important;
  text-align: left !important;
}

body.mathie-android-app .mathie-adventure-login-card .login-submit {
  margin-bottom: 0 !important;
}

body.mathie-android-app .mathie-adventure-login-card label {
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

body.mathie-android-app .mathie-adventure-login-card input[type="text"],
body.mathie-android-app .mathie-adventure-login-card input[type="password"] {
  min-height: 44px !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #102033 !important;
  font-size: 16px !important;
}

body.mathie-android-app .mathie-adventure-login-card .login-remember label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

body.mathie-android-app .mathie-adventure-login-card .login-remember input {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 0 !important;
}

body.mathie-android-app .mathie-adventure-login-card .login-submit .button,
body.mathie-android-app .mathie-adventure-login-card .login-submit .button-primary {
  width: 100% !important;
  min-height: 46px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #33b6d4 !important;
  color: #052033 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

body.mathie-android-app .mathie-adventure-login-error {
  margin: 0 0 12px 0 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 8px !important;
  background: rgba(185, 28, 28, 0.88) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

@media (max-height: 430px) {
  body.mathie-android-app .mathie-adventure-login-shell {
    align-items: flex-start !important;
    overflow: hidden !important;
  }

  body.mathie-android-app .mathie-adventure-login-card {
    padding: 14px !important;
    max-height: calc(100dvh - 28px) !important;
  }

  body.mathie-android-app .mathie-adventure-login-card h2 {
    font-size: 24px !important;
    margin-bottom: 6px !important;
  }

  body.mathie-android-app .mathie-adventure-login-card p {
    margin-bottom: 8px !important;
    line-height: 1.25 !important;
  }

  body.mathie-android-app .mathie-adventure-login-card #mathie-adventure-login-form {
    margin-top: 8px !important;
  }

  body.mathie-android-app .mathie-adventure-login-card .login-username,
  body.mathie-android-app .mathie-adventure-login-card .login-password,
  body.mathie-android-app .mathie-adventure-login-card .login-remember,
  body.mathie-android-app .mathie-adventure-login-card .login-submit {
    margin-bottom: 8px !important;
  }
}
.mathie-vip-payment-section {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid #d9e6f2;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2f46;
  box-shadow: 0 6px 18px rgba(31, 59, 115, 0.08);
}

.mathie-vip-payment-section h2 {
  margin: 0 0 8px;
  color: #1f3b73;
  font-size: 24px;
  line-height: 1.2;
}

.mathie-vip-payment-section p {
  margin: 0 0 10px;
  line-height: 1.45;
}

.mathie-vip-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.mathie-vip-value-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 14px;
  align-items: stretch;
  margin-top: 16px;
  padding: 18px;
  border-radius: 8px;
  background: #173b7a;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(31, 59, 115, 0.16);
}

.mathie-vip-value-hero h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.1;
}

.mathie-vip-value-hero p {
  margin: 0;
  color: #eaf4ff;
}

.mathie-vip-benefit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mathie-vip-benefit-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(219, 232, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.mathie-vip-reward-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  color: #1f2f46;
  border: 2px solid #bae6fd;
}

.mathie-vip-reward-card span {
  color: #1f3b73;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mathie-vip-reward-card strong {
  color: #166534;
  font-size: 26px;
  line-height: 1;
}

.mathie-vip-pricing {
  margin-top: 18px;
}

.mathie-vip-pricing > h3 {
  margin: 0 0 12px;
  color: #1f3b73;
  font-size: 22px;
  line-height: 1.2;
}

.mathie-vip-purchase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.mathie-vip-plan-group {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
  padding: 16px;
  border: 2px solid #d9e6f2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(31, 59, 115, 0.08);
}

.mathie-vip-plan-group--family {
  border-color: #b7d7ff;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.mathie-vip-plan-group-header h4 {
  margin: 0 0 5px;
  color: #1f3b73;
  font-size: 22px;
  line-height: 1.15;
}

.mathie-vip-plan-group-header p {
  margin: 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.35;
}

.mathie-vip-plan-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mathie-vip-plan-benefits li {
  position: relative;
  padding-left: 21px;
  color: #1f2f46;
  font-size: 14px;
  line-height: 1.3;
}

.mathie-vip-plan-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #166534;
  font-weight: 900;
}

.mathie-vip-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mathie-vip-payment-plan {
  border: 1px solid #d9e6f2;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfe;
}

.mathie-vip-payment-plan.is-best-value {
  border-color: #86efac;
  background: #f0fdf4;
}

.mathie-vip-payment-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mathie-vip-payment-plan h5 {
  margin: 0;
  color: #1f3b73;
  font-size: 17px;
  line-height: 1.2;
}

.mathie-vip-payment-plan-header span,
.mathie-vip-payment-price span {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  padding: 2px 7px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 900;
}

.mathie-vip-payment-plan-note {
  margin: 8px 0;
  color: #50627a;
  font-size: 13px;
  font-weight: 800;
}

.mathie-vip-payment-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  margin: 0 0 8px;
}

.mathie-vip-payment-plan strong {
  color: #166534;
  font-size: 21px;
  line-height: 1.16;
}

.mathie-vip-payment-plan del {
  color: #7c8794;
  font-size: 14px;
}

.mathie-vip-benefits {
  margin-top: 18px;
}

.mathie-vip-active-benefits {
  margin-top: 18px;
  border: 1px solid #d9e6f2;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.mathie-vip-active-benefits h3 {
  margin: 0 0 8px;
  color: #1f3b73;
  font-size: 20px;
}

.mathie-vip-active-benefits ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.mathie-vip-active-benefits li {
  position: relative;
  padding-left: 20px;
  color: #1f2f46;
  font-size: 14px;
  line-height: 1.35;
}

.mathie-vip-active-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #166534;
  font-weight: 900;
}

.mathie-vip-benefits h3 {
  margin: 0 0 10px;
  color: #1f3b73;
  font-size: 20px;
  line-height: 1.2;
}

.mathie-vip-benefits-scroll {
  overflow-x: auto;
  border: 1px solid #d9e6f2;
  border-radius: 8px;
  background: #ffffff;
}

.mathie-vip-benefits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.mathie-vip-benefits-table th,
.mathie-vip-benefits-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6eef5;
  text-align: center;
  vertical-align: middle;
}

.mathie-vip-benefits-table th:first-child,
.mathie-vip-benefits-table td:first-child {
  text-align: left;
}

.mathie-vip-benefits-table th:first-child {
  width: 38%;
}

.mathie-vip-benefits-table thead th {
  background: #f4f8fb;
  color: #1f3b73;
  font-weight: 800;
}

.mathie-vip-benefits-table tbody th {
  background: #fbfdff;
  color: #1f3b73;
  font-weight: 800;
}

.mathie-vip-benefits-table th span {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.mathie-vip-benefits-table tr:last-child th,
.mathie-vip-benefits-table tr:last-child td {
  border-bottom: 0;
}

.mathie-vip-rewards-explainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mathie-vip-rewards-explainer h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: #1f3b73;
  font-size: 20px;
}

.mathie-vip-rewards-explainer div {
  border: 1px solid #d9e6f2;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfe;
}

.mathie-vip-rewards-explainer strong {
  color: #1f3b73;
}

.mathie-vip-rewards-explainer p {
  margin: 6px 0 0;
  color: #374151;
}

@media (max-width: 860px) {
  .mathie-vip-value-hero {
    grid-template-columns: 1fr;
  }

  .mathie-vip-purchase-grid {
    grid-template-columns: 1fr;
  }

  .mathie-vip-benefits-scroll {
    overflow-x: auto;
  }

  .mathie-vip-benefits-table {
    min-width: 620px;
  }
}

@media (max-width: 520px) {
  .mathie-vip-payment-section {
    padding: 16px;
  }

  .mathie-vip-payment-grid,
  .mathie-vip-plan-grid,
  .mathie-vip-rewards-explainer,
  .mathie-vip-active-benefits ul {
    grid-template-columns: 1fr;
  }
}
