:root {
    --bg: #090b0f;
    --bg-soft: #11151b;
    --panel: #12161d;
    --panel-2: #171b22;
    --gold: #d8b45f;
    --gold-2: #f5d989;
    --gold-3: #9e7432;
    --text: #f8edd0;
    --muted: #b9a982;
    --line: rgba(216, 180, 95, .52);
    --danger: #ff7d7d;
    --success: #67e3a1;
    --shadow: 0 18px 40px rgba(0, 0, 0, .36);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 14px),
        var(--bg);
    color: var(--text);
    font-family: "Myanmar Text", "Noto Sans Myanmar", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(216, 180, 95, .58);
    border-radius: 8px;
    background: #090b0f;
    color: var(--text);
    padding: 10px 12px;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold-2);
    box-shadow: 0 0 0 3px rgba(216, 180, 95, .18);
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.icon {
    width: 1.2em;
    height: 1.2em;
    flex: 0 0 auto;
}

.login-shell {
    width: min(980px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 0 56px;
}

.login-topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 72px;
}

.brand-mark,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-2);
    font-weight: 800;
    text-shadow: 0 2px 0 #000;
}

.brand-mark .icon {
    width: 74px;
    height: 54px;
    filter: drop-shadow(0 4px 0 #000);
}

.brand-logo-img,
.round-logo-img,
.shop-logo-img,
.panel-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 2px #000);
}

.brand-logo-img {
    width: 74px;
    height: 54px;
}

.login-form {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) 54px;
    gap: 18px;
    align-items: end;
}

.login-form label {
    display: grid;
    gap: 5px;
    color: var(--gold-2);
    text-transform: lowercase;
}

.icon-submit,
.icon-button,
.admin-menu-button,
.back-button {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
    color: #0b0d11;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px rgba(0, 0, 0, .35);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
}

.portal-card,
.vip-shop-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border: 8px solid var(--gold);
    border-radius: 18px;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, .045), transparent 36%),
        #10141a;
    box-shadow:
        inset 0 0 0 4px rgba(255, 233, 169, .38),
        inset 0 0 24px rgba(0, 0, 0, .78),
        var(--shadow);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 34px 18px;
}

.portal-card::after,
.vip-shop-card::after,
.catalog-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(255, 255, 255, .035) 6px 7px);
    opacity: .28;
    pointer-events: none;
}

.portal-art {
    color: var(--gold-2);
}

.portal-art .icon {
    width: 88px;
    height: 88px;
    filter: drop-shadow(0 6px 2px #000);
}

.portal-art .shop-logo-img {
    width: 96px;
    height: 96px;
}

.portal-card h1,
.vip-shop-card h2 {
    margin: 12px 0 4px;
    color: var(--gold-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
}

.portal-card p,
.vip-shop-card p,
.app-title p,
.section-head p,
.catalog-heading p,
.admin-top p,
.detail-hero p {
    margin: 0;
    color: var(--muted);
}

.login-caption {
    width: min(760px, 100%);
    margin: 56px auto 0;
    color: var(--gold-2);
    text-align: center;
    font-size: clamp(18px, 3vw, 28px);
    line-height: 1.7;
}

.admin-login-shell {
    display: grid;
    align-content: center;
    gap: 24px;
}

.admin-login-card {
    display: flex;
    width: min(520px, 100%);
    align-items: center;
    gap: 18px;
    justify-self: center;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: rgba(18, 22, 29, .88);
    padding: 20px;
    box-shadow: var(--shadow);
}

.admin-login-card p {
    margin: 0;
    color: var(--muted);
}

.admin-login-card h1 {
    margin: 2px 0 0;
    color: var(--gold-2);
    font-size: 30px;
}

.flash {
    width: 100%;
    margin: 0 0 18px;
    border: 1px solid rgba(216, 180, 95, .55);
    border-radius: 8px;
    background: rgba(216, 180, 95, .12);
    color: var(--gold-2);
    padding: 12px 14px;
}

.flash-error {
    border-color: rgba(255, 125, 125, .7);
    background: rgba(255, 125, 125, .12);
    color: #ffd5d5;
}

.app-shell {
    width: min(1020px, calc(100% - 26px));
    margin: 0 auto;
    padding: 20px 0 36px;
}

.app-header,
.admin-top,
.catalog-heading,
.detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.app-title h1,
.admin-top h1,
.catalog-heading h2,
.section-head h2,
.detail-hero h2 {
    margin: 2px 0 0;
    color: var(--gold-2);
    font-size: clamp(22px, 4vw, 34px);
    line-height: 1.25;
}

.round-logo {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border: 6px solid var(--gold);
    border-radius: 999px;
    background: #0f1218;
    color: var(--gold-2);
    box-shadow: inset 0 0 0 3px rgba(255, 233, 169, .3), var(--shadow);
}

.round-logo .icon {
    width: 48px;
    height: 48px;
}

.logout-link,
.small-gold-button,
.gold-button,
.back-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
    color: #0b0d11;
    font-weight: 700;
    padding: 8px 14px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.danger-button {
    border-color: rgba(255, 125, 125, .65);
    background: #2a1114;
    color: #ffd7d7;
}

.member-level-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 7px;
    color: var(--muted);
}

.member-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border: 1px solid var(--badge-color, var(--gold));
    border-radius: 999px;
    background: rgba(216, 180, 95, .12);
    color: var(--badge-color, var(--gold-2));
    font-weight: 800;
    padding: 4px 11px;
}

.member-badge.compact {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 12px;
}

.level-progress {
    width: min(260px, 100%);
    height: 8px;
    overflow: hidden;
    border: 1px solid rgba(216, 180, 95, .38);
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
}

.level-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
}

.account-footer {
    display: grid;
    gap: 14px;
    margin-top: 28px;
    border: 1px solid rgba(216, 180, 95, .38);
    border-radius: 8px;
    background: rgba(18, 22, 29, .72);
    padding: 16px;
}

.account-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    position: relative;
    z-index: 8;
}

.change-password-menu {
    position: relative;
}

.change-password-menu summary {
    list-style: none;
    cursor: pointer;
}

.change-password-menu summary::-webkit-details-marker {
    display: none;
}

.change-password-form {
    display: grid;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: end;
    border: 1px solid rgba(216, 180, 95, .55);
    border-radius: 8px;
    background: rgba(10, 12, 16, .98);
    padding: 14px;
    box-shadow: var(--shadow);
}

.change-password-form label {
    display: grid;
    gap: 6px;
    color: var(--gold-2);
}

.account-logout {
    min-width: 92px;
}

.gold-button {
    width: 100%;
    min-height: 46px;
}

.tab-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 12px 0 20px;
    padding-bottom: 4px;
}

.tab-nav a,
.role-list a {
    white-space: nowrap;
    border: 1px solid rgba(216, 180, 95, .45);
    border-radius: 8px;
    background: rgba(18, 22, 29, .82);
    color: var(--gold-2);
    padding: 10px 14px;
}

.tab-nav a.is-active,
.role-list a.is-active {
    background: var(--gold);
    color: #080a0d;
}

.member-board {
    border: 2px solid var(--gold);
    border-radius: 18px;
    padding: 24px;
    box-shadow: inset 0 0 0 3px rgba(255, 233, 169, .18), 0 0 24px rgba(216, 180, 95, .22);
}

.shop-pair,
.info-grid,
.stats-grid,
.catalog-grid,
.admin-card-grid {
    display: grid;
    gap: 22px;
}

.shop-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vip-shop-card {
    min-height: 220px;
    border-width: 6px;
}

.mini-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--gold-2);
    z-index: 2;
}

.mini-badge .icon {
    width: 32px;
    height: 32px;
}

.info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
}

.gold-panel,
.gold-section,
.admin-panel,
.stats-grid article,
.admin-item-card {
    border: 2px solid var(--line);
    border-radius: 8px;
    background: rgba(18, 22, 29, .88);
    box-shadow: var(--shadow);
}

.gold-panel {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 18px;
    align-items: center;
    min-height: 132px;
    padding: 18px;
}

.gold-panel h3,
.catalog-card h3,
.admin-item-card h3 {
    margin: 0 0 8px;
    color: var(--gold-2);
    font-size: 20px;
    line-height: 1.35;
}

.gold-panel p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

.gold-panel strong {
    display: block;
    margin-bottom: 8px;
    color: #fff4c9;
    font-size: 26px;
}

.panel-icon {
    color: var(--gold-2);
}

.panel-icon .icon {
    width: 62px;
    height: 62px;
}

.panel-logo-img {
    width: 62px;
    height: 62px;
}

.catalog-heading {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(18, 22, 29, .92);
    padding: 18px;
}

.point-pill {
    white-space: nowrap;
    border: 1px solid rgba(216, 180, 95, .5);
    border-radius: 999px;
    color: var(--gold-2);
    padding: 9px 14px;
}

.catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(216, 180, 95, .48);
    border-radius: 8px;
    background: #11151b;
}

.catalog-image {
    position: relative;
    display: grid;
    aspect-ratio: 1 / 1;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    background: #080a0d;
    color: var(--gold-2);
}

.catalog-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.catalog-image .icon {
    width: clamp(42px, 45%, 96px);
    height: clamp(42px, 45%, 96px);
}

.catalog-image .shop-logo-img {
    width: 62%;
    height: 62%;
}

.catalog-body {
    padding: 16px;
}

.catalog-body p,
.admin-item-card p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.55;
}

.catalog-meta,
.status-row,
.action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.catalog-meta span {
    border: 1px solid rgba(216, 180, 95, .35);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--gold-2);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--success);
}

.status-dot.limited {
    background: var(--gold-2);
}

.status-dot.sold_out,
.status-dot.hidden {
    background: var(--danger);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr);
    gap: 20px;
    align-items: start;
}

.gold-section,
.admin-panel {
    padding: 18px;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-head.spaced {
    margin-top: 28px;
}

.inline-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.inline-filters input,
.inline-filters select {
    width: auto;
    min-width: 145px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th,
td {
    border-bottom: 1px solid rgba(216, 180, 95, .22);
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--gold-2);
    font-size: 13px;
}

td span,
.muted,
small {
    color: var(--muted);
}

.plus-text {
    color: var(--success);
}

.minus-text {
    color: var(--danger);
}

.stacked-form {
    display: grid;
    gap: 13px;
}

.stacked-form label {
    display: grid;
    gap: 7px;
    color: var(--gold-2);
}

.combined-spend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.combined-spend-grid label {
    border: 1px solid rgba(216, 180, 95, .28);
    border-radius: 8px;
    background: rgba(8, 10, 13, .45);
    padding: 10px;
}

.combined-spend-grid small {
    display: block;
    color: var(--muted);
}

.check-row {
    grid-template-columns: 18px 1fr;
    align-items: center;
    color: var(--text) !important;
}

.check-row input {
    width: 18px;
    min-height: 18px;
}

.mini-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.mini-list div {
    border-top: 1px solid rgba(216, 180, 95, .24);
    padding-top: 10px;
}

.mini-list strong,
.mini-list span {
    display: block;
}

.empty-state {
    grid-column: 1 / -1;
    border: 1px dashed rgba(216, 180, 95, .5);
    border-radius: 8px;
    color: var(--muted);
    padding: 24px;
    text-align: center;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(216, 180, 95, .32);
    background: #080a0d;
    padding: 24px 18px;
}

.admin-brand {
    margin-bottom: 28px;
}

.admin-brand .icon {
    width: 42px;
    height: 42px;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    padding: 9px 11px;
}

.admin-sidebar nav a.is-active,
.admin-sidebar nav a:hover {
    border-color: var(--line);
    background: rgba(216, 180, 95, .12);
    color: var(--gold-2);
}

.admin-main {
    min-width: 0;
    padding: 24px;
}

.admin-menu-button {
    display: none;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.stats-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid article {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.stats-grid span {
    color: var(--muted);
}

.stats-grid strong {
    color: var(--gold-2);
    font-size: clamp(24px, 3vw, 34px);
}

.admin-split {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .7fr);
}

.wide-panel {
    min-width: 0;
}

.detail-hero {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(18, 22, 29, .88);
    padding: 18px;
}

.detail-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-points span {
    border: 1px solid rgba(216, 180, 95, .4);
    border-radius: 999px;
    color: var(--gold-2);
    padding: 7px 12px;
}

.back-link {
    min-height: 36px;
}

.admin-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-item-card {
    position: relative;
    display: grid;
    grid-template-columns: 108px 1fr 42px;
    gap: 14px;
    align-items: start;
    padding: 12px;
}

.admin-item-card .thumb {
    display: grid;
    width: 108px;
    height: 108px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(216, 180, 95, .35);
    border-radius: 8px;
    background: #080a0d;
    color: var(--gold-2);
}

.admin-item-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-item-card small {
    display: block;
    margin-top: 8px;
}

.icon-button {
    width: 38px;
    height: 38px;
    padding: 0;
}

.icon-button.danger {
    background: #2a1114;
    color: var(--danger);
}

.role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.permission-list {
    display: grid;
    gap: 8px;
}

.settings-form {
    display: grid;
    gap: 18px;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(260px, .55fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.shop-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-card {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(216, 180, 95, .42);
    border-radius: 8px;
    background: rgba(8, 10, 13, .55);
    padding: 14px;
}

.settings-card label {
    display: grid;
    gap: 7px;
    color: var(--gold-2);
}

.settings-preview {
    display: grid;
    min-height: 132px;
    place-items: center;
    border: 1px dashed rgba(216, 180, 95, .42);
    border-radius: 8px;
    padding: 14px;
}

.large-preview {
    width: 92px;
    height: 92px;
}

.portal-preview {
    text-align: center;
}

.portal-preview h3 {
    margin: 8px 0 0;
    color: var(--gold-2);
    font-size: 22px;
}

.portal-preview p {
    margin: 4px 0 0;
    color: var(--muted);
}

.settings-save {
    max-width: 260px;
}

.level-settings-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 12px;
}

.level-setting-row {
    display: grid;
    gap: 8px;
}

@media (max-width: 980px) {
    .login-topbar,
    .portal-grid,
    .shop-pair,
    .info-grid,
    .split-layout,
    .admin-split,
    .stats-grid,
    .stats-grid.compact,
    .admin-card-grid {
        grid-template-columns: 1fr;
    }

    .login-form {
        grid-template-columns: 1fr 1fr 54px;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        z-index: 20;
        inset: 0 auto 0 0;
        width: min(300px, 88vw);
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    body.admin-menu-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-menu-button {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 13px;
    }

    .login-shell,
    .app-shell {
        width: 100%;
        max-width: 100vw;
        padding-left: 7px;
        padding-right: 7px;
        padding-top: 10px;
    }

    .login-shell {
        min-height: auto;
        padding-bottom: 20px;
    }

    .login-topbar {
        gap: 12px;
        margin-bottom: 16px;
    }

    .brand-mark {
        justify-content: center;
        gap: 8px;
        font-size: 12px;
    }

    .brand-mark .icon {
        width: 48px;
        height: 36px;
    }

    .brand-logo-img {
        width: 48px;
        height: 36px;
    }

    .login-form {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: end;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .login-form label {
        flex: 1 1 calc(50% - 4px);
        max-width: calc(50% - 4px);
        gap: 4px;
        font-size: 12px;
        min-width: 0;
    }

    input,
    select,
    textarea {
        min-width: 0;
        min-height: 36px;
        border-radius: 7px;
        padding: 7px 9px;
    }

    .icon-submit {
        flex: 1 0 100%;
        width: 100%;
        height: 34px;
        border-radius: 7px;
    }

    .portal-grid,
    .shop-pair {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        min-width: 0;
    }

    .info-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        min-width: 0;
        margin-top: 10px;
    }

    .portal-card,
    .vip-shop-card {
        flex: 1 1 calc(50% - 5px);
        max-width: calc(50% - 5px);
        min-width: 0;
        min-height: 124px;
        border-width: 4px;
        border-radius: 12px;
        padding: 14px 8px;
        box-shadow:
            inset 0 0 0 2px rgba(255, 233, 169, .35),
            inset 0 0 16px rgba(0, 0, 0, .72),
            0 10px 22px rgba(0, 0, 0, .3);
    }

    .portal-art .icon {
        width: 42px;
        height: 42px;
        filter: drop-shadow(0 4px 1px #000);
    }

    .portal-art .shop-logo-img {
        width: 48px;
        height: 48px;
    }

    .portal-card h1,
    .vip-shop-card h2 {
        margin-top: 7px;
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: 15px;
        line-height: 1.2;
    }

    .portal-card p,
    .vip-shop-card p {
        font-size: 11px;
        line-height: 1.25;
    }

    .login-caption {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.5;
    }

    .admin-login-shell {
        align-content: start;
        gap: 14px;
    }

    .admin-login-card {
        gap: 12px;
        padding: 14px;
    }

    .admin-login-card h1 {
        font-size: 22px;
    }

    .member-board {
        border-radius: 12px;
        padding: 10px;
    }

    .app-header,
    .admin-top,
    .catalog-heading,
    .detail-hero,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .app-header {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        align-items: start;
        gap: 10px;
    }

    .app-header .back-button {
        grid-column: 1;
        grid-row: 1;
    }

    .app-header .account-actions {
        grid-column: 2 / 4;
        grid-row: 1;
        justify-self: end;
    }

    .app-header .app-title {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .round-logo {
        width: 52px;
        height: 52px;
        border-width: 3px;
    }

    .round-logo .icon {
        width: 30px;
        height: 30px;
    }

    .gold-panel {
        grid-template-columns: 34px 1fr;
        gap: 8px;
        width: 100%;
        min-width: 0;
        min-height: 116px;
        align-content: center;
        padding: 10px;
    }

    .gold-panel h3,
    .catalog-card h3,
    .admin-item-card h3 {
        margin-bottom: 4px;
        font-size: 14px;
    }

    .gold-panel strong {
        margin-bottom: 5px;
        font-size: 17px;
    }

    .gold-panel p {
        max-width: 100%;
        font-size: 11px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .panel-icon .icon {
        width: 30px;
        height: 30px;
    }

    .panel-logo-img {
        width: 30px;
        height: 30px;
    }

    .mini-badge {
        top: 8px;
        right: 8px;
    }

    .mini-badge .icon {
        width: 20px;
        height: 20px;
    }

    .tab-nav {
        gap: 7px;
        margin-bottom: 12px;
    }

    .tab-nav a,
    .role-list a {
        padding: 7px 9px;
    }

    .catalog-heading,
    .gold-section,
    .admin-panel,
    .detail-hero {
        padding: 12px;
    }

    .catalog-grid,
    .menu-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .point-pill {
        width: 100%;
        white-space: normal;
        text-align: center;
        padding: 7px 9px;
    }

    .app-title {
        gap: 10px;
    }

    .app-title h1,
    .admin-top h1,
    .catalog-heading h2,
    .section-head h2,
    .detail-hero h2 {
        font-size: 20px;
    }

    .catalog-image .icon {
        width: 36px;
        height: 36px;
    }

    .catalog-body {
        padding: 8px;
    }

    .catalog-body p {
        display: none;
    }

    .catalog-meta {
        gap: 4px;
    }

    .catalog-meta span {
        border-radius: 6px;
        padding: 3px 5px;
        font-size: 10px;
        line-height: 1.2;
    }

    .status-row {
        gap: 5px;
        margin-top: 5px;
        font-size: 10px;
    }

    .status-dot {
        width: 7px;
        height: 7px;
    }

    .small-gold-button,
    .gold-button,
    .logout-link,
    .back-link {
        min-height: 34px;
        padding: 6px 10px;
    }

    .account-actions {
        gap: 6px;
    }

    .change-password-menu summary,
    .account-logout {
        min-width: 0;
        font-size: 11px;
        padding-inline: 8px;
    }

    .change-password-form {
        right: 0;
        width: min(356px, calc(100vw - 22px));
    }

    .inline-filters {
        justify-content: stretch;
    }

    .inline-filters input,
    .inline-filters select,
    .inline-filters button {
        width: 100%;
    }

    .history-table {
        overflow: visible;
    }

    .history-table table,
    .history-table tbody,
    .history-table tr,
    .history-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .history-table thead {
        display: none;
    }

    .history-table tbody {
        display: grid;
        gap: 10px;
    }

    .history-table tr {
        border: 1px solid rgba(216, 180, 95, .32);
        border-radius: 8px;
        background: rgba(8, 10, 13, .5);
        padding: 10px;
    }

    .history-table td {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 8px;
        border: 0;
        padding: 4px 0;
        overflow-wrap: anywhere;
    }

    .history-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-weight: 700;
    }

    .settings-grid,
    .shop-settings-grid {
        grid-template-columns: 1fr;
    }

    .level-settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-save {
        max-width: none;
    }

    .combined-spend-grid {
        grid-template-columns: 1fr;
    }

    .admin-main {
        padding: 14px;
    }

    .admin-item-card {
        grid-template-columns: 88px 1fr;
    }

    .admin-item-card .thumb {
        width: 88px;
        height: 88px;
    }

    .admin-item-card .icon-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}
