:root {
    --moon-bg: #160c07;
    --moon-panel: rgba(56, 27, 11, 0.86);
    --moon-panel-soft: rgba(105, 71, 44, 0.18);
    --moon-card: rgba(255, 236, 207, 0.06);
    --moon-card-strong: rgba(255, 238, 210, 0.1);
    --moon-line: rgba(237, 198, 127, 0.22);
    --moon-gold: #f3d79f;
    --moon-gold-strong: #efc56b;
    --moon-text: #fff6e8;
    --moon-muted: rgba(247, 228, 193, 0.72);
    --moon-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
    --moon-blue: #58c5ff;
}

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

html {
    height: 100%;
    scroll-behavior: smooth;
    overflow: hidden;
}

body {
    margin: 0;
    height: 100%;
    min-height: 100vh;
    font-family: "STZhongsong", "Songti SC", "PingFang SC", "Microsoft YaHei", serif;
    color: var(--moon-text);
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 229, 176, 0.14), transparent 22%),
        radial-gradient(circle at 92% 100%, rgba(255, 229, 176, 0.08), transparent 18%),
        linear-gradient(180deg, #120804 0%, #251208 45%, #120804 100%);
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

.user-page {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    padding: 14px;
    overflow: hidden;
}

.user-page::before {
    content: "";
    position: absolute;
    inset: 92px 16px 16px;
    background:
        radial-gradient(circle at center, rgba(255, 231, 188, 0.16), transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34)),
        repeating-linear-gradient(45deg, rgba(76, 40, 13, 0.15) 0 1px, rgba(0, 0, 0, 0) 1px 18px),
        repeating-linear-gradient(-45deg, rgba(76, 40, 13, 0.13) 0 1px, rgba(0, 0, 0, 0) 1px 18px),
        linear-gradient(180deg, #8a603f 0%, #8f6543 18%, #6f4a2d 100%);
    border: 1px solid rgba(255, 228, 183, 0.06);
    border-radius: 0 0 28px 28px;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.74);
    pointer-events: none;
}

.moon-stage-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.moon-stage-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 247, 226, 0.95) 0%, rgba(244, 208, 133, 0.78) 46%, rgba(255, 205, 108, 0) 78%);
    box-shadow: 0 0 16px rgba(255, 222, 155, 0.38), 0 0 28px rgba(255, 222, 155, 0.22);
    animation: moonParticleFloat 10s linear infinite;
    opacity: 0.72;
}

.moon-stage-particles span:nth-child(1) { left: 10%; top: 68%; animation-delay: -1s; }
.moon-stage-particles span:nth-child(2) { left: 24%; top: 44%; width: 6px; height: 6px; animation-delay: -4s; }
.moon-stage-particles span:nth-child(3) { left: 41%; top: 72%; width: 10px; height: 10px; animation-delay: -3s; }
.moon-stage-particles span:nth-child(4) { left: 58%; top: 38%; width: 7px; height: 7px; animation-delay: -5s; }
.moon-stage-particles span:nth-child(5) { left: 72%; top: 66%; animation-delay: -2s; }
.moon-stage-particles span:nth-child(6) { left: 83%; top: 28%; width: 9px; height: 9px; animation-delay: -6s; }
.moon-stage-particles span:nth-child(7) { left: 90%; top: 78%; width: 5px; height: 5px; animation-delay: -2.5s; }
.moon-stage-particles span:nth-child(8) { left: 31%; top: 22%; width: 7px; height: 7px; animation-delay: -7s; }
.moon-stage-particles span:nth-child(9) { left: 8%; top: 28%; width: 5px; height: 5px; animation-delay: -3.2s; }
.moon-stage-particles span:nth-child(10) { left: 48%; top: 16%; width: 8px; height: 8px; animation-delay: -6.5s; }
.moon-stage-particles span:nth-child(11) { left: 76%; top: 48%; width: 5px; height: 5px; animation-delay: -9s; }
.moon-stage-particles span:nth-child(12) { left: 94%; top: 18%; width: 4px; height: 4px; animation-delay: -5.8s; }

.user-stage-header {
    position: sticky;
    top: 10px;
    z-index: 10;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 10px 24px 14px 52px;
    margin: 0 0 16px;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(180deg, rgba(38, 16, 5, 0.98) 0%, rgba(49, 22, 8, 0.96) 100%);
    border-bottom: 2px solid rgba(214, 161, 92, 0.86);
    box-shadow: var(--moon-shadow);
}

.user-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    justify-self: end;
}

.user-mail-shortcut {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(244, 215, 154, 0.18);
    background: rgba(74, 33, 14, 0.78);
    color: var(--moon-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    -webkit-tap-highlight-color: transparent;
    align-self: center;
    z-index: 1;
}

.user-mail-shortcut:hover,
.user-mail-shortcut:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 231, 184, 0.34);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.user-mail-shortcut strong {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff6b6b 0%, #cf3f3f 100%);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(207, 63, 63, 0.28);
}

.user-mail-shortcut.has-unread {
    border-color: rgba(255, 130, 130, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.16), 0 14px 24px rgba(0, 0, 0, 0.18);
}

.user-mail-shortcut.has-unread strong {
    animation: userBadgePulse 1.5s ease-in-out infinite;
}

.moon-stage-header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 242px;
}

.moon-brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.moon-stage-brand-copy {
    display: grid;
    gap: 6px;
}

.moon-stage-brand-copy strong {
    font-size: 27px;
    line-height: 1;
    letter-spacing: 0.08em;
}

.moon-stage-brand-copy span {
    color: rgba(241, 219, 182, 0.78);
    font-size: 13px;
    letter-spacing: 0.18em;
}

.user-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    border-radius: 22px;
    border: 1px solid rgba(244, 215, 154, 0.16);
    background: rgba(255, 255, 255, 0.04);
    justify-self: start;
    margin-left: 0;
}

.mode-switch-button {
    min-width: 142px;
    height: 62px;
    padding: 0 24px;
    border: 1px solid rgba(244, 215, 154, 0.2);
    border-radius: 20px;
    background: rgba(85, 43, 18, 0.78);
    color: var(--moon-text);
    font: inherit;
    font-size: 17px;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.mode-switch-button:hover,
.mode-switch-button:focus-visible,
.mode-switch-button.active {
    background: linear-gradient(180deg, #f7deb0 0%, #efc66e 100%);
    color: #4f2b11;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.moon-stage-header-marquee {
    min-width: 0;
    overflow: hidden;
    align-self: center;
    justify-self: stretch;
    padding: 0 8px;
}

.moon-service-marquee-track {
    position: relative;
    overflow: hidden;
}

.moon-service-marquee-text {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    color: rgba(255, 239, 210, 0.92);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    animation: marqueeRun 22s linear infinite;
}

.user-stage-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    height: calc(100vh - 132px);
    padding: 18px;
    overflow: hidden;
}

.moon-service-nav,
.moon-service-main {
    position: relative;
    background: rgba(46, 20, 7, 0.38);
    border: 1px solid rgba(224, 180, 113, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 240, 209, 0.03), 0 18px 36px rgba(0, 0, 0, 0.18);
}

.moon-service-nav {
    position: relative;
    padding: 24px 18px 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: visible;
    z-index: 6;
}

.moon-nav-heading {
    text-align: center;
    font-size: 28px;
    line-height: 1.2;
    margin: 8px 0 18px;
}

.moon-service-tabs {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 240px;
    isolation: isolate;
    overflow: visible;
    padding-left: 26px;
}

.service-tab,
.shop-category-tab {
    position: relative;
    width: calc(100% - 26px);
    min-height: 74px;
    padding: 0 24px;
    border-radius: 24px;
    border: 1px solid rgba(244, 215, 154, 0.14);
    background: rgba(68, 30, 12, 0.88);
    color: var(--moon-text);
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    z-index: 1;
}

.service-tab:hover,
.service-tab:focus-visible,
.service-tab.active,
.shop-category-tab:hover,
.shop-category-tab:focus-visible,
.shop-category-tab.active {
    background: linear-gradient(180deg, #f7deb0 0%, #efc66e 100%);
    color: #4f2b11;
    border-color: rgba(255, 232, 182, 0.48);
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.14);
}

.moon-nav-fireflies {
    position: absolute;
    left: 2px;
    width: 46px;
    height: 42px;
    pointer-events: none;
    z-index: 500;
    transform: translateY(-50%);
    transition: top 0.42s cubic-bezier(0.22, 0.74, 0.18, 1);
}

.moon-nav-fireflies span {
    position: absolute;
    left: 22px;
    top: 21px;
    width: 2px;
    height: 2px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 252, 240, 0.96) 0%, rgba(255, 227, 152, 0.78) 42%, rgba(255, 205, 108, 0) 78%);
    box-shadow: 0 0 6px rgba(255, 228, 159, 0.42), 0 0 12px rgba(255, 228, 159, 0.18);
    opacity: 0;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
}

.moon-nav-fireflies span:nth-child(4n + 1) { animation: moonNavSparkA 2s infinite; }
.moon-nav-fireflies span:nth-child(4n + 2) { animation: moonNavSparkB 2.4s infinite; }
.moon-nav-fireflies span:nth-child(4n + 3) { animation: moonNavSparkC 1.7s infinite; }
.moon-nav-fireflies span:nth-child(4n) { animation: moonNavSparkD 2.8s infinite; }

.moon-nav-fireflies span:nth-child(1) { width: 2px; height: 2px; animation-delay: -0.2s; }
.moon-nav-fireflies span:nth-child(2) { width: 3px; height: 3px; animation-delay: -1.1s; }
.moon-nav-fireflies span:nth-child(3) { width: 2px; height: 2px; animation-delay: -0.9s; }
.moon-nav-fireflies span:nth-child(4) { width: 4px; height: 4px; animation-delay: -1.8s; }
.moon-nav-fireflies span:nth-child(5) { width: 2px; height: 2px; animation-delay: -0.4s; }
.moon-nav-fireflies span:nth-child(6) { width: 3px; height: 3px; animation-delay: -1.5s; }
.moon-nav-fireflies span:nth-child(7) { width: 2px; height: 2px; animation-delay: -1s; }
.moon-nav-fireflies span:nth-child(8) { width: 4px; height: 4px; animation-delay: -2.1s; }
.moon-nav-fireflies span:nth-child(9) { width: 2px; height: 2px; animation-delay: -0.7s; }
.moon-nav-fireflies span:nth-child(10) { width: 3px; height: 3px; animation-delay: -1.3s; }
.moon-nav-fireflies span:nth-child(11) { width: 2px; height: 2px; animation-delay: -0.6s; }
.moon-nav-fireflies span:nth-child(12) { width: 5px; height: 5px; animation-delay: -2.2s; }
.moon-nav-fireflies span:nth-child(13) { width: 2px; height: 2px; animation-delay: -0.1s; }
.moon-nav-fireflies span:nth-child(14) { width: 3px; height: 3px; animation-delay: -1.6s; }
.moon-nav-fireflies span:nth-child(15) { width: 2px; height: 2px; animation-delay: -0.8s; }
.moon-nav-fireflies span:nth-child(16) { width: 4px; height: 4px; animation-delay: -2.4s; }
.moon-nav-fireflies span:nth-child(17) { width: 2px; height: 2px; animation-delay: -0.5s; }
.moon-nav-fireflies span:nth-child(18) { width: 3px; height: 3px; animation-delay: -1.9s; }
.moon-nav-fireflies span:nth-child(19) { width: 2px; height: 2px; animation-delay: -1.1s; }
.moon-nav-fireflies span:nth-child(20) { width: 4px; height: 4px; animation-delay: -2s; }
.moon-nav-fireflies span:nth-child(21) { width: 2px; height: 2px; animation-delay: -0.3s; }
.moon-nav-fireflies span:nth-child(22) { width: 3px; height: 3px; animation-delay: -1.4s; }
.moon-nav-fireflies span:nth-child(23) { width: 2px; height: 2px; animation-delay: -0.95s; }
.moon-nav-fireflies span:nth-child(24) { width: 4px; height: 4px; animation-delay: -2.3s; }
.moon-nav-fireflies span:nth-child(25) { width: 2px; height: 2px; animation-delay: -0.55s; animation: moonNavSparkE 2.1s infinite; }
.moon-nav-fireflies span:nth-child(26) { width: 3px; height: 3px; animation-delay: -1.7s; animation: moonNavSparkF 2.5s infinite; }
.moon-nav-fireflies span:nth-child(27) { width: 2px; height: 2px; animation-delay: -0.85s; animation: moonNavSparkG 1.85s infinite; }
.moon-nav-fireflies span:nth-child(28) { width: 5px; height: 5px; animation-delay: -2.45s; animation: moonNavSparkH 2.9s infinite; }
.moon-nav-fireflies span:nth-child(29) { width: 2px; height: 2px; animation-delay: -0.4s; animation: moonNavSparkI 1.95s infinite; }
.moon-nav-fireflies span:nth-child(30) { width: 3px; height: 3px; animation-delay: -1.35s; animation: moonNavSparkJ 2.6s infinite; }
.moon-nav-fireflies span:nth-child(31) { width: 2px; height: 2px; animation-delay: -1.05s; animation: moonNavSparkE 1.75s infinite; }
.moon-nav-fireflies span:nth-child(32) { width: 4px; height: 4px; animation-delay: -2.15s; animation: moonNavSparkH 3s infinite; }
.moon-service-sideinfo {
    margin-top: auto;
    padding-top: 18px;
    color: var(--moon-muted);
    font-size: 13px;
    line-height: 1.85;
}

.moon-service-navversion {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: rgba(255, 232, 182, 0.88);
    font-size: 14px;
    letter-spacing: 0.08em;
}

.moon-service-main {
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.moon-service-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-right: 12px;
    scrollbar-gutter: stable;
}

.moon-service-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.moon-service-topbar h2 {
    margin: 0;
    font-size: clamp(34px, 3vw, 62px);
    line-height: 1.05;
}

.moon-service-topbar p {
    margin: 10px 0 0;
    color: var(--moon-muted);
    font-size: 18px;
    line-height: 1.75;
    max-width: 760px;
}

.moon-service-userpill {
    min-width: 220px;
    padding: 18px 22px;
    border-radius: 24px;
    background: rgba(68, 30, 12, 0.62);
    text-align: right;
}

.moon-service-userpill span {
    display: block;
    color: var(--moon-gold-strong);
    font-size: 15px;
    margin-bottom: 8px;
}

.moon-service-userpill strong {
    display: block;
    font-size: 24px;
}

.user-top-diamond {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.user-top-diamond img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.responsive-service-content {
    flex: 1;
    min-width: 0;
}

.moon-section-grid,
.moon-summary-grid,
.moon-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.moon-summary-card,
.moon-detail-card,
.moon-panel-card,
.moon-banner-card,
.user-form-card,
.user-ranking-card,
.user-shop-card,
.user-shop-detail-card,
.user-sign-reward-card {
    position: relative;
    padding: 22px 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 239, 210, 0.08);
    background: linear-gradient(180deg, rgba(255, 236, 207, 0.06), rgba(255, 236, 207, 0.03));
    box-shadow: inset 0 0 0 1px rgba(255, 239, 210, 0.04);
    overflow: hidden;
}

.moon-summary-card span,
.moon-detail-card span,
.moon-panel-card span {
    color: var(--moon-muted);
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
}

.moon-summary-card strong,
.moon-detail-card strong,
.moon-panel-card strong {
    font-size: clamp(30px, 2.4vw, 52px);
    line-height: 1.08;
}

.summary-metric {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.summary-metric img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.moon-summary-card small,
.moon-detail-card small {
    display: block;
    margin-top: 10px;
    color: rgba(245, 224, 192, 0.58);
    font-size: 14px;
}

.moon-action-grid,
.moon-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.moon-action,
.user-button,
.user-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 24px;
    border-radius: 22px;
    border: 1px solid rgba(244, 215, 154, 0.18);
    background: linear-gradient(180deg, #f7deb0 0%, #efc66e 100%);
    color: #4f2b11;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.moon-action.ghost,
.user-button.ghost,
.user-inline-button.ghost {
    background: rgba(68, 30, 12, 0.58);
    color: var(--moon-text);
}

.moon-action:hover,
.moon-action:focus-visible,
.user-button:hover,
.user-button:focus-visible,
.user-inline-button:hover,
.user-inline-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
}

.moon-action:disabled,
.user-button:disabled,
.user-inline-button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
    box-shadow: none;
}

.moon-action::after,
.user-button::after,
.user-inline-button::after,
.service-tab::after,
.shop-category-tab::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -38%;
    width: 34%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,244,218,0.26), rgba(255,255,255,0));
    transform: skewX(-18deg);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
    z-index: 0;
}

.moon-action:hover::after,
.moon-action:focus-visible::after,
.user-button:hover::after,
.user-button:focus-visible::after,
.user-inline-button:hover::after,
.user-inline-button:focus-visible::after,
.service-tab:hover::after,
.service-tab:focus-visible::after,
.service-tab.active::after,
.shop-category-tab:hover::after,
.shop-category-tab:focus-visible::after,
.shop-category-tab.active::after {
    opacity: 1;
    animation: sweepLight 1.2s ease forwards;
}

.service-tab > *,
.shop-category-tab > * {
    position: relative;
    z-index: 1;
}

.user-form-stack {
    display: grid;
    gap: 14px;
}

.user-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.user-form-stack label {
    color: var(--moon-muted);
    font-size: 15px;
}

.user-form-stack input,
.user-form-stack textarea,
.user-form-stack select {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(248, 226, 188, 0.18);
    border-radius: 18px;
    background: rgba(255, 249, 239, 0.92);
    color: #56341b;
    font: inherit;
    font-size: 16px;
}

.user-form-stack textarea {
    min-height: 132px;
    padding: 14px 18px;
    resize: vertical;
}

.user-form-stack input:focus-visible,
.user-form-stack textarea:focus-visible,
.user-form-stack select:focus-visible {
    outline: 2px solid rgba(255, 214, 126, 0.46);
    outline-offset: 1px;
}

.user-status-log {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(68, 30, 12, 0.5);
    color: rgba(255, 242, 218, 0.92);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.user-ranking-card table,
.user-cloud-list {
    width: 100%;
}

.user-ranking-table {
    display: grid;
    gap: 10px;
}

.user-ranking-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 160px;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(68, 30, 12, 0.46);
}

.user-ranking-row.header {
    color: var(--moon-gold);
    font-weight: 700;
    background: rgba(87, 47, 23, 0.62);
}

.user-ranking-row.current {
    border: 1px solid rgba(255, 223, 170, 0.24);
    background: linear-gradient(180deg, rgba(255, 229, 183, 0.12), rgba(255, 229, 183, 0.05));
    box-shadow: inset 0 0 0 1px rgba(255, 243, 220, 0.06);
}

.user-ranking-row.current span:nth-child(2),
.user-ranking-row.current strong {
    color: var(--moon-gold);
}

.user-ranking-self {
    margin-bottom: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(68, 30, 12, 0.46);
    color: rgba(255, 241, 214, 0.92);
    font-size: 16px;
}

.user-ranking-self strong {
    color: var(--moon-gold);
    font-size: 18px;
}

.user-cloud-list {
    display: grid;
    gap: 12px;
}

.user-cloud-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(68, 30, 12, 0.46);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.user-cloud-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 320px;
    gap: 22px;
}

.user-cloud-main,
.user-cloud-actions {
    padding: 22px 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 239, 210, 0.08);
    background: linear-gradient(180deg, rgba(255, 236, 207, 0.06), rgba(255, 236, 207, 0.03));
    box-shadow: inset 0 0 0 1px rgba(255, 239, 210, 0.04);
}

.user-cloud-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.user-cloud-metric {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(68, 30, 12, 0.44);
}

.user-cloud-metric span {
    display: block;
    color: var(--moon-muted);
    margin-bottom: 12px;
    font-size: 15px;
}

.user-cloud-metric strong {
    display: block;
    font-size: 22px;
    line-height: 1.25;
}

.user-cloud-tip {
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 146, 0.16);
    background: rgba(90, 49, 22, 0.42);
    color: rgba(255, 240, 214, 0.9);
    line-height: 1.8;
}

.user-cloud-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.user-cloud-actions .moon-action-row.vertical {
    flex-direction: column;
}

.user-cloud-actions .user-status-log {
    margin-top: 0;
}

.user-shop-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.user-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.user-exchange-shell {
    display: grid;
    gap: 18px;
}

.user-exchange-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 239, 210, 0.08);
    background: linear-gradient(180deg, rgba(255, 236, 207, 0.06), rgba(255, 236, 207, 0.03));
    box-shadow: inset 0 0 0 1px rgba(255, 239, 210, 0.04);
}

.user-exchange-toolbar-copy {
    display: grid;
    gap: 10px;
}

.user-exchange-toolbar-copy strong {
    font-size: 26px;
    line-height: 1.12;
}

.user-exchange-toolbar-copy span {
    color: var(--moon-muted);
    font-size: 15px;
    line-height: 1.8;
}

.user-exchange-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.user-exchange-card {
    display: grid;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 239, 210, 0.08);
    background: linear-gradient(180deg, rgba(255, 236, 207, 0.06), rgba(255, 236, 207, 0.03));
    box-shadow: inset 0 0 0 1px rgba(255, 239, 210, 0.04);
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.user-exchange-card:hover,
.user-exchange-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 223, 171, 0.26);
    box-shadow: inset 0 0 0 1px rgba(255, 239, 210, 0.06), 0 22px 36px rgba(0, 0, 0, 0.18);
}

.user-exchange-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.user-exchange-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.12;
}

.user-exchange-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.user-exchange-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 225, 171, 0.12);
    color: rgba(255, 239, 210, 0.94);
    font-size: 13px;
    font-weight: 700;
}

.user-exchange-price {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.user-exchange-price img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.user-exchange-price strong {
    font-size: 30px;
    color: var(--moon-gold);
}

.user-exchange-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.user-exchange-meta-row {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(68, 30, 12, 0.46);
}

.user-exchange-meta-row span {
    color: var(--moon-muted);
    font-size: 14px;
}

.user-exchange-meta-row strong {
    font-size: 18px;
    line-height: 1.5;
}

.user-exchange-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.user-exchange-foot-note {
    color: rgba(255, 238, 211, 0.74);
    font-size: 14px;
}

.user-exchange-empty {
    padding: 42px 24px;
    border-radius: 28px;
    border: 1px dashed rgba(255, 239, 210, 0.16);
    background: rgba(68, 30, 12, 0.28);
}

.user-exchange-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.user-exchange-detail-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(68, 30, 12, 0.42);
    color: rgba(255, 238, 211, 0.92);
    line-height: 1.75;
}

.user-mail-list {
    display: grid;
    gap: 18px;
}

.user-mail-pagination {
    justify-content: flex-start;
}

.user-mail-card {
    display: grid;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 239, 210, 0.08);
    background: linear-gradient(180deg, rgba(255, 236, 207, 0.06), rgba(255, 236, 207, 0.03));
    box-shadow: inset 0 0 0 1px rgba(255, 239, 210, 0.04);
}

.user-mail-card.is-claimed {
    opacity: 0.92;
}

.user-mail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.user-mail-head strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.user-mail-head span {
    color: var(--moon-muted);
    font-size: 14px;
}

.user-mail-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.user-mail-status.is-unread {
    background: rgba(239, 68, 68, 0.18);
    color: #ffd4d4;
}

.user-mail-status.is-read {
    background: rgba(245, 158, 11, 0.16);
    color: #ffe4b0;
}

.user-mail-status.is-claimed {
    background: rgba(34, 197, 94, 0.18);
    color: #d8ffe3;
}

.user-mail-body {
    margin: 0;
    color: rgba(255, 238, 211, 0.86);
    font-size: 16px;
    line-height: 1.8;
}

.user-mail-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.user-mail-foot time {
    color: var(--moon-muted);
    font-size: 14px;
}

.user-shop-card {
    display: grid;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.user-shop-card:hover,
.user-shop-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 223, 171, 0.26);
    box-shadow: inset 0 0 0 1px rgba(255, 239, 210, 0.06), 0 22px 36px rgba(0, 0, 0, 0.18);
}

.user-shop-thumb {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(73, 34, 14, 0.46);
    display: grid;
    place-items: center;
}

.user-shop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-shop-title {
    font-size: 28px;
    line-height: 1.18;
    margin: 0;
}

.user-shop-summary {
    color: var(--moon-muted);
    font-size: 16px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.user-shop-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    color: rgba(255, 239, 210, 0.94);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.user-shop-cta::before,
.user-shop-cta::after {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 217, 152, 0), rgba(255, 217, 152, 0.8), rgba(255, 217, 152, 0));
}

.user-shop-price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-shop-price del {
    color: rgba(245, 224, 192, 0.44);
}

.user-shop-price strong {
    font-size: 30px;
}

.user-diamond-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-diamond-inline img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.user-shop-content-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.user-shop-content-item {
    padding: 14px;
    border-radius: 18px;
    background: rgba(68, 30, 12, 0.48);
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
}

.user-shop-content-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.user-shop-detail-head {
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.user-shop-media {
    display: grid;
    gap: 14px;
}

.user-shop-thumb-large {
    min-height: 240px;
}

.user-shop-thumb-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.user-shop-summary-full {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(68, 30, 12, 0.42);
    color: var(--moon-muted);
    font-size: 16px;
    line-height: 1.85;
}

.user-shop-detail-copy {
    display: grid;
    gap: 16px;
}

.user-shop-detail-copy h3 {
    margin: 0;
    font-size: 44px;
    line-height: 1.08;
}

.user-shop-detail-copy p {
    margin: 0;
    color: var(--moon-muted);
    font-size: 18px;
    line-height: 1.8;
}

.user-quantity-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.user-quantity-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(68, 30, 12, 0.5);
}

.user-quantity-box button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(244, 215, 154, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--moon-text);
    font: inherit;
    font-size: 24px;
    cursor: pointer;
}

.user-quantity-box strong {
    min-width: 44px;
    text-align: center;
    font-size: 28px;
}

.user-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.user-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 3, 1, 0.7);
    backdrop-filter: blur(4px);
}

.user-modal-card {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    margin: 12px auto;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(244, 215, 154, 0.18);
    background: linear-gradient(180deg, rgba(56, 27, 11, 0.96), rgba(75, 41, 20, 0.94));
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.user-modal-card.is-support-modal {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 24px);
    overflow: hidden;
}

.user-modal-card.is-support-modal #userModalContent {
    flex: 1;
    min-height: 0;
}

.user-modal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(244, 215, 154, 0.18);
    border-radius: 18px;
    background: rgba(68, 30, 12, 0.72);
    color: var(--moon-text);
    font: inherit;
    font-size: 34px;
    cursor: pointer;
}

.user-hero-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--moon-muted);
}

.user-message {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(68, 30, 12, 0.52);
    color: var(--moon-text);
}

.support-user-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: contain;
}

.support-user-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-right: 62px;
}

.support-user-head-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 236, 207, 0.12);
    flex: 0 0 auto;
}

.support-user-head h3 {
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
}

.support-user-head p {
    margin: 10px 0 0;
    color: var(--moon-muted);
    font-size: 16px;
    line-height: 1.7;
}

.support-user-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    overflow: hidden;
}

.support-user-sidebar,
.support-user-chat,
.support-user-create {
    border: 1px solid rgba(255, 239, 210, 0.08);
    border-radius: 24px;
    background: rgba(68, 30, 12, 0.36);
    box-shadow: inset 0 0 0 1px rgba(255, 239, 210, 0.04);
}

.support-user-sidebar {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    min-height: 0;
}

.support-user-new {
    width: 100%;
}

.support-user-list {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
}

.support-user-thread {
    position: relative;
    display: grid;
    gap: 7px;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(244, 215, 154, 0.12);
    border-radius: 18px;
    background: rgba(46, 20, 7, 0.52);
    color: var(--moon-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.support-user-thread.active,
.support-user-thread:hover,
.support-user-thread:focus-visible {
    border-color: rgba(255, 224, 171, 0.32);
    background: linear-gradient(180deg, rgba(255, 236, 207, 0.12), rgba(255, 236, 207, 0.05));
}

.support-user-thread span,
.support-user-thread small,
.support-user-thread em {
    color: var(--moon-muted);
    font-size: 13px;
    line-height: 1.45;
    font-style: normal;
}

.support-user-thread strong {
    padding-right: 42px;
    font-size: 17px;
    line-height: 1.35;
}

.support-user-thread b {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff6b6b 0%, #cf3f3f 100%);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    animation: userBadgePulse 1.5s ease-in-out infinite;
}

.support-user-chat {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.support-user-chat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 239, 210, 0.08);
}

.support-user-chat-head span {
    display: block;
    margin-bottom: 8px;
    color: var(--moon-muted);
    font-size: 13px;
}

.support-user-chat-head strong {
    display: block;
    font-size: 22px;
    line-height: 1.35;
}

.support-user-chat-head em {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 225, 171, 0.12);
    color: var(--moon-gold);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.support-user-messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 20px;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.support-user-message {
    max-width: min(78%, 680px);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
}

.support-user-message.mine {
    align-self: flex-end;
    grid-template-columns: minmax(0, 1fr) 42px;
}

.support-user-message.service {
    align-self: flex-start;
}

.support-user-message > div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--moon-muted);
    font-size: 13px;
}

.support-user-avatar {
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 236, 207, 0.12);
}

.support-user-message.mine > div {
    justify-content: flex-end;
    grid-column: 1;
}

.support-user-message.mine .support-user-avatar {
    grid-column: 2;
}

.support-user-message p {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 236, 207, 0.09);
    color: rgba(255, 245, 230, 0.96);
    line-height: 1.75;
    word-break: break-word;
}

.support-user-message.mine p {
    justify-self: end;
    background: linear-gradient(180deg, #f7deb0 0%, #efc66e 100%);
    color: #4f2b11;
}

.support-user-reply {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid rgba(255, 239, 210, 0.08);
}

.support-user-reply textarea,
.support-user-create textarea,
.support-user-create input,
.support-user-create select {
    width: 100%;
    border: 1px solid rgba(248, 226, 188, 0.18);
    border-radius: 18px;
    background: rgba(255, 249, 239, 0.92);
    color: #56341b;
    font: inherit;
    font-size: 16px;
}

.support-user-reply textarea {
    min-height: 74px;
    padding: 14px 16px;
    resize: vertical;
}

.support-user-create {
    display: grid;
    gap: 14px;
    max-height: min(42vh, 360px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 18px;
}

.support-user-create label {
    display: grid;
    gap: 10px;
    color: var(--moon-muted);
    font-size: 15px;
}

.support-user-create input,
.support-user-create select {
    min-height: 54px;
    padding: 0 16px;
}

.support-user-create textarea {
    min-height: 132px;
    padding: 14px 16px;
    resize: vertical;
}

.support-user-status,
.support-user-empty {
    padding: 18px;
    border-radius: 18px;
    background: rgba(68, 30, 12, 0.42);
    color: var(--moon-muted);
    line-height: 1.7;
}

.support-user-status:empty {
    display: none;
}

.support-user-resolution {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 12px 0 4px;
}

.moon-service-nav::-webkit-scrollbar,
.moon-service-content::-webkit-scrollbar,
.user-modal-card::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.moon-service-nav::-webkit-scrollbar-track,
.moon-service-content::-webkit-scrollbar-track,
.user-modal-card::-webkit-scrollbar-track {
    background: rgba(58, 28, 12, 0.38);
    border-radius: 999px;
}

.moon-service-nav::-webkit-scrollbar-thumb,
.moon-service-content::-webkit-scrollbar-thumb,
.user-modal-card::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(243, 215, 159, 0.8), rgba(239, 197, 107, 0.58));
    border: 2px solid rgba(58, 28, 12, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 239, 210, 0.12);
}

@keyframes marqueeRun {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes moonParticleFloat {
    0% { transform: translate3d(0, 0, 0); opacity: 0; }
    10% { opacity: 0.7; }
    50% { transform: translate3d(0, -24px, 0); opacity: 0.9; }
    100% { transform: translate3d(0, -50px, 0); opacity: 0; }
}

@keyframes fireflyPulse {
    0%, 100% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.55; }
    50% { transform: translate3d(4px, -3px, 0) scale(1.1); opacity: 1; }
}

@keyframes sweepLight {
    0% { transform: translateX(0) skewX(-18deg); }
    100% { transform: translateX(460%) skewX(-18deg); }
}

@keyframes userBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 14px rgba(207, 63, 63, 0.28); }
    50% { transform: scale(1.08); box-shadow: 0 8px 18px rgba(255, 92, 92, 0.42); }
}

@media (max-width: 1180px) {
    .user-stage-header {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 14px;
        padding: 14px 18px 16px 18px;
    }

    .moon-stage-header-brand {
        min-width: 0;
    }

    .user-header-actions,
    .user-mail-shortcut {
        justify-self: start;
    }

    .moon-stage-header-marquee {
        width: 100%;
    }

    .user-stage-shell {
        grid-template-columns: 1fr;
        height: calc(100vh - 132px);
        min-height: 0;
        overflow: hidden;
    }

    .moon-service-nav {
        order: 2;
        overflow-y: auto;
        overflow-x: visible;
    }

    .moon-service-main {
        order: 1;
        overflow: hidden;
    }

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

    .user-exchange-grid {
        grid-template-columns: 1fr;
    }

    .user-exchange-meta {
        grid-template-columns: 1fr;
    }

    .user-exchange-detail-grid {
        grid-template-columns: 1fr;
    }

    .user-cloud-layout {
        grid-template-columns: 1fr;
    }

    .user-cloud-metrics {
        grid-template-columns: 1fr;
    }

    .support-user-layout {
        grid-template-columns: 1fr;
    }

    .support-user-sidebar {
        max-height: 320px;
    }
}

@media (max-width: 900px) {
    .moon-service-topbar,
    .user-shop-detail-head,
    .user-field-row,
    .moon-summary-grid,
    .moon-detail-grid,
    .user-shop-layout {
        grid-template-columns: 1fr;
        display: grid;
    }

    .moon-service-topbar {
        gap: 16px;
    }

    .moon-service-topbar,
    .user-mail-foot,
    .user-mail-head {
        align-items: flex-start;
    }

    .moon-service-userpill {
        min-width: 0;
        text-align: left;
    }

    .mode-switch-button {
        min-width: 120px;
        height: 56px;
    }

    .user-exchange-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .support-user-head,
    .support-user-chat-head {
        flex-direction: column;
        align-items: stretch;
    }

    .support-user-reply {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .user-page {
        padding: 8px;
    }

    .user-page::before {
        inset: 74px 8px 8px;
    }

    .user-stage-header {
        top: 6px;
        border-radius: 22px 22px 0 0;
    }

    .moon-service-main,
    .moon-service-nav,
    .user-modal-card {
        padding: 18px;
    }

    .moon-stage-brand-copy strong {
        font-size: 24px;
    }

    .moon-stage-brand-copy span {
        letter-spacing: 0.08em;
    }

    .moon-service-topbar h2 {
        font-size: 32px;
    }

    .moon-service-topbar p,
    .user-shop-detail-copy p {
        font-size: 16px;
    }

    .user-mail-head,
    .user-mail-foot {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .user-exchange-head,
    .user-exchange-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .support-user-message {
        max-width: 100%;
    }

    .user-ranking-row {
        grid-template-columns: 56px minmax(0, 1fr) 100px;
    }

    .moon-action-row,
    .hero-actions,
    .user-quantity-row {
        flex-direction: column;
        align-items: stretch;
    }

    .moon-service-content {
        padding-right: 8px;
    }
}

@keyframes moonNavSparkA {
    0% { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
    18% { opacity: 0.95; }
    100% { transform: translate3d(-26px, -10px, 0) scale(1.08); opacity: 0; }
}
@keyframes moonNavSparkB {
    0% { transform: translate3d(0, 0, 0) scale(0.65); opacity: 0; }
    22% { opacity: 0.9; }
    100% { transform: translate3d(-18px, 13px, 0) scale(1.05); opacity: 0; }
}
@keyframes moonNavSparkC {
    0% { transform: translate3d(0, 0, 0) scale(0.75); opacity: 0; }
    14% { opacity: 0.92; }
    100% { transform: translate3d(-34px, 3px, 0) scale(1.16); opacity: 0; }
}
@keyframes moonNavSparkD {
    0% { transform: translate3d(0, 0, 0) scale(0.62); opacity: 0; }
    20% { opacity: 0.88; }
    100% { transform: translate3d(-22px, -17px, 0) scale(1.1); opacity: 0; }
}
@keyframes moonNavSparkE {
    0% { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
    16% { opacity: 0.95; }
    100% { transform: translate3d(-30px, 11px, 0) scale(1.12); opacity: 0; }
}
@keyframes moonNavSparkF {
    0% { transform: translate3d(0, 0, 0) scale(0.68); opacity: 0; }
    19% { opacity: 0.9; }
    100% { transform: translate3d(-16px, -13px, 0) scale(1.05); opacity: 0; }
}
@keyframes moonNavSparkG {
    0% { transform: translate3d(0, 0, 0) scale(0.72); opacity: 0; }
    18% { opacity: 0.94; }
    100% { transform: translate3d(-36px, -4px, 0) scale(1.18); opacity: 0; }
}
@keyframes moonNavSparkH {
    0% { transform: translate3d(0, 0, 0) scale(0.66); opacity: 0; }
    24% { opacity: 0.84; }
    100% { transform: translate3d(-26px, 18px, 0) scale(1.08); opacity: 0; }
}
@keyframes moonNavSparkI {
    0% { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
    18% { opacity: 0.9; }
    100% { transform: translate3d(-28px, -15px, 0) scale(1.12); opacity: 0; }
}
@keyframes moonNavSparkJ {
    0% { transform: translate3d(0, 0, 0) scale(0.64); opacity: 0; }
    20% { opacity: 0.86; }
    100% { transform: translate3d(-20px, 16px, 0) scale(1.06); opacity: 0; }
}
