/* Page: home.blade.php */

.home-page-shell {
    position: relative;
    isolation: isolate;
    padding: clamp(1rem, 2.4vw, 2rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 5%, rgba(239, 68, 68, 0.2), transparent 28rem),
        radial-gradient(circle at 92% 48%, rgba(255, 255, 255, 0.07), transparent 25rem),
        linear-gradient(155deg, #1b1b1b 0%, #101010 46%, #1b1010 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 60px rgba(0, 0, 0, 0.42);
}

.home-page-shell::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 100% 42px;
}

/* Hero Banner Section */
    .hero-banner {
        background: linear-gradient(135deg, rgba(10, 14, 39, 0.95), rgba(21, 27, 46, 0.95));
        border: 1px solid rgba(255, 92, 92, 0.55);
        border-radius: 20px;
        padding: 4rem 2rem;
        margin-bottom: 3rem;
        position: relative;
        overflow: hidden;
        background-image: 
            radial-gradient(circle at 20% 50%, rgba(239, 27, 27, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(185, 28, 28, 0.1) 0%, transparent 50%),
            repeating-linear-gradient(
                45deg,
                transparent,
                transparent 10px,
                rgba(255, 255, 255, 0.03) 10px,
                rgba(255, 255, 255, 0.03) 20px
            );
        min-height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-banner.has-image {
        display: block;
        min-height: 0;
        padding: 0;
        background: #171717;
    }

    .hero-banner-image {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .hero-banner-picture {
        display: block;
        width: 100%;
    }
    
    .hero-banner.has-image::before {
        display: none;
    }
    
    .hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
        color: white;
        width: 100%;
        padding: 2rem;
    }
    
    .hero-icon {
        font-size: 4rem;
        margin-bottom: 1.5rem;
        color: white;
    }
    
    .hero-title {
        font-size: 4rem;
        font-weight: 900;
        color: white;
        text-shadow: 
            3px 3px 0px #ef4444,
            6px 6px 10px rgba(0, 0, 0, 0.8);
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        display: block;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: rgba(255, 255, 255, 0.95);
        display: block;
    }
    
    .hero-description {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 2rem;
        display: block;
        line-height: 1.8;
    }
    
    .hero-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-btn {
        padding: 1rem 2rem;
        border-radius: 12px;
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
        transition: all 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .hero-btn-white {
        background: white;
        color: var(--dark-bg);
    }
    
    .hero-btn-white:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
        color: var(--dark-bg);
    }
    
    .hero-btn-purple {
        background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
        color: white;
    }
    
    .hero-btn-purple:hover {
        background: linear-gradient(135deg, var(--accent-red-dark), var(--accent-red));
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(185, 28, 28, 0.4);
        color: white;
    }
    
    /* Categories Section - Improved Design */
    .categories-section {
        margin-bottom: 4rem;
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        font-weight: 800;
        color: var(--text-white);
        text-align: center;
        margin-bottom: 3rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
    
    .section-title i {
        color: var(--accent-red);
        font-size: 2rem;
    }
    
    .category-card {
        background: var(--dark-nav);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        height: 100%;
        display: flex;
        flex-direction: column;
        position: relative;
        background: linear-gradient(150deg, #252525, #171717);
        border-color: rgba(255, 255, 255, 0.18);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 10px 28px rgba(0, 0, 0, 0.38);
    }
    
    .category-card:hover {
        transform: translateY(-8px) scale(1.02);
        border-color: #ef4444;
        box-shadow: 0 15px 40px rgba(239, 68, 68, 0.5);
    }
    
    .category-banner {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 5 / 3;
        overflow: hidden;
        background:
            radial-gradient(circle at 50% 50%, rgba(239, 68, 68, .12), transparent 68%),
            #111214;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .category-banner img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        transition: filter 0.25s ease;
    }
    
    .category-card:hover .category-banner img {
        filter: brightness(1.06) saturate(1.04);
    }
    
    .category-banner-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.22));
    }
    
    .category-content {
        padding: 1.5rem 1.25rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        background: linear-gradient(160deg, #252525, #181818);
    }
    
    .category-title {
        font-size: 0.88rem;
        font-weight: 800;
        color: var(--text-white);
        margin-bottom: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: center;
        line-height: 1.3;
    }
    
    .category-description {
        color: var(--text-light);
        margin-bottom: 1rem;
        flex-grow: 1;
        text-align: center;
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .category-info {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }
    
    .category-count {
        color: var(--accent-red);
        font-weight: 700;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .category-count i {
        font-size: 1.1rem;
    }
    
    .category-btn {
        width: 100%;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        border: 1px solid rgba(255, 125, 125, 0.82);
        border-radius: 8px;
        padding: 10px 16px;
        font-weight: 700;
        font-size: 0.875rem;
        color: white;
        text-transform: uppercase;
        text-decoration: none;
        text-align: center;
        transition: all 0.3s;
        display: block;
        letter-spacing: 0.3px;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.22),
            0 5px 16px rgba(239, 68, 68, 0.32);
    }
    
    .category-btn:hover {
        background: linear-gradient(135deg, #dc2626, #ef4444);
        border-color: #ffb1b1;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
        color: white;
    }
    
    .category-btn:active {
        transform: translateY(0);
    }
    
    /* Empty State for Categories */
    .categories-empty {
        text-align: center;
        padding: 4rem 2rem;
        background: var(--dark-nav);
        border-radius: 20px;
        border: 2px solid rgba(255, 255, 255, 0.1);
    }
    
    .categories-empty i {
        font-size: 5rem;
        color: var(--text-light);
        margin-bottom: 1.5rem;
        opacity: 0.5;
    }
    
    .categories-empty h3 {
        color: var(--text-white);
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .categories-empty p {
        color: var(--text-light);
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .home-page-shell {
            margin-inline: -0.25rem;
            padding: 0.8rem;
            border-radius: 18px;
        }

        .categories-section {
            margin-bottom: 2rem;
            padding: 1.25rem 0 0.5rem;
        }

        .hero-title {
            font-size: 2.5rem;
        }
        
        .hero-subtitle {
            font-size: 1.2rem;
        }
        
        .hero-description {
            font-size: 1rem;
        }
        
        .hero-buttons {
            flex-direction: column;
        }
        
        .hero-btn {
            width: 100%;
            justify-content: center;
        }
        
        .section-title {
            margin-bottom: 1.35rem;
            gap: 0.55rem;
            font-size: 1.35rem;
            letter-spacing: 1px;
            line-height: 1.2;
            text-align: center;
            white-space: normal;
        }
        
        .section-title i {
            font-size: 1.4rem;
        }
        
        .category-banner { height: auto; aspect-ratio: 5 / 3; }
        
        .category-title {
            min-height: 2.3em;
            margin-bottom: 0.5rem;
            font-size: clamp(0.62rem, 2.45vw, 0.76rem);
            line-height: 1.15;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .category-content {
            padding: 0.8rem 0.65rem;
        }
        
        .category-btn {
            min-height: 36px;
            padding: 7px 5px;
            font-size: clamp(0.65rem, 2.7vw, 0.78rem);
        }
        
        .category-card {
            margin-bottom: 0;
            border-width: 1px;
            border-radius: 12px;
            transition-duration: 0.2s;
        }

        .category-card:hover {
            transform: translateY(-3px);
        }

        .category-info {
            margin-bottom: 0.65rem;
            padding-top: 0.55rem;
        }

        .category-count {
            gap: 0.3rem;
            font-size: clamp(0.64rem, 2.55vw, 0.76rem);
            white-space: nowrap;
        }

        .category-count i {
            font-size: 0.85rem;
        }

        .category-description {
            display: none;
        }
        
        .categories-section .row {
            margin: 0;
        }
        
        .categories-section .category-grid-item {
            padding-inline: 0.3rem;
        }
        
        .hero-banner {
            padding: 2rem 1rem;
            min-height: 300px;
            margin-bottom: 1.25rem;
        }
        
        .hero-banner.has-image {
            padding: 0;
            height: auto;
            min-height: 0;
            max-height: none;
            display: block;
            border-radius: 14px;
        }
        
        .hero-banner.has-image .hero-content {
            display: none;
        }
    }

    @media (max-width: 380px) {
        .home-page-shell {
            margin-inline: -0.5rem;
            padding-inline: 0.55rem;
        }

        .category-banner { height: auto; aspect-ratio: 5 / 3; }

        .category-content {
            padding-inline: 0.45rem;
        }

        .category-count span {
            font-size: 0.61rem;
        }
    }

/* Nội dung SEO trang chủ */
.home-seo-section {
    position: relative;
    margin-top: clamp(.8rem, 1.8vw, 1.2rem);
    padding: clamp(.72rem, 1.5vw, 1rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left-color: rgba(239, 68, 68, 0.55);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(31, 22, 23, 0.88), rgba(17, 18, 20, 0.96) 46%);
}
.home-seo-content { max-width: 1120px; color: rgba(229,231,235,.74); font-size: .8rem; line-height: 1.62; transition:max-height .32s ease; }
.home-seo-section.is-collapsed .home-seo-content { position:relative; max-height:12rem; overflow:hidden; }
.home-seo-section.is-collapsed.is-overflowing .home-seo-content::after { position:absolute; right:0; bottom:0; left:0; height:4.8rem; content:""; pointer-events:none; background:linear-gradient(180deg, transparent, rgba(17,18,20,.98)); }
.home-seo-content h1,.home-seo-content h2,.home-seo-content h3,.home-seo-content h4 { color:#f7f7f8; font-weight:800; line-height:1.3; }
.home-seo-content h1 { margin:0 0 .52rem; font-size:clamp(1.12rem,1.7vw,1.36rem); }
.home-seo-content h2 { margin:0 0 .48rem; font-size:clamp(1rem,1.55vw,1.25rem); }
.home-seo-content h3 { margin:.78rem 0 .3rem; font-size:.92rem; }
.home-seo-content h4 { margin:.68rem 0 .28rem; font-size:.85rem; }
.home-seo-content p { margin:.34rem 0; }
.home-seo-content ul,.home-seo-content ol { margin:.4rem 0; padding-left:1.2rem; }
.home-seo-content li+li { margin-top:.24rem; }
.home-seo-content a { color:#fb646b; font-weight:700; text-underline-offset:3px; }
.home-seo-content strong { color:#f3f4f6; }
.home-seo-content blockquote { margin:.75rem 0; padding:.65rem .8rem; color:#d6d7da; background:rgba(239,68,68,.07); border-left:3px solid #ef4444; border-radius:0 9px 9px 0; }
.home-seo-content img { display:block; max-width:100%; height:auto; margin:.75rem auto; border-radius:12px; }
.home-seo-content>:last-child { margin-bottom:0; }
.home-seo-toggle-row { display:flex; justify-content:center; margin-top:.65rem; padding-top:.62rem; border-top:1px solid rgba(255,255,255,.08); }
.home-seo-toggle { display:inline-flex; align-items:center; justify-content:center; gap:.42rem; min-height:34px; padding:.4rem .78rem; border:1px solid rgba(239,68,68,.42); border-radius:9px; color:#f4f4f5; background:rgba(239,68,68,.1); font-size:.7rem; font-weight:800; transition:border-color .2s ease,background-color .2s ease,color .2s ease; }
.home-seo-toggle:hover { border-color:rgba(255,99,105,.75); color:#fff; background:rgba(239,68,68,.18); }
.home-seo-toggle i { font-size:.72rem; transition:transform .25s ease; }
.home-seo-section:not(.is-collapsed) .home-seo-toggle i { transform:rotate(180deg); }
.home-seo-section:not(.is-overflowing) .home-seo-toggle-row { display:none; }

@media (max-width: 767px) {
    .home-seo-section.is-collapsed .home-seo-content { max-height:10.5rem; }
    .home-seo-toggle { width:100%; }
}

/* Latest blog posts */
.home-blog-section {
    margin-top: clamp(.9rem, 2vw, 1.35rem);
    padding: clamp(.75rem, 1.5vw, 1rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0 0, rgba(239, 68, 68, 0.16), transparent 27rem),
        linear-gradient(145deg, rgba(31, 24, 25, 0.98), rgba(18, 19, 21, 0.98) 48%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-blog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .72rem;
}

.home-blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
    color: #fb646b;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-blog-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.12rem, 1.8vw, 1.42rem);
    font-weight: 850;
    line-height: 1.15;
}

.home-blog-header p {
    max-width: 46rem;
    margin: 0.2rem 0 0;
    color: rgba(229, 231, 235, 0.68);
    font-size: 0.75rem;
    line-height: 1.45;
}

.home-blog-view-all,
.home-blog-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    color: #fff;
    text-decoration: none;
}

.home-blog-view-all {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0.42rem 0.65rem;
    border: 1px solid rgba(251, 100, 107, 0.42);
    border-radius: 9px;
    background: rgba(239, 68, 68, 0.11);
    font-size: 0.72rem;
    font-weight: 750;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-blog-view-all:hover,
.home-blog-view-all:focus-visible {
    color: #fff;
    border-color: rgba(251, 100, 107, 0.72);
    background: rgba(239, 68, 68, 0.2);
    outline: none;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.home-blog-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background: #151618;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-blog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(251, 100, 107, 0.45);
}

.home-blog-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 7.8;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background:
        radial-gradient(circle at 50% 30%, rgba(239, 68, 68, 0.25), transparent 54%),
        #101113;
}

.home-blog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.home-blog-card:hover .home-blog-media img {
    transform: scale(1.025);
}

.home-blog-media > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: rgba(251, 100, 107, 0.8);
}

.home-blog-media > span i {
    font-size: 2.1rem;
}

.home-blog-media > span small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.home-blog-media > em {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    max-width: calc(100% - 1.1rem);
    overflow: hidden;
    padding: 0.3rem 0.48rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    background: rgba(12, 13, 15, 0.83);
    backdrop-filter: blur(7px);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 750;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-blog-content {
    display: flex;
    min-height: 8.9rem;
    flex-direction: column;
    padding: 0.62rem;
}

.home-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.32rem;
    color: rgba(209, 213, 219, 0.55);
    font-size: 0.61rem;
}

.home-blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.home-blog-content h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #f8fafc;
    font-size: 0.84rem;
    font-weight: 780;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-blog-content h3 a {
    color: inherit;
    text-decoration: none;
}

.home-blog-content h3 a:hover,
.home-blog-content h3 a:focus-visible {
    color: #fb646b;
    outline: none;
}

.home-blog-content > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.3rem 0 0.45rem;
    color: rgba(229, 231, 235, 0.62);
    font-size: 0.68rem;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-blog-read-more {
    align-self: flex-start;
    margin-top: auto;
    color: #fb646b;
    font-size: 0.67rem;
    font-weight: 750;
}

.home-blog-read-more:hover,
.home-blog-read-more:focus-visible {
    color: #ff8a90;
    outline: none;
}

@media (max-width: 991.98px) {
    .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .home-blog-section {
        margin-top: 0.8rem;
        padding: 0.75rem;
        border-radius: 16px;
    }

    .home-blog-header {
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.8rem;
    }

    .home-blog-header p {
        display: none;
    }

    .home-blog-view-all {
        min-height: 34px;
        padding: 0.42rem 0.55rem;
        font-size: 0.7rem;
    }

    .home-blog-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .home-blog-content {
        min-height: 0;
    }
}

.popup-notification-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 50% 22%, rgba(239, 68, 68, 0.17), transparent 38%),
        rgba(2, 3, 5, 0.86);
    backdrop-filter: blur(9px);
    animation: popupOverlayIn 0.22s ease-out both;
}

.popup-notification-overlay[hidden] {
    display: none;
}

.popup-notification-overlay.is-closing {
    animation: popupOverlayOut 0.18s ease-in both;
}

.has-popup-notification {
    overflow: hidden;
}

@keyframes popupOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupOverlayOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.popup-notification-modal {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(640px, 100%);
    max-height: min(88dvh, 780px);
    overflow: hidden;
    color: #f8fafc;
    background:
        radial-gradient(circle at 5% 0%, rgba(239, 68, 68, 0.15), transparent 32%),
        linear-gradient(145deg, #191b1f 0%, #101114 74%);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 26px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    animation: popupModalIn 0.28s cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes popupModalIn {
    from {
        transform: translateY(24px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.popup-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #e5e7eb;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.popup-close-btn:hover,
.popup-close-btn:focus-visible {
    color: #fff;
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(248, 113, 113, 0.52);
    outline: none;
}

.popup-notification-content {
    min-height: 310px;
    padding: 2.35rem;
    overflow: auto;
    overscroll-behavior: contain;
}

.popup-item {
    color: #e5e7eb;
}

.popup-item + .popup-item {
    padding-top: 1.75rem;
    margin-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-heading {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-right: 3.25rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-heading-copy {
    min-width: 0;
}

.popup-heading-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    color: #ff7078;
    font-size: 1.2rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 15px;
}

.popup-eyebrow {
    display: block;
    margin-bottom: 0.2rem;
    color: #ff747c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.popup-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 800;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.popup-content-before-media {
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.045);
    border-left: 3px solid #ef4a53;
    border-radius: 0 12px 12px 0;
}

.popup-banner-link {
    display: block;
    border-radius: 18px;
}

.popup-image {
    display: block;
    width: 100%;
    max-height: 55dvh;
    object-fit: contain;
    background: #0a0b0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
}

.popup-content,
.popup-html-content {
    color: #d1d5db;
    font-size: 1.02rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.popup-content > :last-child,
.popup-html-content > :last-child {
    margin-bottom: 0;
}

.popup-html-content h1,
.popup-html-content h2,
.popup-html-content h3,
.popup-html-content h4,
.popup-html-content strong {
    color: #fff;
}

.popup-html-content a {
    color: #ff747c;
}

.popup-html-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.popup-html-content table {
    width: 100%;
    border-collapse: collapse;
}

.popup-html-content th,
.popup-html-content td {
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.7rem 1.25rem;
    color: #fff;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    background: #e6333c;
    border: 1px solid #f05a62;
    border-radius: 12px;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.popup-button:hover {
    color: #fff;
    background: #f0444d;
    border-color: #ff737a;
}

.popup-button-secondary {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.popup-notification-footer {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 0.8rem;
    padding: 1.1rem 1.35rem 1.35rem;
    background: rgba(6, 7, 9, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.popup-btn-close,
.popup-btn-disable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0.75rem 1rem;
    color: #f3f4f6;
    font-size: 0.95rem;
    font-weight: 750;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.popup-btn-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.popup-btn-close:hover,
.popup-btn-close:focus-visible {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.24);
    outline: none;
}

.popup-btn-disable {
    color: #fff;
    background: #df3039;
    border: 1px solid #ef5b62;
}

.popup-btn-disable:hover,
.popup-btn-disable:focus-visible {
    background: #ee3d46;
    border-color: #ff747b;
    outline: none;
}

@media (max-width: 575.98px) {
    .popup-notification-overlay {
        align-items: end;
        padding: 0.65rem;
    }

    .popup-notification-modal {
        width: 100%;
        max-height: 91dvh;
        border-radius: 22px;
    }

    .popup-notification-content {
        min-height: 260px;
        padding: 1.35rem;
    }

    .popup-heading {
        gap: 0.7rem;
        padding-right: 2.7rem;
        margin-bottom: 1.1rem;
    }

    .popup-heading-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .popup-close-btn {
        top: 0.8rem;
        right: 0.8rem;
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .popup-notification-footer {
        gap: 0.6rem;
        padding: 0.85rem;
    }

    .popup-btn-close,
    .popup-btn-disable {
        min-height: 48px;
        padding-inline: 0.65rem;
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .popup-notification-overlay,
    .popup-notification-modal {
        animation: none;
    }
}
