/* sysIndex SaaS paywall, customer service and welcome styles */

.saas-banner--info {
    background: #e6f7ff;
}

.saas-banner--warning {
    background: #fff7e6;
}

.saas-banner--danger {
    background: #fff1f0;
}

.saas-banner--success {
    background: #f6ffed;
}

.saas-banner__text {
    margin-right: 12px;
}

.saas-banner__progress {
    display: inline-block;
    width: 120px;
    height: 6px;
    margin-right: 8px;
    vertical-align: middle;
    background: #d9d9d9;
    border-radius: 3px;
}

.saas-banner__progress-fill {
    display: block;
    height: 100%;
    background: #376aea;
    border-radius: 3px;
}

.saas-banner__progress-fill--step-0 {
    width: 0;
}

.saas-banner__progress-fill--step-1 {
    width: 33.3333%;
}

.saas-banner__progress-fill--step-2 {
    width: 66.6667%;
}

.saas-banner__progress-fill--step-3 {
    width: 100%;
}

.saas-banner__count {
    margin-right: 16px;
    color: #888;
}

.saas-banner__action {
    color: #376aea;
    font-weight: 500;
}

.saas-banner__close {
    margin-left: auto;
    color: #999;
    font-size: 16px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
}

#paywall-overlay,
#welcome-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 5050);
    align-items: center;
    justify-content: center;
}

#paywall-overlay {
    background: rgba(0, 0, 0, 0.72);
}

#paywall-overlay.is-visible,
#welcome-overlay.is-visible {
    display: flex;
}

#paywall-card {
    position: relative;
    width: 520px;
    max-width: 92vw;
    padding: 32px 36px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.paywall-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.paywall-video__iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.paywall-title {
    margin: 0 0 8px;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
}

.paywall-desc {
    margin: 0 0 6px;
    color: #555;
    font-size: 14px;
}

.paywall-assurance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    padding: 10px 14px;
    color: #166534;
    font-size: 13px;
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
    border-radius: 4px;
}

.paywall-assurance__icon {
    flex-shrink: 0;
}

.paywall-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.paywall-price__main {
    flex: 1;
}

.paywall-price__amount {
    color: #e6553a;
    font-size: 22px;
    font-weight: 700;
}

.paywall-price__desc {
    color: #888;
    font-size: 12px;
}

#paywall-feature-text {
    color: #aaa;
    font-size: 12px;
    line-height: 1.6;
    text-align: right;
}

.paywall-actions {
    display: flex;
    gap: 12px;
}

#paywall-pay-btn,
.paywall-contact-btn,
.welcome-card__button {
    height: 44px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

#paywall-pay-btn {
    flex: 2;
    color: #fff;
    font-size: 15px;
    background: #376aea;
}

.paywall-pay-icon {
    margin-right: 6px;
}

.paywall-contact-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    border: 2px solid #16a34a;
}

#paywall-status {
    min-height: 20px;
    margin-top: 12px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

.paywall-contact-modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(4px);
}

.paywall-contact-modal__card {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, .3);
}

.paywall-contact-modal__close {
    display: flex;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #9ca3af;
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 50%;
    transition: color .2s, background .2s;
}

.paywall-contact-modal__close:hover {
    color: #4b5563;
    background: #f3f4f6;
}

.paywall-contact-modal__body {
    padding: 28px 24px;
}

.paywall-contact-modal__head {
    margin-bottom: 24px;
    text-align: center;
}

.paywall-contact-modal__title {
    margin: 0 0 4px;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}

.paywall-contact-modal__desc {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.paywall-contact-modal__assurance {
    margin-bottom: 16px;
    padding: 12px 16px;
    color: #555;
    font-size: 13px;
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
    border-radius: 4px;
}

.paywall-contact-modal__assurance-title {
    margin-bottom: 4px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 500;
}

.paywall-contact-modal__item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.paywall-contact-modal__item-icon {
    flex-shrink: 0;
    margin-right: 20px;
    color: #2563eb;
}

.paywall-contact-modal__item-text {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.paywall-contact-modal__qr-title {
    margin: 8px 0 12px;
    padding-top: 8px;
    color: #4b5563;
    font-size: 14px;
    text-align: center;
}

.paywall-contact-modal__qr-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.paywall-contact-modal__qr-card {
    text-align: center;
}

.paywall-contact-modal__qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 128px;
    margin: 0 auto;
    padding: 4px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.paywall-contact-modal__qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.paywall-contact-modal__qr-label {
    display: block;
    margin-top: 8px;
    color: #9ca3af;
    font-size: 12px;
}

.paywall-contact-modal__time {
    margin-top: 16px;
    padding-top: 16px;
    color: #888;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

#kefu-widget {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: var(--z-fixed, 100);
    width: 184px;
    padding: 20px 20px 16px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.kefu-widget__close {
    position: absolute;
    top: 6px;
    right: 10px;
    color: #bbb;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
}

.kefu-widget__title {
    margin-bottom: 10px;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
}

.kefu-widget__qr {
    width: 128px;
    height: 128px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

.kefu-widget__text {
    margin-top: 8px;
    color: #555;
    font-size: 12px;
}

.kefu-widget__phone {
    margin-top: 3px;
    color: #376aea;
    font-size: 12px;
    font-weight: 500;
}

.kefu-widget__time {
    margin-top: 6px;
    color: #aaa;
    font-size: 11px;
    line-height: 1.6;
}

#kefu-toggle {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: var(--z-fixed, 100);
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: #fff;
    cursor: grab;
    user-select: none;
    touch-action: none;
    background: #376aea;
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(55, 106, 234, .4);
    transition: transform .2s;
}

#kefu-toggle.is-visible {
    display: flex;
}

#welcome-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.welcome-card {
    width: 460px;
    max-width: 92vw;
    padding: 36px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.welcome-card__icon {
    margin-bottom: 16px;
    font-size: 40px;
}

.welcome-card__title {
    margin: 0 0 10px;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
}

.welcome-card__text {
    margin: 0 0 8px;
    color: #555;
    font-size: 14px;
}

.welcome-card__subtext {
    margin: 0 0 24px;
    color: #888;
    font-size: 13px;
}

.welcome-card__tip {
    margin-bottom: 24px;
    padding: 14px 20px;
    color: #444;
    font-size: 13px;
    text-align: left;
    background: #f0f5ff;
    border-radius: 8px;
}

.welcome-card__tip-line {
    margin-bottom: 6px;
}

.welcome-card__button {
    width: 100%;
    color: #fff;
    font-size: 15px;
    background: #376aea;
}
