:root {
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-soft: 0 20px 35px rgba(0, 0, 0, 0.18);
    --font-head: "Sora", "Segoe UI", sans-serif;
    --font-body: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    line-height: 1.45;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body[data-theme="dark"] {
    --bg: #050505;
    --bg-elev: #0b0b0b;
    --bg-soft: #141414;
    --text: #f5f5f5;
    --muted: #9c9c9c;
    --border: #2b2b2b;
    --accent: #ffffff;
    --accent-text: #050505;
    --shadow: rgba(0, 0, 0, 0.45);
    background: var(--bg);
    color: var(--text);
}

body[data-theme="light"] {
    --bg: #fbfbfb;
    --bg-elev: #ffffff;
    --bg-soft: #efefef;
    --text: #111111;
    --muted: #525252;
    --border: #d4d4d4;
    --accent: #111111;
    --accent-text: #ffffff;
    --shadow: rgba(0, 0, 0, 0.15);
    background: var(--bg);
    color: var(--text);
}

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

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

code {
    padding: 2px 6px;
    border-radius: 8px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.28;
    animation: float 6s ease-in-out infinite;
}

body[data-theme="dark"] .orb {
    background: radial-gradient(circle at 35% 35%, #fff, #2e2e2e 58%, transparent 70%);
}

body[data-theme="light"] .orb {
    background: radial-gradient(circle at 35% 35%, #000, #c9c9c9 58%, transparent 70%);
}

.orb-1 {
    width: 420px;
    height: 420px;
    top: -100px;
    right: -60px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -40px;
    animation-duration: 5.2s;
    animation-delay: -4s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    top: 45%;
    left: 52%;
    animation-duration: 4.8s;
    animation-delay: -8s;
}

.grid-line {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, transparent 0, transparent 95%, rgba(125, 125, 125, 0.12) 100%),
        linear-gradient(to bottom, transparent 0, transparent 95%, rgba(125, 125, 125, 0.12) 100%);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 95%);
    animation: grid-drift 4.5s linear infinite;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.glass {
    background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
}

.brand-logo-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.brand-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-light {
    opacity: 0;
}

body[data-theme="light"] .logo-light {
    opacity: 1;
}

body[data-theme="light"] .logo-dark {
    opacity: 0;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
}

#menuToggle {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
}

.menu-toggle-x-mark {
    line-height: 1;
    transform: translateY(-1px);
    display: inline-block;
}

.icon-btn.ghost {
    width: 32px;
    height: 32px;
    background: transparent;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    border-radius: 999px;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: scale(0.96);
}

.theme-toggle::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
    opacity: 0.9;
}

body[data-theme="light"] .theme-toggle::before {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.02));
}

.theme-icon-wrap {
    position: relative;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.theme-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.42s cubic-bezier(0.22, 0.8, 0.22, 1), opacity 0.32s ease;
}

body[data-theme="dark"] .icon-sun {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
}

body[data-theme="dark"] .icon-moon {
    opacity: 0;
    transform: translateY(10px) rotate(-55deg) scale(0.45);
}

body[data-theme="light"] .icon-sun {
    opacity: 0;
    transform: translateY(-10px) rotate(55deg) scale(0.45);
}

body[data-theme="light"] .icon-moon {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
}

.theme-toggle.is-switching {
    animation: theme-pop 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme-toggle.is-switching .theme-icon {
    transition-duration: 0.56s;
}

@keyframes theme-pop {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(0.86);
    }
    100% {
        transform: scale(1);
    }
}

.top-auth-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.top-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-vip-link,
.top-login-link,
.top-signup-link {
    flex: 0 0 auto;
}

.top-profile-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-profile-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.btn,
.top-auth-actions a,
.top-auth-actions button {
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s ease, background-color 0.25s ease;
}

.btn:hover,
.top-auth-actions a:hover,
.top-auth-actions button:hover {
    transform: translateY(-1px);
}

.btn.primary {
    background: var(--accent);
    color: var(--accent-text);
}

.btn.cta-daily {
    font-size: 1.02rem;
    padding: 14px 22px;
    font-weight: 700;
}

.btn.slim {
    padding: 7px 12px;
    font-size: 0.9rem;
}

.page-shell {
    width: min(1200px, 94vw);
    margin: 24px auto 42px;
    display: grid;
    gap: 22px;
}

.site-footer {
    width: min(1200px, 94vw);
    margin: 0 auto 24px;
    border-radius: 16px;
    padding: 14px 16px;
}

.site-footer-inner {
    display: grid;
    gap: 14px;
}

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

.footer-copy {
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.86rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
    font-size: 0.86rem;
    font-weight: 600;
    width: 100%;
}

.footer-links a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.side-menu {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: var(--bg-elev);
    border-right: 1px solid var(--border);
    transform: translateX(-105%);
    transition: transform 0.3s ease;
    z-index: 50;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-menu.open {
    transform: translateX(0);
}

.menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-head p {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 700;
}

.menu-links {
    display: grid;
    gap: 8px;
    overflow-y: auto;
    padding-bottom: 8px;
}

.menu-links a,
.menu-links .menu-logout {
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 10px 12px;
    background: var(--bg-soft);
    text-align: left;
    cursor: pointer;
}

.menu-links .menu-logout {
    color: var(--text);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 45;
}

.menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.landing-wrap,
.home-wrap,
.chat-page,
.private-chat-page,
.profile-page,
.settings-page,
.deposit-page,
.store-page,
.product-page,
.seller-page,
.vip-page,
.daily-page,
.about-page,
.channels-page,
.android-page,
.policy-page {
    display: grid;
    gap: 20px;
}

.hero-block,
.hero-mini,
.daily-card,
.panel,
.product-hero,
.profile-card,
.chat-block {
    border-radius: var(--radius-lg);
    padding: 22px;
}

.kicker {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0 0 10px;
}

.hero-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    line-height: 1.05;
}

.hero-subtitle,
.section-head p,
.panel p,
.mini-note,
.stat-card small {
    color: var(--muted);
}

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

.section-head h1,
.chat-head h2,
.panel h3,
.product-content h2,
.auth-card h1,
.profile-card h2,
.thread-head h3 {
    font-family: var(--font-head);
    margin: 0 0 8px;
}

.stats-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.stat-card {
    border-radius: var(--radius-md);
    padding: 16px;
}

.stat-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.stat-value {
    margin: 8px 0 4px;
    font-size: 1.8rem;
    font-family: var(--font-head);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.feature-card {
    border-radius: var(--radius-md);
    padding: 16px;
}

.text-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--muted);
}

.channel-strip {
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.channel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-wrap {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 200px);
}

.auth-card {
    width: min(520px, 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
}

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

.form-stack label,
.form-inline label {
    display: grid;
    gap: 6px;
}

.form-stack span,
.form-inline span {
    font-size: 0.9rem;
    color: var(--muted);
}

input,
select,
textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 11px 12px;
    color: inherit;
}

textarea {
    resize: vertical;
}

.form-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.form-inline input,
.form-inline select {
    flex: 1;
    min-width: 180px;
}

.auth-helper-row {
    display: flex;
    justify-content: flex-end;
}

.auth-helper-btn {
    border-radius: 10px;
    padding: 6px 10px;
}

.password-with-forgot {
    position: relative;
}

.password-with-forgot input {
    padding-right: 124px;
}

.auth-forgot-inside {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-28%);
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.auth-forgot-inside:hover {
    color: var(--text);
    text-decoration: underline;
}

.forgot-password-form {
    margin-top: 10px;
}

.forgot-password-form[hidden] {
    display: none !important;
}

.divider {
    margin: 16px 0;
    text-align: center;
    position: relative;
    color: var(--muted);
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.google-slot {
    min-height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.google-slot > div {
    margin-inline: auto;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 8px 12px;
}

.chat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.chat-messages {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 10px;
    min-height: 260px;
    max-height: 420px;
    overflow-y: auto;
    display: grid;
    gap: 8px;
}

.chat-msg {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 8px 10px;
    background: color-mix(in srgb, var(--bg-elev) 90%, transparent);
}

.chat-msg.mine {
    border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
}

.public-chat-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.public-chat-msg.mine {
    justify-content: flex-end;
}

.public-chat-msg.mine .public-chat-avatar-btn {
    order: 2;
}

.public-chat-avatar-btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 0;
    cursor: pointer;
}

.public-chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex: 0 0 34px;
}

.public-chat-bubble {
    max-width: min(78%, 560px);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 8px 10px;
    background: color-mix(in srgb, var(--bg-elev) 90%, transparent);
}

.public-chat-msg.mine .public-chat-bubble {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.public-chat-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.public-chat-user {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.public-chat-user:hover {
    text-decoration: underline;
}

.public-chat-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.public-chat-time {
    margin-top: 6px;
    text-align: right;
    color: var(--muted);
    font-size: 0.74rem;
}

.chat-msg-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.82rem;
}

.badge-verified {
    width: 13px;
    height: 13px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-2px);
    margin-left: 2px;
}

.public-chat-user .badge-verified {
    width: 10px;
    height: 10px;
    transform: translateY(1px);
    margin-left: 3px;
}

.chat-form {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.chat-form input[type="file"] {
    grid-column: 1 / -1;
}

.private-message-form {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.private-message-form input[type="file"] {
    display: none;
}

.private-message-input-wrap {
    position: relative;
}

.private-message-input-wrap input[type="text"] {
    width: 100%;
    padding-right: 92px;
}

.private-image-pick-btn {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    transition: transform 0.16s ease;
    backface-visibility: hidden;
}

.private-image-pick-btn svg {
    width: 17px;
    height: 17px;
}

.private-send-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    transition: transform 0.16s ease;
    backface-visibility: hidden;
}

.private-send-btn svg {
    width: 17px;
    height: 17px;
}

.private-image-pick-btn:hover,
.private-send-btn:hover {
    transform: translateY(calc(-50% - 0.4px)) scale(1.01) !important;
}

.private-image-pick-btn:active,
.private-send-btn:active {
    transform: translateY(-50%) scale(0.99) !important;
}

.private-image-picked {
    min-height: 16px;
    color: var(--muted);
    font-size: 0.76rem;
    padding-left: 4px;
}

.private-chat-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 12px;
}

.conversation-list,
.conversation-thread {
    border-radius: var(--radius-lg);
    padding: 14px;
    min-height: 520px;
}

.list-scroll,
.order-list,
.product-list {
    margin-top: 10px;
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 2px;
}

.conversation-item,
.order-card,
.product-tile,
.data-tile,
.wallet-card,
.info-tile {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 12px;
}

.conversation-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.conversation-item.active {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
}

.private-chat-tools {
    margin-bottom: 8px;
}

.new-chat-btn {
    width: 100%;
    justify-content: center;
    gap: 8px;
}

.new-chat-plus {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-grid;
    place-items: center;
    line-height: 1;
    font-weight: 700;
}

.conversation-avatar-btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

.conversation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.conversation-main {
    min-width: 0;
    flex: 1;
}

.conversation-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.conversation-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.conversation-time {
    color: var(--muted);
    font-size: 0.76rem;
    white-space: nowrap;
}

.conversation-preview {
    margin: 6px 0 4px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.conversation-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--border));
    font-size: 0.74rem;
    font-weight: 700;
}

.dm-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.dm-msg.mine {
    justify-content: flex-end;
}

.dm-msg.mine .dm-avatar-btn {
    order: 2;
}

.dm-avatar-btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 0;
    cursor: pointer;
}

.dm-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex: 0 0 34px;
}

.dm-bubble {
    max-width: min(78%, 560px);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 8px 10px;
    background: color-mix(in srgb, var(--bg-elev) 90%, transparent);
}

.dm-msg.mine .dm-bubble {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.dm-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.dm-user {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.dm-user:hover {
    text-decoration: underline;
}

.dm-time {
    color: var(--muted);
    font-size: 0.74rem;
    white-space: nowrap;
}

.dm-date-sep {
    display: flex;
    justify-content: center;
    margin: 6px 0 2px;
}

.dm-date-sep span {
    display: inline-flex;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dm-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.dm-image-btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 0;
    cursor: zoom-in;
    display: inline-flex;
}

.dm-image {
    max-width: 190px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-top: 6px;
}

.dm-caption {
    margin-top: 6px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.86rem;
}

.dm-order-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dm-order-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.dm-order-verified img {
    width: 9px;
    height: 9px;
    object-fit: contain;
}

.dm-order-id {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.dm-order-actions {
    margin-top: 6px;
    display: flex;
    justify-content: flex-start;
}

.dm-order-product-btn {
    padding: 5px 10px;
}

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

.thread-head-avatar-btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 0;
    cursor: pointer;
}

.thread-head-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.thread-date-filter {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.8rem;
}

.thread-date-filter select {
    min-width: 120px;
    width: auto;
    padding: 7px 9px;
    font-size: 0.82rem;
}

.chat-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(0, 0, 0, 0.84);
    display: grid;
    place-items: center;
    padding: 18px;
}

.chat-image-viewer[hidden] {
    display: none !important;
}

.chat-image-viewer-figure {
    margin: 0;
    max-width: min(96vw, 1000px);
    max-height: 92vh;
    display: grid;
    gap: 8px;
    justify-items: center;
}

.chat-image-viewer-figure img {
    max-width: min(96vw, 1000px);
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: #000;
}

.chat-image-viewer-figure figcaption {
    color: #f2f2f2;
    text-align: center;
    max-width: min(90vw, 820px);
    word-break: break-word;
    white-space: pre-wrap;
    font-size: 0.9rem;
}

.chat-image-viewer-close {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
}

.new-chat-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 115;
    display: grid;
    place-items: center;
    padding: 16px;
}

.new-chat-modal[hidden] {
    display: none !important;
}

.new-chat-modal-card {
    width: min(420px, 100%);
    border-radius: 16px;
    padding: 18px;
}

.order-success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 116;
    display: grid;
    place-items: center;
    padding: 16px;
}

.order-success-modal[hidden] {
    display: none !important;
}

.order-success-card {
    width: min(430px, 100%);
    border-radius: 16px;
    padding: 18px;
    display: grid;
    gap: 10px;
}

.order-success-card h3 {
    margin: 0;
}

.order-success-card p {
    margin: 0;
    color: var(--muted);
}

.order-success-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.order-success-actions .btn {
    min-width: 140px;
    justify-content: center;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.55;
}

.android-shot-strip {
    display: flex;
    gap: 12px;
    overflow-x: scroll;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-padding-inline: 4px;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--text) 32%, transparent) transparent;
    scroll-behavior: smooth;
    cursor: grab;
    flex-wrap: nowrap;
    padding-inline: 2px;
}

.android-shot-card {
    flex: 0 0 min(78vw, 280px);
    width: min(78vw, 280px);
    min-width: 0;
    max-width: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-soft);
    padding: 8px;
    display: grid;
    gap: 7px;
    scroll-snap-align: start;
}

.android-shot-card img {
    width: 100%;
    height: clamp(250px, 56vh, 420px);
    object-fit: contain;
    background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.android-shot-strip:active {
    cursor: grabbing;
}

.android-page {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.android-page .panel {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.android-page .section-head {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.android-page .section-head h1 {
    font-size: clamp(1.45rem, 4.3vw, 2.2rem);
    line-height: 1.15;
}

.android-page .section-head p,
.android-page .panel p,
.android-shot-card small {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.android-shot-strip::-webkit-scrollbar {
    height: 8px;
}

.android-shot-strip::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text) 30%, transparent);
    border-radius: 999px;
}

.android-shot-strip::-webkit-scrollbar-track {
    background: transparent;
}

.android-shot-hint {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.android-shot-card small {
    color: var(--muted);
    font-size: 0.8rem;
}

.policy-content {
    display: grid;
    gap: 12px;
}

.policy-content h3 {
    margin: 4px 0 0;
}

.policy-content p {
    margin: 0;
}

.policy-content ul {
    margin: 0;
    padding-left: 18px;
}

.new-chat-modal-card h3 {
    margin: 0 0 8px;
}

.new-chat-modal-card p {
    margin: 0 0 12px;
    color: var(--muted);
}

.profile-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.profile-top-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.profile-identity {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 4px;
}

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

.profile-name-row h2 {
    margin: 0;
}

.balance-mini-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    margin-left: auto;
}

.balance-mini-label {
    color: var(--muted);
    font-size: 0.82rem;
}

.balance-mini-add {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    font-weight: 700;
    line-height: 1;
}

.profile-image-wrap {
    position: relative;
    width: 82px;
    height: 82px;
}

.profile-image {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.profile-image-add {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.icon-only-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 1.1rem;
}

.profile-grid,
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.info-tile strong {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.profile-grid .info-tile {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.copyable-id {
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.copyable-id:hover {
    text-decoration: underline;
}

.vip-image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 16px;
}

.vip-image-modal[hidden] {
    display: none !important;
}

.vip-image-modal-card {
    max-width: 420px;
    width: 100%;
    border-radius: 16px;
    padding: 18px;
}

.wallet-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wallet-card p {
    margin: 6px 0 0;
    word-break: break-all;
}

.store-categories {
    display: grid;
    gap: 18px;
}

.store-page,
.store-search-panel,
.store-categories,
.category-row,
.row-scroll {
    min-width: 0;
    max-width: 100%;
}

.store-head h1 {
    margin-bottom: 6px;
}

.store-search-panel {
    padding-top: 14px;
    padding-bottom: 14px;
}

.store-search-panel .form-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.store-search-panel .form-inline input[type="text"] {
    width: 100%;
    min-width: 0;
}

.store-search-panel .form-inline .btn {
    white-space: nowrap;
}

.category-row {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-elev) 90%, transparent);
    padding: 14px;
    overflow: hidden;
}

.category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.category-row h3 {
    margin: 0;
    font-family: var(--font-head);
}

.category-count {
    color: var(--muted);
    font-size: 0.78rem;
}

.category-show-all {
    white-space: nowrap;
}

.row-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.store-product {
    min-width: 230px;
    max-width: 260px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    background: var(--bg-soft);
    display: grid;
    gap: 6px;
    scroll-snap-align: start;
    overflow-wrap: anywhere;
}

.store-product img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.category-row-full .row-scroll {
    overflow: visible;
}

.store-full-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: min(78vh, 1150px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

.store-full-grid .store-product {
    min-width: 0;
    max-width: none;
}

.price-row {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.9rem;
}

.product-hero {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(260px, 40%) minmax(0, 1fr);
}

.product-gallery {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.product-gallery-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    scrollbar-width: none;
}

.product-gallery-track::-webkit-scrollbar {
    display: none;
}

.product-gallery img {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    max-height: 320px;
    object-fit: cover;
    scroll-snap-align: start;
}

.product-gallery-nav {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    line-height: 1;
}

.product-gallery-nav.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.product-seller-box {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-soft);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.product-seller-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.product-seller-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.product-seller-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.product-seller-meta strong {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-seller-meta small {
    display: block;
    color: var(--muted);
}

.product-seller-actions {
    display: flex;
    justify-content: flex-end;
}

.product-order-wrap {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.product-order-wrap .btn {
    min-width: 200px;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin: 10px 0;
}

.product-meta .info-tile {
    padding: 10px;
}

.vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.vip-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    padding: 16px;
    display: grid;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.vip-card h3 {
    margin: 0;
}

.vip-plan-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 600;
}

.vip-select-label {
    display: grid;
    gap: 6px;
}

.vip-select-label span {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 700;
}

.vip-sub-select {
    border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
    background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
    border-radius: 10px;
    padding: 10px;
}

.vip-sub-view {
    border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
    border-radius: 12px;
    padding: 10px;
    background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
}

.vip-sub-details {
    margin: 8px 0 0;
    font-size: 0.86rem;
    line-height: 1.4;
    font-weight: 700;
}

.vip-sub-view .price-row {
    font-weight: 700;
}

.vip-card .buy-vip-btn {
    width: 100%;
    justify-content: center;
    font-weight: 700;
    border: 1px solid transparent;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22);
}

.vip-card.vip-silver {
    background: linear-gradient(145deg, #252830 0%, #5f6674 55%, #cad1dc 100%);
    border-color: rgba(205, 215, 233, 0.58);
    color: #f7faff;
}

.vip-card.vip-gold {
    background: linear-gradient(145deg, #3f2d00 0%, #b47806 55%, #f5d27a 100%);
    border-color: rgba(255, 219, 132, 0.64);
    color: #fff8e6;
}

.vip-card.vip-diamond {
    background: linear-gradient(135deg, #271038 0%, #5a2f9a 38%, #8846de 68%, #d7beff 100%);
    background-size: 180% 180%;
    border-color: rgba(212, 160, 255, 0.72);
    color: #faf5ff;
    animation: diamond-glow 6s ease-in-out infinite;
}

.vip-card.vip-diamond::after {
    content: "";
    position: absolute;
    inset: -35% -20%;
    background: linear-gradient(120deg, transparent 24%, rgba(255, 255, 255, 0.25) 50%, transparent 76%);
    transform: translateX(-60%) rotate(8deg);
    animation: diamond-shine 4.8s linear infinite;
    pointer-events: none;
}

.vip-card.vip-silver .vip-select-label span,
.vip-card.vip-gold .vip-select-label span,
.vip-card.vip-diamond .vip-select-label span,
.vip-card.vip-silver .price-row,
.vip-card.vip-gold .price-row,
.vip-card.vip-diamond .price-row,
.vip-card.vip-silver .vip-plan-desc,
.vip-card.vip-gold .vip-plan-desc,
.vip-card.vip-diamond .vip-plan-desc {
    color: color-mix(in srgb, #fff 93%, transparent);
}

.vip-card.vip-silver .vip-sub-select,
.vip-card.vip-gold .vip-sub-select,
.vip-card.vip-diamond .vip-sub-select,
.vip-card.vip-silver .vip-sub-view,
.vip-card.vip-gold .vip-sub-view,
.vip-card.vip-diamond .vip-sub-view {
    background: rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

body[data-theme="light"] .vip-card.vip-silver {
    background: linear-gradient(145deg, #f7f9ff 0%, #dbe4f3 55%, #b2bfd2 100%);
    color: #101727;
}

body[data-theme="light"] .vip-card.vip-gold {
    background: linear-gradient(145deg, #fff7df 0%, #f4cf79 55%, #ca8f20 100%);
    color: #2a1a00;
}

body[data-theme="light"] .vip-card.vip-diamond {
    background: linear-gradient(135deg, #f8ecff 0%, #e3ccff 48%, #b27ef0 100%);
    background-size: 180% 180%;
    border-color: rgba(168, 96, 232, 0.6);
    color: #290c49;
}

body[data-theme="light"] .vip-card.vip-silver .vip-select-label span,
body[data-theme="light"] .vip-card.vip-gold .vip-select-label span,
body[data-theme="light"] .vip-card.vip-diamond .vip-select-label span,
body[data-theme="light"] .vip-card.vip-silver .price-row,
body[data-theme="light"] .vip-card.vip-gold .price-row,
body[data-theme="light"] .vip-card.vip-diamond .price-row,
body[data-theme="light"] .vip-card.vip-silver .vip-plan-desc,
body[data-theme="light"] .vip-card.vip-gold .vip-plan-desc,
body[data-theme="light"] .vip-card.vip-diamond .vip-plan-desc {
    color: rgba(0, 0, 0, 0.92);
}

body[data-theme="light"] .vip-card.vip-silver .vip-sub-select,
body[data-theme="light"] .vip-card.vip-gold .vip-sub-select,
body[data-theme="light"] .vip-card.vip-diamond .vip-sub-select,
body[data-theme="light"] .vip-card.vip-silver .vip-sub-view,
body[data-theme="light"] .vip-card.vip-gold .vip-sub-view,
body[data-theme="light"] .vip-card.vip-diamond .vip-sub-view {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(0, 0, 0, 0.24);
    color: inherit;
}

body[data-theme="light"] .vip-card .buy-vip-btn {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.sub-plan {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 8px;
    background: var(--bg-soft);
}

.daily-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.status-line {
    font-weight: 600;
}

#sellerStatsPanel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.panel-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.panel-tools h3 {
    margin: 0;
}

.filter-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-control span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.filter-control select {
    min-width: 150px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text);
    padding: 8px 10px;
}

.seller-upload-preview {
    min-height: 0;
}

.seller-upload-preview img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.seller-upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.seller-upload-preview-grid img {
    width: 100%;
    height: 86px;
    border-radius: 10px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.seller-category-box {
    display: grid;
    gap: 8px;
}

.seller-category-box > span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.seller-category-bubbles {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 50px;
}

.seller-category-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 12px;
    background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.seller-category-pill:hover {
    transform: translateY(-1px);
}

.seller-category-pill.active {
    border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
    background: color-mix(in srgb, var(--accent) 24%, transparent);
}

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

.order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.toast-root {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    display: grid;
    gap: 10px;
}

.toast {
    min-width: 220px;
    max-width: 340px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--bg-elev);
    box-shadow: 0 14px 26px var(--shadow);
    animation: rise 0.24s ease;
}

.toast.error {
    border-color: #d63f3f;
}

.toast.success {
    border-color: #38a169;
}

[data-show-auth="true"] {
    display: none;
}

body.is-auth [data-show-auth="true"] {
    display: inline-flex;
}

body.is-auth [data-show-guest="true"] {
    display: none;
}

.reveal {
    animation: fade-up 0.55s ease both;
}

.stagger > * {
    animation: fade-up 0.65s ease both;
}

.stagger > *:nth-child(2) {
    animation-delay: 0.08s;
}

.stagger > *:nth-child(3) {
    animation-delay: 0.16s;
}

@keyframes float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -22px, 0) scale(1.05);
    }
}

@keyframes grid-drift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-48px, -48px, 0);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes diamond-glow {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes diamond-shine {
    from {
        transform: translateX(-70%) rotate(8deg);
    }
    to {
        transform: translateX(70%) rotate(8deg);
    }
}

@media (max-width: 980px) {
    .private-chat-layout,
    .product-hero {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
    }

    .conversation-list,
    .conversation-thread {
        min-height: initial;
    }
}

@media (max-width: 760px) {
    .topbar {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .topbar-right {
        min-width: 0;
    }

    .brand-title {
        display: none;
    }

    .top-auth-actions {
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        min-width: 0;
        max-width: 56vw;
        scrollbar-width: none;
    }

    .top-auth-actions::-webkit-scrollbar {
        display: none;
    }

    .top-auth-actions a,
    .top-auth-actions button {
        padding: 7px 10px;
        font-size: 0.82rem;
        flex: 0 0 auto;
    }

    .hero-block,
    .hero-mini,
    .panel,
    .product-hero,
    .profile-card,
    .chat-block,
    .daily-card,
    .auth-card {
        padding: 16px;
    }

    .grid-two {
        grid-template-columns: 1fr;
    }

    .filter-control {
        width: 100%;
        justify-content: space-between;
    }

    .filter-control select {
        min-width: 0;
        width: 100%;
    }

    .chat-form {
        grid-template-columns: 1fr;
    }

    .private-message-input-wrap input[type="text"] {
        padding-right: 88px;
    }

    .thread-date-filter {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .store-head h1 {
        font-size: 1.45rem;
    }

    .store-head p {
        font-size: 0.88rem;
    }

    .store-search-panel .form-inline {
        gap: 6px;
    }

    .store-search-panel .form-inline {
        grid-template-columns: 1fr;
    }

    .store-search-panel .form-inline .btn {
        width: 100%;
    }

    .category-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .conversation-avatar {
        width: 36px;
        height: 36px;
    }

    .dm-bubble {
        max-width: min(84%, 520px);
    }

    .profile-name-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .balance-mini-box {
        margin-left: 0;
    }

    .site-footer {
        margin-bottom: 14px;
        padding: 12px;
    }

    .footer-nav-grid {
        grid-template-columns: 1fr;
    }

    .footer-copy {
        font-size: 0.8rem;
    }

    .footer-links a {
        font-size: 0.8rem;
        padding: 7px 9px;
    }

    .android-page .hero-actions .btn {
        width: 100%;
    }

    .android-page .section-head h1 {
        font-size: clamp(1.3rem, 7vw, 1.7rem);
    }

    .android-page .section-head p,
    .android-page .panel p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .android-page .panel {
        padding: 14px;
    }

    .android-shot-hint {
        display: block;
    }

    .android-shot-strip {
        gap: 10px;
        padding-bottom: 12px;
    }

    .android-shot-card {
        flex-basis: min(72vw, 300px);
        width: min(72vw, 300px);
    }

    .android-shot-card img {
        height: min(60vh, 460px);
    }
}

@media (max-width: 560px) {
    .topbar {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
    }

    .brand {
        justify-self: auto;
        flex: 0 0 auto;
    }

    .topbar-right {
        margin-left: auto;
        flex: 1 1 auto;
        justify-content: flex-end;
        width: auto;
        min-width: 0;
        gap: 5px;
    }

    .top-auth-actions {
        flex-wrap: nowrap;
        justify-content: flex-end;
        min-width: 0;
        max-width: 58vw;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .top-auth-actions::-webkit-scrollbar {
        display: none;
    }

    .top-auth-actions a,
    .top-auth-actions button {
        flex: 0 0 auto;
        padding: 6px 8px;
        font-size: 0.72rem;
    }

    .top-profile-link {
        padding: 6px 8px;
    }

    .top-profile-name {
        display: none;
    }

    .page-shell {
        width: 96vw;
        margin: 16px auto 26px;
        gap: 14px;
    }

    .side-menu {
        width: 92vw;
    }

    .hero-actions,
    .channel-actions,
    .daily-actions,
    .order-actions {
        width: 100%;
    }

    .form-inline {
        flex-direction: column;
    }

    .form-inline input,
    .form-inline select,
    .form-inline button {
        width: 100%;
        min-width: 0;
    }

    .public-chat-bubble,
    .dm-bubble {
        max-width: 100%;
    }

    .store-product {
        min-width: 190px;
    }

    .product-order-wrap .btn {
        min-width: 0;
        width: 100%;
    }

    .store-search-panel {
        padding: 10px 12px;
    }

    .store-search-panel input[type="text"] {
        font-size: 0.84rem;
        padding: 9px 10px;
    }

    .store-search-panel .btn {
        padding: 7px 10px;
    }

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

    .store-product {
        min-width: 170px;
        max-width: none;
    }

    .profile-header {
        flex-direction: column;
    }

    .thread-head-user h3 {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .icon-btn,
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .btn,
    .top-auth-actions a,
    .top-auth-actions button {
        padding: 8px 11px;
        font-size: 0.8rem;
    }

    .private-image-pick-btn,
    .private-send-btn {
        width: 32px;
        height: 32px;
    }

    .store-head h1 {
        font-size: 1.28rem;
    }

    .store-head p {
        font-size: 0.82rem;
    }

    .category-count {
        font-size: 0.72rem;
    }

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

    .chat-image-viewer {
        padding: 10px;
    }

    .android-page {
        gap: 12px;
    }

    .android-page .panel {
        padding: 12px;
    }

    .android-shot-card {
        flex-basis: min(calc(100vw - 76px), 260px);
        width: min(calc(100vw - 76px), 260px);
    }

    .android-shot-hint {
        font-size: 0.78rem;
    }

    .android-page .section-head h1 {
        font-size: 1.22rem;
        line-height: 1.2;
    }

    .android-page .section-head p,
    .android-page .panel p {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .android-page .panel h3 {
        font-size: 0.95rem;
    }
}
