body.home-popup-open {
    overflow: hidden;
}

.home-notice-popup {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: grid;
    place-items: center;
    padding: clamp(16px, 2.4vw, 28px);
    background: rgba(15, 23, 42, 0.56);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.home-notice-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.home-notice-popup__overlay {
    position: absolute;
    inset: 0;
}

.home-notice-popup__dialog {
    position: relative;
    width: min(1080px, calc(100vw - 28px));
    max-height: min(860px, calc(100vh - 28px));
    overflow: auto;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 36px 90px rgba(15, 23, 42, 0.32);
    padding: clamp(20px, 2.8vw, 32px);
    transform: translateY(18px) scale(.985);
    transition: transform .24s ease;
}

.home-notice-popup.is-visible .home-notice-popup__dialog {
    transform: translateY(0) scale(1);
}

.home-notice-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: all .18s ease;
}

.home-notice-popup__close:hover {
    color: #0f172a;
    border-color: rgba(37, 99, 235, 0.34);
    transform: translateY(-1px);
}

.home-notice-popup__hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-right: 56px;
    margin-bottom: 22px;
}

.home-notice-popup__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.home-notice-popup__hero h2 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 2.7vw, 2.45rem);
    line-height: 1.08;
    font-weight: 800;
    color: #0f172a;
}

.home-notice-popup__hero p {
    margin: 0;
    max-width: 66ch;
    color: #475569;
    line-height: 1.6;
}

.home-notice-popup__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.home-notice-popup__meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
}

.home-notice-popup__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-notice-popup__card {
    --home-popup-accent: #2563eb;
    --home-popup-soft: rgba(37, 99, 235, 0.08);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-top: 3px solid var(--home-popup-accent);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}

.home-notice-popup__card--service {
    --home-popup-accent: #2563eb;
    --home-popup-soft: rgba(37, 99, 235, 0.1);
}

.home-notice-popup__card--community {
    --home-popup-accent: #0f9f6e;
    --home-popup-soft: rgba(15, 159, 110, 0.1);
}

.home-notice-popup__card--proxy {
    --home-popup-accent: #d97706;
    --home-popup-soft: rgba(217, 119, 6, 0.1);
}

.home-notice-popup__card--support {
    --home-popup-accent: #7c3aed;
    --home-popup-soft: rgba(124, 58, 237, 0.1);
}

.home-notice-popup__card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.home-notice-popup__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--home-popup-soft);
    color: var(--home-popup-accent);
    font-size: 1.05rem;
}

.home-notice-popup__card-copy {
    flex: 1;
    min-width: 0;
}

.home-notice-popup__card-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.home-notice-popup__card-copy h3 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
}

.home-notice-popup__card-copy p {
    margin: 0;
    color: #64748b;
    line-height: 1.58;
}

.home-notice-popup__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
    font-size: .76rem;
    font-weight: 700;
}

.home-notice-popup__list {
    margin: 0;
    padding-left: 1.1rem;
    color: #1e293b;
    line-height: 1.66;
}

.home-notice-popup__list li + li {
    margin-top: 6px;
}

.home-notice-popup__list.is-ordered {
    padding-left: 1.25rem;
}

.home-notice-popup__list.is-ordered li::marker {
    font-weight: 700;
    color: var(--home-popup-accent);
}

.home-notice-popup__card-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.home-notice-popup__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all .18s ease;
}

.home-notice-popup__cta--primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.home-notice-popup__cta--secondary,
.home-notice-popup__cta--ghost {
    background: var(--home-popup-soft);
    color: var(--home-popup-accent);
}

.home-notice-popup__cta--secondary:hover,
.home-notice-popup__cta--ghost:hover,
.home-notice-popup__cta--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.11);
}

.home-notice-popup__cta--primary:hover {
    color: #fff;
}

.home-notice-popup__cta--secondary:hover,
.home-notice-popup__cta--ghost:hover {
    color: var(--home-popup-accent);
}

.home-notice-popup__cta--disabled {
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
    cursor: not-allowed;
}

.home-notice-popup__footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.home-notice-popup__footer-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: #475569;
    line-height: 1.55;
}

.home-notice-popup__footer-note i {
    margin-top: 4px;
    color: #2563eb;
}

.home-notice-popup__footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.home-notice-popup__button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all .18s ease;
}

.home-notice-popup__button--ghost {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.3);
    color: #334155;
}

.home-notice-popup__button--primary {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.home-notice-popup__button:hover {
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .home-notice-popup__hero,
    .home-notice-popup__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .home-notice-popup__meta {
        justify-content: flex-start;
    }

    .home-notice-popup__footer-actions {
        justify-content: stretch;
    }

    .home-notice-popup__button {
        flex: 1 1 220px;
    }
}

@media (max-width: 767.98px) {
    .home-notice-popup {
        padding: 12px;
    }

    .home-notice-popup__dialog {
        width: min(100vw - 12px, 100%);
        max-height: calc(100vh - 12px);
        border-radius: 22px;
        padding: 18px;
    }

    .home-notice-popup__hero {
        padding-right: 44px;
        margin-bottom: 18px;
    }

    .home-notice-popup__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .home-notice-popup__card {
        padding: 16px;
        border-radius: 18px;
    }

    .home-notice-popup__close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .home-notice-popup__meta-pill {
        white-space: normal;
    }

    .home-notice-popup__cta,
    .home-notice-popup__button {
        width: 100%;
        justify-content: center;
    }
}
