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

.home-notice-popup {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: grid;
    place-items: center;
    padding: clamp(16px, 2vw, 28px);
    background: rgba(15, 23, 42, 0.52);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    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(1040px, calc(100vw - 32px));
    max-height: min(840px, calc(100vh - 32px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 24%),
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.24);
    padding: clamp(22px, 2.6vw, 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: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform .18s ease, border-color .18s ease, color .18s ease;
}

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

.home-notice-popup__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
    gap: 20px;
    padding-right: 74px;
    margin-bottom: 18px;
}

.home-notice-popup__hero-main {
    min-width: 0;
}

.home-notice-popup__hero-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

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

.home-notice-popup__hero h2 {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 2.5vw, 2.55rem);
    line-height: 1.06;
    font-weight: 800;
    color: #0f172a;
}

.home-notice-popup__hero p {
    margin: 0;
    color: #475569;
    line-height: 1.62;
}

.home-notice-popup__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

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

.home-notice-popup__summary-pill,
.home-notice-popup__meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.92);
    color: #334155;
    font-size: .86rem;
    font-weight: 600;
}

.home-notice-popup__quick-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.16));
    color: #1d4ed8;
    font-size: .86rem;
    font-weight: 700;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-notice-popup__quick-action:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.home-notice-popup__meta-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: stretch;
    padding: 18px 20px;
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.home-notice-popup__meta-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.home-notice-popup__meta-card strong {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.5;
}

.home-notice-popup__meta-card p {
    color: #475569;
    font-size: .94rem;
    line-height: 1.6;
}

.home-notice-popup__body {
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.home-notice-popup__body::-webkit-scrollbar {
    width: 10px;
}

.home-notice-popup__body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.42);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.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.9);
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-top: 4px solid var(--home-popup-accent);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    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: #059669;
    --home-popup-soft: rgba(5, 150, 105, 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: 50px;
    height: 50px;
    flex: 0 0 50px;
    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.22rem;
    font-weight: 800;
    color: #0f172a;
}

.home-notice-popup__card-copy p {
    margin: 0;
    color: #64748b;
    line-height: 1.62;
    font-size: .96rem;
}

.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: 0;
    list-style: none;
    color: #1e293b;
    display: grid;
    gap: 10px;
}

.home-notice-popup__list li {
    position: relative;
    padding-left: 20px;
    line-height: 1.62;
}

.home-notice-popup__list li::before {
    content: '';
    position: absolute;
    top: .68rem;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--home-popup-accent);
    box-shadow: 0 0 0 4px var(--home-popup-soft);
}

.home-notice-popup__list.is-ordered {
    counter-reset: popup-ordered;
}

.home-notice-popup__list.is-ordered li {
    padding-left: 28px;
}

.home-notice-popup__list.is-ordered li::before {
    counter-increment: popup-ordered;
    content: counter(popup-ordered);
    top: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    color: var(--home-popup-accent);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: none;
}

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

.home-notice-popup__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, opacity .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--primary:hover,
.home-notice-popup__cta--secondary:hover,
.home-notice-popup__cta--ghost:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

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

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

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

.home-notice-popup__footer-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1 1 360px;
    min-width: 0;
    color: #475569;
    line-height: 1.55;
    font-size: .95rem;
}

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

.home-notice-popup__footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.home-notice-popup__button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, border-color .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, #1e40af);
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

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

@media (max-width: 991.98px) {
    .home-notice-popup__dialog {
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .home-notice-popup__hero,
    .home-notice-popup__footer {
        grid-template-columns: minmax(0, 1fr);
        display: grid;
    }

    .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__close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .home-notice-popup__hero {
        gap: 14px;
        padding-right: 44px;
    }

    .home-notice-popup__summary {
        gap: 8px;
    }

    .home-notice-popup__summary-pill,
    .home-notice-popup__meta-pill,
    .home-notice-popup__quick-action {
        white-space: normal;
    }

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

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

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