.domain-notice-root {
    position: relative;
    z-index: 9998;
}

.dn-hidden {
    display: none !important;
}

.domain-notice-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgb(15 23 42 / 0.55);
    backdrop-filter: blur(4px);
    animation: domain-notice-fade-in 0.25s ease;
}

.domain-notice-modal {
    width: min(92vw, 420px);
    max-height: 90vh;
    overflow: auto;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 25px 60px rgb(15 23 42 / 0.25);
    animation: domain-notice-slide-up 0.3s ease;
}

.domain-notice-modal__head {
    padding: 1.25rem 1.25rem 0.75rem;
    text-align: center;
}

.domain-notice-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
}

.domain-notice-modal__title {
    margin-top: 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.domain-notice-modal__body {
    padding: 0 1.25rem 1.25rem;
    text-align: center;
}

.domain-notice-modal__content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #475569;
}

.domain-notice-domain {
    margin: 1rem 0 0.5rem;
    font-size: clamp(1.5rem, 7vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: #b91c1c;
    word-break: break-all;
}

.domain-notice-backups {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
}

.domain-notice-qr {
    display: flex;
    justify-content: center;
    margin: 1rem auto 0.75rem;
    padding: 0.75rem;
    width: fit-content;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6);
}

.domain-notice-qr canvas,
.domain-notice-qr img {
    display: block;
}

.domain-notice-wechat-tip {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: left;
}

.domain-notice-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.domain-notice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    border-radius: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.domain-notice-btn:active {
    transform: scale(0.98);
}

.domain-notice-btn--primary {
    border: none;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    box-shadow: 0 10px 24px rgb(220 38 38 / 0.25);
}

.domain-notice-btn--secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.domain-notice-btn--ghost {
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
}

.domain-notice-btn--tg {
    border: none;
    background: linear-gradient(135deg, #229ed9, #1b8bbf);
    color: #fff;
}

.domain-notice-toast {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #15803d;
}

.domain-notice-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9997;
}

.domain-notice-float-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgb(220 38 38 / 0.35);
    cursor: pointer;
}

.domain-notice-float-panel {
    display: none;
    pointer-events: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    width: min(88vw, 280px);
    padding: 1rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 18px 40px rgb(15 23 42 / 0.18);
    border: 1px solid #e2e8f0;
}

.domain-notice-float-panel.is-open {
    display: block;
    pointer-events: auto;
}

.domain-notice-float-close {
    position: absolute;
    top: 0.5rem;
    right: 0.65rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.domain-notice-float-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.domain-notice-float-host {
    margin-top: 0.25rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #b91c1c;
    word-break: break-all;
}

.domain-notice-float-qr {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0;
}

.domain-notice-float-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.domain-notice-float-toast {
    margin-top: 0.65rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.65rem;
    background: #ecfdf5;
    color: #15803d;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

.domain-notice-hint {
    position: fixed;
    right: 1rem;
    bottom: 5.5rem;
    z-index: 9996;
    max-width: min(88vw, 320px);
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    background: rgb(15 23 42 / 0.92);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.5;
    box-shadow: 0 12px 30px rgb(15 23 42 / 0.25);
    animation: domain-notice-hint-in 0.25s ease;
}

@keyframes domain-notice-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes domain-notice-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes domain-notice-hint-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 640px) {
    .domain-notice-modal {
        width: min(420px, 90vw);
    }

    .domain-notice-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .domain-notice-btn {
        flex: 1 1 calc(50% - 0.35rem);
    }

    .domain-notice-btn--ghost {
        flex-basis: 100%;
    }
}
