@font-face {
    font-family: 'Minecrafter';
    src: url('/cdn/fonts/minecrafter/Minecrafter.Reg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kamran';
    src: url('/cdn/fonts/kamran/Kamran.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kamran Digits';
    src: url('/cdn/fonts/shabnam/Shabnam.woff2') format('woff2');
    font-weight: 100 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039;
}

@font-face {
    font-family: 'Kamran Digits';
    src: url('/cdn/fonts/shabnam/Shabnam-Bold.woff2') format('woff2');
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039;
}

body {
    background-color: #141516;
    color: #e3e0f2;
    font-family: 'Kamran Digits', 'Kamran', 'Shabnam', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    word-spacing: 0.03em;
    overflow-x: hidden;
}

:root {
    --motion-fast: 160ms;
    --motion-base: 260ms;
    --motion-slow: 420ms;
    --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --motion-pop: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    opacity: 1;
    transition:
        opacity var(--motion-slow) var(--motion-ease),
        background-color var(--motion-base) var(--motion-ease),
        color var(--motion-base) var(--motion-ease);
}

body.motion-leaving {
    opacity: 0;
}

.luna-message {
    --luna-message-border: rgba(144, 156, 255, 0.48);
    --luna-message-bg: rgba(18, 19, 21, 0.88);
    --luna-message-text: #d7d9ff;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: 2px solid var(--luna-message-border);
    border-radius: 14px;
    background: var(--luna-message-bg);
    color: var(--luna-message-text);
    font-family: 'Kamran Digits', 'Kamran', 'Shabnam', sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    box-shadow:
        inset 0 0 16px rgba(255, 255, 255, 0.045),
        0 0 22px color-mix(in srgb, var(--luna-message-text) 20%, transparent);
}

.luna-message[data-type="info"],
.luna-message.is-info {
    --luna-message-border: rgba(84, 184, 255, 0.46);
    --luna-message-bg: rgba(0, 132, 255, 0.1);
    --luna-message-text: #75c7ff;
}

.luna-message[data-type="success"],
.luna-message.is-success {
    --luna-message-border: rgba(77, 219, 145, 0.46);
    --luna-message-bg: rgba(32, 180, 104, 0.1);
    --luna-message-text: #81e6ad;
}

.luna-message[data-type="error"],
.luna-message.is-error {
    --luna-message-border: rgba(255, 91, 76, 0.52);
    --luna-message-bg: rgba(255, 42, 13, 0.1);
    --luna-message-text: #ff7a64;
}

.luna-message.is-hint {
    justify-content: flex-start;
    padding: 8px 12px;
    border-width: 1px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.luna-message.is-compact {
    min-height: 28px;
    padding: 6px 10px;
    border-width: 1px;
    border-radius: 9px;
    font-size: 12px;
}

.luna-message.hidden,
.luna-message[hidden] {
    display: none;
}

.luna-message :where(.material-symbols-outlined, p, span) {
    color: inherit;
}

.luna-toast,
.luna-copy-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 9999;
    transform: translate(-50%, 18px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    min-width: min(320px, calc(100vw - 32px));
    max-width: min(560px, calc(100vw - 32px));
    padding: 12px 22px;
    border: 2px solid var(--luna-message-border, rgba(144, 156, 255, 0.52));
    border-radius: 18px;
    background: rgba(18, 19, 21, 0.94);
    color: var(--luna-message-text, #d7d9ff);
    font-family: 'Kamran Digits', 'Kamran', 'Shabnam', sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    box-shadow:
        inset 0 0 16px rgba(255, 255, 255, 0.05),
        0 0 24px color-mix(in srgb, var(--luna-message-text, #d7d9ff) 20%, transparent);
    transition:
        opacity 360ms var(--motion-ease),
        transform 360ms var(--motion-pop),
        filter 360ms var(--motion-ease);
    will-change: opacity, transform;
}

.luna-toast[data-type="info"],
.luna-copy-toast {
    --luna-message-border: rgba(84, 184, 255, 0.48);
    --luna-message-text: #75c7ff;
}

.luna-toast[data-type="success"] {
    --luna-message-border: rgba(77, 219, 145, 0.48);
    --luna-message-text: #81e6ad;
}

.luna-toast[data-type="error"] {
    --luna-message-border: rgba(255, 91, 76, 0.54);
    --luna-message-text: #ff7a64;
}

.luna-toast.is-visible,
.luna-copy-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

:where(a, button, input, textarea, select, summary, [role="button"]) {
    transition-duration: var(--motion-base);
    transition-timing-function: var(--motion-ease);
}

:where(a, button, [role="button"]) {
    box-sizing: border-box;
}

:where(a, button, input, textarea, select):focus-visible {
    outline: 2px solid #b4b4ff;
    outline-offset: 3px;
}

.border-b-4.hover\:border-b-2:hover {
    border-bottom-width: 4px !important;
}

.border-b-4.hover\:border-b-2:active {
    border-bottom-width: 4px !important;
}

:where(.glass-panel, .bg-surface-container, .bg-surface-container-low, .bg-surface-container-high, .bg-surface-container-highest) {
    transition:
        background-color var(--motion-base) var(--motion-ease),
        border-color var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease),
        transform var(--motion-base) var(--motion-ease),
        opacity var(--motion-base) var(--motion-ease);
}

.motion-managed {
    transform-origin: top center;
    will-change: opacity, transform, height;
}

.motion-modal {
    transform-origin: center;
}

.store-modal-backdrop {
    opacity: 0;
    transition: opacity var(--motion-base) var(--motion-ease);
}

.store-modal-panel {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition:
        opacity 300ms var(--motion-pop),
        transform 300ms var(--motion-pop);
}

.store-modal-open .store-modal-backdrop,
.store-modal-open .store-modal-panel {
    opacity: 1;
}

.store-modal-open .store-modal-panel {
    transform: translateY(0) scale(1);
}

.store-modal-closing .store-modal-backdrop,
.store-modal-closing .store-modal-panel {
    opacity: 0;
}

.store-modal-closing .store-modal-panel {
    transform: translateY(12px) scale(0.97);
}

.motion-stagger > * {
    opacity: 0;
    transform: translateY(14px);
    animation: motion-stagger-in var(--motion-slow) var(--motion-pop) forwards;
    animation-delay: calc(var(--motion-index, 0) * 45ms);
}

@keyframes motion-stagger-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

::selection {
    background-color: #0084ff;
    color: #1a1a55;
}

:root {
    color-scheme: dark;
    --luna-bg: #141516;
    --luna-panel: rgba(19, 19, 20, 0.86);
    --luna-panel-solid: #151616;
    --luna-line: rgba(255, 255, 255, 0.25);
    --luna-blue: #0084ff;
    --luna-blue-soft: #11d4ff;
    --luna-yellow: #ffb019;
    --luna-muted: #9a9a9a;
    --luna-radius-lg: 33px;
    --luna-radius-xl: 50px;

    /* ── Button system ────────────────────────────────────────────────
       Every button draws its geometry and motion from these tokens.
       The groups (primary / secondary / danger / icon / tab / pagination
       / chip) differ in colour and weight — never in size rhythm, corner
       radius, or timing. Change a value here and the whole site follows.
       Sizes step xs → sm → md → lg → xl; pick one step per button and
       take the matching height, padding, radius, label and icon from it.
    */

    /* Height */
    --btn-h-xs: 28px;
    --btn-h-sm: 34px;
    --btn-h-md: 40px;
    --btn-h-lg: 48px;
    --btn-h-xl: 58px;

    /* Inline padding */
    --btn-px-xs: 10px;
    --btn-px-sm: 14px;
    --btn-px-md: 18px;
    --btn-px-lg: 24px;
    --btn-px-xl: 32px;

    /* Corner radius */
    --btn-r-xs: 8px;
    --btn-r-sm: 10px;
    --btn-r-md: 12px;
    --btn-r-lg: 14px;
    --btn-r-xl: 16px;
    --btn-r-pill: 999px;

    /* Label size — tuned for Persian, which reads small at a given px */
    --btn-fs-xs: 13px;
    --btn-fs-sm: 14px;
    --btn-fs-md: 16px;
    --btn-fs-lg: 17px;
    --btn-fs-xl: 19px;

    /* Icon size */
    --btn-icon-xs: 16px;
    --btn-icon-sm: 18px;
    --btn-icon-md: 20px;
    --btn-icon-lg: 22px;
    --btn-icon-xl: 24px;

    /* Icon-to-label gap */
    --btn-gap-xs: 4px;
    --btn-gap-sm: 6px;
    --btn-gap-md: 8px;
    --btn-gap-lg: 10px;
    --btn-gap-xl: 12px;

    --btn-weight: 800;

    /* Depth — the solid bottom edge that gives Luna buttons their body */
    --btn-depth-sm: 3px;
    --btn-depth-md: 4px;
    --btn-depth-lg: 5px;

    /* Motion — one language for every button */
    --btn-dur: 200ms;
    --btn-dur-press: 110ms;
    --btn-ease: var(--motion-ease);
    --btn-ease-pop: var(--motion-pop);
    --btn-lift: 2px;        /* hover rise, standard */
    --btn-lift-lg: 3px;     /* hover rise, hero and card-sized CTAs */
    --btn-scale: 1.02;      /* hover scale, used with a lift, never alone */
    --btn-press: 1px;       /* how far a button sinks while held */
    --btn-glow: 1.06;       /* hover brightness for solid fills */
    --btn-transition:
        transform var(--btn-dur) var(--btn-ease-pop),
        background var(--btn-dur) var(--btn-ease),
        border-color var(--btn-dur) var(--btn-ease),
        color var(--btn-dur) var(--btn-ease),
        box-shadow var(--btn-dur) var(--btn-ease),
        filter var(--btn-dur) var(--btn-ease),
        opacity var(--btn-dur) var(--btn-ease);

    /* Focus ring — identical on every group. An outline (not a shadow) so
       it composes with each group's depth edge instead of replacing it. */
    --btn-focus-color: rgba(17, 212, 255, 0.9);
    --btn-focus-width: 2px;
    --btn-focus-offset: 1px;

    /* Disabled — one treatment everywhere */
    --btn-disabled-opacity: 0.45;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(20, 21, 22, 0.2), #141516 65%),
        url("/figma/main-overlay.png") center top / min(100vw, 1920px) auto no-repeat,
        #141516;
    opacity: 0.92;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: auto 0 0;
    height: 360px;
    z-index: -1;
    background: url("/figma/main-bottom-bg.png") center bottom / cover no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

body.luna-home-page::before {
    background: #141516;
    opacity: 1;
}

body.luna-home-page::after {
    display: none;
}

body.luna-auth-page::before {
    background:
        linear-gradient(180deg, rgba(20, 21, 22, 0.72), rgba(20, 21, 22, 0.9)),
        url("/figma/auth-bg.png") center top / cover no-repeat,
        #141516;
    opacity: 1;
}

body.luna-store-page {
    background: #141516;
}

body.luna-store-page::before {
    position: absolute;
    inset: 0 0 auto 0;
    height: min(100vh, 900px);
    background:
        linear-gradient(180deg, rgba(20, 21, 22, 0.46), #141516 94%),
        url("/figma/store-bg.png") center top / cover no-repeat,
        transparent;
    opacity: 0.98;
}

body.luna-dashboard::before,
body.luna-ticket-page::before {
    background:
        linear-gradient(180deg, rgba(20, 21, 22, 0.62), rgba(20, 21, 22, 0.94)),
        url("/figma/auth-bg.png") center top / cover no-repeat,
        #141516;
    opacity: 1;
}

nav.fixed {
    top: 22px;
    left: 50%;
    width: min(calc(100% - 44px), 1828px);
    transform: translateX(-50%);
    border: 3px solid rgba(255,255,255,0.5) !important;
    border-radius: var(--luna-radius-lg);
    background: rgba(27,27,27,0.5) !important;
    box-shadow: none !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

nav.fixed > div {
    max-width: none !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
}

nav.fixed .h-16 {
    height: 82px;
}

nav.fixed .luna-nav-logo,
nav.fixed .luna-nav-auth {
    flex: 0 0 clamp(132px, 14vw, 220px);
}

nav.fixed .luna-nav-links {
    flex: 1 1 auto;
    justify-content: center;
    gap: clamp(14px, 1.65vw, 34px) !important;
    min-width: 0;
}

nav.fixed .luna-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(62px, 7.5vw, 112px);
    min-height: 36px;
    padding: 4px 8px;
    white-space: nowrap;
    text-align: center;
}

nav.fixed .luna-auth-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    min-width: 138px;
    min-height: 44px;
    padding: 0 16px !important;
    line-height: 1 !important;
    white-space: nowrap;
}

nav.fixed .luna-nav-account {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 92px;
    min-height: 38px;
    padding: 0 14px !important;
    line-height: 1 !important;
    white-space: nowrap;
}

nav.fixed .luna-auth-cta-label {
    display: block !important;
    line-height: 1;
}

nav.fixed #nav-auth-mobile .luna-auth-cta {
    width: 100%;
    min-width: 100%;
}

nav.fixed #nav-auth-mobile .luna-nav-account {
    width: 100%;
}

nav.fixed .luna-nav-logo {
    direction: ltr;
    justify-content: flex-start;
    gap: 10px !important;
    min-width: clamp(142px, 15vw, 210px);
    padding-left: clamp(12px, 1.4vw, 26px);
}

nav.fixed img[src="/luna_logo.png"] {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    object-fit: contain;
    flex: 0 0 auto;
}

nav.fixed .luna-nav-logo .luna-nav-brand-word {
    display: inline-block !important;
    font-family: 'Minecrafter', 'MinecraftiaRegular', 'Minecraftia', 'Courier New', monospace;
    font-size: clamp(19px, 1.7vw, 28px);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: white;
    line-height: 1.35;
    text-transform: none;
    -webkit-text-stroke: 0;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.85), 0 0 44px #70c8ff;
}

nav.fixed .luna-nav-logo .luna-nav-brand-word span {
    display: inline !important;
    color: #00c8ff;
}

nav.fixed .hidden.md\:flex.items-center.gap-8,
nav.fixed .hidden.md\:flex.items-center.gap-4 {
    gap: clamp(20px, 2.6vw, 58px) !important;
}

nav.fixed a,
nav.fixed button {
    border-radius: 16px !important;
    color: white;
    font-size: 16px !important;
    line-height: 1.25;
    word-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255,255,255,0.42);
}

nav.fixed a[aria-current="page"],
nav.fixed a.text-brand.border-b-2,
nav.fixed a[href="#"].text-brand,
nav.fixed a[href="/store"].text-brand {
    border: 0 !important;
    color: var(--luna-blue-soft) !important;
    text-shadow: 0 0 14.5px #00d1ff;
}

nav.fixed a[href="/store"][aria-current="page"],
nav.fixed a[href="/store"].text-brand,
nav.fixed a[href="/store"]:hover,
nav.fixed a[href="/store"]:focus-visible {
    color: #FFD64E !important;
    text-shadow: 0 0 14.5px #FFB120 !important;
    box-shadow: none !important;
}

nav.fixed a[href="/weblog"]:hover,
nav.fixed a[href="/weblog"]:focus-visible,
nav.fixed a[href="/weblog"][aria-current="page"],
nav.fixed a[href="/weblog"].text-brand,
nav.fixed a[href="/leaderboard"]:hover,
nav.fixed a[href="/leaderboard"]:focus-visible,
nav.fixed a[href="/leaderboard"][aria-current="page"],
nav.fixed a[href="/leaderboard"].text-brand {
    color: #C444FF !important;
    text-shadow: 0 0 14.5px #BB28FF !important;
    box-shadow: none !important;
}

/* The navbar CTA. A compact member of the primary group: same gradient and
   depth idiom as every other primary button, one size step down. */
nav.fixed .luna-nav-account,
.luna-blue-button {
    --btn-depth-rest: var(--btn-depth-md);
    --btn-depth: var(--btn-depth-rest);
    --btn-edge: #003f7a;
    --btn-halo: rgba(0, 132, 255, 0.38);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--btn-h-sm);
    padding-inline: var(--btn-px-sm);
    border: 0 !important;
    border-radius: var(--btn-r-sm) !important;
    background: linear-gradient(180deg, #64acff 0%, #0077ff 82%) !important;
    color: #08121c !important;
    font-size: var(--btn-fs-sm);
    font-weight: var(--btn-weight);
    box-shadow:
        inset 0 3px 5px rgba(255, 255, 255, 0.42),
        0 var(--btn-depth) 0 var(--btn-edge),
        0 0 22px var(--btn-halo);
    text-shadow: none !important;
    transition: var(--btn-transition);
}

@media (hover: hover) {
    nav.fixed .luna-nav-account:hover,
    .luna-blue-button:hover {
        --btn-depth: calc(var(--btn-depth-rest) + var(--btn-lift));
        transform: translateY(calc(-1 * var(--btn-lift)));
        filter: brightness(var(--btn-glow));
    }
}

nav.fixed .luna-nav-account:active,
.luna-blue-button:active {
    --btn-depth: max(0px, calc(var(--btn-depth-rest) - var(--btn-press)));
    transform: translateY(var(--btn-press));
    transition-duration: var(--btn-dur-press);
}

.luna-hero {
    --hero-fs: clamp(44px, 5.2vw, 88px);
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 170px 24px 72px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.luna-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, #141516 0%, rgba(20, 21, 22, 0.82) 9%, rgba(20, 21, 22, 0.34) 24%, transparent 42%),
        radial-gradient(circle at 50% 30%, rgba(0, 132, 255, 0.09), transparent 38%),
        linear-gradient(90deg, rgba(20, 21, 22, 0.22) 0%, transparent 20%, transparent 80%, rgba(20, 21, 22, 0.22) 100%),
        linear-gradient(180deg, rgba(20, 21, 22, 0.3) 0%, rgba(20, 21, 22, 0.42) 58%, rgba(20, 21, 22, 0.24) 100%);
    pointer-events: none;
}

.luna-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 1600ms var(--motion-ease), transform 8000ms ease;
    pointer-events: none;
}

.luna-hero-bg-active {
    opacity: 0.4;
    transform: scale(1.045);
}

.luna-hero-content {
    width: min(100%, 760px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* The pill and subtitle are sized entirely in em off --hero-fs so the
   artwork keeps its exact proportions at every breakpoint. */
.luna-hero-title {
    position: relative;
    display: inline-block;
    max-width: min(100%, 900px);
    padding: 0.4457em 0.3572em 0.1196em;
    border-radius: 1.3913em;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.035) 10%,
        rgba(255, 255, 255, 0.07) 20%,
        rgba(255, 255, 255, 0.116) 30%,
        rgba(255, 255, 255, 0.168) 40%,
        rgba(255, 255, 255, 0.224) 50%,
        rgba(255, 255, 255, 0.288) 60%,
        rgba(255, 255, 255, 0.359) 70%,
        rgba(255, 255, 255, 0.428) 80%,
        rgba(255, 255, 255, 0.51) 90%,
        rgba(255, 255, 255, 0.514) 100%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    font-family: 'Shabnam', sans-serif;
    font-weight: 700;
    font-size: var(--hero-fs, clamp(44px, 5.2vw, 88px));
    line-height: 1.339;
    color: #fff;
    text-shadow: 0 0 0.2em rgba(0, 0, 0, 0.5);
}

/* Bright rim, fading out toward the inline-start edge like the fill. */
.luna-hero-title::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 0.0304em;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 10%,
        rgba(255, 255, 255, 0.102) 20%,
        rgba(255, 255, 255, 0.18) 30%,
        rgba(255, 255, 255, 0.274) 40%,
        rgba(255, 255, 255, 0.389) 50%,
        rgba(255, 255, 255, 0.535) 60%,
        rgba(255, 255, 255, 0.719) 70%,
        rgba(255, 255, 255, 0.75) 75%,
        rgba(255, 255, 255, 0.75) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.luna-hero-title strong {
    color: #00aaff;
    font-weight: 700;
}

.luna-blue-gradient {
    color: var(--luna-blue-soft);
    text-shadow: 0 0 42px #006fff;
}

.luna-hero-subtitle {
    max-width: 17em;
    margin: 1.5634em auto 28px;
    font-family: 'Shabnam', sans-serif;
    font-size: calc(var(--hero-fs, clamp(44px, 5.2vw, 88px)) * 0.4957);
    font-weight: 700;
    line-height: 1.3596;
    color: transparent;
    background: linear-gradient(180deg, #fff 22%, #c0c0c0 81%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 1.6em rgba(0, 0, 0, 0.8);
}

.luna-actions {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 520px;
    margin-inline: auto;
}

.luna-ip-pill,
.luna-player-pill,
.luna-primary-pill {
    min-height: 58px;
    border-radius: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
}

.luna-ip-pill,
.luna-player-pill {
    background: rgba(20,20,20,0.71);
    color: #fff;
    box-shadow: inset 0 4px 5.9px rgba(255,255,255,0.55);
    text-shadow: 0 0 35px #fff;
}

.luna-primary-pill {
    order: -1;
    grid-column: 1 / -1;
    justify-self: center;
    width: max-content;
    margin-inline: auto;
    background: linear-gradient(180deg, #64acff 0%, #0077ff 78.5%);
    color: #0f1a24;
    box-shadow: inset 0 4px 5.9px rgba(255,255,255,0.75), 0 var(--btn-depth) 0 var(--btn-edge), 0 0 44px #006fff;
}

.luna-section {
    width: min(100% - 32px, 1320px);
    margin: 0 auto;
    padding: 82px 0;
}

.luna-section-title {
    position: relative;
    margin-bottom: 52px;
    text-align: center;
    font-size: clamp(34px, 3.9vw, 70px);
    font-weight: 700;
    line-height: 1.22;
    color: transparent;
    background: linear-gradient(180deg, #75beff 4%, #0087ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 31px #2197ff, 0 0 14px rgba(0,0,0,0.68);
}

.luna-section-title::after {
    content: "";
    display: block;
    width: 168px;
    height: 28px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, transparent 0 8%, #1b9dff 8% 62%, transparent 62%),
        linear-gradient(135deg, transparent 0 40%, #1b9dff 40% 53%, transparent 53%),
        linear-gradient(45deg, transparent 0 42%, #1b9dff 42% 54%, transparent 54%);
    filter: drop-shadow(0 0 12px #1b9dff);
    opacity: 0.9;
    clip-path: polygon(0 18%, 45% 18%, 41% 0, 100% 44%, 56% 44%, 60% 100%);
}

.luna-gamemodes-title::after {
    width: clamp(420px, 44vw, 640px);
    height: clamp(78px, 8.4vw, 122px);
    margin-top: -18px;
    background: url("/figma/gamemodes-icon.png") center / contain no-repeat;
    filter: brightness(1.25) saturate(1.2) drop-shadow(0 0 18px rgba(27, 157, 255, 0.72));
    clip-path: none;
    opacity: 1;
}

body.luna-home-page .luna-section-title.luna-gamemodes-title {
    margin-bottom: clamp(8px, 1.3vw, 18px);
}

.luna-tags-title {
    margin-bottom: clamp(18px, 2.4vw, 34px);
    background: linear-gradient(180deg, #75beff 4%, #0087ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 31px #2197ff, 0 0 14px rgba(0,0,0,0.68);
}

.luna-tags-title::after {
    width: clamp(320px, 36vw, 520px);
    height: clamp(58px, 6.8vw, 96px);
    margin-top: -12px;
    background: url("/figma/gamemodes-icon.png") center / contain no-repeat;
    filter: brightness(1.25) saturate(1.2) drop-shadow(0 0 18px rgba(27, 157, 255, 0.72));
    clip-path: none;
    opacity: 1;
}

.luna-green-title {
    background: linear-gradient(180deg, #e0ffd8 12%, #00ca25 77%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 36px #4bd95c;
}

.luna-green-title::after {
    width: clamp(320px, 36vw, 500px);
    height: clamp(62px, 7vw, 96px);
    margin-top: -2px;
    background: url("/figma/feedback-icon.png") center / cover no-repeat;
    filter: drop-shadow(0 0 14px rgba(51, 240, 90, 0.55));
    clip-path: none;
    opacity: 1;
}

body.luna-home-page .luna-section-title.luna-green-title {
    margin-bottom: clamp(18px, 2.4vw, 32px);
}

body.luna-home-page .luna-feedback-section {
    min-height: min(420px, 58svh);
    display: grid;
    align-content: start;
    padding-block: clamp(18px, 3vh, 34px);
    margin-top: clamp(-420px, -34vh, -260px);
}

body.luna-home-page .luna-feedback-section > .luna-section-title,
body.luna-home-page .luna-feedback-section > .luna-feedback-grid {
    transform: translateY(clamp(-150px, -13vh, -90px));
}

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

.luna-game-card {
    position: relative;
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    min-height: 218px;
    padding: 22px 28px;
    border: 4px solid var(--mode-color, #84f0ef);
    border-radius: var(--luna-radius-xl);
    background: rgba(13,8,8,0.2);
    box-shadow: 0 4px 32px color-mix(in srgb, var(--mode-color, #84f0ef) 42%, transparent);
    text-align: right;
    transition:
        transform 320ms var(--motion-pop),
        border-color 320ms var(--motion-ease),
        box-shadow 320ms var(--motion-ease),
        background-color 320ms var(--motion-ease),
        filter 320ms var(--motion-ease);
    will-change: transform;
}

.luna-game-tag {
    position: absolute;
    top: 14px;
    inset-inline-end: 18px;
    z-index: 2;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: #101416;
    text-shadow: none;
    box-shadow: inset 0 2px 3px rgba(255,255,255,0.48), 0 0 18px rgba(0,0,0,0.34);
}

.luna-game-tag-popular {
    background: linear-gradient(180deg, #ffe28a, #ffae19);
}

.luna-game-tag-soon {
    background: linear-gradient(180deg, #7df3ff, #0084ff);
}

.luna-game-card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 22px color-mix(in srgb, var(--mode-color, #84f0ef) 40%, transparent));
    transition: transform 360ms var(--motion-pop), filter 360ms var(--motion-ease);
}

.luna-game-card h3 {
    color: transparent;
    background: linear-gradient(180deg, white, var(--mode-color, #84f0ef));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: clamp(21px, 1.7vw, 27px);
    font-weight: 700;
}

.luna-game-card p {
    margin-top: 8px;
    color: #d7d7d7;
    font-size: 16px;
    line-height: 1.8;
}

.luna-status-row {
    margin-top: 14px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: #9e9e9e;
}

.luna-status-row strong {
    color: #d22d2d;
}

.luna-feedback-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: min(100%, 1120px);
    margin-inline: auto;
}

.luna-feedback-card,
.luna-about-panel,
.glass-panel,
.bg-surface-container {
    border: 2px solid rgba(255,255,255,0.18) !important;
    border-radius: 25px !important;
    background: linear-gradient(180deg, rgba(20,21,22,0.94), rgba(52,55,57,0.72)) !important;
}

.luna-feedback-card {
    min-height: 250px;
    padding: 58px 32px 28px;
    color: #9a9a9a;
    text-align: center;
    position: relative;
}

.luna-feedback-card::before {
    content: "";
    position: absolute;
    top: -38px;
    left: 50%;
    width: 86px;
    height: 86px;
    transform: translateX(-50%);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    background: rgba(20,21,22,0.8);
}

.luna-about-panel {
    max-width: 1332px;
    margin: 70px auto;
    padding: clamp(28px, 5vw, 68px);
    text-align: center;
    position: relative;
    scroll-margin-top: 340px;
}

.luna-about-panel::before {
    display: none;
}

.luna-about-icon {
    width: clamp(116px, 13vw, 172px);
    height: auto;
    display: block;
    margin: clamp(-128px, -9vw, -76px) auto 6px;
    filter: drop-shadow(0 16px 18px rgba(0, 68, 180, 0.38));
}

.luna-about-panel h2 {
    font-size: clamp(36px, 4vw, 64px);
}

.luna-news-section {
    padding-top: clamp(22px, 4vw, 52px);
}

.luna-news-title {
    margin-bottom: clamp(20px, 3vw, 36px);
}

.luna-news-title::after {
    display: none;
}

.luna-news-row {
    display: flex;
    gap: 22px;
    width: min(100% - 32px, 1089px);
    margin: 0 auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.luna-news-row::-webkit-scrollbar {
    display: none;
}

.luna-news-card {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: center;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 30px rgba(0, 132, 255, 0.14);
    display: block;
    isolation: isolate;
}

.luna-news-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 500ms var(--motion-ease, ease);
}

.luna-news-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: clamp(18px, 3vw, 38px);
    text-align: right;
    background: linear-gradient(0deg, rgba(6, 8, 12, 0.92) 0%, rgba(6, 8, 12, 0.55) 32%, rgba(6, 8, 12, 0.05) 62%, transparent 100%);
}

.luna-news-card-title {
    color: #fff;
    font-size: clamp(22px, 3vw, 42px);
    line-height: 1.35;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.luna-news-card-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(13px, 1.5vw, 19px);
    line-height: 1.8;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (hover: hover) {
    .luna-news-card:hover .luna-news-card-img {
        transform: scale(1.05);
    }
}

.luna-news-viewport {
    position: relative;
    width: min(100% - 32px, 1089px);
    margin: 0 auto;
}

.luna-news-viewport .luna-news-row {
    width: 100%;
}

.luna-news-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #64acff 0%, #0077ff 82%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 132, 255, 0.4);
    transition: transform 200ms var(--motion-pop, ease), filter 200ms ease;
}

.luna-news-arrow .material-symbols-outlined {
    font-size: 30px;
}

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

@media (hover: hover) {
    .luna-news-arrow:hover {
        transform: translateY(-50%) scale(1.1);
        filter: brightness(1.1);
    }
}

.luna-news-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
}

.luna-news-dots:empty {
    margin-top: 0;
}

.luna-news-dot {
    position: relative;
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 320ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
}

.luna-news-dot::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
}

.luna-news-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(#4da3ff calc(var(--p, 0) * 1%), rgba(255, 255, 255, 0.14) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 320ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

@media (hover: hover) {
    .luna-news-dot:hover {
        background: rgba(255, 255, 255, 0.55);
    }
}

.luna-news-dot.is-active {
    background: linear-gradient(135deg, #64acff, #0077ff);
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(0, 132, 255, 0.55);
}

.luna-news-dot.is-active::after {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .luna-news-dot,
    .luna-news-dot::after {
        transition: none;
    }
}

@media (max-width: 700px) {
    .luna-news-arrow {
        width: 40px;
        height: 40px;
        top: 24px;
    }
    .luna-news-arrow-prev { right: 4px; }
    .luna-news-arrow-next { left: 4px; }
    .luna-news-card-title {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

@media (max-width: 380px) {
    .luna-news-arrow {
        display: none;
    }
}

.luna-bottom-cta {
    width: min(100% - 32px, 1089px);
    margin: 42px auto 24px;
    min-height: 260px;
    border-radius: var(--luna-radius-xl);
    background: #156fca url("/figma/panel-overlay.png") center / cover;
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 24px;
    padding: 28px 52px;
    box-shadow: 0 8px 3px rgba(0,0,0,0.46);
    direction: ltr;
}
.luna-bottom-cta > div {
    direction: rtl;
}

.luna-bottom-cta img {
    width: 230px;
    max-width: 100%;
    filter: drop-shadow(0 8px 3px rgba(0,0,0,0.46));
}

.luna-footer-mark {
    text-align: center;
    color: #4f4f4f;
    padding: 20px 0 46px;
}

.luna-footer-meta {
    width: min(100% - 48px, 1320px);
    margin: 10px auto 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 18px;
    direction: ltr;
    text-align: left;
}

.luna-footer-center {
    text-align: center;
}

.luna-footer-rules {
    display: block;
    width: max-content;
    margin: 6px auto 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.42);
    font-size: 13.5px;
    white-space: nowrap;
    transition:
        color var(--motion-base) var(--motion-ease),
        text-shadow var(--motion-base) var(--motion-ease);
}

@media (hover: hover) {
    .luna-footer-rules:hover {
        color: #C444FF;
        text-shadow: 0 0 12px #BB28FF;
    }
}

.luna-footer-trust,
.luna-footer-legal {
    margin-bottom: 10px;
}

.luna-footer-trust {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 15px;
}

.luna-footer-trust .luna-footer-shield {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
}

.luna-footer-trust a {
    display: inline-flex;
    align-items: center;
}

.luna-footer-trust img {
    height: 52px;
    width: auto;
    border-radius: 10px;
    filter: drop-shadow(0 0 16px rgba(255, 216, 0, 0.28));
    transition: filter var(--motion-base) var(--motion-ease);
}

@media (hover: hover) {
    .luna-footer-trust a:hover img {
        filter: drop-shadow(0 0 22px rgba(255, 216, 0, 0.5));
    }
}

.luna-footer-trust .luna-footer-enamad img {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.18));
}

.luna-footer-trust .luna-footer-enamad.is-loaded img {
    background: #fff;
    padding: 3px;
}

@media (hover: hover) {
    .luna-footer-trust .luna-footer-enamad:hover img {
        filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.38));
    }
}

.luna-footer-legal {
    justify-self: end;
    text-align: right;
    color: #4f4f4f;
}

.luna-footer-legal p {
    margin: 0;
    line-height: 1.8;
}

@media (max-width: 800px) {
    .luna-footer-meta {
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: center;
        gap: 16px;
    }
    .luna-footer-trust,
    .luna-footer-legal {
        justify-self: center;
        margin-bottom: 0;
        text-align: center;
    }
    .luna-footer-center {
        order: 3;
    }
}

.luna-brand-word {
    font-family: 'MinecraftiaRegular', 'Minecraftia', 'Courier New', monospace;
    font-size: clamp(24px, 3.4vw, 42px);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: white;
    line-height: 1.35;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.85), 0 0 44px #70c8ff;
}

.luna-footer-mark .luna-brand-word {
    font-family: 'Minecrafter', 'MinecraftiaRegular', 'Minecraftia', 'Courier New', monospace;
}

.luna-brand-word span {
    color: #00c8ff;
}

.luna-footer-credit {
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    line-height: 1.8;
}

.luna-footer-mark .luna-footer-credit a {
    width: auto;
    height: auto;
    display: inline;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    background: transparent;
    box-shadow: none;
    transition:
        color var(--motion-base) var(--motion-ease),
        text-shadow var(--motion-base) var(--motion-ease);
}

.luna-footer-mark .luna-footer-credit a:hover,
.luna-footer-mark .luna-footer-credit a:active {
    color: #45b7ff;
    text-shadow: 0 0 14px rgba(0, 145, 255, 0.75);
}

.luna-footer-heart {
    display: inline-block;
    color: rgba(255, 255, 255, 0.58);
    cursor: default;
    transform-origin: center;
    text-shadow: none;
    transition:
        transform var(--motion-base) var(--motion-pop),
        color var(--motion-base) var(--motion-ease),
        text-shadow var(--motion-base) var(--motion-ease);
}

.luna-footer-heart:hover {
    color: #ff6fa0;
    transform: translateY(-1px) scale(1.22);
    animation: luna-heart-pulse 0.72s ease-in-out infinite alternate;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 18px rgba(255, 60, 122, 0.95),
        0 0 34px rgba(255, 60, 122, 0.6);
}

@keyframes luna-heart-pulse {
    from {
        filter: drop-shadow(0 0 2px rgba(255, 60, 122, 0.6));
    }
    to {
        filter: drop-shadow(0 0 11px rgba(255, 60, 122, 0.95));
    }
}

.luna-store-hero {
    padding: 165px 24px 34px;
    text-align: center;
}

.luna-store-title {
    font-size: clamp(44px, 4.2vw, 76px);
    line-height: 1.18;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 55px #fff;
}

.luna-store-title strong {
    display: block;
    color: #f2b328;
    text-shadow: 0 0 45px #ffbb8b, 0 0 62px #ff9500;
}

.luna-rules-title strong {
    color: #54b8ff;
    text-shadow: 0 0 45px #8bd4ff, 0 0 62px var(--luna-blue);
}

.luna-search-wrap {
    width: min(100%, 650px);
    margin: 18px auto 18px;
    min-height: 68px;
    border: 4px solid rgba(84,84,84,0.5);
    border-radius: 20px;
    background: rgba(27,27,27,0.72);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.luna-search-wrap .material-symbols-outlined {
    width: 82px;
    align-self: stretch;
    display: grid;
    place-items: center;
    background: var(--luna-yellow);
    color: #141516;
    box-shadow: inset 0 -6px 0 rgba(0,0,0,0.5);
}

.luna-search-wrap input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0 !important;
    background: transparent !important;
}

.luna-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px auto 30px;
}

/* The store's tabs are the same control as the leaderboard and admin tabs,
   so they take the tab group's size, shape and active treatment. */
.luna-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* (Active state comes from the tab group, like every other tab.) */

#rank-grid,
#tag-grid {
    width: min(100%, 1260px);
    margin-left: auto;
    margin-right: auto;
}

.store-card {
    min-height: 450px;
    border-radius: var(--luna-radius-xl) !important;
    background: #151616 !important;
    border: 2px solid #363636 !important;
    padding: 28px 22px 22px !important;
}

.store-card img {
    width: 180px !important;
    height: 180px !important;
}

.store-card h3 {
    color: white !important;
    font-size: 24px !important;
    line-height: 1.35 !important;
}

.store-tag-card {
    justify-content: center;
    gap: 18px;
}

.store-tag-card .store-tag-render {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    width: 100%;
    padding: 12px 10px;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 0 12px currentColor;
    overflow-wrap: anywhere;
}

.store-tag-card .price-box {
    margin-top: 0 !important;
}

.store-card button {
    border-radius: 50px !important;
}

.store-card [data-details-button],
.store-card [data-buy-button],
.store-card button {
    background: var(--luna-yellow) !important;
    color: #141516 !important;
    border: 0 !important;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.5);
}

.luna-auth-page main {
    padding-top: 230px !important;
    padding-bottom: 92px !important;
}

.luna-auth-page .w-full.max-w-md {
    max-width: 548px !important;
}

.luna-auth-page .text-center.mb-8 h1 {
    color: #fff !important;
    font-size: 38px !important;
    line-height: 1.35 !important;
    text-shadow: none !important;
}

.luna-auth-page .text-center.mb-8 > div {
    display: none;
}

.luna-auth-page label {
    font-size: 23px;
    line-height: 1.45;
    text-align: center;
}

.luna-auth-page input,
.luna-auth-page textarea,
.luna-auth-page select {
    min-height: 59px;
    border-radius: 15px !important;
    background: #141516 !important;
    border: 2px solid #262626 !important;
    text-align: center;
    font-size: 16px !important;
}

.luna-auth-page button[type="submit"],
.luna-auth-page #mc-login-submit {
    min-height: 59px;
    border: 0 !important;
    border-radius: 15px !important;
    background: var(--luna-blue) !important;
    color: #131314 !important;
    box-shadow: 0 0 15px rgba(0,132,255,0.63), 0 0 59px rgba(2,121,231,0.37);
    font-size: 18px !important;
}

.luna-auth-page .luna-login-card {
    padding: 44px 36px 34px;
    background: #0e0e10 !important;
    border: 1px solid #26262a !important;
    border-radius: 28px !important;
    box-shadow: none;
}

.luna-auth-page .luna-login-card input {
    background: #0a0a0c !important;
    border: 1px solid #2c2c31 !important;
}

.luna-auth-page .luna-login-card input::placeholder {
    color: #8b8b90;
}

.luna-login-label {
    display: block;
    color: #fff;
    font-size: 32px !important;
    margin-bottom: 18px;
}

.luna-login-instruction {
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    font-size: 14px;
    line-height: 1.9;
    margin-top: 14px;
}

.luna-login-cmd {
    color: var(--luna-blue);
    font-weight: 700;
}

.luna-login-card #mc-login-error {
    margin-top: 16px;
}

.luna-login-card #mc-login-submit {
    margin-top: 32px;
}

.luna-dashboard main,
.luna-ticket-page main {
    padding-top: 190px !important;
}

.luna-dashboard .max-w-4xl,
.luna-ticket-page .max-w-2xl {
    max-width: 1040px !important;
}

.luna-dashboard .bg-surface-container,
.luna-ticket-page .bg-surface-container {
    border-color: rgba(255,255,255,0.18) !important;
    border-radius: 24px !important;
    background: rgba(19,19,20,0.82) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 18px 60px rgba(0,0,0,0.28);
}

.luna-dashboard h1,
.luna-ticket-page h1 {
    font-size: clamp(32px, 3.6vw, 52px) !important;
}

.luna-dashboard h2,
.luna-ticket-page h2 {
    font-size: clamp(24px, 2.2vw, 34px) !important;
}

.luna-dashboard label,
.luna-ticket-page label {
    font-size: 18px;
}

.luna-dashboard input,
.luna-dashboard textarea,
.luna-dashboard select,
.luna-ticket-page input,
.luna-ticket-page textarea,
.luna-ticket-page select {
    min-height: 50px;
    border-radius: 14px !important;
    background: rgba(14,15,16,0.76) !important;
}

.luna-dashboard footer.bg-surface-container-lowest,
.luna-ticket-page footer.bg-surface-container-lowest {
    background: transparent !important;
    border-top: 0 !important;
}

@media (max-width: 900px) {
    nav.fixed {
        top: 12px;
        width: calc(100% - 24px);
        border-radius: 22px;
    }

    nav.fixed .h-16 {
        height: 64px;
    }

    nav.fixed img[src="/luna_logo.png"] {
        content: url("/luna_logo.png");
        width: 46px !important;
        height: 46px !important;
        object-fit: contain;
    }

    /* Only the logo slot (the row's first link) shrinks; a bare a:first-child
       would also catch the first menu link and the account button, which are
       each the first child of their own wrapper. */
    nav.fixed .h-16 > a:first-child {
        width: 54px;
        min-width: 54px;
        overflow: hidden;
    }

    .luna-game-grid,
    .luna-feedback-grid {
        grid-template-columns: 1fr;
    }

    .luna-game-card {
        grid-template-columns: 104px 1fr;
        padding: 18px;
        border-radius: 32px;
    }

    .luna-game-card img {
        width: 96px;
        height: 96px;
    }

    .luna-bottom-cta {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px;
    }
}

@media (min-width: 1200px) {
    body::before {
        background-size: 1920px auto;
    }

    .luna-store-page > footer.bg-surface-container-lowest,
    .luna-auth-page .luna-auth-legacy-links,
    .luna-auth-page > footer.bg-surface-container-lowest {
        display: none !important;
    }

    .luna-store-bottom-cta {
        margin-top: 12px;
        margin-bottom: 70px;
    }

    .luna-auth-page .luna-auth-figma-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        gap: clamp(26px, 2.5vw, 54px) !important;
    }

    .luna-auth-page .luna-auth-figma-action {
        position: absolute;
        left: 26px;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, #64acff 0%, #0077ff 82%);
        color: #101416;
    }

    .luna-auth-page .text-center.mb-8 h1 {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1.25 !important;
    }

    .luna-auth-page .text-center.mb-8 h1::before {
        content: "account_circle";
        font-family: "Material Symbols Outlined";
        font-weight: 400;
        line-height: 1;
        color: #fff;
        text-shadow: 0 0 34px rgba(255, 255, 255, 0.75);
    }

    .luna-auth-bottom-cta {
        margin-top: 0;
    }

}

@media (max-width: 640px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .luna-hero {
        min-height: 100svh;
        padding-top: 112px;
        padding-bottom: 52px;
        overflow: hidden;
    }

    .luna-hero-content {
        width: min(100%, 358px);
        margin-inline: auto;
    }

    .luna-hero-title {
        overflow-wrap: anywhere;
    }

    .luna-actions {
        flex-direction: column;
        width: 100%;
    }

    .luna-ip-pill,
    .luna-player-pill,
    .luna-primary-pill {
        width: 100%;
        max-width: 310px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .luna-section {
        padding: 56px 0;
    }

    .luna-section-title {
        font-size: 38px;
    }
}

.pixel-shadow,
.pixel-shadow-secondary,
.pixel-shadow-tertiary {
    box-shadow: none !important;
}

.store-scroll::-webkit-scrollbar {
    width: 6px;
}
.store-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.store-scroll::-webkit-scrollbar-thumb {
    background-color: #484555;
    border-radius: 3px;
}
.store-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #5555FF;
}

.mc-tag-text {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.8);
}
.mc-obf {
    display: inline-block;
    animation: mc-flicker 0.12s infinite;
}
@keyframes mc-flicker {
    0%, 100% { opacity: 1; }
    33% { opacity: 0.7; }
    66% { opacity: 0.9; }
}

/* Colour comes from the tab group's active state. */
.rule-nav-active {
    font-weight: var(--btn-weight);
}

.rule-nav-link {
    border-radius: 12px;
    padding-left: 12px;
    transition:
        color var(--motion-base) var(--motion-ease),
        background-color var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease),
        transform var(--motion-base) var(--motion-pop);
}

@media (hover: hover) {
    .rule-nav-link:hover {
        transform: translateX(-3px);
        background: rgba(17, 212, 255, 0.08);
        box-shadow: 0 0 18px rgba(17, 212, 255, 0.12);
    }
}

.luna-rule-card {
    position: relative;
    scroll-margin-top: 130px;
    margin-bottom: 24px;
    padding: 26px 28px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 25px;
    background: linear-gradient(180deg, rgba(20, 21, 22, 0.94), rgba(52, 55, 57, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 45px rgba(0, 0, 0, 0.22);
    transition:
        transform 320ms var(--motion-pop),
        border-color 320ms var(--motion-ease),
        box-shadow 320ms var(--motion-ease);
}

@media (hover: hover) {
    .luna-rule-card:hover {
        transform: translateY(-4px);
        border-color: color-mix(in srgb, var(--rule-color, #11d4ff) 60%, transparent);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 4px 32px color-mix(in srgb, var(--rule-color, #11d4ff) 28%, transparent);
    }
}

.luna-rule-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.luna-rule-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--rule-color, #11d4ff);
    border: 2px solid color-mix(in srgb, var(--rule-color, #11d4ff) 55%, transparent);
    background: color-mix(in srgb, var(--rule-color, #11d4ff) 12%, transparent);
    box-shadow: 0 0 24px color-mix(in srgb, var(--rule-color, #11d4ff) 22%, transparent);
}

.luna-rule-card h2 {
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 700;
    line-height: 1.45;
    color: transparent;
    background: linear-gradient(180deg, #fff, var(--rule-color, #11d4ff));
    -webkit-background-clip: text;
    background-clip: text;
}

.luna-rule-en {
    margin-top: 2px;
    color: #9a9a9a;
    font-size: 13px;
    direction: ltr;
    text-align: right;
}

.luna-rule-body {
    color: #cfcfcf;
    font-size: 16px;
    line-height: 2;
}

.luna-rule-body + .luna-rule-body {
    margin-top: 12px;
}

.luna-rule-term {
    color: var(--rule-color, #11d4ff);
    font-weight: 700;
    text-shadow: 0 0 16px color-mix(in srgb, var(--rule-color, #11d4ff) 55%, transparent);
}

.luna-rule-note {
    margin-top: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(13, 14, 15, 0.55);
}

.luna-rule-note a,
.luna-rule-body a {
    color: var(--luna-blue-soft);
    font-weight: 700;
    border-bottom: 1px solid rgba(17, 212, 255, 0.45);
    transition: color var(--motion-base) var(--motion-ease), border-color var(--motion-base) var(--motion-ease);
}

.luna-rule-note a:hover,
.luna-rule-body a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

body.luna-rules-page main,
body.luna-terms-page main,
body.luna-rules-page main .font-vazirmatn,
body.luna-terms-page main .font-vazirmatn,
body.luna-rules-page main .font-lalezar,
body.luna-terms-page main .font-lalezar,
body.luna-rules-page .luna-store-hero .font-vazirmatn,
body.luna-terms-page .luna-store-hero .font-vazirmatn {
    font-family: 'Shabnam', sans-serif;
}

@media (max-width: 640px) {
    .luna-rule-card {
        padding: 18px;
        border-radius: 18px;
    }
    .luna-rule-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }
    .luna-rule-body {
        font-size: 14.5px;
    }
}

body.luna-terms-page .terms-aside {
    width: 100%;
    flex-shrink: 0;
}

body.luna-terms-page .terms-doc-col {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
}

@media (min-width: 1024px) {
    body.luna-terms-page .terms-aside {
        width: 290px;
    }
    body.luna-terms-page .terms-aside-sticky {
        position: sticky;
        top: 112px;
    }
}

body.luna-terms-page .terms-doc-overline {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--luna-blue-soft);
    text-transform: uppercase;
}

body.luna-terms-page .terms-meta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

body.luna-terms-page .terms-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(13, 14, 15, 0.6);
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

body.luna-terms-page .terms-meta-badge .material-symbols-outlined {
    font-size: 19px;
    color: var(--luna-blue-soft);
}

body.luna-terms-page .terms-toc {
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(20, 21, 22, 0.94), rgba(34, 36, 38, 0.8));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 40px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

body.luna-terms-page .terms-toc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    user-select: none;
}

body.luna-terms-page .terms-toc summary::-webkit-details-marker {
    display: none;
}

body.luna-terms-page .terms-toc summary > .material-symbols-outlined:first-child {
    color: var(--luna-blue-soft);
}

body.luna-terms-page .terms-toc-chevron {
    margin-inline-start: auto;
    color: rgba(255, 255, 255, 0.5);
    transition: transform var(--motion-base) var(--motion-ease);
}

body.luna-terms-page .terms-toc[open] .terms-toc-chevron {
    transform: rotate(180deg);
}

@media (min-width: 1024px) {
    body.luna-terms-page .terms-toc summary {
        cursor: default;
        pointer-events: none;
    }
    body.luna-terms-page .terms-toc-chevron {
        display: none;
    }
}

body.luna-terms-page .terms-toc-body {
    position: relative;
    padding: 2px 12px 14px;
    overflow-y: auto;
    scrollbar-width: thin;
}

@media (min-width: 1024px) {
    body.luna-terms-page .terms-toc-body {
        max-height: calc(100vh - 240px);
    }
}

body.luna-terms-page .terms-toc-group + .terms-toc-group {
    margin-top: 14px;
}

body.luna-terms-page .terms-toc-group > p {
    padding: 8px 10px 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.42);
}

body.luna-terms-page .terms-toc .rule-nav-link {
    padding: 7px 12px;
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.58);
}

body.luna-terms-page .terms-toc .rule-nav-link:hover {
    color: #fff;
}

body.luna-terms-page .terms-doc {
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(18, 19, 20, 0.96), rgba(30, 32, 34, 0.84));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px rgba(0, 0, 0, 0.28);
    padding: clamp(22px, 4vw, 54px);
}

body.luna-terms-page .terms-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--luna-blue-soft) 38%, transparent);
    background: color-mix(in srgb, var(--luna-blue-soft) 8%, transparent);
    color: #dcecf4;
    font-size: 15px;
    line-height: 2;
}

body.luna-terms-page .terms-callout .material-symbols-outlined {
    margin-top: 6px;
    color: var(--luna-blue-soft);
}

body.luna-terms-page .terms-part {
    margin-top: 46px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.luna-terms-page .terms-callout + .terms-part {
    border-top: 0;
    padding-top: 14px;
    margin-top: 20px;
}

body.luna-terms-page .terms-part-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--luna-blue-soft);
}

body.luna-terms-page .terms-part h2 {
    margin-top: 8px;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 800;
    line-height: 1.5;
    color: #fff;
}

body.luna-terms-page .terms-article {
    padding: 28px 0 6px;
    scroll-margin-top: 120px;
}

body.luna-terms-page .terms-article + .terms-article {
    border-top: 1px dashed rgba(255, 255, 255, 0.09);
    margin-top: 10px;
}

body.luna-terms-page .terms-article h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 800;
    line-height: 1.6;
    color: #fff;
}

body.luna-terms-page .terms-num {
    flex-shrink: 0;
    color: var(--luna-blue-soft);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

body.luna-terms-page .terms-article p {
    margin-top: 12px;
    color: #c9ced2;
    font-size: 15.5px;
    line-height: 2.15;
    text-align: justify;
}

body.luna-terms-page .terms-article strong {
    color: #fff;
    font-weight: 700;
}

body.luna-terms-page .terms-article ul {
    margin-top: 12px;
    display: grid;
    gap: 6px;
    padding-inline-start: 6px;
}

body.luna-terms-page .terms-article li {
    position: relative;
    padding-inline-start: 24px;
    color: #c9ced2;
    font-size: 15.5px;
    line-height: 2.05;
    text-align: justify;
}

body.luna-terms-page .terms-article li::before {
    content: "";
    position: absolute;
    inset-inline-start: 2px;
    top: 13px;
    width: 7px;
    height: 7px;
    border-radius: 2.5px;
    transform: rotate(45deg);
    background: var(--luna-blue-soft);
    box-shadow: 0 0 10px rgba(17, 212, 255, 0.45);
}

body.luna-terms-page .terms-article a {
    color: var(--luna-blue-soft);
    font-weight: 700;
    border-bottom: 1px solid rgba(17, 212, 255, 0.45);
    transition: color var(--motion-base) var(--motion-ease), border-color var(--motion-base) var(--motion-ease);
}

body.luna-terms-page .terms-article a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

body.luna-terms-page .terms-end-card {
    margin-top: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 26px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(13, 14, 15, 0.55);
}

body.luna-terms-page .terms-end-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

body.luna-terms-page .terms-end-sub {
    margin-top: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.9;
}

body.luna-terms-page .terms-end-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.luna-terms-page .terms-end-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    transition:
        background-color var(--motion-base) var(--motion-ease),
        border-color var(--motion-base) var(--motion-ease),
        transform var(--motion-base) var(--motion-pop);
}

body.luna-terms-page .terms-end-btn .material-symbols-outlined {
    font-size: 19px;
}

body.luna-terms-page .terms-end-btn:hover {
    transform: translateY(calc(-1 * var(--btn-lift)));
    background: rgba(255, 255, 255, 0.12);
}

body.luna-terms-page .terms-end-btn-primary {
    border-color: color-mix(in srgb, var(--luna-blue-soft) 55%, transparent);
    background: color-mix(in srgb, var(--luna-blue-soft) 16%, transparent);
    color: var(--luna-blue-soft);
}

body.luna-terms-page .terms-end-btn-primary:hover {
    background: color-mix(in srgb, var(--luna-blue-soft) 26%, transparent);
    color: #fff;
}

@media (max-width: 640px) {
    body.luna-terms-page .terms-doc {
        border-radius: 20px;
    }
    body.luna-terms-page .terms-article p,
    body.luna-terms-page .terms-article li {
        font-size: 14.5px;
        text-align: start;
    }
    body.luna-terms-page .terms-meta-badge {
        font-size: 13px;
        padding: 8px 14px;
    }
}

.luna-forums-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #141516;
    overflow: hidden;
}

.luna-forums-stage::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: min(1500px, 135vh);
    background:
        linear-gradient(180deg, rgba(20, 21, 22, 0.88) 0%, rgba(20, 21, 22, 0.3) 24%, rgba(20, 21, 22, 0.42) 70%, #141516 99%),
        url('/cdn/images/forums/hero.webp') center -320px / cover no-repeat;
    pointer-events: none;
}

.luna-forums-stage > * {
    position: relative;
}

.luna-red-title {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: #f04a4a;
    text-shadow: 0 0 36px rgba(255, 48, 48, 0.6), 0 0 14px rgba(0, 0, 0, 0.68);
    margin-bottom: 0;
}

.luna-red-title {
    margin-bottom: 0;
}

.luna-red-title::after {
    display: none;
}

.luna-news-mark {
    display: block;
    width: 250px;
    margin: -58px auto 0;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 10px rgba(255, 48, 48, 0.45));
}

.luna-forum-sec-title {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: var(--fc, #3da2ff);
    text-shadow:
        0 0 40px color-mix(in srgb, var(--fc, #3da2ff) 65%, transparent),
        0 0 14px rgba(0, 0, 0, 0.55);
    margin-bottom: 0;
}

.luna-forum-sec-title::after {
    display: none;
}

.forum-cta-note {
    width: min(100%, 640px);
    margin: 26px auto 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 2;
}

.luna-forum-new-btn.hidden {
    display: none;
}

.luna-forum-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding: 12px 28px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #64acff 0%, #0077ff 82%);
    color: #101416;
    font-size: 16px;
    font-weight: 700;
    box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.48), 0 5px 0 #004c93, 0 0 26px rgba(0, 132, 255, 0.34);
}

.luna-forum-new-btn .material-symbols-outlined {
    font-size: 20px;
}

@media (hover: hover) {
    .luna-forum-new-btn:hover {
        --btn-depth: calc(var(--btn-depth-rest) + var(--btn-lift));
        transform: translateY(calc(-1 * var(--btn-lift)));
        filter: brightness(var(--btn-glow));
        box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.58), 0 var(--btn-depth) 0 var(--btn-edge), 0 0 36px rgba(0, 132, 255, 0.52);
    }

    .luna-forum-new-btn:hover .material-symbols-outlined {
        transform: none;
        color: inherit;
        text-shadow: none;
        filter: none;
        font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    }
}

.luna-forums-stage main.luna-thread-main {
    padding-top: 170px;
}

.luna-thread-card {
    border-radius: 46px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(22, 23, 25, 0.82);
    padding: 36px 46px;
    margin-bottom: 30px;
}

.luna-thread-card.is-reply {
    border-radius: 38px;
    padding: 28px 38px;
}

.luna-thread-head {
    display: flex;
    align-items: center;
    gap: 24px;
}

.luna-avatar-frame {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.luna-avatar-frame .luna-framed-head {
    position: absolute;
    left: 18.6%;
    top: 14.3%;
    width: 62.8%;
    height: 61%;
    object-fit: cover;
    image-rendering: pixelated;
}

.luna-avatar-frame .luna-frame-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    image-rendering: auto;
}

.luna-avatar-frame.is-plain .luna-framed-head {
    left: 8%;
    top: 8%;
    width: 84%;
    height: 84%;
    border-radius: 20px;
}

.luna-thread-author {
    color: #fff;
    font-size: 30px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.luna-thread-card.is-reply .luna-thread-author {
    font-size: 22px;
}

.luna-thread-rank {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.luna-thread-card.is-reply .luna-thread-rank {
    font-size: 14px;
}

.luna-thread-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
    margin: 26px 0 30px;
}

.luna-thread-title {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-size: 27px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.luna-thread-title::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

.luna-thread-title .material-symbols-outlined {
    font-size: 22px;
}

.luna-thread-body {
    font-size: 16px;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.88);
}

.luna-thread-card.is-reply .luna-thread-body {
    margin-top: 18px;
}

.luna-comments-title {
    color: #fff;
    font-size: clamp(30px, 3vw, 44px);
    margin: 42px 8px 26px;
}

@media (max-width: 700px) {
    .luna-thread-card {
        border-radius: 30px;
        padding: 24px 22px;
    }
    .luna-thread-card.is-reply {
        border-radius: 24px;
        padding: 20px 18px;
    }
    .luna-thread-head .luna-avatar-frame {
        width: 84px !important;
        height: 84px !important;
    }
    .luna-thread-author {
        font-size: 22px;
    }
}

.luna-attachment-thumb {
    cursor: zoom-in;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.luna-attachment-thumb img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 16rem;
}

.luna-md .luna-md-image {
    margin-block: 12px;
}

.luna-md .luna-md-image-sized {
    width: 100%;
}

.luna-md .luna-md-image-sized img {
    width: 100%;
    height: auto;
    max-height: none;
}

.luna-editable {
    min-height: 10.5em;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    cursor: text;
    outline: none;
    unicode-bidi: plaintext;
    text-align: start;
}

.luna-editable:empty::before {
    content: attr(data-placeholder);
    color: rgba(242, 246, 255, 0.35);
    pointer-events: none;
}

.luna-editable img {
    display: inline-block;
    max-width: 100%;
    max-height: 18rem;
    border-radius: 10px;
    vertical-align: bottom;
    cursor: pointer;
}

.luna-editable img[data-width-percent] {
    max-height: none;
    height: auto;
}

.luna-editable img.is-selected {
    outline: 2px solid var(--luna-blue-soft, #11d4ff);
    outline-offset: 2px;
}

.luna-img-toolbar {
    position: absolute;
    z-index: 90;
    display: none;
    gap: 4px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(16, 17, 24, 0.95);
    transform: translateX(-50%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.luna-img-toolbar.is-open {
    display: flex;
}

.luna-img-toolbar button {
    padding: 3px 9px;
    border-radius: 7px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
}

.luna-img-toolbar button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.luna-img-toolbar [data-img-remove] {
    color: #ff8f8f;
}

.luna-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    place-items: center;
    padding: 28px;
    background: rgba(8, 9, 10, 0.9);
    cursor: zoom-out;
}

.luna-lightbox.is-open {
    display: grid;
}

.luna-lightbox img {
    max-width: min(1240px, 94vw);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.luna-verified-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-inline-start: 6px;
    vertical-align: -0.26em;
    color: #11d4ff;
    filter: drop-shadow(0 0 6px rgba(17, 212, 255, 0.55));
}

.forum-thread-avatar[src="/luna_logo.png"],
.luna-thread-head img[src="/luna_logo.png"],
.forum-post-head img[src="/luna_logo.png"],
.luna-avatar-frame img[src="/luna_logo.png"],
.ticket-msg-avatar[src="/luna_logo.png"] {
    image-rendering: auto;
    object-fit: contain;
}

.forum-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.forum-toolbar button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(13, 14, 15, 0.5);
    color: rgba(255, 255, 255, 0.72);
    box-shadow: none;
    padding: 0;
}

.forum-toolbar button .material-symbols-outlined {
    font-size: 20px;
}

@media (hover: hover) {
    .forum-toolbar button:hover {
        border-color: rgba(17, 212, 255, 0.5);
        color: #fff;
    }
}

.forum-toolbar.luna-float-toolbar {
    position: fixed;
    bottom: calc(18px + var(--luna-vv-offset, 0px) + env(safe-area-inset-bottom, 0px));
    left: 50%;
    z-index: 80;
    margin-bottom: 0;
    width: max-content;
    max-width: calc(100vw - 24px);
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(16, 17, 24, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.forum-toolbar.luna-float-toolbar.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

html:has(.forum-toolbar.luna-float-toolbar.is-open) {
    scroll-padding-bottom: 100px;
}

body:has(.forum-toolbar.luna-float-toolbar.is-open) {
    padding-bottom: 90px;
}

body:has(.forum-toolbar.luna-float-toolbar.is-open) .luna-toast {
    bottom: calc(100px + var(--luna-vv-offset, 0px) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 640px) {
    .forum-toolbar.luna-float-toolbar {
        gap: 4px;
        padding: 6px 8px;
    }

    .forum-toolbar.luna-float-toolbar button {
        width: var(--btn-h-xs);
        height: var(--btn-h-xs);
    }

    .forum-toolbar.luna-float-toolbar button .material-symbols-outlined {
        font-size: 18px;
    }

    html:has(.forum-toolbar.luna-float-toolbar.is-open) {
        scroll-padding-bottom: 160px;
    }

    body:has(.forum-toolbar.luna-float-toolbar.is-open) {
        padding-bottom: 150px;
    }

    body:has(.forum-toolbar.luna-float-toolbar.is-open) .luna-toast {
        bottom: calc(160px + var(--luna-vv-offset, 0px) + env(safe-area-inset-bottom, 0px));
    }
}

.luna-forums-stage .forum-thread-row {
    border: 0;
    border-radius: 16px;
    background: rgba(23, 24, 26, 0.74);
    padding: 20px 28px;
    min-height: 88px;
    margin-bottom: 30px;
}

.luna-forums-stage .forum-thread-row-wrap {
    margin-bottom: 30px;
}

@media (hover: hover) {
    .luna-forums-stage .forum-thread-row:hover {
        background: rgba(34, 36, 38, 0.8);
    }
}

.luna-forums-stage .forum-empty {
    border: 0;
    border-radius: 16px;
    background: rgba(23, 24, 26, 0.74);
    padding: 46px 20px;
    color: rgba(255, 255, 255, 0.6);
}

body.weblog-page .luna-forums-stage,
body.weblog-page .luna-forums-stage .font-lalezar,
body.weblog-page .luna-forums-stage .font-vazirmatn {
    font-family: 'Shabnam', sans-serif;
}

body.weblog-page .luna-forums-stage .luna-md-h1,
body.weblog-page .luna-forums-stage .luna-md-h2,
body.weblog-page .luna-forums-stage .luna-md-h3 {
    font-family: 'Shabnam', sans-serif;
    font-weight: 700;
}

body.weblog-page .forum-mock-title,
body.weblog-page .luna-forum-sec-title {
    font-family: 'Kamran Digits', 'Kamran', 'Shabnam', sans-serif;
}

.luna-forums-stage .forum-search-wrap {
    margin-top: 48px;
}

.luna-forums-stage main {
    padding-top: 84px;
    padding-bottom: 130px;
}

.forum-search-wrap {
    width: min(100%, 560px);
    margin: 26px auto 0;
    position: relative;
}

.forum-search-wrap input {
    width: 100%;
    padding: 14px 48px 14px 18px;
    font-size: 15px;
}

.forum-search-wrap .material-symbols-outlined {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.forum-icon-chip {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 2px solid color-mix(in srgb, var(--forum-color, #11d4ff) 45%, transparent);
    background: color-mix(in srgb, var(--forum-color, #11d4ff) 10%, rgba(13, 14, 15, 0.6));
    box-shadow: 0 0 22px color-mix(in srgb, var(--forum-color, #11d4ff) 18%, transparent);
}

.forum-icon-chip img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    image-rendering: pixelated;
}

.forum-icon-chip .material-symbols-outlined {
    font-size: 30px;
    color: var(--forum-color, #11d4ff);
}

.forum-icon-chip.is-small {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

.forum-icon-chip.is-small img {
    width: 28px;
    height: 28px;
}

.forum-mock-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 36px;
    width: min(100%, 1150px);
    margin-inline: auto;
    direction: ltr;
}

.forum-mock-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 22px 34px;
    min-height: 176px;
    border-radius: 44px;
    border: 2px solid transparent;
    background:
        linear-gradient(180deg, rgba(14, 15, 16, 0.96), rgba(20, 21, 23, 0.94)) padding-box,
        linear-gradient(250deg, var(--fc1, #11d4ff) 0%, color-mix(in srgb, var(--fc1, #11d4ff) 55%, transparent) 45%, rgba(190, 200, 205, 0.16) 100%) border-box;
    box-shadow: 0 0 26px color-mix(in srgb, var(--fc1, #11d4ff) 10%, transparent), 0 18px 45px rgba(0, 0, 0, 0.28);
    transition:
        transform 320ms var(--motion-pop),
        box-shadow 320ms var(--motion-ease);
}

@media (hover: hover) {
    .forum-mock-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0 44px color-mix(in srgb, var(--fc1, #11d4ff) 26%, transparent), 0 22px 50px rgba(0, 0, 0, 0.3);
    }
}

.forum-mock-card.is-news {
    grid-column: 1 / -1;
    width: min(560px, 100%);
    justify-self: center;
    min-height: 180px;
}

.forum-mock-text {
    min-width: 0;
}

.forum-mock-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.forum-mock-title .forum-mock-tri {
    font-size: 0.55em;
    transform: translateY(1px);
}

.forum-mock-desc {
    direction: rtl;
    text-align: right;
    margin-top: 10px;
    max-width: 250px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.95;
}

.forum-mock-icon {
    width: 134px;
    height: 134px;
    margin: -8px 0;
    flex-shrink: 0;
    object-fit: contain;
    image-rendering: pixelated;
}

.forum-mock-icon.is-logo {
    width: 158px;
    height: 158px;
    margin: -14px 0;
    image-rendering: auto;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

@media (max-width: 800px) {
    .forum-mock-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .forum-mock-card {
        padding: 22px 24px;
        min-height: 0;
        border-radius: 32px;
    }
    .forum-mock-icon {
        width: 78px;
        height: 78px;
    }
    .forum-mock-icon.is-logo {
        width: 88px;
        height: 88px;
    }
}

.forum-section-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 260px);
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    margin-bottom: 14px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20, 21, 22, 0.94), rgba(52, 55, 57, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 45px rgba(0, 0, 0, 0.22);
    transition:
        transform 320ms var(--motion-pop),
        border-color 320ms var(--motion-ease),
        box-shadow 320ms var(--motion-ease);
}

@media (hover: hover) {
    .forum-section-card:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--forum-color, #11d4ff) 55%, transparent);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 30px color-mix(in srgb, var(--forum-color, #11d4ff) 24%, transparent);
    }
}

.forum-section-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    color: inherit;
}

.forum-section-card h2 {
    font-size: clamp(19px, 1.7vw, 24px);
    font-weight: 700;
    line-height: 1.5;
    color: transparent;
    background: linear-gradient(180deg, #fff, var(--forum-color, #11d4ff));
    -webkit-background-clip: text;
    background-clip: text;
}

.forum-section-card .forum-section-desc {
    color: #9a9a9a;
    font-size: 14px;
    line-height: 1.9;
}

.forum-section-stats {
    display: flex;
    gap: 18px;
    color: #9a9a9a;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

.forum-section-stats strong {
    display: block;
    color: #fff;
    font-size: 17px;
}

.forum-section-latest {
    min-width: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 16px;
    font-size: 13px;
    color: #9a9a9a;
}

.forum-section-latest a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--motion-base) var(--motion-ease);
}

.forum-section-latest a:hover {
    color: var(--forum-color, #11d4ff);
}

.forum-section-latest .forum-latest-empty {
    color: #6a6a6a;
}

.forum-author-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
}

.forum-author-chip img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    image-rendering: pixelated;
}

.forum-thread-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 21, 22, 0.94), rgba(38, 40, 42, 0.7));
    transition:
        transform 320ms var(--motion-pop),
        border-color 320ms var(--motion-ease);
}

@media (hover: hover) {
    .forum-thread-row:hover {
        transform: translateY(-2px);
        border-color: rgba(17, 212, 255, 0.45);
    }

    .forum-thread-row-wrap:hover .forum-thread-row {
        transform: translateY(-2px);
        border-color: rgba(17, 212, 255, 0.45);
    }

    .forum-thread-row-wrap:hover .forum-pin-btn,
    .forum-thread-row-wrap:hover .forum-feature-btn,
    .forum-thread-row-wrap:hover .forum-drag-handle {
        transform: translateY(calc(-50% - var(--btn-lift)));
    }
}

.forum-thread-row.is-pinned {
    border-color: rgba(255, 176, 25, 0.5);
}

.forum-thread-row-wrap {
    position: relative;
    margin-bottom: 12px;
}

.forum-thread-row-wrap .forum-thread-row {
    margin-bottom: 0;
    padding-inline-end: 58px;
}

.forum-pin-btn {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 13, 14, 0.6);
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition:
        color 200ms var(--motion-ease),
        border-color 200ms var(--motion-ease),
        background 200ms var(--motion-ease),
        transform 200ms var(--motion-pop);
}

.forum-pin-btn .material-symbols-outlined {
    font-size: 20px;
}

@media (hover: hover) {
    .forum-pin-btn:hover {
        color: #ffb019;
        border-color: rgba(255, 176, 25, 0.6);
        transform: translateY(-50%) scale(1.08);
    }
}

.forum-pin-btn.is-pinned {
    color: #ffb019;
    border-color: rgba(255, 176, 25, 0.55);
    background: rgba(255, 176, 25, 0.14);
}

.forum-pin-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.forum-feature-btn {
    position: absolute;
    top: 50%;
    inset-inline-end: 56px;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 13, 14, 0.6);
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition:
        color 200ms var(--motion-ease),
        border-color 200ms var(--motion-ease),
        background 200ms var(--motion-ease),
        transform 200ms var(--motion-pop);
}

.forum-feature-btn .material-symbols-outlined {
    font-size: 20px;
}

@media (hover: hover) {
    .forum-feature-btn:hover {
        color: #4da3ff;
        border-color: rgba(77, 163, 255, 0.6);
    }
}

.forum-feature-btn.is-featured {
    color: #4da3ff;
    border-color: rgba(77, 163, 255, 0.55);
    background: rgba(77, 163, 255, 0.14);
}

.forum-feature-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.forum-thread-row-wrap.has-feature .forum-thread-row {
    padding-inline-end: 104px;
}

.forum-thread-row-wrap.has-feature .forum-drag-handle {
    inset-inline-end: 100px;
}

.forum-thread-row-wrap.has-feature.has-reorder .forum-thread-row {
    padding-inline-end: 148px;
}

.forum-thread-row-wrap.has-reorder .forum-thread-row {
    padding-inline-end: 104px;
}

.forum-drag-handle {
    position: absolute;
    top: 50%;
    inset-inline-end: 56px;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 13, 14, 0.6);
    color: rgba(255, 255, 255, 0.55);
    cursor: grab;
    user-select: none;
    transition:
        color 200ms var(--motion-ease),
        border-color 200ms var(--motion-ease),
        background 200ms var(--motion-ease),
        transform 200ms var(--motion-pop);
}

.forum-drag-handle .material-symbols-outlined {
    font-size: 20px;
}

@media (hover: hover) {
    .forum-drag-handle:hover {
        color: #b4b4ff;
        border-color: rgba(180, 180, 255, 0.6);
    }
}

.forum-drag-handle:active {
    cursor: grabbing;
}

.forum-thread-row-wrap.is-dragging {
    opacity: 0.55;
}

.forum-thread-row-wrap.is-dragging .forum-thread-row {
    border-color: rgba(180, 180, 255, 0.6);
}

.forum-thread-row .forum-thread-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    image-rendering: pixelated;
}

.forum-thread-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.forum-thread-title-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--motion-base) var(--motion-ease);
}

@media (hover: hover) {
    .forum-thread-row:hover .forum-thread-title-text {
        color: var(--luna-blue-soft);
    }
}

.forum-thread-title .material-symbols-outlined {
    font-size: 17px;
}

.forum-thread-title .forum-flag-pin { color: #ffb019; }
.forum-thread-title .forum-flag-lock { color: #f08484; }

.forum-thread-meta {
    margin-top: 4px;
    color: #8d8d8d;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.forum-thread-counts {
    display: flex;
    gap: 16px;
    color: #9a9a9a;
    font-size: 12.5px;
    text-align: center;
    white-space: nowrap;
}

.forum-thread-counts strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.forum-post-card {
    padding: 20px 24px;
    margin-bottom: 14px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(20, 21, 22, 0.94), rgba(45, 47, 49, 0.7));
}

.forum-post-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #9a9a9a;
    font-size: 13px;
    flex-wrap: wrap;
}

.forum-post-head img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    image-rendering: pixelated;
}

.forum-post-head .forum-post-author {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.forum-body {
    color: #d6d6d6;
    font-size: 15px;
    line-height: 2;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.forum-post-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.forum-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    box-shadow: none;
    font-size: 13.5px;
}

.forum-like-btn .material-symbols-outlined {
    font-size: 18px;
}

.forum-like-btn.is-liked {
    border-color: rgba(240, 132, 132, 0.65);
    color: #f08484;
}

.forum-like-btn.is-liked .material-symbols-outlined {
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
    color: #f08484;
}

.forum-mod-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(13, 14, 15, 0.5);
    color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
    font-size: 12.5px;
}

.forum-mod-btn .material-symbols-outlined {
    font-size: 16px;
}

@media (hover: hover) {
    .forum-mod-btn:hover {
        border-color: rgba(17, 212, 255, 0.5);
        color: #fff;
    }
}

.forum-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 42px 0 8px;
}

/* A dozen page numbers cannot sit on one line on a phone; wrap them and
   tighten the gap rather than letting the row run off both edges. */
@media (max-width: 560px) {
    .forum-pagination {
        gap: 8px;
    }
}

/* Geometry and colour come from the page group in the BUTTON SYSTEM. */
.forum-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--btn-weight);
    box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.48), 0 0 24px rgba(0, 132, 255, 0.3);
    text-shadow: none !important;
}

.forum-page-btn .material-symbols-outlined {
    font-size: 24px;
}

/* An arrow sits in the same row as the numerals, so it shares their radius
   and size; only the icon inside differs. */
.forum-page-btn.is-arrow {
    padding: 0;
    border-radius: var(--btn-r-lg);
}

.forum-page-btn.is-arrow .material-symbols-outlined {
    font-size: var(--btn-icon-lg);
}

.forum-page-btn.is-current {
    color: #ffffff;
    cursor: default;
}

@media (hover: hover) {
    .forum-page-btn:not(:disabled):not(.is-current):hover {
        transform: translateY(calc(-1 * var(--btn-lift)));
    }

    .forum-page-btn:hover .material-symbols-outlined {
        transform: none;
        color: inherit;
        text-shadow: none;
        filter: none;
        font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    }
}

/* Dimming comes from the shared disabled treatment — an arrow at the end of
   the pager has to look unavailable, not identical to a live page number. */
.forum-page-btn:disabled {
    cursor: default;
    filter: none;
}

.forum-page-gap {
    color: #6a6a6a;
}

.forum-empty {
    padding: 34px 20px;
    text-align: center;
    color: #8d8d8d;
    border: 2px dashed rgba(255, 255, 255, 0.14);
    border-radius: 18px;
}

.forum-draft-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-draft-row:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.forum-draft-title {
    color: #fff;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

@media (max-width: 800px) {
    .forum-section-card {
        grid-template-columns: minmax(0, 1fr);
    }
    .forum-section-stats {
        justify-content: flex-start;
    }
    .forum-section-latest {
        grid-column: 1 / -1;
        border-right: 0;
        padding-right: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 10px;
    }
    .forum-thread-row {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .forum-thread-counts {
        grid-column: 2;
        justify-content: flex-start;
    }
    .luna-forums-hero {
        padding-top: 150px;
    }
}

:where(.glass-panel, .bg-surface-container, .bg-surface-container-low, .bg-surface-container-high, .bg-surface-container-highest) {
    border-color: rgba(255, 255, 255, 0.16) !important;
    border-radius: 22px !important;
    background:
        linear-gradient(180deg, rgba(26, 27, 28, 0.92), rgba(17, 18, 19, 0.88)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 45px rgba(0, 0, 0, 0.22);
}

:where(input, textarea, select, .luna-editable) {
    border-color: rgba(255, 255, 255, 0.16) !important;
    border-radius: 14px !important;
    background: rgba(13, 14, 15, 0.72) !important;
    color: #f2f6ff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:where(input, textarea, select, .luna-editable):focus {
    border-color: var(--luna-blue-soft) !important;
    box-shadow: 0 0 0 3px rgba(17, 212, 255, 0.12), 0 0 24px rgba(0, 132, 255, 0.18);
}

:where(button, a[href], [role="button"], summary, .luna-tab, .card-hover, .store-card) {
    transition: var(--btn-transition);
}

:where(button, a[href], [role="button"], summary):active {
    transform: translateY(var(--btn-press));
}

:where(button, a[href], [role="button"], summary):disabled,
:where(button, a[href], [role="button"], summary)[aria-disabled="true"],
.cursor-not-allowed {
    opacity: var(--btn-disabled-opacity) !important;
    filter: saturate(0.75);
    transform: none !important;
    box-shadow: none !important;
}

:where(button[type="submit"], #mc-login-submit, #cred-submit, #new-ticket-btn, [data-details-button], [data-buy-button]:not(:disabled), a[class*="bg-primary"], a[class*="bg-brand"], button[class*="bg-primary"], button[class*="bg-brand"], button[class*="bg-secondary"], button[class*="border-primary"], button[class*="border-secondary"]) {
    --btn-depth-rest: var(--btn-depth-lg);
    --btn-depth: var(--btn-depth-rest);
    --btn-edge: #004c93;
    --btn-halo: rgba(0, 132, 255, 0.34);
    border: 0 !important;
    border-radius: var(--btn-r-md) !important;
    background: linear-gradient(180deg, #64acff 0%, #0077ff 82%) !important;
    color: #08121c !important;
    box-shadow:
        inset 0 3px 5px rgba(255, 255, 255, 0.42),
        0 var(--btn-depth) 0 var(--btn-edge),
        0 0 26px var(--btn-halo) !important;
    text-shadow: none !important;
    transition: var(--btn-transition) !important;
}

:where(button[class*="border-outline"], a[class*="border-outline"]) {
    --btn-depth-rest: 0px;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: var(--btn-r-lg) !important;
    background: linear-gradient(180deg, rgba(38, 39, 41, 0.88), rgba(9, 10, 11, 0.9)) !important;
    color: #fff !important;
    box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.22), 0 10px 24px rgba(0, 0, 0, 0.26) !important;
    transition: var(--btn-transition) !important;
}

:where(button[class*="bg-error"], button[class*="border-error"]) {
    --btn-depth-rest: 0px;
    border: 1px solid rgba(255, 91, 76, 0.46) !important;
    border-radius: var(--btn-r-lg) !important;
    background: rgba(255, 42, 13, 0.09) !important;
    color: #ff7a64 !important;
    box-shadow: none !important;
    transition: var(--btn-transition) !important;
}

:where(button, a[href], [role="button"]) .material-symbols-outlined,
:where(button, a[href], [role="button"]).material-symbols-outlined,
.luna-tab .material-symbols-outlined {
    transition:
        transform var(--motion-base) var(--motion-pop),
        color var(--motion-base) var(--motion-ease),
        text-shadow var(--motion-base) var(--motion-ease),
        font-variation-settings var(--motion-base) var(--motion-ease);
}

@media (hover: hover) {
    :where(button[type="submit"], #mc-login-submit, #cred-submit, #new-ticket-btn, [data-details-button], [data-buy-button]:not(:disabled), a[class*="bg-primary"], a[class*="bg-brand"], button[class*="bg-primary"], button[class*="bg-brand"], button[class*="bg-secondary"], button[class*="border-primary"], button[class*="border-secondary"]):hover {
        --btn-depth: calc(var(--btn-depth-rest) + var(--btn-lift));
        transform: translateY(calc(-1 * var(--btn-lift)));
        filter: brightness(var(--btn-glow));
        box-shadow:
            inset 0 3px 5px rgba(255, 255, 255, 0.5),
            0 var(--btn-depth) 0 var(--btn-edge),
            0 0 34px rgba(0, 132, 255, 0.5) !important;
    }

    :where(button[class*="border-outline"], a[class*="border-outline"]):hover {
        transform: translateY(calc(-1 * var(--btn-lift)));
        border-color: rgba(17, 212, 255, 0.56) !important;
        box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.28), 0 0 28px rgba(17, 212, 255, 0.22) !important;
    }

    :where(nav.fixed a, nav.fixed button):hover {
        transform: translateY(calc(-1 * var(--btn-lift)));
        color: var(--luna-blue-soft) !important;
        text-shadow: 0 0 15px rgba(17, 212, 255, 0.7);
    }

    .luna-tabs .luna-tab:hover {
        transform: translateY(calc(-1 * var(--btn-lift)));
        text-shadow: none !important;
    }

    /* (Hover colour comes from the tab group.) */

    footer a:hover {
        color: var(--luna-blue-soft) !important;
    }

    :where(.card-hover, .store-card, .luna-game-card):hover {
        transform: translateY(-5px);
        border-color: rgba(17, 212, 255, 0.62) !important;
        box-shadow: 0 20px 52px rgba(0, 0, 0, 0.32), 0 0 30px rgba(17, 212, 255, 0.16) !important;
    }

    .luna-game-card:hover img {
        transform: translateY(-3px) scale(1.035);
        filter: drop-shadow(0 0 28px color-mix(in srgb, var(--mode-color, #84f0ef) 58%, transparent));
    }

    /* A card's icon is decorative, so it may flourish on hover. A button's
       icon is part of the label — it moves with the button and takes the
       button's colour, and must not spin away on its own. */
    :where(.card-hover, .store-card, .luna-game-card):hover .material-symbols-outlined,
    .luna-footer-mark a:hover .luna-social-icon {
        transform: translateY(-1px) scale(1.12) rotate(-4deg);
        color: var(--luna-blue-soft);
        text-shadow: 0 0 16px rgba(17, 212, 255, 0.72);
        filter: drop-shadow(0 0 10px rgba(17, 212, 255, 0.72));
        font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
    }
}

.store-card .price-box,
.store-card [class*="bg-surface-container-low"] {
    border-radius: 12px !important;
}

.store-modal-panel :where(button, a[href]),
.luna-auth-page :where(button, a[href]),
.luna-dashboard :where(button, a[href]),
.luna-ticket-page :where(button, a[href]) {
    min-height: 40px;
}

nav.fixed {
    top: 16px;
    width: min(calc(100% - 44px), 1480px);
    border-radius: 24px;
}
nav.fixed > div {
    padding-left: 16px !important;
    padding-right: 16px !important;
}
nav.fixed .h-16 {
    height: 60px;
}
nav.fixed .luna-nav-logo,
nav.fixed .luna-nav-auth {
    flex-basis: clamp(120px, 13vw, 190px);
}
nav.fixed .luna-nav-links {
    gap: clamp(10px, 1.35vw, 24px) !important;
}
nav.fixed .luna-nav-link {
    min-width: clamp(54px, 6.8vw, 96px);
    min-height: 34px;
    padding: 4px 6px;
}
nav.fixed .luna-auth-cta {
    min-width: 126px;
    min-height: 38px;
    padding: 0 14px !important;
}
nav.fixed .luna-nav-account {
    min-width: 92px;
    min-height: 36px;
    padding: 0 13px !important;
}
nav.fixed img[src="/luna_logo.png"] {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    object-fit: contain;
}
nav.fixed .hidden.md\:flex.items-center.gap-8,
nav.fixed .hidden.md\:flex.items-center.gap-4 {
    gap: clamp(14px, 2vw, 38px) !important;
}
nav.fixed a,
nav.fixed button {
    font-size: 13px !important;
}
/* (The navbar CTA is defined once, near the top of this file.) */
nav.fixed .hidden.md\:flex.items-center.gap-8 a,
nav.fixed .hidden.md\:flex.items-center.gap-4 > a:not(.luna-blue-button):not(.luna-nav-account):not(:last-child) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.42);
}
nav.fixed .hidden.md\:flex.items-center.gap-8 a[aria-current="page"],
nav.fixed .hidden.md\:flex.items-center.gap-8 a.text-brand,
nav.fixed .hidden.md\:flex.items-center.gap-4 > a[aria-current="page"],
nav.fixed .hidden.md\:flex.items-center.gap-4 > a.text-brand {
    color: var(--luna-blue-soft) !important;
    text-shadow: 0 0 14px rgba(17, 212, 255, 0.76);
}
/* The mobile auth links are the navbar CTA in another slot, so they take
   the same compact primary treatment defined near the top of this file. */
nav.fixed .luna-nav-account,
nav.fixed #nav-auth-mobile a[href="/register"],
nav.fixed #nav-auth-mobile a:last-child,
nav.fixed .luna-blue-button {
    --btn-depth-rest: var(--btn-depth-md);
    --btn-depth: var(--btn-depth-rest);
    --btn-edge: #003f7a;
    --btn-halo: rgba(0, 132, 255, 0.38);
    min-height: var(--btn-h-sm);
    padding-inline: var(--btn-px-sm);
    border: 0 !important;
    border-radius: var(--btn-r-sm) !important;
    background: linear-gradient(180deg, #64acff 0%, #0077ff 82%) !important;
    color: #08121c !important;
    font-size: var(--btn-fs-sm);
    box-shadow:
        inset 0 3px 5px rgba(255, 255, 255, 0.42),
        0 var(--btn-depth) 0 var(--btn-edge),
        0 0 22px var(--btn-halo) !important;
    text-shadow: none !important;
}
nav.fixed #nav-auth-desktop a[href="/login"]:not(:last-child),
nav.fixed #nav-auth-mobile a[href="/login"]:not(:last-child) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.42) !important;
}

@media (max-width: 767px) {
    nav.fixed .luna-nav-links,
    nav.fixed .luna-nav-auth {
        display: none !important;
    }

    nav.fixed .luna-nav-menu-button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

.luna-hero {
    --hero-fs: clamp(34px, 3.8vw, 60px);
    min-height: 100svh;
    padding: 118px 24px 56px;
}
.luna-ip-pill,
.luna-player-pill,
.luna-primary-pill {
    min-height: 42px;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 13px;
}

.luna-section {
    width: min(100% - 32px, 1080px);
    padding: 48px 0;
}
.luna-section-title {
    margin-bottom: 30px;
    font-size: clamp(26px, 2.7vw, 46px);
}
.luna-game-grid {
    gap: 16px;
}
.luna-game-card {
    grid-template-columns: 104px 1fr;
    min-height: 148px;
    padding: 14px 18px;
    border-width: 3px;
    border-radius: 28px;
}
.luna-game-card img {
    width: 96px;
    height: 96px;
}
.luna-game-card h3 {
    font-size: clamp(17px, 1.25vw, 21px);
}
.luna-game-card p {
    font-size: 12.5px;
    line-height: 1.75;
}
.luna-status-row {
    margin-top: 6px;
    gap: 10px;
    font-size: 12px;
}
.luna-feedback-grid {
    gap: 16px;
}
.luna-feedback-card {
    min-height: 170px;
    padding: 42px 22px 20px;
}
.luna-feedback-card::before {
    top: -28px;
    width: 60px;
    height: 60px;
}
.luna-about-panel {
    margin: 40px auto;
    padding: clamp(22px, 3vw, 42px);
}
.luna-about-panel h2 {
    font-size: clamp(26px, 2.7vw, 40px);
}
.luna-bottom-cta {
    width: min(100% - 32px, 820px);
    min-height: 170px;
    grid-template-columns: 160px 1fr;
    border-radius: 28px;
    padding: 18px 30px;
}
.luna-bottom-cta img {
    width: 145px;
}
.luna-brand-word {
    font-size: clamp(20px, 6vw, 30px);
}

.luna-store-hero {
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 24px 40px;
}
.luna-store-title {
    font-size: clamp(32px, 3vw, 50px);
}
.luna-search-wrap {
    width: min(100%, 500px);
    min-height: 48px;
    border-width: 3px;
    border-radius: 14px;
}
.luna-search-wrap .material-symbols-outlined {
    width: 56px;
}
.luna-tabs {
    margin: 10px auto 18px;
}
.store-card {
    min-height: 300px;
    border-radius: 28px !important;
    padding: 18px 16px 16px !important;
}
.store-card img {
    width: 104px !important;
    height: 104px !important;
}
.store-card h3 {
    font-size: 17px !important;
}
.store-card [data-buy-button]:disabled,
.store-card button:disabled {
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: linear-gradient(180deg, rgba(38, 39, 41, 0.86), rgba(12, 13, 14, 0.92)) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.12) !important;
}
/* Store card actions. They are themed per product further down, so this only
   sets what has to beat the inline Tailwind utilities. The depth tokens are
   declared here so the hover rules can grow the edge instead of losing the
   whole shadow to an unresolved var(). */
.store-card [data-details-button],
.store-card [data-gift-button],
.store-card [data-tag-buy],
.store-card [data-tag-gift] {
    --btn-depth-rest: var(--btn-depth-md);
    --btn-depth: var(--btn-depth-rest);
    --btn-edge: #004c93;
    border: 0 !important;
    background: linear-gradient(180deg, #64acff 0%, #0077ff 82%) !important;
    color: #101416 !important;
    text-shadow: none !important;
}

/* Only the parts that must beat the inline Tailwind utilities are forced;
   the depth edge is left to the primary group so it animates. */
.luna-bottom-cta button {
    border: 0 !important;
    background: linear-gradient(180deg, #64acff 0%, #0077ff 82%) !important;
    color: #08121c !important;
    text-shadow: none !important;
}
.store-card [data-details-button],
.store-card [data-gift-button] {
    background: linear-gradient(180deg, #ffc13a 0%, #ffb019 82%) !important;
    color: #141516 !important;
    box-shadow: inset 0 3px 5px rgba(255,255,255,0.42), 0 4px 0 rgba(120,73,0,0.85), 0 0 20px rgba(255,176,25,0.34) !important;
}

.store-card [data-tag-buy],
.store-card [data-tag-gift] {
    background: linear-gradient(180deg, #64acff 0%, #0077ff 82%) !important;
    color: #101416 !important;
    box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.48), 0 4px 0 #004c93, 0 0 20px rgba(0, 132, 255, 0.34) !important;
}

.store-card .store-info-button {
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.75) !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

@media (hover: hover) {
    .store-card .store-info-button:hover {
        color: var(--luna-yellow) !important;
    }
    .store-card:hover .store-info-button .material-symbols-outlined,
    .store-card .store-info-button:hover .material-symbols-outlined {
        color: var(--luna-yellow);
        text-shadow: 0 0 16px rgba(255, 176, 25, 0.72);
        filter: drop-shadow(0 0 10px rgba(255, 176, 25, 0.55));
    }
}

#rank-modal-close {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.75) !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

#rank-modal-close:focus-visible {
    color: #fff !important;
}

@media (hover: hover) {
    #rank-modal-close:hover {
        transform: none;
        color: #fff !important;
        box-shadow: none !important;
    }
    #rank-modal-close:hover .material-symbols-outlined {
        color: #fff;
        text-shadow: none;
        transform: none;
    }
}

.store-tag-card {
    min-height: 260px;
}

.store-tag-card .store-tag-render {
    min-height: 88px;
    font-size: clamp(22px, 2vw, 30px) !important;
}

.luna-footer-mark a {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 0;
    display: inline-grid;
    place-items: center;
    background: transparent;
    box-shadow: none;
}
.luna-footer-mark .luna-footer-rules {
    width: max-content;
    height: auto;
    display: block;
    margin: 6px auto 0;
}
.luna-footer-mark .luna-footer-trust a {
    width: auto;
    height: auto;
    display: inline-flex;
}
.luna-footer-mark .material-symbols-outlined {
    font-size: 24px;
}
.luna-footer-mark .luna-social-icon {
    width: 24px;
    height: 24px;
    display: block;
    transition:
        transform var(--motion-base) var(--motion-pop),
        color var(--motion-base) var(--motion-ease),
        filter var(--motion-base) var(--motion-ease);
}
.luna-footer-mark a:hover,
.luna-footer-mark a:active {
    transform: none;
    box-shadow: none;
}
#toggle-password,
[data-remove-attachment] {
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, rgba(35, 36, 38, 0.72), rgba(9, 10, 11, 0.86)) !important;
    color: rgba(255, 255, 255, 0.72) !important;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1);
}
#toggle-password {
    width: 32px;
    height: 32px;
    left: 8px !important;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
}

@media (hover: hover) {
    .store-card [data-details-button]:hover,
    .store-card [data-tag-buy]:hover,
    .luna-bottom-cta button:hover {
        --btn-depth: calc(var(--btn-depth-rest) + var(--btn-lift));
        transform: translateY(calc(-1 * var(--btn-lift)));
        filter: brightness(var(--btn-glow));
        box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.58), 0 var(--btn-depth) 0 var(--btn-edge), 0 0 38px rgba(0, 132, 255, 0.54) !important;
    }
    [data-remove-attachment]:hover {
        transform: translateY(calc(-1 * var(--btn-lift)));
        border-color: rgba(17, 212, 255, 0.56) !important;
        box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.18), 0 0 24px rgba(17, 212, 255, 0.24);
    }
    #toggle-password:hover {
        transform: translateY(calc(-50% - 2px));
        border-color: rgba(17, 212, 255, 0.56) !important;
        box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.18), 0 0 20px rgba(17, 212, 255, 0.22);
    }
}

.luna-auth-page main {
    padding-top: 140px !important;
    padding-bottom: 52px !important;
}
.luna-auth-page .w-full.max-w-md {
    max-width: 420px !important;
}
.luna-auth-page .text-center.mb-8 h1 {
    font-size: 27px !important;
}
.luna-auth-page label {
    font-size: 16px;
}
.luna-auth-page input,
.luna-auth-page textarea,
.luna-auth-page select,
.luna-auth-page button[type="submit"],
.luna-auth-page #mc-login-submit {
    min-height: 44px;
    border-radius: 10px !important;
    font-size: 12.5px !important;
}
.luna-dashboard main,
.luna-ticket-page main {
    padding-top: 118px !important;
}

@media (max-width: 900px) {
    nav.fixed .h-16 {
        height: 58px;
    }
    .luna-hero {
        min-height: 100svh;
        padding-top: 104px;
        padding-bottom: 52px;
    }
    .luna-game-card {
        grid-template-columns: 84px 1fr;
        min-height: 128px;
        padding: 12px 14px;
        border-radius: 22px;
    }
    .luna-game-card img {
        width: 76px;
        height: 76px;
    }
}

@media (max-width: 640px) {
    nav.fixed:has(#mobile-menu-btn) .h-16 > a:first-child {
        visibility: hidden;
        width: 44px;
        min-width: 44px;
    }
    nav.fixed:has(#mobile-menu-btn) img[src="/luna_logo.png"] {
        display: none;
    }
    nav.fixed:not(:has(#mobile-menu-btn)) .h-16 > a:first-child {
        visibility: visible;
        width: 56px;
        min-width: 56px;
        overflow: visible;
    }
    nav.fixed:not(:has(#mobile-menu-btn)) img[src="/luna_logo.png"] {
        display: block;
        width: 48px !important;
        height: 48px !important;
        object-fit: contain;
    }
    nav.fixed:not(:has(#mobile-menu-btn)) a.font-lalezar span:not(.material-symbols-outlined) {
        display: none;
    }
    .luna-hero {
        --hero-fs: clamp(22px, 6.3vw, 26px);
        min-height: 100svh;
        padding-top: 96px;
        padding-bottom: 48px;
    }
    .luna-section {
        width: min(100% - 24px, 1080px);
        padding: 40px 0;
    }
    .luna-hero-title {
        max-width: calc(100% - 44px);
    }
    .luna-actions {
        max-width: 300px;
        gap: 8px;
    }
    .luna-ip-pill,
    .luna-player-pill,
    .luna-primary-pill {
        max-width: 280px;
        min-height: 34px;
        border-radius: 9px;
        font-size: 12px;
    }
    .luna-primary-pill {
        min-height: 36px;
        padding-inline: 18px;
    }
    .luna-section-title {
        font-size: 28px;
    }
    .luna-game-card {
        width: 100%;
        grid-template-columns: 72px minmax(0, 1fr);
        padding: 10px 12px;
        overflow: hidden;
    }
    .luna-game-card img {
        width: 66px;
        height: 66px;
    }
    .luna-game-card h3 {
        font-size: 16px;
    }
    .luna-game-card p,
    .luna-status-row {
        font-size: 11.5px;
    }
    .luna-store-hero {
        min-height: 320px;
        padding: 92px 16px 24px;
    }
    .luna-store-title {
        font-size: 28px;
        line-height: 1.18;
    }
    .luna-store-hero p {
        max-width: 300px;
        margin-inline: auto;
        margin-top: 10px !important;
        font-size: 12px !important;
        line-height: 1.65 !important;
    }
    .luna-search-wrap {
        width: min(100%, 320px);
        min-height: 40px;
        border-width: 2px;
        border-radius: 11px;
    }
    .luna-search-wrap .material-symbols-outlined {
        width: 44px;
        font-size: 21px;
    }
    .luna-tabs {
        gap: 7px;
        margin: 8px auto 18px;
    }
    #rank-grid.grid,
    #tag-grid.grid {
        gap: 14px !important;
    }
    .store-card {
        min-height: 232px;
        padding: 12px !important;
        border-radius: 18px !important;
    }
    .store-card img {
        width: 76px !important;
        height: 76px !important;
    }
    .store-card h3 {
        font-size: 14px !important;
    }
    .store-card [data-buy-button],
    .store-card [data-details-button],
    .store-card button {
        min-height: 30px;
        padding: 5px 10px !important;
        border-radius: 11px !important;
        font-size: 11px !important;
    }
    /* Two products per row on phones; one long single-file column makes the
       store a very deep scroll. The cards are compacted to match. */
    #rank-grid.grid,
    #tag-grid.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .store-card {
        min-height: 0;
    }
    .store-card .mb-6 {
        margin-bottom: 8px;
    }
    .store-card .mt-6 {
        margin-top: 10px;
    }
    .store-card img {
        width: 64px !important;
        height: 64px !important;
    }
    .store-card .price-box {
        padding: 7px 8px;
    }
    /* The amount already says تومان; drop the قیمت label so it never wraps. */
    .store-card .price-box span:first-child {
        display: none;
    }
    .store-card .price-box .flex {
        justify-content: center;
    }
    .store-card .price-box strong {
        font-size: 13px !important;
    }
    .store-card .store-gift-button {
        width: 36px;
    }
    .store-card .luna-gift-icon {
        width: 17px;
        height: 17px;
    }
    .store-tag-card {
        min-height: 0;
        gap: 10px;
    }
    .store-tag-card .store-tag-render {
        min-height: 56px;
        font-size: 17px !important;
    }
    /* The sponsor offer keeps a full row for emphasis. */
    .store-sponsor-card {
        grid-column: span 2;
    }
    .luna-bottom-cta {
        width: min(100% - 28px, 360px);
        min-height: 0;
        gap: 12px;
        padding: 18px;
        border-radius: 18px;
    }
    .luna-bottom-cta img {
        width: 108px;
        margin-inline: auto;
    }
    .luna-bottom-cta p {
        margin-bottom: 10px !important;
        font-size: 12px !important;
        line-height: 1.7 !important;
    }
    .luna-auth-page main {
        padding-top: 108px !important;
        padding-bottom: 36px !important;
    }
    .luna-auth-page .w-full.max-w-md {
        max-width: 350px !important;
    }
    .luna-auth-page .text-center.mb-8 {
        margin-bottom: 14px !important;
    }
    .luna-auth-page .text-center.mb-8 h1 {
        font-size: 21px !important;
    }
    .luna-auth-page .text-center.mb-8 h1::before {
        font-size: 29px;
    }
    .luna-auth-page .glass-panel {
        padding: 18px !important;
        border-radius: 15px !important;
    }
    .luna-auth-page label {
        font-size: 13px;
    }
    .luna-auth-page input,
    .luna-auth-page textarea,
    .luna-auth-page select,
    .luna-auth-page button[type="submit"],
    .luna-auth-page #mc-login-submit {
        min-height: 40px;
        font-size: 11.5px !important;
    }
    .luna-dashboard main,
    .luna-ticket-page main,
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 {
        padding-top: 100px !important;
        padding-bottom: 48px !important;
    }
    .luna-dashboard h1,
    .luna-ticket-page h1,
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 h1 {
        font-size: 24px !important;
    }
    .luna-dashboard h2,
    .luna-ticket-page h2,
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 h2 {
        font-size: 18px !important;
    }
    .luna-dashboard .bg-surface-container,
    .luna-ticket-page .bg-surface-container,
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 .glass-panel,
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 .bg-surface-container {
        border-radius: 14px !important;
        padding: 16px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    nav.fixed {
        top: 14px;
        width: min(calc(100% - 48px), 1240px);
    }
    nav.fixed > div:first-child {
        height: 60px;
        border-radius: 18px;
    }
    nav.fixed .h-16 {
        height: 60px;
    }
    nav.fixed img {
        max-height: 34px;
    }
    nav.fixed img[src="/luna_logo.png"] {
        width: 44px !important;
        max-width: 44px;
        height: 44px !important;
        object-fit: contain;
    }
    nav.fixed a,
    nav.fixed button {
        font-size: 14px !important;
        white-space: nowrap;
    }
    nav.fixed .h-16 > div.hidden {
        gap: 1.15rem !important;
    }
    nav.fixed .luna-nav-account,
    .luna-auth-page .luna-auth-figma-action {
        min-width: 126px;
        min-height: 38px;
        border-radius: 10px;
        font-size: 14px !important;
        box-shadow: inset 0 2px 3px rgba(255,255,255,0.5), 0 3px 0 #004c93, 0 0 18px rgba(0,132,255,0.3);
    }
    .luna-hero {
        --hero-fs: 38px;
        min-height: 100svh;
        padding-top: 132px;
        padding-bottom: 58px;
    }
    .luna-actions {
        gap: 8px;
        max-width: 390px;
    }
    .luna-primary-pill,
    .luna-ip-pill,
    .luna-player-pill {
        min-height: 28px;
        padding: 0 12px;
        font-size: 11px;
        border-radius: 8px;
    }
    .luna-ip-pill,
    .luna-player-pill {
        font-size: 11px;
    }
    .luna-primary-pill {
        min-height: 28px;
        box-shadow: inset 0 2px 3px rgba(255,255,255,0.65), 0 3px 0 #004c93, 0 0 18px rgba(0,132,255,0.46);
    }
    .luna-section {
        width: min(100% - 96px, 1040px);
        padding: 40px 0;
    }
    .luna-section-title {
        margin-bottom: 32px;
        font-size: 36px;
    }
    .luna-game-grid {
        gap: 18px 22px;
    }
    .luna-game-card {
        grid-template-columns: 90px 1fr;
        min-height: 128px;
        padding: 12px 16px;
        border-width: 3px;
        border-radius: 22px;
    }
    .luna-game-card img {
        width: 78px;
        height: 78px;
    }
    .luna-game-card h3 {
        font-size: 17px;
    }
    .luna-game-card p {
        font-size: 11.5px;
        line-height: 1.6;
    }
    .luna-status-row {
        margin-top: 4px;
        font-size: 10.5px;
    }
    .luna-feedback-grid {
        width: min(100%, 920px);
        gap: 26px;
    }
    .luna-feedback-card {
        min-height: 140px;
        padding: 36px 20px 18px;
    }
    .luna-feedback-card::before {
        top: -26px;
        width: 58px;
        height: 58px;
    }
    .luna-about-panel {
        max-width: 820px;
        margin-top: 54px;
        margin-bottom: 56px;
        padding: 34px 48px;
        border-radius: 28px !important;
    }
    .luna-about-panel h2 {
        font-size: 30px;
    }
    .luna-store-hero {
        min-height: 520px;
        padding-top: 124px;
        padding-bottom: 36px;
    }
    .luna-store-title {
        font-size: 46px;
        line-height: 1.12;
    }
    .luna-store-hero p {
        font-size: 16px !important;
        margin-top: 14px !important;
    }
    .luna-search-wrap {
        width: 460px;
        min-height: 44px;
        margin-top: -28px;
        border-width: 3px;
        border-radius: 13px;
    }
    .luna-search-wrap .material-symbols-outlined {
        width: 54px;
        font-size: 24px;
    }
    .luna-tabs {
        gap: 9px;
        margin-top: 16px;
        margin-bottom: 30px;
    }
    #rank-grid,
    #tag-grid {
        width: min(100%, 1020px);
    }
    #rank-grid.grid,
    #tag-grid.grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
    .store-card {
        min-height: 260px;
        padding: 13px 12px 12px !important;
        border-radius: 16px !important;
    }
    .store-card img {
        width: 88px !important;
        height: 88px !important;
    }
    .store-card h3 {
        font-size: 15px !important;
        line-height: 1.22 !important;
    }
    .store-card .price-box {
        margin-top: 7px !important;
        padding: 6px 10px !important;
    }
    .store-card [data-buy-button],
    .store-card [data-details-button],
    .store-card button {
        min-height: 30px;
        font-size: 11.5px !important;
        border-radius: 12px !important;
        padding: 5px 12px !important;
    }
    .luna-bottom-cta {
        width: min(100% - 56px, 740px);
        min-height: 150px;
        grid-template-columns: 150px 1fr;
        padding: 18px 30px;
        border-radius: 22px;
    }
    .luna-bottom-cta img {
        width: 126px;
    }
    .luna-bottom-cta p {
        font-size: 15px !important;
        line-height: 1.65 !important;
        margin-bottom: 10px !important;
    }
    .luna-auth-page main {
        padding-top: 148px !important;
        padding-bottom: 46px !important;
        min-height: auto;
    }
    .luna-auth-page .w-full.max-w-md {
        max-width: 390px !important;
    }
    .luna-auth-page .text-center.mb-8 {
        margin-bottom: 16px !important;
    }
    .luna-auth-page .text-center.mb-8 h1 {
        font-size: 24px !important;
        gap: 10px;
    }
    .luna-auth-page .text-center.mb-8 h1::before {
        font-size: 34px;
    }
    .luna-auth-page .glass-panel {
        padding: 22px 24px !important;
        border-radius: 18px !important;
    }
    .luna-auth-page label {
        font-size: 15px;
        margin-bottom: 6px !important;
    }
    .luna-auth-page input,
    .luna-auth-page textarea,
    .luna-auth-page select,
    .luna-auth-page button[type="submit"],
    .luna-auth-page #mc-login-submit {
        min-height: 42px;
        border-radius: 11px !important;
        font-size: 13px !important;
    }
    .luna-auth-bottom-cta {
        margin-bottom: 44px;
    }
    .luna-dashboard main,
    .luna-ticket-page main {
        padding-top: 108px !important;
        padding-bottom: 64px !important;
    }
    .luna-dashboard .max-w-4xl,
    .luna-ticket-page .max-w-2xl {
        max-width: 760px !important;
    }
    .luna-dashboard .bg-surface-container,
    .luna-ticket-page .bg-surface-container {
        border-radius: 16px !important;
        padding: 22px !important;
    }
    .luna-dashboard h1,
    .luna-ticket-page h1 {
        font-size: 28px !important;
    }
    .luna-dashboard h2,
    .luna-ticket-page h2 {
        font-size: 20px !important;
    }
    .luna-dashboard label,
    .luna-ticket-page label {
        font-size: 14px;
    }
    .luna-dashboard input,
    .luna-dashboard textarea,
    .luna-dashboard select,
    .luna-ticket-page input,
    .luna-ticket-page textarea,
    .luna-ticket-page select {
        min-height: 42px;
        border-radius: 11px !important;
        font-size: 13px !important;
    }
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 {
        padding-top: 108px !important;
        padding-bottom: 72px !important;
    }
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 h1 {
        font-size: 30px !important;
    }
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 h2 {
        font-size: 21px !important;
    }
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 .glass-panel,
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 .bg-surface-container {
        border-radius: 16px !important;
        padding: 20px !important;
    }
}

@media (min-width: 1600px) {
    nav.fixed {
        top: 22px;
        width: min(calc(100% - 88px), 1540px);
    }
    nav.fixed > div:first-child {
        height: 74px;
        border-radius: 22px;
    }
    nav.fixed .h-16 {
        height: 74px;
    }
    nav.fixed img[src="/luna_logo.png"] {
        width: 50px !important;
        max-width: 50px;
        height: 50px !important;
        object-fit: contain;
    }
    nav.fixed a,
    nav.fixed button {
        font-size: 16px !important;
        white-space: nowrap;
    }
    nav.fixed .hidden.md\:flex.items-center.gap-8,
    nav.fixed .hidden.md\:flex.items-center.gap-4 {
        gap: clamp(26px, 2.5vw, 54px) !important;
    }
    nav.fixed .luna-nav-account,
    .luna-auth-page .luna-auth-figma-action {
        min-width: 154px;
        min-height: 46px;
        border-radius: 13px;
        font-size: 16px !important;
        box-shadow: inset 0 3px 4px rgba(255,255,255,0.5), 0 4px 0 #004c93, 0 0 24px rgba(0,132,255,0.34);
    }

    .luna-hero {
        --hero-fs: 52px;
        min-height: 100svh;
        padding-top: 160px;
        padding-bottom: 54px;
    }
    .luna-actions {
        gap: 10px;
        max-width: 440px;
    }
    .luna-primary-pill,
    .luna-ip-pill,
    .luna-player-pill {
        min-height: 34px;
        padding: 0 16px;
        border-radius: 9px;
        font-size: 13px;
    }
    .luna-primary-pill {
        min-height: 34px;
        box-shadow: inset 0 2px 3px rgba(255,255,255,0.65), 0 4px 0 #004c93, 0 0 22px rgba(0,132,255,0.46);
    }

    .luna-section {
        width: min(100% - 180px, 1240px);
        padding: 54px 0;
    }
    .luna-section-title {
        margin-bottom: 42px;
        font-size: 44px;
    }
    .luna-game-grid {
        gap: 22px 28px;
    }
    .luna-game-card {
        grid-template-columns: 108px 1fr;
        min-height: 146px;
        padding: 14px 18px;
        border-width: 3px;
        border-radius: 24px;
    }
    .luna-game-card img {
        width: 94px;
        height: 94px;
    }
    .luna-game-card h3 {
        font-size: 19px;
    }
    .luna-game-card p {
        font-size: 13px;
        line-height: 1.55;
    }
    .luna-status-row {
        margin-top: 5px;
        font-size: 12px;
    }
    .luna-feedback-grid {
        width: min(100%, 1120px);
        gap: 36px;
    }
    .luna-feedback-card {
        min-height: 162px;
        padding: 42px 24px 20px;
    }
    .luna-feedback-card::before {
        top: -30px;
        width: 64px;
        height: 64px;
    }
    .luna-about-panel {
        max-width: 980px;
        margin-top: 64px;
        margin-bottom: 66px;
        padding: 42px 56px;
        border-radius: 32px !important;
    }
    .luna-about-panel h2 {
        font-size: 36px;
    }
    .luna-bottom-cta {
        width: min(100% - 96px, 860px);
        min-height: 176px;
        grid-template-columns: 180px 1fr;
        padding: 22px 38px;
        border-radius: 26px;
    }
    .luna-bottom-cta img {
        width: 154px;
    }
    .luna-bottom-cta p {
        margin-bottom: 12px !important;
        font-size: 18px !important;
        line-height: 1.65 !important;
    }

    .luna-store-hero {
        min-height: 580px;
        padding-top: 132px;
        padding-bottom: 44px;
    }
    .luna-store-title {
        font-size: 54px;
        line-height: 1.12;
    }
    .luna-store-hero p {
        margin-top: 18px !important;
        font-size: 18px !important;
    }
    .luna-search-wrap {
        width: 520px;
        min-height: 50px;
        margin-top: -32px;
        border-width: 3px;
        border-radius: 15px;
    }
    .luna-search-wrap .material-symbols-outlined {
        width: 60px;
        font-size: 26px;
    }
    .luna-tabs {
        gap: 10px;
        margin-top: 18px;
        margin-bottom: 36px;
    }
    #rank-grid,
    #tag-grid {
        width: min(100%, 1120px);
    }
    #rank-grid.grid,
    #tag-grid.grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }
    .store-card {
        min-height: 282px;
        padding: 15px 14px 14px !important;
        border-radius: 18px !important;
    }
    .store-card img {
        width: 96px !important;
        height: 96px !important;
    }
    .store-card h3 {
        font-size: 16px !important;
        line-height: 1.25 !important;
    }
    .store-card .price-box {
        margin-top: 8px !important;
        padding: 7px 11px !important;
    }
    .store-card [data-buy-button],
    .store-card [data-details-button],
    .store-card button {
        min-height: 32px;
        padding: 6px 12px !important;
        border-radius: 13px !important;
        font-size: 12px !important;
    }

    .luna-auth-page main {
        padding-top: 170px !important;
        padding-bottom: 52px !important;
        min-height: auto;
    }
    .luna-auth-page .w-full.max-w-md {
        max-width: 430px !important;
    }
    .luna-auth-page .text-center.mb-8 {
        margin-bottom: 18px !important;
    }
    .luna-auth-page .text-center.mb-8 h1 {
        font-size: 27px !important;
        gap: 11px;
    }
    .luna-auth-page .text-center.mb-8 h1::before {
        font-size: 38px;
    }
    .luna-auth-page .glass-panel {
        padding: 26px 28px !important;
        border-radius: 20px !important;
    }
    .luna-auth-page label {
        margin-bottom: 7px !important;
        font-size: 16px;
    }
    .luna-auth-page input,
    .luna-auth-page textarea,
    .luna-auth-page select,
    .luna-auth-page button[type="submit"],
    .luna-auth-page #mc-login-submit {
        min-height: 45px;
        border-radius: 12px !important;
        font-size: 13.5px !important;
    }

    .luna-dashboard main,
    .luna-ticket-page main {
        padding-top: 124px !important;
        padding-bottom: 74px !important;
    }
    .luna-dashboard .max-w-4xl,
    .luna-ticket-page .max-w-2xl {
        max-width: 860px !important;
    }
    .luna-dashboard .bg-surface-container,
    .luna-ticket-page .bg-surface-container {
        padding: 26px !important;
        border-radius: 18px !important;
    }
    .luna-dashboard h1,
    .luna-ticket-page h1 {
        font-size: 32px !important;
    }
    .luna-dashboard h2,
    .luna-ticket-page h2 {
        font-size: 22px !important;
    }

    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 {
        padding-top: 124px !important;
        padding-bottom: 82px !important;
    }
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 h1 {
        font-size: 34px !important;
    }
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 h2 {
        font-size: 23px !important;
    }
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 .glass-panel,
    body:not(.luna-store-page):not(.luna-auth-page):not(.luna-dashboard):not(.luna-ticket-page) > main.flex-1 .bg-surface-container {
        padding: 24px !important;
        border-radius: 18px !important;
    }
}

body.luna-home-page main {
    padding-top: clamp(72px, 8vw, 140px);
}

body.luna-home-page .luna-section {
    padding-top: clamp(92px, 8.5vw, 150px);
    padding-bottom: clamp(92px, 8.5vw, 150px);
}

body.luna-home-page .luna-section + .luna-section,
body.luna-home-page .luna-section + .luna-about-panel,
body.luna-home-page .luna-about-panel + .luna-bottom-cta {
    margin-top: clamp(42px, 5.5vw, 96px);
}

body.luna-home-page .luna-section-title {
    margin-bottom: clamp(58px, 5.6vw, 90px);
}

body.luna-home-page .luna-about-panel {
    margin-top: clamp(84px, 8vw, 150px);
    margin-bottom: clamp(84px, 8vw, 150px);
}

body.luna-home-page .luna-bottom-cta {
    margin-top: clamp(90px, 8vw, 150px);
    margin-bottom: clamp(72px, 7vw, 128px);
}

body.luna-home-page .luna-hero-content {
    width: min(100%, 800px);
}

body.luna-home-page .luna-hero {
    --hero-fs: clamp(38px, 4.4vw, 68px);
}

body.luna-home-page .luna-actions {
    gap: 13px;
    max-width: 560px;
}

/* The hero cluster takes the xl step from the BUTTON SYSTEM, which also
   steps down to md under 900px, so no bespoke sizes are set here. */

body.luna-dashboard-figma {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Shabnam', 'Vazirmatn', sans-serif;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 24%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.08) 100%),
        url("/figma/auth-bg.png") center / cover no-repeat fixed,
        #050607;
}

body.luna-dashboard-figma::before,
body.luna-dashboard-figma::after {
    display: none !important;
}

.dash-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(132px, 11vw, 168px) clamp(18px, 3vw, 52px) clamp(18px, 3vw, 52px);
}

.dash-shell {
    width: min(100%, 1080px);
    min-height: min(84vh, 760px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
    padding: 34px 30px 34px 40px;
    direction: ltr;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(22, 23, 25, 0.94), rgba(18, 19, 20, 0.88)),
        rgba(18, 19, 20, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 26px 90px rgba(0, 0, 0, 0.62);
}

.dash-main,
.dash-sidebar {
    direction: rtl;
}

.dash-main {
    min-width: 0;
    display: grid;
    gap: 20px;
    align-content: start;
}

.dash-profile-card {
    position: relative;
    min-height: 106px;
    display: grid;
    grid-template-columns: 82px minmax(128px, 1fr) minmax(84px, 1fr);
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border: 2px solid transparent;
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 96% 0%, rgba(0, 132, 255, 0.28) 0%, rgba(0, 132, 255, 0.15) 34%, rgba(0, 132, 255, 0.05) 62%, transparent 82%) padding-box,
        linear-gradient(90deg, rgba(13, 14, 15, 0.9), rgba(13, 14, 15, 0.9) 54%, rgba(13, 15, 18, 0.88)) padding-box,
        linear-gradient(90deg, rgba(255, 255, 255, 0.13), rgba(0, 132, 255, 0.22) 48%, rgba(0, 132, 255, 0.95)) border-box;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        18px 0 26px rgba(0, 132, 255, 0.2),
        -10px 10px 22px rgba(0, 132, 255, 0.11),
        -8px 0 18px rgba(0, 0, 0, 0.24);
}

.dash-profile-card::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 42%;
    bottom: -9px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 132, 255, 0.26), rgba(0, 132, 255, 0.1) 42%, transparent 72%);
    filter: blur(8px);
    opacity: 0.82;
    pointer-events: none;
    z-index: -1;
}

.dash-avatar-wrap {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #27201a;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
}

.dash-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-avatar-placeholder {
    color: #0084ff;
    font-size: 38px;
}

.dash-user-copy h1 {
    color: #008eff;
    font-size: clamp(27px, 2.2vw, 34px);
    font-weight: 800;
    line-height: 1.05;
    text-shadow: 0 0 18px rgba(0, 142, 255, 0.55);
}

.dash-user-copy p,
.dash-profile-stat span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 15px;
    font-weight: 600;
}

.dash-profile-stat {
    text-align: center;
}

.dash-profile-stat strong {
    display: block;
    color: #008eff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 13px rgba(0, 142, 255, 0.5);
}

.dash-section {
    display: grid;
    gap: 11px;
}

.dash-section h2 {
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: clamp(28px, 2.25vw, 35px);
    font-weight: 900;
    line-height: 1;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.95),
        0 0 30px rgba(255, 255, 255, 0.52);
}

.dash-panel {
    min-height: 142px;
    display: grid;
    place-items: center;
    padding: 18px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 27px;
    background:
        linear-gradient(180deg, rgba(20, 21, 22, 0.72), rgba(16, 17, 18, 0.82)),
        rgba(17, 18, 19, 0.74);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.25);
}

.dash-empty-state {
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 800;
    text-align: center;
    box-shadow: none;
}

.dash-empty-state .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.58);
    font-size: 60px;
    line-height: 1;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 48;
}

.dash-empty-state p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 18px;
    font-weight: 800;
}

.dash-row-list {
    --dash-row-height: 38px;
    --dash-row-gap: 9px;
    --dash-row-peek: 10px;
    width: 100%;
    display: grid;
    gap: var(--dash-row-gap);
}

/* Three rows stay visible (DASH_VISIBLE_ROWS in dashboard.html), and the top edge of a
   fourth peeks out to signal the rest can be scrolled to. The peek stops short of that
   row's text so it reads as another card, not as a clipped line. */
.dash-row-list.is-scrollable {
    max-height: calc(3 * var(--dash-row-height) + 3 * var(--dash-row-gap) + var(--dash-row-peek));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-inline-end: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 142, 255, 0.55) transparent;
}

.dash-row-list.is-scrollable::-webkit-scrollbar {
    width: 6px;
}

.dash-row-list.is-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.dash-row-list.is-scrollable::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: rgba(0, 142, 255, 0.55);
}

.dash-row-list.is-scrollable::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 142, 255, 0.85);
}

.dash-data-row {
    position: relative;
    width: 100%;
    min-height: 38px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 14px;
    padding-block: 0;
    padding-inline: 22px 34px;
    appearance: none;
    border: 0;
    border-radius: 16px;
    background: rgba(58, 58, 61, 0.82);
    color: #f2f2f2;
    font-family: inherit;
    font-size: clamp(14px, 1.15vw, 19px);
    font-weight: 900;
    line-height: 1.1;
    text-align: start;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.dash-data-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Absolutely positioned so it stays out of the row's three-column grid. The icon font
   class forces direction: ltr, which would resolve the logical inset to the wrong edge. */
.dash-row-chevron {
    position: absolute;
    direction: inherit;
    inset-inline-end: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.32);
    text-shadow: none;
    pointer-events: none;
}

.dash-data-row:focus-visible {
    outline: 2px solid rgba(0, 142, 255, 0.75);
    outline-offset: -2px;
    background: rgba(74, 74, 78, 0.92);
}

.dash-data-row:focus-visible .dash-row-chevron {
    color: #75c7ff;
}

@media (hover: hover) {
    .dash-data-row:hover {
        background: rgba(74, 74, 78, 0.92);
    }

    .dash-data-row:hover .dash-row-chevron {
        color: #75c7ff;
    }
}

.dash-view {
    display: grid;
    gap: 20px;
}

.dash-settings-view {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(250px, 310px) minmax(250px, 340px);
    grid-auto-rows: max-content;
    align-content: start;
    align-items: start;
    justify-content: center;
    gap: 18px 36px;
    padding-top: 52px;
    direction: ltr;
}

.dash-settings-view.hidden,
.dash-view.hidden,
.dash-cart-view.hidden,
.dash-ticket-view.hidden,
.dash-settings-form.hidden {
    display: none;
}

.dash-view-enter {
    animation: dash-view-enter var(--motion-base) var(--motion-pop) both;
}

.dash-view-leave {
    animation: dash-view-leave var(--motion-fast) var(--motion-ease) both;
    pointer-events: none;
}

@keyframes dash-view-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dash-view-leave {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

#dashboard-view:not(.hidden),
#settings-view:not(.hidden),
#cart-view:not(.hidden),
#tickets-view:not(.hidden),
#ticket-new-view:not(.hidden) {
    view-transition-name: dash-view;
}

html:has(body.luna-dashboard) {
    view-transition-name: none;
}

::view-transition {
    pointer-events: none;
}

::view-transition-group(dash-view) {
    animation-duration: var(--motion-base);
    animation-timing-function: var(--motion-ease);
}

::view-transition-old(dash-view),
::view-transition-new(dash-view) {
    animation-duration: var(--motion-base);
    animation-timing-function: var(--motion-ease);
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-image-pair(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important;
    }
}

.dash-cart-view {
    min-height: 520px;
    display: grid;
    align-items: stretch;
    direction: ltr;
}

.dash-cart-layout {
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0 0;
    direction: ltr;
}

.dash-cart-checkout,
.dash-cart-products {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005) 50%, rgba(255, 255, 255, 0.02)),
        rgba(15, 16, 18, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 0 0 1px rgba(0, 0, 0, 0.25);
    direction: rtl;
}

.dash-cart-checkout::before,
.dash-cart-products::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 52% 38%, rgba(255, 255, 255, 0.035), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 42%);
    pointer-events: none;
}

.dash-cart-products {
    min-height: 520px;
    padding: 9px 10px 16px;
    border-radius: 18px;
}

.dash-cart-checkout {
    align-self: start;
    min-height: 205px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
}

.dash-cart-checkout h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 22px rgba(255, 255, 255, 0.3);
}

.dash-cart-total-box {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(8, 9, 10, 0.42);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13.5px;
    font-weight: 900;
}

.dash-cart-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.dash-cart-referral {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.dash-cart-referral-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    min-height: 0;
    padding: 2px 1px;
    border: 0;
    background: none;
    color: #6cc4ff;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: color var(--motion-base) var(--motion-ease);
}

.dash-cart-referral-toggle .material-symbols-outlined {
    font-size: 16px;
}

@media (hover: hover) {
    .dash-cart-referral-toggle:hover {
        color: #b8e2ff;
    }
}

.dash-cart-referral.hidden,
.dash-cart-referral-toggle.hidden,
.dash-cart-referral-badge.hidden,
.dash-cart-total-row.hidden {
    display: none;
}

.dash-cart-referral input {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    padding: 8px 11px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(8, 9, 10, 0.55);
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dash-cart-referral input:focus {
    outline: none;
    border-color: rgba(0, 142, 255, 0.78);
}

.dash-cart-referral .dash-mini-button {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    padding: 8px 7px;
    border-radius: 7px;
    background: transparent !important;
    color: #6cc4ff;
    font-size: 13px;
    box-shadow: none !important;
}

@media (hover: hover) {
    /* Reads as a text link inside the referral row, so it stays put. */
    .dash-cart-referral .dash-mini-button:hover:not(:disabled) {
        transform: none !important;
        filter: none !important;
        box-shadow: none !important;
        background: transparent !important;
        color: #b8e2ff;
    }
}

.dash-cart-referral .dash-mini-button:active:not(:disabled) {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
}

.dash-cart-referral-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 2px solid rgba(0, 142, 255, 0.45);
    border-radius: 10px;
    background: rgba(0, 142, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.dash-cart-referral-badge .material-symbols-outlined {
    font-size: 17px;
    color: rgba(0, 142, 255, 0.9);
}

.dash-cart-referral-badge button {
    display: inline-flex;
    align-items: center;
    margin-inline-start: auto;
    padding: 2px;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.dash-cart-referral-badge button:hover {
    color: #ff9b9b;
}

.dash-cart-referral-badge button .material-symbols-outlined {
    font-size: 16px;
    color: inherit;
}

.dash-cart-referral-status {
    color: #ff9b9b;
    font-size: 11.5px;
    font-weight: 700;
}

.dash-cart-total-row > span:first-child,
.dash-cart-total-row > strong {
    flex: 1 1 auto;
    min-width: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.7;
    text-align: right;
}

.dash-cart-total-row > span:last-child {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    white-space: nowrap;
    text-align: left;
}

.dash-cart-total-row > #cart-upgrade-discount,
.dash-cart-total-row > #cart-discount {
    color: #7fe0a8;
}

.dash-cart-total-grand {
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.dash-cart-total-grand > strong {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.dash-cart-total-grand > span:last-child {
    color: #11d4ff;
    font-size: 16px;
    font-weight: 900;
}

.dash-cart-pay-button {
    position: relative;
    z-index: 1;
    min-width: 138px;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #008eff;
    color: #050607;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-shadow: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 5px 0 #0062ac,
        0 0 14px rgba(0, 142, 255, 0.24);
    cursor: pointer;
    transition:
        transform var(--motion-base) var(--motion-pop),
        filter var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease);
}

.dash-cart-pay-button:hover:not(:disabled) {
    --btn-depth: calc(var(--btn-depth-rest) + var(--btn-lift));
    transform: translateY(calc(-1 * var(--btn-lift)));
    filter: brightness(var(--btn-glow));
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.32),
        0 var(--btn-depth) 0 var(--btn-edge),
        0 0 28px rgba(0, 142, 255, 0.48);
}

.dash-cart-pay-button:disabled,
.dash-cart-pay-button.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 0 rgba(0, 98, 172, 0.5);
}

.dash-cart-checkout .dash-cart-terms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    max-width: 230px;
    margin-top: -4px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.8;
    cursor: pointer;
}

.dash-cart-checkout .dash-cart-terms input[type="checkbox"] {
    flex: none;
    width: 14px;
    height: 14px;
    min-height: 0;
    accent-color: #008eff;
    background: transparent !important;
    border-radius: 3px !important;
    cursor: pointer;
}

.dash-cart-terms a {
    color: var(--luna-blue-soft);
    font-weight: 700;
    border-bottom: 1px solid rgba(17, 212, 255, 0.45);
    transition: color var(--motion-base) var(--motion-ease), border-color var(--motion-base) var(--motion-ease);
}

.dash-cart-terms a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.dash-cart-header,
.dash-cart-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(96px, 0.8fr) 36px;
    align-items: center;
    gap: 12px;
    direction: rtl;
}

.dash-cart-header {
    min-height: 39px;
    padding: 0 16px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.dash-cart-items {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    padding: 12px 14px;
}

.dash-cart-row {
    min-height: 42px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    font-weight: 700;
}

.dash-cart-product,
.dash-cart-price {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-cart-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0;
    min-width: 0;
}

/* A secondary button wearing the gifting accent: the dashed purple edge is
   its own, the size and shape come from the xs step. */
.dash-gift-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--btn-gap-xs);
    min-height: var(--btn-h-xs);
    padding-inline: var(--btn-px-xs);
    border: 1px dashed rgba(196, 68, 255, 0.45) !important;
    border-radius: var(--btn-r-xs) !important;
    background: transparent !important;
    color: rgba(217, 138, 255, 0.85) !important;
    box-shadow: none !important;
    font-size: var(--btn-fs-xs) !important;
    font-weight: 700;
}

.dash-gift-toggle .material-symbols-outlined {
    font-size: var(--btn-icon-xs);
}

@media (hover: hover) {
    .dash-gift-toggle:hover {
        border-color: rgba(196, 68, 255, 0.85) !important;
        color: #d98aff !important;
    }
}

.dash-gift-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 9px;
    border: 1px solid rgba(196, 68, 255, 0.5);
    border-radius: 9px;
    background: rgba(196, 68, 255, 0.12);
    color: #e2b2ff;
    font-size: 12px;
    font-weight: 700;
    max-width: 100%;
}

/* The cart cell stacks its children, so the badge and its score share one
   wrapping row: the chip sits beside the badge and drops below it when a
   long recipient name leaves no room, instead of overflowing the cell. */
.dash-gift-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    max-width: 100%;
    min-width: 0;
}

/* The score is an annotation on the badge, not a second badge: same pill
   rhythm, but the receipt's muted gift amber so the purple stays loudest. */
.dash-gift-score {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border: 1px solid rgba(255, 170, 64, 0.3);
    border-radius: 9px;
    background: rgba(255, 170, 64, 0.08);
    color: rgba(255, 202, 122, 0.9);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dash-gift-score .material-symbols-outlined {
    font-size: 14px;
    line-height: 1;
}

.dash-cart-product-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.dash-qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    direction: ltr;
    flex-shrink: 0;
}

.dash-qty-stepper .dash-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background 140ms ease, opacity 140ms ease;
}

.dash-qty-stepper .dash-qty-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

@media (hover: hover) {
    .dash-qty-stepper .dash-qty-btn:not(:disabled):hover {
        background: rgba(255, 255, 255, 0.13);
    }
}

.dash-qty-value {
    min-width: 22px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.dash-gift-hint {
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(217, 138, 255, 0.72);
}

.dash-gift-badge img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.dash-gift-badge b {
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Both are bare icon buttons from the icon group; only the reset of the
   inherited pill padding belongs here. */
.dash-gift-clear,
.dash-gift-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.dash-gift-clear .material-symbols-outlined,
.dash-gift-cancel .material-symbols-outlined {
    font-size: 15px;
}

.dash-gift-editor {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}

.dash-gift-editor input {
    flex: 1 1 150px;
    min-width: 0;
    padding: 5px 10px;
    border: 1px solid rgba(196, 68, 255, 0.4);
    border-radius: 9px;
    background: rgba(13, 14, 15, 0.6);
    color: #fff;
    font-size: 12.5px;
    outline: none;
}

.dash-gift-editor input:focus {
    border-color: rgba(196, 68, 255, 0.85);
}

.dash-gift-editor .dash-gift-verify {
    min-height: 0 !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
}

.dash-gift-status {
    flex-basis: 100%;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.6);
}

.dash-gift-status[data-state="error"] {
    color: #ff9a9a;
}

.dash-cart-remove {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #ff2a0d;
    cursor: pointer;
    text-shadow: 0 0 12px rgba(255, 42, 13, 0.48);
}

.dash-cart-remove .material-symbols-outlined {
    font-size: 18px;
    font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.dash-cart-empty {
    min-height: 410px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    padding: 22px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(8, 9, 10, 0.42);
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
    font-weight: 800;
    box-shadow:
        inset 0 0 16px rgba(255, 255, 255, 0.035),
        0 0 0 1px rgba(0, 0, 0, 0.2);
}

.dash-cart-empty .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.58);
    font-size: 62px;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 48;
}

.dash-cart-empty p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 18px;
    font-weight: 900;
}

.dash-cart-empty a {
    --btn-depth-rest: var(--btn-depth-lg);
    --btn-depth: var(--btn-depth-rest);
    --btn-edge: #0062ac;
    min-width: 138px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #008eff;
    color: #050607;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    text-shadow: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 var(--btn-depth) 0 var(--btn-edge),
        0 0 14px rgba(0, 142, 255, 0.24);
    transition:
        transform var(--motion-base) var(--motion-pop),
        filter var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease);
}

.dash-cart-empty a:hover {
    --btn-depth: calc(var(--btn-depth-rest) + var(--btn-lift));
    transform: translateY(calc(-1 * var(--btn-lift)));
    filter: brightness(var(--btn-glow));
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.32),
        0 var(--btn-depth) 0 var(--btn-edge),
        0 0 28px rgba(0, 142, 255, 0.48);
}

.dash-settings-connect,
.dash-account-card,
.dash-settings-form {
    direction: rtl;
}

.dash-settings-connect {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    gap: 15px;
}

.dash-connect-card,
.dash-account-card,
.dash-settings-form {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005) 50%, rgba(255, 255, 255, 0.02)),
        rgba(15, 16, 18, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 0 0 1px rgba(0, 0, 0, 0.25);
}

.dash-connect-card::before,
.dash-account-card::before,
.dash-settings-form::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 52% 38%, rgba(255, 255, 255, 0.035), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 42%);
    pointer-events: none;
}

.dash-connect-card {
    height: 88px;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 58px;
    align-items: center;
    gap: 8px;
    padding: 12px 13px;
    border-radius: 18px;
    direction: ltr;
}

.dash-connect-copy {
    min-width: 0;
    text-align: right;
    direction: rtl;
}

.dash-connect-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f8f8f8;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.34);
}

.dash-connect-copy span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.32);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* Size, colour and every interaction state come from the primary group in
   the BUTTON SYSTEM section. Only the layout hooks it needs here remain. */
.dash-mini-button {
    position: relative;
    z-index: 1;
    min-width: 66px;
}

.dash-grass-icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    justify-self: end;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
    filter:
        drop-shadow(0 2px 3px rgba(0, 0, 0, 0.42))
        drop-shadow(0 0 7px rgba(0, 142, 255, 0.18));
}

.dash-discord-icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    justify-self: end;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 10px rgba(99, 132, 255, 0.42));
}

.dash-account-card {
    grid-column: 2;
    grid-row: 1;
    min-height: 335px;
    padding: 27px 30px;
    border-radius: 30px;
    display: grid;
    align-content: start;
    gap: 24px;
}

.dash-account-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 26px;
    direction: ltr;
}

.dash-account-row-static {
    grid-template-columns: 74px minmax(0, 1fr);
}

.dash-account-row div {
    text-align: right;
    direction: rtl;
}

.dash-account-row strong {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.ticket-dashboard-shell .dash-side-menu a[href="/tickets"] {
    color: #008eff;
    text-shadow: 0 0 14px rgba(0, 142, 255, 0.42);
}

.ticket-dashboard-shell .dash-side-menu a[href="/tickets"] .material-symbols-outlined {
    color: #008eff;
}

.ticket-workspace {
    min-height: 0;
    display: grid;
    gap: 20px;
    align-content: start;
}

.ticket-profile-card {
    grid-template-columns: 82px minmax(128px, 1fr) repeat(3, minmax(84px, 1fr));
}

.ticket-page-title {
    display: grid;
    justify-items: center;
    gap: 0;
    margin: 0;
}

.ticket-page-title h1,
.ticket-page-title h2 {
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: clamp(28px, 2.25vw, 35px);
    font-weight: 900;
    line-height: 1;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.95),
        0 0 30px rgba(255, 255, 255, 0.52);
}

.ticket-page-title p {
    display: none;
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    font-weight: 700;
}

.ticket-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    direction: ltr;
    gap: 12px;
    justify-items: stretch;
}

.ticket-action-card,
.ticket-category-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 21, 22, 0.55);
    box-shadow: none;
}

.ticket-action-card {
    min-height: 116px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.42);
    direction: rtl;
    text-align: center;
    text-decoration: none;
    transition:
        transform var(--motion-base) var(--motion-pop),
        border-color var(--motion-base) var(--motion-ease),
        color var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease);
}

.ticket-action-card .material-symbols-outlined {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.46);
    font-size: 31px;
    transform: none !important;
    filter: none !important;
    text-shadow: none !important;
    transition: none !important;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.ticket-action-card:hover .material-symbols-outlined,
.ticket-action-card:focus-visible .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.46) !important;
    transform: none !important;
    filter: none !important;
    text-shadow: none !important;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24 !important;
}

.ticket-action-card strong {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.ticket-action-card span:not(.material-symbols-outlined) {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.46);
    font-size: 10px;
    font-weight: 700;
}

.ticket-action-card-center {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
}

.ticket-action-card-media {
    grid-column: 3;
    grid-row: 2;
}

.ticket-action-card:hover,
.ticket-category-card:hover,
.ticket-category-card.is-selected {
    transform: translateY(-2px);
    border-color: rgba(0, 142, 255, 0.7);
    color: #75c7ff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 24px rgba(0, 142, 255, 0.24);
}

.ticket-action-card.is-active {
    border-color: rgba(0, 142, 255, 0.9);
    background: linear-gradient(180deg, #2ea5ff, #008eff);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 0 24px rgba(0, 142, 255, 0.32);
}

.ticket-action-card.is-active .material-symbols-outlined,
.ticket-action-card.is-active strong,
.ticket-action-card.is-active span:not(.material-symbols-outlined) {
    color: #071522;
    text-shadow: none;
}

.ticket-action-card.is-active .material-symbols-outlined {
    color: rgba(6, 21, 34, 0.72) !important;
    transform: none !important;
    filter: none !important;
    text-shadow: none !important;
}

.ticket-board {
    display: grid;
    gap: 12px;
}

.ticket-board-header {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-board-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 2.25vw, 35px);
    font-weight: 900;
    line-height: 1;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.95),
        0 0 30px rgba(255, 255, 255, 0.52);
}

.ticket-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-filter-row select,
.ticket-field input,
.ticket-field textarea {
    min-height: 39px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(8, 9, 10, 0.55);
    color: rgba(255, 255, 255, 0.86);
    padding: 0 13px;
    font-size: 12px;
    font-weight: 700;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ticket-filter-row select:focus,
.ticket-field input:focus,
.ticket-field textarea:focus {
    border-color: rgba(0, 142, 255, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 18px rgba(0, 142, 255, 0.18);
}

.ticket-list-card {
    min-height: 150px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.ticket-row-card {
    position: relative;
    z-index: 1;
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(58, 58, 61, 0.42);
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    transition:
        transform var(--motion-base) var(--motion-pop),
        background var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease);
}

.ticket-row-card:hover {
    transform: translateX(-4px);
    background: rgba(58, 58, 61, 0.82);
    box-shadow: 0 0 18px rgba(0, 142, 255, 0.12);
}

.ticket-row-card h3 {
    overflow: hidden;
    margin: 0;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 900;
}

.ticket-row-meta,
.ticket-row-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.ticket-row-badges :where(.font-label-sm, .inline-flex) {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.ticket-row-meta {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.36);
    font-size: 11px;
    font-weight: 700;
}

.ticket-history-empty {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(58, 58, 61, 0.3);
}

.ticket-history-empty-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.ticket-history-empty-head span:first-child {
    color: #008eff;
}

.ticket-history-empty-line {
    height: 18px;
    border-radius: 6px;
    background: rgba(68, 68, 72, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ticket-row-card > .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.32);
}

.ticket-form-panel {
    display: grid;
    gap: 16px;
}

.ticket-new-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 250px);
    gap: 14px;
    align-items: start;
}

.ticket-category-grid {
    display: grid;
    gap: 10px;
}

.ticket-category-card {
    min-height: 72px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

.ticket-category-card .material-symbols-outlined {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(0, 142, 255, 0.12);
    color: #75c7ff;
}

.ticket-category-card span:last-child {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
}

.ticket-field {
    display: grid;
    gap: 8px;
}

/* .ticket-field wins over Tailwind's .hidden by source order — restore hiding */
.ticket-field.hidden {
    display: none;
}

.ticket-field label,
.ticket-category-title {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.75),
        0 0 18px rgba(255, 255, 255, 0.18);
}

.ticket-field textarea {
    min-height: 180px;
    padding: 12px 13px;
    resize: vertical;
}

.ticket-field .luna-editable {
    min-height: 180px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(8, 9, 10, 0.55);
    color: rgba(255, 255, 255, 0.86);
    padding: 12px 13px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    unicode-bidi: plaintext;
}

.ticket-field .luna-editable:focus {
    border-color: rgba(0, 142, 255, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 18px rgba(0, 142, 255, 0.18);
}

#reply-box .ticket-field .luna-editable {
    min-height: 120px;
}

.ticket-composer-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 4px;
}

.ticket-tool-button {
    padding: 2px;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.35);
    line-height: 0;
    cursor: pointer;
    transition: color 160ms ease;
}

.ticket-tool-button:hover,
.ticket-tool-button:focus-visible {
    color: rgba(255, 255, 255, 0.85);
}

.ticket-tool-button .material-symbols-outlined {
    font-size: 18px;
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 20;
}

.luna-color-pop {
    position: absolute;
    z-index: 90;
    display: none;
    grid-template-columns: repeat(8, 22px);
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(16, 17, 24, 0.97);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.luna-color-pop.is-open {
    display: grid;
}

.luna-color-swatch {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    cursor: pointer;
}

.luna-color-swatch:hover {
    border-color: rgba(255, 255, 255, 0.75);
    transform: scale(1.12);
}

.luna-color-custom {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.luna-color-custom input[type="color"] {
    width: 34px;
    height: 26px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    background: none;
    cursor: pointer;
}

.luna-color-apply {
    flex: 1;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
}

.luna-color-apply:hover {
    background: rgba(255, 255, 255, 0.16);
}

.ticket-submit-row {
    display: flex;
    justify-content: center;
}

.ticket-submit-row .dash-mini-button {
    min-width: 150px;
}

.ticket-detail-head {
    display: grid;
    justify-items: start;
    gap: 10px;
    padding: 0 2px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-detail-head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(19px, 1.7vw, 25px);
    font-weight: 900;
    line-height: 1.4;
    word-break: break-word;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.ticket-detail-meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 700;
}

.ticket-system-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 2px;
    color: rgba(117, 199, 255, 0.72);
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
}

.ticket-system-msg .material-symbols-outlined {
    font-size: 15px;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.ticket-assignee-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #75c7ff;
    font-size: 12px;
    font-weight: 800;
}

.ticket-assignee-line .material-symbols-outlined {
    font-size: 16px;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.ticket-assigned-badge {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid rgba(0, 142, 255, 0.55);
    border-radius: 7px;
    background: rgba(0, 142, 255, 0.14);
    color: #75c7ff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.ticket-filter-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 39px;
    padding: 0 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.ticket-filter-check input {
    width: 15px;
    height: 15px;
    accent-color: #008eff;
    cursor: pointer;
}

.ticket-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: color 180ms ease;
}

.ticket-back-link:hover,
.ticket-back-link:focus-visible {
    color: #75c7ff;
}

.ticket-back-link .material-symbols-outlined {
    font-size: 16px;
}

.ticket-staff-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0 2px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-staff-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #008eff;
    font-size: 14px;
    font-weight: 900;
    text-shadow: 0 0 14px rgba(0, 142, 255, 0.42);
}

.ticket-staff-title .material-symbols-outlined {
    font-size: 19px;
    font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.ticket-staff-bar select {
    min-height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: rgba(8, 9, 10, 0.55);
    color: rgba(255, 255, 255, 0.86);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ticket-staff-bar select:focus {
    border-color: rgba(0, 142, 255, 0.78);
    box-shadow: 0 0 18px rgba(0, 142, 255, 0.18);
}

.ticket-mini-ghost {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform var(--motion-base) var(--motion-pop),
        border-color var(--motion-base) var(--motion-ease),
        color var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease);
}

.ticket-mini-ghost:hover,
.ticket-mini-ghost:focus-visible {
    border-color: rgba(0, 142, 255, 0.7);
    color: #75c7ff;
    box-shadow: 0 0 16px rgba(0, 142, 255, 0.18);
}

.ticket-mini-ghost .material-symbols-outlined {
    font-size: 16px;
}

.ticket-thread {
    display: grid;
    gap: 14px;
    align-content: start;
}

.ticket-msg {
    display: grid;
    gap: 6px;
    justify-items: start;
}

.ticket-msg-mine {
    justify-items: end;
}

.ticket-msg-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-msg-head .font-label-sm {
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.ticket-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
    background: #27201a;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
}

.ticket-msg-avatar-fallback {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}

.ticket-msg-avatar-fallback .material-symbols-outlined {
    font-size: 18px;
}

.ticket-msg-sender {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.ticket-msg-staff-tag {
    padding: 3px 8px;
    border: 1px solid rgba(0, 142, 255, 0.55);
    border-radius: 7px;
    background: rgba(0, 142, 255, 0.14);
    color: #75c7ff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.ticket-msg-bubble {
    max-width: min(78%, 560px);
    display: grid;
    gap: 8px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background: rgba(58, 58, 61, 0.42);
    color: rgba(255, 255, 255, 0.88);
}

.ticket-msg-mine .ticket-msg-bubble {
    border-color: rgba(0, 142, 255, 0.45);
    background: linear-gradient(180deg, rgba(0, 142, 255, 0.15), rgba(0, 142, 255, 0.06));
}

.ticket-msg-text {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.9;
    white-space: pre-wrap;
    word-break: break-word;
}

.ticket-msg-time {
    color: rgba(255, 255, 255, 0.34);
    font-size: 10px;
    font-weight: 700;
}

.ticket-msg-foot {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-msg-edited {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    font-weight: 700;
}

.ticket-msg-actions {
    display: inline-flex;
    gap: 2px;
    margin-inline-start: auto;
    opacity: 0.55;
    transition: opacity 140ms ease;
}

.ticket-msg:hover .ticket-msg-actions,
.ticket-msg:focus-within .ticket-msg-actions {
    opacity: 1;
}

.ticket-msg-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
}

.ticket-msg-action .material-symbols-outlined {
    font-size: 16px;
}

.ticket-msg-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ticket-msg-action.is-danger:hover {
    background: rgba(255, 60, 60, 0.15);
    color: #ff9b9b;
}

.ticket-msg-deleted {
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
}

.ticket-msg-edit-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(13, 14, 15, 0.72);
    color: #f2f6ff;
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.8;
    resize: vertical;
}

.ticket-msg-edit-input:focus {
    outline: none;
    border-color: var(--luna-blue-soft, #11d4ff);
    box-shadow: 0 0 0 3px rgba(17, 212, 255, 0.12);
}

.ticket-msg-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin-top: 8px;
}

.ticket-mini-ghost.is-primary {
    border-color: var(--luna-blue-soft, #1186ff);
    color: #dff1ff;
}

.ticket-reply-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ticket-send-button {
    min-width: 150px;
    gap: 8px;
    font-size: 16px;
}

.ticket-send-button .material-symbols-outlined {
    font-size: 18px;
}

.ticket-danger-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    border: 2px solid rgba(255, 42, 13, 0.45);
    border-radius: 9px;
    background: rgba(255, 42, 13, 0.08);
    color: #ff6b57;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform var(--motion-base) var(--motion-pop),
        border-color var(--motion-base) var(--motion-ease),
        color var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease);
}

.ticket-danger-button:hover,
.ticket-danger-button:focus-visible {
    border-color: rgba(255, 42, 13, 0.8);
    color: #ff8474;
    box-shadow: 0 0 18px rgba(255, 42, 13, 0.25);
}

.ticket-danger-button .material-symbols-outlined {
    font-size: 16px;
}

@media (max-width: 560px) {
    .ticket-detail-head {
        padding-bottom: 14px;
    }

    .ticket-msg-bubble {
        max-width: 100%;
    }

    .ticket-staff-bar {
        display: grid;
        justify-items: stretch;
    }

    .ticket-staff-bar select,
    .ticket-staff-bar .ticket-mini-ghost {
        justify-content: center;
        width: 100%;
    }

    .ticket-reply-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .ticket-reply-actions .dash-mini-button,
    .ticket-reply-actions .ticket-danger-button {
        justify-content: center;
        width: 100%;
    }
}

.dash-account-row span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.dash-settings-form {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 100%;
    min-height: 270px;
    display: grid;
    justify-items: center;
    gap: 17px;
    margin-top: 206px;
    padding: 26px 46px 22px;
    border-radius: 18px;
    text-align: center;
}

.dash-settings-form-small {
    min-height: 180px;
    padding-top: 27px;
}

.dash-settings-form h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 2px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.88),
        0 0 19px rgba(255, 255, 255, 0.28);
}

.dash-settings-hint {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: -4px 0 0;
}

.dash-settings-message {
    position: relative;
    z-index: 1;
    width: 100%;
}

.dash-settings-hint:not(.luna-message) {
    color: rgba(255, 255, 255, 0.54);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
}

.dash-settings-message:not(.luna-message) {
    min-height: 24px;
    display: grid;
    place-items: center;
    padding: 5px 10px;
    border: 1px solid rgba(0, 142, 255, 0.38);
    border-radius: 8px;
    background: rgba(0, 142, 255, 0.08);
    color: #54b8ff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

.dash-settings-message:not(.luna-message)[data-type="error"] {
    border-color: rgba(255, 67, 34, 0.44);
    background: rgba(255, 42, 13, 0.08);
    color: #ff6a4f;
}

.dash-settings-form label {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 9px;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.85),
        0 0 18px rgba(255, 255, 255, 0.24);
}

.dash-settings-form input {
    width: 100%;
    min-height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(8, 9, 10, 0.55);
    color: rgba(255, 255, 255, 0.86);
    padding: 0 14px;
    text-align: right;
    font-size: 11px;
    font-weight: 700;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.dash-settings-form input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.dash-sidebar {
    min-height: 100%;
    display: grid;
    grid-template-rows: 106px 1fr;
    gap: 20px;
}

.dash-brand-logo {
    width: 118px;
    height: 118px;
    object-fit: contain;
    justify-self: center;
    align-self: center;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}

.dash-side-menu {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 27px;
    min-height: 535px;
    padding: 45px 36px 28px;
    border: 0;
    border-radius: 28px;
    background: rgba(15, 16, 18, 0.54);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        14px 0 24px rgba(0, 132, 255, 0.18),
        -8px 0 18px rgba(0, 0, 0, 0.24);
}

.dash-side-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(0, 132, 255, 0.34) 58%, rgba(0, 132, 255, 0.95));
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.dash-side-menu a,
.dash-logout {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    column-gap: 12px;
    direction: ltr;
    text-align: right;
    transform-origin: center;
    transition:
        transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
        color 180ms ease,
        text-shadow 180ms ease,
        filter 180ms ease;
}

.dash-side-menu a {
    color: #f7f7f7;
    font-size: 27px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.14);
}

.dash-side-menu a.hidden {
    display: none;
}

.dash-side-menu a .dash-menu-text,
.dash-logout span:first-child {
    justify-self: end;
    direction: rtl;
}

.dash-side-menu a.active {
    color: #008eff;
    font-weight: 900;
    text-shadow: 0 0 14px rgba(0, 142, 255, 0.54);
}

.dash-side-menu a.dash-menu-disabled {
    color: rgba(255, 255, 255, 0.28);
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(1);
    text-shadow: none;
}

.dash-side-menu a.dash-menu-disabled .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.26);
    text-shadow: none;
}

.dash-side-menu .material-symbols-outlined,
.dash-logout .material-symbols-outlined {
    width: 32px;
    justify-self: center;
    color: currentColor;
    text-align: center;
    transition: none;
    transform: none;
}

.dash-side-menu .material-symbols-outlined {
    font-size: 28px;
    font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 32;
}

.dash-logout {
    margin-top: auto;
    border: 0;
    background: transparent;
    color: #ff2a0d;
    font-size: 21px;
    font-weight: 900;
    text-shadow:
        0 0 10px rgba(255, 42, 13, 0.95),
        0 0 24px rgba(255, 42, 13, 0.5);
    cursor: pointer;
}

.dash-logout .material-symbols-outlined {
    font-size: 25px;
    font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 32;
}

/* The dashboard sidebar (menu links and logout) keeps its own hover motion
   and is deliberately left out of the shared button system. */
.dash-side-menu :where(a:not(.dash-menu-disabled), .dash-logout):hover {
    transform: translateY(-2px) scale(1.035);
    filter: brightness(1.12);
}

.dash-side-menu :where(a, .dash-logout):hover .material-symbols-outlined {
    color: currentColor;
    text-shadow: inherit;
    filter: none;
    transform: none;
}

@media (max-width: 980px) {
    .dash-page {
        place-items: start center;
        padding: 96px 16px 20px;
    }

    .dash-shell {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 22px;
        gap: 22px;
    }

    /* On mobile the sidebar collapses into a fixed bottom navigation bar:
       the logo goes away (the top navbar already carries the brand) and the
       menu links become icon-over-label tabs. */
    .dash-sidebar {
        display: contents;
    }

    .dash-brand-logo {
        display: none;
    }

    .dash-side-menu {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 40;
        max-width: 520px;
        margin-inline: auto;
        min-height: 0;
        flex-direction: row;
        align-items: stretch;
        gap: 2px;
        padding: 9px 8px;
        border-radius: 24px;
        background: rgba(10, 11, 14, 0.88);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 12px 34px rgba(0, 0, 0, 0.55),
            0 4px 22px rgba(0, 132, 255, 0.16);
    }

    .dash-side-menu a,
    .dash-logout {
        display: flex;
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 4px 2px;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.25;
        text-align: center;
        text-shadow: none;
    }

    .dash-side-menu a .dash-menu-text {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dash-side-menu a.active {
        text-shadow: 0 0 12px rgba(0, 142, 255, 0.5);
    }

    /* The disabled wallet placeholder only wastes space on a narrow bar. */
    .dash-side-menu a.dash-menu-disabled {
        display: none;
    }

    .dash-side-menu .material-symbols-outlined,
    .dash-logout .material-symbols-outlined {
        width: auto;
        font-size: 25px;
    }

    .dash-logout {
        margin-top: 0;
    }

    .dash-logout > span:first-child {
        display: none;
    }

    /* Short label for the bottom bar; the full one stays on desktop. */
    .dash-logout::before {
        content: 'خروج';
    }

    .dash-side-menu :where(a:not(.dash-menu-disabled), .dash-logout):hover {
        transform: none;
        filter: none;
    }

    /* Keep toasts and the footer clear of the fixed bottom bar. */
    body.luna-dashboard .luna-toast,
    body.luna-dashboard .luna-copy-toast {
        bottom: calc(96px + env(safe-area-inset-bottom));
    }

    body.luna-dashboard .luna-footer-mark {
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }

    .dash-profile-card {
        grid-template-columns: 72px 1fr;
    }

    .dash-cart-layout {
        grid-template-columns: 1fr;
    }

    .dash-cart-checkout {
        order: 2;
    }

    .dash-cart-products {
        min-height: 360px;
        order: 1;
    }

    .dash-profile-stat {
        grid-column: span 2;
    }

    .ticket-profile-card {
        grid-template-columns: 72px 1fr;
    }

    .ticket-profile-card .dash-profile-stat {
        grid-column: span 2;
    }

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

    /* The desktop layout pins these two cards to columns 2 and 3; on a
       two-column mobile grid that pinning would force a cramped implicit
       third column, so let them flow normally. */
    .ticket-action-card-center,
    .ticket-action-card-media {
        grid-column: auto;
        grid-row: auto;
    }

    .ticket-new-layout {
        grid-template-columns: 1fr;
    }

    .ticket-new-layout > aside {
        order: -1;
    }

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

    .ticket-board-header {
        display: grid;
        justify-items: stretch;
    }

    .ticket-filter-row {
        justify-content: center;
    }

    .dash-settings-view {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 0;
    }

    .dash-settings-connect,
    .dash-account-card,
    .dash-settings-form,
    .dash-settings-form-small {
        grid-column: 1;
        grid-row: auto;
        margin-top: 0;
        min-height: 0;
    }

    .dash-settings-form,
    .dash-settings-form-small {
        padding: 22px 20px 20px;
    }
}

@media (max-width: 560px) {
    /* On phones the outer shell frame eats too much width; let the cards
       float directly on the page background instead. */
    .dash-shell {
        min-height: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .dash-profile-card {
        border-radius: 20px;
        padding: 14px;
    }

    .dash-panel {
        min-height: 150px;
        border-radius: 21px;
    }

    .dash-cart-header {
        display: none;
    }

    .dash-cart-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 12px 14px;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        text-align: center;
    }

    .dash-cart-cell {
        align-items: center;
    }

    .dash-cart-remove {
        justify-self: center;
    }

    .dash-row-list {
        --dash-row-height: 75px;
        --dash-row-peek: 28px;
    }

    .dash-data-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding-block: 9px;
        padding-inline: 14px 30px;
        text-align: center;
    }

    .ticket-action-card {
        min-height: 78px;
    }

    .ticket-row-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ticket-row-badges,
    .ticket-row-meta {
        justify-content: center;
    }
}

/* Very narrow phones: keep every bottom-bar label on one line. */
@media (max-width: 374px) {
    .dash-side-menu {
        left: 8px;
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        gap: 0;
        padding: 8px 4px;
        border-radius: 20px;
    }

    .dash-side-menu a,
    .dash-logout {
        gap: 4px;
        font-size: 10px;
    }

    .dash-side-menu .material-symbols-outlined,
    .dash-logout .material-symbols-outlined {
        font-size: 22px;
    }
}

/* Between the mobile hamburger (below 768px) and roomy desktop widths the
   full link row plus both end slots no longer fit; compact them instead of
   letting the account button clip outside the pill. */
@media (min-width: 768px) and (max-width: 960px) {
    nav.fixed > div {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    nav.fixed .luna-nav-logo,
    nav.fixed .luna-nav-auth {
        flex: 0 0 auto;
    }

    nav.fixed .luna-nav-logo .luna-nav-brand-word {
        display: none !important;
    }

    nav.fixed .luna-nav-links {
        gap: 6px !important;
    }

    nav.fixed .luna-nav-link {
        min-width: 0;
        padding: 4px 6px;
    }

    nav.fixed .luna-auth-cta {
        min-width: 0;
        padding: 0 12px !important;
    }

    nav.fixed .luna-nav-account {
        min-width: 0;
        padding: 0 10px !important;
    }
}

@media (max-width: 640px) {
    body.luna-home-page main {
        padding-top: 56px;
    }

    body.luna-home-page .luna-section {
        padding-top: 74px;
        padding-bottom: 74px;
    }

    body.luna-home-page .luna-section-title {
        margin-bottom: 52px;
    }

    body.luna-home-page .luna-section + .luna-section,
    body.luna-home-page .luna-section + .luna-about-panel,
    body.luna-home-page .luna-about-panel + .luna-bottom-cta {
        margin-top: 40px;
    }

    body.luna-home-page .luna-about-panel {
        margin-top: 78px;
        margin-bottom: 78px;
    }

    body.luna-home-page .luna-bottom-cta {
        margin-top: 78px;
        margin-bottom: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body,
    body.motion-ready,
    body.motion-leaving {
        opacity: 1;
        animation: none;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.ticket-staff-bar.hidden,
.ticket-mini-ghost.hidden,
.ticket-filter-row.hidden,
.ticket-form-panel.hidden,
.ticket-assignee-line.hidden,
.ticket-system-msg.hidden,
.ticket-composer-toolbar.hidden,
.admin-panel.hidden,
.admin-table.hidden {
    display: none;
}

.admin-shell {
    width: min(100%, 1180px);
}

.admin-main {
    gap: 18px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.admin-stat {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 16px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(20, 21, 22, 0.55);
    text-align: center;
}

.admin-stat .material-symbols-outlined {
    color: #75c7ff;
    font-size: 24px;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.admin-stat strong {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.admin-stat span:not(.material-symbols-outlined) {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 700;
}

.admin-stat-revenue {
    position: relative;
}

.admin-stat-reset-icon {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--btn-h-xs);
    height: var(--btn-h-xs);
    padding: 0;
    border: 0;
    border-radius: var(--btn-r-xs);
    background: none;
    color: #ff9b9b;
    cursor: pointer;
}

.admin-stat-reset-icon .material-symbols-outlined {
    color: inherit;
    font-size: 18px;
    font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 20;
}

.admin-stat-reset-icon:hover .material-symbols-outlined {
    transform: none;
    color: inherit;
    text-shadow: none;
    filter: none;
    font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 20;
}

.admin-stat-reset-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.4);
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-tab {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.admin-tab:hover {
    color: #75c7ff;
    border-color: rgba(0, 142, 255, 0.5);
}

.admin-tab.is-active {
    background: linear-gradient(180deg, #2ea5ff, #008eff);
    border-color: rgba(0, 142, 255, 0.9);
    color: #071522;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.admin-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-panel-head h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.admin-panel-head select,
.admin-panel-head input[type="search"],
.admin-panel-head input[type="text"] {
    min-height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(8, 9, 10, 0.55);
    color: rgba(255, 255, 255, 0.86);
    padding: 0 13px;
    font-size: 13px;
    font-weight: 700;
    outline: none;
}

.admin-panel-head input[type="search"],
.admin-panel-head input[type="text"] {
    min-width: min(280px, 100%);
}

.admin-panel-head select:focus,
.admin-panel-head input[type="search"]:focus,
.admin-panel-head input[type="text"]:focus {
    border-color: rgba(0, 142, 255, 0.78);
    box-shadow: 0 0 18px rgba(0, 142, 255, 0.18);
}

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

.admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(58, 58, 61, 0.32);
}

.admin-row-main {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-row-main strong {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-row-meta {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
}

.admin-row-error {
    color: #ff7a64;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.6;
}

.admin-badge.is-active {
    border: 1px solid rgba(0, 142, 255, 0.55);
    background: rgba(0, 142, 255, 0.14);
    color: #75c7ff;
}

.store-card .store-gift-button {
    flex-shrink: 0;
    width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 14px !important;
}

.luna-gift-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

.dash-gift-toggle .luna-gift-icon {
    width: 15px;
    height: 15px;
}

.admin-badge.admin-gift-badge {
    border: 1px solid rgba(196, 68, 255, 0.55);
    background: rgba(196, 68, 255, 0.14);
    color: #d98aff;
}

.admin-badge.is-pending {
    border: 1px solid rgba(255, 170, 0, 0.5);
    background: rgba(255, 170, 0, 0.12);
    color: #ffc860;
}

.admin-badge.is-done {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

.ticket-priority {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.ticket-priority.is-high {
    border-color: rgba(255, 138, 61, 0.55);
    background: rgba(255, 138, 61, 0.14);
    color: #ffab70;
}

.ticket-priority.is-urgent {
    border-color: rgba(255, 61, 61, 0.6);
    background: rgba(255, 61, 61, 0.14);
    color: #ff7a6e;
    box-shadow: 0 0 12px rgba(255, 61, 61, 0.25);
}

.admin-badge.is-unread {
    gap: 6px;
    border: 1px solid rgba(255, 170, 0, 0.5);
    background: rgba(255, 170, 0, 0.12);
    color: #ffc860;
}

.admin-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffc860;
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.8);
    animation: admin-unread-pulse 1.6s ease-in-out infinite;
}

@keyframes admin-unread-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-unread-dot {
        animation: none;
    }
}

.admin-pagination {
    margin: 18px 0 2px;
    gap: 14px;
}

.admin-pagination.hidden {
    display: none;
}

.admin-page-indicator {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 800;
}

.admin-cancel {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    min-height: 34px;
    padding: 0 14px;
    border: 2px solid rgba(255, 42, 13, 0.45);
    border-radius: 9px;
    background: rgba(255, 42, 13, 0.08);
    color: #ff6b57;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.admin-cancel:hover:not(:disabled) {
    border-color: rgba(255, 42, 13, 0.8);
    color: #ff8474;
    box-shadow: 0 0 16px rgba(255, 42, 13, 0.22);
}

.admin-cancel.is-grant {
    border-color: rgba(0, 142, 255, 0.5);
    background: rgba(0, 142, 255, 0.1);
    color: #75c7ff;
}

.admin-cancel.is-grant:hover:not(:disabled) {
    filter: brightness(var(--btn-glow));
}

.admin-row-actions.is-inline {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    flex-direction: row;
    align-items: center;
}

.admin-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.admin-check input {
    width: 15px;
    height: 15px;
    accent-color: #008eff;
    cursor: pointer;
}

.admin-row-link {
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms var(--motion-pop);
}

.admin-row-link:hover {
    transform: translateX(-3px);
    border-color: rgba(0, 142, 255, 0.5);
    background: rgba(58, 58, 61, 0.5);
}

.admin-row-chevron {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: rgba(255, 255, 255, 0.32);
    font-size: 20px;
}

@media (max-width: 560px) {
    .admin-row {
        grid-template-columns: 1fr;
    }

    .admin-cancel,
    .admin-row-chevron {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        text-align: center;
    }

    .admin-row-actions.is-inline {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        flex-wrap: wrap;
    }

    .admin-row-actions.is-inline .admin-cancel {
        flex: 1;
        white-space: nowrap;
    }

    .admin-row-chevron {
        display: none;
    }
}

.admin-modal-input {
    width: 100%;
    min-height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(8, 9, 10, 0.55);
    color: rgba(255, 255, 255, 0.9);
    padding: 0 13px;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    direction: ltr;
    text-align: left;
}

.admin-modal-input:focus {
    border-color: rgba(0, 142, 255, 0.78);
    box-shadow: 0 0 18px rgba(0, 142, 255, 0.18);
}

#app-reject-modal .admin-modal-label {
    margin-top: 12px;
}

.admin-modal-textarea {
    width: 100%;
    min-height: 96px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(8, 9, 10, 0.55);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 13px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.8;
    outline: none;
    resize: vertical;
}

.admin-modal-textarea:focus {
    border-color: rgba(0, 142, 255, 0.78);
    box-shadow: 0 0 18px rgba(0, 142, 255, 0.18);
}

.restrict-duration-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.luna-dashboard .restrict-duration-option,
.restrict-duration-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(8, 9, 10, 0.55);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.luna-dashboard .restrict-duration-option input[type="radio"],
.restrict-duration-option input[type="radio"] {
    min-height: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    border-radius: 50% !important;
    background: none !important;
    accent-color: rgb(0, 142, 255);
    cursor: pointer;
}

.restrict-duration-option:has(input:checked) {
    border-color: rgba(0, 142, 255, 0.78);
    color: #fff;
}

.ticket-restriction-note {
    margin-bottom: 14px;
}

.ticket-restriction-note bdi {
    font-weight: 800;
}

.ticket-restriction-banner:not(.hidden) {
    display: grid;
    gap: 12px;
    justify-items: center;
    margin-bottom: 18px;
}

.ticket-restriction-banner .luna-message {
    width: 100%;
}

.ticket-restriction-banner bdi {
    font-weight: 800;
}

.ticket-restriction-permanent {
    margin: 0;
    color: rgba(255, 205, 205, 0.9);
    font-size: 14px;
    font-weight: 800;
}

.admin-modal [data-dialog-error]:not(.hidden) {
    margin-top: 10px;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal.hidden {
    display: none;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(4, 5, 7, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.admin-modal-panel {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid rgba(0, 142, 255, 0.35);
    border-radius: 16px;
    background: rgba(20, 21, 22, 0.98);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    padding: 20px;
}

.admin-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.admin-modal-head h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.admin-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease;
}

.admin-modal-close:hover {
    color: #75c7ff;
    border-color: rgba(0, 142, 255, 0.5);
}

.admin-modal-close .material-symbols-outlined {
    font-size: 20px;
}

.admin-modal-sub {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 700;
}

.admin-modal-sub strong {
    color: #fff;
    font-weight: 900;
}

.luna-dialog-details {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
}

.luna-dialog-details > div {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.luna-dialog-details dt {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 800;
}

/* The whole point of this dialog: long reasons and order numbers wrap instead of clipping. */
.luna-dialog-details dd {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.admin-modal-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 800;
}

.admin-row-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

@media (max-width: 560px) {
    .admin-row-actions {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
    }
}

.admin-referral-owner-results {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 180px;
    margin-top: 6px;
    overflow-y: auto;
}

.admin-referral-owner-results.hidden,
.admin-referral-owner-picked.hidden {
    display: none;
}

.admin-referral-owner-results button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(58, 58, 61, 0.32);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    cursor: pointer;
    text-align: start;
}

.admin-referral-owner-results button:hover {
    border-color: rgba(0, 142, 255, 0.6);
}

.admin-referral-owner-picked {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 11px;
    border: 2px solid rgba(0, 142, 255, 0.45);
    border-radius: 10px;
    background: rgba(0, 142, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12.5px;
    font-weight: 800;
}

.admin-referral-owner-picked .material-symbols-outlined {
    font-size: 17px;
    color: rgba(0, 142, 255, 0.9);
}

.admin-referral-owner-picked button {
    display: inline-flex;
    align-items: center;
    margin-inline-start: auto;
    padding: 2px;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.admin-referral-owner-picked button:hover {
    color: #ff9b9b;
}

.admin-referral-owner-picked button .material-symbols-outlined {
    font-size: 16px;
    color: inherit;
}

.admin-modal-panel select {
    width: 100%;
    min-height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(8, 9, 10, 0.55);
    color: rgba(255, 255, 255, 0.86);
    padding: 0 13px;
    font-size: 13px;
    font-weight: 700;
    outline: none;
}

.admin-modal-panel select:focus {
    border-color: rgba(0, 142, 255, 0.78);
    box-shadow: 0 0 18px rgba(0, 142, 255, 0.18);
}

.admin-modal-panel select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-modal #grant-modal-error {
    margin-top: 12px;
}

.admin-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.admin-modal-btn {
    flex: 1;
    min-height: 40px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

/* The shared button system gives these buttons a display value, which would otherwise
   win over [hidden] and leave an empty pill in dialogs that only need one action. */
.admin-modal-btn[hidden] {
    display: none;
}

.admin-modal-btn.is-ghost {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
}

.admin-modal-btn.is-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.admin-modal-btn.is-primary {
    border: 2px solid rgba(0, 142, 255, 0.6);
    background: rgba(0, 142, 255, 0.14);
    color: #9ad4ff;
}

.admin-modal-btn.is-primary:hover:not(:disabled) {
    filter: brightness(var(--btn-glow));
}

.admin-modal-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-modal-btn.is-danger {
    border: 2px solid rgba(255, 82, 82, 0.6);
    background: rgba(255, 60, 60, 0.14);
    color: #ff9b9b;
}

.admin-modal-btn.is-danger:hover:not(:disabled) {
    border-color: rgba(255, 82, 82, 0.9);
    color: #ffd0d0;
    box-shadow: 0 0 16px rgba(255, 60, 60, 0.28);
}

.admin-modal-warn {
    color: rgba(255, 205, 205, 0.85);
    line-height: 1.95;
}

.admin-modal-warn strong {
    color: #ff9b9b;
    font-weight: 900;
}

#rank-grid .store-card {
    border-color: rgba(255, 176, 25, 0.38) !important;
}

#rank-grid .store-card .price-box {
    border-color: rgba(255, 176, 25, 0.38) !important;
}

#rank-grid .store-card .bg-gradient-to-t {
    background: linear-gradient(to top, rgba(255, 176, 25, 0.1), transparent) !important;
}

#rank-grid .store-card [data-details-button],
#rank-grid .store-card [data-gift-button] {
    border-radius: var(--btn-r-md) !important;
    box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.42), 0 5px 0 rgba(120, 73, 0, 0.85), 0 0 22px rgba(255, 176, 25, 0.3) !important;
}

#tag-grid .store-card {
    border-color: rgba(0, 142, 255, 0.4) !important;
}

#tag-grid .store-card .price-box {
    border-color: rgba(0, 142, 255, 0.4) !important;
}

#tag-grid .store-card .bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0, 142, 255, 0.1), transparent) !important;
}

#tag-grid .store-card [data-tag-buy],
#tag-grid .store-card [data-tag-gift] {
    border-radius: var(--btn-r-md) !important;
    box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.48), 0 5px 0 #004c93, 0 0 22px rgba(0, 132, 255, 0.32) !important;
}

@media (hover: hover) {
    #rank-grid .store-card:hover {
        border-color: rgba(255, 176, 25, 0.72) !important;
        box-shadow: 0 20px 52px rgba(0, 0, 0, 0.32), 0 0 30px rgba(255, 176, 25, 0.2) !important;
    }

    #rank-grid .store-card:hover .price-box {
        border-color: rgba(255, 176, 25, 0.72) !important;
    }

    #rank-grid .store-card [data-details-button]:hover,
    #rank-grid .store-card [data-gift-button]:hover {
        transform: translateY(calc(-1 * var(--btn-lift)));
        filter: brightness(var(--btn-glow));
        box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.55), 0 8px 0 rgba(120, 73, 0, 0.9), 0 0 34px rgba(255, 176, 25, 0.5) !important;
    }

    #tag-grid .store-card:hover {
        border-color: rgba(0, 142, 255, 0.72) !important;
        box-shadow: 0 20px 52px rgba(0, 0, 0, 0.32), 0 0 30px rgba(0, 142, 255, 0.2) !important;
    }

    #tag-grid .store-card:hover .price-box {
        border-color: rgba(0, 142, 255, 0.72) !important;
    }

    #tag-grid .store-card [data-tag-buy]:hover,
    #tag-grid .store-card [data-tag-gift]:hover {
        --btn-depth: calc(var(--btn-depth-rest) + var(--btn-lift));
        transform: translateY(calc(-1 * var(--btn-lift)));
        filter: brightness(var(--btn-glow));
        box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.55), 0 var(--btn-depth) 0 var(--btn-edge), 0 0 34px rgba(0, 132, 255, 0.5) !important;
    }
}

/* The hover, press and depth behaviour that used to be patched in here now
   lives in the BUTTON SYSTEM section at the end of this file, which covers
   these same selectors. Kept as a marker so the history is legible. */

.store-sponsor-card {
    border-color: rgba(232, 235, 245, 0.75) !important;
    background:
        radial-gradient(130% 90% at 50% -15%, rgba(225, 231, 255, 0.16), transparent 60%),
        #17181a !important;
    box-shadow:
        0 0 26px rgba(220, 228, 255, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.store-sponsor-card:hover {
    border-color: #ffffff !important;
}
.store-sponsor-card img {
    filter: drop-shadow(0 0 16px rgba(226, 233, 255, 0.5));
}
.store-sponsor-card .price-box {
    border-color: rgba(232, 235, 245, 0.45) !important;
}
.store-sponsor-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    padding: 3px 16px 5px;
    border-radius: 50px;
    background: linear-gradient(180deg, #ffffff, #c7cede);
    color: #14161c;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow:
        0 2px 10px rgba(224, 232, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
#rank-modal.store-sponsor-modal .store-modal-panel {
    border-color: rgba(232, 235, 245, 0.8) !important;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.48),
        0 0 44px rgba(224, 232, 255, 0.22) !important;
}
@media (prefers-reduced-motion: no-preference) {
    .store-sponsor-card::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        border-radius: inherit;
        background: radial-gradient(120% 100% at 50% 0%, rgba(220, 228, 255, 0.22), transparent 70%);
        animation: sponsor-card-glow 3.2s ease-in-out infinite;
    }
    .store-sponsor-card::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 5;
        pointer-events: none;
        background: linear-gradient(
            115deg,
            transparent 32%,
            rgba(255, 255, 255, 0.07) 42%,
            rgba(190, 225, 255, 0.16) 47%,
            rgba(255, 226, 245, 0.16) 53%,
            rgba(255, 255, 255, 0.07) 58%,
            transparent 68%
        );
        transform: translateX(-130%);
        animation: sponsor-card-sheen 5s ease-in-out infinite;
    }
    @keyframes sponsor-card-glow {
        0%, 100% { opacity: 0.35; }
        50% { opacity: 1; }
    }
    @keyframes sponsor-card-sheen {
        0% { transform: translateX(-130%); }
        45%, 100% { transform: translateX(130%); }
    }
}

.sponsor-feat-panel {
    background: linear-gradient(180deg, rgba(226, 233, 255, 0.06), rgba(226, 233, 255, 0.015));
    border: 1px solid rgba(232, 235, 245, 0.3);
    border-radius: 16px;
    padding: 20px 22px 18px;
}
.sponsor-feat-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 16px rgba(224, 232, 255, 0.55);
}
.sponsor-feat-caption .material-symbols-outlined {
    color: #dbe4ff;
    filter: drop-shadow(0 0 8px rgba(220, 228, 255, 0.7));
}
.sponsor-feat-exclusive {
    margin-top: 10px;
}
.sponsor-feat-exclusive-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 6px;
    color: #ffffff;
}
.sponsor-feat-exclusive-row + .sponsor-feat-exclusive-row {
    border-top: 1px solid rgba(232, 235, 245, 0.12);
}
.sponsor-feat-exclusive-row .material-symbols-outlined {
    font-size: 18px;
    color: #dbe4ff;
    filter: drop-shadow(0 0 6px rgba(220, 228, 255, 0.6));
}
.sponsor-feat-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 14px;
    color: rgba(219, 228, 255, 0.8);
    font-size: 13px;
    white-space: nowrap;
}
.sponsor-feat-divider::before,
.sponsor-feat-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 235, 245, 0.35), transparent);
}
.sponsor-feat-columns {
    columns: 2;
    column-gap: 32px;
}
.sponsor-feat-item {
    break-inside: avoid;
    padding: 3px 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13.5px;
    line-height: 1.7;
}
.sponsor-feat-item::before {
    content: '✦';
    margin-inline-end: 8px;
    color: rgba(219, 228, 255, 0.6);
    font-size: 11px;
}
@media (max-width: 640px) {
    .sponsor-feat-panel {
        padding: 16px 14px 14px;
    }
    .sponsor-feat-columns {
        columns: 1;
    }
    .sponsor-feat-divider {
        white-space: normal;
        text-align: center;
    }
}

.forum-toolbar,
.ticket-composer-toolbar {
    flex-wrap: wrap;
    row-gap: 6px;
}
.ticket-new-layout > .ticket-form-panel {
    min-width: 0;
}
.ticket-composer-toolbar {
    min-width: 0;
    max-width: 100%;
}
.forum-toolbar-sep,
.ticket-tool-sep {
    width: 1px;
    align-self: stretch;
    min-height: 24px;
    margin: 0 2px;
    background: rgba(255, 255, 255, 0.14);
}

.luna-md { white-space: normal; }
.luna-md-line { display: block; }
.luna-md-line + .luna-md-line { margin-top: 2px; }

.forum-thread-title-text,
#ticket-subject,
.luna-bidi {
    unicode-bidi: plaintext;
    text-align: start;
}

.luna-md-line,
.luna-md-h1, .luna-md-h2, .luna-md-h3,
.luna-md-subtext,
.luna-md-quote, .luna-md-quote > div,
.luna-md-ol, .luna-md-ul,
.luna-md-ol li, .luna-md-ul li {
    text-align: start;
}

.luna-news-card-title,
.luna-news-card-desc {
    unicode-bidi: isolate;
    text-align: start;
}

textarea:not([dir]),
input[type="text"]:not([dir]),
input[type="search"]:not([dir]),
input:not([type]):not([dir]) {
    unicode-bidi: plaintext;
}

.luna-md-h1, .luna-md-h2, .luna-md-h3 {
    font-family: 'Lalezar', 'Vazirmatn', sans-serif;
    line-height: 1.3;
    margin: 10px 0 4px;
    color: #fff;
}
.luna-md-h1 { font-size: 1.5rem; }
.luna-md-h2 { font-size: 1.25rem; }
.luna-md-h3 { font-size: 1.08rem; }

.luna-md-subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 2px 0;
}

.luna-md-quote {
    border-inline-start: 3px solid rgba(17, 212, 255, 0.55);
    padding-inline-start: 12px;
    margin: 6px 0;
    color: rgba(255, 255, 255, 0.82);
}

.luna-md-ul, .luna-md-ol {
    margin: 6px 0;
    padding-inline-start: 24px;
}
.luna-md-ul { list-style: disc; }
.luna-md-ol { list-style: decimal; }
.luna-md-ul li, .luna-md-ol li { margin: 2px 0; }

.luna-md-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 1px 5px;
    direction: ltr;
    unicode-bidi: embed;
}

.luna-md-pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px 14px;
    margin: 8px 0;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}
.luna-md-pre code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.55;
    white-space: pre;
    background: none;
    border: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

.luna-md-link {
    color: #11d4ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.luna-md-link:hover { color: #7fe8ff; }

.luna-spoiler {
    border-radius: 4px;
    padding: 0 3px;
    cursor: pointer;
    transition: color 0.12s ease, background-color 0.12s ease;
}
.luna-spoiler:not(.is-revealed) {
    background: #14161a;
    color: transparent;
}
.luna-spoiler:not(.is-revealed) * { color: transparent !important; }
.luna-spoiler.is-revealed {
    background: rgba(255, 255, 255, 0.08);
    cursor: text;
}

.staff-apply-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.staff-apply-heading {
    font-size: 20px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
}

.staff-apply-note {
    font-size: 13px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.55);
}

.staff-apply-steps {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    list-style: none;
    padding: 0;
}

.staff-apply-steps li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(20, 21, 22, 0.55);
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
    font-weight: 700;
}

.staff-apply-steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: 12px;
}

.staff-apply-steps li.is-active {
    border-color: rgba(0, 142, 255, 0.55);
    color: #75c7ff;
    background: rgba(0, 142, 255, 0.08);
}

.staff-apply-reqs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.staff-apply-req {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(20, 21, 22, 0.55);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.9;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.staff-apply-req input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.staff-apply-req .material-symbols-outlined {
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.2s ease;
}

.staff-apply-req:has(input:checked) {
    border-color: rgba(129, 230, 173, 0.5);
    background: rgba(129, 230, 173, 0.06);
}

.staff-apply-req:has(input:checked) .material-symbols-outlined {
    color: #81e6ad;
}

.staff-apply-req:has(input:focus-visible) {
    outline: 2px solid rgba(0, 142, 255, 0.6);
    outline-offset: 2px;
}

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

.staff-apply-radio-row {
    display: flex;
    gap: 10px;
}

.staff-apply-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(20, 21, 22, 0.55);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.staff-apply-radio input {
    accent-color: #008eff;
}

.staff-apply-radio:has(input:checked) {
    border-color: rgba(0, 142, 255, 0.55);
    color: #75c7ff;
}

.staff-apply-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.staff-apply-nav .dash-mini-button.is-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 5px 0 rgba(255, 255, 255, 0.12);
}

.staff-apply-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    text-align: center;
}

.staff-apply-state .material-symbols-outlined {
    font-size: 46px;
    color: #75c7ff;
}

.staff-apply-state h2 {
    font-size: 19px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
}

.staff-apply-state p {
    max-width: 520px;
    font-size: 13px;
    line-height: 2.1;
    color: rgba(255, 255, 255, 0.55);
}

.staff-apply-state .dash-mini-button {
    margin-top: 6px;
    padding: 0 18px;
    text-decoration: none;
    font-size: 15px;
}

.staff-apply-cooldown {
    color: #ffb019 !important;
}

.staff-apply-reason {
    width: 100%;
    max-width: 520px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 82, 82, 0.07);
    border: 1px solid rgba(255, 82, 82, 0.22);
    text-align: right;
}

.staff-apply-reason strong {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #ff8a80;
    margin-bottom: 6px;
}

.staff-apply-reason p {
    margin: 0;
    max-width: none;
    font-size: 13px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.78);
    white-space: pre-wrap;
    word-break: break-word;
}

.staff-apply-countdown {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.staff-apply-count-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-apply-count-seg b {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    color: #ffb019;
    font-variant-numeric: tabular-nums;
}

.staff-apply-count-seg small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

#requirements-list {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.staff-apply-panel .media-req-block {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
}

.staff-apply-panel .media-req-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
}

.media-brand-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.ticket-category-card .media-brand-logo {
    width: 30px;
    height: 30px;
}

.staff-apply-panel .media-req-subgroup {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.staff-apply-panel .media-req-subgroup + .media-req-subgroup {
    margin-top: 10px;
}

.staff-apply-panel .media-req-subgroup h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.staff-apply-panel .media-req-subgroup h4 .material-symbols-outlined {
    font-size: 18px;
    color: #ffb019;
}

.staff-apply-radio .material-symbols-outlined {
    font-size: 18px;
}

.staff-apply-panel .media-req-block ul {
    display: grid;
    gap: 8px;
}

.staff-apply-panel .media-req-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.staff-apply-panel .media-req-line .material-symbols-outlined {
    font-size: 18px;
    color: #ffb019;
    flex-shrink: 0;
}

.staff-apply-panel .media-req-line small {
    margin-inline-start: auto;
    flex-shrink: 0;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 720px) {
    .staff-apply-grid {
        grid-template-columns: 1fr;
    }

    .staff-apply-steps {
        flex-direction: column;
        gap: 6px;
    }
}

.admin-media-criteria {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.admin-media-criterion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 13px;
}

.admin-media-criterion .admin-badge {
    flex-shrink: 0;
}

.admin-media-criterion b {
    margin-inline-start: auto;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.85);
}

.admin-media-videos {
    display: grid;
    gap: 6px;
}

.admin-media-video {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.admin-media-video span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-media-video b {
    margin-inline-start: auto;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.admin-media-video small {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.45);
}

button.admin-row {
    width: 100%;
    text-align: right;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.admin-application-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(20, 21, 22, 0.55);
}

.admin-application-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-application-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.admin-application-section {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15px;
    font-weight: 900;
    color: #75c7ff;
}

.admin-application-answer strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 4px;
}

.admin-application-answer p {
    font-size: 13px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.82);
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-application-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-application-actions .dash-mini-button {
    font-size: 14px;
    padding: 0 14px;
    text-decoration: none;
}

.admin-application-actions .dash-mini-button.is-accept {
    background: #2f9e5f;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 5px 0 #1e6e41,
        0 0 14px rgba(47, 158, 95, 0.24);
}

.dash-section.hidden {
    display: none;
}

.dash-staffapply-panel {
    padding: 0;
    justify-items: stretch;
}

.dash-staffapply-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
}

.dash-staffapply-icon {
    flex-shrink: 0;
    font-size: 34px;
    color: #75c7ff;
}

.dash-staffapply-card.is-pending .dash-staffapply-icon {
    color: #ffb019;
}

.dash-staffapply-card.is-accepted .dash-staffapply-icon {
    color: #46d17f;
}

.dash-staffapply-card.is-rejected .dash-staffapply-icon {
    color: #ff6b6b;
}

.dash-staffapply-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-staffapply-copy strong {
    font-size: 15px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
}

.dash-staffapply-copy p {
    font-size: 12px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.55);
}

.dash-staffapply-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

.dash-staffapply-card .dash-mini-button {
    flex-shrink: 0;
    padding: 0 14px;
    font-size: 14px;
    text-decoration: none;
}

@media (max-width: 640px) {
    .dash-staffapply-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.admin-presence {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.45);
}

.admin-presence.is-online {
    color: #81e6ad;
    font-weight: 700;
}

.admin-presence-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #81e6ad;
    box-shadow: 0 0 6px rgba(129, 230, 173, 0.6);
}

.admin-team-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-team-row.is-inactive {
    border-color: rgba(255, 107, 94, 0.35);
}

.admin-team-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    image-rendering: pixelated;
}

span.admin-team-avatar {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35);
    image-rendering: auto;
}

.admin-team-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-inactive-badge {
    background: rgba(255, 107, 94, 0.14);
    color: #ff6b5e;
    border: 1px solid rgba(255, 107, 94, 0.4);
}

.admin-presence.is-away {
    color: #ffb019;
    font-weight: 700;
}

.admin-presence.is-away .admin-presence-dot {
    background: #ffb019;
    box-shadow: 0 0 6px rgba(255, 176, 25, 0.6);
}

.admin-team-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.admin-team-tickets {
    white-space: nowrap;
}

.admin-team-remove {
    white-space: nowrap;
}

.admin-team-remove:hover,
.admin-team-remove:focus-visible {
    border-color: rgba(255, 107, 94, 0.7);
    color: #ff8a7e;
    box-shadow: 0 0 16px rgba(255, 107, 94, 0.18);
}

@media (max-width: 640px) {
    .admin-team-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-team-actions {
        grid-column: 2;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-self: start;
    }
}

.admin-row-main .font-label-sm {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.lb-page {
    position: relative;
    min-height: 100vh;
    padding: 96px 16px 40px;
    background:
        radial-gradient(1400px 600px at 50% 0%, rgba(114, 46, 209, 0.14), transparent 70%),
        linear-gradient(180deg,
            rgba(20, 21, 22, 0.22) 0%,
            rgba(20, 21, 22, 0.22) 45%,
            rgba(20, 21, 22, 0.55) 70%,
            rgba(20, 21, 22, 0.85) 85%,
            #141516 97%),
        url('/cdn/images/leaderboard-bg.webp') center top / cover no-repeat #141516;
}

.lb-shell {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 0 96px;
}

.lb-title {
    font-family: 'Kamran Digits', 'Kamran', 'Shabnam', sans-serif;
    margin-bottom: 52px;
    text-align: center;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 900;
    color: #cf9dff;
    text-shadow:
        0 0 14px rgba(168, 85, 247, 0.85),
        0 0 42px rgba(168, 85, 247, 0.45);
}

.lb-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    direction: ltr;
    margin-bottom: 56px;
}

.lb-tabs-stats {
    margin-bottom: 48px;
}

.lb-tabs.hidden {
    display: none;
}

.lb-tab {
    padding: 11px 22px;
    border: 0;
    border-radius: 10px;
    background: #232227;
    color: #fff;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lb-tab:hover {
    background: #302e36;
    transform: translateY(calc(-1 * var(--btn-lift)));
}

.lb-tab.is-active {
    background: #a259ff;
    box-shadow: 0 0 18px rgba(162, 89, 255, 0.45);
}

.lb-board {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    padding: 8px 26px;
    border-radius: 10px;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.lb-row-odd {
    background: rgba(255, 255, 255, 0.055);
}

.lb-num {
    min-width: 34px;
    font-size: 22px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.lb-name {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-avatar {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

span.lb-avatar-fallback {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    image-rendering: auto;
}

span.lb-avatar-fallback .material-symbols-outlined {
    font-size: 20px;
}

.lb-crown {
    width: 26px;
    height: 20px;
    flex-shrink: 0;
}

.lb-value {
    margin-left: auto;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.lb-rank-1 .lb-num,
.lb-rank-1 .lb-name { color: #f6c445; }
.lb-rank-1 .lb-crown { fill: #f6c445; }

.lb-rank-2 .lb-num,
.lb-rank-2 .lb-name { color: #d7dbe0; }
.lb-rank-2 .lb-crown { fill: #d7dbe0; }

.lb-rank-3 .lb-num,
.lb-rank-3 .lb-name { color: #e0813f; }
.lb-rank-3 .lb-crown { fill: #e0813f; }

.lb-state {
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 220px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    font-weight: 700;
}

.lb-retry {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-right: 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.lb-retry:hover,
.lb-retry:focus-visible {
    border-color: rgba(168, 85, 247, 0.8);
    background: rgba(168, 85, 247, 0.2);
}

.lb-retry .material-symbols-outlined {
    font-size: 20px;
}

@media (max-width: 640px) {
    .lb-shell {
        padding: 48px 12px 64px;
    }

    .lb-row {
        padding: 8px 14px;
        gap: 10px;
    }

    .lb-name {
        font-size: 17px;
    }

}

.lb-tab.is-disabled {
    position: relative;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Keeps the tab group's rest background; only the movement is suppressed. */
.lb-tab.is-disabled:hover {
    transform: none;
}

.lb-tab.is-disabled::after {
    content: 'به زودی';
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #26242c;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Kamran Digits', 'Kamran', 'Shabnam', sans-serif;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.lb-tab.is-disabled:hover::after,
.lb-tab.is-disabled:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.luna-verified-wrap {
    display: inline-flex;
    align-items: center;
    vertical-align: -0.26em;
}

.luna-tooltip-bubble {
    position: fixed;
    z-index: 90;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #26242c;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Kamran Digits', 'Kamran', 'Shabnam', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.luna-tooltip-bubble.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.luna-404-stage {
    min-height: 100vh;
    min-height: 100dvh;
}

.luna-404-stage::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background:
        radial-gradient(ellipse 90% 100% at 50% 100%, rgba(17, 212, 255, 0.10), transparent 65%),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

.luna-404-card {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.luna-404-code {
    font-family: 'Kamran Digits', 'Kamran', 'Shabnam', sans-serif;
    font-size: clamp(120px, 26vw, 230px);
    font-weight: 700;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

.luna-404-glitch {
    position: relative;
    display: inline-block;
    color: #fff;
    text-shadow: 0 0 32px rgba(17, 212, 255, 0.35);
    animation: luna-404-hover 5s ease-in-out infinite;
}

.luna-404-glitch::before,
.luna-404-glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0.8;
    pointer-events: none;
}

.luna-404-glitch::before {
    color: #11d4ff;
    z-index: -1;
    animation: luna-404-glitch-a 3.2s steps(1) infinite;
}

.luna-404-glitch::after {
    color: #ff5c5c;
    z-index: -2;
    animation: luna-404-glitch-b 2.7s steps(1) infinite;
}

@keyframes luna-404-hover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes luna-404-glitch-a {
    0%, 91%, 100% { transform: translate(0, 0); clip-path: none; }
    92% { transform: translate(-6px, 3px); clip-path: inset(12% 0 58% 0); }
    94% { transform: translate(5px, -2px); clip-path: inset(62% 0 8% 0); }
    96% { transform: translate(-3px, 1px); clip-path: inset(35% 0 40% 0); }
    98% { transform: translate(2px, -3px); clip-path: inset(5% 0 80% 0); }
}

@keyframes luna-404-glitch-b {
    0%, 89%, 100% { transform: translate(0, 0); clip-path: none; }
    90% { transform: translate(6px, -3px); clip-path: inset(50% 0 20% 0); }
    93% { transform: translate(-5px, 2px); clip-path: inset(10% 0 70% 0); }
    95% { transform: translate(4px, 2px); clip-path: inset(75% 0 5% 0); }
    97% { transform: translate(-2px, -1px); clip-path: inset(28% 0 48% 0); }
}

.luna-404-title {
    margin-top: 8px;
    font-family: 'Shabnam', sans-serif;
    font-size: clamp(24px, 4.5vw, 38px);
    font-weight: 700;
    color: #fff;
}

.luna-404-sub {
    margin-top: 16px;
    font-family: 'Shabnam', sans-serif;
    font-size: clamp(14px, 2.2vw, 17px);
    line-height: 2.1;
    color: rgba(255, 255, 255, 0.62);
}

.luna-404-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.luna-404-home-btn {
    margin-top: 0;
}

/* Size and shape come from the secondary group. */
.luna-404-alt-btn {
    padding-inline: var(--btn-px-md);
}

.luna-404-drift {
    position: absolute;
    z-index: 1;
    width: clamp(44px, 7vw, 84px);
    image-rendering: pixelated;
    opacity: 0.55;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    animation: luna-404-drift 9s ease-in-out infinite;
}

.luna-404-drift.is-1 { top: 18%; right: 12%; animation-duration: 10s; }
.luna-404-drift.is-2 { top: 62%; right: 7%; animation-duration: 8s; animation-delay: -2.5s; transform: rotate(-14deg); }
.luna-404-drift.is-3 { top: 24%; left: 10%; animation-duration: 11s; animation-delay: -5s; }
.luna-404-drift.is-4 { top: 68%; left: 14%; animation-duration: 9s; animation-delay: -7s; transform: rotate(12deg); }
.luna-404-drift.is-5 { top: 44%; left: 4%; animation-duration: 12s; animation-delay: -3.5s; width: clamp(36px, 5vw, 60px); opacity: 0.4; }

@keyframes luna-404-drift {
    0%, 100% { translate: 0 0; }
    33% { translate: 8px -22px; }
    66% { translate: -10px 10px; }
}

@media (max-width: 1024px) {
    .luna-404-drift.is-2, .luna-404-drift.is-4 { display: none; }
}

@media (max-width: 640px) {
    .luna-404-drift { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
    .luna-404-glitch,
    .luna-404-glitch::before,
    .luna-404-glitch::after,
    .luna-404-drift {
        animation: none;
    }
}

#admin-panel-sales .sales-summary {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 2px 0 10px;
    min-height: 18px;
}

#admin-panel-sales .sales-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(58, 58, 61, 0.32);
    padding: 14px;
    transition: opacity 0.15s ease;
}

#admin-panel-sales .sales-card.is-loading {
    opacity: 0.55;
}

#admin-panel-sales .sales-svg {
    display: block;
    width: 100%;
    height: auto;
}

#admin-panel-sales .sales-grid {
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1;
}

#admin-panel-sales .sales-baseline {
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1;
}

#admin-panel-sales .sales-tick {
    fill: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

#admin-panel-sales .sales-cap-label {
    fill: #fff;
    font-size: 11px;
    font-weight: 700;
}

#admin-panel-sales .sales-col {
    outline: none;
}

#admin-panel-sales .sales-col:hover rect:not(.sales-hit),
#admin-panel-sales .sales-col:focus-visible rect:not(.sales-hit) {
    filter: brightness(1.18);
}

#admin-panel-sales .sales-tooltip {
    position: absolute;
    z-index: 5;
    background: #22222e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    min-width: 132px;
}

#admin-panel-sales .sales-tooltip > strong {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    margin-bottom: 2px;
}

#admin-panel-sales .sales-tooltip-value {
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

#admin-panel-sales .sales-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

#admin-panel-sales .sales-data-table th,
#admin-panel-sales .sales-data-table td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#admin-panel-sales .sales-data-table td {
    font-variant-numeric: tabular-nums;
}

#admin-panel-sales .sales-data-table th {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}

/* =========================================================================
   BUTTON SYSTEM
   =========================================================================
   One rhythm, several groups.

   Every button on the site belongs to exactly one group. Groups differ in
   colour, weight and intent; they never differ in size rhythm, corner
   radius, hover distance or timing — those come from the --btn-* tokens
   in :root.

     primary    solid blue with a depth edge — the one action that matters
     secondary  outlined and translucent — supporting actions
     danger     red — destructive and irreversible
     icon       bare glyph, no chrome — dense toolbars
     icon-box   framed square glyph — standalone icon actions
     tab        view switching, active state is filled
     page       pagination numerals and arrows
     chip       small selectable toggles

   Division of labour: this section owns the RHYTHM (size, radius, motion,
   states). Each family's own rule block further down/up the file owns its
   SKIN (colour, gradient, glow). Do not set size or timing in a skin.

   The .lbtn-* classes are the API for NEW buttons and are not used by any
   markup yet — existing pages keep their own class names and are retrofitted
   onto the same rhythm by the selector lists below. Adding a button? Prefer:
       <button class="lbtn lbtn-primary lbtn-md">…</button>

   Note: --btn-transition lives on :root alongside --motion-ease/--motion-pop
   that it references. Keep them on the same element — if those moved to body,
   --btn-transition would compute to invalid on :root and every button on the
   site would silently lose its transition.
   ========================================================================= */

/* ── Foundation ─────────────────────────────────────────────────────────
   Applies to the new .lbtn classes and retrofits every legacy family onto
   the same rhythm, so old markup stays in sync without being rewritten. */
.lbtn,
.dash-mini-button,
.dash-cart-pay-button,
.admin-modal-btn,
.admin-cancel,
.ticket-mini-ghost,
.ticket-danger-button,
.ticket-send-button,
.forum-mod-btn,
.luna-forum-new-btn,
.luna-404-alt-btn,
.terms-end-btn,
.ticket-back-link,
.dash-gift-toggle,
.luna-color-apply,
.admin-tab,
.lb-tab,
.luna-tab,
.rule-nav-link,
.forum-page-btn,
.forum-like-btn,
.luna-ip-pill,
.luna-primary-pill,
.luna-bottom-cta button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--btn-gap-md);
    min-height: var(--btn-h-md);
    padding-block: 0;
    padding-inline: var(--btn-px-md);
    border-radius: var(--btn-r-md);
    max-width: 100%;
    font-size: var(--btn-fs-md);
    font-weight: var(--btn-weight);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transform-origin: center;
    transition: var(--btn-transition);
}

/* Icons inherit the step's icon size rather than carrying their own. */
.lbtn .material-symbols-outlined,
.dash-mini-button .material-symbols-outlined,
.dash-cart-pay-button .material-symbols-outlined,
.admin-modal-btn .material-symbols-outlined,
.ticket-mini-ghost .material-symbols-outlined,
.ticket-danger-button .material-symbols-outlined,
.ticket-send-button .material-symbols-outlined,
.forum-mod-btn .material-symbols-outlined,
.luna-forum-new-btn .material-symbols-outlined,
.luna-404-alt-btn .material-symbols-outlined,
.terms-end-btn .material-symbols-outlined,
.ticket-back-link .material-symbols-outlined,
.forum-page-btn .material-symbols-outlined,
.forum-like-btn .material-symbols-outlined {
    font-size: var(--btn-icon-md);
    line-height: 1;
    flex: none;
}

/* ── Size steps ─────────────────────────────────────────────────────── */
.lbtn-xs {
    gap: var(--btn-gap-xs);
    min-height: var(--btn-h-xs);
    padding-inline: var(--btn-px-xs);
    border-radius: var(--btn-r-xs);
    font-size: var(--btn-fs-xs);
}

.lbtn-sm {
    gap: var(--btn-gap-sm);
    min-height: var(--btn-h-sm);
    padding-inline: var(--btn-px-sm);
    border-radius: var(--btn-r-sm);
    font-size: var(--btn-fs-sm);
}

.lbtn-md {
    gap: var(--btn-gap-md);
    min-height: var(--btn-h-md);
    padding-inline: var(--btn-px-md);
    border-radius: var(--btn-r-md);
    font-size: var(--btn-fs-md);
}

.lbtn-lg {
    gap: var(--btn-gap-lg);
    min-height: var(--btn-h-lg);
    padding-inline: var(--btn-px-lg);
    border-radius: var(--btn-r-lg);
    font-size: var(--btn-fs-lg);
}

.lbtn-xl {
    gap: var(--btn-gap-xl);
    min-height: var(--btn-h-xl);
    padding-inline: var(--btn-px-xl);
    border-radius: var(--btn-r-xl);
    font-size: var(--btn-fs-xl);
}

.lbtn-xs .material-symbols-outlined { font-size: var(--btn-icon-xs); }
.lbtn-sm .material-symbols-outlined { font-size: var(--btn-icon-sm); }
.lbtn-md .material-symbols-outlined { font-size: var(--btn-icon-md); }
.lbtn-lg .material-symbols-outlined { font-size: var(--btn-icon-lg); }
.lbtn-xl .material-symbols-outlined { font-size: var(--btn-icon-xl); }

/* A button that should fill its container rather than hug its label. */
.lbtn-block {
    display: flex;
    width: 100%;
}

/* -- Groups -------------------------------------------------------------
   A group sets --btn-depth-rest (how tall its bottom edge sits at rest)
   and its own colours. The shared state rules further down animate the
   depth and the lift, so every group reacts to the pointer identically. */

/* primary - solid blue, the one action that matters on a screen */
.lbtn-primary,
.dash-mini-button,
.dash-cart-pay-button,
.luna-forum-new-btn,
.luna-primary-pill,
.luna-bottom-cta button,
.admin-modal-btn.is-primary,
.ticket-mini-ghost.is-primary,
.admin-cancel.is-grant {
    --btn-depth-rest: var(--btn-depth-lg);
    --btn-edge: #004c93;
    --btn-halo: rgba(0, 132, 255, 0.34);
    border: 0;
    background: linear-gradient(180deg, #64acff 0%, #0077ff 82%);
    color: #08121c;
    text-shadow: none;
    box-shadow:
        inset 0 3px 5px rgba(255, 255, 255, 0.42),
        0 var(--btn-depth) 0 var(--btn-edge),
        0 0 26px var(--btn-halo);
}

/* primary, affirmative - accepting an application, granting a rank */
.lbtn-primary.is-accept,
.dash-mini-button.is-accept {
    --btn-edge: #10603a;
    --btn-halo: rgba(45, 216, 129, 0.32);
    background: linear-gradient(180deg, #6ff0b0 0%, #14b866 82%);
    color: #04130b;
}

/* secondary - outlined and translucent, sits beside a primary */
.lbtn-secondary,
.admin-modal-btn.is-ghost,
.dash-mini-button.is-ghost,
.ticket-mini-ghost,
.forum-mod-btn,
.luna-404-alt-btn,
.terms-end-btn,
.dash-gift-toggle,
.luna-color-apply,
.ticket-back-link,
.luna-ip-pill,
.luna-player-pill {
    --btn-depth-rest: 0px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    text-shadow: none;
    box-shadow: none;
}

@media (hover: hover) {
    .lbtn-secondary:hover,
    .admin-modal-btn.is-ghost:hover,
    .dash-mini-button.is-ghost:hover:not(:disabled),
    .ticket-mini-ghost:hover:not(:disabled),
    .forum-mod-btn:hover:not(:disabled),
    .luna-404-alt-btn:hover,
    .terms-end-btn:hover,
    .dash-gift-toggle:hover,
    .luna-color-apply:hover,
    .ticket-back-link:hover,
    .luna-ip-pill:hover {
        border-color: rgba(255, 255, 255, 0.34);
        background: rgba(255, 255, 255, 0.09);
        color: #ffffff;
    }
}

/* danger - destructive, irreversible */
.lbtn-danger,
.admin-modal-btn.is-danger,
.admin-cancel,
.ticket-danger-button {
    --btn-depth-rest: 0px;
    border: 1px solid rgba(255, 91, 76, 0.46);
    background: rgba(255, 42, 13, 0.09);
    color: #ff7a64;
    text-shadow: none;
    box-shadow: none;
}

@media (hover: hover) {
    .lbtn-danger:hover:not(:disabled),
    .admin-modal-btn.is-danger:hover:not(:disabled),
    .admin-cancel:hover:not(:disabled),
    .ticket-danger-button:hover:not(:disabled) {
        border-color: rgba(255, 91, 76, 0.78);
        background: rgba(255, 42, 13, 0.17);
        color: #ff9a88;
    }
}

/* icon - a bare glyph, for dense toolbars where chrome would be noise */
.lbtn-icon,
.ticket-tool-button,
.ticket-msg-action,
.admin-modal-close,
.dash-gift-cancel,
.dash-gift-clear,
.forum-toolbar button {
    --btn-depth-rest: 0px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: var(--btn-h-sm);
    height: var(--btn-h-sm);
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: var(--btn-r-xs);
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    line-height: 0;
    cursor: pointer;
    transition: var(--btn-transition);
}

.lbtn-icon .material-symbols-outlined,
.ticket-tool-button .material-symbols-outlined,
.ticket-msg-action .material-symbols-outlined,
.admin-modal-close .material-symbols-outlined,
.forum-toolbar button .material-symbols-outlined {
    font-size: var(--btn-icon-sm);
    line-height: 1;
}

@media (hover: hover) {
    .lbtn-icon:hover:not(:disabled),
    .ticket-tool-button:hover:not(:disabled),
    .ticket-msg-action:hover:not(:disabled),
    .admin-modal-close:hover,
    .dash-gift-cancel:hover,
    .forum-toolbar button:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.09);
        color: #ffffff;
    }
}

@media (hover: hover) {
    .lbtn-icon.is-danger:hover:not(:disabled),
    .ticket-msg-action.is-danger:hover:not(:disabled),
    .dash-cart-remove:hover:not(:disabled),
    .dash-gift-clear:hover:not(:disabled),
    .admin-stat-reset-icon:hover:not(:disabled) {
        background: rgba(255, 42, 13, 0.16);
        color: #ff8f7a;
    }
}

/* icon-box - a framed glyph that stands on its own */
.lbtn-icon-box,
.forum-pin-btn,
.forum-feature-btn,
.lb-retry,
.dash-qty-btn {
    --btn-depth-rest: 0px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: var(--btn-h-sm);
    height: var(--btn-h-sm);
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--btn-r-sm);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    line-height: 0;
    cursor: pointer;
    transition: var(--btn-transition);
}

.lbtn-icon-box .material-symbols-outlined,
.forum-pin-btn .material-symbols-outlined,
.forum-feature-btn .material-symbols-outlined,
.lb-retry .material-symbols-outlined {
    font-size: var(--btn-icon-sm);
    line-height: 1;
}

@media (hover: hover) {
    .lbtn-icon-box:hover:not(:disabled),
    .forum-pin-btn:hover:not(:disabled),
    .forum-feature-btn:hover:not(:disabled),
    .lb-retry:hover:not(:disabled),
    .dash-qty-btn:hover:not(:disabled) {
        border-color: rgba(255, 255, 255, 0.34);
        background: rgba(255, 255, 255, 0.09);
        color: #ffffff;
    }
}

/* An icon-box that is currently "on" - pinned, featured, active filter.
   The accent is a variable so a toggle can keep the colour that means
   something (pinned is warm, featured is blue) without inventing a shape. */
.lbtn-icon-box,
.forum-pin-btn,
.forum-feature-btn {
    --icon-on: var(--luna-blue-soft);
    --icon-on-tint: rgba(0, 142, 255, 0.16);
}

.forum-pin-btn {
    --icon-on: var(--luna-yellow);
    --icon-on-tint: rgba(255, 176, 25, 0.16);
}

.lbtn-icon-box.is-on,
.forum-pin-btn.is-pinned,
.forum-feature-btn.is-featured {
    border-color: color-mix(in srgb, var(--icon-on) 55%, transparent);
    background: var(--icon-on-tint);
    color: var(--icon-on);
}

/* tab - switching views; the active one is filled, the rest are quiet */
.lbtn-tab,
.admin-tab,
.lb-tab,
.luna-tab,
.rule-nav-link {
    --btn-depth-rest: 0px;
    /* The selected tab is a solid fill. Each surface picks its own accent
       so the store stays yellow and the leaderboard stays purple, while the
       size, shape and motion stay identical everywhere. */
    --tab-on-bg: #0066e6;
    --tab-on-color: #ffffff;
    --tab-on-glow: rgba(0, 132, 255, 0.42);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.62);
    box-shadow: none;
}

/* The same purple the leaderboard has always used, a shade deeper so white
   label text clears 4.5:1 (the original #a259ff sat at 3.88:1). */
.lb-tab {
    --tab-on-bg: #9250e6;
    --tab-on-glow: rgba(162, 89, 255, 0.45);
}

.luna-tab {
    --tab-on-bg: var(--luna-yellow);
    --tab-on-color: #141516;
    --tab-on-glow: rgba(255, 176, 25, 0.42);
}

@media (hover: hover) {
    .lbtn-tab:hover:not(.is-active):not(.is-disabled),
    .admin-tab:hover:not(.is-active),
    .lb-tab:hover:not(.is-active):not(.is-disabled),
    .luna-tab:hover:not(.active),
    .rule-nav-link:hover:not(.rule-nav-active) {
        border-color: rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }
}

.lbtn-tab.is-active,
.admin-tab.is-active,
.lb-tab.is-active,
.luna-tab.active,
.rule-nav-link.rule-nav-active {
    border-color: transparent;
    background: var(--tab-on-bg);
    color: var(--tab-on-color);
    box-shadow: 0 0 18px var(--tab-on-glow);
}

/* page - pagination numerals and arrows */
.lbtn-page,
.forum-page-btn {
    --btn-depth-rest: 0px;
    min-width: var(--btn-h-lg);
    min-height: var(--btn-h-lg);
    padding-inline: var(--btn-px-sm);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--btn-r-lg);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--btn-fs-lg);
    box-shadow: none;
}

.lbtn-page.is-arrow,
.forum-page-btn.is-arrow {
    min-width: var(--btn-h-lg);
    padding-inline: 0;
}

@media (hover: hover) {
    .lbtn-page:hover:not(:disabled):not(.is-current),
    .forum-page-btn:hover:not(:disabled):not(.is-current) {
        border-color: rgba(255, 255, 255, 0.32);
        background: rgba(255, 255, 255, 0.09);
        color: #ffffff;
    }
}

.lbtn-page.is-current,
.forum-page-btn.is-current {
    --btn-depth-rest: var(--btn-depth-md);
    --btn-edge: #004c93;
    --btn-halo: rgba(0, 132, 255, 0.3);
    border-color: transparent;
    background: linear-gradient(180deg, #64acff 0%, #0077ff 82%);
    color: #08121c;
    box-shadow:
        inset 0 3px 5px rgba(255, 255, 255, 0.42),
        0 var(--btn-depth) 0 var(--btn-edge),
        0 0 22px var(--btn-halo);
}

/* chip - a small selectable toggle */
.lbtn-chip,
.forum-like-btn {
    --btn-depth-rest: 0px;
    min-height: var(--btn-h-sm);
    padding-inline: var(--btn-px-sm);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--btn-r-pill);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.68);
    font-size: var(--btn-fs-sm);
    box-shadow: none;
}

@media (hover: hover) {
    .lbtn-chip:hover:not(:disabled),
    .forum-like-btn:hover:not(:disabled) {
        border-color: rgba(255, 255, 255, 0.34);
        background: rgba(255, 255, 255, 0.09);
        color: #ffffff;
    }
}

.lbtn-chip.is-on,
.forum-like-btn.is-liked {
    border-color: rgba(255, 91, 76, 0.55);
    background: rgba(255, 42, 13, 0.14);
    color: #ff7a64;
}

/* -- States -------------------------------------------------------------
   Defined once, for every group. A button rises on hover, sinks when
   held, and its depth edge grows and shrinks to match — so the whole site
   has one physical feel. Groups without a depth edge simply ignore it. */

.lbtn,
.dash-mini-button,
.dash-cart-pay-button,
.admin-modal-btn,
.admin-cancel,
.ticket-mini-ghost,
.ticket-danger-button,
.ticket-send-button,
.forum-mod-btn,
.luna-forum-new-btn,
.luna-404-alt-btn,
.terms-end-btn,
.ticket-back-link,
.dash-gift-toggle,
.luna-color-apply,
.admin-tab,
.lb-tab,
.luna-tab,
.rule-nav-link,
.forum-page-btn,
.forum-like-btn,
.luna-ip-pill,
.luna-primary-pill,
.luna-bottom-cta button,
.lbtn-icon,
.ticket-tool-button,
.ticket-msg-action,
.admin-modal-close,
.dash-gift-cancel,
.dash-cart-remove,
.dash-gift-clear,
.admin-stat-reset-icon,
.forum-toolbar button,
.lbtn-icon-box,
.forum-pin-btn,
.forum-feature-btn,
.lb-retry,
.dash-qty-btn {
    --btn-depth: var(--btn-depth-rest, 0px);
}

@media (hover: hover) {
    .lbtn:hover,
    .dash-mini-button:hover,
    .dash-cart-pay-button:hover,
    .admin-modal-btn:hover,
    .admin-cancel:hover,
    .ticket-mini-ghost:hover,
    .ticket-danger-button:hover,
    .ticket-send-button:hover,
    .forum-mod-btn:hover,
    .luna-forum-new-btn:hover,
    .luna-404-alt-btn:hover,
    .terms-end-btn:hover,
    .ticket-back-link:hover,
    .dash-gift-toggle:hover,
    .luna-color-apply:hover,
    .admin-tab:hover,
    .lb-tab:hover,
    .luna-tab:hover,
    .rule-nav-link:hover,
    .forum-page-btn:hover,
    .forum-like-btn:hover,
    .luna-ip-pill:hover,
    .luna-primary-pill:hover,
    .luna-bottom-cta button:hover,
    .lbtn-icon:hover,
    .ticket-tool-button:hover,
    .ticket-msg-action:hover,
    .admin-modal-close:hover,
    .dash-gift-cancel:hover,
    .dash-cart-remove:hover,
    .dash-gift-clear:hover,
    .admin-stat-reset-icon:hover,
    .forum-toolbar button:hover,
    .lbtn-icon-box:hover,
    .forum-pin-btn:hover,
    .forum-feature-btn:hover,
    .lb-retry:hover,
    .dash-qty-btn:hover {
        --btn-depth: calc(var(--btn-depth-rest, 0px) + var(--btn-lift));
        transform: translateY(calc(-1 * var(--btn-lift)));
    }

    /* Solid fills brighten as they rise; outlined ones change colour
       instead, which their group rule already handles. */
    .lbtn-primary:hover,
    .dash-mini-button:hover,
    .dash-cart-pay-button:hover,
    .luna-forum-new-btn:hover,
    .luna-primary-pill:hover,
    .admin-modal-btn.is-primary:hover,
    .ticket-mini-ghost.is-primary:hover,
    .admin-cancel.is-grant:hover,
    .forum-page-btn.is-current:hover {
        filter: brightness(var(--btn-glow));
    }

    /* Nothing lifts once it is out of action. */
    .lbtn:disabled:hover,
    .dash-mini-button:disabled:hover,
    .dash-cart-pay-button:disabled:hover,
    .admin-modal-btn:disabled:hover,
    .admin-cancel:disabled:hover,
    .ticket-mini-ghost:disabled:hover,
    .ticket-danger-button:disabled:hover,
    .ticket-send-button:disabled:hover,
    .forum-mod-btn:disabled:hover,
    .admin-tab:disabled:hover,
    .lb-tab:disabled:hover,
    .forum-page-btn:disabled:hover,
    .forum-like-btn:disabled:hover,
    .lbtn-icon:disabled:hover,
    .ticket-tool-button:disabled:hover,
    .ticket-msg-action:disabled:hover,
    .forum-toolbar button:disabled:hover,
    .lbtn-icon-box:disabled:hover,
    .forum-pin-btn:disabled:hover,
    .forum-feature-btn:disabled:hover,
    .dash-qty-btn:disabled:hover,
    .lbtn[aria-disabled="true"]:hover,
    .lbtn.is-disabled:hover,
    .lb-tab.is-disabled:hover,
    .dash-cart-pay-button.is-disabled:hover,
    .rule-nav-link.rule-nav-active:hover,
    .admin-tab.is-active:hover,
    .lb-tab.is-active:hover,
    .luna-tab.active:hover {
        --btn-depth: var(--btn-depth-rest, 0px);
        transform: none;
        filter: none;
    }
}

/* Held down: the button sinks by the same amount everywhere. */
.lbtn:active:not(:disabled),
.dash-mini-button:active:not(:disabled),
.dash-cart-pay-button:active:not(:disabled),
.admin-modal-btn:active:not(:disabled),
.admin-cancel:active:not(:disabled),
.ticket-mini-ghost:active:not(:disabled),
.ticket-danger-button:active:not(:disabled),
.ticket-send-button:active:not(:disabled),
.forum-mod-btn:active:not(:disabled),
.luna-forum-new-btn:active,
.luna-404-alt-btn:active,
.terms-end-btn:active,
.ticket-back-link:active,
.dash-gift-toggle:active,
.luna-color-apply:active,
.admin-tab:active:not(:disabled),
.lb-tab:active:not(:disabled),
.luna-tab:active,
.rule-nav-link:active,
.forum-page-btn:active:not(:disabled),
.forum-like-btn:active:not(:disabled),
.luna-ip-pill:active,
.luna-primary-pill:active,
.luna-bottom-cta button:active,
.lbtn-icon:active:not(:disabled),
.ticket-tool-button:active:not(:disabled),
.ticket-msg-action:active:not(:disabled),
.admin-modal-close:active,
.forum-toolbar button:active:not(:disabled),
.lbtn-icon-box:active:not(:disabled),
.forum-pin-btn:active:not(:disabled),
.forum-feature-btn:active:not(:disabled),
.lb-retry:active,
.dash-qty-btn:active:not(:disabled) {
    --btn-depth: max(0px, calc(var(--btn-depth-rest, 0px) - var(--btn-press)));
    transform: translateY(var(--btn-press));
    transition-duration: var(--btn-dur-press);
}

/* One focus ring, on every group. */
.lbtn:focus-visible,
.dash-mini-button:focus-visible,
.dash-cart-pay-button:focus-visible,
.admin-modal-btn:focus-visible,
.admin-cancel:focus-visible,
.ticket-mini-ghost:focus-visible,
.ticket-danger-button:focus-visible,
.ticket-send-button:focus-visible,
.forum-mod-btn:focus-visible,
.luna-forum-new-btn:focus-visible,
.luna-404-alt-btn:focus-visible,
.terms-end-btn:focus-visible,
.ticket-back-link:focus-visible,
.dash-gift-toggle:focus-visible,
.luna-color-apply:focus-visible,
.admin-tab:focus-visible,
.lb-tab:focus-visible,
.luna-tab:focus-visible,
.rule-nav-link:focus-visible,
.forum-page-btn:focus-visible,
.forum-like-btn:focus-visible,
.luna-ip-pill:focus-visible,
.luna-primary-pill:focus-visible,
.luna-bottom-cta button:focus-visible,
.lbtn-icon:focus-visible,
.ticket-tool-button:focus-visible,
.ticket-msg-action:focus-visible,
.admin-modal-close:focus-visible,
.dash-gift-cancel:focus-visible,
.dash-cart-remove:focus-visible,
.dash-gift-clear:focus-visible,
.admin-stat-reset-icon:focus-visible,
.forum-toolbar button:focus-visible,
.lbtn-icon-box:focus-visible,
.forum-pin-btn:focus-visible,
.forum-feature-btn:focus-visible,
.lb-retry:focus-visible,
.dash-qty-btn:focus-visible {
    outline: var(--btn-focus-width) solid var(--btn-focus-color);
    outline-offset: var(--btn-focus-offset);
}

/* Out of action: one treatment, no exceptions. */
.lbtn:disabled,
.dash-mini-button:disabled,
.dash-cart-pay-button:disabled,
.admin-modal-btn:disabled,
.admin-cancel:disabled,
.ticket-mini-ghost:disabled,
.ticket-danger-button:disabled,
.ticket-send-button:disabled,
.forum-mod-btn:disabled,
.admin-tab:disabled,
.lb-tab:disabled,
.forum-page-btn:disabled,
.forum-like-btn:disabled,
.lbtn-icon:disabled,
.ticket-tool-button:disabled,
.ticket-msg-action:disabled,
.forum-toolbar button:disabled,
.lbtn-icon-box:disabled,
.forum-pin-btn:disabled,
.forum-feature-btn:disabled,
.dash-qty-btn:disabled,
.lbtn[aria-disabled="true"],
.lbtn.is-disabled,
.lb-tab.is-disabled,
.dash-cart-pay-button.is-disabled {
    opacity: var(--btn-disabled-opacity);
    cursor: not-allowed;
    transform: none;
}

/* Reduced motion: zero the movement tokens on :root. Custom properties
   inherit, so every button that reads --btn-lift / --btn-press / --btn-dur
   is covered without having to list each family (and stay in sync). */
@media (prefers-reduced-motion: reduce) {
    :root {
        --btn-lift: 0px;
        --btn-lift-lg: 0px;
        --btn-scale: 1;
        --btn-press: 0px;
        --btn-dur: 1ms;
        --btn-dur-press: 1ms;
    }
}
/* -- Buttons that are centred with a transform ---------------------------
   The pin and feature toggles are absolutely positioned and centred with
   translateY(-50%). The shared lift would overwrite that, so they get the
   same movement expressed on top of their centring. */
@media (hover: hover) {
    .forum-pin-btn:hover,
    .forum-feature-btn:hover {
        transform: translateY(calc(-50% - var(--btn-lift)));
    }

    .forum-pin-btn:disabled:hover,
    .forum-feature-btn:disabled:hover {
        transform: translateY(-50%);
    }
}

.forum-pin-btn:active:not(:disabled),
.forum-feature-btn:active:not(:disabled) {
    transform: translateY(calc(-50% + var(--btn-press)));
}

/* -- Size assignment ----------------------------------------------------
   Group says what a button MEANS (primary, danger, tab...). Size says how
   much room it gets. They are independent: a danger button in a table row
   is small, the same danger button in a modal is medium. Everything not
   listed here sits at the md step set by the foundation above. */

/* xl - the hero cluster: the one CTA a visitor should see from the door. */
.luna-primary-pill,
.luna-ip-pill,
.luna-player-pill,
.luna-bottom-cta button {
    gap: var(--btn-gap-xl);
    min-height: var(--btn-h-xl);
    padding-inline: var(--btn-px-xl);
    border-radius: var(--btn-r-xl);
    font-size: var(--btn-fs-xl);
}

/* sm - dense row actions, where a full-size button would crowd the table.
   Below 16px, Persian counters start to clot at weight 800, so small
   labels step down to 700 rather than shrinking further. */
.admin-cancel,
.ticket-mini-ghost,
.forum-mod-btn,
.luna-color-apply,
.lbtn-sm,
.lbtn-xs {
    font-weight: 700;
}

.admin-cancel,
.ticket-mini-ghost,
.forum-mod-btn,
.luna-color-apply {
    gap: var(--btn-gap-sm);
    min-height: var(--btn-h-sm);
    padding-inline: var(--btn-px-sm);
    border-radius: var(--btn-r-sm);
    font-size: var(--btn-fs-sm);
}

.admin-cancel .material-symbols-outlined,
.ticket-mini-ghost .material-symbols-outlined,
.forum-mod-btn .material-symbols-outlined {
    font-size: var(--btn-icon-sm);
}

.luna-primary-pill .material-symbols-outlined,
.luna-ip-pill .material-symbols-outlined,
.luna-bottom-cta button .material-symbols-outlined {
    font-size: var(--btn-icon-xl);
}

/* On narrow screens the hero cluster steps down to md rather than
   inventing a separate set of sizes. */
@media (max-width: 900px) {
    .luna-primary-pill,
    .luna-ip-pill,
    .luna-player-pill,
    .luna-bottom-cta button {
        gap: var(--btn-gap-md);
        min-height: var(--btn-h-md);
        padding-inline: var(--btn-px-md);
        border-radius: var(--btn-r-md);
        font-size: var(--btn-fs-md);
    }
}

/* xs - inside a compact cluster: a cart row, a colour popover. */
.dash-gift-toggle,
.luna-color-apply {
    gap: var(--btn-gap-xs);
    min-height: var(--btn-h-xs);
    padding-inline: var(--btn-px-xs);
    border-radius: var(--btn-r-xs);
    font-size: var(--btn-fs-xs);
    font-weight: 700;
}

/* md - the 404 action row reads as one row of equals, so the two secondary
   buttons match the primary beside them rather than taking forum-mod-btn's
   dense sm step. */
.luna-404-alt-btn {
    gap: var(--btn-gap-md);
    min-height: var(--btn-h-md);
    padding-inline: var(--btn-px-md);
    border-radius: var(--btn-r-md);
    font-size: var(--btn-fs-md);
    font-weight: var(--btn-weight);
}

.luna-404-alt-btn .material-symbols-outlined {
    font-size: var(--btn-icon-md);
}

/* The terms table of contents pins its own 58%-white label colour, which on
   the solid active fill measured 2.3:1. The active entry takes the tab
   group's colour so it stays readable. */
body.luna-terms-page .terms-toc .rule-nav-link.rule-nav-active {
    color: var(--tab-on-color);
}

/* -- Shape exceptions ---------------------------------------------------
   Two controls take the system's colours and motion but not its default
   shape, because their container asks for something else. */

/* The rules and terms table of contents is a vertical list you scan down,
   not a row of chips: full width, text on the leading edge, free to wrap. */
.rule-nav-link {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    text-align: start;
    white-space: normal;
    min-height: var(--btn-h-sm);
    padding-block: 6px;
    padding-inline: var(--btn-px-sm);
    border-radius: var(--btn-r-sm);
    font-size: var(--btn-fs-sm);
    line-height: 1.5;
}

/* Editor toolbars pack ~19 tools into one row, so they use the xs step. */
.ticket-tool-button,
.forum-toolbar button {
    width: var(--btn-h-xs);
    height: var(--btn-h-xs);
}

.ticket-tool-button .material-symbols-outlined,
.forum-toolbar button .material-symbols-outlined {
    font-size: var(--btn-icon-xs);
}

/* The bottom CTA's label is a whole sentence, not a word, so on narrow
   screens it steps down to sm AND is allowed to wrap. Without the wrap the
   nowrap label locks the button to ~211px, which overflowed the card (and
   the viewport below 430px) once the old bespoke mobile sizes were removed. */
@media (max-width: 767px) {
    .luna-bottom-cta button {
        gap: var(--btn-gap-sm);
        min-height: var(--btn-h-sm);
        padding-block: 7px;
        padding-inline: var(--btn-px-sm);
        border-radius: var(--btn-r-sm) !important;
        font-size: var(--btn-fs-sm);
        line-height: 1.4;
        white-space: normal;
        text-wrap: balance;
    }
}

/* -- Loose ends ---------------------------------------------------------- */

/* Several families predate the system with a `:hover, :focus-visible` pair.
   The system wins the hover half, which left keyboard focus showing a legacy
   accent the mouse never shows. Focus is signalled by the ring, so the colour
   change belongs to hover only. */
.ticket-mini-ghost:focus-visible,
.ticket-danger-button:focus-visible,
.ticket-tool-button:focus-visible,
.ticket-back-link:focus-visible,
.lb-retry:focus-visible {
    box-shadow: none;
}

/* A class-only disabled state has to actually stop the click. Real
   `<button disabled>` already does; these hooks are for anchors and for
   markup that only sets aria-disabled. Pair them with aria-disabled so the
   state reaches assistive tech — opacity alone conveys nothing.
   Not applied to .lb-tab.is-disabled: those tabs carry a "به زودی" tooltip
   that only appears on hover, so they must keep receiving pointer events. */
.lbtn[aria-disabled="true"],
.lbtn.is-disabled,
.dash-cart-pay-button.is-disabled,
.dash-menu-disabled[aria-disabled="true"] {
    pointer-events: none;
}

/* Buttons that stretch to fill their row hold long Persian labels, so they
   wrap rather than overflow the box that `nowrap` would pin them to. */
.lbtn-block,
.ticket-reply-actions .dash-mini-button,
.ticket-reply-actions .ticket-danger-button,
.ticket-staff-bar .ticket-mini-ghost,
.admin-cancel {
    white-space: normal;
}

/* The dashboard sidebar is deliberately outside the button system. Before it
   existed, a blanket `:where(button, a[href], …) { transition: … !important }`
   overrode these elements' own 180ms declaration, so this restates the timing
   they actually rendered with — keeping the sidebar, and the logout button in
   particular, exactly as it was. */
.dash-side-menu a,
.dash-logout {
    transition:
        transform var(--motion-base) var(--motion-pop),
        border-color var(--motion-base) var(--motion-ease),
        background var(--motion-base) var(--motion-ease),
        background-color var(--motion-base) var(--motion-ease),
        color var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease),
        opacity var(--motion-base) var(--motion-ease),
        filter var(--motion-base) var(--motion-ease);
}

/* -- Final reconciliations ----------------------------------------------- */

/* The stepper pinned its own transition-property, so these buttons jumped
   instead of easing. Give them the shared transition. */
.dash-qty-stepper .dash-qty-btn {
    transition: var(--btn-transition);
}

/* The cyan ring is nearly invisible on the blue CTA panel (2.6:1); white
   reads at 5:1 there and 4.1:1 on the button itself. */
.luna-bottom-cta button:focus-visible {
    outline-color: #ffffff;
}

/* The affirmative variant is only ever used inside the application actions
   row, whose own rule outranks the group, so it is restated at that depth. */
.admin-application-actions .dash-mini-button.is-accept {
    --btn-edge: #10603a;
    --btn-halo: rgba(45, 216, 129, 0.32);
    background: linear-gradient(180deg, #6ff0b0 0%, #14b866 82%);
    color: #04130b;
}

/* The current page is not a target — it should not lift or brighten. */
@media (hover: hover) {
    .lbtn-page.is-current:hover,
    .forum-page-btn.is-current:hover {
        --btn-depth: var(--btn-depth-rest);
        transform: none;
        filter: none;
    }
}

/* =========================================================================
   -- Receipt page (post-payment) --

   /receipt renders the outcome of a gateway callback and stays reopenable
   from the dashboard's transaction history. Screen styles first, then a
   print block scoped to body.luna-receipt-page so save-as-PDF gets a flat
   black-on-white document. Everything here is additive; the page otherwise
   reuses .dash-panel, .luna-dialog-details, .dash-cart-total-box and the
   .lbtn button tokens.
   ========================================================================= */

.receipt-workspace {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 20px;
}

.receipt-body {
    display: grid;
    gap: 16px;
}

.receipt-state {
    display: grid;
    gap: 16px;
}

.receipt-section {
    gap: 16px;
}

/* .dash-panel centers its single child; the receipt is a document, so it
   stacks and stretches instead. */
.dash-panel.receipt-panel {
    display: grid;
    place-items: stretch;
    align-content: start;
    gap: 16px;
    padding: 20px;
}

/* The dialog <dl> pattern, widened into a responsive grid of meta cards. */
.receipt-details {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin: 0;
}

.receipt-staff-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.receipt-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.receipt-status-badge.is-paid {
    border-color: rgba(77, 219, 145, 0.46);
    background: rgba(32, 180, 104, 0.1);
    color: #81e6ad;
}

.receipt-status-badge.is-failed {
    border-color: rgba(255, 91, 76, 0.52);
    background: rgba(255, 42, 13, 0.1);
    color: #ff7a64;
}

.receipt-status-badge.is-pending {
    border-color: rgba(84, 184, 255, 0.46);
    background: rgba(0, 132, 255, 0.1);
    color: #75c7ff;
}

.receipt-staff-note {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
    font-weight: 700;
}

.receipt-lines {
    display: grid;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    overflow: hidden;
}

.receipt-lines-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 800;
}

.receipt-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.receipt-line-info {
    display: grid;
    justify-items: start;
    gap: 8px;
    min-width: 0;
}

.receipt-line-name {
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.receipt-line-price {
    flex: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
}

.receipt-line-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.receipt-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.68);
    font-size: 11.5px;
    font-weight: 800;
}

.receipt-chip .material-symbols-outlined {
    font-size: 14px;
    line-height: 1;
}

.receipt-chip.is-gift {
    border-color: rgba(255, 170, 64, 0.4);
    background: rgba(255, 170, 64, 0.08);
    color: #ffca7a;
}

.receipt-chip.is-upgrade {
    border-color: rgba(0, 142, 255, 0.4);
    background: rgba(0, 142, 255, 0.08);
    color: #6cc4ff;
}

.receipt-chip.is-delivery[data-status="active"] {
    border-color: rgba(77, 219, 145, 0.4);
    background: rgba(32, 180, 104, 0.08);
    color: #81e6ad;
}

/* The money box sits under the price column (inline-end in RTL), like the
   totals strip at the foot of a paper invoice. */
.receipt-totals {
    width: min(100%, 380px);
    justify-self: end;
}

.receipt-discount {
    color: #7fe0a8;
}

.receipt-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* -- Staff team page ------------------------------------------------------ */
.luna-staff-title strong {
    color: #54b8ff;
    text-shadow: 0 0 45px #8bd4ff, 0 0 62px var(--luna-blue);
}

.luna-staff-section {
    margin-top: 58px;
}

.luna-staff-section:first-child {
    margin-top: 10px;
}

.luna-staff-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.luna-staff-heading::before {
    content: "";
    width: 7px;
    height: 30px;
    border-radius: 4px;
    background: var(--staff-accent, var(--luna-blue));
    box-shadow: 0 0 18px var(--staff-accent, var(--luna-blue));
}

.luna-staff-heading h2 {
    font-size: 32px;
    line-height: 1.2;
    color: #fff;
}

.luna-staff-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 18px;
}

.luna-staff-card {
    margin: 0;
    width: 170px;
    text-align: center;
}

.luna-staff-card img {
    width: auto;
    height: 200px;
    margin-inline: auto;
    filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.5));
    transition: transform 0.25s ease, filter 0.25s ease;
}

@media (hover: hover) {
    .luna-staff-card:hover img {
        transform: translateY(-10px);
        filter:
            drop-shadow(0 30px 32px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 26px rgba(84, 184, 255, 0.4));
    }
}

.luna-staff-card figcaption {
    margin-top: 16px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.luna-staff-empty {
    padding: 70px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.luna-staff-empty .material-symbols-outlined {
    font-size: 54px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.35);
}

.luna-staff-join {
    margin-top: 85px;
    padding: 46px 32px;
    text-align: center;
}

.luna-staff-join h2 {
    font-size: 30px;
    color: #fff;
    margin-bottom: 10px;
}

.luna-staff-join p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 26px;
}

@media (max-width: 640px) {
    .luna-staff-grid {
        gap: 32px 12px;
    }

    .luna-staff-card {
        width: 130px;
    }

    .luna-staff-card img {
        height: 156px;
    }

    .luna-staff-card figcaption {
        font-size: 15px;
    }

    .luna-staff-heading h2 {
        font-size: 26px;
    }
}

/* -- Print: flatten to a black-on-white document ------------------------- */
@media print {
    /* :root sets color-scheme: dark, which makes Chrome paint the printed
       canvas dark; flip it back to light for this page only. */
    html:has(> body.luna-receipt-page) {
        color-scheme: light !important;
        background: #fff !important;
    }

    body.luna-receipt-page {
        min-height: 0;
        color-scheme: light !important;
        background: #fff !important;
    }

    /* The fixed dark overlays would reprint as a black frame on every page. */
    body.luna-receipt-page::before,
    body.luna-receipt-page::after {
        display: none !important;
    }

    body.luna-receipt-page nav.fixed,
    body.luna-receipt-page .dash-sidebar,
    body.luna-receipt-page .luna-footer-mark,
    body.luna-receipt-page .receipt-no-print {
        display: none !important;
    }

    /* Kill the dark theme wholesale: gradients, glows, shadows and any
       in-flight motion.js inline opacity/transform. */
    body.luna-receipt-page * {
        background: transparent !important;
        background-image: none !important;
        color: #000 !important;
        text-shadow: none !important;
        box-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    body.luna-receipt-page .dash-page {
        display: block;
        min-height: 0;
        padding: 0;
    }

    body.luna-receipt-page .dash-shell {
        display: block;
        width: 100%;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
    }

    body.luna-receipt-page .dash-main {
        min-height: 0;
    }

    /* Structural borders were translucent white; ink them in gray so the
       document keeps its ruling on paper. */
    body.luna-receipt-page .dash-panel,
    body.luna-receipt-page .luna-message,
    body.luna-receipt-page .luna-dialog-details > div,
    body.luna-receipt-page .receipt-lines,
    body.luna-receipt-page .receipt-lines-head,
    body.luna-receipt-page .receipt-line,
    body.luna-receipt-page .receipt-chip,
    body.luna-receipt-page .receipt-status-badge,
    body.luna-receipt-page .dash-cart-total-box,
    body.luna-receipt-page .dash-cart-total-grand {
        border-color: #b9b9b9 !important;
    }
}
