/* ========== 站内通知弹窗 ========== */
.qm-notify-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 1rem 1rem;
}

.qm-notify-modal.hidden {
    display: none;
}

.qm-notify-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.qm-notify-modal__panel {
    position: relative;
    width: 420px;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 120px);
    border-radius: var(--qm-radius-xl);
    background: #ffffff;
    box-shadow: 0 25px 60px var(--qm-primary-rgba-20, rgba(255, 20, 147, 0.2));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: notifyModalIn 0.25s ease;
}

@keyframes notifyModalIn {
    from { opacity: 0; transform: translate3d(0, -20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.dark .qm-notify-modal__panel {
    background: var(--qm-bg-dark-800);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.qm-notify-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%);
    color: #ffffff;
}

.qm-notify-modal__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.qm-notify-modal__title i {
    font-size: 18px;
}

.qm-notify-modal__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qm-notify-modal__mark-all,
.qm-notify-modal__close {
    width: 32px;
    height: 32px;
    border-radius: var(--qm-radius-circle);
    border: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qm-notify-modal__mark-all:hover,
.qm-notify-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.qm-notify-modal__close:hover {
    transform: rotate(90deg);
}

.qm-notify-modal__content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-height: 200px;
    max-height: 400px;
}

.qm-notify-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: #94a3b8;
}

.qm-notify-modal__loading i {
    font-size: 24px;
    background: linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qm-notify-modal__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: #94a3b8;
}

.qm-notify-modal__empty i {
    font-size: 48px;
    opacity: 0.5;
}

.qm-notify-modal__empty span {
    font-size: 14px;
}


.qm-notify-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qm-notify-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
    cursor: pointer;
}

.qm-notify-item:hover {
    background: var(--qm-primary-rgba-04, rgba(255, 20, 147, 0.04));
}

.qm-notify-item:last-child {
    border-bottom: none;
}

.dark .qm-notify-item {
    border-bottom-color: var(--qm-border-dark-600);
}

.dark .qm-notify-item:hover {
    background: var(--qm-primary-rgba-10, rgba(255, 20, 147, 0.1));
}

.qm-notify-item--unread {
    background: linear-gradient(135deg, var(--qm-primary-rgba-06, rgba(255, 20, 147, 0.06)), var(--qm-primary-light-rgba-04, rgba(255, 105, 180, 0.04)));
}

.qm-notify-item--unread:hover {
    background: linear-gradient(135deg, var(--qm-primary-rgba-10, rgba(255, 20, 147, 0.1)), var(--qm-primary-light-rgba-08, rgba(255, 105, 180, 0.08)));
}

.qm-notify-item__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--qm-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--qm-primary-rgba-12, rgba(255, 20, 147, 0.12)), var(--qm-primary-light-rgba-12, rgba(255, 105, 180, 0.12)));
}

.qm-notify-item__icon i {
    font-size: 16px;
    background: linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qm-notify-item__icon--checkin {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(34, 197, 94, 0.12));
}

.qm-notify-item__icon--checkin i {
    background: linear-gradient(135deg, #10b981, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
}

.qm-notify-item__icon--system {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.12));
}

.qm-notify-item__icon--system i {
    background: linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.qm-notify-item__icon--reward {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.12));
}

.qm-notify-item__icon--reward i {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
}

.qm-notify-item__body {
    flex: 1;
    min-width: 0;
}

.qm-notify-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 4px;
}

.dark .qm-notify-item__title {
    color: #f1f5f9;
}

.qm-notify-item--unread .qm-notify-item__title {
    font-weight: 700;
}

.qm-notify-item__desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .qm-notify-item__desc {
    color: #94a3b8;
}

.qm-notify-item__time {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

.qm-notify-item__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--qm-radius-circle);
    background: linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%);
    flex-shrink: 0;
    margin-top: 6px;
}

.qm-notify-modal__footer {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.dark .qm-notify-modal__footer {
    border-top-color: var(--qm-border-dark-600);
}

.qm-notify-modal__view-all {
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.qm-notify-modal__view-all:hover {
    opacity: 0.8;
}

/* ========== 私信弹窗 ========== */
.qm-message-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 70px 1rem 1rem;
}

.qm-message-modal.hidden {
    display: none;
}

.qm-message-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.qm-message-modal__panel {
    position: relative;
    width: 880px;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 110px);
    border-radius: var(--qm-radius-xl);
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: messageModalIn 0.25s ease;
}

@keyframes messageModalIn {
    from { opacity: 0; transform: translate3d(0, -16px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.dark .qm-message-modal__panel {
    background: var(--qm-bg-dark-800);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.qm-message-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--qm-primary-gradient-135, linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%));
    color: #ffffff;
}

.qm-message-modal__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.qm-message-modal__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qm-message-modal__close {
    width: 32px;
    height: 32px;
    border-radius: var(--qm-radius-circle);
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qm-message-modal__close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(90deg);
}

.qm-message-modal__body {
    display: flex;
    flex: 1;
    min-height: 320px;
    max-height: 600px;
}

.qm-message-modal__threads {
    width: 300px;
    border-right: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.dark .qm-message-modal__threads {
    background: var(--qm-bg-dark);
    border-right-color: var(--qm-border-dark-600);
}

.qm-message-modal__threads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.dark .qm-message-modal__threads-header {
    border-bottom-color: var(--qm-border-dark-600);
}

.qm-message-modal__threads-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.dark .qm-message-modal__threads-title {
    color: #e2e8f0;
}

.qm-message-modal__threads-fallback {
    font-size: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 10px;
    border-radius: var(--qm-radius-pill);
    background: var(--qm-primary-gradient-135, linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%));
    white-space: nowrap;
}

.qm-message-modal__threads-fallback:hover {
    opacity: 0.9;
}

.qm-message-modal__threads-list {
    overflow-y: auto;
    padding: 0;
    flex: 1;
}

.qm-message-thread {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qm-message-thread:hover {
    background: linear-gradient(
        135deg,
        var(--qm-primary-rgba-08, rgba(255, 20, 147, 0.08)),
        var(--qm-primary-light-rgba-08, rgba(255, 105, 180, 0.08))
    );
}

.dark .qm-message-thread {
    border-bottom-color: var(--qm-border-dark-600);
}

.dark .qm-message-thread:hover {
    background: linear-gradient(
        135deg,
        var(--qm-primary-rgba-12, rgba(255, 20, 147, 0.12)),
        var(--qm-primary-light-rgba-08, rgba(255, 105, 180, 0.08))
    );
}

.qm-message-thread.is-active {
    background: linear-gradient(
        135deg,
        var(--qm-primary-rgba-12, rgba(255, 20, 147, 0.12)),
        var(--qm-primary-light-rgba-08, rgba(255, 105, 180, 0.08))
    );
}

.dark .qm-message-thread.is-active {
    background: linear-gradient(
        135deg,
        var(--qm-primary-rgba-20, rgba(255, 20, 147, 0.2)),
        var(--qm-primary-light-rgba-15, rgba(255, 105, 180, 0.15))
    );
}

.qm-message-thread__avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--qm-radius-circle);
    flex-shrink: 0;
    overflow: hidden;
    background: #e2e8f0;
}

.qm-message-thread__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qm-message-thread__meta {
    flex: 1;
    min-width: 0;
}

.qm-message-thread__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.qm-message-thread__name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .qm-message-thread__name {
    color: #e2e8f0;
}

.qm-message-thread__time {
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
}

.qm-message-thread__excerpt {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .qm-message-thread__excerpt {
    color: #94a3b8;
}

.qm-message-modal__chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qm-message-modal__chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    min-height: 54px;
}

.dark .qm-message-modal__chat-header {
    border-bottom-color: var(--qm-border-dark-600);
}

.qm-message-chat__avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--qm-radius-circle);
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

.qm-message-chat__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qm-message-chat__title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .qm-message-chat__title {
    color: #e2e8f0;
}

.qm-message-chat__subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 1px;
}

.qm-message-modal__chat-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--qm-primary-rgba-08, rgba(255, 20, 147, 0.08)) 35%, #f8fafc),
        #ffffff
    );
}

.dark .qm-message-modal__chat-content {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--qm-primary-rgba-12, rgba(255, 20, 147, 0.12)) 45%, rgba(40, 42, 47, 0.95)),
        rgba(52, 54, 60, 0.72)
    );
}

.qm-message-empty {
    padding: 40px 10px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.qm-message-item {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.qm-message-item--self {
    justify-content: flex-end;
}

.qm-message-card-shell {
    max-width: 82%;
}

.qm-message-bubble {
    max-width: 82%;
    padding: 10px 12px;
    border-radius: var(--qm-radius-lg);
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.dark .qm-message-bubble {
    background: rgba(52, 54, 60, 0.72);
    border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

.qm-message-item--self .qm-message-bubble {
    background: var(--qm-primary-gradient-135, linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%));
    border: 0;
    color: #ffffff;
}

.qm-message-bubble__text {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.45;
}

.qm-message-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--qm-radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06);
    background: #ffffff;
}

.qm-message-card__hero {
    display: none;
}

.qm-message-card__icon {
    display: none;
}

.qm-message-card__body {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding: 18px 18px 14px;
    border-radius: var(--qm-radius-sm);
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.qm-message-card__eyebrow {
    display: none;
}

.qm-message-card__header {
    position: relative;
    display: block;
    margin-bottom: 10px;
}

.qm-message-card__mark {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(31, 41, 55, 0.9);
    letter-spacing: 0.01em;
}

.qm-message-card__sig {
    position: absolute;
    top: -14px;
    right: -14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: var(--qm-radius-pill);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
}

.qm-message-card__sig i {
    font-size: 54px;
    line-height: 1;
    opacity: 0.22;
    filter: none;
    transform: none;
}

.qm-message-card--type-expiry_notice .qm-message-card__sig {
    color: rgba(14, 165, 233, 0.2);
}

.qm-message-card--type-announcement_notice .qm-message-card__sig {
    color: rgba(59, 130, 246, 0.2);
}

.qm-message-card--type-welcome_notice .qm-message-card__sig {
    color: rgba(139, 92, 246, 0.2);
}

.qm-message-card--type-reminder_notice .qm-message-card__sig {
    color: rgba(100, 116, 139, 0.18);
}

.qm-message-card__title {
    margin-top: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    color: #111827;
}

.qm-message-card__desc {
    margin-top: 12px;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
    background: transparent !important;
    border: 0;
}

.qm-message-card__detail {
    margin-top: 10px;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
    background: transparent !important;
    border: 0;
}

.qm-message-card__image-link {
    display: block;
    margin-top: 12px;
    text-decoration: none;
}

.qm-message-card__image {
    display: block;
    width: 100%;
    max-width: min(320px, 100%);
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--qm-radius-lg);
    background: rgba(15, 23, 42, 0.06);
}

.qm-message-card__content {
    margin-top: 12px;
    padding: 0;
    border-radius: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
    background: transparent !important;
    border: 0;
}

.qm-message-card__meta {
    margin-top: 14px;
    padding: 10px 0 0;
    border-radius: 0;
    font-size: 12px;
    color: #94a3b8;
    background: transparent !important;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.qm-message-card--layout-benefit_notice .qm-message-card__hero {
    display: none;
}

.qm-message-card--layout-benefit_notice .qm-message-card__title {
    font-size: 16px;
}

.qm-message-card--layout-benefit_notice .qm-message-card__desc,
.qm-message-card--layout-benefit_notice .qm-message-card__detail,
.qm-message-card--layout-benefit_notice .qm-message-card__content,
.qm-message-card--layout-benefit_notice .qm-message-card__meta {
    border: 0;
}

.qm-message-card--layout-benefit_notice .qm-message-card__icon {
    display: none;
}

.qm-message-card--layout-benefit_notice .qm-message-card__body {
    margin-top: 0;
    padding-top: 18px;
}

.qm-message-card--layout-benefit_notice .qm-message-card__eyebrow {
    display: none;
}

.qm-message-card--layout-benefit_notice .qm-message-card__desc {
    margin-top: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
}

.qm-message-card--layout-benefit_notice .qm-message-card__detail {
    margin-top: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    border-top: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
}

.qm-message-card--layout-benefit_notice .qm-message-card__content {
    margin-top: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
}

.qm-message-card--layout-benefit_notice .qm-message-card__meta {
    margin-top: 14px;
    padding: 10px 0 0;
    border-radius: 0;
    background: transparent !important;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 12px;
}

.qm-message-card--layout-benefit_notice .qm-message-card__emphasis {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.qm-message-card__facts {
    margin-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    border-bottom: 0;
}

.qm-message-card__fact {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px 0;
}

.qm-message-card__fact + .qm-message-card__fact {
    border-top: 1px dashed rgba(148, 163, 184, 0.14);
}

.qm-message-card__fact-label {
    font-size: 14px;
    line-height: 1.6;
    color: #9ca3af;
}

.qm-message-card__fact-value {
    font-size: 14px;
    line-height: 1.6;
    color: #111827;
    font-weight: 400;
}

.qm-message-card--layout-official_notice .qm-message-card__hero {
    display: none;
}

.qm-message-card--layout-official_notice .qm-message-card__icon {
    display: none;
}

.qm-message-card--layout-official_notice .qm-message-card__body {
    margin-top: 0;
    padding: 18px 20px 18px;
}

.qm-message-card--layout-official_notice .qm-message-card__eyebrow {
    display: none;
}

.qm-message-card--layout-official_notice .qm-message-card__title {
    margin-top: 0;
    max-width: min(74%, 420px);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: 0;
    color: #111827;
}

.qm-message-card--layout-official_notice .qm-message-card__desc {
    margin-top: 18px;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    border: 0;
    font-size: 16px;
    line-height: 1.85;
    color: rgba(55, 65, 81, 0.92);
}

.qm-message-card--layout-official_notice .qm-message-card__detail {
    margin-top: 16px;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    border: 0;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(75, 85, 99, 0.9);
}

.qm-message-card--layout-official_notice .qm-message-card__content {
    margin-top: 16px;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    border: 0;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(75, 85, 99, 0.9);
}

.qm-message-card--layout-official_notice .qm-message-card__meta {
    margin-top: 18px;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    border-top: 0;
    font-size: 12px;
    color: rgba(100, 116, 139, 0.86);
}

.qm-message-card__emphasis {
    display: inline;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-weight: 400;
}

.qm-message-card__desc .qm-message-card__emphasis,
.qm-message-card__detail .qm-message-card__emphasis,
.qm-message-card__content .qm-message-card__emphasis,
.qm-message-card__title .qm-message-card__emphasis {
    background: transparent;
}

.qm-message-card--layout-benefit_notice {
    background: #ffffff;
}

.qm-message-card--layout-benefit_notice.qm-message-card--amber .qm-message-card__icon {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.18);
    color: #d97706;
}

.qm-message-card--layout-benefit_notice.qm-message-card--emerald .qm-message-card__icon {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.18);
    color: #059669;
}

.qm-message-card--layout-benefit_notice.qm-message-card--violet .qm-message-card__icon {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.18);
    color: #7c3aed;
}

.qm-message-card--layout-benefit_notice.qm-message-card--rose .qm-message-card__icon {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.18);
    color: #e11d48;
}

.qm-message-card--layout-benefit_notice.qm-message-card--sky .qm-message-card__icon {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.18);
    color: #0284c7;
}

.qm-message-card--layout-official_notice.qm-message-card--amber {
    background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
}

.qm-message-card--layout-official_notice.qm-message-card--emerald {
    background: linear-gradient(180deg, #f4fffb 0%, #ffffff 100%);
}

.qm-message-card--layout-official_notice.qm-message-card--violet {
    background: linear-gradient(180deg, #fbf8ff 0%, #ffffff 100%);
}

.qm-message-card--layout-official_notice.qm-message-card--rose {
    background: linear-gradient(180deg, #fff8fa 0%, #ffffff 100%);
}

.qm-message-card--layout-official_notice.qm-message-card--sky {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.08) 100%),
        linear-gradient(180deg, #c8eef0 0%, #eef9fa 100%);
}

.qm-message-card--layout-official_notice.qm-message-card--slate {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 100%),
        linear-gradient(180deg, #d9ecf2 0%, #f4fafc 100%);
}

.qm-message-card--layout-official_notice.qm-message-card--mint {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 100%),
        linear-gradient(180deg, #c2efdf 0%, #f1fbf7 100%);
}

.qm-message-card--layout-official_notice.qm-message-card--amber .qm-message-card__hero {
    display: none;
}

.qm-message-card--layout-official_notice.qm-message-card--emerald .qm-message-card__hero {
    display: none;
}

.qm-message-card--layout-official_notice.qm-message-card--violet .qm-message-card__hero {
    display: none;
}

.qm-message-card--layout-official_notice.qm-message-card--rose .qm-message-card__hero {
    display: none;
}

.qm-message-card--layout-official_notice.qm-message-card--sky .qm-message-card__hero {
    display: none;
}

.qm-message-card--layout-official_notice.qm-message-card--slate .qm-message-card__hero {
    display: none;
}

.dark .qm-message-card {
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.38);
}

.dark .qm-message-card__body {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.dark .qm-message-card__eyebrow {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.78);
}

.dark .qm-message-card__title {
    color: #f8fafc;
}

.dark .qm-message-card__desc {
    color: rgba(226, 232, 240, 0.88);
}

.dark .qm-message-card__detail {
    color: rgba(148, 163, 184, 0.92);
    border-top-color: rgba(148, 163, 184, 0.14);
}

.dark .qm-message-card__content {
    color: rgba(226, 232, 240, 0.92);
}

.dark .qm-message-card__meta {
    color: rgba(148, 163, 184, 0.92);
    border-top-color: rgba(148, 163, 184, 0.14);
}

.dark .qm-message-card--layout-benefit_notice {
    background: rgba(15, 23, 42, 0.92);
}

.dark .qm-message-card--layout-benefit_notice .qm-message-card__desc {
    color: rgba(226, 232, 240, 0.94);
}

.dark .qm-message-card--layout-benefit_notice .qm-message-card__detail,
.dark .qm-message-card--layout-benefit_notice .qm-message-card__content {
    color: rgba(203, 213, 225, 0.92);
}

.dark .qm-message-card--layout-benefit_notice .qm-message-card__detail {
    border-top-color: rgba(148, 163, 184, 0.14);
}

.dark .qm-message-card--layout-benefit_notice .qm-message-card__meta {
    border-top-color: rgba(148, 163, 184, 0.16);
}

.dark .qm-message-card__facts {
    border-top-color: rgba(148, 163, 184, 0.14);
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

.dark .qm-message-card__fact + .qm-message-card__fact {
    border-top-color: rgba(148, 163, 184, 0.12);
}

.dark .qm-message-card__fact-label {
    color: rgba(148, 163, 184, 0.9);
}

.dark .qm-message-card__fact-value {
    color: #f8fafc;
}

.dark .qm-message-card--layout-benefit_notice.qm-message-card--amber .qm-message-card__icon {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
}

.dark .qm-message-card--layout-benefit_notice.qm-message-card--emerald .qm-message-card__icon {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.22);
    color: #34d399;
}

.dark .qm-message-card--layout-benefit_notice.qm-message-card--violet .qm-message-card__icon {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.22);
    color: #c4b5fd;
}

.dark .qm-message-card--layout-benefit_notice.qm-message-card--rose .qm-message-card__icon {
    background: rgba(244, 63, 94, 0.18);
    border-color: rgba(244, 63, 94, 0.22);
    color: #fda4af;
}

.dark .qm-message-card--layout-benefit_notice.qm-message-card--sky .qm-message-card__icon {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.22);
    color: #7dd3fc;
}

.dark .qm-message-card--layout-official_notice .qm-message-card__desc {
    color: rgba(226, 232, 240, 0.92);
}

.dark .qm-message-card--layout-official_notice .qm-message-card__detail,
.dark .qm-message-card--layout-official_notice .qm-message-card__content {
    color: rgba(203, 213, 225, 0.92);
}

.dark .qm-message-card--layout-official_notice.qm-message-card--amber {
    background: linear-gradient(180deg, rgba(69, 26, 3, 0.92) 0%, rgba(120, 53, 15, 0.88) 100%);
}

.dark .qm-message-card--layout-official_notice.qm-message-card--emerald {
    background: linear-gradient(180deg, rgba(2, 44, 34, 0.92) 0%, rgba(17, 94, 89, 0.88) 100%);
}

.dark .qm-message-card--layout-official_notice.qm-message-card--violet {
    background: linear-gradient(180deg, rgba(46, 16, 101, 0.92) 0%, rgba(131, 24, 67, 0.88) 100%);
}

.dark .qm-message-card--layout-official_notice.qm-message-card--rose {
    background: linear-gradient(180deg, rgba(76, 5, 25, 0.92) 0%, rgba(136, 19, 55, 0.88) 100%);
}

.dark .qm-message-card--layout-official_notice.qm-message-card--sky {
    background: linear-gradient(180deg, rgba(8, 47, 73, 0.92) 0%, rgba(49, 46, 129, 0.88) 100%);
}

.dark .qm-message-card--layout-official_notice.qm-message-card--slate {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.dark .qm-message-card--layout-official_notice.qm-message-card--mint {
    background: linear-gradient(180deg, rgba(6, 78, 59, 0.92) 0%, rgba(15, 118, 110, 0.88) 100%);
}

.dark .qm-message-card__mark {
    color: rgba(226, 232, 240, 0.82);
}

.dark .qm-message-card__sig {
    color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 640px) {
    .qm-message-card-shell {
        max-width: 92%;
    }

    .qm-message-card--layout-official_notice .qm-message-card__title {
        max-width: min(78%, 100%);
        font-size: 24px;
    }

    .qm-message-card__sig {
        top: -12px;
        right: -12px;
        width: 72px;
        height: 72px;
    }

    .qm-message-card__sig i {
        font-size: 44px;
    }

}

.dark .qm-message-card__desc .qm-message-card__emphasis,
.dark .qm-message-card__detail .qm-message-card__emphasis,
.dark .qm-message-card__content .qm-message-card__emphasis,
.dark .qm-message-card__title .qm-message-card__emphasis {
    background: rgba(255, 255, 255, 0.10);
}

.qm-message-bubble__image-link {
    display: block;
    text-decoration: none;
}

.qm-message-bubble__image {
    display: block;
    width: auto;
    max-width: min(280px, 100%);
    max-height: 320px;
    border-radius: var(--qm-radius-lg);
    margin-bottom: 8px;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.06);
}

.qm-message-bubble__time {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 6px;
}

.qm-message-modal__composer {
    border-top: 1px solid #f1f5f9;
    padding: 12px 16px;
    background: #ffffff;
}

.dark .qm-message-modal__composer {
    background: var(--qm-bg-dark-800);
    border-top-color: var(--qm-border-dark-600);
}

.qm-message-hint {
    font-size: 12px;
    line-height: 1.3;
    padding: 8px 10px;
    border-radius: var(--qm-radius-lg);
    margin-bottom: 8px;
}

.qm-message-hint--error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.qm-message-hint--success {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.10);
    border: 1px solid rgba(22, 163, 74, 0.22);
}

.qm-message-modal__input {
    width: 100%;
    border-radius: var(--qm-radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 10px 12px;
    resize: none;
    outline: none;
    font-size: 13px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .qm-message-modal__input {
    background: rgba(40, 42, 47, 0.78);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.35);
}

.qm-message-modal__input:focus {
    border-color: var(--qm-primary, #FF1493);
    box-shadow: 0 0 0 4px var(--qm-primary-rgba-20, rgba(255, 20, 147, 0.2));
}

.qm-message-modal__file-input {
    display: none;
}

.qm-message-modal__preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-top: 8px;
    border-radius: var(--qm-radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.95);
}

.qm-message-modal__preview.hidden {
    display: none;
}

.dark .qm-message-modal__preview {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.22);
}

.qm-message-modal__preview-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--qm-radius-lg);
    object-fit: cover;
    flex-shrink: 0;
}

.qm-message-modal__preview-meta {
    min-width: 0;
    flex: 1;
}

.qm-message-modal__preview-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark .qm-message-modal__preview-name {
    color: #f8fafc;
}

.qm-message-modal__preview-size {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.qm-message-modal__preview-remove {
    border: 0;
    border-radius: var(--qm-radius-pill);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: #be123c;
    background: rgba(244, 63, 94, 0.12);
    flex-shrink: 0;
}

.qm-message-modal__composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.qm-message-modal__upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--qm-radius-pill);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: #0f172a;
    background: rgba(148, 163, 184, 0.14);
}

.qm-message-modal__upload.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dark .qm-message-modal__upload {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.18);
}

.qm-message-modal__composer-note {
    font-size: 12px;
    color: #64748b;
    flex: 1;
}

.dark .qm-message-modal__composer-note {
    color: #94a3b8;
}

.qm-message-modal__send {
    border: 0;
    border-radius: var(--qm-radius-pill);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--qm-primary-gradient-135, linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%));
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.qm-message-modal__send:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .qm-message-modal {
        padding: 56px 0.75rem 0.75rem;
    }
    .qm-message-modal__body {
        flex-direction: column;
        max-height: calc(100vh - 120px);
    }
    .qm-message-modal__threads {
        width: 100%;
        max-height: 220px;
        border-right: 0;
        border-bottom: 1px solid #f1f5f9;
    }
    .dark .qm-message-modal__threads {
        border-bottom-color: var(--qm-border-dark-600);
    }
    .qm-message-modal__composer-actions {
        align-items: stretch;
    }
    .qm-message-modal__composer-note {
        flex-basis: 100%;
    }
}

.qm-user-menu {
    width: min(312px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    padding: 10px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--qm-radius-lg-soft);
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 22%),
        radial-gradient(circle at 86% 12%, rgba(255, 179, 218, 0.34) 0%, rgba(255, 179, 218, 0) 34%),
        radial-gradient(circle at 18% 86%, rgba(170, 223, 255, 0.32) 0%, rgba(170, 223, 255, 0) 36%),
        radial-gradient(circle at 74% 62%, rgba(255, 238, 247, 0.74) 0%, rgba(255, 238, 247, 0) 34%),
        linear-gradient(145deg, #f7fbff 0%, #eef6ff 34%, #fff7fb 68%, #fffdf7 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 38px rgba(129, 151, 184, 0.16);
    z-index: 70;
}

.dark .qm-user-menu {
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 24%),
        radial-gradient(circle at 86% 12%, rgba(236, 72, 153, 0.18) 0%, rgba(236, 72, 153, 0) 36%),
        radial-gradient(circle at 12% 88%, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0) 38%),
        linear-gradient(160deg, #212938 0%, #1b2431 46%, #252a3b 100%);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.qm-user-menu::before,
.qm-user-menu::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.qm-user-menu::before {
    top: -34px;
    right: -24px;
    width: 154px;
    height: 154px;
    border-radius: var(--qm-radius-window);
    background:
        radial-gradient(circle at 34% 36%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.34) 24%, rgba(255, 255, 255, 0) 66%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.38);
    opacity: 0.96;
}

.qm-user-menu::after {
    left: -46px;
    top: 88px;
    width: 148px;
    height: 148px;
    border-radius: var(--qm-radius-window);
    background:
        radial-gradient(circle at 28% 28%, rgba(255, 188, 219, 0.34) 0%, rgba(255, 188, 219, 0.14) 30%, rgba(255, 188, 219, 0) 64%),
        radial-gradient(circle at 72% 68%, rgba(155, 220, 255, 0.34) 0%, rgba(155, 220, 255, 0.16) 24%, rgba(155, 220, 255, 0) 60%);
    filter: blur(10px);
    opacity: 0.94;
}

.dark .qm-user-menu::before {
    background:
        radial-gradient(circle at 34% 36%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 22%, rgba(255, 255, 255, 0) 66%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .qm-user-menu::after {
    background:
        radial-gradient(circle at 28% 28%, rgba(236, 72, 153, 0.24) 0%, rgba(236, 72, 153, 0.08) 30%, rgba(236, 72, 153, 0) 64%),
        radial-gradient(circle at 72% 68%, rgba(56, 189, 248, 0.24) 0%, rgba(56, 189, 248, 0.1) 24%, rgba(56, 189, 248, 0) 60%);
}

.qm-user-menu__header,
.qm-user-menu__member,
.qm-user-menu__overview,
.qm-user-menu__panel,
.qm-user-menu__badge {
    position: relative;
    z-index: 1;
}

.qm-user-menu a,
.qm-user-menu button {
    text-decoration: none;
}

.qm-user-menu__svg {
    width: 100%;
    height: 100%;
    display: block;
    vector-effect: non-scaling-stroke;
}

.qm-user-menu__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: var(--qm-radius-xs);
}

.qm-user-menu__header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 4px 2px 12px;
}

.qm-user-menu__avatar {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.qm-user-menu__avatar-img {
    width: 56px;
    height: 56px;
    border-radius: var(--qm-radius-circle);
    border: 2px solid rgba(255, 255, 255, 0.82);
    box-shadow: none;
}

.dark .qm-user-menu__avatar-img {
    border-color: rgba(255, 255, 255, 0.12);
}

.qm-user-menu__header-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.qm-user-menu__info {
    min-width: 0;
    flex: 1;
    padding-top: 9px;
}

.qm-user-menu__stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--qm-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 247, 250, 0.92) 100%);
    border: 1px solid rgba(244, 114, 182, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.dark .qm-user-menu__stats {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.qm-user-menu__stat {
    min-width: 0;
    padding: 8px 6px;
    border-radius: var(--qm-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.58);
}

.dark .qm-user-menu__stat {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.qm-user-menu__stat-value {
    display: block;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.qm-user-menu__stat-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
}

.dark .qm-user-menu__stat-value {
    color: #f8fafc;
}

.dark .qm-user-menu__stat-label {
    color: rgba(226, 232, 240, 0.68);
}

.qm-user-menu__identity {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    flex-wrap: nowrap;
}

.qm-user-menu__name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4b5563;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
}

.dark .qm-user-menu__name {
    color: #f8fafc;
}

.qm-user-menu__tag {
    display: inline-flex;
    align-items: center;
    align-self: center;
    padding: 3px 8px;
    border-radius: var(--qm-radius-pill);
    background: rgba(15, 23, 42, 0.06);
    color: #6b7280;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.dark .qm-user-menu__tag {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}

.qm-user-menu .qm-vip-badge,
.qm-user-menu .qm-vip-badge-inline {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.qm-user-menu .qm-vip-badge-inline.qm-user-menu__vip-badge {
    width: auto;
    height: 18px;
    max-width: 56px;
    object-fit: contain;
    margin-left: 0;
    margin-top: -1px;
    flex: 0 0 auto;
}

.qm-user-menu__vip-text-badge {
    min-width: 34px;
    height: 18px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--qm-radius-pill);
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex: 0 0 auto;
}

.dark .qm-user-menu__vip-text-badge {
    background: rgba(244, 114, 182, 0.18);
    color: #f9a8d4;
}

.qm-user-menu .qm-level-badge.qm-user-menu__level-badge,
.qm-user-menu .qm-level-badge-sm.qm-user-menu__level-badge {
    width: auto;
    height: 18px;
    max-width: 42px;
    object-fit: contain;
    margin-left: 0;
    margin-top: -1px;
    flex: 0 0 auto;
}

.qm-user-menu .qm-special-badge.qm-user-menu__special-badge,
.qm-user-menu .qm-special-badge-inline.qm-user-menu__special-badge {
    width: auto;
    height: 18px;
    max-width: 42px;
    object-fit: contain;
    margin-left: 0;
    margin-top: -1px;
    flex: 0 0 auto;
}

.qm-user-menu__level-fallback {
    min-width: 24px;
    height: 18px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--qm-radius-pill);
    background: rgba(15, 23, 42, 0.06);
    color: #666666;
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}

.qm-user-menu__member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 12px;
    min-width: 0;
}

.qm-user-menu__overview {
    width: calc(100% - 8px);
    margin: 0 auto;
    padding: 0 0 4px;
    border-radius: var(--qm-radius-lg);
    background: linear-gradient(135deg, rgba(255, 244, 214, 0.92) 0%, rgba(255, 250, 238, 0.96) 52%, rgba(255, 239, 247, 0.92) 100%);
    border: 1px solid rgba(196, 160, 97, 0.14);
    overflow: hidden;
}

.dark .qm-user-menu__overview {
    background: linear-gradient(135deg, rgba(88, 66, 29, 0.48) 0%, rgba(58, 46, 24, 0.36) 52%, rgba(82, 41, 72, 0.34) 100%);
    border-color: rgba(201, 169, 108, 0.14);
}

.qm-user-menu__summary {
    width: 100%;
    margin: 0;
    padding: 12px 14px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.qm-user-menu__summary-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.qm-user-menu__summary-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    min-width: 0;
}

.qm-user-menu__summary-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8f6430;
    flex: 0 0 auto;
}

.qm-user-menu__summary-icon--points {
    color: #9a6c36;
}

.dark .qm-user-menu__summary-icon {
    color: #f1d19b;
}

.qm-user-menu__summary-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: nowrap;
}

.qm-user-menu__summary-label {
    display: inline-block;
    color: #7a6042;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.1;
    flex: 0 0 auto;
}

.qm-user-menu__summary-value {
    display: inline-block;
    color: #5f462e;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    flex: 0 0 auto;
}

.dark .qm-user-menu__summary-label,
.dark .qm-user-menu__summary-value {
    color: #f8fafc;
}

.qm-user-menu__summary-action {
    min-height: 30px;
    min-width: 78px;
    padding: 0 10px;
    border-radius: var(--qm-radius-xs);
    font-size: 10px;
    flex-shrink: 0;
}

.qm-user-menu__member-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.qm-user-menu__member-copy strong {
    color: #555555;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.dark .qm-user-menu__member-copy strong {
    color: #f8fafc;
}

.qm-user-menu__member-copy > span:last-child {
    color: #666666;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
}

.dark .qm-user-menu__member-copy > span:last-child {
    color: #94a3b8;
}

.qm-user-menu__member-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 27px;
    min-width: 66px;
    padding: 0 8px;
    border: 0 !important;
    border-radius: var(--qm-radius-xs);
    white-space: nowrap;
    font-size: 8px;
    font-weight: 400;
    box-shadow: none;
    cursor: pointer;
}

.qm-user-menu__member-action:focus,
.qm-user-menu__member-action:focus-visible,
.qm-user-menu__member-action:active {
    border: 0 !important;
    outline: none;
}

.qm-user-menu .qm-vip-open,
.qm-user-menu button.qm-vip-open,
.qm-user-menu a.qm-vip-open {
    background: linear-gradient(96.27deg, #FFEEC3 3.33%, #FFDBB0 45.52%, #FFC196 85.13%, #F8A2E6 109.28%) !important;
    background-image: linear-gradient(96.27deg, #FFEEC3 3.33%, #FFDBB0 45.52%, #FFC196 85.13%, #F8A2E6 109.28%) !important;
    color: #6B2D00 !important;
}

.qm-user-menu .qm-vip-open:hover,
.qm-user-menu button.qm-vip-open:hover,
.qm-user-menu a.qm-vip-open:hover {
    background: linear-gradient(96.27deg, #FFEEC3 3.33%, #FFDBB0 45.52%, #FFC196 85.13%, #F8A2E6 109.28%) !important;
    background-image: linear-gradient(96.27deg, #FFEEC3 3.33%, #FFDBB0 45.52%, #FFC196 85.13%, #F8A2E6 109.28%) !important;
    color: #6B2D00 !important;
    opacity: 0.92;
}

.qm-user-menu .qm-vip-open i,
.qm-user-menu .qm-vip-open span,
.qm-user-menu button.qm-vip-open i,
.qm-user-menu button.qm-vip-open span,
.qm-user-menu a.qm-vip-open i,
.qm-user-menu a.qm-vip-open span {
    color: #6B2D00 !important;
}

.qm-user-menu__member-action.qm-user-menu__summary-action {
    min-height: 30px;
    min-width: 78px;
    padding: 0 10px;
    border-radius: var(--qm-radius-xs);
    font-size: 10px;
}

.qm-user-menu__panel {
    width: auto;
    margin: 0 4px 4px;
    border-radius: var(--qm-radius-md);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

.dark .qm-user-menu__panel {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.08);
}

.qm-user-menu__rows {
    display: flex;
    flex-direction: column;
}

.qm-user-menu__row-action + .qm-user-menu__row-action {
    border-top: 1px solid rgba(15, 23, 42, 0.035);
}

.qm-user-menu__row-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.qm-user-menu__row-action,
.qm-user-menu__member-action {
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.qm-user-menu__row-action:hover {
    transform: none;
    box-shadow: none;
    background: rgba(15, 23, 42, 0.025);
}

.dark .qm-user-menu__row-action {
    background: transparent;
}

.dark .qm-user-menu__row-action:hover {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.dark .qm-user-menu__row-action + .qm-user-menu__row-action {
    border-top-color: rgba(148, 163, 184, 0.08);
}

.qm-user-menu__row-main,
.qm-user-menu__row-side {
    display: flex;
    align-items: center;
}

.qm-user-menu__row-main {
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.qm-user-menu__row-side {
    gap: 8px;
    flex-shrink: 0;
}

.qm-user-menu__row-icon {
    width: 18px;
    height: 18px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    color: #666666;
}

.dark .qm-user-menu__row-icon {
    background: transparent;
    color: #d1d5db;
}

.qm-user-menu__row-text {
    color: #555555;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.dark .qm-user-menu__row-text {
    color: #f8fafc;
}

.qm-user-menu__row-value {
    color: #666666;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.dark .qm-user-menu__row-value {
    color: #94a3b8;
}

.qm-user-menu__row-arrow {
    width: 12px;
    height: 12px;
    color: #9ca3af;
    line-height: 1;
}

.dark .qm-user-menu__row-arrow {
    color: #64748b;
}

.qm-user-menu__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.035);
}

.dark .qm-user-menu__grid {
    border-top-color: rgba(148, 163, 184, 0.08);
}

.qm-user-menu__grid-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.qm-user-menu__grid-item:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
}

.dark .qm-user-menu__grid-item {
    background: transparent;
}

.dark .qm-user-menu__grid-item:hover {
    background: transparent;
}

.qm-user-menu__grid-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
}

.qm-user-menu__grid-item--button {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.qm-user-menu__grid-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--qm-radius-md);
    background: #f3f4f6;
    color: #666666;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.dark .qm-user-menu__grid-icon {
    background: rgba(148, 163, 184, 0.12);
    color: #d1d5db;
}

.qm-user-menu__svg--filled {
    width: 18px;
    height: 18px;
    display: block;
}

.qm-user-menu__grid-icon--profile {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(14, 165, 233, 0.22));
    color: #2563eb;
}

.qm-user-menu__grid-icon--posts {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(245, 158, 11, 0.24));
    color: #ea580c;
}

.qm-user-menu__grid-icon--checkin {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(52, 211, 153, 0.24));
    color: #059669;
}

.qm-user-menu__grid-icon--orders {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(168, 85, 247, 0.22));
    color: #7c3aed;
}

.dark .qm-user-menu__grid-icon--profile {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(14, 165, 233, 0.28));
    color: #93c5fd;
}

.dark .qm-user-menu__grid-icon--posts {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(245, 158, 11, 0.26));
    color: #fdba74;
}

.dark .qm-user-menu__grid-icon--checkin {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(52, 211, 153, 0.28));
    color: #86efac;
}

.dark .qm-user-menu__grid-icon--orders {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(168, 85, 247, 0.28));
    color: #c4b5fd;
}

.qm-user-menu__grid-text {
    min-width: 0;
    color: #555555;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.dark .qm-user-menu__grid-text {
    color: #f8fafc;
}

.qm-user-menu__points {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.035);
    border-radius: 0;
    background: transparent;
}

.dark .qm-user-menu__points {
    background: transparent;
    border-top-color: rgba(148, 163, 184, 0.08);
}

.qm-user-menu__points-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    flex-wrap: wrap;
}

.qm-user-menu__points-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.qm-user-menu__points-label {
    color: #666666;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
}

.dark .qm-user-menu__points-label {
    color: #94a3b8;
}

.qm-user-menu__points-value {
    color: #555555;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.dark .qm-user-menu__points-value {
    color: #f8fafc;
}

.qm-user-menu__points-link {
    color: #666666;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.qm-user-menu__points-link:hover {
    color: #555555;
}

.dark .qm-user-menu__points-link {
    color: #94a3b8;
}

.dark .qm-user-menu__points-link:hover {
    color: #f8fafc;
}

.qm-user-menu__recharge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    min-width: 78px;
    padding: 0 10px;
    border-radius: var(--qm-radius-xs);
    background: var(--qm-primary, #FF1493);
    color: #ffffff;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.qm-user-menu__recharge:hover {
    transform: none;
    box-shadow: none;
    color: #ffffff;
    opacity: 0.92;
}

.qm-user-menu__footer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.035);
}

.qm-user-menu__footer-actions--dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dark .qm-user-menu__footer-actions {
    border-top-color: rgba(148, 163, 184, 0.08);
}

.qm-user-menu__logout {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 0;
    border-top: 0;
    color: #555555;
    font-size: 12px;
    font-weight: 400;
}

.qm-user-menu__admin-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 0;
    border-top: 0;
    color: #555555;
    font-size: 12px;
    font-weight: 400;
}

.qm-user-menu__admin-link:hover,
.qm-user-menu__logout:hover {
    background: transparent;
    color: #555555;
}

.dark .qm-user-menu__admin-link,
.dark .qm-user-menu__logout {
    color: #d1d5db;
}

.dark .qm-user-menu__admin-link:hover,
.dark .qm-user-menu__logout:hover {
    background: transparent;
    color: #f8fafc;
}

.qm-user-menu__logout-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #666666;
}

@media (max-width: 420px) {
    .qm-user-menu {
        width: min(298px, calc(100vw - 1rem));
    }

    .qm-user-menu__stats {
        padding: 8px 10px;
    }

    .qm-user-menu__stats-row {
        gap: 6px;
    }

    .qm-user-menu__stat {
        padding: 7px 4px;
    }

    .qm-user-menu__stat-value {
        font-size: 14px;
    }

    .qm-user-menu__stat-label {
        font-size: 10px;
    }

    .qm-user-menu__identity {
        flex-wrap: wrap;
        gap: 6px;
    }

    .qm-user-menu__member {
        align-items: flex-start;
        flex-direction: column;
    }

    .qm-user-menu__summary {
        flex-direction: column;
        align-items: stretch;
    }

    .qm-user-menu__summary-action {
        width: 100%;
    }

    .qm-user-menu__member-action {
        min-width: 100%;
    }

    .qm-user-menu__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .qm-user-menu__points {
        flex-direction: column;
        align-items: stretch;
    }

    .qm-user-menu__recharge {
        width: 100%;
    }
}

.qm-checkin-modal.hidden { display: none; }

.qm-checkin-modal {
    --qm-checkin-card-height: 452px;
    --qm-checkin-white: var(--qm-bg-white, #ffffff);
    --qm-checkin-text: var(--qm-text-secondary, #4b5563);
    --qm-checkin-muted: var(--qm-text-light, #9ca3af);
    --qm-checkin-backdrop: rgba(17, 24, 39, 0.5);
    --qm-checkin-shadow: rgba(17, 24, 39, 0.2);
    --qm-checkin-shadow-soft: rgba(17, 24, 39, 0.1);
    --qm-checkin-white-08: rgba(255, 255, 255, 0.08);
    --qm-checkin-white-14: rgba(255, 255, 255, 0.14);
    --qm-checkin-white-18: rgba(255, 255, 255, 0.18);
    --qm-checkin-white-22: rgba(255, 255, 255, 0.22);
    --qm-checkin-white-24: rgba(255, 255, 255, 0.24);
    --qm-checkin-white-28: rgba(255, 255, 255, 0.28);
    --qm-checkin-white-86: rgba(255, 255, 255, 0.86);
    --qm-checkin-white-90: rgba(255, 255, 255, 0.9);
    --qm-checkin-gold: #ffd95a;
    --qm-checkin-gold-soft: #fff7df;
    --qm-checkin-gold-mid: #f7d184;
    --qm-checkin-gold-dark: #f0a33a;
    --qm-checkin-gold-deep: #dc8a34;
    --qm-checkin-gray: #9ca3af;
    --qm-checkin-error: #ef4444;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: var(--qm-checkin-text);
}

.qm-checkin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--qm-checkin-backdrop);
}

.qm-checkin-modal__wrapper {
    position: relative;
    width: min(340px, calc(100vw - 32px));
    perspective: 1400px;
    animation: checkinModalIn 0.28s ease;
}

@keyframes checkinModalIn {
    from { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.96); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.qm-checkin-modal__panel {
    position: relative;
    width: 100%;
    min-height: var(--qm-checkin-card-height);
    border-radius: var(--qm-radius-lg);
    background: var(--qm-checkin-white);
    box-shadow:
        0 24px 60px var(--qm-checkin-shadow),
        0 8px 22px var(--qm-checkin-shadow-soft);
    transform-style: preserve-3d;
}

.qm-checkin-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: var(--qm-radius-pill);
    background: var(--qm-checkin-white-18);
    color: var(--qm-checkin-white-90);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.qm-checkin-modal.is-rewards .qm-checkin-modal__close {
    color: var(--qm-checkin-white-86);
}

.qm-checkin-modal__close:hover {
    transform: rotate(90deg) scale(1.04);
    background: var(--qm-checkin-white-28);
    color: var(--qm-checkin-white);
}

.qm-checkin-modal__book {
    position: relative;
    min-height: var(--qm-checkin-card-height);
    transform-style: preserve-3d;
}

.qm-checkin-modal__page {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--qm-radius-lg);
    backface-visibility: hidden;
    transform-origin: left center;
    transition:
        transform 0.68s cubic-bezier(0.2, 0.74, 0.24, 1),
        opacity 0.34s ease;
}

.qm-checkin-modal__page--cover {
    z-index: 2;
    min-height: var(--qm-checkin-card-height);
    padding: 56px 24px 0;
    align-items: center;
    text-align: center;
    background:
        radial-gradient(circle at 88% 0%, var(--qm-checkin-white-24) 0 34px, transparent 35px),
        radial-gradient(circle at 20% 42%, var(--qm-checkin-white-22) 0 34px, transparent 35px),
        linear-gradient(135deg, var(--qm-primary, #ff1493) 0%, var(--qm-primary-light, #ff69b4) 100%);
    color: var(--qm-checkin-white);
}

.qm-checkin-modal__page--rewards {
    z-index: 1;
    min-height: var(--qm-checkin-card-height);
    background: var(--qm-checkin-white);
    transform: rotateY(10deg) translate3d(14px, 0, -18px);
    opacity: 0;
}

.qm-checkin-modal__book.is-flipped .qm-checkin-modal__page--cover {
    transform: rotateY(-106deg) translate3d(-20px, 0, 0);
    opacity: 0;
}

.qm-checkin-modal__book.is-flipped .qm-checkin-modal__page--rewards {
    transform: rotateY(0) translate3d(0, 0, 0);
    opacity: 1;
}

.qm-checkin-modal__cover-content {
    position: relative;
    z-index: 2;
}

.qm-checkin-modal__title {
    margin: 0;
    color: var(--qm-checkin-white);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
}

.qm-checkin-modal__subtitle {
    margin: 6px 0 0;
    color: var(--qm-checkin-white-86);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
}

.qm-checkin-cover {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.qm-checkin-cover__bubble {
    position: absolute;
    border-radius: var(--qm-radius-circle);
    background: var(--qm-checkin-white-14);
}

.qm-checkin-cover__bubble--one {
    right: -24px;
    top: -30px;
    width: 116px;
    height: 116px;
    box-shadow: -24px 18px 0 var(--qm-checkin-white-08);
}

.qm-checkin-cover__bubble--two {
    left: 106px;
    top: 186px;
    width: 48px;
    height: 48px;
    box-shadow: 0 0 0 12px var(--qm-checkin-white-08) inset;
}

.qm-checkin-cover__wave {
    position: absolute;
    left: -16%;
    right: -16%;
    bottom: 0;
    height: 148px;
    background: var(--qm-checkin-white);
    border-radius: 50% 50% 0 0 / 18% 18% 0 0;
}

.qm-checkin-cover__image {
    position: absolute;
    left: 50%;
    bottom: 74px;
    z-index: 3;
    width: min(238px, 72%);
    height: auto;
    display: block;
    transform: translateX(-50%);
    filter: drop-shadow(0 14px 22px var(--qm-checkin-shadow-soft));
    pointer-events: none;
}

.qm-checkin-modal__btn {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 5;
    min-width: 184px;
    height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--qm-radius-pill);
    background: linear-gradient(135deg, var(--qm-primary, #ff1493), var(--qm-primary-light, #ff69b4));
    color: var(--qm-checkin-white);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow:
        0 14px 30px var(--qm-primary-rgba-26, rgba(255, 20, 147, 0.26)),
        0 4px 10px var(--qm-checkin-shadow-soft);
    transform: translateX(-50%);
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.qm-checkin-modal__btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow:
        0 18px 34px var(--qm-primary-rgba-30, rgba(255, 20, 147, 0.3)),
        0 6px 14px var(--qm-checkin-shadow-soft);
}

.qm-checkin-modal__btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: translateX(-50%);
}

.qm-checkin-modal.is-rewards .qm-checkin-modal__btn {
    opacity: 0;
    pointer-events: none;
}

.qm-checkin-rewards__hero {
    position: relative;
    height: 126px;
    background:
        radial-gradient(circle at 0% 0%, var(--qm-checkin-white-18) 0 50px, transparent 51px),
        radial-gradient(circle at 100% 62%, var(--qm-checkin-white-14) 0 62px, transparent 63px),
        linear-gradient(135deg, var(--qm-primary, #ff1493), var(--qm-primary-light, #ff69b4));
}

.qm-checkin-rewards__calendar {
    position: absolute;
    left: 50%;
    top: 38px;
    width: 54px;
    height: 44px;
    border-radius: var(--qm-radius-xs);
    background: var(--qm-checkin-white);
    color: var(--qm-primary, #ff1493);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    transform: translateX(-50%);
}

.qm-checkin-rewards__calendar::before {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    top: -11px;
    height: 18px;
    border-radius: var(--qm-radius-xs) var(--qm-radius-xs) 0 0;
    background: var(--qm-primary-soft, #ffd0e7);
}

.qm-checkin-rewards__calendar::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    top: -15px;
    height: 19px;
    background: repeating-linear-gradient(90deg, var(--qm-checkin-gold) 0 6px, transparent 6px 20px);
}

.qm-checkin-rewards__coins {
    position: absolute;
    left: calc(50% + 38px);
    top: 51px;
    width: 25px;
    height: 40px;
    border-radius: var(--qm-radius-pill) var(--qm-radius-pill) var(--qm-radius-control) var(--qm-radius-control);
    background: repeating-linear-gradient(0deg, var(--qm-checkin-gold-dark) 0 6px, var(--qm-checkin-gold) 6px 10px);
    box-shadow:
        10px 7px 0 -3px var(--qm-checkin-gold-dark),
        17px 14px 0 -7px var(--qm-checkin-gold);
}

.qm-checkin-rewards__body {
    position: relative;
    flex: 1 1 auto;
    padding: 18px 20px 20px;
    background: var(--qm-checkin-white);
}

.qm-checkin-rewards__title {
    margin: 0 0 14px;
    color: var(--qm-primary, #ff1493);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0;
}

.qm-checkin-modal__grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 13px 8px;
}

.qm-checkin-day {
    grid-column: span 2;
}

.qm-checkin-day:nth-child(5) {
    grid-column: 2 / span 2;
}

.qm-checkin-day:nth-child(6) {
    grid-column: 4 / span 2;
}

.qm-checkin-day:nth-child(7) {
    grid-column: 6 / span 2;
}

.qm-checkin-day {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    color: var(--qm-checkin-text);
}

.qm-checkin-day__coin {
    width: 36px;
    height: 36px;
    border-radius: var(--qm-radius-circle);
    background: var(--qm-bg-gray-50, #f9fafb);
    color: var(--qm-checkin-gold-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow:
        inset 0 0 0 1px rgba(229, 231, 235, 0.86),
        0 4px 10px var(--qm-checkin-shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.qm-checkin-day__label {
    color: var(--qm-checkin-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

.qm-checkin-day__reward {
    color: var(--qm-checkin-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
}

.qm-checkin-day--done .qm-checkin-day__coin,
.qm-checkin-day--active .qm-checkin-day__coin {
    color: var(--qm-primary, #ff1493);
    box-shadow:
        inset 0 0 0 1px var(--qm-primary-rgba-18, rgba(255, 20, 147, 0.18)),
        0 6px 14px var(--qm-primary-rgba-12, rgba(255, 20, 147, 0.12));
}

.qm-checkin-day--active .qm-checkin-day__coin {
    transform: translate3d(0, -2px, 0) scale(1.04);
}

.qm-checkin-modal__status {
    min-height: 30px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.qm-checkin-modal__message,
.qm-checkin-modal__hint {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.qm-checkin-modal__message {
    color: var(--qm-text-muted, #6b7280);
}

.qm-checkin-modal__message:empty {
    display: none;
}

.qm-checkin-modal__message--success {
    color: var(--qm-primary, #ff1493);
}

.qm-checkin-modal__message--error {
    color: var(--qm-checkin-error);
}

.qm-checkin-modal__hint {
    color: var(--qm-checkin-muted);
}

.dark .qm-checkin-modal,
body.dark .qm-checkin-modal,
body.dark-mode .qm-checkin-modal {
    --qm-checkin-white: var(--qm-bg-dark-800, #34363c);
    --qm-checkin-shadow: rgba(0, 0, 0, 0.42);
    --qm-checkin-shadow-soft: rgba(0, 0, 0, 0.22);
}

.dark .qm-checkin-day__coin,
body.dark .qm-checkin-day__coin,
body.dark-mode .qm-checkin-day__coin {
    background: var(--qm-checkin-white-08);
    box-shadow: inset 0 0 0 1px var(--qm-checkin-white-08);
}

@media (max-width: 420px) {
    .qm-checkin-modal {
        --qm-checkin-card-height: 426px;
        padding: 12px;
    }

    .qm-checkin-modal__wrapper {
        width: min(320px, calc(100vw - 24px));
    }

    .qm-checkin-modal__page--cover {
        padding: 52px 20px 0;
    }

    .qm-checkin-modal__title {
        font-size: 26px;
    }

    .qm-checkin-modal__subtitle {
        font-size: 16px;
    }

    .qm-checkin-cover__bubble--one {
        width: 106px;
        height: 106px;
    }

    .qm-checkin-cover__bubble--two {
        left: 94px;
        top: 178px;
        width: 44px;
        height: 44px;
    }

    .qm-checkin-cover__image {
        bottom: 70px;
        width: min(224px, 72%);
    }

    .qm-checkin-modal__btn {
        min-width: 170px;
        height: 48px;
        font-size: 19px;
    }

    .qm-checkin-rewards__hero {
        height: 116px;
    }

    .qm-checkin-rewards__body {
        padding: 16px 16px 18px;
    }

    .qm-checkin-modal__grid {
        gap: 12px 8px;
    }

    .qm-checkin-day__coin {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .qm-checkin-day__label {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qm-checkin-modal__wrapper,
    .qm-checkin-modal__page,
    .qm-checkin-modal__btn,
    .qm-checkin-day__coin {
        animation: none;
        transition: none;
    }

    .qm-checkin-modal__book.is-flipped .qm-checkin-modal__page--cover {
        transform: none;
        opacity: 0;
    }

    .qm-checkin-modal__book.is-flipped .qm-checkin-modal__page--rewards {
        transform: none;
        opacity: 1;
    }
}

.qm-search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 1rem 1rem;
}

.qm-search-modal.hidden {
    display: none;
}

.qm-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.qm-search-modal__panel {
    position: relative;
    width: 600px;
    max-width: calc(100vw - 2rem);
    border-radius: var(--qm-radius-xl);
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: searchModalIn 0.2s ease;
}


.qm-search-modal__gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(180deg, 
        var(--qm-primary-rgba-20, rgba(255, 20, 147, 0.2)) 0%, 
        var(--qm-primary-light-rgba-15, rgba(255, 105, 180, 0.15)) 25%, 
        rgba(249, 115, 22, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: var(--qm-radius-xl) var(--qm-radius-xl) 0 0;
}

.dark .qm-search-modal__gradient-overlay {
    background: linear-gradient(180deg, 
        var(--qm-primary-rgba-24, rgba(255, 20, 147, 0.24)) 0%, 
        var(--qm-primary-light-rgba-20, rgba(255, 105, 180, 0.2)) 25%, 
        rgba(249, 115, 22, 0.15) 50%,
        rgba(52, 54, 60, 0) 100%);
}

@keyframes searchModalIn {
    from { opacity: 0; transform: translate3d(0, -20px, 0) scale(0.96); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.dark .qm-search-modal__panel {
    background: var(--qm-bg-dark-800);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}


.qm-search-modal__close {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--qm-radius-circle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-size: 18px;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.qm-search-modal__close:hover {
    background: rgba(255, 255, 255, 1);
    color: #333333;
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dark .qm-search-modal__close {
    background: rgba(52, 54, 60, 0.9);
    color: #a0a0a0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark .qm-search-modal__close:hover {
    background: rgba(52, 54, 60, 1);
    color: #e0e0e0;
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.qm-search-modal__header {
    position: relative;
    padding: 24px 24px 20px;
    border-bottom: none;
    z-index: 2;
}

.dark .qm-search-modal__header {
    border-bottom: none;
}

.qm-search-modal__form {
    display: flex;
    align-items: center;
    gap: 0;
}


.qm-search-modal__filter-desktop {
    position: relative;
    display: none;
}

.qm-search-filter-select {
    padding: 12px 32px 12px 14px;
    border: none;
    background: transparent;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    transition: all 0.2s ease;
    min-width: 70px;
}

.qm-search-filter-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #8e8e8e;
    pointer-events: none;
}

.qm-search-modal__filter-desktop:hover .qm-search-filter-select {
    color: #4a90e2;
}

.dark .qm-search-filter-select {
    color: #e0e0e0;
}

.dark .qm-search-filter-icon {
    color: #a0a0a0;
}


.qm-search-modal__separator {
    width: 1px;
    height: 20px;
    background: #e0e0e0;
    margin: 0 14px;
    flex-shrink: 0;
}

.dark .qm-search-modal__separator {
    background: #3a3a3a;
}


.qm-search-modal__input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    background: transparent;
    transition: all 0.2s ease;
}

.qm-search-modal__input-wrapper:focus-within {
    border-bottom-color: #4a90e2;
}

.dark .qm-search-modal__input-wrapper {
    background: transparent;
    border-bottom-color: #3a3a3a;
}

.dark .qm-search-modal__input-wrapper:focus-within {
    border-bottom-color: #6bb3ff;
}

.qm-search-modal__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333333;
    background: transparent;
    padding: 0;
}

.qm-search-modal__input::placeholder {
    color: #b0b0b0;
}

.dark .qm-search-modal__input {
    color: #e0e0e0;
}

.qm-search-modal__submit {
    border: none;
    background: transparent;
    color: #8e8e8e;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.qm-search-modal__submit:hover {
    color: #4a90e2;
}

.dark .qm-search-modal__submit {
    color: #a0a0a0;
}

.dark .qm-search-modal__submit:hover {
    color: #6bb3ff;
}


.qm-search-modal__filter {
    display: none;
}


.qm-search-modal__popular,
.qm-search-modal__history {
    position: relative;
    padding: 18px 24px;
    z-index: 2;
}

.qm-search-modal__popular {
    border-bottom: 1px solid #f0f0f0;
}

.dark .qm-search-modal__popular {
    border-bottom-color: #2a2a2a;
}

.qm-search-modal__section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.qm-search-modal__section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

.dark .qm-search-modal__section-title {
    color: #e0e0e0;
}

.qm-search-modal__clear-history {
    border: none;
    background: transparent;
    color: #999999;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    width: 20px;
    height: 20px;
}

.qm-search-modal__clear-history:hover {
    color: #666666;
}

.dark .qm-search-modal__clear-history {
    color: #888888;
}

.dark .qm-search-modal__clear-history:hover {
    color: #aaaaaa;
}

.qm-search-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qm-search-modal__tag {
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: var(--qm-radius-xs);
    font-size: 14px;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-block;
    font-weight: 400;
}

.qm-search-modal__tag:hover {
    background: #e8e8e8;
    color: #333333;
}

.dark .qm-search-modal__tag {
    background: #2a2a2a;
    color: #b0b0b0;
}

.dark .qm-search-modal__tag:hover {
    background: #3a3a3a;
    color: #d0d0d0;
}



@media (min-width: 992px) {
    .qm-feedback-sidebar {
        position: fixed;
        left: 0;
        top: 40%;
        transform: translateY(-40%);
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        z-index: 80;
    }

    .qm-feedback-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        width: 46px;
        height: 96px;
        padding: 0;
        
        background: #ffffff;
        border: 1px solid rgba(148, 163, 184, 0.18);
        
        border-radius: 0 var(--qm-radius-lg-soft) var(--qm-radius-lg-soft) 0;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
        color: #0f172a;
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 500;
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .qm-feedback-icon {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--qm-radius-pill);
        
        background: transparent;
        border: 1px solid rgba(148, 163, 184, 0.35);
        box-shadow: none;
        
        color: #334155;
        flex-shrink: 0;
    }

    
    .qm-feedback-text {
        display: block;
        width: 1em;
        text-align: center;
        word-break: break-all;
        line-height: 1.2;
    }

    .qm-feedback-item:hover {
        transform: translateX(2px) translateY(-2px);
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
        background: #ffffff;
    }

    .dark .qm-feedback-item {
        background: rgba(15, 23, 42, 0.72);
        border-color: rgba(148, 163, 184, 0.22);
        color: #f1f5f9;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    }

    .dark .qm-feedback-item:hover {
        background: rgba(15, 23, 42, 0.82);
    }

    .dark .qm-feedback-icon {
        border-color: rgba(148, 163, 184, 0.35);
        color: #e2e8f0;
    }
}



.qm-service-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.qm-service-modal.hidden {
    display: none;
}

.qm-service-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.qm-service-modal__panel {
    position: relative;
    width: 320px;
    max-width: calc(100vw - 2rem);
    border-radius: var(--qm-radius-2xl);
    background: #fefaf6;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dark .qm-service-modal__panel {
    background: #020617;
}

.qm-service-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: var(--qm-radius-circle);
    border: none;
    background: rgba(15, 23, 42, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.qm-service-modal__close i {
    font-size: 14px;
}

.qm-service-modal__close:hover {
    background: rgba(15, 23, 42, 0.2);
    transform: rotate(90deg);
}

.qm-service-modal__hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 4px 2px;
}

.qm-service-modal__agent {
    position: relative;
}

.qm-service-modal__agent-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--qm-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fef3c7, #fed7aa);
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.45);
    color: #7c2d12;
    font-size: 22px;
}

.qm-service-modal__hero-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qm-service-modal__title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.qm-service-modal__subtitle {
    font-size: 13px;
    color: #6b7280;
}

.dark .qm-service-modal__title {
    color: #e5e7eb;
}

.dark .qm-service-modal__subtitle {
    color: #9ca3af;
}

.qm-service-modal__card {
    margin-top: 4px;
    border-radius: var(--qm-radius-lg-soft);
    background: #fff7ed;
    padding: 14px 14px 12px;
    box-shadow: 0 12px 30px rgba(248, 171, 85, 0.35);
}

.dark .qm-service-modal__card {
    background: #0f172a;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.qm-service-modal__qr-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.dark .qm-service-modal__qr-title {
    color: #e5e7eb;
}

.qm-service-modal__qr-box {
    width: 100%;
    border-radius: var(--qm-radius-lg);
    background: #ffffff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qm-service-modal__qr-img {
    width: 190px;
    max-width: 100%;
    border-radius: var(--qm-radius-xs);
}

.qm-service-modal__qr-tip {
    margin-top: 10px;
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    line-height: 1.5;
}

.dark .qm-service-modal__qr-tip {
    color: #94a3b8;
}

.qm-service-modal__btn {
    margin-top: 4px;
    width: 100%;
    border: none;
    border-radius: var(--qm-radius-pill);
    background: linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%);
    color: #ffffff;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--qm-primary-rgba-40, rgba(255, 20, 147, 0.4));
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qm-service-modal__btn i {
    font-size: 14px;
}

.qm-service-modal__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px var(--qm-primary-rgba-50, rgba(255, 20, 147, 0.5));
}

.qm-service-modal__btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px var(--qm-primary-rgba-40, rgba(255, 20, 147, 0.4));
}

.qm-service-modal__panel--wide {
    width: 100%;
    max-width: 640px;
}

@media (max-width: 576px) {
    .qm-service-modal {
        padding: 0.75rem 0.6rem;
    }

    .qm-service-modal__panel,
    .qm-service-modal__panel--wide {
        width: 100%;
        max-width: calc(100vw - 1.2rem);
        max-height: 84vh;
        overflow-y: auto;
        border-radius: var(--qm-radius-lg);
        padding: 12px 12px 14px;
        gap: 10px;
    }

    .qm-service-modal__close {
        top: 6px;
        right: 6px;
        width: 26px;
        height: 26px;
    }

    .qm-service-modal__hero {
        gap: 8px;
        padding-top: 0;
    }

    .qm-service-modal__agent-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .qm-service-modal__title {
        font-size: 14px;
    }

    .qm-service-modal__subtitle {
        font-size: 11px;
    }

    .qm-service-modal__card {
        border-radius: var(--qm-radius-md);
        padding: 10px;
        margin-top: 2px;
    }

    .qm-service-modal__qr-title {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .qm-service-modal__qr-img {
        width: 130px;
    }

    .qm-service-modal__qr-tip {
        margin-top: 6px;
        font-size: 10px;
        line-height: 1.4;
    }

    .qm-service-modal__btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

.qm-feedback-message {
    min-height: 16px;
}

.qm-agent-apply-message {
    min-height: 16px;
}

.qm-feedback-form,
.qm-feedback-form label,
.qm-feedback-form input,
.qm-feedback-form textarea,
.qm-feedback-form select,
.qm-agent-apply-form,
.qm-agent-apply-form label,
.qm-agent-apply-form input,
.qm-agent-apply-form textarea,
.qm-agent-apply-form select {
    font-family: var(--qm-font-family);
}

.qm-feedback-image-item {
    position: relative;
}

.qm-feedback-image-inner {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: var(--qm-radius-sm);
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.qm-feedback-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qm-feedback-image-nonimage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #94a3b8;
}

.qm-feedback-image-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: var(--qm-radius-circle);
    border: none;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
    cursor: pointer;
}

.qm-agent-terms {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: var(--qm-radius-lg);
    padding: 12px;
}

.dark .qm-feedback-image-inner,
.dark .qm-agent-terms {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.25);
}

@media (min-width: 768px) {
    .qm-service-modal__panel--wide {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .qm-service-modal__panel--wide {
        max-width: 820px;
    }
}

@media (min-width: 1200px) {
    .qm-service-modal__panel--wide {
        max-width: 900px;
    }
}

.qm-search-modal__hint {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

.dark .qm-search-modal__hint {
    border-top-color: #334155;
    color: #64748b;
}


.qm-search-modal__tabs {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
}


@media (max-width: 1023px) {
    .qm-search-modal__filter {
        display: block;
        flex-shrink: 0;
    }
    
    .qm-search-modal__filter-desktop {
        display: none;
    }
    
    .qm-search-modal__separator {
        display: none;
    }
    
    .qm-search-modal__header {
        padding: 20px 20px 16px;
    }
    
    .qm-search-modal__popular,
    .qm-search-modal__history {
        padding: 16px 20px;
    }
    
    .qm-search-modal__form {
        gap: 10px;
    }
    
    .qm-search-modal__input-wrapper {
        min-width: 0;
    }
    
    .qm-search-modal__panel {
        width: 95%;
        max-width: 500px;
    }
}

@media (min-width: 1024px) {
    .qm-search-modal__filter {
        display: none;
    }
    
    .qm-search-modal__filter-desktop {
        display: block;
    }
    
    .qm-search-modal__separator {
        display: block;
    }
}


.qm-search-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--qm-radius-sm);
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qm-search-tab:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #2563eb;
}

.qm-search-tab.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--qm-primary-rgba-30, rgba(255, 20, 147, 0.3));
}

.qm-search-tab i {
    font-size: 14px;
}

.dark .qm-search-tab {
    border-color: #334155;
    background: #0f172a;
    color: #94a3b8;
}

.dark .qm-search-tab:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

.dark .qm-search-tab.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%);
    color: #ffffff;
}


.qm-popup-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.qm-popup-notice-modal.hidden {
    display: none;
}

.qm-popup-notice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.qm-popup-notice-container {
    position: relative;
    z-index: 1;
    width: 360px;
    max-width: calc(100vw - 32px);
    overflow: visible;
    animation: qmPopupNoticeIn 0.26s ease;
}

@keyframes qmPopupNoticeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.qm-popup-notice-card {
    position: relative;
    width: 360px;
    height: 420px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--qm-radius-sm);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
}

.qm-popup-notice-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: var(--qm-radius-pill);
    background: rgba(255, 255, 255, 0.72);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.qm-popup-notice-close:hover {
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    transform: rotate(90deg);
}

.qm-popup-notice-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 82px;
    background:
        linear-gradient(180deg, rgba(var(--qm-primary-rgb, 255, 20, 147), 0.18) 0%, rgba(var(--qm-primary-rgb, 255, 20, 147), 0.08) 48%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.qm-popup-notice-orb {
    position: absolute;
    display: block;
    border-radius: var(--qm-radius-pill);
    background: rgba(255, 255, 255, 0.28);
}

.qm-popup-notice-orb--left {
    top: 14px;
    left: 18px;
    width: 64px;
    height: 64px;
}

.qm-popup-notice-orb--center {
    top: 38px;
    left: 138px;
    width: 22px;
    height: 22px;
}

.qm-popup-notice-orb--right {
    top: 14px;
    right: 58px;
    width: 40px;
    height: 40px;
}

.qm-popup-notice-header {
    position: relative;
    z-index: 1;
    padding: 34px 18px 4px;
    text-align: center;
}

.qm-popup-notice-title {
    margin: 0;
    color: #111827;
    font-size: 1.34rem;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.qm-popup-notice-subtitle {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.5;
}

.qm-popup-notice-content {
    position: relative;
    z-index: 1;
    padding: 6px 18px 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.qm-popup-notice-content-inner,
.qm-popup-notice-content-placeholder {
    color: #374151;
    font-size: 0.86rem;
    line-height: 1.66;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.qm-popup-notice-content-inner::-webkit-scrollbar,
.qm-popup-notice-content-placeholder::-webkit-scrollbar {
    display: none;
}

.qm-popup-notice-content-inner p {
    margin: 0 0 0.7em;
}

.qm-popup-notice-content-inner p:last-child {
    margin-bottom: 0;
}

.qm-popup-notice-content-inner a {
    color: var(--qm-primary, #FF1493);
    text-decoration: none;
    font-weight: 700;
}

.qm-popup-notice-content-inner a:hover {
    text-decoration: underline;
}

.qm-popup-notice-content-placeholder {
    min-height: 24px;
}

.qm-popup-notice-footer {
    position: relative;
    z-index: 1;
    padding: 10px 18px 14px;
    display: flex;
    justify-content: center;
}

.qm-popup-notice-button {
    appearance: none;
    border: 0;
    border-radius: var(--qm-radius-pill);
    min-width: 120px;
    min-height: 36px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--qm-primary, #FF1493) 0%, var(--qm-primary-light, #FF69B4) 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 34px var(--qm-primary-rgba-24, rgba(255, 20, 147, 0.24));
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.qm-popup-notice-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px var(--qm-primary-rgba-28, rgba(255, 20, 147, 0.28));
}

.qm-popup-notice-button:active {
    transform: translateY(0);
}

@media (max-width: 767.98px) {
    .qm-popup-notice-container {
        width: min(360px, calc(100vw - 24px));
    }

    .qm-popup-notice-card {
        width: min(360px, calc(100vw - 24px));
        height: min(420px, calc(100vh - 24px));
    }

    .qm-popup-notice-header {
        padding: 30px 16px 4px;
    }

    .qm-popup-notice-title {
        font-size: 1.22rem;
    }

    .qm-popup-notice-subtitle {
        margin-top: 14px;
    }

    .qm-popup-notice-content {
        padding: 6px 16px 0;
    }

    .qm-popup-notice-footer {
        padding: 10px 16px 14px;
    }

    .qm-popup-notice-button {
        width: 100%;
        min-width: 0;
        min-height: 36px;
    }
}

