:root {
    color-scheme: dark;
    --bg: #030303;
    --panel: rgba(10, 10, 12, 0.86);
    --panel-soft: rgba(255, 255, 255, 0.055);
    --line: rgba(236, 186, 95, 0.34);
    --line-soft: rgba(255, 255, 255, 0.11);
    --gold: #f0c56d;
    --gold-2: #b87c25;
    --text: #f7f2e9;
    --muted: #b8b0a6;
    --purple: #b845ff;
    --cyan: #22e7d2;
    --pink: #ff4fb5;
    --orange: #ff9844;
}

* {
    box-sizing: border-box;
}

html {
    background: #000;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: #020202;
    color: var(--text);
    font-family: "Kanit", "Segoe UI", Tahoma, sans-serif;
}

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

svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.app-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px 104px;
    overflow: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    min-height: 104px;
    padding: 4px 10px 0;
    position: relative;
    z-index: 3;
    margin: 0 -16px;
    padding-inline: 26px;
    background: transparent;
}

.desktop-nav {
    display: none;
}

.brand img {
    display: block;
    width: clamp(120px, 25vw, 330px);
    height: auto;
    mix-blend-mode: screen;
    margin: 0px 0px 0px -10px;
}

.icon-button {
    position: relative;
    flex: 0 0 auto;
    z-index: 4;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-profile-menu {
    position: relative;
    z-index: 6;
}

.topbar-profile-menu summary {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(240, 197, 109, 0.72);
    border-radius: 50%;
    background: #15110d;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    list-style: none;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.topbar-profile-menu summary::-webkit-details-marker {
    display: none;
}

.topbar-profile-menu summary:hover,
.topbar-profile-menu summary:focus-visible,
.topbar-profile-menu[open] summary {
    border-color: #f8d98e;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(240, 197, 109, 0.2);
    outline: none;
}

.topbar-profile-menu summary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 190px;
    padding: 9px;
    display: none;
    gap: 3px;
    border: 1px solid rgba(240, 197, 109, 0.26);
    border-radius: 14px;
    background: rgba(12, 10, 9, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(16px);
}

.topbar-profile-menu[open] .profile-dropdown {
    display: grid;
}

.profile-dropdown strong {
    padding: 9px 10px 8px;
    overflow: hidden;
    color: #f5d28b;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown a {
    min-height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    border-radius: 9px;
    color: #e7dfd5;
    font-size: 0.84rem;
    font-weight: 600;
}

.profile-dropdown a:hover,
.profile-dropdown a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.profile-dropdown .profile-logout {
    color: #ff9b9b;
}

.topbar-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(240, 197, 109, 0.35);
    background: rgba(0, 0, 0, 0.4);
}

.has-dot::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff3154;
    box-shadow: 0 0 0 3px rgba(255, 49, 84, 0.16);
}

.hero {
    position: relative;
    min-height: 200px;
    margin: -60px -20px 15px;
    padding: 15px 15px 10px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.16) 82%, #020202), url(/images/hero-banner_1.jpg?auto=format&fit=crop&w=1300&q=80) right bottom / 130% auto no-repeat, linear-gradient(135deg, #061125 0%, #020305 48%, #080300 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 26% -10% 10% 36%;
    opacity: 0.2;
    background:
        linear-gradient(180deg, transparent 0 54%, rgba(255, 202, 114, 0.55) 54% 56%, transparent 58%),
        repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.26) 19px 21px, transparent 22px 44px);
    transform: skewY(-6deg);
    filter: blur(0.2px);
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8% 18px 42%;
    height: 70px;
    background: radial-gradient(ellipse at center, rgba(255, 184, 86, 0.3), transparent 62%);
    filter: blur(18px);
    z-index: -1;
}

.eyebrow {
    color: #f4d6a1;
    font-size: 0.98rem;
    margin: 0 0 12px;
}

.hero h1 {
    max-width: 680px;
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 2.35vw, 3.1rem);
    line-height: 1.24;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.86), 0 14px 28px rgba(0, 0, 0, 0.42);
}

.hero .accent {
    color: #fff;
    font-style: italic;
}

.hero .accent strong {
    color: #9b38ff;
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.premium-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    gap: 12px;
    min-height: 214px;
    margin-bottom: 32px;
    padding: 26px 20px;
    border: 1px solid rgba(240, 197, 109, 0.78);
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.93) 0%, rgba(7, 4, 1, 0.78) 43%, rgba(8, 4, 1, 0.18) 74%, rgba(8, 4, 1, 0.05)),
        url("/images/banner-premium-desktop.png") right center / 60% auto no-repeat;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 0 32px rgba(240, 197, 109, 0.12);
}

.premium-card svg {
    color: var(--gold);
    width: 28px;
    height: 28px;
    margin-bottom: 0;
}

.premium-title-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.premium-card h2,
.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(12px, 3.9vw, 2rem);
    line-height: 1.32;
    font-weight: 600;
}

.premium-card p {
    margin: 8px 0 16px;
    color: #e7d4b7;
}

.gold-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.92rem;
}

.gold-button {
    color: #1b1002;
    background: linear-gradient(135deg, #f9d581, #b97b2a);
    box-shadow: 0 8px 20px rgba(213, 154, 64, 0.24);
}

.ghost-button {
    color: var(--gold);
    border: 1px solid rgba(240, 197, 109, 0.38);
    background: rgba(255, 255, 255, 0.04);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 30px 0 14px;
}

.see-all {
    color: #d9c6a9;
    white-space: nowrap;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    text-align: center;
}

.home-actions.guest-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
}

.quick-grid::-webkit-scrollbar,
.card-row::-webkit-scrollbar {
    display: none;
}

.quick-card {
    min-height: 100px;
    padding: 10px 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.12), transparent 42%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.quick-card svg {
    width: 42px;
    height: 42px;
    margin-bottom: 5px;
}

.quick-card.people svg {
    color: var(--purple);
}

.quick-card.place svg {
    color: var(--pink);
}

.quick-card.event svg {
    color: var(--orange);
}

.quick-card.feed svg {
    color: var(--cyan);
}

.quick-card strong {
    display: block;
    font-size: 10px;
    margin-bottom: 3px;
    line-height: 1.2;
}

.quick-card span,
.muted {
    color: var(--muted);
}

.quick-card span {
    display: block;
    font-size: 8px;
    line-height: 1.22;
}

.card-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 30px) / 4);
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 10px;
    scroll-snap-type: x mandatory;
}

.place-row,
.event-row {
    grid-auto-columns: calc((100% - 10px) / 2);
}

.media-card,
.event-card,
.person-card,
.package-card,
.chat-preview {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.media-card,
.event-card {
    min-height: 170px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    scroll-snap-align: start;
    background-image: linear-gradient(180deg, rgb(255 255 255 / 0%), rgb(0 0 0)), var(--card-image);
    background-size: cover;
    background-position: center;
}

a.media-card {
    color: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.media-card:hover,
a.media-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(240, 197, 109, 0.55);
    outline: none;
}

.badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
    padding: 5px 8px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #d72dff, #ff3149);
    box-shadow: 0 8px 22px rgba(204, 51, 255, 0.26);
}

.media-card h3,
.event-card h3,
.person-card h3 {
    margin: 10px 0 4px;
    font-size: 14px;
    line-height: 1.22;
    height: 22px;
}

.meta-line {
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: #d6d2cc;
    font-size: 0.78rem;
}

.star {
    color: #ffc84f;
}

.date-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 48px;
    min-height: 52px;
    display: grid;
    place-items: center;
    padding: 7px 4px;
    border-radius: 12px;
    background: rgba(2, 3, 8, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    line-height: 1.05;
}

.date-chip strong {
    display: block;
    font-size: 1.28rem;
}

.detail-date {
    position: static;
    flex: 0 0 auto;
}

.stack {
    display: grid;
    gap: 14px;
}

.page-title {
    margin: 14px 0 20px;
}

.lead {
    max-width: 680px;
    margin: 10px 0 0;
    color: #cfc4b8;
    line-height: 1.65;
}

.filter-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.filter-bar a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #d9d2c8;
    background: rgba(255, 255, 255, 0.035);
}

.filter-bar .selected {
    color: #fff1cd;
    border-color: rgba(240, 197, 109, 0.85);
    box-shadow: 0 0 0 1px rgba(240, 197, 109, 0.12), 0 10px 24px rgba(240, 197, 109, 0.13);
}

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

.person-card {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-color: rgba(240, 197, 109, 0.34);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.92)),
        var(--person-image, url("/images/banner-premium-desktop.png")) center / cover no-repeat;
}

.person-card:hover {
    border-color: rgba(240, 197, 109, 0.62);
    transform: translateY(-1px);
}

.person-card.large {
    grid-column: auto;
}

.plan {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffe5a2;
    font-weight: 800;
    font-size: 0.72rem;
    border: 1px solid rgba(240, 197, 109, 0.52);
    background: rgba(0, 0, 0, 0.54);
}

.online {
    position: absolute;
    top: 14px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 0;
}

.online::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #47ee68;
    box-shadow: 0 0 14px rgba(71, 238, 104, 0.8);
}

.online.is-offline::before {
    background: #ef4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.7);
}

.profile-presence-text.is-online {
    color: #8ff5a2;
}

.profile-presence-text.is-offline {
    color: #ff8e8e;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-list span {
    padding: 6px 9px;
    border-radius: 8px;
    color: #f3e9dd;
    font-size: 0.78rem;
    background: rgba(0, 0, 0, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.package-grid {
    display: grid;
    gap: 14px;
}

.package-card {
    padding: 18px;
    border-color: rgba(240, 197, 109, 0.32);
}

.package-card.featured {
    background:
        linear-gradient(135deg, rgba(240, 197, 109, 0.18), rgba(255, 255, 255, 0.04)),
        #080808;
    box-shadow: 0 16px 34px rgba(240, 197, 109, 0.12);
}

.register-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 18px;
    align-items: stretch;
}

.register-intro,
.register-form-card {
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.register-intro {
    min-height: 620px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.9)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.04)),
        url("/images/hero-banner_1.jpg") right 36% / cover no-repeat,
        #050505;
}

.register-intro h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(2rem, 8vw, 3.7rem);
    line-height: 1;
}

.register-intro p {
    max-width: 560px;
    margin: 0;
    color: #e1d8ce;
    line-height: 1.65;
}

.register-note {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    color: #f2dfaa;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.52);
    border: 1px solid rgba(240, 197, 109, 0.22);
}

.register-form-card {
    padding: 22px;
}

.form-head {
    margin-bottom: 16px;
}

.form-head h2 {
    margin: 0;
    color: #fff;
    font-size: 1.45rem;
}

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

.form-grid label {
    display: grid;
    gap: 7px;
    color: #d7cec4;
    font-size: 0.88rem;
    font-weight: 700;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.form-grid input,
.form-grid select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.065);
    outline: none;
}

.form-grid input:focus,
.form-grid select:focus {
    border-color: rgba(240, 197, 109, 0.82);
    box-shadow: 0 0 0 3px rgba(240, 197, 109, 0.12);
}

.form-grid option {
    color: #111;
}

.form-alert {
    margin-bottom: 14px;
    padding: 12px 13px;
    display: grid;
    gap: 4px;
    border-radius: 12px;
    color: #ffd2d2;
    background: rgba(177, 38, 38, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.32);
    font-weight: 700;
}

.form-alert.success {
    color: #b9f7c7;
    background: rgba(22, 163, 74, 0.16);
    border-color: rgba(74, 222, 128, 0.32);
}

.form-alert a {
    color: #fff;
    text-decoration: underline;
}

.register-submit {
    width: 100%;
    margin-top: 16px;
    border: 0;
}

.login-shell-public {
    max-width: 780px;
    margin: 20px auto 0;
}

.login-intro {
    min-height: 470px;
    justify-content: center;
}

.login-intro .register-note a,
.login-register-link a {
    color: var(--gold);
    text-decoration: underline;
}

.login-form-public {
    align-self: center;
}

.login-form-public > label {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    color: #dfd5c9;
}

.login-form-public input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: #fff;
    font: inherit;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;
    outline: none;
    background: rgba(255, 255, 255, 0.055);
}

.login-form-public input:focus {
    border-color: rgba(240, 197, 109, 0.65);
    box-shadow: 0 0 0 3px rgba(240, 197, 109, 0.08);
}

.login-register-link {
    margin: 14px 0 0;
    color: var(--muted);
    text-align: center;
}

.price {
    margin: 12px 0;
    color: #fff;
    font-size: 1.9rem;
    font-weight: 600;
}

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

.chat-preview {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chat-page-title {
    margin-bottom: 14px;
}

.chat-page-title.is-chat-open {
    display: none;
}

body.chat-page {
    height: 100dvh;
    overflow: hidden;
}

body.chat-page .app-shell {
    height: 100dvh;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.chat-page .topbar,
body.chat-page .chat-page-title {
    flex: 0 0 auto;
}

body.chat-page main {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.chat-page .chat-shell {
    min-height: 0;
    flex: 1 1 auto;
}

body.chat-page .chat-sidebar,
body.chat-page .chat-thread {
    min-height: 0;
    height: 100%;
    max-height: none;
}

body.chat-page .chat-messages {
    min-height: 0;
    max-height: none;
}

body.chat-page .site-footer {
    display: none;
}

.chat-demo-note {
    color: #817a72;
    font-size: 0.82em;
}

.chat-shell {
    display: grid;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.4fr);
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.chat-sidebar {
    min-width: 0;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.025);
}

.chat-sidebar-head,
.chat-thread-head {
    min-height: 72px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.chat-sidebar-head {
    justify-content: space-between;
}

.chat-sidebar-head h2 {
    margin: 0;
    font-size: 1.08rem;
}

.chat-sidebar-head a,
.chat-thread-head a {
    color: var(--gold);
    font-size: 0.78rem;
}

.chat-sidebar .chat-preview {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background: transparent;
}

.chat-sidebar .chat-preview:hover,
.chat-sidebar .chat-preview.is-selected {
    background: rgba(240, 197, 109, 0.09);
}

.chat-sidebar .chat-preview.is-selected {
    box-shadow: inset 3px 0 0 var(--gold);
}

.chat-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: var(--chat-avatar) center / cover no-repeat, #151515;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.chat-preview-body,
.chat-preview-meta,
.chat-thread-head > span:not(.chat-avatar) {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.chat-preview-body .muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
}

.chat-preview-meta {
    justify-items: end;
    font-size: 0.7rem;
}

.chat-unread {
    min-width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    color: #090704;
    background: var(--gold);
    font-weight: 700;
}

.chat-thread {
    min-width: 0;
    min-height: 610px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background:
        radial-gradient(circle at 100% 0, rgba(184, 69, 255, 0.09), transparent 40%),
        #070707;
}

.chat-thread-head strong,
.chat-thread-head .muted {
    display: block;
}

.chat-thread-head .muted {
    font-size: 0.76rem;
}

.chat-thread-head a {
    margin-left: auto;
}

.chat-thread-head .chat-mobile-back {
    display: none;
    margin-left: 0;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
}

.chat-messages {
    max-height: 470px;
    padding: 20px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.chat-bubble-row {
    display: flex;
    margin: 8px 0;
}

.chat-bubble-row.is-mine {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: min(78%, 420px);
    padding: 10px 12px 7px;
    border-radius: 17px 17px 17px 5px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-bubble-row.is-mine .chat-bubble {
    color: #171006;
    border-radius: 17px 17px 5px 17px;
    border-color: rgba(240, 197, 109, 0.7);
    background: linear-gradient(135deg, #f7d58c, #c18a35);
}

.chat-bubble p {
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.48;
}

.chat-bubble > span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.65rem;
    text-align: right;
}

.chat-bubble-row.is-mine .chat-bubble > span {
    color: rgba(23, 16, 6, 0.62);
}

.chat-empty {
    min-height: 100%;
    display: grid;
    place-content: center;
    gap: 4px;
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.chat-empty.compact {
    min-height: 140px;
    font-size: 0.85rem;
}

.chat-welcome-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--gold);
    background: rgba(240, 197, 109, 0.1);
    border: 1px solid rgba(240, 197, 109, 0.25);
}

.chat-welcome-icon svg {
    width: 30px;
    height: 30px;
}

.chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.45);
}

.chat-composer textarea {
    width: 100%;
    min-height: 44px;
    max-height: 120px;
    resize: vertical;
    padding: 10px 13px;
    color: var(--text);
    font: inherit;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.055);
}

.chat-composer textarea:focus {
    border-color: rgba(240, 197, 109, 0.65);
    box-shadow: 0 0 0 3px rgba(240, 197, 109, 0.08);
}

.chat-composer .gold-button {
    min-width: 70px;
    border: 0;
    cursor: pointer;
}

.chat-error {
    grid-column: 1 / -1;
    margin: 0;
}

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

.category-tile {
    min-height: 82px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0, rgba(184, 69, 255, 0.25), transparent 42%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.category-tile span,
.category-tile strong {
    display: block;
}

.category-tile span {
    color: #f5d28b;
    font-size: 0.78rem;
    line-height: 1.25;
}

.category-tile strong {
    margin-top: 5px;
    font-size: 0.88rem;
    line-height: 1.25;
}

.directory-grid,
.chat-package-grid {
    display: grid;
    gap: 14px;
}

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

.place-list-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.place-list-cover {
    display: block;
    width: 100%;
    height: 132px;
    object-fit: cover;
    background: #111;
}

.event-list-cover {
    position: relative;
    display: block;
}

.event-list-date {
    top: 10px;
    left: 10px;
    width: 44px;
    min-height: 48px;
    padding: 6px 4px;
    font-size: 0.72rem;
}

.event-list-date strong {
    font-size: 1.08rem;
}

.place-list-card strong {
    display: block;
    min-height: 26px;
    padding: 10px;
    font-size: 0.92rem;
    line-height: 1.35;
}

.directory-card,
.event-detail-card,
.feed-card,
.composer-card,
.chat-package {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.place-detail {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.profile-detail {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
    margin-top: 30px;
}

.profile-hero {
    position: relative;
    min-height: 390px;
    padding: 16px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.88)),
        var(--person-image, url("/images/banner-premium-desktop.png")) center / cover no-repeat;
}

.profile-hero-status {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-hero-status .plan,
.profile-hero-status .online {
    position: static;
}

.profile-hero-status .online {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(10px);
}

.profile-hero .back-link {
    z-index: 2;
}

.profile-hero h1 {
    margin: 0 0 6px;
    font-size: clamp(1.7rem, 6vw, 2.8rem);
    line-height: 1.12;
}

.profile-hero p {
    margin: 0;
    color: #e2d8cc;
}

.profile-detail-body {
    padding: 18px;
}

.profile-detail-body>p {
    margin-top: 0;
    color: #ded6cc;
    line-height: 1.65;
}

.place-detail-hero {
    position: relative;
    min-height: clamp(300px, 50vw, 520px);
    padding: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

.place-gallery-main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.place-gallery-main {
    object-fit: cover;
    opacity: 1;
    transform: scale(1);
    transition: opacity .2s ease, transform .35s ease;
}

.place-gallery-main.is-changing {
    opacity: .35;
    transform: scale(1.015);
}

.place-detail-hero .back-link,
.place-detail-hero .badge {
    z-index: 2;
}

.place-detail-hero .badge {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
}

.place-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px;
    scrollbar-width: thin;
    background: #15110f;
}

.place-gallery-thumb {
    width: 96px;
    height: 72px;
    flex: 0 0 96px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #241d19;
    opacity: .62;
    cursor: pointer;
    transition: opacity .15s ease, border-color .15s ease, transform .15s ease;
}

.place-gallery-thumb:hover,
.place-gallery-thumb.is-active {
    opacity: 1;
    border-color: #e7bd57;
    transform: translateY(-2px);
}

.place-gallery-thumb:focus-visible {
    outline: 3px solid rgba(231, 189, 87, .45);
    outline-offset: 2px;
}

.place-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place-detail-body {
    padding: 18px;
}

.place-detail-body h1 {
    margin: 0;
    font-size: clamp(1.45rem, 5vw, 2.4rem);
    line-height: 1.2;
}

.detail-content {
    color: #ded6cc;
    line-height: 1.75;
}

.detail-content p {
    margin: 0 0 14px;
}

.detail-content h2,
.detail-content h3 {
    margin: 20px 0 10px;
    color: #fff;
    line-height: 1.25;
}

.detail-content ul,
.detail-content ol {
    padding-left: 22px;
}

.detail-content a {
    color: #f1c75f;
    font-weight: 700;
}

.detail-content figure {
    margin: 16px 0;
}

.detail-content img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-content figcaption {
    margin-top: 8px;
    color: #aa9c8d;
    font-size: 0.88rem;
}

.back-link {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.map-button {
    margin-top: 14px;
}

.directory-cover,
.event-cover,
.feed-image {
    min-height: 190px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.58)), var(--card-image) center / cover no-repeat;
}

.directory-cover,
.event-cover {
    position: relative;
    padding: 12px;
}

.directory-body,
.event-detail-body,
.feed-card {
    padding: 16px;
}

.title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.title-row h3,
.event-detail-body h2,
.feed-card p,
.chat-package h2 {
    margin-top: 0;
}

.directory-body p,
.event-detail-body p,
.feed-card p,
.chat-package p,
.person-card p {
    color: #ded6cc;
    line-height: 1.58;
}

.info-list {
    display: grid;
    gap: 7px;
    margin: 12px 0;
    color: #c9beb2;
    font-size: 0.88rem;
}

.event-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.event-cover {
    min-height: 100%;
}

.composer-card,
.feed-author,
.friend-strip,
.mini-profile,
.profile-actions,
.feed-actions {
    display: flex;
    align-items: center;
}

.composer-card {
    gap: 12px;
    padding: 14px;
    margin-bottom: 14px;
}

.composer-card div {
    min-width: 0;
    flex: 1;
}

.feed-author {
    gap: 12px;
    margin-bottom: 12px;
}

.feed-image {
    min-height: 230px;
    margin: 14px -16px 0;
}

.feed-actions {
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    color: #cfc4b8;
    font-size: 0.82rem;
}

.plan-inline {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #2a1600;
    background: #f0c56d;
    font-size: 0.7rem;
}

.friend-strip {
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.mini-profile {
    flex: 0 0 160px;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
}

.mini-profile small {
    display: block;
    color: var(--muted);
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
}

.profile-actions .chat-cta {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 18px;
}

.heart-button {
    appearance: none;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    color: #ff1744;
    border: 1px solid rgba(255, 23, 68, 0.48);
    background: rgba(255, 23, 68, 0.08);
    box-shadow: 0 10px 24px rgba(255, 23, 68, 0.13);
    cursor: pointer;
}

.heart-button svg {
    width: 21px;
    height: 21px;
}

.heart-button.is-active {
    color: #ff1744;
    border-color: rgba(255, 23, 68, 0.9);
    background: rgba(255, 23, 68, 0.16);
    box-shadow: 0 0 0 1px rgba(255, 23, 68, 0.2), 0 12px 28px rgba(255, 23, 68, 0.24);
}

.heart-button.is-active svg {
    fill: currentColor;
}

.feature-list {
    margin: 12px 0 16px;
    padding-left: 18px;
    color: #ddd2c5;
    line-height: 1.7;
}

.chat-package {
    padding: 18px;
}

.chat-package.basic {
    border-color: rgba(34, 231, 210, 0.4);
    box-shadow: 0 16px 32px rgba(34, 231, 210, 0.08);
}

.chat-package.premium {
    border-color: rgba(184, 69, 255, 0.55);
    background:
        radial-gradient(circle at 100% 0, rgba(184, 69, 255, 0.24), transparent 46%),
        var(--panel);
}

.chat-package.elite {
    border-color: rgba(240, 197, 109, 0.72);
    background:
        radial-gradient(circle at 100% 0, rgba(240, 197, 109, 0.26), transparent 45%),
        radial-gradient(circle at 0 100%, rgba(255, 79, 181, 0.18), transparent 38%),
        var(--panel);
    box-shadow: 0 18px 38px rgba(240, 197, 109, 0.12);
}

.avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(240, 197, 109, 0.7), rgba(154, 57, 255, 0.7)),
        url("/images/logo-enzone.jpg") center / cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer {
    margin: 34px -16px -104px;
    padding: 24px 16px 128px;
    display: grid;
    gap: 4px;
    color: #b7afa3;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer span:first-child {
    color: #f5d28b;
    font-weight: 900;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 82px;
    padding: 9px 8px max(9px, env(safe-area-inset-bottom));
    background: rgba(8, 9, 12, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.nav-item {
    display: grid;
    place-items: center;
    gap: 4px;
    color: #beb8b1;
    font-size: 0.78rem;
    text-align: center;
}

.nav-item svg {
    width: 28px;
    height: 28px;
}

.nav-item.is-active {
    color: #d64bff;
}

.nav-item.is-active svg {
    filter: drop-shadow(0 0 12px rgba(214, 75, 255, 0.55));
}

@media (min-width: 700px) {
    .app-shell {
        padding-inline: 28px;
    }

    .topbar {
        margin-inline: -28px;
        padding-inline: 56px;
    }

    .hero {
        margin-inline: -28px;
        padding-inline: 28px;
        min-height: 380px;
        border-radius: 0 0 34px 34px;
    }

    .premium-card {
        min-height: 210px;
        padding: 34px 28px;
    }

    .card-row {
        grid-auto-columns: minmax(220px, 1fr);
    }

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

    .register-shell {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    }

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

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

}

@media (max-width: 560px) {
    .register-shell,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .register-intro {
        min-height: 320px;
        padding: 18px;
        background-position: center, center, right 44%, center;
    }

    .event-detail-card {
        grid-template-columns: 1fr;
    }

    .event-cover {
        min-height: 210px;
    }

    .composer-card,
    .feed-actions,
    .feed-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .composer-card .gold-button {
        width: 100%;
    }

    .chat-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .chat-shell:not(.has-selected-chat) .chat-thread {
        display: none;
    }

    .chat-shell.has-selected-chat .chat-sidebar {
        display: none;
    }

    .chat-thread-head .chat-mobile-back {
        display: inline-flex;
    }

    .chat-sidebar {
        max-height: 260px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .chat-thread {
        min-height: 540px;
    }

    .chat-messages {
        max-height: 400px;
        padding-inline: 12px;
    }

    .chat-bubble {
        max-width: 88%;
    }

    .chat-demo-note {
        display: block;
        margin-top: 3px;
    }
}

@media (max-width: 820px) {
    .register-shell,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .register-intro {
        min-height: 320px;
    }
    
    .profile-detail{
        margin-top: 10px;
    }
}

@media (max-width: 560px) {
    .register-intro {
        min-height: 270px;
    }
}

@media (min-width: 980px) {
    .app-shell {
        border-inline: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 70px rgba(0, 0, 0, 0.7);
    }
}

@media (min-width: 1024px) {
    .app-shell {
        padding: 0 28px;
        overflow: clip;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        min-height: 82px;
        margin: 0 -28px;
        padding: 0 34px;
        display: grid;
        grid-template-columns: 178px minmax(0, 1fr) auto;
        gap: 20px;
        border-bottom: 1px solid rgba(240, 197, 109, 0.18);
        background: rgba(3, 3, 4, 0.88);
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(18px);
    }

    .brand {
        display: inline-flex;
        align-items: center;
    }

    .brand img {
        width: 170px;
        margin: 0;
    }

    .desktop-nav {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .desktop-nav-link {
        position: relative;
        min-height: 42px;
        padding: 0 clamp(8px, 1vw, 15px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        color: #c7c0b7;
        font-size: clamp(0.73rem, 0.86vw, 0.88rem);
        font-weight: 600;
        white-space: nowrap;
        transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }

    .desktop-nav-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.075);
        transform: translateY(-1px);
    }

    .desktop-nav-link.is-active {
        color: #160d02;
        background: linear-gradient(135deg, #f7d991, #c88d38);
        box-shadow: 0 8px 22px rgba(200, 141, 56, 0.22);
    }

    .topbar-account {
        min-height: 42px;
        padding-inline: 17px;
        background: rgba(240, 197, 109, 0.08);
    }

    .bottom-nav {
        display: none;
    }

    .hero {
        min-height: 460px;
        margin: 20px 0 24px;
        padding: 42px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 28px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 3.2vw, 3.35rem);
    }

    .site-footer {
        margin: 48px -28px 0;
        padding: 30px 28px;
    }

    body.chat-page {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    body.chat-page .app-shell {
        height: auto;
        min-height: 100vh;
        padding-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .topbar {
        grid-template-columns: 205px minmax(0, 1fr) auto;
        padding-inline: 42px;
    }

    .brand img {
        width: 190px;
    }

    .desktop-nav {
        gap: 7px;
    }

    .people-grid,
    .package-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (min-width: 1024px) {
    .app-shell main > section + section {
        margin-top: 52px;
    }

    .section-head {
        margin: 0 0 22px;
        gap: 24px;
    }

    .quick-grid {
        gap: 22px;
        padding-bottom: 8px;
    }

    .quick-card {
        min-height: 142px;
        padding: 24px 18px;
        border-radius: 20px;
    }

    .quick-card strong {
        margin-bottom: 7px;
        font-size: 0.98rem;
    }

    .quick-card span {
        font-size: 0.78rem;
    }

    .category-grid {
        gap: 20px;
    }

    .category-tile {
        min-height: 130px;
        padding: 22px;
    }

    .card-row,
    .place-row,
    .event-row {
        grid-auto-columns: calc((100% - 66px) / 4);
        gap: 22px;
        padding: 4px 2px 18px;
    }

    .media-card,
    .event-card {
        min-height: 230px;
        padding: 14px;
        border-radius: 20px;
    }

    .people-grid,
    .package-grid,
    .directory-grid,
    .chat-package-grid {
        gap: 22px;
    }

    .place-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .place-list-cover {
        height: 210px;
        border-radius: 0px;
    }

    .place-list-card strong {
        min-height: 58px;
        padding: 16px 18px;
        font-size: 1rem;
    }

    .stack,
    .chat-list {
        gap: 20px;
    }

    .register-shell {
        gap: 30px;
    }

    .form-grid {
        column-gap: 22px;
        row-gap: 18px;
    }

    .event-detail-card {
        gap: 28px;
    }

    .filter-bar {
        gap: 12px;
        margin-bottom: 8px;
        padding-bottom: 14px;
    }
}
/* Cosmetic shop: direct THB purchases only. */
.validity-pill,.expiry-pill{width:max-content;max-width:100%;display:inline-flex;padding:5px 9px;border-radius:999px;color:#ffe3a7;background:rgba(240,197,109,.13);font-size:.7rem}.expiry-pill.expired{color:#ffaaaa;background:rgba(255,70,70,.14)}.expiry-pill.permanent{color:#9af5c0;background:rgba(32,190,104,.14)}.shop-card.is-expired .shop-preview{filter:grayscale(1);opacity:.55}
.chat-sticker-picker{position:relative}.chat-sticker-picker summary,.chat-shop-link{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line-soft);border-radius:50%;font-size:1.35rem;cursor:pointer;list-style:none}.chat-sticker-picker summary::-webkit-details-marker{display:none}.chat-sticker-picker>div{position:absolute;left:0;bottom:52px;width:250px;padding:10px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border:1px solid var(--line);border-radius:15px;background:#111;box-shadow:0 18px 45px #000}.chat-sticker-picker button,.chat-sticker-art{min-height:70px;padding:8px;border:0;border-radius:14px;color:#fff;background:var(--sticker-asset,linear-gradient(135deg,#ff4fb5,#ff9844));background-size:cover;background-position:center;font:600 .68rem Kanit;cursor:pointer}.chat-bubble.is-sticker{padding:0;background:transparent!important}.chat-sticker-art{min-width:130px;min-height:120px;display:grid;place-items:center;font-size:.8rem}.chat-bubble.is-sticker>span:last-child{display:block;padding-top:4px}.chat-composer{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}.chat-composer textarea:required:invalid{box-shadow:none}
.shop-page,.inventory-page,.checkout-page{display:grid;gap:34px;padding-bottom:30px}.shop-hero{min-height:240px;padding:36px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;border:1px solid rgba(240,197,109,.24);border-radius:26px;background:radial-gradient(circle at 80% 20%,rgba(184,69,255,.25),transparent 35%),linear-gradient(135deg,#17100d,#08090f 62%,#101e21);overflow:hidden}.shop-hero h1{max-width:700px;margin:0 0 10px;font-size:clamp(2rem,5vw,4.2rem);line-height:1}.shop-hero p:not(.eyebrow){max-width:660px;color:var(--muted)}.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.shop-card{overflow:hidden;border:1px solid var(--line-soft);border-radius:20px;background:var(--panel);transition:transform .2s,border-color .2s}.shop-card:hover{transform:translateY(-3px);border-color:var(--line)}.shop-preview{position:relative;min-height:180px;display:grid;place-items:center;background-image:var(--shop-asset,linear-gradient(135deg,#f0c56d,#b845ff));background-size:cover;background-position:center}.shop-preview::after{content:"";position:absolute;inset:18%;border-radius:50%;background:#171217;box-shadow:0 0 0 9px #eee}.shop-preview-frame::after{box-shadow:0 0 0 9px var(--shop-asset,#f0c56d),0 0 35px rgba(240,197,109,.55)}.shop-preview-background::after{display:none}.shop-preview-sticker::after{inset:25%;border-radius:22px;background:var(--shop-asset,#ff4fb5);box-shadow:0 12px 28px rgba(0,0,0,.38);transform:rotate(-7deg)}.shop-preview>span{position:absolute;z-index:2;left:14px;top:14px;padding:5px 9px;border-radius:999px;background:rgba(0,0,0,.7);font-size:.65rem;letter-spacing:.12em}.shop-card-body{padding:17px;display:grid;gap:8px}.shop-card-body h3,.shop-card-body p{margin:0}.shop-card-body p{min-height:42px;color:var(--muted);font-size:.84rem}.shop-type{color:var(--gold);font-size:.72rem}.shop-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.shop-card-foot strong,.checkout-price{color:#fff;font-size:1.35rem}.owned-pill,.status-pill{display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;border:0;border-radius:999px;color:#9af5c0;background:rgba(32,190,104,.15);font:inherit;font-size:.75rem}.checkout-page .back-link.static{position:static;margin-top:10px}.checkout-card{display:grid;gap:30px;padding:26px;border:1px solid var(--line);border-radius:24px;background:var(--panel)}.checkout-card h1{margin:0}.checkout-card form{display:grid;gap:15px}.payment-notice,.upload-slip{padding:17px;border:1px solid var(--line-soft);border-radius:15px;background:rgba(255,255,255,.035)}.payment-notice p{margin-bottom:0;color:var(--muted)}.upload-slip{display:grid;gap:10px}.form-alert{padding:14px 17px;border-radius:13px}.form-alert.error{color:#ffb7b7;background:rgba(255,70,70,.14)}.form-alert.success{color:#9af5c0;background:rgba(32,190,104,.14)}.empty-shop{grid-column:1/-1;padding:40px;text-align:center;border:1px dashed var(--line);border-radius:20px}.order-history{display:grid;gap:10px}.order-row{padding:14px 16px;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;border:1px solid var(--line-soft);border-radius:14px}.order-row div{display:grid}.order-row small{color:var(--muted)}.status-pending_review{color:#ffe09b;background:rgba(240,197,109,.14)}.status-rejected{color:#ffaaaa;background:rgba(255,70,70,.14)}.profile-hero.has-cosmetic-background{background:var(--profile-cosmetic-bg),var(--person-image) center/cover no-repeat}.profile-identity.has-cosmetic-frame{position:relative;padding:16px 18px;border:5px solid transparent;border-radius:18px;background:linear-gradient(#080808,#080808) padding-box,var(--profile-frame) border-box;box-shadow:0 0 28px rgba(240,197,109,.25)}
@media(min-width:700px){.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-pack-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.checkout-card{grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr);padding:40px}}
@media(min-width:1024px){.shop-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.shop-pack-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-preview{min-height:220px}}
@media(max-width:520px){.shop-hero{min-height:280px;padding:24px;align-items:flex-start;flex-direction:column}.shop-grid{grid-template-columns:1fr 1fr;gap:10px}.shop-preview{min-height:140px}.shop-card-body{padding:13px}.shop-card-body p{display:none}.shop-card-foot{align-items:flex-start;flex-direction:column}.shop-card-foot .gold-button{width:100%}.order-row{grid-template-columns:1fr auto}.order-row .status-pill{grid-column:1/-1;justify-self:start}}
.shop-preview.has-product-image::after{display:none}.shop-preview.has-product-image{background-color:#111;background-size:contain;background-repeat:no-repeat}.shop-preview-background.has-product-image{background-size:cover}.chat-sticker-picker button.has-sticker-image,.chat-sticker-art.has-sticker-image{color:transparent;background-color:transparent;background-size:contain;background-repeat:no-repeat;background-position:center}.profile-hero.has-cosmetic-frame::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:var(--profile-frame-image) center/100% 100% no-repeat}.profile-hero.has-cosmetic-frame .profile-identity{position:relative;z-index:2}
