:root {
    --bg: #05070b;
    --panel: rgba(17, 21, 29, .9);
    --panel-strong: rgba(23, 28, 39, .96);
    --panel-soft: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .11);
    --text: #f3f6fb;
    --muted: #aab2c1;
    --gold: #ffd37a;
    --teal: #28d7c7;
    --red: #f05b5b;
    --blue: #5aa8ff;
    --violet: #a78bfa;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, "Helvetica Neue", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 28% 10%, rgba(255, 211, 122, .16), transparent 24%),
        radial-gradient(circle at 76% 4%, rgba(40, 215, 199, .13), transparent 22%),
        linear-gradient(120deg, rgba(5, 7, 11, .86), rgba(5, 7, 11, .98)),
        url('/assets/mu-banner.png') center top / cover fixed,
        var(--bg);
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(115deg, rgba(255,255,255,.028) 0 9%, transparent 9% 20%),
        linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px);
    background-size: 190px 190px, 100% 58px;
    mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
body::after {
    content: "";
    position: fixed;
    inset: auto 0 0 0;
    height: 48vh;
    pointer-events: none;
    background: radial-gradient(circle at 50% 100%, rgba(240, 91, 91, .16), transparent 56%);
    mix-blend-mode: screen;
}
a { color: inherit; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px clamp(14px, 3vw, 34px);
    background: linear-gradient(180deg, rgba(24, 28, 35, .96), rgba(14, 17, 23, .92));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 52px rgba(0,0,0,.42);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
}
.crest {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 34px;
    border-radius: 8px;
    color: #1b1202;
    background: linear-gradient(135deg, #fff0bd, #f5b73d 48%, #922c25);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.38), 0 0 20px rgba(255,211,122,.2);
    animation: crestGlow 4.8s ease-in-out infinite;
}
nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav-link, .chip {
    text-decoration: none;
    border: 1px solid transparent;
    color: #dfe5ef;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.nav-link:hover, .nav-link.active, .chip:hover {
    color: #fff;
    border-color: var(--line);
    background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
    transform: translateY(-1px);
}

.app-shell {
    width: min(1880px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 64px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 300px;
    gap: 22px;
    position: relative;
}
body > main:not(.app-shell) {
    width: min(1500px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 64px;
    position: relative;
}
.side-menu, .right-panel {
    position: sticky;
    top: 84px;
    align-self: start;
}
.side-menu {
    min-height: calc(100vh - 112px);
    padding: 22px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.05), transparent 34%),
        rgba(13, 17, 23, .78);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 22px 60px rgba(0,0,0,.32);
}
.side-title {
    margin: 14px 0 8px;
    color: #f5f5f5;
    font-weight: 900;
    font-size: 13px;
}
.side-menu a {
    display: block;
    text-decoration: none;
    padding: 12px 13px;
    margin: 4px 0;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
.side-menu a:hover, .side-menu a.active {
    background: linear-gradient(90deg, rgba(255,211,122,.16), rgba(255,255,255,.055));
    color: var(--text);
    transform: translateX(4px);
}
.content { min-width: 0; }

.hero {
    min-height: 320px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 18px;
}
.hero-copy, .status-panel, .panel, .metric, .module-card, .server-card, .support-card, .gift-card, .shop-card {
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 26px 80px rgba(0,0,0,.34);
    position: relative;
    overflow: hidden;
}
.hero-copy::before, .panel::before, .module-card::before, .gift-card::before, .shop-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,.095), transparent 32%, rgba(255,211,122,.06)),
        radial-gradient(circle at 78% 12%, rgba(90,168,255,.1), transparent 26%);
    opacity: .74;
}
.hero-copy {
    padding: clamp(28px, 5vw, 58px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-copy::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--red), var(--teal));
}
.hero-copy h1 {
    font-size: clamp(40px, 6vw, 76px);
    line-height: .98;
    margin: 0 0 16px;
    text-shadow: 0 0 34px rgba(255,211,122,.25), 0 8px 28px rgba(0,0,0,.72);
}
.hero-copy p {
    max-width: 680px;
    color: #d1d7e2;
    font-size: 18px;
}
.eyebrow {
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.button {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 16px;
    min-height: 42px;
    background: rgba(255,255,255,.08);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.button.primary {
    background: linear-gradient(135deg, #3d8bff, #8b5cf6 48%, #ef476f);
    border-color: rgba(255,255,255,.2);
    box-shadow: 0 12px 30px rgba(139,92,246,.25);
}
.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 14px 32px rgba(0,0,0,.32);
}
.button.full { width: 100%; }
.status-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}
.status-panel div, .metric {
    padding: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.026));
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.status-panel strong, .metric strong {
    display: block;
    font-size: 30px;
}
.status-panel span, .metric span, .muted {
    color: var(--muted);
}
.module-grid, .gift-grid, .shop-grid, .cards {
    display: grid;
    gap: 14px;
}
.module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.module-card {
    padding: 20px;
    text-decoration: none;
    min-height: 118px;
    display: grid;
    align-content: space-between;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 18px 56px rgba(0,0,0,.26);
}
.module-card:hover, .gift-card:hover, .shop-card:hover {
    transform: translateY(-5px);
    border-color: rgba(240,198,106,.42);
    background: var(--panel-strong);
}
.module-card span, .pack-tag {
    color: var(--gold);
    font-weight: 900;
}
.module-card:nth-child(1) { border-top: 3px solid #5aa8ff; }
.module-card:nth-child(2) { border-top: 3px solid #ef476f; }
.module-card:nth-child(3) { border-top: 3px solid #f1c66a; }
.module-card:nth-child(4) { border-top: 3px solid #28d7c7; }
.module-card strong { font-size: 18px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { padding: 22px; margin-bottom: 16px; }
.panel h1, .panel h2 { margin-top: 0; }
.promo strong { color: #b784ff; font-size: 34px; }
.promo:nth-child(1) strong { color: #c084fc; }
.promo:nth-child(2) strong { color: #fb923c; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0; }
.account-head, .section-title, .page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}
.account-head h1, .page-head h1 { margin: 0; font-size: 42px; }
.page-head { justify-content: flex-start; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(40,215,199,.36), rgba(90,168,255,.28), rgba(167,139,250,.18));
    border: 1px solid rgba(40,215,199,.42);
    color: #d7fffa;
    font-weight: 900;
    box-shadow: 0 0 28px rgba(40,215,199,.18);
}
.auth, .download {
    min-height: 520px;
    display: grid;
    place-items: center;
}
.form { width: min(520px, 100%); }
label {
    display: grid;
    gap: 7px;
    margin: 14px 0;
    color: #d1d7e2;
    font-weight: 800;
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    background: rgba(5, 8, 12, .82);
    color: var(--text);
    font-size: 15px;
}
textarea {
    min-height: 120px;
    resize: vertical;
    font-family: Consolas, monospace;
}
.inline-form {
    display: grid;
    grid-template-columns: repeat(5, max-content);
    gap: 8px;
    min-width: 460px;
    align-items: center;
}
.inline-form input { padding: 9px 10px; }
.inline-form input[name="admin_note"] { min-width: 180px; }
.item-picker {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
}
.item-results {
    display: grid;
    gap: 6px;
    max-height: 240px;
    overflow: auto;
}
.item-result {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0,0,0,.22);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.item-result:hover { border-color: rgba(255,211,122,.45); }
.item-result span { color: var(--muted); font-size: 13px; }
.item-selected {
    color: var(--gold);
    font-weight: 800;
}
.item-controls {
    display: grid;
    grid-template-columns: minmax(100px, 160px) minmax(120px, auto) auto;
    gap: 10px;
    align-items: end;
}
.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.check-row input {
    width: auto;
}
.segmented {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}
.segmented button {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255,255,255,.08);
    color: var(--text);
    font-weight: 900;
}
.segmented .active { background: linear-gradient(135deg, #f7f7f7, #9aa0aa); color: #0b0f15; }
.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    gap: 18px;
}
.payment-note {
    padding: 16px;
    border-radius: 8px;
    background: rgba(255,255,255,.055);
    border: 1px solid var(--line);
    color: var(--muted);
    line-height: 1.55;
    margin: 16px 0;
}
.payment-note p { margin: 6px 0; }
.payment-note strong { color: #ff5a66; }
.qr-card {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 350px;
    align-content: center;
    gap: 10px;
}
.qr-mark {
    display: grid;
    place-items: center;
    width: 130px;
    height: 130px;
    border-radius: 18px;
    background: linear-gradient(135deg, #66e3ff, #3156d4);
    font-size: 44px;
    font-weight: 900;
    transform: rotate(-3deg);
    box-shadow: 0 18px 42px rgba(49,86,212,.32);
}
.vietqr-image {
    width: min(230px, 72vw);
    max-height: 34vh;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 18px 42px rgba(0,0,0,.36);
}
.bank-info {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 14px;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0,0,0,.58);
    backdrop-filter: blur(6px);
    width: 100vw;
    height: 100vh;
    overflow: auto;
}
.payment-modal {
    width: min(430px, 100%);
    max-height: calc(100vh - 24px);
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.16);
    background:
        radial-gradient(circle at 15% -8%, rgba(255,211,122,.2), transparent 31%),
        radial-gradient(circle at 88% 0, rgba(40,215,199,.13), transparent 28%),
        linear-gradient(160deg, rgba(36,42,52,.98), rgba(13,16,23,.99));
    box-shadow: 0 34px 110px rgba(0,0,0,.66), inset 0 1px 0 rgba(255,255,255,.09);
    margin: auto;
}
.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 8px;
}
.modal-head h2 {
    margin: 0;
    font-size: 24px;
}
.modal-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    text-decoration: none;
    background: rgba(255,255,255,.08);
    font-size: 28px;
    line-height: 1;
}
.transaction-body {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 0 18px 14px;
}
.valid-label {
    color: #58f09b;
    font-weight: 900;
    margin: 0;
    font-size: 14px;
}
.countdown {
    font-size: clamp(38px, 10vw, 52px);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -1px;
}
.countdown.expired { color: #ff6b6b; }
.pay-warning {
    margin: 2px 0 6px;
    color: #ff6b6b;
    font-weight: 900;
    text-align: center;
    line-height: 1.35;
}
.transaction-card {
    width: 100%;
    display: grid;
    gap: 9px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,.055);
    border: 1px solid var(--line);
}
.transaction-card div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.transaction-card span,
.transaction-lines span {
    color: var(--muted);
    font-weight: 800;
}
.transaction-card strong {
    color: #fff;
}
.transaction-lines {
    width: 100%;
    display: grid;
    gap: 10px;
}
.transaction-lines div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
}
.transaction-lines span {
    grid-column: 1 / -1;
}
.transaction-lines strong {
    overflow-wrap: anywhere;
}
.copy-btn {
    border: 0;
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.copy-btn:hover { background: rgba(255,255,255,.15); }
/* Legacy summary styles retained for older rendered sessions. */
.payment-summary p {
    margin: 0;
    color: var(--muted);
}
.payment-summary strong {
    font-size: 24px;
    color: var(--gold);
}
.payment-summary code {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0,0,0,.34);
    color: #fff;
    font-size: 20px;
    overflow-wrap: anywhere;
}
.modal-actions {
    padding: 0 18px 18px;
    display: flex;
    justify-content: flex-end;
}
.code-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    margin-bottom: 16px;
}
.gift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gift-card {
    min-height: 210px;
    padding: 24px;
    display: grid;
    align-content: space-between;
    background:
        linear-gradient(140deg, rgba(255,211,122,.16), transparent 42%),
        var(--panel);
}
.gift-card h2 { color: var(--gold); }
.shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop-card {
    padding: 22px;
    display: grid;
    gap: 12px;
    background:
        linear-gradient(160deg, rgba(90,168,255,.16), transparent 44%),
        var(--panel);
}
.shop-card strong { font-size: 24px; }
.shop-card ul { padding-left: 18px; color: var(--muted); }
.alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid;
}
.alert.error { color: #fecaca; background: rgba(127, 29, 29, .55); border-color: rgba(248, 113, 113, .35); }
.alert.ok { color: #bbf7d0; background: rgba(20, 83, 45, .55); border-color: rgba(74, 222, 128, .35); }
.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
th, td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
th {
    color: #fef3c7;
    background: rgba(255,255,255,.05);
}
tr:last-child td { border-bottom: 0; }
.support-card {
    padding: 22px;
    display: grid;
    gap: 10px;
    background:
        radial-gradient(circle at 18% 0, rgba(255,211,122,.22), transparent 34%),
        linear-gradient(145deg, rgba(31, 38, 53, .96), rgba(11, 14, 20, .94));
}
.support-card h2 { margin: 0; font-size: 28px; }
.support-card p { margin: 0 0 6px; color: var(--muted); line-height: 1.55; }
.support-badge {
    width: max-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,211,122,.14);
    color: var(--gold);
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.support-card a {
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    transition: transform .18s ease, background .18s ease;
    font-weight: 900;
}
.support-card .support-main {
    background: linear-gradient(135deg, #30d5c8, #3d8bff);
    color: #031015;
}
.support-card a:hover {
    transform: translateX(3px);
    background: rgba(255,255,255,.12);
}

@keyframes crestGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.25); }
}

@media (max-width: 1280px) {
    .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .right-panel { display: none; }
}
@media (max-width: 900px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    nav { justify-content: flex-start; }
    .app-shell { grid-template-columns: 1fr; }
    .side-menu { position: static; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .side-title { grid-column: 1 / -1; }
    .hero, .grid.two, .cards, .module-grid, .payment-layout, .gift-grid, .shop-grid { grid-template-columns: 1fr; }
    .payment-modal { max-height: calc(100vh - 12px); overflow: auto; }
    .modal-backdrop { padding: 9px; }
    .modal-head, .transaction-body, .modal-actions { padding-left: 14px; padding-right: 14px; }
    .vietqr-image { width: min(230px, 74vw); max-height: 34vh; justify-self: center; }
    .code-box { grid-template-columns: 1fr; }
    .hero { min-height: 0; }
}

.shop-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.shop-wallet .button {
    width: auto;
}

.shop-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0,0,0,.62);
    backdrop-filter: blur(6px);
}
.shop-confirm-backdrop[hidden] { display: none; }
.shop-confirm-modal {
    width: min(420px, 100%);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(160deg, rgba(31,38,53,.98), rgba(11,14,20,.98));
    box-shadow: 0 30px 90px rgba(0,0,0,.58);
}
.shop-confirm-modal h2 {
    margin: 0 0 10px;
}
.shop-confirm-modal p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}
.shop-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.shop-wallet {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) minmax(200px, 260px) auto;
    align-items: end;
    gap: 14px;
}
.shop-wallet label {
    margin: 0;
}
.shop-wallet select {
    margin-top: 7px;
}
.shop-wallet-balance {
    display: grid;
    gap: 5px;
}
.shop-wallet-balance span {
    color: var(--muted);
    font-size: 13px;
}
.shop-wallet-balance strong {
    font-size: 20px;
}
@media (max-width: 900px) {
    .shop-wallet {
        grid-template-columns: 1fr;
    }
    .shop-wallet .button {
        width: 100%;
    }
}

/* Compact shop purchase controls */
.shop-wallet {
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(340px, .92fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background:
        linear-gradient(135deg, rgba(255,211,122,.13), transparent 36%),
        rgba(17, 21, 29, .92);
}
.shop-wallet-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.shop-wallet-balance {
    min-width: 172px;
    padding: 10px 12px;
    border: 1px solid rgba(255,211,122,.28);
    border-radius: 8px;
    background: rgba(255,211,122,.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.shop-wallet-balance span {
    display: block;
    margin-bottom: 3px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.shop-wallet-balance strong {
    display: block;
    font-size: 22px;
    line-height: 1.05;
    color: #fff;
}
.shop-topup {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 11px 14px;
}
.shop-pickers {
    display: grid;
    grid-template-columns: minmax(100px, 130px) minmax(160px, 1fr);
    gap: 10px;
    align-items: end;
}
.shop-pickers label {
    margin: 0;
    gap: 5px;
    font-size: 12px;
}
.shop-pickers select {
    min-height: 40px;
    padding: 9px 10px;
    margin: 0;
}
@media (max-width: 900px) {
    .shop-wallet {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    .shop-wallet-main {
        display: grid;
        grid-template-columns: 1fr auto;
    }
    .shop-wallet-balance {
        min-width: 0;
        padding: 9px 10px;
    }
    .shop-wallet-balance strong {
        font-size: 20px;
    }
    .shop-topup {
        width: auto;
        min-height: 40px;
        padding: 10px 12px;
        white-space: nowrap;
    }
    .shop-pickers {
        grid-template-columns: .7fr 1.3fr;
        gap: 8px;
    }
    .shop-pickers label {
        font-size: 11px;
    }
.shop-pickers select {
        min-height: 38px;
        font-size: 14px;
    }
}
@media (max-width: 430px) {
    .shop-wallet-main {
        grid-template-columns: 1fr;
    }
    .shop-topup {
        width: 100%;
    }
}

/* Final polish for the live Vietnamese portal. */
.shop-grid {
    grid-template-columns: repeat(4, minmax(230px, 1fr));
}
.shop-card {
    min-height: 280px;
    align-content: space-between;
    background:
        radial-gradient(circle at 92% 0, rgba(255,211,122,.18), transparent 34%),
        linear-gradient(160deg, rgba(90,168,255,.16), transparent 44%),
        var(--panel);
}
.shop-card h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
}
.shop-card p {
    margin: 0;
    color: #c9d2df;
    line-height: 1.45;
}
.shop-wallet {
    background:
        radial-gradient(circle at 0 0, rgba(40,215,199,.16), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.028)),
        var(--panel);
}
.shop-wallet-balance {
    border-color: rgba(255,211,122,.34);
}
.shop-wallet-balance strong {
    color: var(--gold);
}
.shop-confirm-backdrop {
    background: rgba(0, 0, 0, .64);
    backdrop-filter: blur(8px);
}
.shop-confirm-modal {
    border-radius: 16px;
    border-color: rgba(255,255,255,.16);
    background:
        radial-gradient(circle at 15% 0, rgba(255,211,122,.2), transparent 34%),
        linear-gradient(160deg, rgba(30,36,49,.98), rgba(11,14,20,.98));
}
.shop-confirm-modal h2 {
    font-size: 26px;
}
@media (max-width: 900px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* Package card icon layout */
.shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.shop-card {
    min-height: 234px;
    padding: 28px 24px 24px;
    justify-items: center;
    align-content: start;
    gap: 12px;
    text-align: center;
    border-radius: 12px;
    background:
        linear-gradient(130deg, rgba(255,255,255,.035), transparent 42%),
        rgba(18, 22, 24, .9);
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 16px 42px rgba(0,0,0,.28);
}
.shop-card::before {
    background:
        linear-gradient(125deg, rgba(255,255,255,.026), transparent 36%),
        radial-gradient(circle at 50% 28%, rgba(255,255,255,.025), transparent 30%);
}
.shop-card h2 {
    width: 100%;
    min-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 21px;
    font-weight: 900;
    color: #f3f4f6;
}
.package-icon-wrap {
    position: relative;
    width: 64px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-top: 4px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    appearance: none;
    -webkit-appearance: none;
}
.package-icon-wrap:hover .package-icon {
    transform: translateY(-2px) scale(1.04);
}
.package-icon {
    width: 60px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.34));
    transition: transform .16s ease, filter .16s ease;
    background: transparent;
    border: 0;
}
.package-qty {
    position: absolute;
    right: 2px;
    bottom: 0;
    min-width: 22px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(35, 37, 39, .95);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}
.package-count {
    color: #aeb3ba;
    font-size: 14px;
    font-weight: 900;
}
.package-desc {
    max-width: 100%;
    min-height: 0;
    max-height: 38px;
    overflow: hidden;
    color: #b9bec6 !important;
    font-size: 13px;
}
.package-price {
    min-width: 132px;
    height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,.055);
    color: #f4f4f5;
    font-weight: 900;
}
.package-price strong {
    font-size: 16px;
}
.package-price span {
    width: 22px;
    height: 14px;
    overflow: hidden;
    text-indent: -999px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #fff, #e8e8e8 42%, #9ca3af 43%, #f8fafc 62%, #cbd5e1 63%);
    box-shadow:
        5px 2px 0 -1px #e5e7eb,
        10px 3px 0 -2px #d1d5db;
    transform: rotate(-14deg);
}
.shop-card > .button.primary {
    width: min(170px, 100%);
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
}
.package-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 20px;
}
.package-groups button {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    min-height: 46px;
    padding: 11px 22px;
    background: rgba(255,255,255,.075);
    color: #d8dde6;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.package-groups button:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.18);
}
.package-groups button.active {
    background: linear-gradient(145deg, #ffffff, #cfd4da);
    color: #15181d;
    border-color: rgba(255,255,255,.35);
}
.package-detail-modal {
    max-width: 520px;
}
.package-detail-list {
    display: grid;
    gap: 8px;
    max-height: min(56vh, 460px);
    overflow: auto;
    margin-top: 14px;
}
.package-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
}
.package-detail-row span {
    min-width: 0;
    color: #f3f4f6;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.package-detail-row strong {
    color: var(--gold);
    font-size: 15px;
}
.shop-confirm-actions.single {
    grid-template-columns: 1fr;
}
@media (max-width: 900px) {
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* Class change service */
.class-service-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}
.class-service-title,
.class-service-stats,
.class-pick-panel,
.class-history,
.class-closed {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
        rgba(12, 16, 24, .9);
    box-shadow: 0 24px 70px rgba(0,0,0,.34);
    position: relative;
    overflow: hidden;
}
.class-service-title {
    min-height: 170px;
    padding: 26px;
    display: flex;
    gap: 18px;
    align-items: center;
}
.class-service-title .page-icon {
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 950;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, rgba(40,215,199,.85), rgba(90,168,255,.75), rgba(167,139,250,.78));
    box-shadow: 0 20px 46px rgba(40,215,199,.24), inset 0 1px 0 rgba(255,255,255,.34);
}
.class-service-title h1 {
    margin: 4px 0 8px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
}
.class-service-title p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}
.class-service-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.class-service-stats div {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255,255,255,.09);
}
.class-service-stats span,
.class-confirm-box span {
    color: var(--muted);
    font-weight: 800;
}
.class-service-stats strong {
    display: block;
    margin-top: 10px;
    font-size: 30px;
    color: var(--gold);
}
.class-service-stats small {
    color: #d9dfeb;
    font-weight: 800;
}
.class-change-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
    gap: 18px;
    margin-bottom: 18px;
}
.class-pick-panel {
    padding: 22px;
}
.class-pick-panel .section-title {
    margin-bottom: 16px;
}
.class-card-list,
.class-grid-options {
    display: grid;
    gap: 12px;
}
.class-grid-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.class-card {
    display: block;
    cursor: pointer;
    position: relative;
}
.class-card input {
    position: absolute;
    inset: 16px 16px auto auto;
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    z-index: 2;
}
.class-card-body {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px 50px 18px 18px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.03));
    transition: border-color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.class-card input:checked + .class-card-body {
    border-color: rgba(255,211,122,.72);
    background: linear-gradient(135deg, rgba(255,211,122,.18), rgba(90,168,255,.08));
    box-shadow: 0 18px 42px rgba(255,211,122,.12);
}
.class-card:hover .class-card-body {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.22);
}
.class-card-body strong {
    font-size: 18px;
}
.class-card-body span,
.class-card-body small {
    color: var(--muted);
    font-weight: 800;
}
.class-badge {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 8px;
    color: #1d1304 !important;
    background: linear-gradient(135deg, #ffe4a1, #f3b33f);
    font-size: 12px;
    font-weight: 950 !important;
}
.target-class-card .class-card-body {
    min-height: 126px;
    justify-content: center;
}
.target-class-card strong {
    font-size: 28px;
}
.class-dk .class-card-body { background: linear-gradient(135deg, rgba(240,91,91,.17), rgba(255,255,255,.035)); }
.class-dw .class-card-body { background: linear-gradient(135deg, rgba(90,168,255,.17), rgba(255,255,255,.035)); }
.class-ef .class-card-body { background: linear-gradient(135deg, rgba(40,215,199,.15), rgba(255,255,255,.035)); }
.class-confirm-box {
    margin-top: 16px;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(0,0,0,.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.class-confirm-box strong {
    display: block;
    margin-top: 6px;
    color: var(--gold);
    font-size: 22px;
}
.class-history {
    margin-top: 0;
}
.class-closed {
    padding: 28px;
}
@media (max-width: 1180px) {
    .class-service-hero,
    .class-change-form {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 720px) {
    .class-grid-options,
    .class-service-stats {
        grid-template-columns: 1fr;
    }
    .class-confirm-box {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Class service hard overrides - keep after generic form/label rules */
.content .class-service-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 18px !important;
    margin-bottom: 18px !important;
}
.content .class-service-title {
    padding: 26px !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    min-height: 168px !important;
}
.content .class-service-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
}
.content .class-change-form {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr) !important;
    gap: 18px !important;
    align-items: start !important;
    margin: 0 0 18px !important;
}
.content .class-pick-panel {
    padding: 22px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, rgba(17,21,29,.94), rgba(23,28,39,.86)) !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.34) !important;
}
.content .class-card-list,
.content .class-grid-options {
    display: grid !important;
    gap: 12px !important;
}
.content .class-grid-options {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.content label.class-card {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    color: var(--text) !important;
    cursor: pointer !important;
}
.content label.class-card > input[type="radio"] {
    position: absolute !important;
    right: 16px !important;
    top: 16px !important;
    width: 20px !important;
    height: 20px !important;
    z-index: 3 !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: var(--gold) !important;
}
.content label.class-card > .class-card-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    min-height: 96px !important;
    padding: 18px 54px 18px 18px !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, rgba(255,255,255,.085), rgba(255,255,255,.032)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.content label.class-card > input[type="radio"]:checked + .class-card-body {
    border-color: rgba(255,211,122,.8) !important;
    background: linear-gradient(135deg, rgba(255,211,122,.18), rgba(90,168,255,.09)) !important;
    box-shadow: 0 18px 42px rgba(255,211,122,.13), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.content .target-class-card .class-card-body {
    min-height: 132px !important;
    justify-content: center !important;
}
.content .target-class-card .class-card-body strong {
    font-size: 30px !important;
}
.content .class-confirm-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-top: 16px !important;
    padding: 18px !important;
    border-radius: 8px !important;
    background: rgba(0,0,0,.25) !important;
    border: 1px solid rgba(255,255,255,.11) !important;
}
@media (max-width: 1180px) {
    .content .class-service-hero,
    .content .class-change-form { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
    .content .class-grid-options,
    .content .class-service-stats { grid-template-columns: 1fr !important; }
    .content .class-confirm-box { flex-direction: column !important; align-items: stretch !important; }
}

/* DCLoren compact portal skin, placed last to safely override legacy layers. */
:root {
    --bg: #070809;
    --panel: rgba(18, 18, 18, .94);
    --panel-strong: rgba(25, 24, 22, .98);
    --panel-soft: rgba(255, 255, 255, .055);
    --line: rgba(255, 255, 255, .1);
    --text: #f4f1e9;
    --muted: #b8afa2;
    --gold: #e6b85b;
    --red: #c64b3e;
    --teal: #46c7a8;
    --blue: #5d8fd8;
    --violet: #9a78d3;
}

html { color-scheme: dark; }
body {
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(7, 8, 9, .82), rgba(7, 8, 9, .96)),
        url('/assets/mu-banner.png') center top / cover fixed,
        #070809;
}
body::before,
body::after { display: none; }

.topbar {
    min-height: 58px;
    padding: 8px max(14px, calc((100vw - 1220px) / 2));
    background: rgba(12, 12, 12, .96);
    border-bottom: 1px solid rgba(230, 184, 91, .28);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
}
.brand {
    gap: 9px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
}
.crest {
    width: 38px;
    height: 32px;
    border-radius: 6px;
    color: #1b1202;
    background: linear-gradient(135deg, #fff4bf, #e6b85b 54%, #7e2720);
    animation: none;
}
nav {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    min-width: 0;
    max-width: 100%;
    scrollbar-width: thin;
}
.nav-link,
.chip {
    padding: 8px 11px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active,
.chip:hover {
    background: rgba(230, 184, 91, .14);
    border-color: rgba(230, 184, 91, .35);
    color: #fff4d4;
    transform: none;
}

.app-shell {
    width: min(1220px, calc(100% - 24px));
    padding: 14px 0 34px;
    grid-template-columns: 190px minmax(0, 1fr) 250px;
    gap: 12px;
}
.side-menu,
.right-panel { top: 72px; }
.side-menu {
    min-height: 0;
    padding: 12px;
    border-radius: 6px;
    background: rgba(14, 14, 14, .93);
    box-shadow: 0 12px 34px rgba(0,0,0,.28);
}
.side-title {
    margin: 10px 0 5px;
    color: var(--gold);
    font-size: 11px;
    text-transform: uppercase;
}
.side-menu a {
    padding: 9px 10px;
    margin: 2px 0;
    border-radius: 6px;
    font-size: 13px;
}
.side-menu a:hover,
.side-menu a.active {
    transform: none;
    color: #fff;
    background: rgba(230, 184, 91, .13);
}

.hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr);
    gap: 12px;
    margin-bottom: 12px;
}
.hero-copy,
.status-panel,
.panel,
.metric,
.module-card,
.server-card,
.support-card,
.gift-card,
.shop-card,
.class-service-title,
.class-service-stats,
.class-pick-panel,
.class-history,
.class-closed,
.content .class-pick-panel {
    border-radius: 6px !important;
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
    box-shadow: 0 12px 34px rgba(0,0,0,.28) !important;
}
.hero-copy::before,
.panel::before,
.module-card::before,
.gift-card::before,
.shop-card::before { opacity: .28; }
.hero-copy {
    padding: 24px;
    justify-content: center;
}
.hero-copy::after { height: 2px; background: linear-gradient(90deg, var(--gold), var(--red)); }
.hero-copy h1,
.account-head h1,
.page-head h1,
.class-service-title h1 {
    font-size: clamp(28px, 3.5vw, 44px) !important;
    line-height: 1.06;
    margin-bottom: 8px;
}
.hero-copy p,
.page-head p,
.support-card p,
.class-service-title p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.5;
}
.eyebrow { letter-spacing: 0; font-size: 11px; }
.actions { gap: 8px; margin-top: 14px; }
.button {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}
.button.primary {
    background: linear-gradient(135deg, #d7a846, #a83d34);
    box-shadow: 0 9px 22px rgba(168, 61, 52, .22);
}
.button:hover { transform: none; }

.status-panel div,
.metric {
    padding: 14px;
}
.status-panel strong,
.metric strong { font-size: 22px; }
.module-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.module-card {
    min-height: 88px;
    padding: 14px;
}
.module-card strong { font-size: 14px; line-height: 1.35; }
.grid,
.module-grid,
.gift-grid,
.shop-grid,
.cards { gap: 10px; }
.panel { padding: 16px; margin-bottom: 12px; }
.panel h1,
.panel h2 { margin-bottom: 10px; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 0; }
.account-head,
.section-title,
.page-head { gap: 12px; margin-bottom: 12px; }
.page-icon {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    font-size: 16px;
    background: linear-gradient(135deg, rgba(230,184,91,.9), rgba(166,59,50,.82));
}

.auth,
.download { min-height: 430px; }
.form { width: min(430px, 100%); }
label { gap: 5px; margin: 10px 0; font-size: 13px; }
input,
select,
textarea {
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 14px;
    background: rgba(7, 8, 9, .84);
}
.segmented { gap: 6px; margin: 10px 0; }
.segmented button { padding: 9px; border-radius: 6px; }
.payment-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
.payment-note { padding: 12px; margin: 10px 0; font-size: 13px; }
.qr-card { min-height: 280px; }
.qr-mark { width: 92px; height: 92px; border-radius: 12px; font-size: 32px; }

.shop-wallet {
    grid-template-columns: minmax(230px, .76fr) minmax(300px, .94fr) !important;
    padding: 10px 12px !important;
    gap: 10px !important;
}
.shop-wallet-balance {
    min-width: 150px;
    padding: 8px 10px;
    border-radius: 6px;
}
.shop-wallet-balance strong { font-size: 19px; }
.shop-pickers { gap: 8px; }
.shop-pickers select { min-height: 36px; }
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)) !important; gap: 10px !important; }
.shop-card {
    min-height: 210px;
    padding: 18px 14px 16px;
    border-radius: 6px !important;
    gap: 9px;
}
.shop-card h2 {
    min-height: 24px;
    font-size: 17px;
}
.package-icon-wrap { width: 58px; height: 50px; }
.package-icon { width: 54px; height: 48px; }
.package-price { height: 31px; min-width: 112px; }
.package-groups { gap: 8px; margin: 10px 0 12px; }
.package-groups button { min-height: 36px; padding: 8px 14px; font-size: 13px; }

.table-wrap { border-radius: 6px; }
th,
td { padding: 9px 10px; font-size: 13px; }
.support-card { padding: 14px; gap: 8px; }
.support-card h2 { font-size: 20px; }
.support-card a { padding: 9px 10px; border-radius: 6px; }

.content .class-service-hero,
.class-service-hero { grid-template-columns: minmax(0, 1fr) 310px !important; gap: 12px !important; }
.content .class-service-title,
.class-service-title { min-height: 120px !important; padding: 18px !important; }
.content .class-change-form,
.class-change-form { grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr) !important; gap: 12px !important; }
.content .class-pick-panel,
.class-pick-panel { padding: 16px !important; }
.content label.class-card > .class-card-body,
.class-card-body { min-height: 82px !important; padding: 14px 46px 14px 14px !important; border-radius: 6px !important; }
.content .target-class-card .class-card-body { min-height: 98px !important; }
.content .target-class-card .class-card-body strong { font-size: 23px !important; }

@media (max-width: 1280px) {
    .app-shell { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 900px) {
    html,
    body { max-width: 100%; overflow-x: hidden; }
    .topbar {
        position: sticky;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 8px 12px;
    }
    .brand { justify-content: center; }
    nav {
        justify-content: flex-start;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    nav::-webkit-scrollbar,
    .side-menu::-webkit-scrollbar,
    .package-groups::-webkit-scrollbar { display: none; }
    .app-shell { width: min(100% - 16px, 720px); grid-template-columns: 1fr; padding-top: 10px; gap: 10px; }
    .content,
    .hero-copy,
    .panel,
    .shop-card,
    .module-card,
    .gift-card { max-width: 100%; }
    .hero-copy p,
    .panel p,
    .module-card strong,
    .module-card span { overflow-wrap: anywhere; }
    .side-menu {
        position: static;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding: 8px;
        scrollbar-width: none;
    }
    .side-title { display: none; }
    .side-menu a { flex: 0 0 auto; margin: 0; }
    .hero,
    .grid.two,
    .cards,
    .module-grid,
    .payment-layout,
    .gift-grid,
    .shop-grid,
    .content .class-service-hero,
    .class-service-hero,
    .content .class-change-form,
    .class-change-form { grid-template-columns: 1fr !important; }
    .hero-copy { padding: 18px; }
    .status-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .account-head,
    .section-title,
    .page-head { align-items: flex-start; flex-direction: column; }
    .shop-wallet { grid-template-columns: 1fr !important; }
    .shop-wallet-main { grid-template-columns: 1fr auto; }
    .shop-pickers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .app-shell { width: calc(100% - 10px); }
    .hero-copy h1,
    .account-head h1,
    .page-head h1,
    .class-service-title h1 { font-size: 28px !important; }
    .module-grid,
    .cards,
    .status-panel { grid-template-columns: 1fr !important; }
    .shop-grid { grid-template-columns: 1fr !important; }
    .shop-wallet-main,
    .shop-pickers,
    .shop-confirm-actions { grid-template-columns: 1fr; }
    .button,
    .actions .button { width: 100%; }
    .package-groups { flex-wrap: nowrap; overflow-x: auto; }
    .package-groups button { flex: 0 0 auto; }
}

/* Mobile overflow guard */
@media (max-width: 900px) {
    .app-shell,
    .content,
    .hero,
    .hero-copy,
    .status-panel,
    .panel,
    .module-grid,
    .module-card,
    .shop-grid,
    .shop-card,
    .gift-grid,
    .gift-card,
    .payment-layout,
    .class-service-hero,
    .class-change-form {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .hero-copy p,
    .panel p,
    .page-head p,
    .support-card p {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
}
@media (max-width: 520px) {
    .hero-copy { padding: 16px 18px !important; }
    .hero-copy p,
    .panel p,
    .page-head p {
        max-width: calc(100vw - 78px) !important;
    }
}
@media (max-width: 520px) {
    .hero-copy p {
        max-width: min(100%, 300px) !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
    }
}

/* Dashboard skin v19: closer to the clean reference layout. */
:root {
    --bg: #090d14;
    --panel: #121720;
    --panel-strong: #161b26;
    --panel-soft: #1b2230;
    --line: #283040;
    --text: #eef2f7;
    --muted: #95a0b3;
    --gold: #d6a928;
    --green: #00b987;
    --red: #ef4444;
    --blue: #3b82f6;
    --violet: #b86bff;
}

html,
body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    color: var(--text) !important;
    background: #090d14 !important;
    letter-spacing: 0 !important;
}
body::before,
body::after {
    display: none !important;
}
body {
    background:
        linear-gradient(90deg, rgba(9,13,20,.98), rgba(9,13,20,.92) 38%, rgba(9,13,20,.98)),
        radial-gradient(circle at 48% 18%, rgba(184,107,255,.13), transparent 36%),
        #090d14 !important;
}

body,
button,
input,
select,
textarea {
    font-weight: 400 !important;
}
strong,
h1,
h2,
h3,
.brand,
.button,
.nav-link,
.side-title,
.side-menu a,
.module-card span,
.module-card strong {
    font-weight: 700 !important;
    text-shadow: none !important;
}

.topbar {
    min-height: 72px !important;
    padding: 14px max(20px, calc((100vw - 1540px) / 2)) !important;
    background: #121721 !important;
    border-bottom: 1px solid #252d3b !important;
    box-shadow: none !important;
}
.brand {
    font-size: 15px !important;
    color: #fff !important;
}
.crest {
    width: 46px !important;
    height: 46px !important;
    border-radius: 8px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ef2626, #b01222) !important;
    box-shadow: 0 8px 22px rgba(239,38,38,.22) !important;
}
nav {
    gap: 10px !important;
}
.nav-link,
.chip {
    min-height: 38px !important;
    padding: 10px 16px !important;
    border-radius: 7px !important;
    color: #dbe4f2 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    font-size: 13px !important;
}
.nav-link:hover,
.nav-link.active,
.chip:hover {
    color: #fff !important;
    background: #1b2230 !important;
    border-color: #2b3546 !important;
    transform: none !important;
}
.nav-link:nth-child(1) {
    background: linear-gradient(135deg, #e05cff, #8b5cf6) !important;
    color: #fff !important;
    border-color: transparent !important;
}
.nav-link:nth-child(2) {
    background: rgba(0,185,135,.13) !important;
    color: #15d69d !important;
    border-color: rgba(0,185,135,.22) !important;
}

.app-shell {
    width: min(1540px, 100%) !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) 320px !important;
    gap: 0 !important;
    min-height: calc(100vh - 72px) !important;
}
.side-menu,
.right-panel {
    position: sticky !important;
    top: 72px !important;
    height: calc(100vh - 72px) !important;
    overflow: auto !important;
}
.side-menu {
    padding: 24px 16px !important;
    border: 0 !important;
    border-right: 1px solid #252d3b !important;
    border-radius: 0 !important;
    background: #141923 !important;
    box-shadow: none !important;
}
.side-title {
    margin: 0 0 10px !important;
    padding: 0 12px !important;
    color: #66738a !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}
.side-title:not(:first-child) {
    margin-top: 28px !important;
}
.side-menu a {
    min-height: 40px !important;
    padding: 11px 12px !important;
    margin: 4px 0 !important;
    border-radius: 7px !important;
    color: #b7c1d3 !important;
    background: transparent !important;
    font-size: 14px !important;
}
.side-menu a:hover,
.side-menu a.active {
    background: #1a202c !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: inset 0 0 0 1px #2b3546 !important;
}

.content {
    padding: 26px 32px 52px !important;
    background:
        radial-gradient(circle at 60% 18%, rgba(184,107,255,.16), transparent 32%),
        #0b0f16 !important;
}
.right-panel {
    padding: 12px !important;
    border-left: 1px solid #252d3b !important;
    background: #111620 !important;
}

.hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
    gap: 16px !important;
    margin: 0 0 18px !important;
}
.hero-copy,
.status-panel,
.panel,
.metric,
.module-card,
.server-card,
.support-card,
.gift-card,
.shop-card,
.class-service-title,
.class-service-stats,
.class-pick-panel,
.class-history,
.class-closed,
.content .class-pick-panel {
    border-radius: 12px !important;
    background: #141923 !important;
    border: 1px solid #252d3b !important;
    box-shadow: none !important;
    overflow: hidden !important;
}
.hero-copy::before,
.panel::before,
.module-card::before,
.gift-card::before,
.shop-card::before,
.hero-copy::after {
    display: none !important;
}
.hero-copy {
    min-height: 128px !important;
    padding: 28px 32px !important;
    background:
        linear-gradient(90deg, rgba(20,25,35,.96), rgba(43,35,55,.94)),
        #141923 !important;
}
.hero-copy .eyebrow {
    margin: 0 0 6px !important;
    color: #97a3b8 !important;
    font-size: 13px !important;
    text-transform: none !important;
}
.hero-copy h1 {
    max-width: none !important;
    margin: 0 0 8px !important;
    color: #fff !important;
    font-size: 32px !important;
    line-height: 1.16 !important;
}
.hero-copy p {
    max-width: 760px !important;
    margin: 0 !important;
    color: #b7c1d3 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}
.actions {
    margin-top: 18px !important;
    gap: 10px !important;
}
.button {
    min-height: 38px !important;
    padding: 9px 14px !important;
    border-radius: 7px !important;
    background: #1b2230 !important;
    border-color: #2b3546 !important;
    color: #eef2f7 !important;
    font-size: 13px !important;
}
.button.primary {
    background: linear-gradient(135deg, #e05cff, #8b5cf6) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(139,92,246,.22) !important;
}
.button:hover {
    filter: brightness(1.06) !important;
    transform: none !important;
}

.status-panel {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    min-height: 0 !important;
    margin-bottom: 18px !important;
}
.status-panel div,
.metric {
    min-height: 86px !important;
    padding: 18px 20px !important;
    background: #141923 !important;
    border-right: 1px solid #252d3b !important;
    border-bottom: 0 !important;
}
.status-panel strong,
.metric strong {
    color: #fff !important;
    font-size: 26px !important;
    line-height: 1 !important;
}
.status-panel span,
.metric span,
.muted {
    color: #95a0b3 !important;
}
.module-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
}
.module-card {
    min-height: 128px !important;
    padding: 20px !important;
    align-content: space-between !important;
    background: #141923 !important;
}
.module-card:hover,
.gift-card:hover,
.shop-card:hover {
    background: #171d29 !important;
    border-color: #344055 !important;
    transform: none !important;
}
.module-card span,
.pack-tag {
    color: #d6a928 !important;
}
.module-card strong {
    color: #f3f6fb !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}
.module-card:nth-child(n) {
    border-top: 1px solid #252d3b !important;
}

.support-card {
    padding: 18px !important;
    background: #171d29 !important;
}
.support-badge {
    background: #25202a !important;
    color: #f0bf37 !important;
    letter-spacing: 0 !important;
}
.support-card h2 {
    font-size: 22px !important;
    color: #fff !important;
}
.support-card p {
    color: #b7c1d3 !important;
    font-size: 14px !important;
}
.support-card a {
    border-radius: 7px !important;
    background: #1b2230 !important;
}
.support-card .support-main {
    background: linear-gradient(135deg, #22c55e, #0ea5e9) !important;
    color: #061018 !important;
}

.page-head,
.account-head,
.section-title {
    margin-bottom: 18px !important;
}
.page-head h1,
.account-head h1,
.panel h1,
.panel h2 {
    color: #fff !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
}
.panel {
    padding: 22px !important;
    margin-bottom: 16px !important;
}
input,
select,
textarea {
    background: #0f141d !important;
    border-color: #2b3546 !important;
    color: #eef2f7 !important;
}
label {
    color: #b7c1d3 !important;
}

@media (max-width: 1280px) {
    .app-shell {
        grid-template-columns: 210px minmax(0, 1fr) !important;
    }
    .right-panel {
        display: none !important;
    }
    .module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 900px) {
    .topbar {
        min-height: 0 !important;
        padding: 10px 12px !important;
    }
    .crest {
        width: 40px !important;
        height: 40px !important;
    }
    nav {
        gap: 8px !important;
    }
    .nav-link,
    .chip {
        min-height: 36px !important;
        padding: 8px 12px !important;
    }
    .app-shell {
        width: 100% !important;
        grid-template-columns: 1fr !important;
    }
    .side-menu {
        height: auto !important;
        position: static !important;
        border-right: 0 !important;
        border-bottom: 1px solid #252d3b !important;
        padding: 10px 12px !important;
        background: #121721 !important;
    }
    .content {
        padding: 16px 12px 36px !important;
    }
    .hero-copy {
        padding: 22px 18px !important;
    }
    .hero-copy h1 {
        font-size: 28px !important;
    }
    .hero-copy p {
        max-width: 100% !important;
    }
    .status-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 520px) {
    .content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .hero-copy h1 {
        font-size: 25px !important;
    }
    .status-panel,
    .module-grid {
        grid-template-columns: 1fr !important;
    }
    .module-card {
        min-height: 96px !important;
    }
}

/* Overview tune v18: calmer desktop portal layout */
@media (min-width: 901px) {
    body {
        background:
            linear-gradient(180deg, rgba(4, 5, 7, .88), rgba(4, 5, 7, .94) 42%, rgba(4, 5, 7, .985)),
            url('/assets/mu-banner.png') center 28% / cover fixed,
            #050607 !important;
    }
    body::before {
        content: "" !important;
        display: block !important;
        position: fixed !important;
        inset: 58px 0 0 !important;
        pointer-events: none !important;
        background: radial-gradient(circle at 50% 18%, rgba(230,184,91,.08), transparent 34%), linear-gradient(90deg, rgba(0,0,0,.32), transparent 22%, transparent 78%, rgba(0,0,0,.38)) !important;
        z-index: 0 !important;
        mask-image: none !important;
    }
    .topbar {
        padding-left: max(24px, calc((100vw - 1500px) / 2)) !important;
        padding-right: max(24px, calc((100vw - 1500px) / 2)) !important;
    }
    .app-shell {
        width: min(1500px, calc(100% - 48px)) !important;
        grid-template-columns: 190px minmax(0, 1fr) 260px !important;
        gap: 12px !important;
        padding-top: 14px !important;
    }
    .side-menu {
        padding: 14px !important;
        background: rgba(10, 10, 10, .86) !important;
    }
    .right-panel .support-card {
        background: rgba(13, 13, 13, .88) !important;
    }
    .hero {
        grid-template-columns: minmax(0, 1.35fr) minmax(270px, .75fr) !important;
        gap: 12px !important;
        align-items: stretch !important;
        margin-bottom: 12px !important;
    }
    .hero-copy {
        min-height: 300px !important;
        padding: 34px 32px !important;
        background: linear-gradient(135deg, rgba(20,20,20,.96), rgba(13,13,13,.92)) !important;
    }
    .hero-copy h1 {
        max-width: 560px !important;
        font-size: 46px !important;
    }
    .hero-copy p {
        max-width: 560px !important;
        color: #e7e0d5 !important;
    }
    .status-panel {
        min-height: 300px !important;
        background: rgba(18,18,18,.9) !important;
    }
    .status-panel div {
        min-height: 150px !important;
        padding: 18px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: rgba(255,255,255,.035) !important;
    }
    .status-panel strong {
        margin-bottom: 4px !important;
        font-size: 25px !important;
        color: #fff6df !important;
    }
    .module-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }
    .module-card {
        min-height: 92px !important;
        padding: 16px 14px !important;
        background: rgba(16,16,16,.9) !important;
    }
    .module-card:hover {
        transform: none !important;
        border-color: rgba(230,184,91,.36) !important;
    }
    .panel,
    .hero-copy,
    .status-panel,
    .module-card,
    .side-menu,
    .support-card {
        backdrop-filter: blur(2px) !important;
    }
}

/* Full width dashboard correction v20. */
@media (min-width: 901px) {
    .topbar {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    .app-shell {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        grid-template-columns: 220px minmax(0, 1fr) 320px !important;
    }
    .content {
        padding: 28px 32px 56px !important;
    }
    .hero {
        grid-template-columns: minmax(0, 1fr) 340px !important;
        align-items: stretch !important;
    }
    .hero-copy {
        min-height: 224px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    .status-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        min-height: 224px !important;
        margin-bottom: 0 !important;
    }
    .status-panel div {
        min-height: 112px !important;
    }
    .right-panel {
        padding: 12px !important;
    }
}

/* Mobile dashboard correction v21. */
@media (max-width: 520px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .topbar,
    .app-shell,
    .side-menu,
    .content,
    .hero,
    .hero-copy,
    .status-panel,
    .module-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    nav,
    .side-menu {
        max-width: 100vw !important;
        overflow-x: auto !important;
    }
    .content {
        padding: 14px 10px 34px !important;
    }
    .hero-copy {
        padding: 22px 18px !important;
    }
    .hero-copy h1 {
        max-width: calc(100vw - 56px) !important;
        font-size: 25px !important;
        overflow-wrap: break-word !important;
    }
    .hero-copy p {
        max-width: calc(100vw - 56px) !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }
    .actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    .status-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .status-panel div {
        min-height: 92px !important;
        padding: 16px !important;
    }
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .module-card {
        min-height: 106px !important;
        padding: 16px !important;
    }
}

/* Mobile readability correction v22. */
@media (max-width: 520px) {
    .hero-copy h1,
    .hero-copy p {
        max-width: 285px !important;
    }
    .module-grid {
        grid-template-columns: 1fr !important;
    }
    .module-card strong,
    .module-card span {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
}

/* Noria-style home landing v23 */
.brand-logo {
    width: 54px !important;
    height: 54px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)) !important;
}
.brand .crest { display: none !important; }
.page-home .topbar {
    background: rgba(23, 26, 29, .92) !important;
    backdrop-filter: blur(10px) !important;
}
@media (min-width: 901px) {
    .page-home .app-shell {
        grid-template-columns: minmax(0, 1fr) 300px !important;
        width: min(1340px, calc(100% - 42px)) !important;
        max-width: 1340px !important;
        margin: 0 auto !important;
        gap: 18px !important;
        min-height: calc(100vh - 72px) !important;
        padding: 0 !important;
    }
    .page-home .side-menu { display: none !important; }
    .page-home .content {
        padding: 18px 0 54px !important;
        background: transparent !important;
    }
    .page-home .right-panel {
        position: sticky !important;
        top: 88px !important;
        height: auto !important;
        max-height: calc(100vh - 104px) !important;
        margin-top: 18px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }
}
.page-home {
    background:
        radial-gradient(circle at 50% 7%, rgba(83, 116, 255, .12), transparent 30%),
        radial-gradient(circle at 68% 28%, rgba(182, 75, 255, .10), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,.025) 0 8%, transparent 8% 16%),
        #101313 !important;
    background-size: auto, auto, 180px 180px, auto !important;
}
.home-landing {
    display: grid !important;
    gap: 24px !important;
}
.home-hero-card {
    min-height: 560px !important;
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    background:
        linear-gradient(180deg, rgba(9,12,18,.24), rgba(9,12,18,.86)),
        radial-gradient(circle at 50% 38%, rgba(255,255,255,.1), transparent 32%),
        #171b22 !important;
    box-shadow: 0 26px 80px rgba(0,0,0,.38) !important;
}
.home-hero-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: url('/assets/logo-dcloren.png') center 38% / min(720px, 78%) no-repeat !important;
    filter: blur(10px) brightness(.75) saturate(.92) !important;
    opacity: .54 !important;
    transform: scale(1.04) !important;
}
.home-hero-card::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(10,12,16,.22), rgba(10,12,16,.86) 72%, rgba(10,12,16,.96)) !important;
}
.home-hero-art,
.home-hero-copy {
    position: relative !important;
    z-index: 1 !important;
}
.home-hero-art {
    display: none !important;
}
.home-hero-copy {
    width: min(720px, calc(100% - 36px)) !important;
    text-align: center !important;
    display: grid !important;
    justify-items: center !important;
    gap: 12px !important;
    margin-top: 190px !important;
}
.home-hero-copy .eyebrow {
    margin: 0 !important;
    color: rgba(255,255,255,.76) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}
.home-hero-copy h1 {
    margin: 0 !important;
    color: #f8fafc !important;
    font-size: clamp(46px, 7vw, 86px) !important;
    line-height: .92 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}
.home-hero-copy p {
    max-width: 620px !important;
    margin: 0 !important;
    color: rgba(255,255,255,.78) !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
}
.home-hero-copy .actions {
    display: flex !important;
    gap: 10px !important;
    margin-top: 16px !important;
}
.home-hero-copy .button {
    min-width: 170px !important;
    min-height: 54px !important;
    border-radius: 10px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}
.home-hero-copy .button.primary {
    background: linear-gradient(135deg, #596dff, #d450c7) !important;
    box-shadow: 0 18px 36px rgba(108, 92, 255, .32) !important;
}
.home-hero-copy .button.light {
    background: #f5f5f4 !important;
    color: #171717 !important;
    border-color: #fff !important;
}
.home-stats-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
.home-stats-row article,
.home-service-card,
.home-news-grid a {
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    background: rgba(255,255,255,.045) !important;
    box-shadow: none !important;
}
.home-stats-row article {
    padding: 16px 18px !important;
    display: grid !important;
    gap: 4px !important;
}
.home-stats-row strong {
    color: #fff8de !important;
    font-size: 26px !important;
    line-height: 1 !important;
}
.home-stats-row span {
    color: #aab2bd !important;
    font-size: 14px !important;
}
.home-section-head {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 10px !important;
}
.home-section-head span {
    color: #f7e7b1 !important;
    font-size: 28px !important;
}
.home-section-head h2 {
    margin: 0 !important;
    color: #ffe9a8 !important;
    font-size: 28px !important;
    font-style: italic !important;
    text-transform: uppercase !important;
}
.home-service-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
.home-service-card {
    min-height: 120px !important;
    padding: 20px !important;
    display: grid !important;
    align-content: space-between !important;
    text-decoration: none !important;
    color: #fff !important;
    position: relative !important;
    overflow: hidden !important;
}
.home-service-card::after {
    content: "" !important;
    position: absolute !important;
    top: 16px !important;
    right: 18px !important;
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background: currentColor !important;
}
.home-service-card span {
    color: #f3d36b !important;
    font-weight: 800 !important;
}
.home-service-card strong {
    color: #f8fafc !important;
    font-size: 18px !important;
    line-height: 1.28 !important;
}
.home-service-card small {
    color: #9ca3af !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}
.home-service-card.accent-pink { color: #ff5f8f !important; }
.home-service-card.accent-green { color: #9dff00 !important; }
.home-service-card.accent-gold { color: #ffd24a !important; }
.home-service-card.accent-blue { color: #4ea3ff !important; }
.home-news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
.home-news-grid a {
    min-height: 90px !important;
    padding: 18px !important;
    display: grid !important;
    gap: 8px !important;
    align-content: center !important;
    text-decoration: none !important;
}
.home-news-grid strong {
    color: #fff !important;
    font-size: 18px !important;
}
.home-news-grid span {
    color: #9ca3af !important;
    line-height: 1.4 !important;
}
.page-home .support-card {
    border-radius: 16px !important;
    background: rgba(255,255,255,.055) !important;
}
@media (max-width: 1280px) {
    .page-home .app-shell {
        grid-template-columns: 1fr !important;
        width: min(1040px, calc(100% - 28px)) !important;
    }
    .page-home .right-panel { display: none !important; }
}
@media (max-width: 900px) {
    .page-home .content { padding: 14px 10px 42px !important; }
    .home-hero-card { min-height: 470px !important; border-radius: 14px !important; }
    .home-hero-copy { margin-top: 150px !important; }
    .home-hero-copy h1 { font-size: 42px !important; }
    .home-hero-copy p { font-size: 15px !important; }
    .home-hero-copy .actions { display: grid !important; grid-template-columns: 1fr !important; width: min(280px, 100%) !important; }
    .home-hero-copy .button { width: 100% !important; min-height: 48px !important; font-size: 16px !important; }
    .home-stats-row,
    .home-service-grid,
    .home-news-grid { grid-template-columns: 1fr !important; }
}

/* Home mobile final correction v25 */
.page-home .side-menu {
    display: none !important;
}
@media (max-width: 900px) {
    .page-home .app-shell {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .page-home .content {
        padding-top: 16px !important;
    }
    .home-hero-card {
        min-height: 440px !important;
    }
    .home-hero-copy {
        width: calc(100% - 36px) !important;
        max-width: 330px !important;
        margin-top: 138px !important;
    }
    .home-hero-copy h1 {
        font-size: 40px !important;
        max-width: 100% !important;
    }
    .home-hero-copy p {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }
}

/* Neat portal pass v26 */
:root {
    --panel: rgba(16, 18, 22, .88);
    --panel-strong: rgba(22, 24, 29, .94);
    --line: rgba(255, 255, 255, .10);
    --muted: #b7beca;
}

body {
    background:
        linear-gradient(180deg, rgba(5, 7, 10, .90), rgba(5, 7, 10, .96)),
        url('/assets/mu-banner.png') center top / cover fixed,
        #07090d !important;
}

body::before,
body::after {
    display: none !important;
}

.topbar {
    min-height: 64px !important;
    padding: 8px 20px !important;
    background: rgba(10, 12, 16, .93) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .30) !important;
}

.brand-logo {
    width: 42px !important;
    height: 42px !important;
    border-radius: 8px !important;
}

.brand span {
    font-size: 17px !important;
    white-space: nowrap !important;
}

nav {
    gap: 4px !important;
}

.nav-link,
.chip,
.button {
    border-radius: 7px !important;
}

.nav-link,
.chip {
    padding: 8px 10px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.app-shell {
    gap: 14px !important;
}

.side-menu,
.right-panel,
.panel,
.metric,
.module-card,
.server-card,
.support-card,
.gift-card,
.shop-card,
.home-stats-row article,
.home-service-card,
.home-news-grid a {
    border-radius: 8px !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .22) !important;
}

.panel::before,
.hero-copy::before,
.module-card::before,
.gift-card::before,
.shop-card::before {
    opacity: .24 !important;
}

@media (min-width: 901px) {
    .app-shell {
        width: min(1440px, calc(100% - 32px)) !important;
        max-width: 1440px !important;
        margin: 0 auto !important;
        grid-template-columns: 190px minmax(0, 1fr) 260px !important;
        padding-top: 14px !important;
    }

    .content {
        padding: 0 !important;
    }

    .side-menu,
    .right-panel {
        top: 78px !important;
    }

    .side-menu {
        min-height: auto !important;
        padding: 14px !important;
    }

    .side-title {
        margin: 10px 0 6px !important;
        font-size: 12px !important;
    }

    .side-menu a {
        padding: 9px 10px !important;
        margin: 2px 0 !important;
        font-size: 13px !important;
    }

    .page-home .app-shell {
        grid-template-columns: minmax(0, 1fr) 260px !important;
        width: min(1180px, calc(100% - 32px)) !important;
        max-width: 1180px !important;
        gap: 14px !important;
        padding-top: 14px !important;
    }

    .page-home .content {
        padding: 0 0 40px !important;
    }

    .page-home .right-panel {
        margin-top: 0 !important;
        top: 78px !important;
    }
}

.home-landing {
    gap: 14px !important;
}

.home-hero-card {
    min-height: 390px !important;
    border-radius: 10px !important;
    background:
        linear-gradient(180deg, rgba(10, 12, 16, .34), rgba(10, 12, 16, .90)),
        #141820 !important;
}

.home-hero-card::before {
    background: url('/assets/logo-dcloren.png') center 34% / min(500px, 66%) no-repeat !important;
    filter: blur(5px) brightness(.78) saturate(.95) !important;
    opacity: .44 !important;
}

.home-hero-card::after {
    background: linear-gradient(180deg, rgba(10, 12, 16, .12), rgba(10, 12, 16, .86) 72%) !important;
}

.home-hero-copy {
    margin-top: 112px !important;
    width: min(640px, calc(100% - 36px)) !important;
    gap: 10px !important;
}

.home-hero-copy .eyebrow {
    font-size: 12px !important;
    letter-spacing: .06em !important;
}

.home-hero-copy h1 {
    font-size: clamp(38px, 5vw, 58px) !important;
    line-height: 1 !important;
}

.home-hero-copy p {
    max-width: 540px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.home-hero-copy .actions {
    margin-top: 10px !important;
}

.home-hero-copy .button {
    min-width: 138px !important;
    min-height: 44px !important;
    font-size: 14px !important;
}

.home-stats-row,
.home-service-grid,
.home-news-grid {
    gap: 8px !important;
}

.home-stats-row article,
.home-service-card,
.home-news-grid a {
    background: rgba(18, 21, 27, .78) !important;
    border-color: rgba(255, 255, 255, .08) !important;
}

.home-stats-row article {
    padding: 13px 14px !important;
}

.home-stats-row strong {
    font-size: 22px !important;
}

.home-stats-row span,
.home-service-card small,
.home-news-grid span {
    font-size: 13px !important;
}

.home-section-head {
    margin-top: 8px !important;
    gap: 8px !important;
}

.home-section-head span {
    font-size: 18px !important;
}

.home-section-head h2 {
    font-size: 20px !important;
    font-style: normal !important;
}

.home-service-card {
    min-height: 102px !important;
    padding: 15px !important;
}

.home-service-card strong,
.home-news-grid strong {
    font-size: 16px !important;
}

.home-news-grid a {
    min-height: 78px !important;
    padding: 15px !important;
}

.support-card {
    padding: 18px !important;
}

.support-card h2 {
    margin: 8px 0 !important;
    font-size: 22px !important;
}

.support-card p {
    font-size: 14px !important;
    line-height: 1.45 !important;
}

@media (max-width: 900px) {
    .topbar {
        align-items: flex-start !important;
        padding: 8px 10px !important;
    }

    .brand-logo {
        width: 36px !important;
        height: 36px !important;
    }

    nav {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        width: 100% !important;
        padding-bottom: 2px !important;
    }

    .nav-link,
    .chip {
        flex: 0 0 auto !important;
        padding: 7px 9px !important;
        font-size: 12px !important;
    }

    .page-home .content,
    .content {
        padding: 12px 10px 32px !important;
    }

    .home-landing {
        gap: 12px !important;
    }

    .home-hero-card {
        min-height: 360px !important;
        border-radius: 10px !important;
    }

    .home-hero-card::before {
        background-size: min(330px, 78%) !important;
        background-position: center 28% !important;
    }

    .home-hero-copy {
        max-width: 340px !important;
        margin-top: 118px !important;
    }

    .home-hero-copy h1 {
        font-size: 34px !important;
    }

    .home-hero-copy p {
        font-size: 14px !important;
    }

    .home-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-service-grid,
    .home-news-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 520px) {
    .topbar {
        display: grid !important;
        gap: 8px !important;
    }

    .brand span {
        font-size: 15px !important;
    }

    .home-hero-card {
        min-height: 330px !important;
    }

    .home-hero-copy {
        margin-top: 105px !important;
    }

    .home-hero-copy .actions {
        width: min(250px, 100%) !important;
    }

    .home-stats-row {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Mobile hero fit correction v27 */
@media (max-width: 900px) {
    .home-hero-copy {
        width: calc(100% - 28px) !important;
        max-width: 320px !important;
    }

    .home-hero-copy h1 {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        text-align: center !important;
        font-size: clamp(28px, 8vw, 34px) !important;
        line-height: 1.05 !important;
    }
}

@media (max-width: 420px) {
    .home-hero-copy {
        max-width: 300px !important;
    }

    .home-hero-copy h1 {
        font-size: 30px !important;
    }
}

/* Mobile copy width correction v28 */
@media (max-width: 520px) {
    .home-hero-copy p {
        width: 100% !important;
        max-width: 286px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        overflow-wrap: break-word !important;
    }
}

/* Remove requested home clutter v29 */
.brand-logo-only {
    gap: 0 !important;
    width: auto !important;
}

.brand-logo-only .brand-logo {
    margin: 0 !important;
}

/* News feature v30 */
.news-page-head {
    margin-bottom: 14px !important;
}

.news-page-head h1 {
    margin: 0 !important;
    font-size: 42px !important;
}

.news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.news-card {
    min-height: 190px !important;
    padding: 18px !important;
    display: grid !important;
    gap: 10px !important;
    align-content: start !important;
    text-decoration: none !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    background: rgba(18, 21, 27, .82) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .22) !important;
}

.news-card:hover {
    border-color: rgba(241, 198, 106, .42) !important;
    transform: translateY(-2px) !important;
}

.news-thumb {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 7 !important;
    border-radius: 7px !important;
    background-size: cover !important;
    background-position: center !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}

.news-meta {
    color: var(--gold) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.news-card strong {
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
}

.news-card small {
    color: var(--muted) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.news-detail {
    max-width: 920px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.news-cover {
    width: 100% !important;
    max-height: 360px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin: 14px 0 18px !important;
    border: 1px solid var(--line) !important;
}

.news-detail h1 {
    margin: 8px 0 12px !important;
    font-size: clamp(32px, 5vw, 54px) !important;
    line-height: 1.05 !important;
}

.news-lead {
    color: #dce3ee !important;
    font-size: 18px !important;
    line-height: 1.55 !important;
}

.news-body {
    color: #e8edf5 !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
}

.news-body p {
    margin: 0 0 16px !important;
}

@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    .news-page-head h1 {
        font-size: 34px !important;
    }

    .news-grid {
        grid-template-columns: 1fr !important;
    }

    .news-card {
        min-height: 150px !important;
    }
}
/* Home news section correction v31 */
.home-section-spaced {
    margin-top: 18px !important;
}

.home-section-link {
    margin-left: auto !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.12) !important;
    color: #f8fafc !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.home-post-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.home-post-card {
    min-height: 260px !important;
    display: grid !important;
    grid-template-rows: 138px auto auto 1fr !important;
    overflow: hidden !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    background: rgba(18, 21, 27, .86) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .22) !important;
}

.home-post-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(241, 198, 106, .40) !important;
}

.home-post-thumb {
    display: block !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.05), rgba(0,0,0,.34)),
        url('/assets/mu-banner.png') center / cover no-repeat !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.home-post-card .home-post-thumb[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
}

.home-post-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 14px 16px 0 !important;
    color: #aeb7c4 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.home-post-meta em {
    padding: 5px 9px !important;
    border-radius: 6px !important;
    background: rgba(30, 214, 139, .15) !important;
    color: #3af0a4 !important;
    font-style: normal !important;
}

.home-post-card strong {
    padding: 10px 16px 0 !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
}

.home-post-card small {
    padding: 8px 16px 16px !important;
    color: var(--muted) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.home-empty-news {
    padding: 18px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 8px !important;
    background: rgba(18, 21, 27, .78) !important;
    color: var(--muted) !important;
}

.home-empty-news p {
    margin: 0 !important;
}

@media (max-width: 900px) {
    .home-post-grid {
        grid-template-columns: 1fr !important;
    }

    .home-post-card {
        min-height: 220px !important;
        grid-template-rows: 120px auto auto 1fr !important;
    }
}