/* Template2 mobile shell — theme-mobile2 */
.m-announce { display: none; }
.m-pay-strip,
.m-trust-badges { display: none; }

@media (max-width: 768px) {
  html { overflow-x: clip; }
  body {
    overflow-x: visible !important;
    padding-bottom: 92px !important;
    background: #0e0524 !important;
  }
  /* Solid/gradient only — no bg.jpeg / bg.png on mobile */
  body .page-bg,
  body.page-member .page-bg,
  body.page-category .page-bg,
  body.page-promosi .page-bg,
  body.page-rtp .page-bg {
    background-image: none !important;
    background:
      radial-gradient(ellipse 120% 45% at 50% -5%, rgba(90, 40, 160, .28), transparent 58%),
      radial-gradient(ellipse 80% 35% at 80% 60%, rgba(60, 20, 110, .18), transparent 55%),
      linear-gradient(180deg, #16082e 0%, #0e0524 45%, #0a0318 100%) !important;
    background-size: auto !important;
    background-attachment: scroll !important;
    opacity: 1;
    filter: none;
  }
  .category-panel::before,
  .promo-panel::before,
  .rtp-panel::before,
  .provider-bar::before,
  .games-panel::before {
    background-image: none !important;
    background: none !important;
    content: none !important;
    display: none !important;
  }
  .category-panel,
  .promo-panel,
  .rtp-panel {
    background: rgba(22, 10, 48, .92) !important;
  }

  .desktop-cats,
  .desktop-only,
  .site-header.desktop-only,
  .live-wd,
  .provider-bar {
    display: none !important;
  }

  .game-badge.is-hot {
    background: linear-gradient(180deg, #ff6b4a, #be123c);
    border-color: rgba(255, 255, 255, .45);
    min-width: auto;
    padding: 0 6px;
    left: 6px;
    right: auto;
    top: 6px;
    bottom: auto;
  }
  .game-badge.is-live {
    background: linear-gradient(180deg, #39c75a, #15803d);
    border-color: rgba(255, 255, 255, .4);
    min-width: auto;
    padding: 0 6px;
    left: 6px;
    right: auto;
    top: 6px;
    bottom: auto;
  }

  .page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 12px 28px !important;
  }

  .m-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #3d1a72, #251046);
    border-bottom: 1px solid rgba(245, 197, 24, .22);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  }

  .m-icon-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .m-logo {
    display: flex;
    justify-content: center;
  }
  .m-logo img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
  }

  .m-auth { display: flex; gap: 6px; }
  .m-btn {
    padding: 8px 12px !important;
    font-size: 11px !important;
    min-height: 32px;
    border-radius: 999px !important;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .25) !important;
    font-weight: 800 !important;
  }
  .m-btn.btn-login {
    background: linear-gradient(180deg, #5a2aa8, #3d1f8a) !important;
    color: #fff !important;
    border: 1.5px solid rgba(245, 197, 24, .75) !important;
  }
  .m-btn.btn-register {
    background: linear-gradient(180deg, #ffe566, #f5c518) !important;
    color: #3a2200 !important;
    border: 0 !important;
  }

  .m-drawer-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(8, 2, 18, .55);
  }
  .m-drawer-backdrop[hidden] { display: none !important; }

  .m-drawer {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: min(78vw, 280px);
    height: 100%;
    background: linear-gradient(180deg, #2a1050 0%, #16082e 55%, #10061f 100%);
    box-shadow: 8px 0 28px rgba(0, 0, 0, .45);
    transform: translateX(0);
    transition: transform .22s ease, visibility .22s ease;
  }
  .m-drawer[hidden] {
    display: flex !important;
    transform: translateX(-105%);
    pointer-events: none;
    visibility: hidden;
  }
  .m-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 12px 14px;
    background: rgba(58, 23, 104, .95);
    color: #ffe566;
    border-bottom: 1px solid rgba(245, 197, 24, .28);
  }
  .m-drawer-head strong {
    font-size: 13px;
    letter-spacing: .8px;
  }
  .m-drawer-nav {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 4px 0 12px;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .m-drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 10px;
    padding: 11px 8px;
    border-radius: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: rgba(244, 239, 255, .92);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .m-drawer-nav a:last-child { border-bottom: 0; }
  .m-drawer-nav a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #f5c518;
    font-size: 16px;
    line-height: 1;
  }
  .m-drawer-nav a:active {
    background: rgba(245, 197, 24, .1);
    color: #ffe566;
  }

  .hero {
    margin-top: 10px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 220, 160, .18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  }
  .hero-nav { display: none; }
  .hero-caption {
    font-size: 15px;
    left: 14px;
    bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
  }
  .hero-dots { bottom: 10px; }

  .m-announce {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 10px 0 8px !important;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(26, 10, 54, .96) !important;
    border: 1px solid rgba(186, 160, 255, .4) !important;
    box-shadow:
      0 0 10px rgba(140, 90, 220, .18),
      inset 0 1px 0 rgba(255, 255, 255, .06);
  }
  .m-announce .announce-ico {
    color: #f5c518 !important;
    flex: 0 0 auto;
    font-size: 13px;
  }
  .m-announce .announce-marquee {
    flex: 1 1 auto;
    min-width: 0;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
  }
  .m-announce .announce-marquee span {
    color: #fff !important;
  }
  .m-announce .announce-link {
    flex: 0 0 auto;
    color: #f5c518 !important;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
  }

  /* Ref: purple panel, 7 free icons (no gold rings), LIVE badge */
  .m-cats {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    scrollbar-width: none;
    padding: 12px 10px 12px;
    margin: 0 0 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(40, 18, 78, .95), rgba(22, 8, 48, .98)) !important;
    border: 1px solid rgba(200, 170, 255, .42) !important;
    box-shadow:
      0 0 12px rgba(150, 100, 230, .22),
      inset 0 1px 0 rgba(255, 255, 255, .08),
      0 8px 18px rgba(0, 0, 0, .35);
  }
  .m-cats::-webkit-scrollbar { display: none; }
  .m-cats a {
    flex: 0 0 68px;
    min-width: 68px;
    width: 68px;
    max-width: 68px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    font-size: 8.5px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    letter-spacing: .05px;
    line-height: 1.15;
    text-transform: uppercase;
  }
  .m-cat-ico {
    position: relative;
    width: 56px;
    max-width: 56px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .m-cat-ico img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5));
  }
  .m-live {
    position: absolute;
    top: -4px;
    right: -6px;
    z-index: 2;
    padding: 2px 5px;
    border-radius: 4px;
    background: linear-gradient(180deg, #ff4d6d, #e11d48);
    color: #fff;
    font-size: 7px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .35px;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(225, 29, 72, .55);
  }

  .jackpot {
    margin: 4px 0 10px;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .jp-banner {
    display: block;
    width: 100%;
    height: auto;
  }
  .jp-overlay { inset: 0; }
  .jackpot-label { display: none !important; }
  .jackpot-amount {
    left: 17%;
    width: 51%;
    top: 56%;
    font-size: clamp(11px, 3.4vw, 18px);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
  }
  .btn-jackpot {
    left: 72%;
    right: auto;
    width: 23%;
    height: 28%;
    min-height: 20px;
    top: 70%;
    padding: 0 4px;
    font-size: clamp(6px, 1.7vw, 9px);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    border: 0;
    box-shadow: none;
    font-weight: 900;
    letter-spacing: .2px;
    white-space: nowrap;
    text-decoration: none;
  }

  .section-head { margin: 14px 0 8px; }
  .section-head h2 { font-size: 15px; }

  /* Panel transparan + box emas — ikut page-bg di belakang */
  .games-panel {
    position: relative;
    margin: 10px 0 14px;
    padding: 12px 10px 12px;
    border-radius: 16px;
    overflow: visible;
    isolation: auto;
    background: transparent !important;
    border: 1.5px solid #e8b82a !important;
    box-shadow:
      0 0 0 1px rgba(232, 184, 42, .35),
      0 0 14px rgba(232, 184, 42, .25),
      inset 0 1px 0 rgba(255, 230, 150, .16),
      0 8px 20px rgba(0, 0, 0, .45) !important;
  }
  .games-panel::before,
  .games-panel::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    filter: none !important;
  }
  .games-panel > * {
    position: relative;
    z-index: 1;
  }
  .games-panel .section-head-popular,
  .games-panel .section-head-casino {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .games-panel .section-head-popular h2,
  .games-panel .section-head-casino h2 {
    font-size: 13px !important;
    height: auto !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #fff !important;
    letter-spacing: .4px;
    text-shadow: none !important;
    text-transform: uppercase;
  }
  .games-panel .section-head-popular h2 i,
  .games-panel .section-head-casino h2 i {
    color: #f5c518 !important;
    margin-right: 5px;
    font-size: 12px;
  }
  .games-panel .section-head a,
  .games-panel .section-head-popular a,
  .games-panel .section-head-casino a {
    color: #f5c518 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    white-space: nowrap;
  }

  .games-panel .game-grid,
  .games-panel .casino-grid {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 20px) / 3.25);
    grid-template-columns: none !important;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .games-panel .game-grid::-webkit-scrollbar,
  .games-panel .casino-grid::-webkit-scrollbar { display: none; }

  /* Gold kotak: image + caption inside one border */
  .games-panel .game-card {
    display: flex !important;
    flex-direction: column;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    overflow: visible;
  }
  .games-panel .game-card:hover {
    transform: none !important;
    filter: none !important;
  }
  .games-panel .game-thumb {
    border-radius: 0 !important;
    overflow: hidden;
    margin: 0;
    line-height: 0;
    width: 100%;
    aspect-ratio: 1 / 1 !important;
  }
  .games-panel .game-thumb::after,
  .games-panel .play-now {
    display: none !important;
    opacity: 0 !important;
  }
  .games-panel .game-thumb img,
  .games-panel .casino-grid .game-thumb img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 2px solid #fff !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    background: #1a0a36;
    transform: none !important;
  }
  .games-panel .casino-grid .game-thumb img {
    object-position: center top !important;
  }
  .games-panel .game-card:hover .game-thumb img {
    transform: none !important;
    border-color: transparent !important;
  }
  .games-panel .game-badge {
    z-index: 2;
    min-width: 0;
    height: 15px;
    padding: 0 5px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .3px;
    border: 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  }
  .games-panel .game-badge:not(.is-hot):not(.is-live) {
    left: auto;
    right: 4px;
    top: auto;
    bottom: 4px;
    background: rgba(8, 4, 24, .78);
    border: 1px solid rgba(255, 255, 255, .4) !important;
    color: #fff;
  }
  .games-panel .game-badge.is-hot,
  .games-panel .game-badge.is-live {
    left: 4px;
    right: auto;
    top: 4px;
    bottom: auto;
    padding: 0 5px;
  }
  .games-panel .game-badge.is-hot {
    background: linear-gradient(180deg, #ff4d3d, #d01020) !important;
  }
  .games-panel .game-badge.is-live {
    background: linear-gradient(180deg, #3fd866, #1a9a38) !important;
  }
  .games-panel .game-card figcaption {
    padding: 6px 4px 2px;
    text-align: center;
    background: transparent !important;
    border-top: 0;
  }
  .games-panel .game-card strong {
    display: block;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff !important;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .games-panel .game-card figcaption > span {
    display: block;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #f5c518 !important;
  }

  .trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 8px 0 16px;
  }
  .trust-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #3a1a78;
    border: 1px solid rgba(255, 220, 120, .28);
    text-align: left;
  }
  .trust-card i {
    width: 36px;
    height: 36px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffd400;
    font-size: 20px;
    margin: 0;
  }
  .trust-card strong {
    color: #ffd400;
    font-size: 12px;
    line-height: 1.25;
  }
  .trust-card p {
    display: block;
    font-size: 11px;
    color: #fff;
  }

  .m-pay-strip {
    display: block !important;
    margin: 0 0 16px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(30, 12, 60, .75);
    border: 1px solid rgba(255, 220, 160, .14);
  }
  .m-pay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
  }
  .m-pay-head h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    color: #ffe566;
    letter-spacing: .4px;
  }
  .m-pay-head a {
    color: rgba(255, 230, 160, .9);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
  }
  .m-pay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .m-pay-grid img {
    width: 100%;
    height: 34px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
  }
  .m-pay-track { display: none; }

  .m-trust-badges {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 18px;
  }
  .m-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 12px;
    background: rgba(30, 12, 60, .75);
    border: 1px solid rgba(255, 220, 160, .14);
    text-align: center;
    color: #ffe566;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.25;
  }
  .m-trust-badge em,
  .m-trust-badge > span:not(.m-trust-ico) {
    font-style: normal;
    color: rgba(255, 255, 255, .88);
  }
  .m-trust-badge i,
  .m-trust-ico {
    color: #f5c518;
    font-size: 18px;
    font-style: normal;
    font-weight: 900;
  }
  .m-trust-badge em {
    font-style: normal;
    font-size: 9px;
    font-weight: 800;
    color: rgba(255, 255, 255, .85);
    line-height: 1.25;
  }

  .footer {
    border-radius: 16px;
    padding: 16px 14px;
    background: #2c165d;
    border: 1px solid rgba(255, 220, 120, .18);
  }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer .pay-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .m-bottom-nav {
    --fab: clamp(60px, 18vw, 74px);
    --fab-r: calc(var(--fab) / 2);
    --nav-h: 64px;
    position: fixed !important;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 80;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: linear-gradient(180deg, #3d1a72, #1a0a36);
    border-top: 1px solid rgba(245, 197, 24, .28);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
  }

  .m-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: var(--nav-h);
    padding: 0 2px;
    color: rgba(255, 255, 255, .75);
    font-size: 9px;
    font-weight: 800;
  }
  .m-tab i { font-size: 17px; }
  .m-tab.is-active,
  .m-tab.is-active i { color: #ffe566; }

  .m-tab-deposit {
    padding: 0;
    overflow: visible;
    justify-content: flex-start;
    align-items: center;
  }
  .m-deposit-fab {
    width: var(--fab);
    height: var(--fab);
    margin: 0 auto;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    background:
      radial-gradient(circle at 50% 28%, rgba(255, 230, 120, .2), transparent 48%),
      linear-gradient(180deg, #5a2aa8 0%, #2e1458 55%, #1a0a36 100%);
    border: 2.5px solid #e8b82a;
    box-shadow:
      0 0 0 3px rgba(90, 42, 154, .35),
      0 0 14px rgba(232, 184, 42, .28),
      0 8px 18px rgba(0, 0, 0, .45);
    transform: translateY(calc((var(--nav-h) - var(--fab)) / 2 - 18px));
    font-size: 8px;
    font-weight: 900;
    color: #ffe566;
    letter-spacing: .3px;
    overflow: visible;
  }
  .m-deposit-fab i { display: none !important; }
  .m-deposit-fab img {
    display: block !important;
    width: 72%;
    height: 72%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4));
  }
  .m-deposit-fab > span {
    line-height: 1;
    margin-top: -2px;
    font-size: 7.5px;
  }

  .m-fab-chat {
    display: inline-flex !important;
    position: fixed;
    right: 12px;
    bottom: calc(var(--nav-h, 64px) + 20px);
    z-index: 70;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffe566, #f0b400);
    color: #2a1048;
    font-size: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  }

  body.m-nav-open { overflow: hidden !important; }
  body.m-nav-open .m-bottom-nav {
    visibility: hidden;
    pointer-events: none;
  }
}

@media (min-width: 769px) {
  .m-topbar,
  .m-drawer,
  .m-drawer-backdrop,
  .m-bottom-nav,
  .m-cats,
  .m-fab-chat,
  .m-announce,
  .m-pay-strip,
  .m-trust-badges {
    display: none !important;
  }
}

/* ===== Member page mobile (template2 dark) ===== */
@media (max-width: 768px) {
  .m-topbar-member {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }
  .m-member-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .m-balance {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(22, 10, 48, .95);
    color: #ffe566;
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    border: 1px solid rgba(245, 197, 24, .4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    cursor: pointer;
  }
  .m-balance i { color: #f5c518; font-size: 12px; }
  .m-balance.is-spinning i { animation: m-spin .6s linear; }
  @keyframes m-spin { to { transform: rotate(360deg); } }

  .m-profile-wrap { position: relative; }
  .m-profile-btn {
    width: 34px; height: 34px; border-radius: 10px;
    border: 1.5px solid rgba(255, 210, 74, .9);
    background: rgba(255, 255, 255, .08);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px;
  }
  .m-profile-drop {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px;
    padding: 8px; border-radius: 12px;
    background: linear-gradient(180deg, #2a1658, #160a30);
    border: 1.5px solid rgba(245, 197, 24, .4);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
    display: flex; flex-direction: column; gap: 2px; z-index: 50;
  }
  .m-profile-drop[hidden] { display: none !important; }
  .m-profile-drop button {
    border: 0; background: transparent; text-align: left; padding: 9px 10px;
    border-radius: 8px; font-family: "Nunito", sans-serif; font-weight: 700;
    font-size: 13px; color: #efe6ff; cursor: pointer;
  }
  .m-profile-drop button:hover { background: rgba(245, 197, 24, .12); }
  .m-profile-drop hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 4px 0; }
  .m-profile-drop .is-logout { color: #ff6b8a; }
  .m-profile-drop .is-finance {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(245, 197, 24, .16); color: #ffe566; font-weight: 800;
  }
  .m-profile-drop .is-finance.is-wd {
    background: rgba(107, 63, 212, .25); color: #efe6ff;
  }

  .m-member-nav-wrap {
    display: flex !important; align-items: center; gap: 4px;
    margin: 6px 10px 0; padding: 4px; border-radius: 14px;
    background: rgba(22, 10, 48, .95);
    border: 1px solid rgba(255, 220, 160, .18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  }
  .m-member-scroll {
    flex: 0 0 auto; width: 28px; height: 32px; border: 0; border-radius: 999px;
    background: #6b3fd4; color: #fff; display: inline-flex; align-items: center;
    justify-content: center; cursor: pointer; font-size: 12px;
  }
  .m-member-scroll.is-hidden { visibility: hidden; pointer-events: none; }
  .m-member-nav {
    display: flex !important; flex: 1 1 auto; min-width: 0; gap: 2px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0; padding: 0 2px; background: transparent; border: 0; box-shadow: none;
  }
  .m-member-nav::-webkit-scrollbar { display: none; }
  .m-member-nav button {
    flex: 0 0 auto; border: 0; background: transparent; color: #efe6ff;
    font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; font-size: 13px;
    padding: 9px 12px 10px; cursor: pointer; position: relative;
  }
  .m-member-nav button.is-active { color: #f5c518; }
  .m-member-nav button.is-active::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px;
    height: 3px; border-radius: 999px; background: #f5c518;
  }
  .m-member-nav-wrap.is-finance-hide { display: none !important; }

  body.page-member .member-side { display: none !important; }
  body.page-member .member-layout { display: block; }
  body.page-member .member-main {
    padding: 12px; border-radius: 14px;
  }
}
