/* Magical LifeSkills — app shell (dashboard, trial games, checkout) */

/* ── Dashboard / child picker ── */
.clsbody .demo,
.m7-page-shell .demo {
  margin: 0;
  padding: 2rem 0 3rem;
  background: transparent;
}

.clsbody .demo > .container,
.m7-page-shell .demo > .container {
  max-width: 1100px;
}

.clsbody .email-signature,
.m7-page-shell .email-signature {
  background: #fff !important;
  border: 1.5px solid rgba(183, 148, 244, 0.22) !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
  margin-bottom: 1.25rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clsbody .email-signature:before,
.clsbody .email-signature:after,
.m7-page-shell .email-signature:before,
.m7-page-shell .email-signature:after {
  display: none;
}

.clsbody .email-signature:hover,
.m7-page-shell .email-signature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12) !important;
}

.clsbody .email-signature .signature-content,
.m7-page-shell .email-signature .signature-content {
  color: var(--m7-ink);
  background: #fff !important;
  padding: 2rem 1.5rem !important;
  border-radius: 22px !important;
}

.clsbody .email-signature .signature-icon,
.m7-page-shell .email-signature .signature-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border: 3px solid rgba(255, 107, 107, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--m7-coral) !important;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.15);
  overflow: visible;
  outline: none;
}

.clsbody .email-signature .title,
.m7-page-shell .email-signature .title {
  font-family: var(--m7-font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--m7-ink) !important;
  margin-bottom: 0.25rem;
}

.clsbody .email-signature .post,
.m7-page-shell .email-signature .post {
  font-family: var(--m7-font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--m7-muted);
}

.clsbody .email-signature .content,
.m7-page-shell .email-signature .content {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.clsbody .email-signature .content li,
.m7-page-shell .email-signature .content li {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--m7-muted);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clsbody .email-signature .content li i,
.m7-page-shell .email-signature .content li i {
  color: #fff !important;
  background: linear-gradient(135deg, var(--m7-coral), #ff8e53) !important;
  font-size: 0.75rem;
  line-height: 28px;
  height: 28px;
  width: 28px;
  margin: 0;
  border-radius: 50%;
  clip-path: none;
  text-align: center;
  flex-shrink: 0;
}

.clsbody .email-signature .icon,
.m7-page-shell .email-signature .icon {
  padding: 0;
  margin: 0.5rem 0 0;
  list-style: none;
}

.clsbody .email-signature .icon li a,
.m7-page-shell .email-signature .icon li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--m7-font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff !important;
  background: linear-gradient(135deg, var(--m7-coral), #ff8e53);
  border: none !important;
  border-radius: var(--m7-radius-pill);
  padding: 0.55rem 1.25rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clsbody .email-signature .icon li a:hover,
.m7-page-shell .email-signature .icon li a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 107, 107, 0.28);
  border-radius: var(--m7-radius-pill);
}

.inactiveLink {
  pointer-events: none;
  cursor: default;
  opacity: 0.55;
}

/* ── Trial games sidenav panel ── */
#mySidenav.sidenav,
.menusidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  background: rgba(255, 248, 240, 0.98) !important;
  backdrop-filter: blur(10px);
  border-right: 1.5px solid rgba(99, 179, 237, 0.18);
  overflow-x: hidden;
  transition: width 0.35s ease;
  padding-top: 4.5rem;
  box-shadow: 8px 0 32px rgba(15, 23, 42, 0.1);
}

#mySidenav.sidenav a,
.menusidenav a {
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  font-family: var(--m7-font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--m7-ink) !important;
  display: block;
  transition: background 0.2s ease, color 0.2s ease;
}

#mySidenav.sidenav a:hover,
.menusidenav a:hover {
  background: rgba(255, 107, 107, 0.08) !important;
  color: var(--m7-coral-strong) !important;
}

#mySidenav.sidenav .closebtn,
.menusidenav .closebtn {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 2rem;
  line-height: 1;
  margin: 0;
  padding: 0.25rem 0.5rem;
}

#mySidenav.sidenav h1,
#mySidenav.sidenav h2,
.menusidenav h1,
.menusidenav h2 {
  font-family: var(--m7-font-display) !important;
  color: var(--m7-ink) !important;
}

#mySidenav.sidenav .progress,
.m7-page-shell .progress {
  position: inherit;
  height: 1.25rem;
  border-radius: var(--m7-radius-pill);
  background: rgba(99, 179, 237, 0.15);
  overflow: hidden;
  box-shadow: none;
}

#mySidenav.sidenav .progress:before,
#mySidenav.sidenav .progress:after,
.m7-page-shell .progress:before,
.m7-page-shell .progress:after {
  display: none;
}

.m7-page-shell .progress-bar,
#mySidenav.sidenav .progress-bar {
  background: linear-gradient(135deg, var(--m7-sky), #63b3ed) !important;
  font-family: var(--m7-font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

/* ── Games grid & puzzles ── */
.daily_puzzles,
.clsbody .daily_puzzles {
  background: transparent !important;
  overflow: visible;
}

.m7-games-page {
  padding-bottom: 2.5rem;
}

.m7-games-toolbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 248, 240, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid rgba(99, 179, 237, 0.15);
  padding: 0.85rem 0;
  margin-bottom: 1rem;
}

.m7-games-toolbar__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.m7-games-toolbar__progress {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.m7-games-toolbar__label {
  font-family: var(--m7-font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--m7-muted);
}

.m7-games-toolbar__bar {
  height: 0.5rem;
  border-radius: var(--m7-radius-pill);
  background: rgba(99, 179, 237, 0.18);
  overflow: hidden;
}

.m7-games-toolbar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--m7-coral), #ff8e53);
  transition: width 0.35s ease;
}

.m7-games-toolbar__count {
  font-family: var(--m7-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--m7-ink);
}

.m7-games-toolbar--complete .m7-games-toolbar__message {
  font-family: var(--m7-font-display);
  font-weight: 700;
  color: var(--m7-ink);
  margin: 0;
  text-align: center;
}

.m7-games-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.m7-games-toolbar__btn {
  min-height: 44px;
  min-width: 140px;
}

.m7-games-stage__content {
  min-height: 280px;
}

.m7-games-skeleton {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.m7-games-skeleton__card {
  height: 220px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(99, 179, 237, 0.08) 25%, rgba(99, 179, 237, 0.16) 50%, rgba(99, 179, 237, 0.08) 75%);
  background-size: 200% 100%;
  animation: m7GamesShimmer 1.4s ease-in-out infinite;
}

@keyframes m7GamesShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.m7-games-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding: 0.25rem 0 1rem;
}

.m7-game-card {
  background: #fff;
  border: 1.5px solid rgba(99, 179, 237, 0.16);
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.m7-game-card--coral { border-top: 4px solid var(--m7-coral); }
.m7-game-card--sun { border-top: 4px solid #f6ad55; }
.m7-game-card--mint { border-top: 4px solid #68d391; }
.m7-game-card--sky { border-top: 4px solid var(--m7-sky); }

.m7-game-card--done {
  opacity: 0.92;
}

.m7-game-card__head {
  padding: 0.85rem 1rem 0;
}

.m7-game-card__title {
  margin: 0;
  font-family: var(--m7-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--m7-ink);
  line-height: 1.3;
}

.m7-game-card__body {
  display: grid;
  grid-template-columns: 88px 1fr;
  grid-template-areas:
    "icon meta"
    "play play";
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem 1rem;
  align-items: center;
}

.m7-game-card__icon {
  grid-area: icon;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 154, 158, 0.14), rgba(161, 196, 253, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.m7-game-card__icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.m7-game-card__meta {
  grid-area: meta;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.m7-game-card__stars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  align-items: center;
}

.m7-game-card__star {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.m7-game-card__score {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.m7-game-card__score-label {
  font-family: var(--m7-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--m7-muted);
}

.m7-game-card__score-value {
  font-family: var(--m7-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--m7-ink);
  line-height: 1;
}

.m7-game-card__play {
  grid-area: play;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  border: none;
  border-radius: var(--m7-radius-pill);
  font-family: var(--m7-font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff !important;
  background: linear-gradient(135deg, var(--m7-coral), #ff8e53);
  box-shadow: 0 8px 18px rgba(255, 107, 107, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.m7-game-card--sun .m7-game-card__play:not(.m7-game-card__play--disabled) {
  background: linear-gradient(135deg, #f6ad55, #ed8936);
  box-shadow: 0 8px 18px rgba(237, 137, 54, 0.22);
}

.m7-game-card--mint .m7-game-card__play:not(.m7-game-card__play--disabled) {
  background: linear-gradient(135deg, #68d391, #48bb78);
  box-shadow: 0 8px 18px rgba(72, 187, 120, 0.22);
}

.m7-game-card--sky .m7-game-card__play:not(.m7-game-card__play--disabled) {
  background: linear-gradient(135deg, var(--m7-sky), #63b3ed);
  box-shadow: 0 8px 18px rgba(99, 179, 237, 0.22);
}

.m7-game-card__play:hover,
.m7-game-card__play:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 107, 107, 0.28);
  color: #fff !important;
  outline: none;
}

.m7-game-card__play--disabled {
  background: rgba(99, 179, 237, 0.2) !important;
  color: var(--m7-muted) !important;
  box-shadow: none !important;
  cursor: default;
  pointer-events: none;
}

.m7-games-panel__title {
  text-align: center;
  font-weight: 800;
  color: var(--m7-ink);
  font-family: var(--m7-font-display);
}

.m7-games-panel__skill-name {
  color: var(--m7-coral-strong);
  font-weight: 600;
  font-family: var(--m7-font-display);
  font-size: 1rem;
}

.m7-games-panel__skill {
  margin-bottom: 1rem;
}

.m7-games-panel__empty {
  font-family: var(--m7-font-sans);
  font-weight: 600;
  color: var(--m7-muted);
  text-align: center;
  padding: 1rem;
}

.m7-games-modal__sub {
  font-family: var(--m7-font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--m7-muted);
  margin: 0.35rem 0 0;
}

/* Legacy game card overrides (fallback) */
.clsgame {
  border: 1.5px solid rgba(99, 179, 237, 0.15);
  border-radius: 20px;
  padding-bottom: 1rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease;
}

.clsgame:hover {
  transform: translateY(-2px);
}

.m7-games-grid .gamebtn,
.m7-games-page .m7-game-card__play.gamepopup {
  display: flex;
}

.gamebox {
  background: linear-gradient(135deg, rgba(255, 154, 158, 0.15), rgba(161, 196, 253, 0.15));
  border-radius: 16px;
  margin: 0.75rem 0;
  padding: 0 0 0.75rem;
  overflow: hidden;
}

.Skill_head {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--m7-font-display);
  color: var(--m7-ink);
  padding: 1rem 0.75rem;
  background: transparent;
}

.daily_puzzles .game_icon {
  margin: 1.25rem 0 !important;
}

.label_design,
.lab.label_design {
  display: block;
  width: 100%;
  border: 1.5px solid rgba(99, 179, 237, 0.2);
  border-radius: 14px;
  background: #fff;
  color: var(--m7-ink);
  font-family: var(--m7-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.label_design:hover,
.selected_skills {
  border-color: var(--m7-coral) !important;
  background: rgba(255, 107, 107, 0.08) !important;
}

.selected_skills {
  background: rgba(255, 107, 107, 0.12) !important;
}

.lab_input {
  opacity: 0;
  position: absolute;
}

#System_Interface {
  margin: 1.5rem 0 0;
}

/* ── Data tables (child list, admin-lite) ── */
.clsbody .x_panel,
.m7-page-shell .x_panel {
  background: #fff;
  border: 1.5px solid rgba(99, 179, 237, 0.15);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.clsbody #assementTable thead,
.m7-page-shell #assementTable thead {
  background: linear-gradient(135deg, rgba(255, 154, 158, 0.18), rgba(161, 196, 253, 0.18)) !important;
  color: var(--m7-ink) !important;
}

.clsbody #assementTable thead th,
.m7-page-shell #assementTable thead th {
  font-family: var(--m7-font-display);
  font-weight: 700;
  border: none !important;
  font-size: 0.9rem;
}

.clsbody #assementTable tbody td,
.m7-page-shell #assementTable tbody td {
  font-family: var(--m7-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--m7-muted);
  vertical-align: middle;
}

.clsbody table.dataTable.display tbody tr.odd,
.m7-page-shell table.dataTable.display tbody tr.odd {
  background-color: rgba(255, 248, 240, 0.65) !important;
}

.clsbody #assementTable tfoot,
.m7-page-shell #assementTable tfoot {
  display: table-header-group;
  background: rgba(99, 179, 237, 0.08);
}

/* ── Modals in app shell ── */
.m7-page-shell .modal-content,
.clsbody .modal-content {
  border: none;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.m7-page-shell .modal-header h3,
.clsbody .modal-header h3 {
  font-family: var(--m7-font-display);
  color: var(--m7-ink);
  font-weight: 700;
}

.m7-page-shell .modal-footer .btn-default,
.clsbody .modal-footer .btn-default {
  background: linear-gradient(135deg, var(--m7-coral), #ff8e53) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--m7-radius-pill);
  font-weight: 700;
  padding: 0.6rem 1.5rem;
}

/* ── App action buttons ── */
.m7-page-shell .btn-primary.pull-left,
.m7-page-shell .btn-primary.pull-right,
.clsbody .btn-primary.pull-left,
.clsbody .btn-primary.pull-right {
  border-radius: var(--m7-radius-pill);
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  #mySidenav.sidenav,
  .menusidenav {
    padding-top: 3.5rem;
  }

  .clsbody .email-signature .signature-content,
  .m7-page-shell .email-signature .signature-content {
    padding: 1.5rem 1rem !important;
  }

  .m7-games-toolbar {
    top: 0;
    padding: 0.75rem 0;
  }

  .fancybox-wrap.fancybox-mobile,
  .fancybox-wrap.fancybox-mobile .fancybox-skin,
  .fancybox-wrap.fancybox-mobile .fancybox-outer,
  .fancybox-wrap.fancybox-mobile .fancybox-inner {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  .fancybox-wrap.fancybox-mobile {
    top: 0 !important;
    left: 0 !important;
  }

  .fancybox-wrap.fancybox-mobile .fancybox-inner.fancyGameClass,
  .fancybox-wrap.fancybox-mobile .fancybox-inner.fancyGameClass iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh;
  }
}

@media (min-width: 640px) {
  .m7-games-skeleton,
  .m7-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .m7-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .m7-games-toolbar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .m7-games-toolbar__progress {
    flex: 1;
    max-width: 420px;
  }
}

@media screen and (max-height: 450px) {
  #mySidenav.sidenav,
  .menusidenav {
    padding-top: 2rem;
  }

  #mySidenav.sidenav a,
  .menusidenav a {
    font-size: 0.9rem;
  }
}

/* ── Gift flow ── */
.m7-page-shell .form-bg,
.clsbody .form-bg {
  overflow: hidden;
  display: block;
  background: transparent;
  padding: 1.5rem 0 3rem;
}

.m7-page-shell .reg_frm,
.m7-page-shell .form-wrapper.reg_frm,
.clsbody .reg_frm,
.clsbody .form-wrapper.reg_frm {
  background: #fff;
  border-radius: 24px;
  border: 1.5px solid rgba(99, 179, 237, 0.18);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 2rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
}

.m7-page-shell .reg_page_heading,
.clsbody .reg_page_heading {
  font-family: var(--m7-font-display) !important;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem) !important;
  font-weight: 700 !important;
  text-align: center;
  color: var(--m7-ink) !important;
  text-transform: none;
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

.m7-page-shell .Plan_exp_gift,
.clsbody .Plan_exp_gift {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.m7-page-shell .Plan_exp_gift li,
.clsbody .Plan_exp_gift li {
  font-family: var(--m7-font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--m7-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.m7-page-shell .Plan_exp_gift .fa,
.clsbody .Plan_exp_gift .fa {
  color: var(--m7-coral);
  font-size: 1rem;
  margin-top: 0.2rem;
}

.m7-page-shell .btn_start,
.m7-page-shell .btn3_start,
.m7-page-shell .btn4_start,
.clsbody .btn_start,
.clsbody .btn3_start,
.clsbody .btn4_start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--m7-font-sans) !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: var(--m7-radius-pill) !important;
  padding: 0.75rem 1.75rem !important;
  background: linear-gradient(135deg, var(--m7-coral), #ff8e53) !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.m7-page-shell .btn_start:hover,
.m7-page-shell .btn3_start:hover,
.m7-page-shell .btn4_start:hover,
.clsbody .btn_start:hover,
.clsbody .btn3_start:hover,
.clsbody .btn4_start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.28);
  color: #fff !important;
}

.m7-page-shell .section.bg-baby-pink,
.clsbody .section.bg-baby-pink {
  background: transparent !important;
  padding: 0 !important;
}

.m7-page-shell .invoice,
.m7-page-shell .frmfreereg.invoice,
.clsbody .invoice,
.clsbody .frmfreereg.invoice {
  background: #fff;
  border-radius: 24px;
  border: 1.5px solid rgba(99, 179, 237, 0.18);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 2rem;
  margin: 1rem 0 2rem;
}

.m7-page-shell .invoice-title,
.clsbody .invoice-title {
  font-family: var(--m7-font-display);
  color: var(--m7-ink);
}

.m7-page-shell #pricing_tbl .section-title,
.clsbody #pricing_tbl .section-title {
  font-family: var(--m7-font-display) !important;
  color: var(--m7-ink) !important;
  font-weight: 700 !important;
}

.m7-page-shell .form-bg label.error,
.m7-page-shell .form-bg .error,
.clsbody .form-bg label.error,
.clsbody .form-bg .error {
  color: #e53e3e !important;
  font-weight: 600;
}

.m7-page-shell .form-bg a:not(.m7-btn):not(.btn_start),
.clsbody .form-bg a:not(.m7-btn):not(.btn_start) {
  color: var(--m7-sky);
  font-weight: 700;
}

/* Gift flow — M7 reskin */
.m7-gift-page {
  padding: 2rem 1rem 3rem;
}

.m7-gift-layout {
  display: grid;
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.m7-gift-intro {
  background: #fff;
  border: 1.5px solid rgba(99, 179, 237, 0.18);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 2rem 1.5rem;
}

.m7-gift-intro__title {
  font-family: var(--m7-font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--m7-ink);
  margin: 1rem 0 0.75rem;
  line-height: 1.25;
}

.m7-gift-intro__lead {
  font-family: var(--m7-font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--m7-muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.m7-gift-steps {
  margin: 0;
  padding-left: 1.25rem;
  font-family: var(--m7-font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--m7-ink);
  line-height: 1.7;
}

.m7-gift-steps a {
  color: var(--m7-coral-strong);
  font-weight: 700;
  text-decoration: none;
}

.m7-gift-steps a:hover {
  text-decoration: underline;
}

.m7-gift-login {
  margin: 0;
}

.m7-login-form__sub {
  font-family: var(--m7-font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--m7-muted);
  margin: -0.25rem 0 1rem;
}

.m7-reg-form__error {
  color: #e53e3e;
  font-family: var(--m7-font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.m7-gift-pricing {
  padding-top: 1rem;
}

.m7-gift-plans__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.m7-gift-plans__history {
  min-height: 44px;
}

.m7-gift-modal .modal-header {
  border-bottom: 1px solid rgba(99, 179, 237, 0.15);
  padding: 1.25rem 1.5rem;
}

.m7-gift-modal__title {
  font-family: var(--m7-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--m7-ink);
  margin: 0;
}

.m7-gift-modal .modal-body {
  padding: 1rem 1.5rem 1.5rem;
}

.m7-gift-history__user {
  font-family: var(--m7-font-sans);
  font-weight: 600;
  color: var(--m7-muted);
  margin-bottom: 1rem;
}

.m7-gift-history__table-wrap {
  overflow-x: auto;
  padding: 0.5rem;
}

.m7-gift-history__table thead {
  background: linear-gradient(135deg, rgba(255, 154, 158, 0.18), rgba(161, 196, 253, 0.18)) !important;
}

.m7-gift-history__table thead th {
  font-family: var(--m7-font-display);
  font-weight: 700;
  color: var(--m7-ink) !important;
  border: none !important;
  font-size: 0.85rem;
  text-align: center;
  vertical-align: middle;
}

.m7-gift-history__table tbody td {
  font-family: var(--m7-font-sans);
  font-weight: 600;
  color: var(--m7-muted);
  text-align: center;
  vertical-align: middle;
  font-size: 0.875rem;
}

.m7-gift-history__code {
  font-family: var(--m7-font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--m7-coral-strong);
  background: rgba(255, 107, 107, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}

.m7-gift-history__empty {
  font-family: var(--m7-font-sans);
  font-weight: 600;
  color: var(--m7-muted);
  text-align: center;
  padding: 2rem 1rem;
  margin: 0;
}

.m7-gift-checkout {
  padding: 2rem 0 3rem;
}

.m7-gift-checkout__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.m7-gift-checkout__title {
  font-family: var(--m7-font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--m7-ink);
  margin: 0.35rem 0 0;
}

.m7-gift-checkout__grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.m7-gift-checkout__card {
  padding: 1.75rem;
  margin: 0;
}

.m7-gift-checkout__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(99, 179, 237, 0.15);
}

.m7-gift-checkout__label {
  font-family: var(--m7-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--m7-muted);
  margin: 0 0 0.25rem;
}

.m7-gift-checkout__value {
  font-family: var(--m7-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--m7-ink);
  margin: 0;
}

.m7-gift-checkout__section {
  margin-bottom: 1.5rem;
}

.m7-gift-checkout__section-title {
  font-family: var(--m7-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--m7-ink);
  margin: 0 0 0.85rem;
}

.m7-gift-checkout__details {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.m7-gift-checkout__details > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.m7-gift-checkout__details dt {
  font-family: var(--m7-font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--m7-muted);
  margin: 0;
}

.m7-gift-checkout__details dd {
  font-family: var(--m7-font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--m7-ink);
  margin: 0;
}

.m7-gift-checkout__table-wrap {
  overflow-x: auto;
}

.m7-gift-checkout__table {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
}

.m7-gift-checkout__table thead {
  background: linear-gradient(135deg, rgba(255, 154, 158, 0.15), rgba(161, 196, 253, 0.15));
}

.m7-gift-checkout__table thead th {
  font-family: var(--m7-font-display);
  font-weight: 700;
  color: var(--m7-ink);
  border: none !important;
  font-size: 0.85rem;
  text-align: center;
}

.m7-gift-checkout__table tbody td,
.m7-gift-checkout__table tfoot td {
  font-family: var(--m7-font-sans);
  font-weight: 600;
  color: var(--m7-muted);
  text-align: center;
  vertical-align: middle;
}

.m7-gift-checkout__pay-card {
  background: #fff;
  border: 1.5px solid rgba(99, 179, 237, 0.18);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 1.75rem;
  position: sticky;
  top: 1rem;
}

.m7-gift-checkout__pay-label {
  font-family: var(--m7-font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--m7-muted);
  margin: 0 0 0.35rem;
}

.m7-gift-checkout__pay-amount {
  font-family: var(--m7-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--m7-ink);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.m7-gift-checkout__pay-note {
  font-family: var(--m7-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--m7-muted);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.m7-gift-status {
  padding: 3rem 1rem 4rem;
  display: flex;
  justify-content: center;
}

.m7-gift-status__card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1.5px solid rgba(99, 179, 237, 0.18);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 2rem 1.75rem;
  text-align: center;
}

.m7-gift-status__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--m7-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #fc8181, #e53e3e);
}

.m7-gift-status__icon--success {
  background: linear-gradient(135deg, #68d391, #48bb78);
}

.m7-gift-status__title {
  font-family: var(--m7-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--m7-ink);
  margin: 0 0 0.65rem;
}

.m7-gift-status__message {
  font-family: var(--m7-font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--m7-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.m7-gift-status__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.m7-gift-share {
  text-align: left;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .m7-gift-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }

  .m7-gift-checkout__grid {
    grid-template-columns: 1.4fr 0.6fr;
    gap: 1.5rem;
  }
}

