:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --ink: #17202a;
    --muted: #6b7480;
    --line: #dce1e7;
    --primary: #127a76;
    --primary-strong: #0c5f5c;
    --accent: #b55b34;
    --danger: #b42318;
    --warning: #9a6700;
    --success: #027a48;
    --shadow: 0 12px 30px rgba(23, 32, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(16px, 4vw, 44px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    font-weight: 800;
    color: var(--primary-strong);
    white-space: nowrap;
}

.brand.has-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand.has-logo::before {
    display: none !important;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 8px 18px rgba(23, 32, 42, 0.1);
}

.nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.nav a {
    padding: 8px 10px;
    color: var(--muted);
    border-radius: 6px;
    white-space: nowrap;
}

.nav a:hover {
    color: var(--primary-strong);
    background: #edf6f5;
}

.page {
    width: min(1180px, calc(100% - 28px));
    margin: 24px auto 56px;
}

.hero {
    min-height: calc(100vh - 150px);
    display: grid;
    align-items: center;
    padding: clamp(28px, 8vw, 86px);
    color: #fff;
    background: linear-gradient(rgba(12, 40, 42, 0.58), rgba(12, 40, 42, 0.62)), url("https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1800&q=80") center/cover;
    border-radius: 8px;
    overflow: hidden;
}

.hero h1 {
    margin: 8px 0 12px;
    max-width: 720px;
    font-size: clamp(2rem, 6vw, 4.8rem);
    line-height: 1.06;
    letter-spacing: 0;
}

.lead {
    max-width: 680px;
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.86);
}

.eyebrow {
    margin: 0;
    font-weight: 700;
    color: #bde8e4;
}

.actions,
.toolbar,
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.actions {
    justify-content: flex-start;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
}

.button.primary {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

.button.primary:hover {
    background: var(--primary-strong);
}

.button.small {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 0.9rem;
}

.button.wide {
    width: 100%;
}

.panel,
.auth-panel {
    margin-top: 18px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-panel {
    width: min(460px, 100%);
    margin: 70px auto;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: 2rem;
}

h2 {
    margin: 0 0 16px;
    font-size: 1.2rem;
}

.muted,
.subline {
    color: var(--muted);
}

.subline {
    display: block;
    margin-top: 3px;
    font-size: 0.86rem;
}

.flash {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #b7dfce;
    background: #eefaf4;
    color: var(--success);
}

.flash.error {
    border-color: #f1b8b4;
    background: #fff1f0;
    color: var(--danger);
}

.form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

textarea {
    resize: vertical;
}

.stack {
    display: grid;
    gap: 15px;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 15px;
    align-items: end;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.badge,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 9px;
    margin: 2px 4px 2px 0;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    background: #edf1f5;
    color: var(--muted);
}

.badge.active,
.badge.completed {
    background: #e7f7ef;
    color: var(--success);
}

.badge.pending {
    background: #fff6dd;
    color: var(--warning);
}

.badge.accepted,
.badge.delivering {
    background: #eaf5ff;
    color: #075985;
}

.badge.cancelled,
.badge.suspended {
    background: #fff1f0;
    color: var(--danger);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.stats div {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stats strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-strong);
}

.stats span {
    color: var(--muted);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.quick-links a {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
    font-weight: 800;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.qr-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
    break-inside: avoid;
}

.qr-card img {
    width: 160px;
    height: 160px;
}

.qr-card h3 {
    margin: 8px 0 4px;
    font-size: 1.3rem;
}

.qr-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.room-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 18px;
    align-items: start;
}

.room-create {
    position: sticky;
    top: 86px;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.room-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.room-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.status-form {
    margin: 0;
}

.status-button {
    min-width: 58px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 900;
    cursor: pointer;
}

.status-button.active {
    background: #e7f7ef;
    color: var(--success);
    border-color: #b7dfce;
}

.status-button.suspended {
    background: #fff1f0;
    color: var(--danger);
    border-color: #f1b8b4;
}

.room-card h3 {
    margin: 0;
    font-size: 1.45rem;
}

.room-link {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
    overflow-wrap: anywhere;
}

.room-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.qr-preview summary {
    color: var(--primary-strong);
}

.qr-preview img {
    width: 128px;
    height: 128px;
    margin-top: 8px;
}

.qr-preview .room-link {
    margin-top: 8px;
}

.room-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-form select {
    width: 110px;
}

.order-search-row {
    display: grid;
    grid-template-columns: minmax(180px, 300px) auto auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 18px;
}

.order-search-row label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.overview-orders {
    border-color: #f5c451;
    box-shadow: 0 14px 34px rgba(213, 142, 0, 0.12);
}

.overview-orders h2 {
    color: #9a5b00;
}

.empty-cell {
    padding: 28px 10px;
    text-align: center;
    color: var(--muted);
}

.order-actions,
.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.items-table {
    min-width: 920px;
}

.items-table td {
    vertical-align: middle;
}

.item-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.item-row-actions form {
    margin: 0;
}

.button.danger,
button.danger {
    border-color: #f1b8b4;
    color: var(--danger);
}

.more-menu {
    position: relative;
}

.more-menu summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-weight: 900;
}

.more-menu summary::-webkit-details-marker {
    display: none;
}

.more-menu div {
    position: absolute;
    right: 0;
    z-index: 5;
    min-width: 160px;
    margin-top: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(20, 38, 61, 0.16);
}

.more-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 9px 10px;
    text-align: left;
}

.editable-list {
    display: grid;
    gap: 14px;
}

.content-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.content-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.content-list-item.is-hidden {
    background: #f6f7f9;
}

.content-list-item.is-hidden .content-list-main {
    opacity: 0.66;
}

.content-list-main {
    min-width: 0;
}

.content-list-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
}

.content-list-compact .content-title,
.content-list-compact .content-address {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-list-compact .content-address {
    margin-top: 0;
    flex: 1 1 auto;
}

.content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.content-meta span {
    padding: 2px 8px;
    border-radius: 999px;
    background: #edf1f5;
}

.content-title,
.content-address,
.content-body {
    display: block;
    overflow-wrap: anywhere;
}

.content-title {
    font-size: 1.02rem;
}

.content-address {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

.content-body {
    margin: 8px 0 0;
    color: var(--ink);
}

.content-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 172px;
}

.content-row-actions form {
    margin: 0;
}

.editable-item {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.editable-item .form {
    padding: 0;
    border: 0;
    background: transparent;
}

.mini-edit {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.checkline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
}

.checkline input {
    width: auto;
}

.order-alert {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    display: grid;
    gap: 4px;
    width: min(360px, calc(100vw - 36px));
    padding: 16px 18px;
    border-radius: 8px;
    background: #122033;
    color: #fff;
    box-shadow: 0 18px 44px rgba(18, 32, 51, 0.28);
}

.order-alert strong {
    font-size: 1.05rem;
}

.order-alert span {
    color: #d7e0eb;
}

.modal-dialog {
    width: min(720px, calc(100vw - 32px));
    border: 0;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 28px 70px rgba(15, 30, 50, 0.26);
}

.modal-dialog::backdrop {
    background: rgba(15, 23, 42, 0.42);
}

.modal-dialog form {
    margin: 0;
    padding: 20px;
}

.modal-head,
.modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-head h2 {
    margin: 0;
}

.modal-head button {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 1.2rem;
}

.modal-actions {
    justify-content: flex-end;
}

.embed-page {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 16px;
    background:
        radial-gradient(circle at top left, rgba(18, 122, 118, 0.12), transparent 36%),
        linear-gradient(180deg, #f4f7f5 0%, #edf2ef 100%);
}

.join-qr-box,
.follow-qr-box,
.qr-state {
    width: min(100%, 360px);
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.join-qr-box img,
.follow-qr-box img {
    display: block;
    width: min(100%, 280px);
    aspect-ratio: 1;
    object-fit: contain;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.join-qr-box strong,
.follow-qr-box strong {
    font-size: 1.05rem;
}

.join-qr-box span,
.follow-qr-box span,
.qr-state {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.qr-state.error {
    color: var(--danger);
    border-color: #f1b8b4;
    background: #fff4f3;
    box-shadow: none;
}

.two-col,
.guest-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.content-item {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.content-item:last-child {
    border-bottom: 0;
}

.content-item strong,
.content-item span {
    display: block;
}

.content-item span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.88rem;
}

.hotel-info-layout {
    align-items: stretch;
}

.info-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.info-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.info-list div:last-child {
    border-bottom: 0;
}

.info-list dt {
    flex: 0 0 92px;
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.info-list dt::after {
    content: "锛?;
}

.info-list dd {
    flex: 1 1 auto;
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.guest-head {
    padding: 26px 0 8px;
}

.guest-head span {
    display: block;
    color: var(--primary-strong);
    font-weight: 800;
}

.guest-head h1 {
    margin-top: 5px;
}

.guest-order {
    margin-top: 0;
}

.item-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.guest-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px 34px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.guest-item.service-choice {
    grid-template-columns: minmax(0, 1fr) 28px 54px;
}

.guest-item.service-choice input {
    width: 22px;
    height: 22px;
}

.guest-item em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: 0.88rem;
}

details {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

summary {
    font-weight: 800;
    cursor: pointer;
}


body.mode-guest {
    background:
        radial-gradient(circle at top left, rgba(18, 122, 118, 0.12), transparent 34%),
        linear-gradient(180deg, #f5f7fb 0%, #eef2f6 100%);
}

.topbar-guest {
    position: sticky;
    gap: 12px;
    padding: 16px clamp(16px, 4vw, 32px);
    background: rgba(245, 248, 251, 0.88);
    border-bottom-color: rgba(18, 122, 118, 0.12);
    box-shadow: 0 18px 40px rgba(18, 31, 44, 0.06);
}

.topbar-guest .brand {
    font-size: 1rem;
    letter-spacing: 0;
}

.page-guest {
    width: min(1180px, calc(100% - 24px));
    margin-top: 18px;
}

.page-guest .flash {
    border-radius: 16px;
}

.guest-home,
.guest-service-page,
.guest-complaint-page {
    display: grid;
    gap: 18px;
}

.guest-surface,
.guest-home-hero,
.guest-service-hero,
.guest-order,
.guest-side-panel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(18, 122, 118, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 44px rgba(18, 31, 44, 0.08);
}

.guest-home-hero,
.guest-service-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.95fr);
    gap: 22px;
    padding: clamp(24px, 4vw, 38px);
    background:
        radial-gradient(circle at top right, rgba(18, 122, 118, 0.16), transparent 28%),
        linear-gradient(135deg, #10353b 0%, #0f5c5b 52%, #16807b 100%);
    color: #fff;
}

.guest-hero-copy,
.guest-service-hero-main {
    display: grid;
    gap: 14px;
    align-content: start;
}

.guest-kicker,
.guest-section-kicker {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guest-kicker {
    color: rgba(218, 247, 244, 0.84);
}

.guest-home-hero h1,
.guest-service-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: 0;
    text-wrap: balance;
}

.guest-hero-lead {
    margin: 0;
    max-width: 34rem;
    color: rgba(240, 248, 247, 0.86);
    font-size: 1rem;
    line-height: 1.7;
}

.guest-hero-meta,
.guest-service-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.guest-hero-meta span,
.guest-service-summary div {
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.guest-service-summary span,
.guest-hero-meta span {
    font-weight: 700;
}

.guest-service-summary span {
    display: block;
    margin-bottom: 6px;
    color: rgba(218, 247, 244, 0.74);
    font-size: 0.82rem;
}

.guest-service-summary strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
}

.guest-hero-side {
    display: grid;
    align-content: start;
    gap: 16px;
}

.guest-stay-chip {
    justify-self: start;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 800;
}

.guest-hero-facts {
    display: grid;
    gap: 10px;
    margin: 0;
}

.guest-hero-facts div {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.guest-hero-facts dt {
    margin: 0 0 6px;
    color: rgba(218, 247, 244, 0.74);
    font-size: 0.82rem;
    font-weight: 700;
}

.guest-hero-facts dd {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.guest-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.guest-section-head h2,
.guest-order-header h2,
.guest-side-panel h2 {
    margin: 4px 0 0;
    font-size: 1.35rem;
}

.guest-section-kicker {
    color: var(--primary-strong);
}

.guest-wifi-card,
.guest-service-panel,
.guest-guide-panel {
    padding: 22px;
}

.guest-wifi-grid,
.guest-guide-list,
.guest-order-grid {
    display: grid;
    gap: 14px;
}

.guest-wifi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guest-info-tile {
    display: grid;
    gap: 8px;
    min-height: 120px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcfd 0%, #f2f6f9 100%);
    border: 1px solid rgba(18, 122, 118, 0.1);
}

.guest-info-tile span,
.guest-guide-meta,
.guest-guide-address,
.guest-item-limit,
.guest-service-button small {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.guest-info-tile strong {
    font-size: 1.05rem;
}

.guest-copy-tile {
    align-content: space-between;
}

.guest-copy-tile .button {
    justify-self: start;
}

.guest-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.guest-service-action {
    margin: 0;
}

.guest-service-action .guest-service-button {
    width: 100%;
}

.guest-service-button {
    display: grid;
    gap: 8px;
    min-height: 172px;
    padding: 18px;
    border: 1px solid rgba(18, 122, 118, 0.1);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f2f6f7 100%);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.guest-service-button:hover,
.guest-service-button:focus-visible,
.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(18, 31, 44, 0.1);
}

.guest-service-button.primary {
    background: linear-gradient(135deg, rgba(18, 122, 118, 0.14), rgba(18, 122, 118, 0.04));
    border-color: rgba(18, 122, 118, 0.18);
}

.guest-service-button strong {
    font-size: 1.12rem;
}

.guest-service-button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.guest-service-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 28px;
    border-radius: 999px;
    background: rgba(18, 122, 118, 0.1);
    color: var(--primary-strong);
    font-size: 0.78rem;
    font-weight: 900;
}

.guest-guide-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.guest-guide-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
}

.guest-guide-card strong {
    font-size: 1.08rem;
}

.guest-guide-card p {
    margin: 0;
    color: var(--ink);
}

/* --- guide card as collapsible details --- */
.guest-guide-card summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fa 100%);
    border: 1px solid rgba(18, 122, 118, 0.1);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.guest-guide-card summary::-webkit-details-marker {
    display: none;
}

.guest-guide-card summary::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23127a76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.55;
    transition: transform 220ms ease, opacity 220ms ease;
    flex-shrink: 0;
}

.guest-guide-card[open] summary::after {
    transform: rotate(180deg);
    opacity: 0.8;
}

.guest-guide-card[open] summary {
    border-radius: 16px 16px 0 0;
    border-bottom-color: transparent;
}

.guest-guide-detail {
    padding: 0 18px 18px 18px;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(180deg, #f5f8fa 0%, #ffffff 100%);
    border: 1px solid rgba(18, 122, 118, 0.1);
    border-top: none;
    overflow: hidden;
}

.guest-guide-detail p {
    margin: 12px 0 0 0;
    color: var(--ink);
}

.guest-guide-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 4px;
}

/* --- admin guide thumbnail --- */
.guide-admin-thumb {
    margin-top: 10px;
    max-width: 200px;
    overflow: hidden;
}

.guide-admin-thumb img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 140px;
    border-radius: 8px;
    border: 1px solid rgba(18, 122, 118, 0.12);
    object-fit: contain;
}

.guide-current-image {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.guide-current-image img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(18, 122, 118, 0.12);
    background: #f7faf9;
}

.guide-delete-image {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    color: var(--danger);
    font-size: 0.88rem;
    font-weight: 800;
}

.guide-delete-image input {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* --- label hint text --- */
.label-hint {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 400;
    margin-top: 2px;
}


.guest-back-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 700;
}

.guest-layout {
    align-items: start;
    gap: 18px;
}

.guest-order {
    display: grid;
    gap: 18px;
    margin-top: 0;
    padding: 22px;
}

.guest-order-group {
    display: grid;
    gap: 14px;
}

.guest-order-header {
    display: grid;
    gap: 6px;
}

.guest-order-grid {
    grid-template-columns: 1fr;
}

.guest-item {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    min-height: 94px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(18, 122, 118, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
}

.guest-item-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.guest-item strong {
    font-size: 1rem;
}

.guest-item em {
    margin: 0;
}

.guest-item-limit {
    display: block;
}

.guest-item.service-choice {
    grid-template-columns: minmax(0, 1fr) 28px auto;
}

.guest-item.service-choice b {
    min-width: 48px;
    color: var(--primary-strong);
    font-size: 0.86rem;
}

.guest-item.service-choice input {
    accent-color: var(--primary);
}

.guest-item.quantity-choice {
    grid-template-columns: minmax(0, 1fr) auto;
}

.qty-stepper {
    display: inline-grid;
    grid-template-columns: 40px 52px 40px;
    align-items: center;
    justify-self: start;
    min-height: 44px;
    border: 1px solid rgba(18, 122, 118, 0.12);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 44px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1.15rem;
    color: var(--primary-strong);
    cursor: pointer;
}

.qty-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.qty-stepper.has-value {
    border-color: rgba(18, 122, 118, 0.22);
    box-shadow: inset 0 0 0 1px rgba(18, 122, 118, 0.06);
}

.guest-note-field {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.guest-note-field textarea {
    min-height: 112px;
    border-radius: 16px;
    padding: 14px 16px;
}

.guest-submit-bar {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f5fbfa 0%, #eef6f5 100%);
    border: 1px solid rgba(18, 122, 118, 0.12);
}

.guest-submit-bar p {
    margin: 0;
}

.guest-side-panel {
    margin-top: 0;
}

.guest-side-panel .content-item:first-of-type,
.guest-side-panel details:first-of-type {
    padding-top: 0;
}

.guest-complaint-page {
    width: min(760px, 100%);
    margin-inline: auto;
}

.guest-complaint-head {
    padding: 10px 2px 0;
}

.guest-complaint-head span {
    color: var(--primary-strong);
    font-weight: 800;
}

.guest-complaint-form {
    margin-top: 0;
    border-radius: 20px;
}


.guest-home-hero-compact {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding: clamp(20px, 3vw, 30px);
}

.guest-home-hero-compact .guest-hero-copy {
    gap: 10px;
}

.guest-home-hero-compact h1 {
    font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.guest-room-line {
    display: inline-flex;
    justify-self: start;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
}

.guest-wifi-compact {
    padding: 14px 18px;
}

.guest-wifi-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 18px;
    min-height: 54px;
}

.guest-wifi-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
}

.guest-wifi-item span {
    flex: 0 0 72px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.guest-wifi-item strong {
    overflow-wrap: anywhere;
    font-size: 1rem;
}

.guest-wifi-password {
    margin-left: 0;
}

.guest-copy-mini {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.guest-service-compact {
    padding: 18px;
}

.guest-service-compact h2 {
    margin: 0 0 14px;
    font-size: 1.25rem;
}

.guest-service-grid-simple {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guest-service-grid-simple .guest-service-button {
    min-height: 78px;
    align-content: center;
    justify-items: center;
    padding: 14px 10px;
    text-align: center;
}

.guest-service-grid-simple .guest-service-button strong {
    font-size: 0.98rem;
    line-height: 1.35;
}

.guest-service-grid-simple .guest-service-action,
.guest-service-grid-simple .guest-service-action .guest-service-button {
    height: 100%;
}


.guest-service-hero-simple {
    display: block;
    padding: 22px;
    background: linear-gradient(135deg, #10353b 0%, #0f5c5b 100%);
}

.guest-service-hero-simple h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.8rem);
}

.guest-layout-single {
    grid-template-columns: 1fr;
}

.guest-layout-single .guest-order {
    max-width: 880px;
    width: 100%;
    margin-inline: auto;
}

.guest-layout-single .guest-order-header h2 {
    margin: 0;
}

.guest-layout-single .guest-order-grid {
    gap: 10px;
}

.guest-layout-single .guest-item {
    min-height: 62px;
    padding: 12px 14px;
}

.guest-layout-single .guest-item em {
    display: none;
}

.guest-layout-single .service-choice {
    grid-template-columns: minmax(0, 1fr) auto;
    cursor: pointer;
}

.guest-layout-single .service-choice input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.guest-layout-single .service-choice b {
    min-width: 86px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(18, 122, 118, 0.1);
    color: var(--primary-strong);
    font-size: 0.86rem;
    text-align: center;
    white-space: nowrap;
}

.guest-layout-single .service-choice.is-selected {
    border-color: rgba(18, 122, 118, 0.34);
    background: linear-gradient(180deg, #eef8f7 0%, #e3f2f0 100%);
}

.guest-layout-single .service-choice.is-selected b {
    background: var(--primary);
    color: #fff;
}

.guest-layout-single .quantity-choice {
    grid-template-columns: minmax(0, 1fr) auto;
}

.guest-layout-single .quantity-choice .guest-item-main {
    align-self: center;
}

.guest-layout-single .qty-stepper {
    justify-self: end;
}

.guest-layout-single .guest-submit-bar {
    display: contents;
}

.guest-faq-panel {
    padding: 22px;
}

.guest-faq-panel h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.guest-faq-list {
    display: grid;
    gap: 0;
}

.guest-home,
.guest-service-page,
.guest-complaint-page {
    gap: 20px;
}

.guest-home-hero-compact,
.guest-service-hero-simple {
    border-radius: 24px;
    border-color: rgba(255, 255, 255, 0.32);
    background:
        linear-gradient(135deg, rgba(8, 39, 43, 0.92), rgba(13, 105, 99, 0.84)),
        url("https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1400&q=80") center/cover;
    box-shadow: 0 24px 60px rgba(16, 53, 59, 0.2);
}

.guest-home-hero-compact {
    min-height: 188px;
    align-content: end;
    padding: clamp(24px, 5vw, 42px);
}

.guest-home-hero-compact .guest-hero-copy {
    gap: 12px;
}

.guest-home-hero-compact h1 {
    max-width: 12em;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
}

.guest-room-line {
    min-height: 38px;
    padding: 8px 14px;
    background: rgba(181, 91, 52, 0.94);
    color: #fff;
    box-shadow: 0 12px 30px rgba(84, 42, 24, 0.22);
}

.guest-wifi-compact,
.guest-service-compact,
.guest-guide-panel,
.guest-faq-panel,
.guest-order,
.guest-complaint-form {
    border-radius: 22px;
    border-color: rgba(18, 122, 118, 0.1);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(18, 31, 44, 0.07);
}

.guest-wifi-compact {
    padding: 16px 20px;
}

.guest-service-compact {
    padding: 20px;
}

.guest-service-grid-simple {
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
}

.guest-service-grid-simple .guest-service-button {
    position: relative;
    min-height: 92px;
    align-content: center;
    border-radius: 18px;
    border-color: rgba(18, 122, 118, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f4f8f7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.guest-service-grid-simple .guest-service-button.primary {
    color: #fff;
    border-color: rgba(12, 95, 92, 0.24);
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.24), transparent 32%),
        linear-gradient(135deg, #0c5f5c 0%, #127a76 100%);
    box-shadow: 0 18px 36px rgba(12, 95, 92, 0.2);
}

.guest-service-grid-simple .guest-service-button.primary strong {
    color: #fff;
}

.guest-service-grid-simple .guest-service-button:hover,
.guest-service-grid-simple .guest-service-button:focus-visible {
    border-color: rgba(18, 122, 118, 0.24);
}

.guest-service-hero-simple {
    display: grid;
    gap: 22px;
    min-height: 190px;
    align-content: start;
    padding: clamp(22px, 4vw, 34px);
}

.guest-service-hero-simple h1 {
    max-width: 12em;
    font-weight: 900;
}

.guest-service-hero-simple .guest-hero-lead {
    max-width: 36rem;
}

.guest-back-link {
    justify-self: start;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-strong);
    box-shadow: 0 12px 28px rgba(5, 33, 36, 0.16);
}

.guest-back-link:hover,
.guest-back-link:focus-visible {
    transform: translateY(-1px);
    background: #fff;
}

.guest-complaint-page {
    width: 100%;
}

.guest-complaint-hero {
    background:
        linear-gradient(135deg, rgba(8, 39, 43, 0.92), rgba(13, 105, 99, 0.84)),
        url("https://images.unsplash.com/photo-1551882547-ff40c63fe5fa?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.guest-complaint-form {
    width: min(880px, 100%);
    margin: 0 auto;
    padding: 22px;
}

.guest-complaint-form textarea {
    min-height: 178px;
    line-height: 1.65;
}

.guest-layout-single .guest-order {
    max-width: 900px;
    padding: clamp(18px, 3vw, 26px);
}

.guest-layout-single .guest-order-header h2 {
    font-size: 1.22rem;
}

.guest-layout-single .guest-item {
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
}

.guest-layout-single .service-choice.is-selected,
.guest-layout-single .qty-stepper.has-value {
    box-shadow: 0 12px 26px rgba(18, 122, 118, 0.1);
}

.guest-note-field textarea,
.guest-complaint-form textarea {
    border-radius: 18px;
    background: #fbfdfd;
}

.guest-note-field textarea:focus,
.guest-complaint-form textarea:focus {
    outline: 3px solid rgba(18, 122, 118, 0.16);
    border-color: rgba(18, 122, 118, 0.38);
}

/* Store admin redesign */
body.mode-hotel,
body.mode-platform {
    --bg: #eef2f0;
    --surface: #ffffff;
    --surface-soft: #f7f9f8;
    --ink: #18231f;
    --muted: #68736f;
    --line: #d9e1dd;
    --line-soft: #e9eeeb;
    --primary: #167064;
    --primary-strong: #0d4f48;
    --accent: #9b5a2e;
    --danger: #b42318;
    --warning: #926200;
    --success: #087443;
    --shadow: 0 18px 50px rgba(22, 34, 30, 0.08);
    --shadow-soft: 0 10px 28px rgba(22, 34, 30, 0.06);
    font-family: "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(180deg, #f4f7f5 0%, #edf2ef 46%, #e8eeeb 100%);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

body.mode-hotel::before,
body.mode-platform::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(13, 79, 72, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 79, 72, 0.028) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 72%);
}

body.mode-hotel .topbar,
body.mode-platform .topbar {
    min-height: 68px;
    padding: 12px clamp(18px, 3vw, 42px);
    border-bottom: 1px solid rgba(13, 79, 72, 0.12);
    background: rgba(250, 252, 250, 0.86);
    box-shadow: 0 12px 34px rgba(22, 34, 30, 0.06);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

body.mode-hotel .brand,
body.mode-platform .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
}

body.mode-hotel .brand::before,
body.mode-platform .brand::before {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 42%),
        linear-gradient(135deg, var(--primary-strong), var(--primary));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 10px 22px rgba(13, 79, 72, 0.2);
}

body.mode-hotel .nav,
body.mode-platform .nav {
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(13, 79, 72, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.mode-hotel .nav a,
body.mode-platform .nav a {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 10px;
    color: #52615c;
    font-size: 0.92rem;
    font-weight: 800;
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.mode-hotel .nav a:hover,
body.mode-platform .nav a:hover,
body.mode-hotel .nav a:focus-visible,
body.mode-platform .nav a:focus-visible {
    color: var(--primary-strong);
    background: rgba(22, 112, 100, 0.08);
    outline: 0;
}

body.mode-hotel .nav a.is-active,
body.mode-platform .nav a.is-active {
    color: #fff;
    background: var(--primary-strong);
    box-shadow: 0 10px 22px rgba(13, 79, 72, 0.22);
}

body.mode-hotel .nav a:last-child,
body.mode-platform .nav a:last-child {
    color: #8d332b;
}

body.mode-hotel .nav a:last-child.is-active,
body.mode-platform .nav a:last-child.is-active {
    color: #fff;
    background: #8d332b;
}

body.mode-hotel .page,
body.mode-platform .page {
    width: min(1360px, calc(100% - 36px));
    margin: 28px auto 64px;
}

body.mode-hotel h1,
body.mode-platform h1 {
    font-size: clamp(1.7rem, 2.4vw, 2.45rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
}

body.mode-hotel h2,
body.mode-platform h2 {
    margin-bottom: 14px;
    font-size: 1.08rem;
    line-height: 1.28;
    font-weight: 900;
    letter-spacing: 0;
}

body.mode-hotel .muted,
body.mode-platform .muted,
body.mode-hotel .subline,
body.mode-platform .subline {
    color: var(--muted);
}

body.mode-hotel .section-head,
body.mode-platform .section-head {
    position: relative;
    margin-bottom: 20px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(13, 79, 72, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.9));
    box-shadow: var(--shadow-soft);
}

body.mode-hotel .section-head h1,
body.mode-platform .section-head h1 {
    margin-bottom: 6px;
}

body.mode-hotel .section-head p,
body.mode-platform .section-head p {
    max-width: 68ch;
    margin: 0;
    line-height: 1.7;
}

body.mode-hotel .panel,
body.mode-platform .panel,
body.mode-hotel .auth-panel,
body.mode-platform .auth-panel {
    border: 1px solid rgba(13, 79, 72, 0.11);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

body.mode-hotel .panel,
body.mode-platform .panel {
    margin-top: 18px;
    padding: clamp(18px, 2.2vw, 26px);
}

body.mode-hotel .auth-panel,
body.mode-platform .auth-panel {
    padding: 28px;
}

body.mode-hotel .button,
body.mode-platform .button {
    min-height: 40px;
    border-radius: 10px;
    border-color: rgba(13, 79, 72, 0.14);
    background: #fff;
    color: var(--ink);
    font-weight: 900;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(22, 34, 30, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

body.mode-hotel .button:hover,
body.mode-platform .button:hover,
body.mode-hotel .button:focus-visible,
body.mode-platform .button:focus-visible {
    border-color: rgba(22, 112, 100, 0.26);
    background: #f8fbfa;
    color: var(--primary-strong);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(22, 34, 30, 0.09);
    outline: 0;
}

body.mode-hotel .button:active,
body.mode-platform .button:active {
    transform: translateY(0) scale(0.985);
    box-shadow: 0 7px 16px rgba(22, 34, 30, 0.08);
}

body.mode-hotel .button.primary,
body.mode-platform .button.primary {
    border-color: var(--primary-strong);
    background: linear-gradient(180deg, var(--primary), var(--primary-strong));
    color: #fff;
    box-shadow: 0 14px 28px rgba(13, 79, 72, 0.22);
}

body.mode-hotel .button.primary:hover,
body.mode-platform .button.primary:hover,
body.mode-hotel .button.primary:focus-visible,
body.mode-platform .button.primary:focus-visible {
    background: linear-gradient(180deg, #1b7f72, #0d4f48);
    color: #fff;
}

body.mode-hotel .button.small,
body.mode-platform .button.small {
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 9px;
}

body.mode-hotel .button.danger,
body.mode-platform .button.danger,
body.mode-hotel button.danger,
body.mode-platform button.danger {
    border-color: rgba(180, 35, 24, 0.18);
    color: var(--danger);
    background: #fff8f7;
}

body.mode-hotel .form label,
body.mode-platform .form label,
body.mode-hotel .order-search-row label,
body.mode-platform .order-search-row label {
    color: #34413c;
    font-size: 0.92rem;
    font-weight: 900;
}

body.mode-hotel input,
body.mode-platform input,
body.mode-hotel select,
body.mode-platform select,
body.mode-hotel textarea,
body.mode-platform textarea {
    min-height: 42px;
    border-radius: 10px;
    border-color: #d6e0db;
    background: #fbfdfc;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

body.mode-hotel textarea,
body.mode-platform textarea {
    line-height: 1.65;
}

body.mode-hotel input:focus,
body.mode-platform input:focus,
body.mode-hotel select:focus,
body.mode-platform select:focus,
body.mode-hotel textarea:focus,
body.mode-platform textarea:focus {
    outline: 0;
    border-color: rgba(22, 112, 100, 0.46);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 112, 100, 0.12);
}

body.mode-hotel .flash,
body.mode-platform .flash {
    margin-bottom: 18px;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

body.mode-hotel .stats,
body.mode-platform .stats {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin: 20px 0 4px;
}

body.mode-hotel .stats div,
body.mode-platform .stats div {
    position: relative;
    overflow: hidden;
    min-height: 124px;
    padding: 20px;
    border: 1px solid rgba(13, 79, 72, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.94));
    box-shadow: var(--shadow-soft);
}

body.mode-hotel .stats div::after,
body.mode-platform .stats div::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 18px;
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: rgba(22, 112, 100, 0.18);
}

body.mode-hotel .stats strong,
body.mode-platform .stats strong {
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    line-height: 1;
    color: var(--ink);
    letter-spacing: 0;
}

body.mode-hotel .stats span,
body.mode-platform .stats span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
}

body.mode-hotel .table-wrap,
body.mode-platform .table-wrap {
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: #fff;
}

body.mode-hotel table,
body.mode-platform table {
    min-width: 820px;
}

body.mode-hotel th,
body.mode-platform th {
    padding: 13px 14px;
    border-bottom-color: var(--line-soft);
    background: #f7faf8;
    color: #66736e;
    font-size: 0.82rem;
    font-weight: 900;
}

body.mode-hotel td,
body.mode-platform td {
    padding: 14px;
    border-bottom-color: var(--line-soft);
}

body.mode-hotel tbody tr,
body.mode-platform tbody tr {
    transition: background 160ms ease;
}

body.mode-hotel tbody tr:hover,
body.mode-platform tbody tr:hover {
    background: #f8fbfa;
}

body.mode-hotel .badge,
body.mode-platform .badge,
body.mode-hotel .pill,
body.mode-platform .pill {
    min-height: 26px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 900;
}

body.mode-hotel .pill,
body.mode-platform .pill {
    border: 1px solid rgba(13, 79, 72, 0.1);
    background: #f3f7f5;
    color: #41514b;
}

body.mode-hotel .badge.active,
body.mode-platform .badge.active,
body.mode-hotel .badge.completed,
body.mode-platform .badge.completed {
    background: #e8f6ef;
    color: var(--success);
}

body.mode-hotel .badge.pending,
body.mode-platform .badge.pending {
    background: #fff4d6;
    color: var(--warning);
}

body.mode-hotel .badge.accepted,
body.mode-platform .badge.accepted,
body.mode-hotel .badge.delivering,
body.mode-platform .badge.delivering {
    background: #e8f2ff;
    color: #165a94;
}

body.mode-hotel .badge.cancelled,
body.mode-platform .badge.cancelled,
body.mode-hotel .badge.suspended,
body.mode-platform .badge.suspended {
    background: #fff0ee;
    color: var(--danger);
}

body.mode-hotel .quick-links,
body.mode-platform .quick-links {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

body.mode-hotel .quick-links a,
body.mode-platform .quick-links a {
    min-height: 78px;
    padding: 18px;
    border-radius: 14px;
    border-color: rgba(13, 79, 72, 0.1);
    background: linear-gradient(180deg, #fff, #f6faf8);
    color: var(--ink);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.mode-hotel .quick-links a:hover,
body.mode-platform .quick-links a:hover,
body.mode-hotel .quick-links a:focus-visible,
body.mode-platform .quick-links a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(22, 112, 100, 0.24);
    box-shadow: 0 16px 32px rgba(22, 34, 30, 0.08);
    outline: 0;
}

body.mode-hotel .room-admin-layout,
body.mode-platform .room-admin-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 18px;
}

body.mode-hotel .room-card,
body.mode-platform .room-card,
body.mode-hotel .editable-item,
body.mode-platform .editable-item,
body.mode-hotel .content-list-item,
body.mode-platform .content-list-item,
body.mode-hotel .qr-card,
body.mode-platform .qr-card {
    border-color: rgba(13, 79, 72, 0.1);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbfa);
    box-shadow: 0 8px 22px rgba(22, 34, 30, 0.04);
}

body.mode-hotel .room-card,
body.mode-platform .room-card {
    gap: 12px;
    padding: 16px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.mode-hotel .room-card:hover,
body.mode-platform .room-card:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 112, 100, 0.2);
    box-shadow: 0 16px 34px rgba(22, 34, 30, 0.08);
}

body.mode-hotel .room-card h3,
body.mode-platform .room-card h3 {
    font-size: 1.5rem;
    letter-spacing: 0;
}

body.mode-hotel .room-link,
body.mode-platform .room-link,
body.mode-hotel .room-meta,
body.mode-platform .room-meta {
    color: var(--muted);
}

body.mode-hotel .status-button,
body.mode-platform .status-button {
    border-radius: 9px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

body.mode-hotel .status-button:hover,
body.mode-platform .status-button:hover,
body.mode-hotel .status-button:focus-visible,
body.mode-platform .status-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(22, 34, 30, 0.08);
    outline: 0;
}

body.mode-hotel .order-search-row,
body.mode-platform .order-search-row {
    grid-template-columns: minmax(220px, 320px) auto auto;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: #f8fbfa;
}

body.mode-hotel .overview-orders,
body.mode-platform .overview-orders,
body.mode-hotel .complaint-alert-panel,
body.mode-platform .complaint-alert-panel {
    border-color: rgba(146, 98, 0, 0.22);
    box-shadow: 0 18px 44px rgba(146, 98, 0, 0.1);
}

body.mode-hotel .overview-orders h2,
body.mode-platform .overview-orders h2,
body.mode-hotel .complaint-alert-panel h2,
body.mode-platform .complaint-alert-panel h2 {
    color: #7d5300;
}

body.mode-hotel .empty-cell,
body.mode-platform .empty-cell {
    padding: 34px 14px;
    background: #fbfdfc;
    color: var(--muted);
    font-weight: 800;
}

body.mode-hotel .more-menu summary,
body.mode-platform .more-menu summary {
    border-radius: 10px;
    border-color: rgba(13, 79, 72, 0.14);
    background: #fff;
    transition: background 160ms ease, box-shadow 160ms ease;
}

body.mode-hotel .more-menu summary:hover,
body.mode-platform .more-menu summary:hover,
body.mode-hotel .more-menu summary:focus-visible,
body.mode-platform .more-menu summary:focus-visible {
    background: #f8fbfa;
    box-shadow: 0 10px 20px rgba(22, 34, 30, 0.08);
    outline: 0;
}

body.mode-hotel .more-menu div,
body.mode-platform .more-menu div {
    border-radius: 14px;
    border-color: rgba(13, 79, 72, 0.12);
    box-shadow: 0 22px 44px rgba(22, 34, 30, 0.16);
}

body.mode-hotel .content-meta span,
body.mode-platform .content-meta span {
    border-radius: 8px;
    background: #eef4f1;
    color: #566660;
}

body.mode-hotel .content-list-item.is-hidden,
body.mode-platform .content-list-item.is-hidden {
    background: #eef2f0;
}

body.mode-hotel .info-list div,
body.mode-platform .info-list div {
    border-bottom-color: var(--line-soft);
}

body.mode-hotel .info-list dt,
body.mode-platform .info-list dt {
    color: #66736e;
}

body.mode-hotel .info-list dd,
body.mode-platform .info-list dd {
    color: var(--ink);
}

body.mode-hotel .notify-bind-row,
body.mode-platform .notify-bind-row,
body.mode-hotel .binding-list,
body.mode-platform .binding-list {
    display: grid;
    gap: 12px;
}

body.mode-hotel .notify-flow,
body.mode-platform .notify-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

body.mode-hotel .notify-bind-row,
body.mode-platform .notify-bind-row {
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: #f8fbfa;
}

body.mode-hotel .notify-bind-row p,
body.mode-platform .notify-bind-row p,
body.mode-hotel .notify-step p,
body.mode-platform .notify-step p {
    margin: 4px 0 0;
}

body.mode-hotel .notify-step,
body.mode-platform .notify-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    align-content: start;
    align-items: start;
    min-height: 100%;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: #fff;
}

body.mode-hotel .notify-step > div,
body.mode-platform .notify-step > div {
    min-width: 0;
}

body.mode-hotel .notify-step > .button,
body.mode-platform .notify-step > .button {
    grid-column: 1 / -1;
    width: 100%;
}

body.mode-hotel .notify-step > .badge,
body.mode-platform .notify-step > .badge {
    grid-column: 1 / -1;
    justify-self: start;
}

body.mode-hotel .step-no,
body.mode-platform .step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(22, 112, 100, 0.1);
    color: var(--primary-strong);
    font-weight: 900;
}

body.mode-hotel .binding-chip,
body.mode-platform .binding-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: #f8fbfa;
}

body.mode-hotel .modal-dialog,
body.mode-platform .modal-dialog {
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(22, 34, 30, 0.26);
}

body.mode-hotel .modal-dialog::backdrop,
body.mode-platform .modal-dialog::backdrop {
    background: rgba(20, 31, 28, 0.5);
    backdrop-filter: blur(3px);
}

body.mode-hotel .modal-dialog form,
body.mode-platform .modal-dialog form {
    padding: 24px;
}

body.mode-hotel .modal-head,
body.mode-platform .modal-head {
    padding: 20px 24px 0;
}

body.mode-hotel .modal-dialog form .modal-head,
body.mode-platform .modal-dialog form .modal-head {
    padding: 0;
}

body.mode-hotel .modal-actions,
body.mode-platform .modal-actions {
    padding-top: 4px;
}

body.mode-hotel .wechat-bind-dialog,
body.mode-platform .wechat-bind-dialog {
    width: min(620px, calc(100vw - 32px));
    overflow: hidden;
}

body.mode-hotel .wechat-follow-dialog,
body.mode-platform .wechat-follow-dialog {
    width: min(430px, calc(100vw - 32px));
    overflow: hidden;
}

body.mode-hotel .wechat-bind-dialog .modal-head,
body.mode-platform .wechat-bind-dialog .modal-head,
body.mode-hotel .wechat-follow-dialog .modal-head,
body.mode-platform .wechat-follow-dialog .modal-head {
    padding: 20px 24px 16px;
}

body.mode-hotel .wechat-bind-dialog .modal-actions,
body.mode-platform .wechat-bind-dialog .modal-actions,
body.mode-hotel .wechat-follow-dialog .modal-actions,
body.mode-platform .wechat-follow-dialog .modal-actions {
    padding: 16px 24px 24px;
}

body.mode-hotel .wechat-bind-dialog iframe,
body.mode-platform .wechat-bind-dialog iframe {
    display: block;
    width: 100%;
    height: min(72vh, 620px);
    min-height: 420px;
    border: 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: #f4f7f5;
}

body.mode-hotel .wechat-follow-dialog .follow-qr-box,
body.mode-platform .wechat-follow-dialog .follow-qr-box {
    width: auto;
    margin: 0 24px;
    box-shadow: none;
}

body.mode-hotel .wechat-bind-dialog .modal-head,
body.mode-platform .wechat-bind-dialog .modal-head,
body.mode-hotel .wechat-follow-dialog .modal-head,
body.mode-platform .wechat-follow-dialog .modal-head {
    align-items: center;
    min-height: 58px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--line-soft);
    background: #fbfdfc;
}

body.mode-hotel .wechat-bind-dialog .modal-head h2,
body.mode-platform .wechat-bind-dialog .modal-head h2,
body.mode-hotel .wechat-follow-dialog .modal-head h2,
body.mode-platform .wechat-follow-dialog .modal-head h2 {
    font-size: 1rem;
}

body.mode-hotel .wechat-bind-dialog .modal-head button,
body.mode-platform .wechat-bind-dialog .modal-head button,
body.mode-hotel .wechat-follow-dialog .modal-head button,
body.mode-platform .wechat-follow-dialog .modal-head button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line-soft);
    background: #fff;
    box-shadow: none;
}

body.mode-hotel .wechat-bind-dialog .modal-actions,
body.mode-platform .wechat-bind-dialog .modal-actions,
body.mode-hotel .wechat-follow-dialog .modal-actions,
body.mode-platform .wechat-follow-dialog .modal-actions {
    min-height: 64px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--line-soft);
    background: #fbfdfc;
}

body.mode-hotel .wechat-bind-dialog .modal-actions .button,
body.mode-platform .wechat-bind-dialog .modal-actions .button,
body.mode-hotel .wechat-follow-dialog .modal-actions .button,
body.mode-platform .wechat-follow-dialog .modal-actions .button {
    min-height: 36px;
    padding-inline: 12px;
}
body.mode-hotel .wechat-follow-dialog .follow-qr-box img,
body.mode-platform .wechat-follow-dialog .follow-qr-box img {
    width: min(100%, 260px);
}

body.mode-hotel .order-alert,
body.mode-platform .order-alert {
    border-radius: 16px;
    background: #12221e;
    box-shadow: 0 24px 60px rgba(18, 34, 30, 0.3);
}

body.mode-hotel details,
body.mode-platform details {
    border-bottom-color: var(--line-soft);
}

body.mode-hotel,
body.mode-platform {
    --surface-emerald: linear-gradient(135deg, rgba(19, 118, 102, 0.14), rgba(255, 255, 255, 0.96) 38%, rgba(232, 247, 242, 0.92) 100%);
    --surface-amber: linear-gradient(135deg, rgba(188, 124, 58, 0.16), rgba(255, 255, 255, 0.96) 40%, rgba(255, 247, 234, 0.92) 100%);
    --surface-rose: linear-gradient(135deg, rgba(184, 83, 98, 0.14), rgba(255, 255, 255, 0.97) 42%, rgba(253, 238, 242, 0.9) 100%);
    --surface-blue: linear-gradient(135deg, rgba(61, 113, 196, 0.15), rgba(255, 255, 255, 0.97) 42%, rgba(236, 244, 255, 0.92) 100%);
    --surface-violet: linear-gradient(135deg, rgba(110, 92, 196, 0.14), rgba(255, 255, 255, 0.97) 42%, rgba(241, 239, 255, 0.9) 100%);
}

body.mode-hotel::after,
body.mode-platform::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(140deg, rgba(19, 118, 102, 0.04), transparent 32%),
        linear-gradient(220deg, rgba(188, 124, 58, 0.05), transparent 28%),
        linear-gradient(320deg, rgba(61, 113, 196, 0.045), transparent 34%);
}

body.mode-hotel .topbar,
body.mode-platform .topbar {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(247, 252, 250, 0.88) 46%, rgba(240, 246, 255, 0.76));
}

body.mode-hotel .brand::before,
body.mode-platform .brand::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent 40%),
        linear-gradient(135deg, #0d4f48 0%, #177364 48%, #5878d6 100%);
}

body.mode-hotel .nav a.is-active,
body.mode-platform .nav a.is-active {
    background: linear-gradient(135deg, #0d4f48 0%, #1b7f72 58%, #406bc4 100%);
}

body.mode-hotel .section-head,
body.mode-platform .section-head {
    border-color: rgba(85, 109, 162, 0.12);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 248, 0.95) 54%, rgba(237, 243, 255, 0.92));
}

body.mode-hotel .section-head::before,
body.mode-platform .section-head::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 18px 0 0 18px;
    background: linear-gradient(180deg, #177364 0%, #c27a36 45%, #446ed0 100%);
}

body.mode-hotel .panel,
body.mode-platform .panel,
body.mode-hotel .auth-panel,
body.mode-platform .auth-panel {
    border-color: rgba(102, 123, 158, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 251, 0.94));
}

body.mode-hotel .panel:nth-of-type(3n),
body.mode-platform .panel:nth-of-type(3n) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 255, 0.94));
}

body.mode-hotel .panel:nth-of-type(4n),
body.mode-platform .panel:nth-of-type(4n) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 249, 240, 0.94));
}

body.mode-hotel .button,
body.mode-platform .button {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

body.mode-hotel .button.primary,
body.mode-platform .button.primary {
    background: linear-gradient(135deg, #0d4f48 0%, #177364 54%, #406bc4 100%);
    box-shadow: 0 16px 32px rgba(26, 84, 109, 0.22);
}

body.mode-hotel .button.danger,
body.mode-platform .button.danger,
body.mode-hotel button.danger,
body.mode-platform button.danger {
    background: linear-gradient(180deg, #fff9f8 0%, #fff1ee 100%);
}

body.mode-hotel .flash,
body.mode-platform .flash {
    background: var(--surface-emerald);
    border-color: rgba(19, 118, 102, 0.18);
}

body.mode-hotel .flash.error,
body.mode-platform .flash.error {
    background: var(--surface-rose);
    border-color: rgba(184, 83, 98, 0.16);
}

body.mode-hotel .stats div:nth-child(1),
body.mode-platform .stats div:nth-child(1) {
    background: var(--surface-emerald);
    border-color: rgba(19, 118, 102, 0.14);
}

body.mode-hotel .stats div:nth-child(2),
body.mode-platform .stats div:nth-child(2) {
    background: var(--surface-amber);
    border-color: rgba(188, 124, 58, 0.16);
}

body.mode-hotel .stats div:nth-child(3),
body.mode-platform .stats div:nth-child(3) {
    background: var(--surface-rose);
    border-color: rgba(184, 83, 98, 0.14);
}

body.mode-hotel .stats div:nth-child(4),
body.mode-platform .stats div:nth-child(4) {
    background: var(--surface-blue);
    border-color: rgba(61, 113, 196, 0.16);
}

body.mode-hotel .stats div:nth-child(5),
body.mode-platform .stats div:nth-child(5) {
    background: var(--surface-violet);
    border-color: rgba(110, 92, 196, 0.14);
}

body.mode-hotel .stats div:nth-child(1)::after,
body.mode-platform .stats div:nth-child(1)::after { background: rgba(19, 118, 102, 0.32); }
body.mode-hotel .stats div:nth-child(2)::after,
body.mode-platform .stats div:nth-child(2)::after { background: rgba(188, 124, 58, 0.34); }
body.mode-hotel .stats div:nth-child(3)::after,
body.mode-platform .stats div:nth-child(3)::after { background: rgba(184, 83, 98, 0.28); }
body.mode-hotel .stats div:nth-child(4)::after,
body.mode-platform .stats div:nth-child(4)::after { background: rgba(61, 113, 196, 0.3); }
body.mode-hotel .stats div:nth-child(5)::after,
body.mode-platform .stats div:nth-child(5)::after { background: rgba(110, 92, 196, 0.28); }

body.mode-hotel .table-wrap,
body.mode-platform .table-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
}

body.mode-hotel th,
body.mode-platform th {
    background: linear-gradient(180deg, #fbfdfb 0%, #f2f7f4 100%);
}

body.mode-hotel .quick-links a,
body.mode-platform .quick-links a {
    background: var(--surface-blue);
    border-color: rgba(61, 113, 196, 0.14);
}

body.mode-hotel .quick-links a:nth-child(2),
body.mode-platform .quick-links a:nth-child(2) {
    background: var(--surface-emerald);
    border-color: rgba(19, 118, 102, 0.14);
}

body.mode-hotel .quick-links a:nth-child(3),
body.mode-platform .quick-links a:nth-child(3) {
    background: var(--surface-amber);
    border-color: rgba(188, 124, 58, 0.16);
}

body.mode-hotel .room-card,
body.mode-platform .room-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 251, 248, 0.95));
}

body.mode-hotel .room-grid .room-card:nth-child(3n+2),
body.mode-platform .room-grid .room-card:nth-child(3n+2) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 239, 0.95));
}

body.mode-hotel .room-grid .room-card:nth-child(3n),
body.mode-platform .room-grid .room-card:nth-child(3n) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 245, 255, 0.95));
}

body.mode-hotel .content-list-item,
body.mode-platform .content-list-item,
body.mode-hotel .editable-item,
body.mode-platform .editable-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.94));
}

body.mode-hotel .content-list-item:nth-child(2n),
body.mode-platform .content-list-item:nth-child(2n) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 247, 0.95));
}

body.mode-hotel .content-meta span,
body.mode-platform .content-meta span {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(233, 241, 253, 0.92));
    color: #50617d;
}

body.mode-hotel .notify-bind-row,
body.mode-platform .notify-bind-row,
body.mode-hotel .notify-step,
body.mode-platform .notify-step {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 251, 248, 0.95));
}

body.mode-hotel .notify-step:nth-child(2),
body.mode-platform .notify-step:nth-child(2) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 238, 0.95));
}

body.mode-hotel .notify-step:nth-child(3),
body.mode-platform .notify-step:nth-child(3) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 246, 255, 0.95));
}

body.mode-hotel .step-no,
body.mode-platform .step-no {
    background: linear-gradient(135deg, rgba(19, 118, 102, 0.18), rgba(61, 113, 196, 0.12));
}

body.mode-hotel .binding-chip,
body.mode-platform .binding-chip {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247, 251, 255, 0.95));
}

body.mode-hotel .modal-dialog,
body.mode-platform .modal-dialog {
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(250, 252, 251, 0.97));
}

@media (max-width: 780px) {
    body.mode-hotel .topbar,
    body.mode-platform .topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        min-height: auto;
        padding: 12px;
    }

    body.mode-hotel .nav,
    body.mode-platform .nav {
        width: 100%;
        overflow-x: auto;
    }

    body.mode-hotel .nav a,
    body.mode-platform .nav a {
        flex: 0 0 auto;
    }

    body.mode-hotel .page,
    body.mode-platform .page {
        width: min(100% - 20px, 1360px);
        margin-top: 16px;
    }

    body.mode-hotel .section-head,
    body.mode-platform .section-head {
        align-items: stretch;
        padding: 18px;
    }

    body.mode-hotel .section-head .button,
    body.mode-platform .section-head .button,
    body.mode-hotel .toolbar .button,
    body.mode-platform .toolbar .button {
        width: 100%;
    }

    body.mode-hotel .stats,
    body.mode-platform .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.mode-hotel .stats div,
    body.mode-platform .stats div {
        min-height: 108px;
        padding: 16px;
    }

    body.mode-hotel .notify-flow,
    body.mode-platform .notify-flow {
        grid-template-columns: 1fr;
    }

    body.mode-hotel .wechat-bind-dialog,
    body.mode-platform .wechat-bind-dialog,
    body.mode-hotel .wechat-follow-dialog,
    body.mode-platform .wechat-follow-dialog {
        width: min(100vw - 16px, 620px);
    }

    body.mode-hotel .wechat-bind-dialog .modal-head,
    body.mode-platform .wechat-bind-dialog .modal-head,
    body.mode-hotel .wechat-follow-dialog .modal-head,
    body.mode-platform .wechat-follow-dialog .modal-head {
        min-height: 52px;
        padding: 12px 14px 10px;
    }

    body.mode-hotel .wechat-bind-dialog .modal-actions,
    body.mode-platform .wechat-bind-dialog .modal-actions,
    body.mode-hotel .wechat-follow-dialog .modal-actions,
    body.mode-platform .wechat-follow-dialog .modal-actions {
        min-height: 56px;
        padding: 10px 14px 14px;
    }
    body.mode-hotel .wechat-bind-dialog .modal-head,
    body.mode-platform .wechat-bind-dialog .modal-head,
    body.mode-hotel .wechat-follow-dialog .modal-head,
    body.mode-platform .wechat-follow-dialog .modal-head {
        padding: 18px 18px 14px;
    }

    body.mode-hotel .wechat-bind-dialog .modal-actions,
    body.mode-platform .wechat-bind-dialog .modal-actions,
    body.mode-hotel .wechat-follow-dialog .modal-actions,
    body.mode-platform .wechat-follow-dialog .modal-actions {
        padding: 14px 18px 18px;
    }

    body.mode-hotel .wechat-bind-dialog iframe,
    body.mode-platform .wechat-bind-dialog iframe {
        min-height: 360px;
        height: min(68vh, 560px);
    }

    body.mode-hotel .wechat-follow-dialog .follow-qr-box,
    body.mode-platform .wechat-follow-dialog .follow-qr-box {
        margin: 0 18px;
    }

    body.mode-hotel .order-search-row,
    body.mode-platform .order-search-row,
    body.mode-hotel .notify-step,
    body.mode-platform .notify-step,
    body.mode-hotel .binding-chip,
    body.mode-platform .binding-chip {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    body.mode-hotel .notify-step .button,
    body.mode-platform .notify-step .button {
        width: 100%;
    }
}

@media (max-width: 460px) {
    body.mode-hotel .stats,
    body.mode-platform .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .page {
        width: min(100% - 20px, 1180px);
        margin-top: 14px;
    }

    .panel,
    .auth-panel {
        padding: 16px;
    }

    .two-col,
    .guest-layout,
    .room-admin-layout {
        grid-template-columns: 1fr;
    }

    .room-create {
        position: static;
        order: -1;
    }

    .guest-item {
        grid-template-columns: minmax(0, 1fr) 70px 30px;
    }

    .order-search-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .info-list div {
        gap: 8px;
    }

    .info-list dt {
        flex-basis: 78px;
    }

    .content-list-item {
        grid-template-columns: 1fr;
    }

    .content-row-actions {
        justify-content: flex-start;
        min-width: 0;
    }
}


@media (max-width: 780px) {
    .topbar-guest {
        align-items: center;
        flex-direction: row;
    }

    .page-guest {
        width: min(100% - 16px, 1180px);
        margin-top: 12px;
    }

    .guest-home-hero,
    .guest-service-hero,
    .guest-wifi-grid,
    .guest-service-grid,
    .guest-hero-meta,
    .guest-service-summary {
        grid-template-columns: 1fr;
    }

    .guest-home-hero,
    .guest-service-hero,
    .guest-order,
    .guest-wifi-card,
    .guest-service-panel,
    .guest-guide-panel {
        padding: 18px;
    }

    .guest-item,
    .guest-item.service-choice,
    .guest-item.quantity-choice {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .guest-item.service-choice input {
        width: 20px;
        height: 20px;
    }

    .qty-stepper,
    .guest-copy-tile .button,
    .guest-service-action .guest-service-button,
    .guest-back-link {
        justify-self: stretch;
    }

    .guest-service-button {
        min-height: 150px;
    }
}


@media (max-width: 780px) {
    .guest-wifi-bar,
    .guest-wifi-item,
    .guest-wifi-password {
        align-items: flex-start;
    }

    .guest-wifi-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .guest-wifi-item {
        width: 100%;
        justify-content: space-between;
    }

    .guest-wifi-password {
        margin-left: 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .guest-service-grid-simple {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-service-grid-simple .guest-service-button {
        min-height: 72px;
        justify-self: stretch;
    }
}


@media (max-width: 780px) {
    .guest-layout-single .guest-item,
    .guest-layout-single .service-choice,
    .guest-layout-single .quantity-choice {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .guest-layout-single .service-choice b {
        min-width: 78px;
        padding-inline: 8px;
        font-size: 0.82rem;
    }

    .guest-layout-single .qty-stepper {
        grid-template-columns: 34px 42px 34px;
        min-height: 38px;
    }

    .guest-layout-single .qty-btn {
        width: 34px;
        height: 38px;
    }

    .guest-layout-single .qty-value {
        min-width: 42px;
    }
}

@media print {
    .topbar,
    .section-head,
    .panel form,
    .toolbar .button {
        display: none !important;
    }

    body,
    .page,
    .panel {
        background: #fff;
        box-shadow: none;
    }

    .qr-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
