/* ==========================================================================
   MAX56X Theme Design System (migrated from https://max-56x.com/)
   ==========================================================================
   Reusable CSS Classes Reference (for all views/page/max56x/*.php):
   - Layout wrappers:
       .m56-page            Max-width 1160px responsive content container
       .m56-page-narrow     Max-width 760px centered container (forms/wallet/history)
       .m56-section-bar     Horizontal crimson-to-rose header bar (flex, space-between)
       .m56-section-bar-left Icon + H1 title group inside .m56-section-bar
       .m56-back-btn        Square 40x40 rounded maroon/crimson back button
       .m56-headline-gold   Animated gold-white gradient title text (Home Hot Games)
   - Cards & Surfaces:
       .m56-card            Primary crimson-gradient card (#a30b0b -> #6e0808, border, radius 14px)
       .m56-card-flat       Solid deep crimson card (#980000)
       .m56-well            Darker recessed maroon inset container (#2d0404/60%)
       .m56-stat-grid       2-col (or 3-col .cols-3) responsive stat box grid
       .m56-stat-box        Recessed stat card inside .m56-stat-grid
       .m56-stat-label      Muted label inside stat box
       .m56-stat-value      Bold value (.is-gold | .is-success | .is-danger | .is-info)
   - Alerts & Badges:
       .m56-alert           Base alert callout (.is-warning | .is-danger | .is-success | .is-info)
       .m56-badge           Rounded pill badge (.is-gold | .is-success | .is-warning | .is-danger | .is-info)
   - Buttons:
       .m56-btn             Base button (inline-flex, gap, rounded 12px)
       .m56-btn-block       Full-width button
       .m56-btn-primary     Crimson gradient CTA (#d40000 -> #960000)
       .m56-btn-gold        Bright gold CTA (#fff3ae -> #edb51d, dark maroon text #540d13)
       .m56-btn-gold-sm     Compact gold pill button (for section headers, back links)
       .m56-btn-success     Emerald gradient CTA (#22c55e -> #15803d)
       .m56-btn-danger      Red/rose danger CTA
       .m56-btn-outline     Translucent white-bordered button
   - Forms & Tables:
       .m56-form-group      Spacing wrapper for form inputs
       .m56-label           Form label
       .m56-input-wrap      Relative wrapper for leading icon + input + trailing eye icon
       .m56-input-icon      Leading input icon (left: 14px)
       .m56-input           Dark maroon input field (or light inside .m56-auth-card)
       .m56-select          Styled select field
       .m56-table-wrap      Horizontal scroll wrapper for tables
       .m56-table           Crimson/maroon data table
       .m56-list            Vertical stack of .m56-list-item rows
       .m56-list-item       Flex card row for histories / rewards / transactions
       .m56-empty-state     Centered empty-state card with icon + message
   - Auth Light Cards (matches MAX56X .su-dialog white modal cards):
       .m56-auth-wrapper    Centered auth page container
       .m56-auth-card       White card (#fff, radius 20px, soft shadow, dark #111 text)
       .m56-auth-card-wide  Wider white card (max-width 680px for 2-col register)
       .m56-auth-badge      Soft-pink 44x44 rounded icon badge (#fee2e2, color #bd0000)
       .m56-auth-input      #f3f4f6 input with #bd0000 focus border
       .m56-auth-submit     Full-width crimson CTA button inside white auth cards
   - Catalog / Promo Cards:
       .m56-promo-grid      3-column desktop -> 2-col tablet -> 1-col mobile grid
       .m56-promo-card      Deep crimson card (#980000) with 16:9/1:1 artwork + body
       .m56-game-grid       5-col desktop -> 4-col -> 3-col -> 2-col mobile grid
       .m56-game-card       Landscape rounded game card with live/RTP pills & hover play
   ========================================================================== */

:root {
  --m56-primary: #bd0000;
  --m56-primary-dark: #811313;
  --m56-primary-deeper: #5e0909;
  --m56-primary-deepest: #3d0505;
  --m56-primary-medium: #c03535;
  --m56-primary-light: #ff5c5c;
  --m56-card-top: #a30b0b;
  --m56-card-bottom: #6e0808;
  --m56-card-flat: #980000;
  --m56-appbar-top: #b80000;
  --m56-appbar-bottom: #811313;
  --m56-bg-top: #991616;
  --m56-bg-mid: #811313;
  --m56-bg-bottom: #5e0b0b;
  --m56-sidebar-top: #740d0d;
  --m56-sidebar-bottom: #560909;
  --m56-tile-top: #bd0000;
  --m56-tile-bottom: #8f0000;
  --m56-tile-active-top: #dc0000;
  --m56-tile-active-bottom: #990000;
  --m56-well-bg: rgba(45, 4, 4, 0.56);
  --m56-stat-bg: rgba(45, 4, 4, 0.62);
  --m56-input-bg: #420606;
  --m56-menu-bg: #4d0808;
  --m56-pill-top: #5e0909;
  --m56-pill-bottom: #3d0404;
  --m56-btn-top: #d90000;
  --m56-btn-bottom: #990000;
  --m56-btn-hover-top: #ee0000;
  --m56-btn-hover-bottom: #ad0000;
  --m56-submit-top: #cf0000;
  --m56-submit-bottom: #9b0000;
  --m56-submit-hover-top: #e00000;
  --m56-submit-hover-bottom: #ad0000;
  --m56-btn-shadow: rgba(189, 0, 0, 0.3);
  --m56-focus-ring: rgba(189, 0, 0, 0.14);
  --m56-badge-bg: #fee2e2;
  --m56-signin-top: #9c2635;
  --m56-signin-mid: #751521;
  --m56-signin-bottom: #4d0b15;
  --m56-signin-hover-top: #b52d3e;
  --m56-signin-hover-mid: #861927;
  --m56-signin-hover-bottom: #5c0d19;
  --m56-signin-border: #e99a9f;
  --m56-dock-top: rgba(189, 0, 0, 0.88);
  --m56-dock-bottom: rgba(105, 8, 8, 0.92);
  --m56-drawer-bg: #700000;
  --m56-drawer-card: #ba0000;
  --m56-footer-top: #960000;
  --m56-footer-bottom: #6b0000;
  --m56-promo-top: #a60000;
  --m56-promo-bottom: #7d0000;
  --m56-modal-top: #8b0000;
  --m56-modal-bottom: #4e0606;
  --m56-swal-top: #7e0909;
  --m56-swal-bottom: #4b0505;
  --m56-section-start: #bd0000;
  --m56-section-mid: rgba(189, 0, 0, 0.55);
  --m56-section-end: rgba(255, 110, 110, 0.26);
  --m56-table-th: rgba(189, 0, 0, 0.65);
  --m56-list-top: rgba(163, 11, 11, 0.85);
  --m56-list-bottom: rgba(105, 8, 8, 0.9);
  --m56-on-gold: #4d0808;
  --m56-secondary: #f2c202;
  --m56-secondary-dark: #cba355;
  --m56-secondary-light: #fedb4d;
  --m56-text: #ffffff;
  --m56-text-muted: rgba(255, 255, 255, 0.78);
  --m56-border: rgba(255, 165, 165, 0.26);
  --m56-border-soft: rgba(255, 165, 165, 0.2);
  --m56-header-h: 68px;
  --m56-sidebar-w: 92px;
  --m56-bottom-h: 64px;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--m56-primary-dark);
  background-image: radial-gradient(circle at 50% 0%, var(--m56-bg-top) 0%, var(--m56-bg-mid) 48%, var(--m56-bg-bottom) 100%);
  background-attachment: fixed;
  color: var(--m56-text);
  font-family: 'Prompt', 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--m56-secondary-light);
}

a:hover {
  color: #ffffff;
}

/* Custom themed scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--m56-primary-deepest); }
::-webkit-scrollbar-thumb { background: var(--m56-primary-light); border-radius: 6px; }

/* ==========================================================================
   1. Top App Bar
   ========================================================================== */
.m56-appbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--m56-header-h);
  background: linear-gradient(180deg, var(--m56-appbar-top) 0%, var(--m56-appbar-bottom) 100%);
  border-bottom: 1px solid var(--m56-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 10px;
}

.m56-appbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.m56-hamburger {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.m56-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.m56-logo-img {
  height: 44px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.m56-logo-fallback {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.m56-fav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.m56-fav-trigger:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--m56-secondary);
  color: var(--m56-secondary-light);
}

/* Desktop icon-over-label nav tiles */
.m56-nav-desktop {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  height: 100%;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.m56-nav-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 78px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  margin: 4px 0;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.m56-nav-tile i {
  font-size: 20px;
  color: #ffd95e;
  transition: transform 0.2s ease;
}

.m56-nav-tile:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.m56-nav-tile:hover i {
  transform: translateY(-2px);
}

.m56-nav-tile.active {
  background: linear-gradient(180deg, var(--m56-tile-active-top) 0%, var(--m56-tile-active-bottom) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border: 1px solid var(--m56-border);
}

.m56-nav-tile.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--m56-secondary);
  border-radius: 3px;
}

.m56-appbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Header Auth CTA buttons (matching MAX56X exact styling) */
.m56-btn-signup {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff3ae 0%, #ffe16a 35%, #ffd039 68%, #edb51d 100%);
  border: 2px solid #ffed9e;
  color: #540d13 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(255, 210, 57, 0.32), 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.m56-btn-signup::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -45%;
  width: 35%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-24deg);
  animation: m56-signup-shine 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes m56-signup-shine {
  0%, 72% { left: -45%; }
  95%, 100% { left: 130%; }
}

.m56-btn-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 210, 57, 0.52), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.m56-btn-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--m56-signin-top) 0%, var(--m56-signin-mid) 45%, var(--m56-signin-bottom) 100%);
  border: 1px solid var(--m56-signin-border);
  color: #fff5f2 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.m56-btn-signin:hover {
  background: linear-gradient(180deg, var(--m56-signin-hover-top) 0%, var(--m56-signin-hover-mid) 55%, var(--m56-signin-hover-bottom) 100%);
  border-color: #fff;
}

/* Language switcher */
.m56-lang-wrap {
  position: relative;
}

.m56-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.m56-lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 136px;
  background: var(--m56-menu-bg);
  border: 1px solid var(--m56-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  z-index: 1200;
}

.m56-lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #fff;
  text-decoration: none !important;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.m56-lang-menu a:last-child { border-bottom: none; }
.m56-lang-menu a:hover,
.m56-lang-menu a.active { background: rgba(242, 194, 2, 0.2); color: var(--m56-secondary-light); }

/* Logged-in user header controls */
.m56-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--m56-pill-top) 0%, var(--m56-pill-bottom) 100%);
  border: 1px solid rgba(242, 194, 2, 0.6);
  color: var(--m56-secondary-light);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.m56-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--m56-secondary);
  object-fit: cover;
  cursor: pointer;
  background: var(--m56-primary-deepest);
  flex-shrink: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.m56-btn-logout {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.m56-btn-logout:hover {
  background: #dc2626;
  border-color: #fca5a5;
}

/* ==========================================================================
   2. Left Vertical Category Sidebar
   ========================================================================== */
.m56-sidebar {
  position: fixed;
  top: var(--m56-header-h);
  left: 0;
  bottom: 0;
  width: var(--m56-sidebar-w);
  background: linear-gradient(180deg, var(--m56-sidebar-top) 0%, var(--m56-sidebar-bottom) 100%);
  border-right: 1px solid var(--m56-border);
  padding: 8px 6px 80px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1005;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m56-sidebar::-webkit-scrollbar { width: 3px; }

.m56-side-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 78px;
  padding: 8px 4px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--m56-tile-top) 0%, var(--m56-tile-bottom) 100%);
  border: 1px solid var(--m56-border);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.m56-side-tile:hover {
  transform: translateY(-1px);
  border-color: var(--m56-secondary);
  box-shadow: 0 0 10px rgba(242, 194, 2, 0.45);
}

.m56-side-tile.active {
  background: linear-gradient(180deg, #fff3ae 0%, #f2c202 55%, #d99b00 100%);
  border-color: #fff6c9;
  color: #2c0707 !important;
  box-shadow: 0 0 14px rgba(242, 194, 2, 0.65);
}

.m56-side-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.m56-side-tile.active .m56-side-icon {
  background: rgba(84, 13, 19, 0.14);
}

.m56-side-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.m56-side-icon i {
  font-size: 17px;
  color: #ffe07d;
}

.m56-side-tile.active .m56-side-icon i {
  color: #540d13;
}

.m56-side-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* ==========================================================================
   3. Main Content & Reusable Page Chrome
   ========================================================================== */
.m56-main {
  margin-top: var(--m56-header-h);
  margin-left: var(--m56-sidebar-w);
  min-height: calc(100vh - var(--m56-header-h));
  padding-bottom: 30px;
  transition: margin-left 0.2s ease;
}

.m56-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 18px 40px;
}

.m56-page-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

/* Crimson horizontal bar header (used on subpages & landing sections) */
.m56-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--m56-section-start) 0%, var(--m56-section-mid) 62%, var(--m56-section-end) 100%);
  border: 1px solid var(--m56-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.m56-section-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.m56-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 224, 130, 0.35);
  color: var(--m56-secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.m56-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m56-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.m56-back-btn:hover {
  background: var(--m56-secondary);
  border-color: #fff3ae;
  color: #540d13 !important;
}

/* Animated Gold Headline */
.m56-headline-gold {
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 900;
  text-align: center;
  margin: 8px 0 14px;
  background: linear-gradient(90deg, #ffb300 0%, #ffe082 28%, #ffffff 50%, #ffd54f 72%, #ff9800 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 179, 0, 0.45));
  animation: m56-gold-flow 4s linear infinite;
}

@keyframes m56-gold-flow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ==========================================================================
   4. Cards, Wells, Stats, Alerts, Badges, Buttons, Forms, Tables
   ========================================================================== */
.m56-card {
  background: linear-gradient(180deg, var(--m56-card-top) 0%, var(--m56-card-bottom) 100%);
  border: 1px solid var(--m56-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  color: #fff;
}

.m56-card-flat {
  background: var(--m56-card-flat);
  border: 1px solid var(--m56-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.m56-well {
  background: var(--m56-well-bg);
  border: 1px solid var(--m56-border-soft);
  border-radius: 12px;
  padding: 14px;
}

.m56-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.m56-stat-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.m56-stat-box {
  background: var(--m56-stat-bg);
  border: 1px solid var(--m56-border-soft);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}

.m56-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 5px;
}

.m56-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.m56-stat-value.is-gold { color: var(--m56-secondary-light); }
.m56-stat-value.is-success { color: #4ade80; }
.m56-stat-value.is-danger { color: #fca5a5; }
.m56-stat-value.is-info { color: #7dd3fc; }

/* Alerts */
.m56-alert {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--m56-stat-bg);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.65;
}

.m56-alert.is-warning {
  background: rgba(242, 194, 2, 0.14);
  border-color: rgba(242, 194, 2, 0.48);
  color: #ffe885;
}

.m56-alert.is-danger {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.m56-alert.is-success {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(74, 222, 128, 0.5);
  color: #bbf7d0;
}

.m56-alert.is-info {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(125, 211, 252, 0.45);
  color: #e0f2fe;
}

/* Badges */
.m56-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.m56-badge.is-gold { background: rgba(242, 194, 2, 0.22); border-color: #f2c202; color: #ffe885; }
.m56-badge.is-success { background: rgba(34, 197, 94, 0.22); border-color: #4ade80; color: #bbf7d0; }
.m56-badge.is-warning { background: rgba(245, 158, 11, 0.22); border-color: #fbbf24; color: #fde68a; }
.m56-badge.is-danger { background: rgba(239, 68, 68, 0.25); border-color: #f87171; color: #fecaca; }
.m56-badge.is-info { background: rgba(56, 189, 248, 0.22); border-color: #38bdf8; color: #bae6fd; }

/* Buttons */
.m56-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.m56-btn-block {
  width: 100%;
  display: flex;
}

.m56-btn-primary {
  background: linear-gradient(180deg, var(--m56-btn-top) 0%, var(--m56-btn-bottom) 100%);
  border: 1px solid var(--m56-border);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.m56-btn-primary:hover {
  background: linear-gradient(180deg, var(--m56-btn-hover-top) 0%, var(--m56-btn-hover-bottom) 100%);
  transform: translateY(-1px);
}

.m56-btn-gold {
  background: linear-gradient(180deg, #fff3ae 0%, #ffe16a 40%, #f2c202 80%, #d9a400 100%);
  border: 1px solid #fff6c9;
  color: #540d13 !important;
  box-shadow: 0 4px 14px rgba(242, 194, 2, 0.35);
}

.m56-btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(242, 194, 2, 0.5);
}

.m56-btn-gold-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 99px;
  background: linear-gradient(180deg, #fff099 0%, #f2c202 100%);
  border: 1px solid #fff7c2;
  color: #4d0808 !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.m56-btn-gold-sm:hover {
  filter: brightness(1.06);
}

.m56-btn-success {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  border: 1px solid rgba(134, 239, 172, 0.45);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.38);
}

.m56-btn-success:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.m56-btn-danger {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  border: 1px solid rgba(254, 202, 202, 0.45);
  color: #fff !important;
}

.m56-btn-outline {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff !important;
}

.m56-btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--m56-secondary);
  color: var(--m56-secondary-light) !important;
}

.m56-btn:disabled,
.m56-btn.disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* Dark-surface Inputs & Selects */
.m56-form-group {
  margin-bottom: 15px;
}

.m56-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

.m56-input-wrap {
  position: relative;
}

.m56-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--m56-secondary);
  font-size: 15px;
  pointer-events: none;
}

.m56-input,
.m56-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--m56-input-bg);
  border: 1px solid var(--m56-border);
  border-radius: 11px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.m56-input-wrap .m56-input {
  padding-left: 42px;
}

.m56-input:focus,
.m56-select:focus {
  outline: none;
  border-color: var(--m56-secondary);
  box-shadow: 0 0 0 3px rgba(242, 194, 2, 0.2);
}

.m56-input:disabled {
  background: var(--m56-stat-bg);
  color: rgba(255, 255, 255, 0.7);
}

.m56-select option {
  background: var(--m56-menu-bg);
  color: #fff;
}

/* Tables */
.m56-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--m56-border-soft);
  background: var(--m56-well-bg);
}

.m56-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #fff;
}

.m56-table th {
  background: var(--m56-table-th);
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  color: var(--m56-secondary-light);
  border-bottom: 1px solid var(--m56-border-soft);
  white-space: nowrap;
}

.m56-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.m56-table tbody tr:last-child td { border-bottom: none; }
.m56-table tbody tr:hover { background: rgba(255, 255, 255, 0.05); }

/* Lists & Empty states */
.m56-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m56-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, var(--m56-list-top) 0%, var(--m56-list-bottom) 100%);
  border: 1px solid var(--m56-border-soft);
  border-radius: 12px;
  padding: 14px 16px;
}

.m56-empty-state {
  background: var(--m56-well-bg);
  border: 1px dashed var(--m56-border);
  border-radius: 14px;
  padding: 36px 20px;
  text-align: center;
  color: var(--m56-text-muted);
}

.m56-empty-state i {
  font-size: 42px;
  color: var(--m56-secondary);
  margin-bottom: 10px;
  display: block;
}

/* ==========================================================================
   5. White Auth Cards (MAX56X .su-dialog style for Login / Register / Verify)
   ========================================================================== */
.m56-auth-wrapper {
  min-height: calc(100vh - var(--m56-header-h) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
}

.m56-auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  color: #111827;
  border-radius: 20px;
  padding: 28px 26px 24px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.m56-auth-card.m56-auth-card-wide {
  max-width: 680px;
}

.m56-auth-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.m56-auth-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--m56-badge-bg);
  color: var(--m56-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.m56-auth-tagline {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--m56-primary);
  margin: 0 0 2px;
}

.m56-auth-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 2px;
}

.m56-auth-subtitle {
  font-size: 12.5px;
  color: #6b7280;
  margin: 0;
}

.m56-auth-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.m56-auth-label .req { color: #dc2626; }

.m56-auth-input-wrap {
  position: relative;
}

.m56-auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--m56-primary);
  font-size: 15px;
  z-index: 1;
  pointer-events: none;
}

.m56-auth-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 11px;
  color: #111827;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.m56-auth-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--m56-primary);
  box-shadow: 0 0 0 3px var(--m56-focus-ring);
}

.m56-auth-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  cursor: pointer;
  font-size: 16px;
}

.m56-auth-eye:hover { color: var(--m56-primary); }

.m56-auth-submit {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(180deg, var(--m56-submit-top) 0%, var(--m56-submit-bottom) 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px var(--m56-btn-shadow);
  transition: all 0.2s ease;
}

.m56-auth-submit:hover {
  background: linear-gradient(180deg, var(--m56-submit-hover-top) 0%, var(--m56-submit-hover-bottom) 100%);
  transform: translateY(-1px);
}

.m56-auth-submit:disabled,
.m56-auth-submit.disabled {
  opacity: 0.58;
  pointer-events: none;
}

.m56-auth-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
  text-align: center;
  font-size: 13px;
  color: #4b5563;
}

.m56-auth-footer a {
  color: var(--m56-primary);
  font-weight: 700;
  text-decoration: underline;
}

@keyframes m56-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.shake { animation: m56-shake 0.3s ease; }

/* ==========================================================================
   6. Game Grids, Bento Slots, & Promo Grids
   ========================================================================== */
.m56-game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.m56-game-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--m56-input-bg);
  border: 1px solid var(--m56-border-soft);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.m56-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--m56-secondary);
  box-shadow: 0 0 12px rgba(242, 194, 2, 0.55);
}

.m56-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.m56-card-badges {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
}

.m56-pill-live,
.m56-pill-rtp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.m56-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 5px #22c55e;
}

.m56-pill-rtp i {
  color: var(--m56-secondary);
  font-size: 9px;
}

.m56-game-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.68);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 2;
}

.m56-game-title {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m56-fav-heart {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.m56-fav-heart.is-fav {
  color: #ff4d6d;
}

.m56-play-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.m56-game-card:hover .m56-play-hover {
  opacity: 1;
}

.m56-play-pill {
  padding: 6px 22px;
  border-radius: 99px;
  background: linear-gradient(180deg, #fff3ae 0%, #f2c202 100%);
  color: #4d0808;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* Promo & Articles 3-column grid (matches max-56x.com/promotions) */
.m56-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.m56-promo-card {
  background: linear-gradient(180deg, var(--m56-promo-top) 0%, var(--m56-promo-bottom) 100%);
  border: 1px solid var(--m56-border-soft);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.m56-promo-card:hover {
  transform: translateY(-3px);
  border-color: var(--m56-secondary);
}

.m56-promo-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--m56-input-bg);
}

.m56-promo-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.m56-promo-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

/* ==========================================================================
   7. Right Floating Dock, Mobile Drawer, Bottom Nav & 3-Band Footer
   ========================================================================== */
.m56-float-dock {
  position: fixed;
  right: 0;
  bottom: 88px;
  top: auto;
  transform: none;
  z-index: 1015;
  background: rgba(12, 6, 6, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 8px 7px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.25s ease;
}

.m56-float-dock.is-collapsed {
  transform: translateX(100%);
}

.m56-float-toggle {
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 54px;
  background: var(--m56-secondary);
  border: none;
  border-radius: 8px 0 0 8px;
  color: #4d0808;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.35);
}

.m56-dock-item {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--m56-dock-top), var(--m56-dock-bottom));
  border: 1px solid rgba(255, 200, 120, 0.35);
  color: #ffe484 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 9px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.m56-dock-item i { font-size: 17px; }
.m56-dock-item:hover {
  transform: scale(1.06);
  border-color: var(--m56-secondary);
  color: #fff !important;
}

/* Mobile Full-Screen Drawer */
.m56-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--m56-drawer-bg);
  z-index: 1040;
  flex-direction: column;
  padding: 16px 18px 90px;
  overflow-y: auto;
}

.m56-drawer.is-open {
  display: flex;
}

.m56-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.m56-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.m56-drawer-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px 13px 20px;
  border-radius: 12px;
  background: var(--m56-drawer-card);
  border: 1px solid var(--m56-border-soft);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.m56-drawer-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--m56-secondary);
}

.m56-drawer-card i {
  font-size: 20px;
  color: #ffe16a;
  width: 24px;
  text-align: center;
}

/* Mobile Bottom Nav */
.m56-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--m56-bottom-h);
  background: linear-gradient(180deg, #ffd83b 0%, #f2c202 100%);
  border-top: 2px solid #fff3ae;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
  z-index: 1025;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 6px 6px;
}

.m56-bottom-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none !important;
  color: #4d0808 !important;
  font-size: 10.5px;
  font-weight: 700;
  max-width: 78px;
}

.m56-bottom-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.m56-bottom-item i {
  font-size: 19px;
  color: #7c0808;
}

.m56-bottom-center {
  flex: 1;
  max-width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: #4d0808 !important;
  font-size: 10.5px;
  font-weight: 800;
  position: relative;
  top: -14px;
}

.m56-bottom-medallion {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--m56-btn-top) 0%, var(--m56-tile-bottom) 100%);
  border: 4px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.m56-bottom-medallion img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.m56-bottom-medallion i {
  font-size: 22px;
  color: #ffe885;
}

/* 3-Band Footer */
.m56-footer {
  margin-left: var(--m56-sidebar-w);
  background: linear-gradient(180deg, var(--m56-footer-top) 0%, var(--m56-footer-bottom) 100%);
  border-top: 2px solid rgba(242, 194, 2, 0.4);
  color: #fff;
  padding: 24px 20px 30px;
}

.m56-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.m56-footer-band {
  margin-bottom: 22px;
  text-align: center;
}

.m56-footer-band-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--m56-secondary-light);
  margin-bottom: 12px;
  letter-spacing: 0.4px;
}

.m56-marquee-track-wrap {
  overflow: hidden;
  width: 100%;
  margin-bottom: 8px;
}

.m56-marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: m56-scroll-left 28s linear infinite;
}

.m56-marquee-track.reverse {
  animation: m56-scroll-right 32s linear infinite;
}

@keyframes m56-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes m56-scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.m56-chip-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.m56-chip-logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}

.m56-chip-logo i { color: var(--m56-secondary); }

.m56-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.m56-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11.5px;
  font-weight: 600;
}

.m56-trust-pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1px;
}

.m56-footer-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Modals (Contact Us White Dialog + Favorites/Recent Dark Dialog) */
.m56-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1055;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.m56-modal-overlay.is-open { display: flex; }

.m56-modal-white {
  background: #ffffff;
  color: #111827;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  position: relative;
}

.m56-modal-dark {
  background: linear-gradient(180deg, var(--m56-modal-top) 0%, var(--m56-modal-bottom) 100%);
  color: #fff;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--m56-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  position: relative;
}

/* SweetAlert2 MAX56X Theme Override */
.swal2-popup {
  background: linear-gradient(180deg, var(--m56-swal-top) 0%, var(--m56-swal-bottom) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(242, 194, 2, 0.45) !important;
  border-radius: 18px !important;
}

.swal2-title, .swal2-html-container {
  color: #ffffff !important;
}

.swal2-input, .swal2-select {
  background: var(--m56-input-bg) !important;
  border: 1px solid var(--m56-border) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   8. Responsive Rules
   ========================================================================== */
@media (max-width: 1120px) {
  .m56-nav-tile { min-width: 66px; padding: 6px 8px; font-size: 11px; }
  .m56-fav-trigger span { display: none; }
  .m56-game-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
  :root {
    --m56-header-h: 58px;
    --m56-sidebar-w: 66px;
  }

  .m56-hamburger { display: inline-flex; }
  .m56-nav-desktop, .m56-fav-trigger { display: none; }
  .m56-logo-img { height: 32px; }
  .m56-btn-signup, .m56-btn-signin { padding: 6px 12px; font-size: 12px; border-radius: 12px; }

  .m56-sidebar { padding: 6px 4px 86px; gap: 6px; }
  .m56-side-tile { min-height: 62px; padding: 6px 2px; border-radius: 8px; }
  .m56-side-icon { width: 28px; height: 28px; }
  .m56-side-icon img { width: 20px; height: 20px; }
  .m56-side-icon i { font-size: 14px; }
  .m56-side-label { font-size: 9.5px; }

  .m56-main.is-subpage { margin-left: 0; }
  .m56-sidebar.m56-sidebar-subpage { display: none; }

  .m56-footer {
    margin-left: 0;
    padding-bottom: calc(var(--m56-bottom-h) + 32px);
  }
  .m56-main { padding-bottom: calc(var(--m56-bottom-h) + 20px); }

  .m56-bottom-nav { display: flex; }
  .m56-promo-grid { grid-template-columns: repeat(2, 1fr); }
  .m56-game-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

@media (max-width: 576px) {
  .m56-appbar { padding: 0 8px; gap: 6px; }
  .m56-appbar-left { gap: 6px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .m56-hamburger { width: 34px; height: 34px; flex-shrink: 0; font-size: 16px; }
  .m56-logo-link { min-width: 0; max-width: 105px; overflow: hidden; }
  .m56-logo-img { height: 28px; max-width: 95px; }
  .m56-logo-fallback { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m56-appbar-right { gap: 5px; flex-shrink: 0; }
  .m56-lang-btn { padding: 5px 6px; font-size: 11px; }
  .m56-btn-signup, .m56-btn-signin { padding: 6px 8px; font-size: 11px; gap: 4px; border-radius: 10px; white-space: nowrap; }
  .m56-page, .m56-page-narrow { padding: 12px 10px 30px; }
  .m56-promo-grid { grid-template-columns: 1fr; }
  .m56-game-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .m56-pill-live, .m56-pill-rtp { font-size: 9px; padding: 2px 5px; }
  .m56-stat-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .m56-dock-item { width: 42px; height: 42px; }
  .m56-lang-btn .m56-lang-label { display: none; }
}
