/* ========== 站内通知弹窗 ========== */
.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: #ffffff;
    box-shadow: 0 25px 60px rgba(255, 20, 147, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: notifyModalIn 0.25s ease;
}

@keyframes notifyModalIn {
    from { opacity: 0; transform: translate3d(0, -20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.dark .qm-notify-modal__panel {
    background: var(--qm-bg-dark-800);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.qm-notify-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    color: #ffffff;
}

.qm-notify-modal__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.qm-notify-modal__title i {
    font-size: 18px;
}

.qm-notify-modal__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qm-notify-modal__mark-all,
.qm-notify-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qm-notify-modal__mark-all:hover,
.qm-notify-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.qm-notify-modal__close:hover {
    transform: rotate(90deg);
}

.qm-notify-modal__content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-height: 200px;
    max-height: 400px;
}

.qm-notify-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: #94a3b8;
}

.qm-notify-modal__loading i {
    font-size: 24px;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qm-notify-modal__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: #94a3b8;
}

.qm-notify-modal__empty i {
    font-size: 48px;
    opacity: 0.5;
}

.qm-notify-modal__empty span {
    font-size: 14px;
}


.qm-notify-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qm-notify-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
    cursor: pointer;
}

.qm-notify-item:hover {
    background: rgba(255, 20, 147, 0.04);
}

.qm-notify-item:last-child {
    border-bottom: none;
}

.dark .qm-notify-item {
    border-bottom-color: var(--qm-border-dark-600);
}

.dark .qm-notify-item:hover {
    background: rgba(255, 20, 147, 0.1);
}

.qm-notify-item--unread {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.06), rgba(255, 105, 180, 0.04));
}

.qm-notify-item--unread:hover {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(255, 105, 180, 0.08));
}

.qm-notify-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.12), rgba(255, 105, 180, 0.12));
}

.qm-notify-item__icon i {
    font-size: 16px;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qm-notify-item__icon--checkin {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(34, 197, 94, 0.12));
}

.qm-notify-item__icon--checkin i {
    background: linear-gradient(135deg, #10b981, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
}

.qm-notify-item__icon--system {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.12));
}

.qm-notify-item__icon--system i {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.qm-notify-item__icon--reward {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.12));
}

.qm-notify-item__icon--reward i {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
}

.qm-notify-item__body {
    flex: 1;
    min-width: 0;
}

.qm-notify-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 4px;
}

.dark .qm-notify-item__title {
    color: #f1f5f9;
}

.qm-notify-item--unread .qm-notify-item__title {
    font-weight: 700;
}

.qm-notify-item__desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .qm-notify-item__desc {
    color: #94a3b8;
}

.qm-notify-item__time {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

.qm-notify-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    flex-shrink: 0;
    margin-top: 6px;
}

.qm-notify-modal__footer {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.dark .qm-notify-modal__footer {
    border-top-color: var(--qm-border-dark-600);
}

.qm-notify-modal__view-all {
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.qm-notify-modal__view-all:hover {
    opacity: 0.8;
}

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

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

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

.qm-message-modal__panel {
    position: relative;
    width: 880px;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 110px);
    border-radius: 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: var(--qm-bg-dark-800);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.qm-message-hint {
    font-size: 12px;
    line-height: 1.3;
    padding: 8px 10px;
    border-radius: 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);
}

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

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

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

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

.qm-message-modal__preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-top: 8px;
    border-radius: 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;
}

.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;
}

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

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

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

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

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

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

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

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

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

.qm-user-menu {
    width: 280px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    
    z-index: 70;
}

.dark .qm-user-menu {
    background: var(--qm-bg-dark-800);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.qm-user-menu a {
    text-decoration: none;
}


.qm-user-menu__header {
    position: relative;
    padding: 16px 14px 14px;
}

.qm-user-menu__header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    opacity: 0.1;
}

.dark .qm-user-menu__header-bg {
    opacity: 0.2;
}

.qm-user-menu__profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.qm-user-menu__avatar {
    position: relative;
    flex-shrink: 0;
}

.qm-user-menu__avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.25);
}

.dark .qm-user-menu__avatar-img {
    border-color: var(--qm-border-dark-600);
}

.qm-user-menu__avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.qm-user-menu__avatar-badge i {
    font-size: 8px;
    color: #ffffff;
}

.dark .qm-user-menu__avatar-badge {
    border-color: var(--qm-bg-dark-800);
}

.qm-user-menu__info {
    flex: 1;
    min-width: 0;
}

.qm-user-menu .qm-user-name-badges {
    flex-wrap: nowrap;
    gap: 2px;
    align-items: center;
    min-width: 0;
}

.qm-user-menu .qm-user-name-badges .qm-user-menu__name-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qm-user-menu .qm-vip-badge-inline {
    --qm-vip-badge-size: 20px;
    margin-left: 0;
    flex: 0 0 auto;
}

.qm-user-menu .qm-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--qm-level-badge-size, 54px);
    height: var(--qm-level-badge-size, 54px);
    max-width: var(--qm-level-badge-size, 54px);
    max-height: var(--qm-level-badge-size, 54px);
    object-fit: contain;
    flex: 0 0 auto;
    vertical-align: middle;
}

.qm-user-menu .qm-level-badge-sm {
    --qm-level-badge-size: 54px;
    flex: 0 0 auto;
}

.qm-user-menu__name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.dark .qm-user-menu__name {
    color: #f1f5f9;
}

.qm-user-menu__level {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 11px;
}

.qm-user-menu__level i,
.qm-user-menu__level span {
    color: inherit;
}

.qm-user-menu__notify {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
    position: relative;
    transition: all 0.2s ease;
}

.qm-user-menu__notify:hover {
    background: #ffffff;
    color: #2563eb;
    transform: scale(1.05);
}

.dark .qm-user-menu__notify {
    background: rgba(52, 54, 60, 0.8);
    color: #94a3b8;
}

.dark .qm-user-menu__notify:hover {
    background: var(--qm-bg-dark-600);
    color: #60a5fa;
}

.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__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.dark .qm-user-menu__stats {
    border-bottom-color: var(--qm-border-dark-600);
}

.qm-user-menu__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.qm-user-menu__stat:hover {
    background: rgba(255, 20, 147, 0.06);
}

.dark .qm-user-menu__stat:hover {
    background: rgba(255, 20, 147, 0.15);
}

.qm-user-menu__stat-value {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dark .qm-user-menu__stat-value {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.qm-user-menu__stat-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}


.qm-user-menu__quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 16px;
}

.qm-user-menu__quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: 0 !important;
    border-radius: 10px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-clip: padding-box;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.qm-user-menu__quick-btn:focus,
.qm-user-menu__quick-btn:focus-visible,
.qm-user-menu__quick-btn:active {
    border: 0 !important;
    outline: none;
}

.qm-user-menu__quick-btn--vip {
    background: linear-gradient(0deg, hsla(0, 0%, 100%, .1), hsla(0, 0%, 100%, .1)), linear-gradient(95.9deg, #ffeec3 3.14%, #ffe5ba 23.99%, #ffd8aa 43.77%, #ffd4a2 62.06%, #ffc896 79.86%, #fcb4ba 97.91%) !important;
    color: #6b2d00 !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35);
}

.qm-user-menu__quick-btn--vip:hover {
    background: linear-gradient(0deg, hsla(0, 0%, 100%, .1), hsla(0, 0%, 100%, .1)), linear-gradient(95.9deg, #ffeec3 3.14%, #ffe5ba 23.99%, #ffd8aa 43.77%, #ffd4a2 62.06%, #ffc896 79.86%, #fcb4ba 97.91%) !important;
    color: #6b2d00 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.45);
}

.qm-user-menu__quick-btn--vip i,
.qm-user-menu__quick-btn--vip span {
    color: #6b2d00 !important;
}


.qm-vip-open,
button.qm-vip-open,
a.qm-vip-open {
    background: linear-gradient(0deg, hsla(0, 0%, 100%, .1), hsla(0, 0%, 100%, .1)), linear-gradient(95.9deg, #ffeec3 3.14%, #ffe5ba 23.99%, #ffd8aa 43.77%, #ffd4a2 62.06%, #ffc896 79.86%, #fcb4ba 97.91%) !important;
    background-image: linear-gradient(0deg, hsla(0, 0%, 100%, .1), hsla(0, 0%, 100%, .1)), linear-gradient(95.9deg, #ffeec3 3.14%, #ffe5ba 23.99%, #ffd8aa 43.77%, #ffd4a2 62.06%, #ffc896 79.86%, #fcb4ba 97.91%) !important;
    color: #6b2d00 !important;
}

.qm-vip-open:hover,
button.qm-vip-open:hover,
a.qm-vip-open:hover {
    background: linear-gradient(0deg, hsla(0, 0%, 100%, .1), hsla(0, 0%, 100%, .1)), linear-gradient(95.9deg, #ffeec3 3.14%, #ffe5ba 23.99%, #ffd8aa 43.77%, #ffd4a2 62.06%, #ffc896 79.86%, #fcb4ba 97.91%) !important;
    background-image: linear-gradient(0deg, hsla(0, 0%, 100%, .1), hsla(0, 0%, 100%, .1)), linear-gradient(95.9deg, #ffeec3 3.14%, #ffe5ba 23.99%, #ffd8aa 43.77%, #ffd4a2 62.06%, #ffc896 79.86%, #fcb4ba 97.91%) !important;
    color: #6b2d00 !important;
}

.qm-vip-open i,
.qm-vip-open span,
button.qm-vip-open i,
button.qm-vip-open span,
a.qm-vip-open i,
a.qm-vip-open span {
    color: #6b2d00 !important;
}

.qm-user-menu__quick-btn--checkin {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.35);
}

.qm-user-menu__quick-btn--checkin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 20, 147, 0.45);
}


.qm-user-menu__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px 16px 16px;
}

.qm-user-menu__grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.qm-user-menu__grid-item:hover {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.08), rgba(255, 105, 180, 0.08));
}

.qm-user-menu__grid-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.12), rgba(255, 105, 180, 0.12));
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    transition: all 0.2s ease;
}

.qm-user-menu__grid-icon i {
    font-size: 16px;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qm-user-menu__grid-item:hover .qm-user-menu__grid-icon {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 20, 147, 0.3);
}

.qm-user-menu__grid-item:hover .qm-user-menu__grid-icon i {
    background: #ffffff;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qm-user-menu__grid-text {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.2;
}

.qm-user-menu__grid-item:hover .qm-user-menu__grid-text {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.qm-user-menu__grid-item--logout .qm-user-menu__grid-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(249, 115, 22, 0.12));
}

.qm-user-menu__grid-item--logout .qm-user-menu__grid-icon i {
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
}

.qm-user-menu__grid-item--logout:hover .qm-user-menu__grid-icon {
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.qm-user-menu__grid-item--logout:hover .qm-user-menu__grid-text {
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
}


.dark .qm-user-menu__grid-item:hover {
    background: rgba(255, 20, 147, 0.15);
}

.dark .qm-user-menu__grid-icon {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.2), rgba(255, 105, 180, 0.2));
}

.dark .qm-user-menu__grid-text {
    color: #94a3b8;
}

.dark .qm-user-menu__grid-item--logout .qm-user-menu__grid-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
}

.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(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.qm-checkin-modal__wrapper {
    position: relative;
    animation: checkinModalIn 0.3s ease;
}

.qm-checkin-modal__panel {
    position: relative;
    width: 380px;
    max-width: calc(100vw - 1.5rem);
    background: #ffffff;
    overflow: hidden;
    border-radius: 24px;
    clip-path: path('M24,0 L266,0 Q278,0 284,10 L311,50 Q317,60 330,60 L356,60 Q380,60 380,84 L380,476 Q380,500 356,500 L24,500 Q0,500 0,476 L0,24 Q0,0 24,0 Z');
    
    box-shadow: 
        0 4px 6px rgba(255, 20, 147, 0.1),
        0 10px 20px rgba(255, 20, 147, 0.15),
        0 30px 60px rgba(255, 20, 147, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

@keyframes checkinModalIn {
    from { opacity: 0; transform: translate3d(0, 20px, 0) scale(0.95); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.dark .qm-checkin-modal__panel {
    background: #1e293b;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.qm-checkin-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.qm-checkin-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}


.qm-checkin-modal__breakout {
    position: absolute;
    top: -25px;
    right: -15px;
    width: 130px;
    height: 130px;
    z-index: 15;
    pointer-events: none;
    animation: checkinBreakoutFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 25px rgba(255, 20, 147, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.qm-checkin-modal__breakout img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes checkinBreakoutFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
    75% { transform: translateY(-4px) rotate(1deg); }
}


.qm-checkin-modal__wrapper:hover .qm-checkin-modal__breakout {
    transform: translateY(-12px) rotate(-5deg) scale(1.08);
    filter: drop-shadow(0 15px 35px rgba(255, 20, 147, 0.4));
}

.dark .qm-checkin-modal__close {
    background: rgba(0, 0, 0, 0.2);
}

.qm-checkin-modal__header {
    padding: 28px 20px 24px;
    
    background: linear-gradient(135deg, #f472b6 0%, #fb7185 50%, #fb923c 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}


.qm-checkin-modal__header:before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: checkinCircle1 8s linear infinite;
}


.qm-checkin-modal__header:after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 80px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: checkinCircle2 6s ease-in-out infinite;
}

@keyframes checkinCircle1 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes checkinCircle2 {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.2); opacity: 0.15; }
}

.qm-checkin-modal__header-text {
    position: relative;
    z-index: 3;
}


.qm-checkin-modal__header-text:before {
    content: '';
    position: absolute;
    top: -28px;
    left: -20px;
    right: -20px;
    height: 60px;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: -1;
}


.qm-checkin-modal__header-text:after {
    content: '';
    position: absolute;
    top: -10px;
    right: 120px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid rgba(255, 255, 255, 0.2);
    animation: checkinTriangle 3s ease-in-out infinite;
}

@keyframes checkinTriangle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(10deg); }
}

.qm-checkin-modal__title {
    font-weight: 800;
    font-size: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.qm-checkin-modal__subtitle {
    margin-top: 8px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0.9;
}

.qm-checkin-modal__subtitle span {
    font-weight: 800;
    font-size: 20px;
}

.qm-checkin-modal__content {
    padding: 20px;
    background: #ffffff;
}

.dark .qm-checkin-modal__content {
    background: #1e293b;
}

.qm-checkin-modal__hint {
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.dark .qm-checkin-modal__hint {
    color: #94a3b8;
}

.qm-checkin-modal__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.qm-checkin-day {
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    padding: 12px;
    min-height: 70px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.dark .qm-checkin-day {
    border-color: #334155;
    background: #0f172a;
}

.qm-checkin-day__title {
    font-weight: 700;
    font-size: 12px;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
}

.qm-checkin-day__reward {
    margin-top: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.dark .qm-checkin-day__reward {
    color: #e2e8f0;
}


.qm-checkin-day__icon {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.08), rgba(255, 105, 180, 0.08));
    font-size: 18px;
    opacity: 0.6;
    z-index: 0;
}

.qm-checkin-day__icon i {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.qm-checkin-day--done {
    border-color: rgba(255, 20, 147, 0.2);
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.08), rgba(255, 105, 180, 0.08));
}

.qm-checkin-day--done .qm-checkin-day__icon {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.15), rgba(255, 105, 180, 0.15));
    opacity: 0.8;
}


.qm-checkin-day--active {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.12), rgba(255, 105, 180, 0.12));
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.15);
}

.qm-checkin-day--active .qm-checkin-day__title {
    font-weight: 800;
}

.qm-checkin-day--active .qm-checkin-day__icon {
    opacity: 0.8;
}


.qm-checkin-day--wide {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: auto;
    padding: 14px 16px;
}

.qm-checkin-day--wide .qm-checkin-day__reward {
    margin-top: 0;
    font-size: 15px;
    font-weight: 800;
}

.qm-checkin-day--wide .qm-checkin-day__icon {
    right: -12px;
    bottom: -12px;
    width: 56px;
    height: 56px;
    font-size: 22px;
}

.qm-checkin-modal__btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.35);
    transition: all 0.2s ease;
}

.qm-checkin-modal__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(255, 20, 147, 0.45);
}

.qm-checkin-modal__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.qm-checkin-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.dark .qm-checkin-modal__footer {
    border-top-color: #334155;
}

.qm-checkin-modal__streak {
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
}

.qm-checkin-modal__streak span {
    font-weight: 800;
    margin: 0 2px;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dark .qm-checkin-modal__streak {
    color: #94a3b8;
}

.qm-checkin-modal__remind {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    cursor: pointer;
    position: relative;
}

.qm-checkin-modal__remind-text {
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
}

.dark .qm-checkin-modal__remind-text {
    color: #94a3b8;
}

.qm-checkin-modal__remind-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.qm-checkin-modal__switch {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #e2e8f0;
    position: relative;
    transition: background 0.2s ease;
}

.dark .qm-checkin-modal__switch {
    background: #334155;
}

.qm-checkin-modal__switch:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.qm-checkin-modal__remind-input:checked + .qm-checkin-modal__switch {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
}

.qm-checkin-modal__remind-input:checked + .qm-checkin-modal__switch:after {
    transform: translateX(20px);
}

.qm-checkin-modal__message {
    margin-top: 12px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    min-height: 18px;
}

.qm-checkin-modal__message--success { 
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qm-checkin-modal__message--error { 
    color: #ef4444; 
}

.dark .qm-checkin-modal__message {
    color: #e2e8f0;
}


.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, 
        rgba(255, 20, 147, 0.2) 0%, 
        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, 
        rgba(255, 20, 147, 0.25) 0%, 
        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, #FF1493 0%, #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 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 rgba(255, 20, 147, 0.5);
}

.qm-service-modal__btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px 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: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

.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-popup-announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.qm-popup-announcement-modal.hidden {
    display: none;
}

.qm-popup-announcement-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.qm-popup-announcement-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; 
}


.qm-popup-announcement-container .card {
    overflow: visible !important;
}

.qm-popup-announcement-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.9); 
    border: 4px solid rgba(159, 18, 57, 0.9); 
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease 1s, visibility 0s linear 1s, transform 0.3s ease; 
    font-size: 1rem;
    z-index: 60; 
    opacity: 0; 
    visibility: hidden;
    pointer-events: none; 
    clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%); 
}


.qm-popup-announcement-container.qm-envelope-opened .qm-popup-announcement-close {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear, transform 0.3s ease; 
}

.qm-popup-announcement-close:hover {
    background: rgba(244, 63, 94, 1);
    transform: translate(-50%, -50%) rotate(90deg) scale(1.1);
    border-color: rgba(159, 18, 57, 1);
}


.qm-envelope-wrapper {
    position: relative;
    background-color: #000;
    width: 300px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.7s ease;
    overflow: visible; 
    perspective: 1000px; 
    transform-style: preserve-3d; 
}

@media (min-width: 640px) {
    .qm-envelope-wrapper {
        width: 350px;
    }
}


.qm-envelope-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    transition: transform 1000ms ease; 
    z-index: 1;
    
    overflow: hidden; 
    box-sizing: border-box; 
    transform-style: preserve-3d; 
    transform-origin: center center; 
}


.qm-envelope-header {
    flex-shrink: 0; 
    width: 100%;
    padding: 1.25rem 1rem 0.75rem 1rem;
    box-sizing: border-box;
}


.qm-envelope-scrollable {
    flex: 1; 
    width: 100%;
    overflow-y: auto; 
    overflow-x: hidden; 
    padding: 0 1rem 1.25rem 1rem;
    box-sizing: border-box;
    scroll-behavior: smooth; 
}


.qm-envelope-scrollable::-webkit-scrollbar {
    width: 4px;
}

.qm-envelope-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.qm-envelope-scrollable::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.qm-envelope-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.qm-envelope-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6b7280;
    font-family: serif;
    margin: 0;
    text-align: center;
    word-wrap: break-word; 
    word-break: break-word; 
    max-width: 100%; 
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .qm-envelope-title {
        font-size: 1.5rem;
    }
}

.qm-envelope-subtitle {
    padding: 0;
    font-size: 10px;
    color: #374151;
    margin: 0.5rem 0 0 0;
    text-align: center;
    word-wrap: break-word; 
    word-break: break-word; 
    max-width: 100%; 
    box-sizing: border-box;
    line-height: 1.4; 
}

@media (min-width: 640px) {
    .qm-envelope-subtitle {
        font-size: 12px;
    }
}

.qm-envelope-text {
    font-family: serif;
    font-size: 10px;
    color: #374151;
    margin: 0.5rem 0 0 0;
    text-align: center;
    word-wrap: break-word; 
    word-break: break-word; 
    max-width: 100%; 
    box-sizing: border-box;
    line-height: 1.4; 
    padding: 0;
}

@media (min-width: 640px) {
    .qm-envelope-text {
        font-size: 12px;
    }
}

.qm-envelope-footer {
    font-family: sans-serif;
    font-size: 10px;
    color: #374151;
    padding-top: 1.25rem;
    margin: 0.5rem 0 0 0;
    text-align: center;
    word-wrap: break-word; 
    word-break: break-word; 
    max-width: 100%; 
    box-sizing: border-box;
}


.qm-envelope-seal {
    width: 2.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #f43f5e;
    color: #991b1b;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 50;
    clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);
    transition: all 1s ease;
    border: 4px solid #9f1239;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



.qm-envelope-btm {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #171717;
    clip-path: polygon(50% 50%, 100% 100%, 0 100%);
    transition: all 0.7s ease;
    z-index: 2; 
}


.qm-envelope-lft {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #171717;
    clip-path: polygon(50% 50%, 0 0, 0 100%);
    transition: all 0.7s ease;
    z-index: 2;
}


.qm-envelope-rgt {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #262626;
    clip-path: polygon(50% 50%, 100% 0, 100% 100%);
    transition: all 0.7s ease;
    z-index: 2;
}


.qm-envelope-tp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #262626;
    clip-path: polygon(50% 50%, 100% 0, 0 0);
    transition: all 1s ease;
    z-index: 3;
}


.qm-envelope-wrapper.qm-envelope-opened .qm-envelope-content {
    transform: translateY(-4rem); 
    transition-duration: 1000ms;
    z-index: 1; 
}

.qm-envelope-wrapper.qm-envelope-opened .qm-envelope-seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(180deg);
    transition-duration: 1000ms;
}


.qm-envelope-wrapper.qm-envelope-opened .qm-envelope-tp {
    clip-path: polygon(50% 0%, 100% 0, 0 0);
    transition-duration: 100ms;
    z-index: 0; 
    opacity: 0; 
}


.qm-envelope-wrapper.qm-envelope-opened .qm-envelope-lft {
    z-index: 5; 
    transition: z-index 0s; 
}

.qm-envelope-wrapper.qm-envelope-opened .qm-envelope-rgt {
    z-index: 5; 
    transition: z-index 0s; 
}


.qm-envelope-wrapper.qm-envelope-opened .qm-envelope-btm {
    z-index: 5; 
    transition: z-index 0s; 
}


@media (max-width: 640px) {
    .qm-popup-announcement-close {
        top: -2rem;
        right: -2rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}


.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, #FF1493 0%, #FF69B4 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px 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, #FF1493 0%, #FF69B4 100%);
    color: #ffffff;
}


.qm-popup-announcement-2-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.qm-popup-announcement-2-modal.hidden {
    display: none;
}

.qm-popup-announcement-2-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.qm-popup-announcement-2-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupAnnouncement2In 0.3s ease;
}

@keyframes popupAnnouncement2In {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.qm-popup-announcement-2-card {
    position: relative;
    width: 380px;
    max-width: calc(100vw - 2rem);
    border-radius: 24px;
    background: linear-gradient(180deg, #fce7f3 0%, #fed7aa 50%, #fecaca 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dark .qm-popup-announcement-2-card {
    background: linear-gradient(180deg, rgba(255, 20, 147, 0.15) 0%, rgba(249, 115, 22, 0.15) 50%, rgba(239, 68, 68, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.qm-popup-announcement-2-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qm-popup-announcement-2-close:hover {
    background: #ffffff;
    color: #1e293b;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dark .qm-popup-announcement-2-close {
    background: rgba(30, 41, 59, 0.9);
    color: #94a3b8;
}

.dark .qm-popup-announcement-2-close:hover {
    background: #1e293b;
    color: #f1f5f9;
}

.qm-popup-announcement-2-header {
    position: relative;
    padding: 20px 20px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.qm-popup-announcement-2-title {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.dark .qm-popup-announcement-2-title {
    color: #60a5fa;
}

.qm-popup-announcement-2-content {
    flex: 1;
    min-height: 200px;
    padding: 16px 20px;
}

.qm-popup-announcement-2-content-inner {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.dark .qm-popup-announcement-2-content-inner {
    color: #e2e8f0;
}

.qm-popup-announcement-2-content-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.qm-popup-announcement-2-footer {
    padding: 16px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qm-popup-announcement-2-button {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #ec4899 0%, #f97316 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.35);
    transition: all 0.2s ease;
}

.qm-popup-announcement-2-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.45);
    text-decoration: none;
    color: #ffffff;
}

.qm-popup-announcement-2-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.35);
}


@media (max-width: 640px) {
    .qm-popup-announcement-2-card {
        width: 100%;
        max-width: calc(100vw - 2rem);
        border-radius: 20px;
    }

    .qm-popup-announcement-2-title {
        font-size: 18px;
    }

    .qm-popup-announcement-2-content {
        min-height: 180px;
    }
}



.qm-vip-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}



.dark .qm-vip-modal__container {
    background: #ffffff !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3) !important;
}

.dark .qm-vip-modal__header {
    background: #ffffff !important;
    border-bottom-color: #e5e7eb !important;
}

.dark .qm-vip-modal__body {
    background: #ffffff !important;
}

.dark .qm-vip-modal__footer {
    background: #ffffff !important;
    border-top-color: #e5e7eb !important;
    color: #6b7280 !important;
}

.dark .qm-vip-modal__title {
    color: #1f2937 !important;
}

.dark .qm-vip-modal__tool {
    color: #6b7280 !important;
}

.dark .qm-vip-modal__close {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
}

.dark .qm-vip-modal__close:hover {
    background: #e5e7eb !important;
    color: #1f2937 !important;
}



.dark .qm-vip-compare {
    border-top-color: #e5e7eb !important;
}

.dark .qm-vip-compare__table {
    background: #ffffff !important;
}

.dark .qm-vip-compare__table thead {
    background: #f9fafb !important;
}

.dark .qm-vip-compare__table th {
    background: #f9fafb !important;
    color: #1f2937 !important;
    border-bottom-color: #e5e7eb !important;
}

.dark .qm-vip-compare__th-privilege {
    background: #f9fafb !important;
    color: #1f2937 !important;
}

.dark .qm-vip-compare__th-highest {
    background: #fff9e6 !important;
    color: #1f2937 !important;
}

.dark .qm-vip-compare__th-second {
    background: #f9fafb !important;
    color: #ef4444 !important;
}

.dark .qm-vip-compare__th-normal {
    background: #f9fafb !important;
    color: #1f2937 !important;
}

.dark .qm-vip-compare__table td {
    background: #ffffff !important;
    color: #6b7280 !important;
    border-bottom-color: #e5e7eb !important;
}

.dark .qm-vip-compare__td-privilege {
    background: #f9fafb !important;
    color: #1f2937 !important;
}

.dark .qm-vip-compare__td-highest {
    background: #fff9e6 !important;
    color: #1f2937 !important;
}

.dark .qm-vip-compare__td-second {
    color: #ef4444 !important;
}

.dark .qm-vip-compare__td-normal {
    color: #6b7280 !important;
}

.qm-vip-modal.hidden {
    display: none;
}

.qm-vip-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}


.qm-vip-modal__container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 75vh;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: vipModalIn 0.3s ease;
    z-index: 1;
    box-sizing: border-box;
}


.qm-vip-modal__banner {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    width: 100%;
    height: 120px;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}


@media (min-width: 1024px) {
    .qm-vip-modal__banner {
        border-radius: 20px 20px 0 0;
    }
}

.qm-vip-modal__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}


.qm-vip-modal__container > *:not(.qm-vip-modal__banner) {
    position: relative;
    z-index: 3;
}

.qm-vip-modal__header {
    position: relative;
    z-index: 5;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
}

.dark .qm-vip-modal__header {
    background: #1e293b;
}


@keyframes vipModalIn {
    from { 
        opacity: 0; 
        transform: translate3d(0, -30px, 0) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translate3d(0, 0, 0) scale(1); 
    }
}

.dark .qm-vip-modal__container {
    background: #1e293b;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.qm-vip-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 20px 20px 0 0;
    
    overflow: hidden;
    
    position: relative;
    z-index: 5;
}

.dark .qm-vip-modal__header {
    border-bottom-color: #334155;
}

.qm-vip-modal__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qm-vip-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark .qm-vip-modal__title {
    color: #1f2937 !important;
}

.qm-vip-modal__title i {
    color: #f59e0b;
}

.qm-vip-modal__user-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
}

.qm-vip-modal__user-tag--normal {
    background: #6b7280;
}

.qm-vip-modal__header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qm-vip-modal__tool {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.qm-vip-modal__tool:hover {
    color: #3b82f6;
}

.dark .qm-vip-modal__tool {
    color: #6b7280 !important;
}

.qm-vip-modal__close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qm-vip-modal__close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.dark .qm-vip-modal__close {
    background: #334155;
    color: #94a3b8;
}

.dark .qm-vip-modal__close:hover {
    background: #475569;
    color: #f1f5f9;
}

.qm-vip-modal__body {
    flex: 1;
    overflow: visible;
    padding: 24px;
    padding-bottom: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.qm-vip-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    flex-shrink: 0;
    background: #ffffff;
    position: sticky;
    bottom: 0;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border-radius: 0 0 20px 20px;
    
    overflow: hidden;
}

.dark .qm-vip-modal__footer {
    border-top-color: #e5e7eb !important;
    color: #6b7280 !important;
    background: #ffffff !important;
}

.qm-vip-modal__footer a {
    color: #3b82f6;
    text-decoration: none;
}

.qm-vip-modal__footer a:hover {
    text-decoration: underline;
}

.qm-vip-modal__footer span {
    margin: 0 8px;
    color: #d1d5db;
}


.qm-vip-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


.qm-vip-main__top {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


@media (min-width: 1024px) {
    .qm-vip-main__top {
        flex-direction: row;
        gap: 24px;
        align-items: flex-start;
    }
    
    .qm-vip-main__left {
        flex: 1;
        min-width: 0;
    }
    
    .qm-vip-main__right {
        flex: 0 0 320px;
        width: 320px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
}


.qm-vip-main__packages {
    width: 100%;
}


.qm-vip-main__benefits {
    width: 100%;
}


.qm-vip-card-container-modal {
    width: 100%;
}

.qm-vip-card-modal {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
}


.qm-vip-packages-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.qm-vip-package-card-modal {
    position: relative;
    cursor: pointer;
    flex: 0 0 calc(33.333% - 11px);
    min-width: 0;
}

.qm-vip-package-card-modal input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qm-vip-package-card-inner {
    padding: 20px 16px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}

.dark .qm-vip-package-card-inner {
    background-color: #ffffff;
    border-color: #e5e7eb;
}

.qm-vip-package-card-modal input[type="radio"]:checked + .qm-vip-package-card-inner,
.qm-vip-package-card-modal.qm-vip-package-card-featured .qm-vip-package-card-inner {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.qm-vip-packages-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
}

.qm-vip-packages-title-indicator {
    background-color: #d4a574;
    width: 4px;
    height: 20px;
    flex-shrink: 0;
}

.qm-vip-packages-title-text {
    margin-left: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #d4a574;
}

.dark .qm-vip-packages-title-text {
    color: #d4a574 !important;
}

.dark .qm-vip-packages-title-indicator {
    background-color: #d4a574 !important;
}


.qm-vip-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.dark .qm-vip-tabs {
    border-bottom-color: #334155;
}

.qm-vip-tab {
    position: relative;
    cursor: pointer;
    flex: 1;
}

.qm-vip-tab input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qm-vip-tab__inner {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    text-align: center;
}

.qm-vip-tab input[type="radio"]:checked + .qm-vip-tab__inner {
    border-bottom-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.dark .qm-vip-tab input[type="radio"]:checked + .qm-vip-tab__inner {
    background: rgba(245, 158, 11, 0.15);
}

.qm-vip-tab__name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.dark .qm-vip-tab__name {
    color: #f1f5f9;
}

.qm-vip-tab input[type="radio"]:checked + .qm-vip-tab__inner .qm-vip-tab__name {
    color: #f59e0b;
}

.qm-vip-tab__desc {
    font-size: 12px;
    color: #6b7280;
}

.dark .qm-vip-tab__desc {
    color: #94a3b8;
}


.qm-vip-plans {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.qm-vip-plan-card {
    position: relative;
    cursor: pointer;
    flex: 0 0 auto;
    min-width: 140px;
}

.qm-vip-plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qm-vip-plan-card__inner {
    position: relative;
    padding: 20px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    transition: all 0.3s;
}

.dark .qm-vip-plan-card__inner {
    background: #1e293b;
    border-color: #334155;
}

.qm-vip-plan-card input[type="radio"]:checked + .qm-vip-plan-card__inner {
    border-color: var(--plan-color, #f59e0b);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.qm-vip-plan-card__icon {
    font-size: 32px;
    color: var(--plan-color, #f59e0b);
    margin-bottom: 12px;
}

.qm-vip-plan-card__name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.dark .qm-vip-plan-card__name {
    color: #f1f5f9;
}

.qm-vip-plan-card__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--plan-color, #f59e0b);
    margin-bottom: 8px;
}

.qm-vip-plan-card__price em {
    font-size: 16px;
    font-style: normal;
}

.qm-vip-plan-card__original {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 12px;
}

.qm-vip-plan-card__check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--plan-color, #f59e0b);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.qm-vip-plan-card input[type="radio"]:checked + .qm-vip-plan-card__inner .qm-vip-plan-card__check {
    display: flex;
}


.qm-vip-benefits {
    margin-bottom: 24px;
}

.qm-vip-benefits__title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark .qm-vip-benefits__title {
    color: #f1f5f9;
}

.qm-vip-benefits__title i {
    color: #f59e0b;
}

.qm-vip-benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .qm-vip-benefits__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .qm-vip-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.qm-vip-benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.3s;
    text-align: center;
}

.dark .qm-vip-benefit-item {
    background: #1e293b;
}

.qm-vip-benefit-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .qm-vip-benefit-item:hover {
    background: #334155;
}

.qm-vip-benefit-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.qm-vip-benefit-item__name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.dark .qm-vip-benefit-item__name {
    color: #f1f5f9;
}

.qm-vip-benefit-item__desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.dark .qm-vip-benefit-item__desc {
    color: #94a3b8;
}


.qm-vip-modal-coupons {
    padding: 20px;
    border-radius: 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
}


@media (min-width: 1024px) {
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-coupons {
        padding: 16px;
        border-radius: 12px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-coupons__title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-coupons__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-coupon-card {
        min-height: auto;
        padding: 10px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-coupon-amount-number {
        font-size: 24px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-coupon-amount-text {
        font-size: 11px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-coupon-use-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

.dark .qm-vip-modal-coupons {
    background: #1e293b;
    border-color: #334155;
}

.qm-vip-modal-coupons__title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark .qm-vip-modal-coupons__title {
    color: #f1f5f9;
}

.qm-vip-modal-coupons__title i {
    color: #f59e0b;
}

.qm-vip-modal-coupons__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.qm-vip-modal-coupon-card {
    position: relative;
    background: linear-gradient(135deg, #f5e6d3, #e6d4b8);
    border: 2px dashed #d4a574;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 8px,
            rgba(212, 165, 116, 0.3) 8px,
            rgba(212, 165, 116, 0.3) 10px
        );
    background-position: left center;
    background-size: 12px 100%;
}

.qm-vip-modal-coupon-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    transform: rotate(-15deg);
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.qm-vip-modal-coupon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    z-index: 2;
}

.qm-vip-modal-coupon-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 6px;
}

.qm-vip-modal-coupon-amount-number {
    font-size: 24px;
    font-weight: 700;
    color: #492c05;
    line-height: 1;
}

.qm-vip-modal-coupon-amount-text {
    font-size: 10px;
    font-weight: 500;
    color: #492c05;
    margin-left: 4px;
}

.qm-vip-modal-coupon-use-btn {
    width: 100%;
    padding: 4px 8px;
    background-color: #492c05;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.qm-vip-modal-coupon-use-btn:hover:not(:disabled) {
    background-color: #6b3f0a;
}

.qm-vip-modal-coupon-use-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}


.qm-vip-modal-coupon-card--claimed {
    opacity: 0.8;
    border-color: #10b981;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.qm-vip-modal-coupon-card--claimed .qm-vip-modal-coupon-use-btn {
    background-color: #10b981;
    color: #ffffff;
}

.qm-vip-modal-coupon-card--claimed .qm-vip-modal-coupon-use-btn:hover {
    background-color: #10b981;
}


.qm-vip-modal-coupon-used {
    padding: 8px 16px;
    font-size: 13px;
    color: #9ca3af;
    background: #f3f4f6;
    border-radius: 6px;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

.qm-vip-modal-coupon-card--used {
    opacity: 0.6;
    pointer-events: none;
}

.qm-vip-modal-coupon-card--used .qm-vip-modal-coupon-content {
    opacity: 0.7;
}


@media (min-width: 1024px) {
    .qm-vip-modal-coupons-select-wrapper {
        width: 100%;
    }
    
    .qm-vip-modal-coupons-select {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #ffffff;
        font-size: 14px;
        color: #ec4899;
        cursor: pointer;
        transition: all 0.3s ease;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ec4899' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
    }
    
    .qm-vip-modal-coupons-select:hover {
        border-color: #ec4899;
    }
    
    .qm-vip-modal-coupons-select:focus {
        outline: none;
        border-color: #ec4899;
        box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
    }
    
    .qm-vip-modal-coupons-select option {
        color: #ec4899;
        background: #ffffff;
        padding: 8px;
    }
    
    .dark .qm-vip-modal-coupons-select {
        background: #1e293b;
        border-color: #334155;
        color: #ec4899;
    }
    
    .dark .qm-vip-modal-coupons-select option {
        background: #1e293b;
        color: #ec4899;
    }
    
    .dark .qm-vip-modal-coupons-select:hover {
        border-color: #ec4899;
    }
    
    .dark .qm-vip-modal-coupons-select:focus {
        border-color: #ec4899;
        box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
    }
    
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-coupons {
        flex: 0 0 auto;
        max-height: calc(75vh - 200px);
        overflow-y: auto;
    }
}


.qm-vip-modal-coupon-card--active {
    border-color: #f59e0b;
    border-style: solid;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}


.qm-vip-pay {
    padding: 20px;
    border-radius: 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dark .qm-vip-pay {
    background: #1e293b;
    border-color: #334155;
}

.qm-vip-pay__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    width: 100%;
}

.qm-vip-pay__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.qm-vip-pay__label {
    font-size: 16px;
    color: #6b7280;
}

.dark .qm-vip-pay__label {
    color: #94a3b8;
}

.qm-vip-pay__price em {
    font-size: 20px;
    font-style: normal;
    color: #ef4444;
    font-weight: 600;
}

.qm-vip-pay__price strong {
    font-size: 32px;
    color: #ef4444;
    font-weight: 700;
}

.qm-vip-pay__original-price {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    font-size: 14px;
    color: #9ca3af;
}

.qm-vip-pay__original-label {
    font-size: 14px;
}

.qm-vip-pay__original-amount {
    font-size: 14px;
    text-decoration: line-through;
    color: #9ca3af;
}

.dark .qm-vip-pay__original-price {
    color: #64748b;
}

.dark .qm-vip-pay__original-amount {
    color: #64748b;
}

.qm-vip-pay__methods {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.qm-pay-btn {
    width: 72px;
    height: 72px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s;
    position: relative;
}

.dark .qm-pay-btn {
    background: #1e293b;
    border-color: #334155;
}

.qm-pay-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qm-pay-btn i {
    font-size: 28px;
    color: #6b7280;
}

.qm-pay-btn__text {
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    color: #374151;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dark .qm-pay-btn__text {
    color: #e5e7eb;
}

.qm-pay-btn[data-method="wechat"] i {
    color: #07c160;
}

.qm-pay-btn[data-method="alipay"] i {
    color: #1677ff;
}

.qm-pay-btn[data-method="balance"] i {
    color: #f59e0b;
}

.qm-pay-btn:hover {
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.qm-pay-btn--active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.dark .qm-pay-btn--active {
    background: rgba(245, 158, 11, 0.2);
}

.qm-vip-pay__submit {
    width: auto;
    min-width: 120px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background-color: #492c05;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.3s;
    text-decoration: none;
    margin: 0 auto;
}

.qm-vip-pay__submit:hover {
    background-color: #6b3f0a;
}

.qm-vip-pay__submit:active {
    background-color: #3a2104;
}


.qm-vip-compare {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.qm-vip-modal-compare-section {
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    margin-left: 0;
    margin-right: 0;
    padding-top: 20px;
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid transparent;
    max-height: min(250px, calc(75vh - 500px));
    min-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    min-width: 0;
    flex-shrink: 0;
}


@media (max-width: 1023px) {
    .qm-vip-modal-compare-section {
        width: 100%;
        margin-top: 20px;
    }
}

.qm-vip-modal-compare-section::-webkit-scrollbar {
    width: 6px;
}

.qm-vip-modal-compare-section::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 3px;
}

.qm-vip-modal-compare-section::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 3px;
}

.qm-vip-modal-compare-section::-webkit-scrollbar-thumb:hover {
    background: #f5f5f5;
}

.dark .qm-vip-modal-compare-section {
    border-top-color: transparent;
}

.qm-vip-modal-compare-section::-webkit-scrollbar {
    width: 6px;
}

.qm-vip-modal-compare-section::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 3px;
}

.qm-vip-modal-compare-section::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 3px;
}

.qm-vip-modal-compare-section::-webkit-scrollbar-thumb:hover {
    background: #f5f5f5;
}

.dark .qm-vip-compare {
    border-top-color: #334155;
}

.qm-vip-compare__title {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
}

.qm-vip-compare__table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
    padding-bottom: 0;
    
    min-width: 0;
}

.qm-vip-compare__table-wrap::-webkit-scrollbar {
    height: 4px;
}

.qm-vip-compare__table-wrap::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 2px;
}

.qm-vip-compare__table-wrap::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 2px;
}

.qm-vip-compare__table-wrap::-webkit-scrollbar-thumb:hover {
    background: #f5f5f5;
}

.qm-vip-compare__table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    table-layout: fixed;
    box-sizing: border-box;
    min-width: 0;
}

.dark .qm-vip-compare__table {
    background: #1e293b;
}

.qm-vip-compare__table thead {
    background: transparent;
}

.dark .qm-vip-compare__table thead {
    background: transparent;
}

.qm-vip-compare__table th {
    padding: 10px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
    word-wrap: break-word;
    box-sizing: border-box;
}

.dark .qm-vip-compare__table th {
    color: #f1f5f9;
    border-bottom-color: #334155;
}

.qm-vip-compare__th-privilege {
    text-align: left !important;
    background: #f9fafb;
}

.dark .qm-vip-compare__th-privilege {
    background: #334155;
}

.qm-vip-compare__th-highest {
    background: #fff9e6 !important;
    color: #1f2937 !important;
    font-weight: 600;
}

.dark .qm-vip-compare__th-highest {
    background: #92400e !important;
    color: #f1f5f9 !important;
}

.qm-vip-compare__th-second {
    background: #f9fafb;
    color: #ef4444 !important;
}

.dark .qm-vip-compare__th-second {
    background: #334155;
    color: #f87171 !important;
}

.qm-vip-compare__th-normal {
    background: #f9fafb;
    color: #1f2937;
}

.dark .qm-vip-compare__th-normal {
    background: #334155;
    color: #f1f5f9;
}

.qm-vip-compare__table td {
    padding: 10px 12px;
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    max-width: 200px;
    min-width: 0;
}

.qm-vip-compare__td-privilege {
    text-align: left !important;
    color: #1f2937;
    font-weight: 500;
    background: #f9fafb;
}

.dark .qm-vip-compare__td-privilege {
    color: #f1f5f9;
    background: #334155;
}

.qm-vip-compare__td-highest {
    background: #fff9e6 !important;
    color: #1f2937 !important;
    font-weight: 500;
}

.dark .qm-vip-compare__td-highest {
    background: #92400e !important;
    color: #f1f5f9 !important;
}

.qm-vip-compare__th-second {
    color: #ef4444 !important;
    font-weight: 600;
}

.dark .qm-vip-compare__th-second {
    color: #f87171 !important;
}

.qm-vip-compare__td-second {
    color: #ef4444 !important;
    font-weight: 600;
}

.dark .qm-vip-compare__td-second {
    color: #f87171 !important;
}

.qm-vip-compare__td-normal {
    color: #6b7280;
}

.dark .qm-vip-compare__td-normal {
    color: #94a3b8;
}

.qm-vip-compare__table tbody tr:last-child td {
    border-bottom: none;
}

.qm-vip-compare__check {
    color: #10b981;
    font-size: 16px;
}

.qm-vip-compare__dash {
    color: #9ca3af;
    font-weight: 500;
}

.qm-vip-compare__value {
    font-weight: 600;
}

.qm-vip-compare__value-vip {
    color: #ef4444;
}

.dark .qm-vip-compare__value-vip {
    color: #f87171;
}


@media (min-width: 1024px) {
    
    .qm-vip-modal__container:has(.qm-vip-modal__banner) {
        overflow: visible;
    }
    
    
    .qm-vip-modal__container:has(.qm-vip-modal__banner) .qm-vip-modal__header {
        border-radius: 20px 20px 0 0;
    }
    
    
    .qm-vip-modal__body {
        overflow: visible;
    }
    
    
    .qm-vip-modal__body .qm-vip-modal-left-section .qm-vip-modal-compare-section {
        width: 100%;
        margin-top: 16px;
        margin-left: 0;
        margin-right: 0;
        padding-top: 16px;
        padding-left: 0;
        padding-right: 0;
        border-top: 1px solid #e5e7eb;
        max-height: min(300px, calc(75vh - 400px));
        min-height: 150px;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    
    .dark .qm-vip-modal__body .qm-vip-modal-left-section .qm-vip-modal-compare-section {
        border-top-color: #334155;
    }
    
    .qm-vip-modal-coupons__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .qm-vip-modal-coupon-card {
        min-height: 90px;
    }
    
    .qm-vip-modal-coupon-amount-number {
        font-size: 28px;
    }
    
    .qm-vip-modal-coupon-amount-text {
        font-size: 12px;
    }
    
    .qm-vip-modal-coupon-use-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}


@media (max-width: 768px) {
    .qm-vip-modal__container {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
        overflow: hidden;
    }
    
    
    .qm-vip-modal__banner {
        display: none;
    }
    
    .qm-vip-modal__header {
        padding: 16px 20px;
    }
    
    .qm-vip-modal__title {
        font-size: 18px;
    }
    
    .qm-vip-modal__body {
        padding: 20px;
    }
    
    .qm-vip-main {
        gap: 20px;
    }
    
    .qm-vip-tabs {
        gap: 4px;
        margin-bottom: 20px;
    }
    
    .qm-vip-tab__inner {
        padding: 10px 12px;
    }
    
    .qm-vip-tab__name {
        font-size: 14px;
    }
    
    .qm-vip-tab__desc {
        font-size: 11px;
    }
    
    .qm-vip-plans {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .qm-vip-plan-card {
        min-width: 120px;
    }
    
    .qm-vip-plan-card__inner {
        padding: 16px 12px;
    }
    
    .qm-vip-plan-card__icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .qm-vip-plan-card__name {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .qm-vip-plan-card__price {
        font-size: 20px;
    }
    
    .qm-vip-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .qm-vip-benefit-item {
        padding: 12px;
    }
    
    .qm-vip-benefit-item__icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .qm-vip-benefit-item__name {
        font-size: 14px;
    }
    
    .qm-vip-benefit-item__desc {
        font-size: 11px;
    }
    
    .qm-vip-pay {
        padding: 20px;
    }
    
    .qm-vip-pay__price strong {
        font-size: 28px;
    }
    
    .qm-pay-btn {
        width: 64px;
        height: 64px;
    }
    
    .qm-pay-btn i {
        font-size: 24px;
    }
    
    .qm-vip-pay__submit {
        width: auto;
        min-width: 120px;
        padding: 8px 16px;
        background-color: #492c05;
        font-size: 14px;
        font-weight: 500;
        border-radius: 6px;
    }
    
    .qm-vip-pay__submit:hover {
        background-color: #6b3f0a;
    }
}



@media (min-width: 1024px) {
    .qm-vip-modal__body .qm-vip-main.qm-vip-modal-desktop {
        gap: 12px;
    }
    
    
    .qm-vip-modal__body .qm-vip-modal-top-section {
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }
    
    
    .qm-vip-modal__body .qm-vip-modal-left-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 0;
    }
    
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons {
        flex: 0 0 280px;
        width: 280px;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        position: relative;
        z-index: 1;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-left {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-level-group {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-level {
        font-size: 24px;
        font-family: 'YouSheBiaoTiHei', sans-serif;
        line-height: 1.2;
        color: #3c2913;
        font-weight: 700;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-growth-text {
        font-size: 11px;
        font-weight: 700;
        color: #977b48;
        line-height: 1.2;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-remaining {
        font-size: 10px;
        font-weight: 700;
        color: #875e2b;
        line-height: 1.2;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-progress-wrapper {
        margin-top: 14px;
        position: relative;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-progress-bar-wrapper {
        width: 100%;
        height: 5px;
        background-color: #c0c6c8;
        border-radius: 3px;
        margin-right: 5px;
        overflow: hidden;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, #e1caa4 17.9%, #b59765 88.2%);
        border-radius: 3px;
        transition: width 0.3s ease;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-level-markers {
        display: flex;
        justify-content: space-between;
        padding: 5px 3px 0;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-level-marker {
        font-size: 10px;
        font-weight: 700;
        color: #977b48;
        line-height: 1;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-level-marker-next {
        margin-left: auto;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-right {
        position: relative;
        width: 75px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-upgrade-btn {
        padding: 8px 0 6px;
        background-color: #3a3842;
        border-radius: 12px;
        width: 70px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
        position: relative;
        z-index: 2;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-upgrade-btn:hover {
        background-color: #4a4852;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-upgrade-btn span {
        font-size: 11px;
        font-weight: 700;
        color: #ffffff;
        line-height: 1;
    }
    
    .qm-vip-modal__body .qm-vip-modal-card-glow {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background-color: rgba(57, 73, 116, 0.68);
        filter: blur(35px);
        border-radius: 50%;
        height: 75px;
        z-index: 1;
    }
    
    
    .qm-vip-modal__body .qm-vip-modal-left-section .qm-vip-modal-packages-section {
        width: 100%;
        margin-bottom: 0;
        margin-top: 0;
    }
    
    .qm-vip-modal__body .qm-vip-modal-left-section .qm-vip-packages-title {
        margin-bottom: 8px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-left-section .qm-vip-packages-scroll-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
        margin-top: 0;
        position: relative;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .qm-vip-modal__body .qm-vip-packages-scroll-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .qm-vip-modal__body .qm-vip-packages-scroll-container::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 3px;
    }
    
    .qm-vip-modal__body .qm-vip-packages-scroll-container::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }
    
    .qm-vip-modal__body .qm-vip-packages-scroll-container::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
    
    
    .qm-vip-packages-scroll-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #e5e7eb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        display: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s;
        color: #6b7280;
        pointer-events: auto;
    }
    
    .qm-vip-packages-scroll-container:hover .qm-vip-packages-scroll-btn {
        display: flex;
    }
    
    .qm-vip-packages-scroll-btn:hover:not(.qm-vip-packages-scroll-btn--disabled) {
        background: #ffffff;
        border-color: #d4a574;
        color: #d4a574;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .qm-vip-packages-scroll-btn--disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
    
    .qm-vip-packages-scroll-btn--disabled:hover {
        background: rgba(255, 255, 255, 0.95);
        border-color: #e5e7eb;
        color: #6b7280;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .qm-vip-packages-scroll-btn--prev {
        left: 8px;
    }
    
    .qm-vip-packages-scroll-btn--next {
        right: 8px;
    }
    
    .qm-vip-packages-scroll-btn i {
        font-size: 14px;
    }
    
    .qm-vip-modal__body .qm-vip-packages-horizontal {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        min-width: max-content;
        width: max-content;
    }
    
    .qm-vip-modal__body .qm-vip-package-card-modal {
        flex: 0 0 auto;
        min-width: 160px;
        width: 160px;
    }
    
    
    .qm-vip-modal__body .qm-vip-packages-horizontal .qm-vip-package-card-modal {
        flex: 0 0 160px;
        max-width: none;
        min-width: 160px;
        width: 160px;
    }
    
    
    .qm-vip-package-card-gold .qm-vip-package-card-inner {
        background-color: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 0 6px rgba(153, 153, 153, 0.16);
    }
    
    .qm-vip-package-card-gold .qm-vip-package-label-1 {
        background-color: #faddbc;
        border-radius: 0 10px 0 10px;
    }
    
    .qm-vip-package-card-gold .qm-vip-package-label-text {
        color: #875e2b;
    }
    
    .qm-vip-package-card-gold .qm-vip-package-savings {
        background: linear-gradient(90deg, #fadfc0 4.6%, #e6c193 95.2%);
        border-radius: 5px;
    }
    
    .qm-vip-package-card-gold .qm-vip-package-savings-text {
        color: #333333;
    }
    
    
    .qm-vip-package-card-silver .qm-vip-package-card-inner {
        background-color: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 0 6px rgba(153, 153, 153, 0.16);
    }
    
    .qm-vip-package-card-silver .qm-vip-package-label-2 {
        background-color: #faddbc;
        border-radius: 0 10px 0 10px;
    }
    
    .qm-vip-package-card-silver .qm-vip-package-label-text {
        color: #875e2b;
    }
    
    .qm-vip-package-card-silver .qm-vip-package-savings {
        background: linear-gradient(90deg, #fadfc0 4.6%, #e6c193 95.2%);
        border-radius: 5px;
    }
    
    .qm-vip-package-card-silver .qm-vip-package-savings-text {
        color: #333333;
    }
    
    
    .qm-vip-package-card-diamond .qm-vip-package-card-inner {
        background-color: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 0 6px rgba(153, 153, 153, 0.16);
    }
    
    .qm-vip-package-card-diamond .qm-vip-package-label-1,
    .qm-vip-package-card-diamond .qm-vip-package-label-2 {
        background-color: #faddbc;
        border-radius: 0 10px 0 10px;
    }
    
    .qm-vip-package-card-diamond .qm-vip-package-label-text {
        color: #875e2b;
    }
    
    .qm-vip-package-card-diamond .qm-vip-package-savings {
        background: linear-gradient(90deg, #fadfc0 4.6%, #e6c193 95.2%);
        border-radius: 5px;
    }
    
    .qm-vip-package-card-diamond .qm-vip-package-savings-text {
        color: #333333;
    }
    
    .qm-vip-package-card-inner {
        padding: 12px 8px 8px;
        position: relative;
        min-height: auto;
    }
    
    .qm-vip-package-label {
        position: absolute;
        right: 0;
        top: 0;
        padding: 2px 0;
        width: 56px;
        text-align: center;
        z-index: 2;
    }
    
    .qm-vip-package-label-1 {
        background-color: #faddbc;
        border-radius: 0 10px 0 10px;
    }
    
    .qm-vip-package-label-2 {
        background-color: #faddbc;
        border-radius: 0 10px 0 10px;
    }
    
    .qm-vip-package-label-text {
        font-size: 10px;
        font-weight: 700;
        line-height: 1.2;
        color: #875e2b;
    }
    
    .qm-vip-package-name {
        font-size: 14px;
        font-weight: 700;
        color: #333333;
        line-height: 1.15;
        margin-bottom: 16px;
        display: block;
        text-align: center;
    }
    
    .qm-vip-package-price-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .qm-vip-package-current-price {
        display: flex;
        justify-content: center;
        align-items: baseline;
        gap: 0;
        padding: 0 12px;
    }
    
    .qm-vip-package-currency {
        font-size: 10px;
        font-weight: 500;
        color: #333333;
        line-height: 0.72;
    }
    
    .qm-vip-package-current-amount {
        font-size: 20px;
        font-family: 'WeChat-Sans-Std-Regular', sans-serif;
        color: #333333;
        line-height: 1.2;
    }
    
    .qm-vip-package-original-price {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .qm-vip-package-original-amount {
        font-size: 10px;
        font-weight: 500;
        color: #875e2b;
        text-decoration: line-through;
        line-height: 0.72;
    }
    
    .qm-vip-package-savings {
        padding: 8px 0;
        width: 100%;
        max-width: 98px;
        text-align: center;
    }
    
    .qm-vip-package-savings-text {
        font-size: 11px;
        font-family: 'SourceHanSerifSC-Heavy', serif;
        font-weight: 800;
        line-height: 1.15;
    }
    
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-pay-section {
        margin-top: auto;
        width: 100%;
        position: sticky;
        bottom: 0;
        background: #f9fafb;
        padding: 16px;
        border-top: 1px solid #e5e7eb;
        border-radius: 0 0 12px 12px;
        z-index: 10;
        flex-shrink: 0;
    }
    
    .dark .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-pay-section {
        background: #1e293b;
        border-top-color: #334155;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-pay-section .qm-vip-pay {
        width: 100%;
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-pay-section .qm-vip-pay__row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-pay-section .qm-vip-pay__price {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 4px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-pay-section .qm-vip-pay__label {
        font-size: 13px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-pay-section .qm-vip-pay__price em {
        font-size: 14px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-pay-section .qm-vip-pay__price strong {
        font-size: 20px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-pay-section .qm-vip-pay__methods {
        display: flex;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-pay-section .qm-pay-btn {
        width: 64px;
        height: 64px;
        font-size: 18px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-pay-section .qm-pay-btn i {
        font-size: 20px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-pay-section .qm-vip-pay__submit {
        width: auto;
        min-width: 120px;
        padding: 8px 16px;
        background-color: #492c05;
        color: #ffffff;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
        font-family: 'SourceHanSansCN', sans-serif;
    }
    
    .qm-vip-modal__body .qm-vip-modal-top-coupons .qm-vip-modal-pay-section .qm-vip-pay__submit:hover {
        background-color: #6b3f0a;
    }
    
    
    .qm-vip-modal__body .qm-vip-modal-left-section .qm-vip-modal-benefits-section {
        width: 100%;
        margin-top: 0;
    }
    
    .qm-vip-modal__body .qm-vip-modal-left-section .qm-vip-modal-benefits-title {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-bottom: 10px;
        margin-top: 0;
    }
    
    .qm-vip-modal__body .qm-vip-modal-benefits-grid {
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .qm-vip-modal__body .qm-vip-modal-benefit-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        min-width: 60px;
    }
    
    .qm-vip-modal__body .qm-vip-modal-benefit-icon {
        width: auto !important;
        height: auto !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border-radius: 0;
        padding: 0;
    }
    
    .qm-vip-modal__body .qm-vip-modal-benefit-icon img {
        width: 20px !important;
        height: 20px !important;
        object-fit: contain;
    }
    
    .qm-vip-modal__body .qm-vip-modal-benefit-icon i {
        font-size: 20px !important;
        color: #d97706;
    }
    
    
    .qm-vip-modal__body .qm-vip-modal-benefit-icon i.fas,
    .qm-vip-modal__body .qm-vip-modal-benefit-icon i.far,
    .qm-vip-modal__body .qm-vip-modal-benefit-icon i.fab {
        font-size: 20px !important;
        color: #d97706;
    }
    
    .qm-vip-modal__body .qm-vip-modal-benefit-text {
        font-size: 14px;
        font-weight: 500;
        color: #333333;
        line-height: 1.15;
        text-align: center;
    }
}


.qm-vip-mobile-pay-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10001 !important;
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
}

.qm-vip-mobile-pay-modal.hidden {
    display: none !important;
}

.qm-vip-mobile-pay-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.qm-vip-mobile-pay-modal__container {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
    z-index: 1;
    max-height: 80vh;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    visibility: visible !important;
    opacity: 1 !important;
}

.dark .qm-vip-mobile-pay-modal__container {
    background: #1f2937;
}

.qm-vip-mobile-pay-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.dark .qm-vip-mobile-pay-modal__header {
    border-bottom-color: #374151;
}

.qm-vip-mobile-pay-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.dark .qm-vip-mobile-pay-modal__title {
    color: #f9fafb;
}

.qm-vip-mobile-pay-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.dark .qm-vip-mobile-pay-modal__close {
    background: #374151;
    color: #9ca3af;
}

.qm-vip-mobile-pay-modal__close:hover {
    background: #e5e7eb;
    color: #374151;
}

.dark .qm-vip-mobile-pay-modal__close:hover {
    background: #4b5563;
    color: #f3f4f6;
}

.qm-vip-mobile-pay-modal__body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.qm-vip-mobile-pay-modal__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.dark .qm-vip-mobile-pay-modal__price {
    background: #111827;
}

.qm-vip-mobile-pay-modal__price-label {
    font-size: 14px;
    color: #6b7280;
}

.dark .qm-vip-mobile-pay-modal__price-label {
    color: #9ca3af;
}

.qm-vip-mobile-pay-modal__price em {
    font-size: 16px;
    color: #ef4444;
    font-style: normal;
    font-weight: 600;
}

.qm-vip-mobile-pay-modal__price strong {
    font-size: 28px;
    color: #ef4444;
    font-weight: 700;
}

.qm-vip-mobile-pay-modal__coupons {
    margin-bottom: 24px;
}

.qm-vip-mobile-pay-modal__coupons-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dark .qm-vip-mobile-pay-modal__coupons-title {
    color: #f9fafb;
}

.qm-vip-mobile-pay-modal__coupons-title i {
    color: #f59e0b;
    font-size: 14px;
}

.qm-vip-mobile-pay-modal__coupons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.qm-vip-mobile-pay-modal__coupon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dark .qm-vip-mobile-pay-modal__coupon-item {
    background: #1f2937;
    border-color: #374151;
}

.qm-vip-mobile-pay-modal__coupon-item:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.dark .qm-vip-mobile-pay-modal__coupon-item:hover {
    background: #1e3a5f;
    border-color: #f59e0b;
}

.qm-vip-mobile-pay-modal__coupon-item--active {
    border-color: #f59e0b;
    background: #fffbeb;
}

.dark .qm-vip-mobile-pay-modal__coupon-item--active {
    background: #1e3a5f;
    border-color: #f59e0b;
}

.qm-vip-mobile-pay-modal__coupon-item--claimed {
    border-color: #10b981;
    background: #f0fdf4;
}

.dark .qm-vip-mobile-pay-modal__coupon-item--claimed {
    background: #064e3b;
    border-color: #10b981;
}

.qm-vip-mobile-pay-modal__coupon-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.qm-vip-mobile-pay-modal__coupon-amount {
    font-size: 16px;
    font-weight: 700;
    color: #f59e0b;
}

.qm-vip-mobile-pay-modal__coupon-amount strong {
    font-size: 18px;
}

.qm-vip-mobile-pay-modal__coupon-desc {
    font-size: 12px;
    color: #6b7280;
}

.dark .qm-vip-mobile-pay-modal__coupon-desc {
    color: #9ca3af;
}

.qm-vip-mobile-pay-modal__coupon-text {
    font-size: 14px;
    color: #1f2937;
    flex: 1;
}

.dark .qm-vip-mobile-pay-modal__coupon-text {
    color: #f9fafb;
}

.qm-vip-mobile-pay-modal__coupon-claim-btn {
    padding: 6px 12px;
    background: #f59e0b;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qm-vip-mobile-pay-modal__coupon-claim-btn:hover {
    background: #d97706;
}

.qm-vip-mobile-pay-modal__coupon-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f59e0b;
    border-radius: 50%;
    color: #ffffff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    visibility: hidden;
}

.qm-vip-mobile-pay-modal__coupon-item--active .qm-vip-mobile-pay-modal__coupon-check {
    opacity: 1;
    visibility: visible;
}


.qm-vip-mobile-pay-modal__coupon-item--claimed .qm-vip-mobile-pay-modal__coupon-check {
    opacity: 0;
    visibility: hidden;
}

.qm-vip-mobile-pay-modal__coupon-item--claimed.qm-vip-mobile-pay-modal__coupon-item--active .qm-vip-mobile-pay-modal__coupon-check {
    opacity: 1;
    visibility: visible;
}


.qm-vip-mobile-pay-modal__claim-coupons {
    margin-top: 14px;
}

.qm-vip-mobile-pay-modal__claim-list .qm-vip-mobile-pay-modal__coupon-item {
    border-style: dashed;
}


.qm-vip-mobile-pay-modal__coupon-used {
    padding: 6px 12px;
    font-size: 12px;
    color: #9ca3af;
    background: #f3f4f6;
    border-radius: 4px;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

.qm-vip-mobile-pay-modal__coupon-item--used {
    opacity: 0.6;
    pointer-events: none;
}

.qm-vip-mobile-pay-modal__coupon-item--used .qm-vip-mobile-pay-modal__coupon-info {
    opacity: 0.7;
}


.qm-vip-mobile-member-coupons {
    display: none;
}


@media (max-width: 768px) {
    .qm-vip-mobile-member-coupons {
        display: block;
        margin-top: 14px;
        padding: 12px;
        background: #ffffff;
        border-radius: 14px;
        border: 1px solid rgba(229, 231, 235, 0.8);
    }
    .dark .qm-vip-mobile-member-coupons {
        background: #0b1220;
        border-color: rgba(255, 255, 255, 0.08);
    }
    .qm-vip-mobile-member-coupons__title {
        font-size: 14px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .dark .qm-vip-mobile-member-coupons__title { color: #f9fafb; }
    .qm-vip-mobile-member-coupons__list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .qm-vip-mobile-member-coupon-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px;
        border: 2px dashed #f59e0b;
        border-radius: 12px;
        background: #fff7ed;
    }
    .dark .qm-vip-mobile-member-coupon-item {
        background: rgba(245, 158, 11, 0.08);
        border-color: rgba(245, 158, 11, 0.55);
    }
    .qm-vip-mobile-member-coupon-item__amount strong {
        font-size: 18px;
        color: #b45309;
    }
    .qm-vip-mobile-member-coupon-item__desc {
        font-size: 12px;
        color: #6b7280;
        margin-top: 2px;
    }
    .dark .qm-vip-mobile-member-coupon-item__desc { color: rgba(255,255,255,0.65); }
    .qm-vip-mobile-member-coupon-item__btn {
        padding: 8px 14px;
        background: #f59e0b;
        color: #ffffff;
        border: none;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 700;
    }
    .qm-vip-mobile-member-coupon-item__btn:active { transform: scale(0.98); }
}

.qm-vip-mobile-pay-modal__methods {
    margin-bottom: 24px;
}

.qm-vip-mobile-pay-modal__methods-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.dark .qm-vip-mobile-pay-modal__methods-title {
    color: #f9fafb;
}

.qm-vip-mobile-pay-modal__methods-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}


.qm-vip-qrcode-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qm-vip-qrcode-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.qm-vip-qrcode-modal__card {
    position: relative;
    width: min(92vw, 340px);
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.25);
    z-index: 1;
}
.dark .qm-vip-qrcode-modal__card { background: #0b1220; }
.qm-vip-qrcode-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.qm-vip-qrcode-modal__title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.dark .qm-vip-qrcode-modal__title { color: #f9fafb; }
.qm-vip-qrcode-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
}
.dark .qm-vip-qrcode-modal__close {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: #f9fafb;
}
.qm-vip-qrcode-modal__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.qm-vip-qrcode-modal__img {
    width: 220px;
    height: 220px;
    border-radius: 10px;
    background: #ffffff;
}
.qm-vip-qrcode-modal__hint {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}
.dark .qm-vip-qrcode-modal__hint { color: rgba(255,255,255,0.65); }
.qm-vip-qrcode-modal__order {
    font-size: 12px;
    color: #9ca3af;
}


.qm-vip-mobile-pay-method-icon {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qm-vip-mobile-pay-method-icon input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qm-vip-mobile-pay-method-icon__wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 28px;
    color: #6b7280;
}

.dark .qm-vip-mobile-pay-method-icon__wrapper {
    background: #1f2937;
    border-color: #374151;
}

.qm-vip-mobile-pay-method-icon:hover .qm-vip-mobile-pay-method-icon__wrapper {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.qm-vip-mobile-pay-method-icon--active .qm-vip-mobile-pay-method-icon__wrapper {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dark .qm-vip-mobile-pay-method-icon--active .qm-vip-mobile-pay-method-icon__wrapper {
    background: #1e3a5f;
    border-color: #3b82f6;
}

.qm-vip-mobile-pay-method-icon[data-method="wechat"] .qm-vip-mobile-pay-method-icon__wrapper i {
    color: #07c160;
}

.qm-vip-mobile-pay-method-icon[data-method="alipay"] .qm-vip-mobile-pay-method-icon__wrapper i {
    color: #1677ff;
}

.qm-vip-mobile-pay-method-icon[data-method="balance"] .qm-vip-mobile-pay-method-icon__wrapper i {
    color: #f59e0b;
}

.qm-vip-mobile-pay-method-icon--active[data-method="wechat"] .qm-vip-mobile-pay-method-icon__wrapper {
    background: rgba(7, 193, 96, 0.1);
    border-color: #07c160;
}

.qm-vip-mobile-pay-method-icon--active[data-method="alipay"] .qm-vip-mobile-pay-method-icon__wrapper {
    background: rgba(22, 119, 255, 0.1);
    border-color: #1677ff;
}

.qm-vip-mobile-pay-method-icon--active[data-method="balance"] .qm-vip-mobile-pay-method-icon__wrapper {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.qm-vip-mobile-pay-modal__submit {
    width: 100%;
    padding: 16px;
    background: #492c05;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.qm-vip-mobile-pay-modal__submit:hover {
    background: #6b3f0a;
}

.qm-vip-mobile-pay-modal__submit:active {
    transform: scale(0.98);
}


@media (max-width: 768px) {
    .qm-vip-package-savings--clickable,
    .qm-vip-package-savings {
        cursor: pointer;
        transition: all 0.2s ease;
        position: relative;
        z-index: 10;
        pointer-events: auto !important;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    .qm-vip-package-savings--clickable:active,
    .qm-vip-package-savings:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    
    .qm-vip-package-savings--clickable *,
    .qm-vip-package-savings * {
        pointer-events: none;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}



.dark #qm-vip-modal .qm-vip-modal-coupons {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.dark #qm-vip-modal .qm-vip-modal-coupons__title {
    color: #1f2937;
}

.dark #qm-vip-modal .qm-vip-modal-coupons__title i {
    color: #f59e0b;
}

.dark #qm-vip-modal .qm-vip-modal-coupons-select {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #ec4899; 
}

.dark #qm-vip-modal .qm-vip-modal-coupons-select option {
    background: #ffffff;
    color: #ec4899;
}


.dark #qm-vip-modal .qm-vip-modal-pay-section {
    background: #f9fafb;
    border-top-color: #e5e7eb;
}

.dark #qm-vip-modal .qm-vip-modal-pay-section .qm-vip-pay {
    background: transparent;
    border: none;
}

.dark #qm-vip-modal .qm-vip-modal-pay-section .qm-vip-pay__label {
    color: #6b7280;
}

.dark #qm-vip-modal .qm-vip-modal-pay-section .qm-vip-pay__original-price,
.dark #qm-vip-modal .qm-vip-modal-pay-section .qm-vip-pay__original-amount {
    color: #9ca3af;
}


.dark #qm-vip-mobile-pay-modal .qm-vip-mobile-pay-modal__price {
    background: #f9fafb;
}

.dark #qm-vip-mobile-pay-modal .qm-vip-mobile-pay-modal__price-label {
    color: #6b7280;
}

.dark #qm-vip-mobile-pay-modal .qm-vip-mobile-pay-modal__coupons-title {
    color: #1f2937;
}

.dark #qm-vip-mobile-pay-modal .qm-vip-mobile-pay-modal__coupon-item {
    background: #ffffff;
}

.dark #qm-vip-mobile-pay-modal .qm-vip-mobile-pay-modal__coupon-desc {
    color: #6b7280;
}
