/* ==========================================================================
   MGM theme
   Design system cloned from momgmvipin.com — mobile-first, red/gold.
   Values here are taken verbatim from the live site so the two match.
   ========================================================================== */

:root {
    --mgm-red-dark: #8B0000;
    --mgm-red: #B22222;
    --mgm-gold: #FFD700;
    --mgm-gold-deep: #FFA500;
    --mgm-body: #f5f5f5;
    --mgm-ink: #333;
    --mgm-muted: #999;
    --mgm-card: #ffffff;
    --mgm-header-h: 70px;
    --mgm-nav-h: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--mgm-body);
    min-height: 100vh;
    padding-bottom: var(--mgm-nav-h);
    color: var(--mgm-ink);
}

a { text-decoration: none; }

/* ------------------------------------------------------------------ header */
.mgm-header {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 50%, #8B0000 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mgm-logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mgm-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #8B0000;
    font-size: 12px;
    border: 2px solid #FFD700;
}

.mgm-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.mgm-logo-img { max-height: 40px; width: auto; }

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.login-btn {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
}

.login-btn:hover {
    background: #FFD700;
    color: #8B0000;
}

.register-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 2px solid #FFD700;
    color: #8B0000;
}

.register-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    transform: scale(1.05);
}

/* Authenticated header: balance pill in place of the auth buttons. */
.mgm-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid #FFD700;
    border-radius: 20px;
    padding: 6px 16px;
    color: #FFD700;
    font-weight: 600;
    font-size: 14px;
}

.mgm-balance i { font-size: 13px; }

/* ------------------------------------------------------------------ slider */
.slider-container {
    position: relative;
    overflow: hidden;
    background: #1a1a2e;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 200px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #FFD700;
    width: 20px;
    border-radius: 4px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
}

.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

/* -------------------------------------------------------------- quick menu */
.quick-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    background: white;
    margin: 10px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quick-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
}

.quick-menu-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.quick-menu-icon.record   { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.quick-menu-icon.event    { background: linear-gradient(135deg, #f093fb, #f5576c); color: white; }
.quick-menu-icon.recharge { background: linear-gradient(135deg, #4facfe, #00f2fe); color: white; }
.quick-menu-icon.support  { background: linear-gradient(135deg, #43e97b, #38f9d7); color: white; }

.quick-menu-text {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* ------------------------------------------------------------------- games */
.games-section { padding: 15px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #B22222;
    border-radius: 2px;
}

.view-all {
    color: #B22222;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .games-grid { grid-template-columns: repeat(6, 1fr); }
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
    display: block;
}

.game-card:hover { transform: translateY(-3px); }

.game-icon {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
    overflow: hidden;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: #B22222;
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 3px;
}

.game-name {
    padding: 8px 5px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Deterministic tile gradients, cycled by index. */
.game-bg-1 { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.game-bg-2 { background: linear-gradient(135deg, #a55eea, #8854d0); }
.game-bg-3 { background: linear-gradient(135deg, #26de81, #20bf6b); }
.game-bg-4 { background: linear-gradient(135deg, #fed330, #f7b731); }
.game-bg-5 { background: linear-gradient(135deg, #45aaf2, #2d98da); }
.game-bg-6 { background: linear-gradient(135deg, #fd79a8, #e84393); }
.game-bg-7 { background: linear-gradient(135deg, #00cec9, #0984e3); }
.game-bg-8 { background: linear-gradient(135deg, #fdcb6e, #e17055); }

/* ------------------------------------------------------------ lucky banner */
.lucky-banner {
    margin: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lucky-banner img {
    width: 100%;
    display: block;
}

.lucky-banner__inner {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 50%, #FFD700 100%);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.lucky-banner__coin {
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
}

.lucky-banner__coin-outer {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    border: 4px solid #4169E1;
}

.lucky-banner__coin-inner {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.lucky-banner__text {
    position: relative;
    z-index: 1;
    text-align: left;
    padding-left: 20px;
}

.lucky-banner__text h2 {
    color: #8B0000;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 6px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* -------------------------------------------------------------- bottom nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    transition: color 0.3s;
}

.nav-item.active { color: #B22222; }

.nav-item i { font-size: 20px; }

/* ==========================================================================
   Shared page furniture
   The live homepage is a standalone page, so these carry its design language
   onto the pages it doesn't cover (auth, dashboard, content pages).
   ========================================================================== */

.mgm-page { padding: 15px; }

.mgm-breadcrumb {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 50%, #8B0000 100%);
    padding: 22px 20px;
    color: #fff;
}

.mgm-breadcrumb h2 {
    font-size: 20px;
    font-weight: 600;
    color: #FFD700;
    margin: 0;
}

.mgm-breadcrumb ul {
    list-style: none;
    display: flex;
    gap: 8px;
    font-size: 12px;
    margin-top: 6px;
    padding: 0;
    flex-wrap: wrap;
}

.mgm-breadcrumb ul a { color: rgba(255, 255, 255, 0.85); }
.mgm-breadcrumb ul li { color: rgba(255, 255, 255, 0.7); }

.mgm-card {
    background: var(--mgm-card);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 15px;
}

.mgm-card__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mgm-card__title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #B22222;
    border-radius: 2px;
}

.mgm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #FFD700;
    border-radius: 25px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B0000;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mgm-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    color: #8B0000;
}

.mgm-btn--outline {
    background: transparent;
    border-color: #B22222;
    color: #B22222;
}

.mgm-btn--outline:hover {
    background: #B22222;
    color: #fff;
}

.mgm-field { margin-bottom: 16px; }

.mgm-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}

.mgm-field .form-control,
.mgm-field input,
.mgm-field select,
.mgm-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: #fafafa;
    color: var(--mgm-ink);
}

.mgm-field .form-control:focus,
.mgm-field input:focus,
.mgm-field select:focus,
.mgm-field textarea:focus {
    outline: none;
    border-color: #B22222;
    background: #fff;
}

.mgm-auth {
    max-width: 460px;
    margin: 0 auto;
    padding: 25px 15px;
}

.mgm-auth__head {
    text-align: center;
    margin-bottom: 20px;
}

.mgm-auth__head h2 {
    font-size: 22px;
    font-weight: 600;
    color: #8B0000;
}

.mgm-auth__head p {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

.mgm-auth__alt {
    text-align: center;
    font-size: 13px;
    margin-top: 15px;
    color: #666;
}

.mgm-auth__alt a {
    color: #B22222;
    font-weight: 600;
}

/* Wide screens: full width. Nothing is capped to a phone-width column —
   the grids below simply give the content more room. */
html, body { overflow-x: hidden; max-width: 100%; }

.mgm-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
}

.bottom-nav {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
}

/* Desktop: full width, same 6-column game grid as the live site, just roomier */
@media (min-width: 992px) {
    .quick-menu { padding: 26px; margin: 16px; }
    .quick-menu-icon { width: 58px; height: 58px; font-size: 26px; }
    .quick-menu-text { font-size: 13px; }

    .games-section { padding: 20px 16px; }
    .games-grid { gap: 16px; }
    .game-name { font-size: 13px; padding: 10px 6px; }

    .slide { height: 320px; }
    .lucky-banner { margin: 20px 16px; }
}

@media (min-width: 1400px) {
    .slide { height: 380px; }
}

/* ==========================================================================
   Accounts (login / register)
   The live site's auth pages use a separate, lighter design than the home
   page — gold accent on a soft background with an animated particle field.
   Values below are taken from the live main.css.
   ========================================================================== */

.mgm-accounts {
    --acc-base: #d5a953;
    --acc-title: #ffffff;
    --acc-body: #daddff;
    --acc-section: #0e2429;
    --acc-card: #11272c;
    --acc-border: #283c40;
    font-family: 'Poppins', sans-serif;
}

/* The accounts pages own the whole viewport and hide the app chrome. */
body.mgm-accounts-body { padding-bottom: 0; background: #0e2429; }

.accounts-section {
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--acc-section);
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(0, 188, 212, 0.6);
}

.accounts-inner {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.accounts-inner__wrapper {
    border-radius: 10px;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.accounts-left {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.accounts-left-content {
    padding: 34px 26px;
    width: 100%;
    background: var(--acc-card);
    border: 1px solid var(--acc-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Gold underline beneath the logo, as on the live site. */
.accounts-left-content .section-header__subtitle {
    display: block;
    height: 2px;
    width: 60px;
    background: var(--acc-base);
    border-radius: 2px;
    margin: 16px 0 4px;
}

.accounts-logo {
    font-size: 36px;
    font-weight: 700;
    color: #ebb343;
    text-decoration: none;
    display: inline-block;
}

.accounts-left-content .section-header {
    margin-bottom: 26px;
    margin-top: 14px;
}

.accounts-left-content .section-header__title {
    margin-bottom: 8px;
    color: var(--acc-title);
    font-size: 26px;
    font-weight: 700;
}

.accounts-left-content .section-header p {
    color: var(--acc-body);
    margin: 0;
    font-size: 14px;
}

.mgm-accounts .form-label {
    font-weight: 500;
    text-transform: capitalize;
    color: var(--acc-title);
    margin-bottom: 6px;
    display: block;
}

.mgm-accounts .form-control {
    background: var(--acc-section);
    border: 1px solid var(--acc-border);
    color: var(--acc-body);
    height: 50px;
    width: 100%;
    padding: 0 15px;
    border-radius: 7px;
    outline: none;
    font-size: 14px;
}

.mgm-accounts .form-control::placeholder { color: #6b7d86; }

.mgm-accounts textarea.form-control { height: 120px; padding: 12px 15px; }

.mgm-accounts .form-control:focus {
    border-color: var(--acc-base);
    box-shadow: none;
}

.mgm-accounts .form-check-input:checked {
    background-color: var(--acc-base);
    border-color: var(--acc-base);
}

.mgm-accounts .text--base { color: var(--acc-base); text-decoration: none; }
.mgm-accounts .text--base:hover { text-decoration: underline; }

.cmn--btn {
    font-family: 'Poppins', sans-serif;
    position: relative;
    color: #fff;
    border-radius: 7px;
    width: 100%;
    font-weight: 600;
    text-transform: capitalize;
    outline: none;
    border: 2px solid var(--acc-base, #d5a953);
    padding: 0 25px;
    height: 50px;
    overflow: hidden;
    background: var(--acc-base, #d5a953);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cmn--btn:hover {
    color: var(--acc-base, #d5a953);
    background: transparent;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

/* Animated particle field (decorative, from live main.css) */
.particle,
.particle2,
.particle3,
.particle4 {
    border-radius: 50%;
    content: " ";
    position: absolute;
    background: transparent;
    z-index: 1;
    box-shadow:
        571px 173px #00bcd4, 1732px 143px #00bcd4, 1745px 454px #d5a953, 234px 784px #00bcd4,
        1793px 1123px #ff9800, 1076px 504px #03a9f4, 633px 601px #d5a953, 350px 630px #ffeb3b,
        1164px 782px #00bcd4, 76px 690px #3f51b5, 1825px 701px #cddc39, 1646px 578px #ffeb3b,
        544px 293px #2196f3, 445px 1061px #673ab7, 928px 47px #00bcd4, 168px 1410px #8bc34a,
        777px 782px #9c27b0, 104px 1690px #8bc34a, 345px 1652px #009688, 1995px 494px #8bc34a,
        428px 798px #d5a953, 605px 349px #9c27b0, 419px 1024px #ff9800, 630px 1033px #4caf50,
        1092px 712px #9c27b0, 622px 1881px #cddc39, 864px 1780px #e91e63, 442px 1136px #2196f3,
        67px 712px #d5a953, 275px 321px #009688, 592px 630px #e91e63, 1749px 23px #673ab7,
        94px 1542px #ffeb3b, 1505px 692px #2196f3, 656px 811px #00bcd4, 1202px 46px #d5a953,
        890px 569px #d5a953, 223px 252px #ff9800, 726px 1029px #ffc107, 340px 505px #fff,
        1700px 39px #fff, 849px 391px #ff9800, 812px 1480px #3f51b5, 137px 1397px #fff,
        1080px 456px #673ab7, 857px 281px #d5a953, 987px 990px #4caf50, 660px 435px #03a9f4,
        299px 678px #4caf50, 1193px 115px #ff9800, 918px 290px #cddc39, 108px 223px #ffeb3b,
        146px 754px #00bcd4, 1004px 391px #673ab7, 347px 583px #009688, 1972px 248px #fff,
        320px 1076px #cddc39, 126px 943px #ffeb3b, 263px 604px #d5a953;
}

.particle  { width: 4px; height: 4px; animation: mgmParticle 30s linear infinite; }
.particle2 { width: 3px; height: 3px; animation: mgmParticle2 2.5s linear infinite; }
.particle3 { width: 2px; height: 2px; animation: mgmParticle 9s linear infinite; }
.particle4 { width: 1px; height: 1px; animation: mgmParticle2 15s linear infinite; }

@keyframes mgmParticle {
    from { transform: translateY(0); }
    to   { transform: translateY(-2000px); }
}
@keyframes mgmParticle2 {
    from { transform: translateY(0); }
    to   { transform: translateY(-2000px); }
}

/* ==========================================================================
   Cookie consent popup (GDPR) — admin toggles it at Settings → Cookie Policy
   ========================================================================== */
.cookies-card {
    position: fixed;
    left: 15px;
    right: 15px;
    bottom: calc(var(--mgm-nav-h) + 12px);
    max-width: 360px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #f0d9d9;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(139, 0, 0, .22);
    padding: 20px 18px 18px;
    text-align: center;
    z-index: 1200;
    transition: transform .35s ease, opacity .35s ease;
}
.cookies-card.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }

.cookies-card__icon {
    width: 52px;
    height: 52px;
    margin: -46px auto 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B0000, #B22222) !important;
    color: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(139, 0, 0, .3);
}

.cookies-card__content {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 12px 0 0;
}
.cookies-card__content .text--base { color: #B22222; font-weight: 600; }

.cookies-card__btn { margin-top: 14px; }
.cookies-card__btn .cmn-btn,
.cookies-card__btn .cmn--btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 20px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B0000 !important;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.cookies-card__btn .cmn-btn:hover,
.cookies-card__btn .cmn--btn:hover { background: linear-gradient(135deg, #FFA500, #FFD700); }

/* ==========================================================================
   Accounts loader — full-screen spinner shown during AJAX login/register
   ========================================================================== */
.mgm-loader {
    position: fixed;
    inset: 0;
    background: rgba(14, 36, 41, .82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.mgm-loader.active { display: flex; }
.mgm-loader__spin {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid rgba(213, 169, 83, .25);
    border-top-color: #d5a953;
    border-right-color: #d5a953;
    animation: mgmSpin 0.8s linear infinite;
}
@keyframes mgmSpin { to { transform: rotate(360deg); } }

/* Inline alerts on the accounts card */
.mgm-accounts .alert { border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 4px; }
.mgm-accounts .alert-danger { background: rgba(220,53,69,.15); border: 1px solid rgba(220,53,69,.4); color: #ffb3b3; }
.mgm-accounts .alert-success { background: rgba(40,167,69,.15); border: 1px solid rgba(40,167,69,.4); color: #b7f0c2; }

/* Accounts header must stack vertically — override the games .section-header flex row */
.mgm-accounts .section-header {
    display: block !important;
    text-align: left;
    margin-bottom: 26px;
}
.mgm-accounts .section-header__title { display: block; }
.mgm-accounts .section-header p { display: block; max-width: 100%; margin-top: 4px; }

/* Verification code boxes inside the dark accounts card */
.mgm-accounts .verification-code,
.mgm-accounts .verification-area .verification-code { display: flex; gap: 8px; justify-content: space-between; }
.mgm-accounts .verification-area input {
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    background: var(--acc-section) !important;
    border: 1px solid var(--acc-border) !important;
    color: var(--acc-title) !important;
    border-radius: 8px;
    height: 52px;
    padding: 0;
}
.mgm-accounts .verification-area input:focus { border-color: var(--acc-base) !important; outline: none; }
.mgm-accounts .countdown-wrapper { color: var(--acc-body); }
.mgm-accounts .fw-bold { font-weight: 700; }
.mgm-accounts .d-none { display: none !important; }

/* ==========================================================================
   Content pages inside the MGM shell (blog, contact, policy, custom pages)
   These blades still carry the base template's bootstrap-ish markup, so we
   tame the huge legacy spacing and give them the MGM look.
   ========================================================================== */
.mgm-page-banner {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 50%, #8B0000 100%);
    padding: 22px 16px;
    color: #fff;
}
.mgm-page-banner h2 { font-size: 22px; font-weight: 700; color: #FFD700; margin: 0; }
.mgm-page-banner ul {
    list-style: none; display: flex; gap: 8px; flex-wrap: wrap;
    padding: 6px 0 0; margin: 0; font-size: 12px;
}
.mgm-page-banner ul li { color: rgba(255,255,255,.75); }
.mgm-page-banner ul a { color: #FFD700; }

.mgm-content { padding: 4px 0 10px; }

/* Kill the legacy 120px section padding */
.mgm-content .pt-120 { padding-top: 16px !important; }
.mgm-content .pb-120 { padding-bottom: 16px !important; }
.mgm-content .mb-50 { margin-bottom: 18px !important; }

/* Containers go full width with a sane cap */
.mgm-content .container,
.mgm-content .container-fluid {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 14px;
    padding-right: 14px;
}

/* Panels/cards on content pages */
.mgm-content .account-wrapper,
.mgm-content .card,
.mgm-content .contact-wrapper,
.mgm-content .blog-item {
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(0,0,0,.08);
    padding: 20px;
}

.mgm-content h1, .mgm-content h2, .mgm-content h3,
.mgm-content h4, .mgm-content h5 { color: #8B0000; }
.mgm-content p, .mgm-content span, .mgm-content li { color: #444; }
.mgm-content a { color: #B22222; }

/* Forms on content pages */
.mgm-content .form-control,
.mgm-content .form--control,
.mgm-content input, .mgm-content textarea, .mgm-content select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #fafafa;
    color: #333;
    font-family: inherit;
    font-size: 14px;
}
.mgm-content .form-control:focus,
.mgm-content input:focus, .mgm-content textarea:focus {
    outline: none; border-color: #B22222; background: #fff;
}
.mgm-content label, .mgm-content .form-label { color: #555; font-size: 13px; font-weight: 500; margin-bottom: 6px; display: block; }

.mgm-content .cmn-btn,
.mgm-content .cmn--btn,
.mgm-content button[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B0000;
    font-weight: 700;
    cursor: pointer;
}
.mgm-content .w-100 { width: 100%; }

/* Tables on content pages */
.mgm-content table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.mgm-content thead th { background: #8B0000; color: #fff; padding: 10px; font-size: 13px; }
.mgm-content tbody td { padding: 10px; border-bottom: 1px solid #f0f0f0; color: #444; font-size: 13px; }

/* Images never overflow */
.mgm-content img { max-width: 100%; height: auto; }

/* ==========================================================================
   Logged-in header — white bar with red logo + four quick links
   ========================================================================== */
.mgm-header--auth {
    background: #fff !important;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}
.mgm-logo-text--auth {
    font-size: 24px;
    font-weight: 700;
    color: #B22222;
    text-shadow: none;
    letter-spacing: 1px;
}
.mgm-header-nav { display: flex; gap: 20px; align-items: center; }
.mgm-header-nav__item {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color .3s;
}
.mgm-header-nav__item i { font-size: 18px; margin-bottom: 3px; }
.mgm-header-nav__item:hover,
.mgm-header-nav__item.active { color: #B22222; }

@media (max-width: 420px) {
    .mgm-header-nav { gap: 13px; }
    .mgm-header-nav__item { font-size: 11px; }
    .mgm-header-nav__item i { font-size: 16px; }
}

/* Profile avatar + dropdown inside the MGM header (home/games pages) */
.mgm-header .profile-wrapper { position: relative; display: flex; align-items: center; }
.mgm-header .profile-pic {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover; cursor: pointer;
    border: 2px solid #B22222; transition: all .3s;
}
.mgm-header .profile-pic:hover { border-color: #DC143C; transform: scale(1.05); }
.mgm-header .profile-dropdown {
    position: absolute; top: 48px; right: 0;
    background: #fff; border-radius: 10px; box-shadow: 0 5px 25px rgba(0,0,0,.15);
    min-width: 190px; display: none; z-index: 1200; overflow: hidden;
}
.mgm-header .profile-dropdown.show { display: block; }
.mgm-header .profile-dropdown ul { list-style: none; margin: 0; padding: 0; }
.mgm-header .profile-dropdown ul li a {
    display: flex; align-items: center; gap: 10px; padding: 12px 15px;
    color: #333; text-decoration: none; font-size: 14px; transition: all .3s;
}
.mgm-header .profile-dropdown ul li a:hover { background: #f5f5f5; color: #B22222; }
.mgm-header .profile-dropdown ul li a i { color: #B22222; width: 20px; text-align: center; }
