:root {
    --bg: #06111c;
    --panel: rgba(12, 28, 44, 0.9);
    --panel-strong: rgba(15, 36, 58, 0.96);
    --panel-soft: rgba(255, 255, 255, 0.04);
    --line: rgba(160, 192, 219, 0.18);
    --text: #eef6ff;
    --muted: #91a6bb;
    --accent: #ff7a18;
    --accent-alt: #12c6b2;
    --danger: #ff6b72;
    --warning: #f5c451;
    --success: #25d38a;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.15), transparent 32%),
        radial-gradient(circle at top right, rgba(18, 198, 178, 0.14), transparent 28%),
        linear-gradient(180deg, #05101a 0%, #081523 40%, #06111c 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black 32%, transparent 85%);
}

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

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

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

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text);
    background: rgba(7, 17, 28, 0.78);
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(255, 122, 24, 0.7);
    background: rgba(10, 24, 39, 0.96);
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    vertical-align: top;
}

th {
    color: #c8d8e6;
    font-size: 0.92rem;
    font-weight: 600;
}

.app-shell {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 18px 56px;
}

.app-glow {
    position: fixed;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    filter: blur(110px);
    opacity: 0.2;
    pointer-events: none;
}

.app-glow-left {
    top: 6%;
    left: -10%;
    background: var(--accent);
}

.app-glow-right {
    top: 18%;
    right: -8%;
    background: var(--accent-alt);
}

.site-header {
    position: sticky;
    top: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 14, 24, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.brand strong {
    display: block;
    font-size: 1.02rem;
}

.brand small {
    color: var(--muted);
}

.brand-mark {
    width: 50px;
    height: 50px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), #ffb347);
    color: #0a1220;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 16px 34px rgba(255, 122, 24, 0.28);
}

.site-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.site-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    display: inline-flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.user-chip span {
    font-weight: 600;
}

.user-chip small {
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

.button-primary {
    color: #0b1622;
    background: linear-gradient(135deg, var(--accent), #ffb347);
    box-shadow: 0 14px 30px rgba(255, 122, 24, 0.28);
}

.button-ghost {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.button-small {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.92rem;
}

.button-full {
    width: 100%;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
}

.flash-success {
    background: rgba(37, 211, 138, 0.12);
    border-color: rgba(37, 211, 138, 0.3);
}

.flash-error {
    background: rgba(255, 107, 114, 0.12);
    border-color: rgba(255, 107, 114, 0.28);
}

.page-wrap {
    display: grid;
    gap: 22px;
}

.section-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        var(--panel);
    box-shadow: var(--shadow);
}

.section-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.08), transparent 34%, rgba(18, 198, 178, 0.08));
}

.section-card > * {
    position: relative;
    z-index: 1;
}

.section-card h1,
.section-card h2,
.section-card h3,
.hero-copy-card h1 {
    margin: 0 0 12px;
}

.section-card p,
.hero-copy-card p,
.empty-state p,
.notice-box p,
.detail-item span,
.hall-card-meta span,
.stat-card span,
.info-box span {
    color: var(--muted);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffd6b2;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

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

.home-hero,
.two-column,
.auth-layout,
.three-column {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 22px;
}

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

.hero-main h1,
.hero-copy-card h1 {
    font-size: clamp(2rem, 3.8vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.stats-grid,
.info-grid,
.detail-grid {
    display: grid;
    gap: 16px;
}

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

.stat-card,
.info-box,
.detail-item {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.stat-card strong,
.info-box strong,
.detail-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.hero-side {
    display: flex;
    align-items: stretch;
}

.wallet-preview {
    width: 100%;
}

.rule-list {
    display: grid;
    gap: 12px;
    padding-left: 18px;
    color: #d6e4f1;
}

.carousel {
    position: relative;
    min-height: 280px;
}

.carousel-card {
    display: none;
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(18, 198, 178, 0.22), transparent 30%),
        radial-gradient(circle at bottom left, rgba(255, 122, 24, 0.2), transparent 36%),
        linear-gradient(135deg, rgba(8, 23, 38, 0.95), rgba(12, 32, 50, 0.94));
    animation: fadeUp 0.5s ease;
}

.carousel-card.is-active {
    display: grid;
    grid-template-columns: 1fr;
}

.carousel-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

.carousel-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    min-height: 280px;
    padding: 28px;
}

.game-grid,
.hall-list,
.admin-card-list,
.admin-kpi-grid {
    display: grid;
    gap: 18px;
}

.admin-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.kpi-card {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
}

.kpi-card span,
.kpi-card small,
.trend {
    color: var(--muted);
}

.kpi-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 2rem;
}

.trend-up {
    color: #96f4c7;
}

.trend-down {
    color: #ffc0c4;
}

.trend-neutral {
    color: #d9e5f0;
}

.chart-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.chart-card canvas {
    width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    border-radius: 18px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    color: var(--muted);
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 999px;
}

.legend-flow {
    background: #ff9e4a;
}

.legend-order {
    background: #22d6c0;
}

.legend-completed {
    background: #9db8ff;
}

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

.game-card,
.hall-card,
.admin-review-card,
.hero-copy-card {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.game-card-top,
.hall-card-head,
.admin-review-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.game-card-actions,
.hall-card-actions,
.filter-chips,
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hall-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
}

.chip,
.chip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.chip.is-active,
.chip-button:hover {
    color: var(--text);
    border-color: rgba(255, 122, 24, 0.4);
    background: rgba(255, 122, 24, 0.12);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
}

.badge-primary {
    background: rgba(18, 198, 178, 0.16);
    color: #91f1e6;
}

.badge-success {
    background: rgba(37, 211, 138, 0.16);
    color: #96f4c7;
}

.badge-warning {
    background: rgba(245, 196, 81, 0.16);
    color: #fbe19a;
}

.badge-accent {
    background: rgba(255, 122, 24, 0.16);
    color: #ffd3ad;
}

.badge-danger {
    background: rgba(255, 107, 114, 0.16);
    color: #ffc0c4;
}

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

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

.stack-form label span,
.inline-form input::placeholder,
.inline-tip {
    color: var(--muted);
}

.inline-tip a {
    color: #ffca99;
}

.center-panel {
    min-height: calc(100vh - 220px);
    display: grid;
    place-items: center;
}

.narrow-card {
    max-width: 760px;
    width: 100%;
}

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

.auth-card {
    align-self: center;
}

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

.empty-state,
.notice-box,
.status-panel {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.empty-state {
    text-align: center;
}

.align-left {
    text-align: left;
}

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

.proof-image,
.image-row img {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.proof-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

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

.image-row img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.inline-form input {
    flex: 1 1 180px;
}

.admin-inline-form {
    margin-bottom: 10px;
}

.admin-inline-form:last-child {
    margin-bottom: 0;
}

.compact-form {
    min-width: 340px;
}

.compact-stack {
    gap: 10px;
}

.top-gap {
    margin-top: 18px;
}

.td-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

.sub-section-title {
    margin-top: 28px;
}

.proof-image-small {
    max-height: 180px;
    margin-top: 10px;
}

.config-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.config-row:last-child {
    border-bottom: 0;
}

.config-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.config-actions input {
    width: 120px;
}

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

.checkbox input {
    width: auto;
}

.site-footer {
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
}

body.page-admin {
    color: #1d2a40;
    background:
        radial-gradient(circle at top right, rgba(170, 217, 209, 0.55), transparent 22%),
        linear-gradient(180deg, #dde4e8 0%, #ecf1f4 48%, #f5f7f9 100%);
}

body.page-admin::before {
    display: none;
}

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

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-self: start;
    min-height: 100vh;
    padding: 22px 18px;
    background: linear-gradient(180deg, #2e3d51 0%, #243245 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 18px 0 40px rgba(35, 48, 67, 0.12);
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f4f8fd;
}

.admin-brand-mark {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: #dfe9f2;
    color: #253448;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.admin-brand strong,
.admin-profile-card strong {
    display: block;
}

.admin-brand small,
.admin-profile-card span {
    color: #d7e1ec;
}

.admin-profile-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: #eef4fb;
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 999px;
    background: #33cf74;
    box-shadow: 0 0 0 4px rgba(51, 207, 116, 0.18);
}

.admin-menu {
    display: grid;
    gap: 10px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 16px;
    color: #d4dfeb;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-menu a:hover,
.admin-menu a.is-active {
    color: #ffffff;
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

.admin-main {
    padding: 22px 22px 32px;
}

.admin-flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-flash {
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid #b8ddd0;
    background: linear-gradient(180deg, #cae4d9 0%, #c2dfd3 100%);
    color: #257253;
    box-shadow: 0 18px 34px rgba(104, 147, 127, 0.12);
}

.admin-flash-error {
    border-color: #efc5c8;
    background: linear-gradient(180deg, #f8e0e3 0%, #f4d7db 100%);
    color: #9a4350;
}

.admin-top-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.admin-page-intro {
    flex: 1;
}

.admin-back-link {
    display: inline-flex;
    margin-bottom: 14px;
    color: #4165af;
    font-size: 0.92rem;
}

.admin-page-intro h1 {
    margin: 0;
    font-size: clamp(2.1rem, 3.1vw, 3.3rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    color: #16243a;
}

.admin-page-intro p {
    margin: 12px 0 0;
    max-width: 720px;
    color: #65768d;
}

.admin-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    min-width: min(100%, 430px);
}

.admin-summary-cards article {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid #dde6eb;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f8 100%);
    box-shadow: 0 18px 36px rgba(102, 121, 146, 0.12);
}

.admin-summary-cards span {
    display: block;
    margin-bottom: 8px;
    color: #72839a;
    font-size: 0.88rem;
}

.admin-summary-cards strong {
    color: #18253b;
    font-size: 1.9rem;
    line-height: 1.05;
}

.admin-page-wrap {
    display: grid;
    gap: 18px;
}

body.page-admin input,
body.page-admin textarea,
body.page-admin select {
    color: #23314a;
    border: 1px solid #d7e0e7;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.page-admin input:focus,
body.page-admin textarea:focus,
body.page-admin select:focus {
    border-color: rgba(47, 109, 246, 0.55);
    background: #ffffff;
    transform: none;
    box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12);
}

body.page-admin .button {
    border-radius: 16px;
}

body.page-admin .button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #2f72f4 0%, #4d8cff 100%);
    box-shadow: 0 16px 28px rgba(47, 114, 244, 0.18);
}

body.page-admin .button-ghost {
    color: #24344d;
    border: 1px solid #d6dfe7;
    background: #ffffff;
}

body.page-admin .button-small {
    min-height: 40px;
}

body.page-admin .section-card {
    padding: 22px;
    border: 1px solid #dbe4ea;
    border-radius: 28px;
    background: linear-gradient(180deg, #fefefe 0%, #f7fafc 100%);
    box-shadow: 0 16px 36px rgba(89, 108, 130, 0.1);
}

body.page-admin .section-card::after {
    display: none;
}

body.page-admin .section-card h1,
body.page-admin .section-card h2,
body.page-admin .section-card h3 {
    color: #17243a;
}

body.page-admin .section-card p,
body.page-admin .td-sub,
body.page-admin .inline-tip,
body.page-admin .detail-item span,
body.page-admin .hall-card-meta span,
body.page-admin .stat-card span,
body.page-admin .info-box span {
    color: #687a91;
}

body.page-admin .section-tag {
    color: #51677f;
    border: 1px solid #d7e4e8;
    background: #edf4f6;
}

.admin-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.admin-mini-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-width: min(100%, 340px);
}

.admin-mini-pill {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid #dde5eb;
    background: #eef3f7;
}

.admin-mini-pill strong {
    display: block;
    margin-bottom: 6px;
    color: #1a2940;
    font-size: 1.4rem;
}

.admin-mini-pill small {
    color: #72829a;
}

body.page-admin .admin-kpi-grid {
    margin-top: 0;
    gap: 16px;
}

body.page-admin .kpi-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid #dde5eb;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.page-admin .kpi-card span,
body.page-admin .kpi-card small,
body.page-admin .trend {
    color: #70829a;
}

body.page-admin .kpi-card strong {
    color: #1a2940;
    font-size: 2rem;
}

body.page-admin .trend-up {
    color: #177f63;
}

body.page-admin .trend-down {
    color: #ae4e59;
}

body.page-admin .trend-neutral {
    color: #45617f;
}

body.page-admin .admin-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
}

body.page-admin .stat-card,
body.page-admin .info-box,
body.page-admin .detail-item {
    border: 1px solid #dce4ea;
    background: #eef3f6;
}

body.page-admin .stat-card strong,
body.page-admin .info-box strong,
body.page-admin .detail-item strong {
    color: #19273d;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.85fr);
    gap: 18px;
}

.admin-chart-panel .section-head {
    margin-bottom: 18px;
}

body.page-admin .chart-card {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid #d6e0e7;
    background: #ecf3f7;
}

body.page-admin .chart-card canvas {
    border: 1px solid #d4dee7;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(240, 245, 248, 0.96) 100%);
}

body.page-admin .chart-legend {
    color: #6d7f95;
}

body.page-admin .legend-flow {
    background: #2f72f4;
}

body.page-admin .legend-order {
    background: #23b0a3;
}

body.page-admin .legend-completed {
    background: #7587a5;
}

.admin-board-panel {
    display: grid;
    gap: 16px;
}

.admin-board-highlight {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid #cadbe2;
    background: linear-gradient(135deg, #e5eff3 0%, #dcecf1 100%);
    box-shadow: 0 12px 28px rgba(102, 130, 151, 0.12);
}

.admin-board-highlight span,
.admin-board-item span,
.admin-board-metrics span {
    display: block;
}

.admin-board-highlight span {
    margin-bottom: 8px;
    color: #6d7f95;
}

.admin-board-highlight strong {
    display: block;
    margin-bottom: 6px;
    color: #1a2940;
    font-size: 2rem;
}

.admin-board-highlight small {
    color: #65778d;
}

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

.admin-board-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid #dbe4ea;
    background: #ffffff;
}

.admin-board-item span {
    color: #42556d;
    font-weight: 600;
}

.admin-board-item small {
    color: #71839a;
}

.admin-board-item strong {
    color: #1a2940;
    font-size: 1.35rem;
    white-space: nowrap;
}

.admin-board-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-board-metrics article {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dde5eb;
    background: #f1f5f8;
}

.admin-board-metrics span {
    margin-bottom: 8px;
    color: #71839a;
}

.admin-board-metrics strong {
    color: #1a2940;
    font-size: 1.55rem;
}

.admin-review-panels,
.admin-data-panels {
    align-items: start;
}

.admin-review-section {
    display: grid;
    gap: 14px;
}

.admin-section-lead {
    margin: 0;
    color: #6d7f95;
}

.admin-queue {
    border: 1px solid #dce5eb;
    border-radius: 24px;
    background: #f8fbfc;
    overflow: hidden;
}

.admin-queue-head,
.admin-queue-row {
    display: grid;
    gap: 12px;
    align-items: start;
}

.admin-queue-head {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 14px 16px;
    border-bottom: 1px solid #e4ebf0;
    background: #eef3f7;
    color: #6b7d94;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-queue-body {
    max-height: 460px;
    overflow: auto;
}

.admin-queue-row {
    padding: 14px 16px;
    border-bottom: 1px solid #e7edf2;
    background: #ffffff;
}

.admin-queue-row:last-child {
    border-bottom: 0;
}

.admin-queue-empty {
    margin: 14px;
}

.admin-queue-grid-provider {
    grid-template-columns: minmax(0, 1fr) 116px minmax(0, 1.15fr);
}

.admin-queue-grid-wallet {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.1fr);
}

.admin-queue-grid-appeal {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr) minmax(0, 1.15fr);
}

.admin-queue-cell {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-queue-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-queue-title strong {
    color: #1a2940;
    font-size: 1rem;
}

.admin-queue-meta {
    color: #72839a;
    font-size: 0.92rem;
    line-height: 1.45;
}

.admin-queue-amount {
    color: #1a2940;
    font-size: 1.08rem;
    font-weight: 700;
}

.admin-queue-content {
    color: #485b74;
    font-size: 0.92rem;
    line-height: 1.55;
    word-break: break-word;
}

.admin-queue-thumbs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-queue-thumbs img {
    width: 52px;
    height: 40px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dbe4ea;
    background: #edf2f5;
}

.admin-queue-form {
    display: grid;
    gap: 10px;
}

.admin-queue-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-queue-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-queue-quick-form {
    display: contents;
}

.button-danger-lite {
    color: #a73b4a;
    border: 1px solid #efc8cf;
    background: #fdecef;
}

.admin-table-section .table-wrap {
    margin-top: 14px;
}

body.page-admin .admin-review-card,
body.page-admin .hero-copy-card,
body.page-admin .game-card,
body.page-admin .hall-card {
    border: 1px solid #dce4ea;
    background: #ffffff;
    box-shadow: none;
}

body.page-admin .empty-state,
body.page-admin .notice-box,
body.page-admin .status-panel {
    border: 1px dashed #ccd7df;
    background: #eef4f7;
}

body.page-admin .table-wrap {
    padding: 6px 10px;
    border: 1px solid #dfe7ec;
    border-radius: 22px;
    background: #f8fbfc;
}

body.page-admin th {
    color: #687a91;
    font-size: 0.88rem;
}

body.page-admin td {
    color: #22324a;
    border-bottom: 1px solid #e7edf2;
}

body.page-admin tbody tr:last-child td {
    border-bottom: 0;
}

body.page-admin .config-row {
    border-bottom: 1px solid #e3ebf0;
}

body.page-admin .proof-image,
body.page-admin .image-row img {
    border: 1px solid #dbe4ea;
    background: #edf2f5;
}

body.page-admin .badge-primary {
    color: #206f5e;
    background: #e3f2ed;
}

body.page-admin .badge-success {
    color: #1c805e;
    background: #e1f3eb;
}

body.page-admin .badge-warning {
    color: #9f6a00;
    background: #fff1da;
}

body.page-admin .badge-accent {
    color: #335fc2;
    background: #e6efff;
}

body.page-admin .badge-danger {
    color: #ad4852;
    background: #fde7e9;
}

body.page-admin-login {
    color: #e8f0fb;
    background:
        radial-gradient(circle at top left, rgba(54, 114, 229, 0.28), transparent 26%),
        radial-gradient(circle at bottom right, rgba(42, 184, 168, 0.24), transparent 24%),
        linear-gradient(180deg, #101c2b 0%, #142234 100%);
}

body.page-admin-login::before {
    display: none;
}

.admin-login-shell {
    min-height: 100vh;
    padding: 32px 20px;
}

.admin-login-frame {
    max-width: 1240px;
    margin: 0 auto;
}

.admin-login-brand {
    margin-bottom: 26px;
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-login-main {
    display: grid;
}

.admin-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 22px;
    align-items: stretch;
}

.admin-login-copy-card {
    padding: 36px;
    border-radius: 30px;
    border: 1px solid rgba(197, 214, 239, 0.14);
    background:
        radial-gradient(circle at top right, rgba(70, 132, 255, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(23, 37, 57, 0.96) 0%, rgba(18, 31, 48, 0.98) 100%);
    box-shadow: 0 30px 70px rgba(4, 8, 15, 0.32);
}

.admin-login-copy-card h1 {
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.admin-login-copy-card p {
    color: #9db1ca;
}

.admin-login-points {
    display: grid;
    gap: 14px;
    margin: 26px 0 0;
}

.admin-login-points article {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(197, 214, 239, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.admin-login-points strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.admin-login-points span {
    color: #9db1ca;
}

.admin-login-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.admin-login-form-card {
    align-self: center;
    padding: 30px;
    border-radius: 30px;
}

body.page-admin-login .section-card {
    border: 1px solid rgba(197, 214, 239, 0.14);
    background: linear-gradient(180deg, rgba(245, 248, 252, 0.98) 0%, rgba(236, 242, 248, 0.98) 100%);
    box-shadow: 0 30px 70px rgba(4, 8, 15, 0.28);
}

body.page-admin-login .section-card::after {
    display: none;
}

body.page-admin-login .section-card h1,
body.page-admin-login .section-card h2,
body.page-admin-login .section-card h3 {
    color: #17253b;
}

body.page-admin-login .section-card p,
body.page-admin-login .inline-tip {
    color: #64758b;
}

body.page-admin-login .section-tag {
    color: #567088;
    border: 1px solid #d7e4eb;
    background: #edf4f7;
}

body.page-admin-login input,
body.page-admin-login textarea,
body.page-admin-login select {
    color: #23314a;
    border: 1px solid #d7e0e7;
    border-radius: 16px;
    background: #ffffff;
}

body.page-admin-login input:focus,
body.page-admin-login textarea:focus,
body.page-admin-login select:focus {
    border-color: rgba(47, 109, 246, 0.55);
    background: #ffffff;
    transform: none;
    box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12);
}

body.page-admin-login .button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #2f72f4 0%, #4d8cff 100%);
    box-shadow: 0 16px 28px rgba(47, 114, 244, 0.2);
}

body.page-admin-login .button-ghost {
    color: #e6eef9;
    border: 1px solid rgba(197, 214, 239, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.admin-login-note {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #d9e4ec;
    background: #edf3f7;
    color: #51667d;
}

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

@media (max-width: 1080px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

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

    .admin-top-summary,
    .admin-overview-head {
        flex-direction: column;
    }

    .admin-summary-cards,
    .admin-mini-pills,
    .admin-board-metrics,
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-queue-grid-provider,
    .admin-queue-grid-wallet,
    .admin-queue-grid-appeal,
    .admin-queue-head,
    .admin-queue-row {
        grid-template-columns: 1fr;
    }

    .admin-queue-body {
        max-height: none;
    }

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

    .site-header {
        position: static;
        flex-wrap: wrap;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .home-hero,
    .two-column,
    .auth-layout,
    .three-column {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 720px) {
    .admin-sidebar,
    .admin-main {
        padding: 14px 12px 24px;
    }

    .admin-login-shell {
        padding: 18px 12px;
    }

    .admin-login-copy-card,
    .admin-login-form-card {
        padding: 22px;
        border-radius: 24px;
    }

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

    .app-shell {
        padding: 14px 12px 36px;
    }

    .section-card,
    .hero-copy-card,
    .game-card,
    .hall-card,
    .admin-review-card {
        padding: 20px;
        border-radius: 22px;
    }

    .site-actions {
        width: 100%;
        justify-content: space-between;
    }

    .stats-grid,
    .admin-kpi-grid,
    .compact-grid,
    .detail-grid,
    .image-row,
    .admin-summary-cards,
    .admin-mini-pills,
    .admin-board-metrics {
        grid-template-columns: 1fr;
    }

    .section-head,
    .game-card-top,
    .hall-card-head,
    .admin-review-top,
    .config-row,
    .admin-board-item {
        flex-direction: column;
    }

    .config-actions {
        width: 100%;
        justify-content: space-between;
    }

    .compact-form {
        min-width: 0;
    }
}

:root {
    --bg: #f4f7fb;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: rgba(255, 255, 255, 0.96);
    --panel-soft: rgba(255, 255, 255, 0.68);
    --line: rgba(124, 149, 181, 0.24);
    --text: #16253a;
    --muted: #6d7f95;
    --accent: #ff9748;
    --accent-alt: #43b6ff;
    --danger: #e66f78;
    --warning: #efb95a;
    --success: #35bc87;
    --shadow: 0 24px 60px rgba(97, 121, 154, 0.16);
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-bottom: 120px;
}

body {
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 158, 89, 0.2), transparent 28%),
        radial-gradient(circle at top right, rgba(67, 182, 255, 0.16), transparent 24%),
        linear-gradient(180deg, #f9fbff 0%, #eef4fb 48%, #f6f8fc 100%);
    -webkit-font-smoothing: antialiased;
}

body::before {
    background-image: none;
}

body,
button,
input,
textarea,
select,
a {
    -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
    color: var(--text);
    border-color: #d9e4ef;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(67, 182, 255, 0.56);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 0 4px rgba(67, 182, 255, 0.12);
}

.app-shell {
    max-width: 1340px;
    padding: 24px 18px 110px;
}

.app-glow {
    opacity: 0.32;
}

.site-header {
    top: 16px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    background: rgba(250, 252, 255, 0.72);
    backdrop-filter: blur(24px) saturate(155%);
    box-shadow: 0 22px 46px rgba(102, 124, 154, 0.14);
}

.brand,
.admin-brand {
    gap: 14px;
}

.brand-copy,
.admin-brand-copy {
    display: grid;
    gap: 4px;
}

.brand strong,
.admin-brand strong {
    letter-spacing: -0.02em;
}

.brand small,
.admin-brand small {
    letter-spacing: 0.04em;
}

.brand-mark,
.admin-brand-mark {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffb36e 0%, #ff9449 38%, #42b5ff 100%);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(104, 145, 196, 0.24);
}

.brand-mark::before,
.admin-brand-mark::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 19px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04));
}

.brand-mark-main {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand strong {
    font-size: 1.08rem;
}

.brand small {
    color: #6d8097;
}

.site-nav a {
    color: #5d7390;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.user-chip {
    border: 1px solid rgba(216, 226, 239, 0.94);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #ff9647 0%, #ffb35d 40%, #43b6ff 100%);
    box-shadow: 0 18px 32px rgba(101, 144, 193, 0.26);
}

.button-ghost {
    color: #26405d;
    border: 1px solid rgba(216, 226, 239, 0.96);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.flash-success,
.flash-error {
    backdrop-filter: blur(16px);
}

.section-card,
.game-card,
.hall-card,
.admin-review-card,
.hero-copy-card {
    border: 1px solid rgba(220, 229, 240, 0.96);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 254, 0.88)),
        var(--panel);
    box-shadow: var(--shadow);
}

.section-tag {
    border: 1px solid rgba(216, 226, 239, 0.92);
    background: rgba(255, 255, 255, 0.8);
    color: #58708b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.stat-card,
.info-box,
.detail-item {
    border: 1px solid rgba(220, 229, 240, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 250, 253, 0.82));
}

.home-hero-card {
    background:
        radial-gradient(circle at top right, rgba(67, 182, 255, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255, 151, 72, 0.12), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.92));
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.hero-kicker-note {
    color: #637997;
    font-size: 0.92rem;
    font-weight: 600;
}

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

.hero-highlight {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(219, 227, 239, 0.94);
    background: rgba(255, 255, 255, 0.84);
    color: #45607f;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.hero-side-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 249, 253, 0.88)),
        var(--panel);
}

.rule-list {
    color: #38506d;
}

.home-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-shortcut-card {
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px solid rgba(218, 228, 239, 0.96);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.9)),
        var(--panel);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-shortcut-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 52px rgba(97, 121, 154, 0.18);
}

.home-shortcut-card strong {
    font-size: 1.05rem;
}

.home-shortcut-card small {
    color: #6e8197;
    line-height: 1.55;
}

.carousel-card {
    border: 1px solid rgba(181, 208, 234, 0.28);
    background:
        radial-gradient(circle at top right, rgba(255, 189, 122, 0.22), transparent 30%),
        radial-gradient(circle at bottom left, rgba(67, 182, 255, 0.22), transparent 36%),
        linear-gradient(135deg, rgba(48, 73, 111, 0.95), rgba(62, 112, 180, 0.92));
}

.carousel-body p,
.carousel-body h3,
.carousel-body .section-tag {
    color: #f6f9ff;
}

.carousel-body .section-tag {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
}

.chip,
.chip-button {
    color: #637996;
    border-color: rgba(216, 226, 239, 0.92);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.chip.is-active,
.chip-button:hover {
    color: #16304e;
    border-color: rgba(255, 151, 72, 0.34);
    background: linear-gradient(180deg, rgba(255, 247, 238, 0.98), rgba(241, 248, 255, 0.95));
}

.site-footer {
    color: #6f8298;
}

.mobile-dock {
    display: none;
}

body.page-admin {
    color: #1c2c44;
    background:
        radial-gradient(circle at top right, rgba(255, 182, 115, 0.16), transparent 20%),
        radial-gradient(circle at top left, rgba(67, 182, 255, 0.14), transparent 22%),
        linear-gradient(180deg, #eef4f8 0%, #f6f8fb 100%);
}

.admin-sidebar {
    background: linear-gradient(180deg, #425a78 0%, #31475f 100%);
    box-shadow: 18px 0 40px rgba(64, 88, 120, 0.14);
}

.admin-brand {
    color: #f7fbff;
}

.admin-brand small,
.admin-profile-card span {
    color: #d7e4f1;
}

.admin-profile-card {
    background: rgba(255, 255, 255, 0.08);
}

.admin-menu a {
    color: #dbe8f3;
    background: rgba(255, 255, 255, 0.05);
}

.admin-menu a:hover,
.admin-menu a.is-active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 194, 136, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.page-admin .button-primary,
body.page-admin-login .button-primary {
    background: linear-gradient(135deg, #ff9647 0%, #ffb35c 40%, #43b6ff 100%);
    box-shadow: 0 18px 30px rgba(102, 143, 193, 0.2);
}

body.page-admin .button-ghost {
    color: #27405d;
    background: rgba(255, 255, 255, 0.88);
}

body.page-admin .section-card,
body.page-admin .admin-summary-cards article,
body.page-admin .admin-mini-pill,
body.page-admin .admin-board-item,
body.page-admin .admin-board-metrics article,
body.page-admin .kpi-card,
body.page-admin .chart-card,
body.page-admin .table-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

body.page-admin .section-tag,
body.page-admin-login .section-tag {
    background: linear-gradient(180deg, #f7fbfd 0%, #eef4f7 100%);
}

.admin-user-table-wrap {
    padding: 0;
    overflow: auto;
}

body.page-admin .admin-user-table-wrap table {
    min-width: 1320px;
}

body.page-admin .admin-user-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 18px 16px;
    background: #eef4f8;
}

body.page-admin .admin-user-table-wrap tbody tr:hover {
    background: rgba(67, 182, 255, 0.04);
}

.presence-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}

.presence-badge i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: block;
}

.presence-badge.is-online {
    color: #16795b;
    background: rgba(53, 188, 135, 0.14);
}

.presence-badge.is-online i {
    background: #35bc87;
    box-shadow: 0 0 0 4px rgba(53, 188, 135, 0.14);
}

.presence-badge.is-offline {
    color: #6b7b90;
    background: rgba(122, 143, 168, 0.14);
}

.presence-badge.is-offline i {
    background: #8ea0b4;
    box-shadow: 0 0 0 4px rgba(142, 160, 180, 0.12);
}

.admin-user-actions {
    display: grid;
    gap: 10px;
    min-width: 380px;
}

.admin-user-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 10px;
    align-items: center;
}

.admin-user-adjust-row {
    grid-template-columns: 104px 120px minmax(0, 1fr) 92px;
}

.admin-user-action-row .button {
    width: 100%;
}

.admin-user-action-row input,
.admin-user-action-row select {
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 14px;
}

body.page-admin-login {
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 173, 108, 0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(67, 182, 255, 0.14), transparent 22%),
        linear-gradient(180deg, #f2f6fb 0%, #eef4fb 100%);
}

.admin-login-copy-card {
    background:
        radial-gradient(circle at top right, rgba(67, 182, 255, 0.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 151, 72, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 252, 0.98) 100%);
}

.admin-login-copy-card h1,
.admin-login-copy-card strong {
    color: #17253b;
}

.admin-login-copy-card p,
.admin-login-points span {
    color: #66788f;
}

.admin-login-points article {
    background: rgba(255, 255, 255, 0.7);
}

body.page-admin-login .button-ghost {
    color: #27405d;
    border-color: rgba(216, 226, 239, 0.92);
    background: rgba(255, 255, 255, 0.74);
}

@media (max-width: 1080px) {
    .home-shortcut-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-user-actions {
        min-width: 320px;
    }
}

@media (max-width: 720px) {
    .app-shell {
        padding: 12px 12px calc(96px + env(safe-area-inset-bottom));
    }

    .site-header {
        padding: 14px;
        gap: 14px;
        border-radius: 26px;
    }

    .site-nav {
        display: none;
    }

    .site-actions {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .site-actions .button {
        flex: 1;
    }

    .brand {
        min-width: 0;
        flex: 1;
    }

    .brand-mark {
        width: 50px;
        height: 50px;
        border-radius: 18px;
    }

    .section-card,
    .hero-copy-card,
    .game-card,
    .hall-card,
    .admin-review-card {
        border-radius: 26px;
    }

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

    .home-shortcut-card {
        min-height: 118px;
        padding: 18px;
        border-radius: 22px;
    }

    .hero-highlights,
    .filter-chips {
        flex-wrap: nowrap;
        overflow: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .hero-highlight,
    .chip {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

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

    .carousel,
    .carousel-card,
    .carousel-body {
        min-height: 240px;
    }

    .mobile-dock {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.9);
        border-radius: 28px;
        background: rgba(251, 253, 255, 0.84);
        backdrop-filter: blur(26px) saturate(165%);
        box-shadow: 0 22px 50px rgba(91, 114, 146, 0.2);
    }

    .mobile-dock a {
        display: grid;
        place-items: center;
        gap: 4px;
        min-height: 50px;
        padding: 7px 4px;
        border-radius: 16px;
        color: #617893;
        font-size: 0.74rem;
        font-weight: 600;
    }

    .mobile-dock a::before {
        content: "";
        width: 16px;
        height: 16px;
        border-radius: 6px;
        background: linear-gradient(135deg, rgba(255, 151, 72, 0.26), rgba(67, 182, 255, 0.32));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
    }

    .mobile-dock a.is-active {
        color: #16304e;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 12px 24px rgba(92, 115, 146, 0.14);
    }

    .mobile-dock a.is-active::before,
    .mobile-dock-primary::before {
        background: linear-gradient(135deg, #ff9647, #43b6ff);
    }

    .mobile-dock-primary {
        background: linear-gradient(180deg, rgba(255, 244, 235, 0.95), rgba(240, 248, 255, 0.95));
        color: #16304e;
    }

    .site-footer {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .admin-user-actions {
        min-width: 300px;
    }

    .admin-user-action-row,
    .admin-user-adjust-row {
        grid-template-columns: 1fr;
    }

    body.page-admin .admin-user-table-wrap table {
        min-width: 1040px;
    }
}

.order-center-hero {
    background:
        radial-gradient(circle at top right, rgba(67, 182, 255, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255, 151, 72, 0.14), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.92));
}

.order-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.order-summary-card {
    padding: 20px;
    border: 1px solid rgba(220, 229, 240, 0.96);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 254, 0.85));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.order-summary-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
    color: #1a2940;
}

.order-summary-card span {
    color: #6d8095;
}

.order-feed {
    display: grid;
    gap: 16px;
}

.order-item-card {
    display: grid;
    gap: 16px;
    padding: 22px;
    border: 1px solid rgba(220, 229, 240, 0.96);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.9));
    box-shadow: 0 18px 40px rgba(97, 121, 154, 0.12);
}

.order-item-head,
.order-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.order-item-head h3 {
    margin: 0 0 6px;
}

.order-item-head p {
    margin: 0;
    color: #6d8095;
    font-size: 0.92rem;
}

.order-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.order-meta-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(219, 227, 239, 0.94);
    background: rgba(255, 255, 255, 0.84);
    color: #45607f;
    font-size: 0.92rem;
    font-weight: 600;
}

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

.order-status-note {
    padding: 16px 18px;
    margin: 0;
}

.order-status-note strong {
    display: block;
    margin-bottom: 6px;
}

@media (max-width: 1080px) {
    .order-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .order-summary-grid,
    .order-item-grid {
        grid-template-columns: 1fr 1fr;
    }

    .order-item-card {
        padding: 18px;
        border-radius: 24px;
    }

    .order-item-head,
    .order-item-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-item-actions .button {
        width: 100%;
    }

    .order-meta-pills {
        flex-wrap: nowrap;
        overflow: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .order-meta-pills span {
        flex: 0 0 auto;
    }
}

.mobile-home-stage,
.mobile-home-orders {
    display: none;
}

.mobile-home-hero {
    padding: 26px 22px 22px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(67, 182, 255, 0.32), transparent 34%),
        radial-gradient(circle at top right, rgba(188, 67, 255, 0.22), transparent 32%),
        linear-gradient(135deg, #3f85ff 0%, #6a62ff 48%, #ca39ff 100%);
    box-shadow: 0 26px 60px rgba(84, 108, 182, 0.28);
    color: #ffffff;
}

.mobile-home-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mobile-home-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mobile-home-brand strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1.05;
}

.mobile-home-brand small {
    color: rgba(255, 255, 255, 0.84);
}

.mobile-home-logo {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffb36e 0%, #ff9449 40%, #43b6ff 100%);
    box-shadow: 0 16px 28px rgba(27, 48, 96, 0.24);
}

.mobile-home-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.mobile-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.mobile-feature-card {
    display: grid;
    gap: 6px;
    min-height: 104px;
    padding: 18px;
    border-radius: 24px;
    color: #17243a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.mobile-feature-card strong {
    font-size: 1.05rem;
}

.mobile-feature-card small {
    color: #627793;
}

.mobile-feature-card.is-warm {
    background: linear-gradient(180deg, #fff3e6 0%, #fff8f1 100%);
}

.mobile-feature-card.is-cool {
    background: linear-gradient(180deg, #eef6ff 0%, #f5f9ff 100%);
}

.mobile-feature-card.is-soft {
    background: linear-gradient(180deg, #fff0f7 0%, #fff7fb 100%);
}

.mobile-game-strip {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.mobile-game-entry {
    display: grid;
    gap: 8px;
    min-width: 116px;
    padding: 14px 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.mobile-game-entry strong {
    font-size: 0.95rem;
}

.mobile-game-entry small {
    color: rgba(255, 255, 255, 0.78);
}

.mobile-game-entry-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 182, 115, 0.94), rgba(99, 212, 255, 0.86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.mobile-game-entry.is-active {
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 28px rgba(29, 41, 95, 0.2);
}

.mobile-home-order-list {
    display: grid;
    gap: 14px;
}

.mobile-home-order-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(220, 229, 240, 0.96);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.9));
    box-shadow: 0 18px 36px rgba(97, 121, 154, 0.12);
}

.mobile-home-order-head,
.mobile-home-order-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-home-order-head h3 {
    margin: 0 0 4px;
}

.mobile-home-order-head p,
.mobile-home-order-meta span {
    color: #6d8095;
}

.mobile-home-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.profile-home-hero {
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(67, 182, 255, 0.26), transparent 34%),
        radial-gradient(circle at top right, rgba(188, 67, 255, 0.2), transparent 30%),
        linear-gradient(135deg, #42a1ff 0%, #5d6bff 45%, #d03bff 100%);
    box-shadow: 0 26px 60px rgba(84, 108, 182, 0.24);
}

.profile-home-cover {
    padding: 28px 24px 34px;
    color: #ffffff;
}

.profile-home-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-home-identity {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.profile-home-avatar {
    width: 68px;
    height: 68px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.profile-home-identity h1 {
    margin: 0 0 6px;
    color: #ffffff;
}

.profile-home-identity p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.profile-home-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    white-space: nowrap;
}

.profile-home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.profile-home-stats article {
    padding: 14px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
}

.profile-home-stats strong {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
    color: #ffffff;
}

.profile-home-stats span {
    color: rgba(255, 255, 255, 0.82);
}

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

.profile-quick-card {
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px solid rgba(220, 229, 240, 0.96);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.9));
    box-shadow: 0 18px 36px rgba(97, 121, 154, 0.12);
}

.profile-quick-card strong {
    font-size: 1.2rem;
}

.profile-quick-card small {
    color: #6d8095;
    line-height: 1.55;
}

.profile-service-panel h2 {
    margin-bottom: 18px;
}

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

.profile-service-item {
    display: grid;
    place-items: center;
    min-height: 100px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(220, 229, 240, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 254, 0.88));
    color: #2b4361;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 720px) {
    body.page-home .site-header {
        display: none;
    }

    body.page-home .flash-stack {
        margin-top: 10px;
    }

    .mobile-home-stage,
    .mobile-home-orders {
        display: block;
    }

    .desktop-home-only {
        display: none;
    }

    .mobile-feature-grid,
    .profile-home-stats,
    .profile-quick-grid,
    .profile-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-home-hero,
    .profile-home-hero {
        border-radius: 30px;
    }

    .mobile-home-topbar,
    .profile-home-top,
    .mobile-home-order-head,
    .mobile-home-order-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .mobile-home-chip,
    .profile-home-link {
        min-height: 38px;
        padding: 0 14px;
    }

    .mobile-feature-card,
    .mobile-home-order-card,
    .profile-quick-card {
        padding: 18px;
        border-radius: 24px;
    }

    .mobile-home-order-actions .button,
    .mobile-home-order-actions form,
    .mobile-home-order-actions form .button {
        width: 100%;
    }

    .profile-home-cover {
        padding: 22px 18px 28px;
    }

    .profile-home-stats strong {
        font-size: 1.6rem;
    }

    .profile-service-item {
        min-height: 86px;
        border-radius: 20px;
    }
}

.auth-screen-shell {
    min-height: 100vh;
    padding: 24px 16px;
    display: grid;
    align-items: center;
}

.auth-screen-frame {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.auth-screen-main {
    display: grid;
    gap: 18px;
}

body.page-login,
body.page-register {
    background:
        radial-gradient(circle at top left, rgba(255, 173, 108, 0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(67, 182, 255, 0.14), transparent 22%),
        linear-gradient(180deg, #f6f9fd 0%, #edf3fa 100%);
}

.profile-inline-balance {
    color: #4d8dd7;
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
}

.profile-logout-panel {
    display: grid;
    gap: 12px;
}

.profile-logout-panel p {
    margin: 0;
}

@media (max-width: 720px) {
    .auth-screen-shell {
        padding: 18px 12px 26px;
    }

    .auth-screen-main .hero-copy-card {
        display: none;
    }

    .auth-screen-main .auth-card {
        padding: 24px 20px;
        border-radius: 28px;
    }

    .app-shell-mobile-quiet .site-header {
        display: none;
    }

    .app-shell-mobile-quiet .flash-stack {
        margin-top: 8px;
    }

    .profile-inline-balance {
        display: inline-block;
        margin-left: 6px;
    }
}

body.page-profile,
body.page-wallet {
    color: #1e2c42;
    background:
        radial-gradient(circle at top left, rgba(255, 168, 92, 0.18), transparent 22%),
        radial-gradient(circle at top right, rgba(67, 182, 255, 0.16), transparent 24%),
        linear-gradient(180deg, #f7f8fb 0%, #eff3f8 100%);
}

body.page-profile::before,
body.page-wallet::before {
    display: none;
}

body.page-profile input,
body.page-profile textarea,
body.page-profile select,
body.page-wallet input,
body.page-wallet textarea,
body.page-wallet select {
    color: #24354d;
    border: 1px solid #dbe5ef;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

body.page-profile input:focus,
body.page-profile textarea:focus,
body.page-profile select:focus,
body.page-wallet input:focus,
body.page-wallet textarea:focus,
body.page-wallet select:focus {
    border-color: rgba(67, 132, 255, 0.44);
    background: #ffffff;
    transform: none;
    box-shadow: 0 0 0 4px rgba(67, 132, 255, 0.12);
}

body.page-profile .button-primary,
body.page-wallet .button-primary {
    background: linear-gradient(135deg, #ff9d49 0%, #ffb76c 42%, #42b4ff 100%);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(103, 142, 194, 0.22);
}

body.page-profile .button-ghost,
body.page-wallet .button-ghost {
    color: #2b4060;
    border-color: #dbe5ef;
    background: rgba(255, 255, 255, 0.9);
}

body.page-profile .page-wrap,
body.page-wallet .page-wrap {
    gap: 14px;
}

.profile-page,
.wallet-page {
    display: grid;
    gap: 14px;
}

.profile-card,
.wallet-card {
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(224, 231, 240, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.94));
    box-shadow: 0 18px 38px rgba(98, 119, 150, 0.1);
}

.profile-card h2,
.wallet-card h2 {
    margin: 0;
    color: #1a2a42;
    font-size: 1.05rem;
}

.profile-card p,
.wallet-card p,
.wallet-card small,
.profile-card small {
    color: #71849b;
}

.profile-hero-card {
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 26%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(135deg, #44a2ff 0%, #5f6eff 48%, #d33eff 100%);
    color: #ffffff;
}

.profile-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.profile-identity-copy h1 {
    margin: 0 0 6px;
    font-size: 2rem;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.profile-identity-copy p,
.profile-metric-row span {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.profile-hero-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.profile-metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.profile-metric-row article {
    padding: 12px 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
}

.profile-metric-row strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.5rem;
    color: #ffffff;
}

.profile-promo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #2f3138 0%, #3f434c 46%, #1f2127 100%);
}

.profile-promo-card strong,
.profile-promo-card p {
    color: #fff3dd;
}

.profile-promo-card p {
    margin: 6px 0 0;
}

.profile-pill-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd3a3, #f8c286);
    color: #37240f;
    font-size: 0.95rem;
    font-weight: 700;
}

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

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

.profile-entry-item {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 16px 12px 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(245, 249, 253, 0.96), rgba(255, 255, 255, 0.98));
    border: 1px solid #e2ebf4;
    text-align: center;
}

.profile-entry-item strong,
.profile-service-link strong,
.profile-support-link strong {
    color: #1d2c44;
}

.profile-entry-item small,
.profile-service-link small,
.profile-support-link small {
    line-height: 1.45;
}

.profile-entry-icon,
.profile-service-icon,
.wallet-row-icon {
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
}

.profile-entry-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(103, 128, 164, 0.14);
}

.profile-entry-icon.is-order,
.wallet-row-icon.is-income {
    background: linear-gradient(135deg, #6c92ff, #8b6dff);
}

.profile-entry-icon.is-publish,
.wallet-row-icon.is-request {
    background: linear-gradient(135deg, #ffb24b, #ff875d);
}

.profile-entry-icon.is-wallet,
.wallet-row-icon.is-balance,
.wallet-row-icon.is-log {
    background: linear-gradient(135deg, #ac5bff, #d55cff);
}

.wallet-row-icon.is-frozen,
.wallet-row-icon.is-expense {
    background: linear-gradient(135deg, #46b7ff, #58d4cf);
}

.profile-service-grid-compact,
.profile-support-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.profile-service-link,
.profile-support-link {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 108px;
    padding: 14px 10px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 253, 0.94));
    border: 1px solid #e2ebf4;
    text-align: center;
}

.profile-service-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7f5eff, #ff4fd8);
    box-shadow: 0 10px 20px rgba(132, 104, 212, 0.16);
}

.profile-logout-card {
    gap: 10px;
}

.profile-logout-card p {
    margin: 0 0 6px;
}

.wallet-page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 10px;
}

.wallet-page-topbar h1 {
    margin: 0;
    color: #18253b;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
}

.wallet-back-link,
.wallet-topbar-spacer {
    min-width: 52px;
}

.wallet-back-link {
    color: #2d4567;
    font-weight: 700;
}

.wallet-list,
.wallet-history-list {
    display: grid;
    gap: 12px;
}

.wallet-row,
.wallet-nav-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #edf2f7;
}

.wallet-row:last-child,
.wallet-nav-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.wallet-row:first-child,
.wallet-nav-row:first-child {
    padding-top: 0;
}

.wallet-row-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(100, 126, 162, 0.14);
}

.wallet-row-copy strong {
    display: block;
    color: #18253b;
    font-size: 1.2rem;
    line-height: 1.2;
}

.wallet-row-copy em {
    font-style: normal;
    font-size: 0.88em;
    color: #223959;
}

.wallet-row-copy p {
    margin: 6px 0 0;
}

.wallet-row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #438cff 0%, #7650ff 100%);
    color: #ffffff;
    font-weight: 700;
}

.wallet-row-action.is-secondary {
    background: linear-gradient(135deg, #4ab5ff 0%, #4ad7c8 100%);
}

.wallet-chevron {
    color: #98a6b8;
    font-size: 1.6rem;
    line-height: 1;
}

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

.wallet-form-stack {
    gap: 14px;
}

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

.wallet-history-item {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(246, 249, 253, 0.96), rgba(255, 255, 255, 0.98));
    border: 1px solid #e3ebf3;
}

.wallet-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wallet-history-head strong,
.wallet-history-head span {
    color: #1a2a42;
}

.wallet-history-item p,
.wallet-history-item small,
.wallet-history-item time {
    margin: 0;
    color: #71849b;
}

@media (max-width: 1080px) {
    .profile-service-grid-compact,
    .profile-support-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {
    .app-shell-profile {
        padding-top: 10px;
    }

    .app-shell-profile .site-footer {
        display: none;
    }

    .profile-card,
    .wallet-card {
        padding: 18px 16px;
        border-radius: 24px;
    }

    .profile-hero-top,
    .profile-promo-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-identity-copy h1 {
        font-size: 1.45rem;
    }

    .profile-metric-row {
        gap: 10px;
    }

    .profile-metric-row strong {
        font-size: 1.2rem;
    }

    .profile-entry-grid {
        gap: 10px;
    }

    .profile-entry-item {
        padding: 14px 10px 12px;
        border-radius: 20px;
    }

    .profile-entry-item strong {
        font-size: 1rem;
    }

    .profile-entry-item small {
        font-size: 0.82rem;
    }

    .profile-service-grid-compact,
    .profile-support-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .profile-service-link,
    .profile-support-link {
        min-height: 88px;
        padding: 12px 8px;
        border-radius: 18px;
    }

    .profile-service-link strong,
    .profile-support-link strong {
        font-size: 0.9rem;
    }

    .profile-service-link small,
    .profile-support-link small {
        font-size: 0.72rem;
    }

    .wallet-page-topbar {
        min-height: 48px;
        padding: 0 2px;
    }

    .wallet-page-topbar h1 {
        font-size: 1.2rem;
    }

    .wallet-row,
    .wallet-nav-row {
        gap: 12px;
    }

    .wallet-row-icon {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .wallet-row-copy strong {
        font-size: 1rem;
    }

    .wallet-row-copy p,
    .wallet-history-item small,
    .wallet-history-item time {
        font-size: 0.82rem;
    }

    .wallet-row-action {
        min-width: 74px;
        min-height: 38px;
        border-radius: 14px;
        font-size: 0.92rem;
    }
}

.mobile-screen-only {
    display: none;
}

.desktop-screen-only {
    display: block;
}

.mobile-home-navline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mobile-home-navtabs {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.96rem;
    font-weight: 600;
}

.mobile-home-navtabs .is-active {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mobile-home-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(35, 64, 160, 0.24);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.mobile-home-order-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.mobile-home-order-cover {
    width: 72px;
    height: 72px;
    display: inline-grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffb05c 0%, #ff8a66 34%, #43b6ff 100%);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 18px 30px rgba(108, 124, 175, 0.18);
}

.mobile-home-order-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.mobile-home-order-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-home-order-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f1f5fb;
    color: #5d728d;
    font-size: 0.8rem;
    font-weight: 700;
}

.mobile-home-banner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, #25262c 0%, #2f3137 100%);
    box-shadow: 0 20px 36px rgba(42, 46, 62, 0.22);
}

.mobile-home-banner-card strong,
.mobile-home-banner-card p {
    color: #fff2d6;
}

.mobile-home-banner-card p {
    margin: 6px 0 0;
}

.app-mobile-screen {
    display: grid;
    gap: 14px;
}

.app-mobile-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.app-mobile-topbar h1 {
    margin: 6px 0 0;
    color: #1b2b42;
    font-size: 1.95rem;
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.app-mobile-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #6d7f95;
    font-size: 0.82rem;
    font-weight: 700;
}

.app-mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid #dfe7f0;
    background: rgba(255, 255, 255, 0.86);
    color: #355173;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.app-mobile-card {
    padding: 18px 16px;
    border-radius: 24px;
    border: 1px solid rgba(224, 231, 240, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.94));
    box-shadow: 0 18px 36px rgba(100, 120, 150, 0.1);
}

.app-mobile-card h2,
.app-mobile-card h3,
.app-mobile-card strong {
    color: #1b2b42;
}

.app-mobile-card p,
.app-mobile-card small {
    color: #71849b;
}

.app-mobile-hero-card {
    background:
        radial-gradient(circle at top right, rgba(67, 182, 255, 0.16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255, 164, 83, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.94));
}

.app-mobile-mini-pills,
.app-mobile-order-meta,
.app-mobile-chip-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-mobile-mini-pills span,
.app-mobile-order-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e3ebf4;
    color: #5e748e;
    font-size: 0.8rem;
    font-weight: 700;
}

.app-mobile-form label {
    gap: 7px;
}

.app-mobile-form label span {
    color: #61758f;
    font-size: 0.88rem;
    font-weight: 700;
}

.app-mobile-form input,
.app-mobile-form select,
.app-mobile-form textarea {
    padding: 13px 14px;
    border-radius: 16px;
}

.app-mobile-chip-scroll {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.app-mobile-chip-scroll .chip-button {
    flex: 0 0 auto;
}

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

.app-mobile-note-list {
    display: grid;
    gap: 10px;
}

.app-mobile-note-list article {
    padding: 14px;
    border-radius: 18px;
    background: #f5f8fc;
    border: 1px solid #e5ecf4;
}

.app-mobile-note-list strong {
    display: block;
    margin-bottom: 6px;
}

.app-mobile-note-list p {
    margin: 0;
}

.auth-layout-compact {
    align-items: stretch;
}

.auth-compact-copy {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 18px;
}

.auth-compact-copy h1 {
    margin: 0;
    color: #1c2c43;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.auth-compact-copy p {
    margin: 0;
    color: #70829a;
}

.auth-compact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-compact-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #e2eaf2;
    color: #556b86;
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-card-compact {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 26px 24px;
}

.auth-card-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.auth-card-brand strong,
.auth-card-brand small {
    display: block;
}

.auth-card-brand strong {
    color: #1c2c43;
}

.auth-card-brand small {
    color: #70829a;
}

.auth-card-logo {
    width: 50px;
    height: 50px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffb367 0%, #ff954f 42%, #43b6ff 100%);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(100, 122, 164, 0.16);
}

.auth-compact-form label span {
    color: #61758f;
    font-size: 0.88rem;
    font-weight: 700;
}

.app-mobile-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.app-mobile-summary-grid article {
    padding: 14px 8px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 254, 0.94));
    border: 1px solid #e2eaf3;
    box-shadow: 0 16px 28px rgba(102, 120, 148, 0.08);
    text-align: center;
}

.app-mobile-summary-grid strong {
    display: block;
    margin-bottom: 5px;
    color: #1b2b42;
    font-size: 1.2rem;
}

.app-mobile-summary-grid span {
    color: #71849b;
    font-size: 0.78rem;
}

.app-mobile-feed {
    display: grid;
    gap: 12px;
}

.app-mobile-order-card {
    display: grid;
    gap: 12px;
    padding: 18px 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.94));
    border: 1px solid rgba(224, 231, 240, 0.96);
    box-shadow: 0 18px 36px rgba(100, 120, 150, 0.1);
}

.app-mobile-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.app-mobile-order-head h3 {
    margin: 0 0 4px;
    color: #1b2b42;
    font-size: 1rem;
}

.app-mobile-order-head p {
    margin: 0;
    color: #74879d;
    font-size: 0.82rem;
}

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

.app-mobile-order-grid div,
.app-mobile-inline-note {
    padding: 12px 13px;
    border-radius: 18px;
    background: #f5f8fc;
    border: 1px solid #e5ecf4;
}

.app-mobile-order-grid strong,
.app-mobile-inline-note strong {
    display: block;
    margin-bottom: 6px;
    color: #304760;
    font-size: 0.82rem;
}

.app-mobile-order-grid p,
.app-mobile-inline-note p {
    margin: 0;
    color: #6d829b;
    font-size: 0.84rem;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .mobile-screen-only {
        display: block;
    }

    .desktop-screen-only {
        display: none;
    }

    .button,
    .button-small {
        min-height: 42px;
        padding: 0 15px;
        border-radius: 14px;
        font-size: 0.92rem;
    }

    .section-tag {
        min-height: 30px;
        padding: 0 12px;
        margin-bottom: 10px;
        font-size: 0.78rem;
    }

    body.page-home .page-wrap {
        gap: 14px;
    }

    body.page-home #hall {
        margin-top: 0;
    }

    .mobile-home-hero {
        padding: 18px 16px 16px;
        border-radius: 28px;
    }

    .mobile-home-brand strong {
        font-size: 1.4rem;
    }

    .mobile-home-brand small {
        font-size: 0.8rem;
    }

    .mobile-home-logo {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }

    .mobile-home-chip {
        min-height: 34px;
        padding: 0 12px;
        font-size: 0.82rem;
    }

    .mobile-feature-grid {
        gap: 10px;
        margin-top: 16px;
    }

    .mobile-feature-card {
        min-height: 86px;
        padding: 14px;
        border-radius: 18px;
    }

    .mobile-feature-card strong {
        font-size: 0.96rem;
    }

    .mobile-feature-card small {
        font-size: 0.76rem;
    }

    .mobile-game-strip {
        gap: 10px;
        margin-top: 16px;
    }

    .mobile-game-entry {
        min-width: 84px;
        gap: 6px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        text-align: center;
    }

    .mobile-game-entry strong {
        font-size: 0.74rem;
        color: #ffffff;
    }

    .mobile-game-entry small {
        display: none;
    }

    .mobile-game-entry-icon {
        width: 52px;
        height: 52px;
        margin: 0 auto;
        border-radius: 18px;
    }

    .mobile-home-order-list {
        gap: 10px;
    }

    .mobile-home-order-card {
        padding: 14px;
        border-radius: 22px;
    }

    .mobile-home-order-cover {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 1.2rem;
    }

    .mobile-home-order-head {
        flex-direction: row;
        align-items: flex-start;
    }

    .mobile-home-order-head h3 {
        font-size: 0.98rem;
    }

    .mobile-home-order-head p,
    .mobile-home-order-tags span {
        font-size: 0.76rem;
    }

    .mobile-home-order-actions {
        flex-direction: row;
        align-items: center;
    }

    .mobile-home-order-actions .button,
    .mobile-home-order-actions form,
    .mobile-home-order-actions form .button {
        width: auto;
    }

    .mobile-home-banner-card {
        padding: 14px 16px;
        border-radius: 22px;
    }

    .mobile-home-banner-card strong {
        font-size: 0.98rem;
    }

    .mobile-home-banner-card p {
        font-size: 0.8rem;
    }

    .app-mobile-topbar h1 {
        font-size: 1.52rem;
    }

    .app-mobile-link {
        min-height: 34px;
        padding: 0 12px;
        border-radius: 14px;
        font-size: 0.78rem;
    }

    .app-mobile-card {
        padding: 16px 14px;
        border-radius: 22px;
    }

    .app-mobile-form input,
    .app-mobile-form select,
    .app-mobile-form textarea {
        padding: 12px 13px;
    }

    .app-mobile-summary-grid {
        gap: 8px;
    }

    .app-mobile-summary-grid article {
        padding: 12px 6px;
        border-radius: 18px;
    }

    .app-mobile-summary-grid strong {
        font-size: 1.05rem;
    }

    .app-mobile-order-card {
        padding: 16px 14px;
        border-radius: 22px;
    }

    .app-mobile-order-head h3 {
        font-size: 0.96rem;
    }

    .app-mobile-order-grid {
        gap: 8px;
    }

    .auth-layout-compact {
        grid-template-columns: 1fr;
    }

    .auth-compact-copy {
        gap: 10px;
        padding: 0 4px;
    }

    .auth-compact-copy h1 {
        font-size: 1.6rem;
    }

    .auth-compact-copy p {
        font-size: 0.88rem;
    }

    .auth-compact-pills {
        gap: 8px;
    }

    .auth-compact-pills span {
        min-height: 30px;
        padding: 0 12px;
        font-size: 0.76rem;
    }

    .auth-card-compact {
        padding: 22px 18px;
        border-radius: 24px;
    }

.auth-card-logo {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 1.15rem;
    }
}

.table-link {
    color: #3a7dff;
    font-weight: 600;
}

.order-mobile-screen {
    gap: 14px;
}

.order-mobile-hero-card {
    display: grid;
    gap: 14px;
    background:
        radial-gradient(circle at top left, rgba(255, 173, 96, 0.2), transparent 34%),
        radial-gradient(circle at top right, rgba(118, 197, 255, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.95));
}

.order-mobile-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.order-mobile-code {
    color: #1b2b42;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.order-mobile-hero-card h1 {
    margin: -4px 0 0;
    color: #25374f;
    font-size: 1.18rem;
    line-height: 1.3;
}

.order-mobile-chip-row,
.order-desktop-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order-mobile-chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d8e4ef;
    background: rgba(255, 255, 255, 0.76);
    color: #617893;
    font-size: 0.83rem;
    font-weight: 600;
}

.order-mobile-stage-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 173, 95, 0.13), rgba(96, 183, 255, 0.14));
    border: 1px solid rgba(206, 222, 239, 0.94);
}

.order-mobile-stage-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #6c819a;
    font-size: 0.73rem;
    font-weight: 700;
}

.order-mobile-stage-card strong {
    display: block;
    margin-top: 8px;
    margin-bottom: 6px;
    color: #1b2b42;
    font-size: 1rem;
}

.order-mobile-stage-card p {
    margin: 0;
    color: #6c819a;
    font-size: 0.84rem;
    line-height: 1.6;
}

.order-mobile-stage-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffad5f, #61b9ff);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 14px 26px rgba(101, 145, 198, 0.2);
}

.order-mobile-jump-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order-mobile-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d9e4ef;
    background: rgba(255, 255, 255, 0.74);
    color: #667d98;
    font-size: 0.8rem;
    font-weight: 700;
}

.order-mobile-jump.is-accent {
    border-color: rgba(108, 183, 255, 0.24);
    background: linear-gradient(135deg, rgba(255, 174, 88, 0.18), rgba(96, 183, 255, 0.2));
    color: #22415c;
}

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

.order-mobile-detail-grid > div,
.order-mobile-description {
    padding: 14px 15px;
    border-radius: 20px;
    border: 1px solid #e2eaf2;
    background: rgba(246, 249, 253, 0.9);
}

.order-mobile-detail-grid strong,
.order-mobile-description strong {
    display: block;
    margin-bottom: 8px;
    color: #304760;
    font-size: 0.82rem;
}

.order-mobile-detail-grid p,
.order-mobile-description p {
    margin: 0;
    color: #6d829b;
    line-height: 1.55;
}

.order-mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.order-mobile-card-head h2,
.order-mobile-chat-head h2 {
    margin: 8px 0 6px;
    font-size: 1.55rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.order-mobile-card-head p,
.order-mobile-chat-head p {
    margin: 0;
    line-height: 1.65;
}

.order-mobile-chat-card {
    gap: 14px;
}

.order-mobile-chat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.order-mobile-chat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 174, 88, 0.18), rgba(96, 183, 255, 0.2));
    color: #27435d;
    font-size: 0.78rem;
    font-weight: 700;
}

.order-mobile-action-card {
    background:
        radial-gradient(circle at right top, rgba(105, 193, 255, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.94));
}

.order-desktop-hero {
    display: grid;
    gap: 18px;
}

.order-desktop-topline {
    align-items: center;
    justify-content: space-between;
}

.order-desktop-topline strong {
    color: #1b2b42;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.order-desktop-jump-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.order-chat-panel {
    display: grid;
    gap: 14px;
}

.order-chat-panel-mobile {
    gap: 12px;
}

.order-chat-thread {
    display: grid;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid rgba(152, 177, 205, 0.3);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
}

.order-chat-message {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.order-chat-message.is-self {
    justify-items: end;
}

.order-chat-message.is-system {
    justify-items: center;
}

.order-chat-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #6d829c;
}

.order-chat-bubble {
    max-width: min(100%, 420px);
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(243, 247, 252, 0.96);
    border: 1px solid rgba(160, 181, 205, 0.28);
    box-shadow: 0 14px 28px rgba(73, 101, 136, 0.08);
    color: #23344f;
}

.order-chat-message.is-self .order-chat-bubble {
    background: linear-gradient(135deg, rgba(255, 174, 88, 0.22), rgba(88, 182, 255, 0.24));
}

.order-chat-message.is-system .order-chat-bubble {
    max-width: min(100%, 560px);
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(229, 239, 249, 0.88);
    color: #5f7692;
    text-align: center;
}

.order-chat-bubble p {
    margin: 0;
    line-height: 1.7;
    white-space: pre-wrap;
}

.order-chat-image {
    display: block;
    width: min(100%, 240px);
    border-radius: 18px;
    margin-top: 10px;
    box-shadow: 0 14px 28px rgba(66, 92, 124, 0.12);
}

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

.order-chat-form-mobile textarea {
    min-height: 82px;
}

.order-chat-form textarea {
    min-height: 92px;
    resize: vertical;
}

.order-chat-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.order-chat-upload {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(153, 177, 204, 0.3);
    background: rgba(255, 255, 255, 0.78);
    color: #516784;
    font-weight: 600;
}

.order-chat-upload input {
    max-width: 180px;
}

.order-chat-empty,
.order-chat-placeholder,
.order-chat-readonly {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(241, 247, 252, 0.82);
    border: 1px dashed rgba(151, 177, 206, 0.38);
    color: #5f7692;
}

.order-chat-empty strong,
.order-chat-placeholder strong {
    display: block;
    margin-bottom: 8px;
    color: #22344d;
}

.order-chat-empty p,
.order-chat-placeholder p,
.order-chat-readonly {
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .order-mobile-code {
        font-size: 1.7rem;
    }

    .order-mobile-stage-card {
        flex-direction: column;
        align-items: stretch;
    }

    .order-mobile-stage-link {
        width: 100%;
    }

    .order-chat-thread {
        max-height: 360px;
        padding: 14px;
        border-radius: 22px;
    }

    .order-chat-bubble {
        max-width: min(100%, 280px);
        padding: 12px 14px;
    }

    .order-chat-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .order-chat-upload {
        justify-content: space-between;
        min-height: 44px;
    }
}

@media (max-width: 720px) {
    .order-mobile-chat-head h2,
    .order-mobile-card-head h2 {
        font-size: 1.28rem;
    }

    .order-mobile-detail-grid {
        gap: 8px;
    }

    .order-mobile-detail-grid > div,
    .order-mobile-description {
        padding: 12px 13px;
        border-radius: 18px;
    }

    .order-mobile-chip-row span,
    .order-mobile-jump {
        min-height: 32px;
        padding: 0 12px;
        font-size: 0.76rem;
    }
}
