/* ========== 站内通知弹窗 ========== */
.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: 20px;
    background: rgba(248, 250, 252, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 16px 48px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    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: rgba(36, 40, 46, 0.84);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 12px rgba(2, 6, 23, 0.18),
        0 16px 48px rgba(2, 6, 23, 0.24);
}

.dark .qm-notify-modal__header {
    background: rgba(52, 54, 60, 0.72);
    border-bottom-color: var(--qm-border-dark-600);
}

.dark .qm-notify-modal__title,
.dark .qm-notify-modal__mark-all,
.dark .qm-notify-modal__close {
    color: #f5f5f7;
}

.dark .qm-notify-modal__mark-all:hover,
.dark .qm-notify-modal__close:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

.qm-notify-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.62);
    color: #1d1d1f;
    border-bottom: 1px solid #e5e5e7;
}

.qm-notify-modal__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    color: #1d1d1f;
    margin: 0;
}

.qm-notify-modal__title i {
    font-size: 18px;
    color: #3f4854;
}

.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: 50%;
    border: 0;
    background: transparent;
    color: #1d1d1f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.qm-notify-modal__mark-all:hover,
.qm-notify-modal__close:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

.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;
    scrollbar-width: thin;
    scrollbar-color: #e5e5e7 transparent;
}

.qm-notify-modal__content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.qm-notify-modal__content::-webkit-scrollbar-track {
    background: transparent;
}

.qm-notify-modal__content::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #e5e5e7;
}

.qm-notify-modal__content::-webkit-scrollbar-thumb:hover {
    background: #d9d9dd;
}

.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;
    position: relative;
    padding: 14px 24px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.qm-notify-item::after {
    content: "";
    position: absolute;
    left: 72px;
    right: 24px;
    bottom: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
}

.qm-notify-item:hover {
    background: rgba(255, 255, 255, 0.42);
}

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

.qm-notify-item:last-child::after {
    display: none;
}

.dark .qm-notify-item {
    border-bottom-color: transparent;
}

.dark .qm-notify-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dark .qm-notify-item::after {
    background: rgba(255, 255, 255, 0.08);
}

.qm-notify-item--unread {
    background: rgba(255, 255, 255, 0.18);
}

.qm-notify-item--unread:hover {
    background: rgba(255, 255, 255, 0.32);
}

.qm-notify-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.qm-notify-item__icon i {
    font-size: 16px;
    color: #6b7280;
}

.qm-notify-item__icon--checkin {
    background: rgba(255, 255, 255, 0.28);
}

.qm-notify-item__icon--checkin i {
    color: #0f8f64;
}

.qm-notify-item__icon--system {
    background: rgba(255, 255, 255, 0.28);
}

.qm-notify-item__icon--system i {
    color: #6b7280;
}

.qm-notify-item__icon--reward {
    background: rgba(255, 255, 255, 0.28);
}

.qm-notify-item__icon--reward i {
    color: #c27a13;
}

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

.qm-notify-item__title {
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    line-height: 1.4;
    margin-bottom: 2px;
}

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

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

.qm-notify-item__desc {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.qm-notify-item__time {
    font-size: 13px;
    font-weight: 400;
    color: #8f9095;
    margin-top: 4px;
}

.dark .qm-notify-item__time {
    color: #8f9095;
}

.qm-notify-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    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: 500;
    color: #333333;
    text-decoration: none;
    position: relative;
    padding-right: 12px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.qm-notify-modal__view-all::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--qm-primary, #FF1493);
}

.qm-notify-modal__view-all:hover {
    color: var(--qm-primary, #FF1493);
    text-decoration: underline;
}

/* ========== 私信弹窗 ========== */
.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);
}

.dark .qm-message-modal__backdrop {
	background: rgba(2, 6, 23, 0.72);
}

.qm-message-modal__panel {
    position: relative;
    width: 880px;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 110px);
    border-radius: 20px;
    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:
		radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 24%),
		radial-gradient(circle at 86% 10%, rgba(37, 99, 235, 0.14) 0%, rgba(37, 99, 235, 0) 28%),
		linear-gradient(160deg, rgba(52, 54, 60, 0.98) 0%, rgba(40, 42, 47, 0.98) 100%);
	border: 1px solid rgba(148, 163, 184, 0.16);
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.qm-message-modal__header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 20px;
    background:
        linear-gradient(180deg, var(--qm-primary-rgba-18, rgba(255, 20, 147, 0.18)) 0%, rgba(255, 255, 255, 0.92) 58%, #ffffff 100%);
    color: #1d1d1f;
    border-bottom: 1px solid #e5e7eb;
}

.qm-message-modal__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    color: #1d1d1f;
    margin: 0;
}

.dark .qm-message-modal__header {
	background: rgba(52, 54, 60, 0.98);
	color: #f8fafc;
	border-bottom-color: var(--qm-border-dark-600);
}

.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: rgba(24, 26, 31, 0.72);
	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: #1d1d1f;
	padding: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.56);
	white-space: nowrap;
	overflow: hidden;
	text-indent: -9999px;
	position: relative;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.qm-message-modal__threads-fallback::before {
	content: "\f24d";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 14px;
	line-height: 1;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-indent: 0;
}

.qm-message-modal__threads-fallback:hover {
	background: #f5f5f7;
	color: #1d1d1f;
}

.dark .qm-message-modal__threads-fallback {
	color: #f5f5f7;
	background: rgba(255, 255, 255, 0.08);
}

.dark .qm-message-modal__threads-fallback:hover {
	background: #f5f5f7;
	color: #1d1d1f;
}

.qm-message-modal__threads-list {
    overflow-y: auto;
    padding: 0;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #e5e5e7 transparent;
}

.qm-message-modal__threads-list::-webkit-scrollbar,
.qm-message-modal__chat-content::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

.qm-message-modal__threads-list::-webkit-scrollbar-track,
.qm-message-modal__chat-content::-webkit-scrollbar-track {
	background: transparent;
}

.qm-message-modal__threads-list::-webkit-scrollbar-thumb,
.qm-message-modal__chat-content::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: #e5e5e7;
}

.qm-message-modal__threads-list::-webkit-scrollbar-thumb:hover,
.qm-message-modal__chat-content::-webkit-scrollbar-thumb:hover {
	background: #d9d9dd;
}

.qm-message-thread {
	display: flex;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid #f1f5f9;
	cursor: pointer;
	text-align: left;
	background: transparent;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.qm-message-thread:hover {
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.08),
        rgba(14, 165, 233, 0.06)
    );
}

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

.dark .qm-message-thread:hover {
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.16),
        rgba(14, 165, 233, 0.1)
    );
}

.qm-message-thread.is-active {
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.12),
        rgba(14, 165, 233, 0.08)
    );
}

.dark .qm-message-thread.is-active {
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.24),
        rgba(14, 165, 233, 0.12)
    );
}

.qm-message-thread__avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	flex-shrink: 0;
	overflow: hidden;
	background: #e2e8f0;
}

.dark .qm-message-thread__avatar {
	background: rgba(148, 163, 184, 0.18);
}

.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: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #1d1d1f;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.qm-message-thread__time {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #888888;
	flex-shrink: 0;
}

.dark .qm-message-thread__time {
	color: #888888;
}

.qm-message-thread__excerpt {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.qm-message-modal__chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    min-height: 54px;
    background: rgba(248, 250, 252, 0.92);
}

.dark .qm-message-modal__chat-header {
	background: rgba(24, 26, 31, 0.28);
	border-bottom-color: var(--qm-border-dark-600);
}

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

.qm-message-chat__avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	overflow: hidden;
	background: #e2e8f0;
	flex-shrink: 0;
}

.dark .qm-message-chat__avatar {
	background: rgba(148, 163, 184, 0.18);
}

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

.qm-message-chat__title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #1d1d1f;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.qm-message-chat__subtitle {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #888888;
	margin-top: 1px;
}

.dark .qm-message-chat__subtitle {
	color: #888888;
}

.qm-message-chat__profile-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	background: transparent;
	color: #1d1d1f;
	font-size: 0;
	text-decoration: none;
	position: relative;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.qm-message-chat__profile-link::before {
	content: "\f2bd";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 15px;
	line-height: 1;
}

.qm-message-chat__profile-link:hover {
	background: #f5f5f7;
	color: #1d1d1f;
}

.dark .qm-message-chat__profile-link {
	color: #f5f5f7;
	background: rgba(255, 255, 255, 0.08);
}

.dark .qm-message-chat__profile-link:hover {
	background: #f5f5f7;
	color: #1d1d1f;
}

.qm-message-modal__chat-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    scrollbar-width: thin;
    scrollbar-color: #e5e5e7 transparent;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, rgba(37, 99, 235, 0.08) 42%, #f8fafc),
        #ffffff
    );
}

.dark .qm-message-modal__chat-content {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, rgba(37, 99, 235, 0.12) 45%, rgba(40, 42, 47, 0.95)),
        rgba(52, 54, 60, 0.72)
    );
}

.dark .qm-message-modal__threads-list,
.dark .qm-message-modal__chat-content {
	scrollbar-color: #e5e5e7 transparent;
}

.dark .qm-message-modal__threads-list::-webkit-scrollbar-thumb,
.dark .qm-message-modal__chat-content::-webkit-scrollbar-thumb {
	background: #e5e5e7;
}

.dark .qm-message-modal__threads-list::-webkit-scrollbar-thumb:hover,
.dark .qm-message-modal__chat-content::-webkit-scrollbar-thumb:hover {
	background: #d9d9dd;
}

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

.dark .qm-message-empty {
	color: rgba(148, 163, 184, 0.92);
}

.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-shell {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	gap: 10px;
	max-width: 82%;
}

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

.qm-message-item:not(.qm-message-item--self) .qm-message-bubble__meta {
	order: 2;
	padding-left: 0;
	padding-right: 2px;
}

.qm-message-bubble {
	max-width: 82%;
	padding: 12px 14px;
	border-radius: 10px 22px 22px 22px;
	background: linear-gradient(
		135deg,
		var(--qm-blue-rgba-12, rgba(37, 99, 235, 0.12)) 0%,
		rgba(14, 165, 233, 0.14) 100%
	);
	border: 1px solid rgba(37, 99, 235, 0.16);
	color: #1d4ed8;
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.dark .qm-message-bubble {
	background: linear-gradient(
		135deg,
		rgba(37, 99, 235, 0.22) 0%,
		rgba(14, 165, 233, 0.18) 100%
	);
	border-color: rgba(96, 165, 250, 0.26);
	color: #dbeafe;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.qm-message-item--self .qm-message-bubble {
	border-radius: 22px 10px 22px 22px;
	background: linear-gradient(
		135deg,
		var(--qm-primary-rgba-16, rgba(255, 20, 147, 0.16)) 0%,
		var(--qm-primary-light-rgba-22, rgba(255, 105, 180, 0.22)) 100%
	);
	border-color: var(--qm-primary-rgba-22, rgba(255, 20, 147, 0.22));
	color: var(--qm-primary-dark, #d6107c);
}

.dark .qm-message-item--self .qm-message-bubble {
	background: linear-gradient(
		135deg,
		var(--qm-primary-rgba-26, rgba(255, 20, 147, 0.26)) 0%,
		var(--qm-primary-light-rgba-22, rgba(255, 105, 180, 0.22)) 100%
	);
	border-color: var(--qm-primary-rgba-28, rgba(255, 20, 147, 0.28));
	color: #fff1f7;
}

.qm-message-bubble__text {
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 14px;
	line-height: 1.55;
	font-weight: 400;
	color: #333333;
}

.dark .qm-message-bubble__text {
	color: #f5f5f7;
}

.qm-message-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    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: 10px;
    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: 999px;
    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-checkin_notice .qm-message-card__sig {
    color: rgba(16, 185, 129, 0.2);
}

.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: 14px;
    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: 8px 16px 16px 16px;
	margin-bottom: 8px;
	object-fit: cover;
	background: rgba(15, 23, 42, 0.06);
}

.qm-message-item--self .qm-message-bubble__image {
	border-radius: 16px 8px 16px 16px;
}

.dark .qm-message-bubble__image {
	background: rgba(255, 255, 255, 0.06);
}

.qm-message-bubble__meta {
	flex-shrink: 0;
	padding-left: 2px;
	padding-bottom: 4px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #888888;
	opacity: 0;
	transform: translateY(2px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.qm-message-item--self .qm-message-bubble__meta {
	order: -1;
	padding-left: 0;
	padding-right: 2px;
}

.dark .qm-message-bubble__meta {
	color: #888888;
}

.qm-message-item:hover .qm-message-bubble__meta,
.qm-message-item:focus-within .qm-message-bubble__meta {
	opacity: 1;
	transform: translateY(0);
}

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

.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: 14px;
    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);
}

.dark .qm-message-hint--error {
	color: #fda4af;
	background: rgba(127, 29, 29, 0.32);
	border-color: rgba(248, 113, 113, 0.26);
}

.dark .qm-message-hint--success {
	color: #86efac;
	background: rgba(20, 83, 45, 0.34);
	border-color: rgba(74, 222, 128, 0.22);
}

.qm-message-modal__composer-field {
	position: relative;
}

.qm-message-modal__input {
	width: 100%;
	min-height: 116px;
	border-radius: 18px;
	border: 1px solid rgba(148, 163, 184, 0.45);
	padding: 44px 58px 16px 16px;
	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(18, 20, 25, 0.62);
	color: #e2e8f0;
	border-color: rgba(148, 163, 184, 0.28);
}

.dark .qm-message-modal__input::placeholder {
	color: rgba(148, 163, 184, 0.74);
}

.qm-message-modal__input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.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: 14px;
    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: 14px;
    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;
}

.dark .qm-message-modal__preview-size {
	color: rgba(148, 163, 184, 0.88);
}

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

.qm-message-modal__preview-remove:hover {
	background: rgba(244, 63, 94, 0.18);
}

.dark .qm-message-modal__preview-remove {
	color: #fda4af;
	background: rgba(190, 24, 93, 0.22);
}

.dark .qm-message-modal__preview-remove:hover {
	background: rgba(190, 24, 93, 0.3);
}

.qm-message-modal__upload {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	font-size: 15px;
	cursor: pointer;
	color: #0f172a;
	background: transparent;
	transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.qm-message-modal__upload:hover {
	color: #2563eb;
	transform: translateY(-1px);
}

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

.qm-message-modal__upload.is-disabled:hover {
	color: #0f172a;
	transform: none;
}

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

.dark .qm-message-modal__upload:hover {
	color: #bfdbfe;
}

.dark .qm-message-modal__upload.is-disabled:hover {
	color: #f8fafc;
}

.qm-message-modal__send {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	padding: 0;
	font-size: 14px;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--qm-primary, #FF1493);
	box-shadow: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.qm-message-modal__send:disabled {
	opacity: 0.56;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.qm-message-modal__send:disabled:hover {
	opacity: 0.56;
	transform: none;
}

.dark .qm-message-modal__send:disabled {
	opacity: 0.48;
}

.qm-message-modal__close:focus-visible,
.qm-message-modal__threads-fallback:focus-visible,
.qm-message-thread:focus-visible,
.qm-message-chat__profile-link:focus-visible,
.qm-message-modal__upload:focus-visible,
.qm-message-modal__send:focus-visible,
.qm-message-modal__input:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 2px;
}

@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__input {
		min-height: 104px;
		padding-top: 42px;
    }
}

.qm-user-menu {
    width: min(312px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    padding: 10px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 18px;
    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: 58% 42% 64% 36% / 40% 56% 44% 60%;
    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: 44% 56% 46% 54% / 58% 42% 58% 42%;
    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: 8px;
}

.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: 50%;
    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: 14px;
    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: 12px;
    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: 999px;
    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-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: 999px;
    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: 14px;
    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: 6px;
    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: 4px;
    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__member-action.qm-user-menu__summary-action {
    min-height: 30px;
    min-width: 78px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 10px;
}

.qm-user-menu__panel {
    width: auto;
    margin: 0 4px 4px;
    border-radius: 12px;
    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: 12px;
    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__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-checkin-modal.hidden { display: none; }

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

.qm-checkin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(var(--qm-glass-blur-radius));
    -webkit-backdrop-filter: blur(var(--qm-glass-blur-radius));
}

.qm-checkin-modal__wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    animation: checkinModalIn 0.3s ease;
}

.qm-checkin-modal__panel {
    position: relative;
    width: min(320px, calc(100vw - 1rem));
    max-width: 100%;
    max-height: calc(100vh - 1.5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    background:
        radial-gradient(circle at top right, var(--qm-primary-rgba-08, rgba(255, 20, 147, 0.08)) 0, transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.18),
        0 2px 10px rgba(15, 23, 42, 0.08);
}

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

.dark .qm-checkin-modal__panel {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08) 0, transparent 34%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.42),
        0 2px 10px rgba(0, 0, 0, 0.2);
}

.qm-checkin-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.58);
    color: rgba(15, 23, 42, 0.78);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
    -webkit-backdrop-filter: blur(var(--qm-glass-blur-radius));
    backdrop-filter: blur(var(--qm-glass-blur-radius));
}

.qm-checkin-modal__close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.84);
    color: rgba(15, 23, 42, 0.96);
}

.dark .qm-checkin-modal__close {
    background: rgba(15, 23, 42, 0.65);
    color: rgba(226, 232, 240, 0.88);
}

.qm-checkin-modal__header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 22px 14px;
    overflow: hidden;
}

.qm-checkin-modal__header::before {
    content: '';
    position: absolute;
    top: -42px;
    right: -54px;
    width: 188px;
    height: 188px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--qm-primary-rgba-10, rgba(255, 20, 147, 0.1)) 0%, transparent 72%);
    pointer-events: none;
}

.qm-checkin-modal__header::after {
    content: '';
    position: absolute;
    top: -24px;
    left: -14px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
}

.qm-checkin-modal__header-text {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 6px;
}

.qm-checkin-modal__title {
    background: linear-gradient(135deg, var(--qm-primary, #ff1493) 0%, var(--qm-primary-light, #ff69b4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 34px;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.qm-checkin-modal__subtitle {
    margin-top: 10px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.dark .qm-checkin-modal__title {
    background: none;
    color: #f8fafc;
}

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

.qm-checkin-modal__hero-accent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.qm-checkin-modal__hero-line {
    display: inline-block;
    width: 46px;
    height: 8px;
    border-radius: 999px;
    background: var(--qm-primary-rgba-15, rgba(255, 20, 147, 0.15));
}

.qm-checkin-modal__hero-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2);
}

.dark .qm-checkin-modal__hero-line {
    background: rgba(255, 255, 255, 0.12);
}

.dark .qm-checkin-modal__hero-dot {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05);
}

.qm-checkin-modal__hero-visual {
    position: relative;
    width: 122px;
    height: 108px;
    flex: 0 0 auto;
    z-index: 1;
}

.qm-checkin-modal__hero-orbit {
    position: absolute;
    top: -22px;
    right: -10px;
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.16) 42%, transparent 68%),
        radial-gradient(circle at 55% 55%, var(--qm-primary-rgba-15, rgba(255, 20, 147, 0.15)) 0%, transparent 72%);
}

.qm-checkin-modal__hero-coin {
    position: absolute;
    right: 6px;
    top: 4px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--qm-primary-light, #ff69b4) 0%, var(--qm-primary, #ff1493) 100%);
    box-shadow:
        14px 8px 0 rgba(255, 255, 255, 0.48),
        0 14px 28px var(--qm-primary-rgba-25, rgba(255, 20, 147, 0.25));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qm-checkin-modal__hero-coin-core {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.qm-checkin-modal__hero-coin-core i {
    font-size: 22px;
    color: var(--qm-primary, #ff1493);
}

.qm-checkin-modal__content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.qm-checkin-modal__summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.qm-checkin-modal__summary-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.qm-checkin-modal__streak-line {
    color: #111827;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
}

.qm-checkin-modal__streak-line #qm-checkin-streak {
    display: inline-block;
    margin: 0 4px;
    color: var(--qm-primary, #ff1493);
    font-size: 36px;
    line-height: 0.84;
    font-weight: 900;
    vertical-align: -5px;
    font-variant-numeric: tabular-nums;
}

.dark .qm-checkin-modal__streak-line {
    color: #f8fafc;
}

.qm-checkin-modal__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.qm-checkin-modal__currency,
.qm-checkin-modal__card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
}

.qm-checkin-modal__currency {
    color: #4b5563;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.qm-checkin-modal__currency strong {
    color: var(--qm-primary, #ff1493);
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.qm-checkin-modal__card {
    color: var(--qm-primary, #ff1493);
    background: var(--qm-primary-rgba-08, rgba(255, 20, 147, 0.08));
    box-shadow: inset 0 0 0 1px var(--qm-primary-rgba-15, rgba(255, 20, 147, 0.15));
}

.qm-checkin-modal__card-label {
    font-size: 12px;
    font-weight: 700;
}

.qm-checkin-modal__card-count {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dark .qm-checkin-modal__currency {
    color: rgba(226, 232, 240, 0.84);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.dark .qm-checkin-modal__card {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.qm-checkin-modal__makeups {
    padding: 12px 14px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.92);
}

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

.qm-checkin-modal__makeups-title {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.qm-checkin-modal__makeups-note {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
}

.qm-checkin-modal__makeups-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qm-checkin-modal__makeup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 110px;
    padding: 10px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--qm-primary-rgba-08, rgba(255, 20, 147, 0.08));
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: inset 0 0 0 1px var(--qm-primary-rgba-12, rgba(255, 20, 147, 0.12));
}

.qm-checkin-modal__makeup-btn strong {
    color: var(--qm-primary, #ff1493);
    font-weight: 800;
}

.qm-checkin-modal__makeup-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 1px var(--qm-primary-rgba-16, rgba(255, 20, 147, 0.16)),
        0 10px 20px var(--qm-primary-rgba-12, rgba(255, 20, 147, 0.12));
}

.qm-checkin-modal__makeup-btn:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
    box-shadow: inset 0 0 0 1px var(--qm-primary-rgba-12, rgba(255, 20, 147, 0.12));
}

.dark .qm-checkin-modal__makeups {
    background: rgba(15, 23, 42, 0.72);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.dark .qm-checkin-modal__makeups-title {
    color: #f8fafc;
}

.dark .qm-checkin-modal__makeups-note {
    color: rgba(148, 163, 184, 0.76);
}

.dark .qm-checkin-modal__makeup-btn {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.qm-checkin-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 138px;
    padding: 12px 10px 14px;
    border-radius: 16px;
    background: #f5f7fb;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
    text-align: center;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.qm-checkin-day::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.6) 0%, transparent 58%);
    pointer-events: none;
}

.qm-checkin-day__head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.qm-checkin-day__title {
    color: #111827;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
}

.qm-checkin-day__state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #94a3b8;
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.qm-checkin-day__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: var(--qm-primary-rgba-08, rgba(255, 20, 147, 0.08));
}

.qm-checkin-day__icon-core {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--qm-primary-light, #ff69b4) 0%, var(--qm-primary, #ff1493) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px var(--qm-primary-rgba-18, rgba(255, 20, 147, 0.18));
}

.qm-checkin-day__icon i {
    color: #ffffff;
    font-size: 16px;
}

.qm-checkin-day__reward {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-top: auto;
}

.qm-checkin-day__reward strong {
    color: #111827;
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.qm-checkin-day__reward span {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
}

.qm-checkin-day__note {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
}

.qm-checkin-day--done {
    background: linear-gradient(180deg, var(--qm-primary-rgba-08, rgba(255, 20, 147, 0.08)) 0%, rgba(255, 255, 255, 0.96) 100%);
    box-shadow: inset 0 0 0 1px var(--qm-primary-rgba-12, rgba(255, 20, 147, 0.12));
}

.qm-checkin-day--done .qm-checkin-day__state {
    background: rgba(255, 255, 255, 0.9);
    color: var(--qm-primary, #ff1493);
}

.qm-checkin-day--active {
    background: linear-gradient(135deg, var(--qm-primary-light, #ff69b4) 0%, var(--qm-primary, #ff1493) 100%);
    box-shadow: 0 12px 24px var(--qm-primary-rgba-20, rgba(255, 20, 147, 0.2));
}

.qm-checkin-day--active::before {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.2) 0%, transparent 62%);
}

.qm-checkin-day--active .qm-checkin-day__title,
.qm-checkin-day--active .qm-checkin-day__state,
.qm-checkin-day--active .qm-checkin-day__reward strong,
.qm-checkin-day--active .qm-checkin-day__reward span,
.qm-checkin-day--active .qm-checkin-day__note {
    color: #ffffff;
}

.qm-checkin-day--active .qm-checkin-day__state {
    background: rgba(255, 255, 255, 0.18);
}

.qm-checkin-day--active .qm-checkin-day__icon {
    background: rgba(255, 255, 255, 0.12);
}

.qm-checkin-day--active .qm-checkin-day__icon-core {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
}

.qm-checkin-day--active .qm-checkin-day__icon i {
    color: var(--qm-primary, #ff1493);
}

.qm-checkin-day--locked {
    opacity: 0.96;
}

.qm-checkin-day--wide {
    grid-column: span 2;
    align-items: flex-start;
    text-align: left;
    padding: 14px 84px 14px 14px;
}

.qm-checkin-day--wide .qm-checkin-day__head,
.qm-checkin-day--wide .qm-checkin-day__reward {
    align-items: flex-start;
}

.qm-checkin-day--wide .qm-checkin-day__icon {
    position: absolute;
    right: 14px;
    bottom: 14px;
    margin-top: 0;
    width: 62px;
    height: 62px;
    border-radius: 22px;
}

.qm-checkin-day--wide .qm-checkin-day__icon-core {
    width: 46px;
    height: 46px;
    border-radius: 17px;
}

.qm-checkin-day--wide .qm-checkin-day__icon i {
    font-size: 20px;
}

.qm-checkin-day--wide .qm-checkin-day__reward strong {
    font-size: 19px;
}

.dark .qm-checkin-day {
    background: rgba(15, 23, 42, 0.84);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.dark .qm-checkin-day__title,
.dark .qm-checkin-day__reward strong {
    color: #f8fafc;
}

.dark .qm-checkin-day__state {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(148, 163, 184, 0.86);
}

.dark .qm-checkin-day__reward span,
.dark .qm-checkin-day__note {
    color: rgba(148, 163, 184, 0.84);
}

.dark .qm-checkin-day__icon {
    background: rgba(255, 255, 255, 0.06);
}

.dark .qm-checkin-day--done {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 23, 42, 0.84) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dark .qm-checkin-day--done .qm-checkin-day__state {
    background: rgba(255, 255, 255, 0.1);
}

.dark .qm-checkin-day--active {
    background: linear-gradient(135deg, var(--qm-primary-light, #ff69b4) 0%, var(--qm-primary, #ff1493) 100%);
    box-shadow: 0 14px 28px var(--qm-primary-rgba-22, rgba(255, 20, 147, 0.22));
}

.qm-checkin-modal__actions {
    flex: 0 0 auto;
    padding: 16px 22px 18px;
}

.qm-checkin-modal__btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--qm-primary-light, #ff69b4) 0%, var(--qm-primary, #ff1493) 100%);
    color: #ffffff;
    font-size: 19px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 14px 28px var(--qm-primary-rgba-24, rgba(255, 20, 147, 0.24));
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.qm-checkin-modal__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px var(--qm-primary-rgba-30, rgba(255, 20, 147, 0.3));
}

.qm-checkin-modal__btn:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.qm-checkin-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.qm-checkin-modal__hint {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
}

.dark .qm-checkin-modal__hint {
    color: rgba(148, 163, 184, 0.86);
}

.qm-checkin-modal__remind {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
}

.qm-checkin-modal__remind-text {
    color: #64748b;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
}

.dark .qm-checkin-modal__remind-text {
    color: rgba(226, 232, 240, 0.8);
}

.qm-checkin-modal__remind-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.qm-checkin-modal__switch {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: background 0.18s ease;
}

.dark .qm-checkin-modal__switch {
    background: rgba(255, 255, 255, 0.12);
}

.qm-checkin-modal__switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    transition: transform 0.18s ease;
}

.qm-checkin-modal__remind-input:checked + .qm-checkin-modal__switch {
    background: linear-gradient(135deg, var(--qm-primary-light, #ff69b4) 0%, var(--qm-primary, #ff1493) 100%);
}

.qm-checkin-modal__remind-input:checked + .qm-checkin-modal__switch::after {
    transform: translateX(18px);
}

.qm-checkin-modal__message {
    min-height: 18px;
    margin-top: 8px;
    color: #111827;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    text-align: left;
}

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

.qm-checkin-modal__message--error {
    color: #ef4444;
}

.dark .qm-checkin-modal__message {
    color: #f8fafc;
}

@media (max-width: 560px) {
    .qm-checkin-modal {
        align-items: flex-end;
        padding: 0.75rem;
    }

    .qm-checkin-modal__panel {
        width: 100%;
        max-height: calc(100vh - 1rem);
    }

    .qm-checkin-modal__header {
        gap: 12px;
        padding: 22px 16px 14px;
    }

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

    .qm-checkin-modal__subtitle {
        margin-top: 8px;
        font-size: 14px;
    }

    .qm-checkin-modal__hero-accent {
        margin-top: 14px;
    }

    .qm-checkin-modal__hero-line {
        width: 48px;
        height: 8px;
    }

    .qm-checkin-modal__hero-dot {
        width: 18px;
        height: 18px;
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
    }

    .qm-checkin-modal__hero-visual {
        width: 104px;
        height: 92px;
    }

    .qm-checkin-modal__hero-orbit {
        width: 108px;
        height: 108px;
    }

    .qm-checkin-modal__hero-coin {
        width: 74px;
        height: 74px;
    }

    .qm-checkin-modal__hero-coin-core {
        width: 44px;
        height: 44px;
        border-radius: 16px;
    }

    .qm-checkin-modal__hero-coin-core i {
        font-size: 19px;
    }

    .qm-checkin-modal__content {
        padding: 0 16px 16px;
        gap: 12px;
    }

    .qm-checkin-modal__summary,
    .qm-checkin-modal__footer,
    .qm-checkin-modal__makeups-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .qm-checkin-modal__meta {
        width: 100%;
        justify-content: flex-start;
    }

    .qm-checkin-modal__currency,
    .qm-checkin-modal__card {
        min-height: 34px;
        padding: 0 10px;
    }

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

    .qm-checkin-modal__streak-line #qm-checkin-streak {
        font-size: 32px;
        vertical-align: -4px;
    }

    .qm-checkin-modal__makeups {
        padding: 10px 12px 12px;
    }

    .qm-checkin-modal__makeup-btn {
        min-width: 102px;
        padding: 9px 10px;
        font-size: 11px;
    }

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

    .qm-checkin-day {
        min-height: 124px;
        padding: 10px 8px 12px;
        border-radius: 14px;
    }

    .qm-checkin-day__state {
        min-height: 20px;
        padding: 0 7px;
        font-size: 9px;
    }

    .qm-checkin-day__icon {
        width: 44px;
        height: 44px;
        margin-top: 8px;
    }

    .qm-checkin-day__icon-core {
        width: 32px;
        height: 32px;
        border-radius: 12px;
    }

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

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

    .qm-checkin-day__reward span,
    .qm-checkin-day__note {
        font-size: 10px;
    }

    .qm-checkin-day--wide {
        padding: 14px 84px 14px 14px;
    }

    .qm-checkin-day--wide .qm-checkin-day__icon {
        right: 12px;
        bottom: 12px;
        width: 56px;
        height: 56px;
    }

    .qm-checkin-day--wide .qm-checkin-day__icon-core {
        width: 40px;
        height: 40px;
    }

    .qm-checkin-day--wide .qm-checkin-day__icon i {
        font-size: 18px;
    }

    .qm-checkin-modal__actions {
        padding: 14px 16px 16px;
    }

    .qm-checkin-modal__btn {
        height: 48px;
        font-size: 16px;
    }
}

/* Compact checkin modal scale */
.qm-checkin-modal__close {
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
}

.qm-checkin-modal__close i {
    font-size: 9px;
}

.qm-checkin-modal__header {
    gap: 8px;
    padding: 12px 10px 8px;
}

.qm-checkin-modal__header::before {
    top: -20px;
    right: -28px;
    width: 92px;
    height: 92px;
}

.qm-checkin-modal__header::after {
    top: -12px;
    left: -8px;
    width: 64px;
    height: 64px;
}

.qm-checkin-modal__header-text {
    padding-top: 2px;
}

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

.qm-checkin-modal__subtitle {
    margin-top: 5px;
    font-size: 9px;
}

.qm-checkin-modal__hero-accent {
    gap: 5px;
    margin-top: 7px;
}

.qm-checkin-modal__hero-line {
    width: 23px;
    height: 4px;
}

.qm-checkin-modal__hero-dot {
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.dark .qm-checkin-modal__hero-dot {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.qm-checkin-modal__hero-visual {
    width: 60px;
    height: 54px;
}

.qm-checkin-modal__hero-orbit {
    top: -10px;
    right: -4px;
    width: 60px;
    height: 60px;
}

.qm-checkin-modal__hero-coin {
    right: 2px;
    top: 2px;
    width: 42px;
    height: 42px;
    box-shadow:
        7px 4px 0 rgba(255, 255, 255, 0.44),
        0 7px 14px var(--qm-primary-rgba-25, rgba(255, 20, 147, 0.25));
}

.qm-checkin-modal__hero-coin-core {
    width: 24px;
    height: 24px;
    border-radius: 9px;
}

.qm-checkin-modal__hero-coin-core i {
    font-size: 11px;
}

.qm-checkin-modal__content {
    padding: 0 10px 10px;
    gap: 7px;
}

.qm-checkin-modal__summary {
    gap: 6px;
}

.qm-checkin-modal__streak-line {
    font-size: 10px;
    line-height: 1.4;
}

.qm-checkin-modal__streak-line #qm-checkin-streak {
    margin: 0 2px;
    font-size: 18px;
    vertical-align: -2px;
}

.qm-checkin-modal__meta {
    gap: 4px;
}

.qm-checkin-modal__currency,
.qm-checkin-modal__card {
    gap: 4px;
    min-height: 22px;
    padding: 0 6px;
    font-size: 8px;
}

.qm-checkin-modal__currency strong,
.qm-checkin-modal__card-count {
    font-size: 10px;
}

.qm-checkin-modal__makeups {
    padding: 6px 7px 7px;
    border-radius: 8px;
}

.qm-checkin-modal__makeups-head {
    gap: 5px;
    margin-bottom: 5px;
}

.qm-checkin-modal__makeups-title {
    font-size: 8px;
}

.qm-checkin-modal__makeups-note {
    font-size: 7px;
}

.qm-checkin-modal__makeups-list {
    gap: 4px;
}

.qm-checkin-modal__makeup-btn {
    gap: 5px;
    min-width: 54px;
    padding: 5px 6px;
    font-size: 7px;
}

.qm-checkin-modal__grid {
    gap: 5px;
}

.qm-checkin-day {
    min-height: 70px;
    padding: 6px 5px 7px;
    border-radius: 8px;
}

.qm-checkin-day__head {
    gap: 3px;
}

.qm-checkin-day__title {
    font-size: 7px;
}

.qm-checkin-day__state {
    min-height: 11px;
    padding: 0 4px;
    font-size: 6px;
}

.qm-checkin-day__icon {
    margin-top: 5px;
    width: 25px;
    height: 25px;
    border-radius: 9px;
}

.qm-checkin-day__icon-core {
    width: 18px;
    height: 18px;
    border-radius: 7px;
    box-shadow: 0 4px 9px var(--qm-primary-rgba-18, rgba(255, 20, 147, 0.18));
}

.qm-checkin-day__icon i {
    font-size: 8px;
}

.qm-checkin-day__reward {
    gap: 2px;
}

.qm-checkin-day__reward strong {
    font-size: 8px;
}

.qm-checkin-day__reward span,
.qm-checkin-day__note {
    font-size: 6px;
}

.qm-checkin-day__note {
    margin-top: 3px;
}

.qm-checkin-day--active {
    box-shadow: 0 6px 12px var(--qm-primary-rgba-20, rgba(255, 20, 147, 0.2));
}

.dark .qm-checkin-day--active {
    box-shadow: 0 6px 12px var(--qm-primary-rgba-22, rgba(255, 20, 147, 0.22));
}

.qm-checkin-day--wide {
    padding: 7px 42px 7px 7px;
}

.qm-checkin-day--wide .qm-checkin-day__icon {
    right: 7px;
    bottom: 7px;
    width: 31px;
    height: 31px;
    border-radius: 11px;
}

.qm-checkin-day--wide .qm-checkin-day__icon-core {
    width: 23px;
    height: 23px;
    border-radius: 8px;
}

.qm-checkin-day--wide .qm-checkin-day__icon i {
    font-size: 10px;
}

.qm-checkin-day--wide .qm-checkin-day__reward strong {
    font-size: 9px;
}

.qm-checkin-modal__actions {
    padding: 8px 10px 10px;
}

.qm-checkin-modal__btn {
    height: 26px;
    font-size: 10px;
    box-shadow: 0 7px 14px var(--qm-primary-rgba-24, rgba(255, 20, 147, 0.24));
}

.qm-checkin-modal__btn:hover {
    box-shadow: 0 9px 16px var(--qm-primary-rgba-30, rgba(255, 20, 147, 0.3));
}

.qm-checkin-modal__footer {
    gap: 6px;
    margin-top: 6px;
}

.qm-checkin-modal__hint,
.qm-checkin-modal__remind-text,
.qm-checkin-modal__message {
    font-size: 7px;
}

.qm-checkin-modal__message {
    min-height: 12px;
    margin-top: 4px;
}

.qm-checkin-modal__switch {
    width: 20px;
    height: 11px;
}

.qm-checkin-modal__switch::after {
    top: 1px;
    left: 1px;
    width: 9px;
    height: 9px;
}

.qm-checkin-modal__remind-input:checked + .qm-checkin-modal__switch::after {
    transform: translateX(9px);
}

/* Scale checkin modal back up by 0.5x from compact state */
.qm-checkin-modal__wrapper {
    max-width: 480px;
}

.qm-checkin-modal__panel {
    width: min(480px, calc(100vw - 1rem));
}

.qm-checkin-modal__close {
    top: 12px;
    right: 12px;
    width: 27px;
    height: 27px;
}

.qm-checkin-modal__close i {
    font-size: 13px;
}

.qm-checkin-modal__header {
    gap: 12px;
    padding: 18px 15px 12px;
}

.qm-checkin-modal__header::before {
    top: -30px;
    right: -42px;
    width: 138px;
    height: 138px;
}

.qm-checkin-modal__header::after {
    top: -18px;
    left: -12px;
    width: 96px;
    height: 96px;
}

.qm-checkin-modal__header-text {
    padding-top: 3px;
}

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

.qm-checkin-modal__subtitle {
    margin-top: 7px;
    font-size: 14px;
}

.qm-checkin-modal__hero-accent {
    gap: 8px;
    margin-top: 11px;
}

.qm-checkin-modal__hero-line {
    width: 34px;
    height: 6px;
}

.qm-checkin-modal__hero-dot {
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.dark .qm-checkin-modal__hero-dot {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.qm-checkin-modal__hero-visual {
    width: 90px;
    height: 81px;
}

.qm-checkin-modal__hero-orbit {
    top: -15px;
    right: -6px;
    width: 90px;
    height: 90px;
}

.qm-checkin-modal__hero-coin {
    right: 3px;
    top: 3px;
    width: 63px;
    height: 63px;
    box-shadow:
        10px 6px 0 rgba(255, 255, 255, 0.44),
        0 10px 20px var(--qm-primary-rgba-25, rgba(255, 20, 147, 0.25));
}

.qm-checkin-modal__hero-coin-core {
    width: 36px;
    height: 36px;
    border-radius: 13px;
}

.qm-checkin-modal__hero-coin-core i {
    font-size: 16px;
}

.qm-checkin-modal__content {
    padding: 0 15px 15px;
    gap: 11px;
}

.qm-checkin-modal__summary {
    gap: 9px;
}

.qm-checkin-modal__streak-line {
    font-size: 15px;
    line-height: 1.45;
}

.qm-checkin-modal__streak-line #qm-checkin-streak {
    margin: 0 3px;
    font-size: 27px;
    vertical-align: -3px;
}

.qm-checkin-modal__meta {
    gap: 6px;
}

.qm-checkin-modal__currency,
.qm-checkin-modal__card {
    gap: 6px;
    min-height: 33px;
    padding: 0 9px;
    font-size: 12px;
}

.qm-checkin-modal__currency strong,
.qm-checkin-modal__card-count {
    font-size: 15px;
}

.qm-checkin-modal__makeups {
    padding: 9px 10px 10px;
    border-radius: 12px;
}

.qm-checkin-modal__makeups-head {
    gap: 7px;
    margin-bottom: 7px;
}

.qm-checkin-modal__makeups-title {
    font-size: 12px;
}

.qm-checkin-modal__makeups-note {
    font-size: 11px;
}

.qm-checkin-modal__makeups-list {
    gap: 6px;
}

.qm-checkin-modal__makeup-btn {
    gap: 7px;
    min-width: 81px;
    padding: 7px 9px;
    font-size: 11px;
}

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

.qm-checkin-day {
    min-height: 105px;
    padding: 9px 8px 10px;
    border-radius: 12px;
}

.qm-checkin-day__head {
    gap: 4px;
}

.qm-checkin-day__title {
    font-size: 11px;
}

.qm-checkin-day__state {
    min-height: 16px;
    padding: 0 6px;
    font-size: 9px;
}

.qm-checkin-day__icon {
    margin-top: 7px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
}

.qm-checkin-day__icon-core {
    width: 27px;
    height: 27px;
    border-radius: 11px;
    box-shadow: 0 6px 12px var(--qm-primary-rgba-18, rgba(255, 20, 147, 0.18));
}

.qm-checkin-day__icon i {
    font-size: 12px;
}

.qm-checkin-day__reward {
    gap: 3px;
}

.qm-checkin-day__reward strong {
    font-size: 12px;
}

.qm-checkin-day__reward span,
.qm-checkin-day__note {
    font-size: 9px;
}

.qm-checkin-day__note {
    margin-top: 5px;
}

.qm-checkin-day--active {
    box-shadow: 0 9px 18px var(--qm-primary-rgba-20, rgba(255, 20, 147, 0.2));
}

.dark .qm-checkin-day--active {
    box-shadow: 0 9px 18px var(--qm-primary-rgba-22, rgba(255, 20, 147, 0.22));
}

.qm-checkin-day--wide {
    padding: 10px 63px 10px 10px;
}

.qm-checkin-day--wide .qm-checkin-day__icon {
    right: 10px;
    bottom: 10px;
    width: 47px;
    height: 47px;
    border-radius: 16px;
}

.qm-checkin-day--wide .qm-checkin-day__icon-core {
    width: 35px;
    height: 35px;
    border-radius: 12px;
}

.qm-checkin-day--wide .qm-checkin-day__icon i {
    font-size: 15px;
}

.qm-checkin-day--wide .qm-checkin-day__reward strong {
    font-size: 14px;
}

.qm-checkin-modal__actions {
    padding: 12px 15px 15px;
}

.qm-checkin-modal__btn {
    height: 39px;
    font-size: 15px;
    box-shadow: 0 10px 20px var(--qm-primary-rgba-24, rgba(255, 20, 147, 0.24));
}

.qm-checkin-modal__btn:hover {
    box-shadow: 0 12px 24px var(--qm-primary-rgba-30, rgba(255, 20, 147, 0.3));
}

.qm-checkin-modal__footer {
    gap: 9px;
    margin-top: 9px;
}

.qm-checkin-modal__hint,
.qm-checkin-modal__remind-text,
.qm-checkin-modal__message {
    font-size: 11px;
}

.qm-checkin-modal__message {
    min-height: 16px;
    margin-top: 6px;
}

.qm-checkin-modal__switch {
    width: 30px;
    height: 17px;
}

.qm-checkin-modal__switch::after {
    top: 2px;
    left: 2px;
    width: 13px;
    height: 13px;
}

.qm-checkin-modal__remind-input:checked + .qm-checkin-modal__switch::after {
    transform: translateX(13px);
}


.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: 20px;
    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: 20px 20px 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: 50%;
    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: 8px;
    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 18px 18px 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: 999px;
        
        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: 24px;
    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: 50%;
    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: 999px;
    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: 18px;
    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: 16px;
    background: #ffffff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qm-service-modal__qr-img {
    width: 190px;
    max-width: 100%;
    border-radius: 8px;
}

.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: 999px;
    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: 16px;
        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: 12px;
        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-base);
}

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

.qm-feedback-image-inner {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 10px;
    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: 50%;
    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: 14px;
    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: 10px;
    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: 10px;
    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: 999px;
    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: 999px;
    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: 999px;
    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;
    }
}
