.pp-overlay {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(180, 210, 230, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 24px;
    transition: opacity 0.35s ease;
}

.pp-overlay.pp-show {
    display: flex;
}

.pp-popup {
    position: relative;
    width: 100%;
    max-width: 820px;
    max-height: 85vh;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(230, 245, 255, 0.45) 40%,
        rgba(210, 235, 250, 0.38) 100%
    );
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 8px 48px rgba(100, 170, 220, 0.18),
        0 2px 12px rgba(80, 160, 210, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.80),
        inset 0 -1px 0 rgba(180, 220, 240, 0.30);
}

.pp-accent-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #29b6f6, #0288d1, #29b6f6);
    border-radius: 18px 18px 0 0;
    z-index: 2;
}

.pp-accent-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0288d1, #29b6f6, #0288d1);
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

.pp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(38px);
    pointer-events: none;
    z-index: 0;
}

.pp-blob--1 {
    width: 240px;
    height: 200px;
    background: rgba(100, 181, 246, 0.28);
    top: -40px;
    right: 80px;
}

.pp-blob--2 {
    width: 160px;
    height: 160px;
    background: rgba(129, 212, 250, 0.22);
    bottom: 30px;
    right: 60px;
}

.pp-blob--3 {
    width: 120px;
    height: 120px;
    background: rgba(100, 200, 220, 0.18);
    bottom: 80px;
    right: 200px;
}

.pp-blob--4 {
    width: 100px;
    height: 100px;
    background: rgba(144, 202, 249, 0.20);
    top: 100px;
    right: 280px;
}

.pp-close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(41, 182, 246, 0.35);
    background: rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #0288d1;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(41, 182, 246, 0.12);
    padding: 0;
}

.pp-close:hover {
    background: rgba(41, 182, 246, 0.18);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 16px rgba(41, 182, 246, 0.22);
}

.pp-header {
    position: relative;
    z-index: 1;
    padding: 36px 44px 0;
    border-bottom: 1px solid rgba(41, 182, 246, 0.20);
}

.pp-title {
    font-family: 'open-sans-bold', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0d1b2a;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.pp-subtitle {
    font-size: 0.85rem;
    color: #29b6f6;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.pp-divider {
    height: 1px;
    background: linear-gradient(90deg,
        rgba(41, 182, 246, 0.55) 0%,
        rgba(180, 225, 245, 0.20) 100%
    );
    margin-bottom: 24px;
    border: none;
}

.pp-content-wrapper {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.pp-content-wrapper::-webkit-scrollbar {
    width: 6px;
}

.pp-content-wrapper::-webkit-scrollbar-track {
    background: rgba(41, 182, 246, 0.08);
    border-radius: 10px;
}

.pp-content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(41, 182, 246, 0.35);
    border-radius: 10px;
    transition: background 0.2s;
}

.pp-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(41, 182, 246, 0.55);
}

.pp-content {
    position: relative;
    z-index: 1;
    padding: 0 44px 28px;
    color: black;
}

.pp-content p {
    color: #0d1b2a;
    font-family: 'Barlow', 'Segoe UI', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.65;
    margin: 0 0 12px;
}

.pp-content p:last-child {
    margin-bottom: 0;
}

.pp-content ul,
.pp-content ol {
    margin: 12px 0;
    padding-left: 28px;
    color: #0d1b2a;
    font-family: 'Barlow', 'Segoe UI', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.65;
}

.pp-content li {
    margin-bottom: 8px;
}

.pp-content strong {
    color: #0288d1;
    font-weight: 600;
}

.pp-content em {
    color: #29b6f6;
    font-style: italic;
}

.pp-section {
    margin-bottom: 20px;
}

.pp-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pp-bar {
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 3px;
    background: linear-gradient(180deg, #29b6f6, #0288d1);
    flex-shrink: 0;
}

.pp-section-title {
    font-family: 'Barlow Condensed', 'Oswald', 'Arial Black', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #29b6f6;
    text-transform: uppercase;
    margin: 0;
}

.pp-footer {
    position: relative;
    z-index: 1;
    padding: 20px 44px 28px;
    border-top: 1px solid rgba(41, 182, 246, 0.20);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.pp-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Barlow', 'Segoe UI', sans-serif;
    text-transform: uppercase;
}

.pp-btn-secondary {
    background: rgba(255, 255, 255, 0.40);
    color: #0288d1;
    border: 1px solid rgba(41, 182, 246, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pp-btn-secondary:hover {
    background: rgba(41, 182, 246, 0.12);
    border-color: rgba(41, 182, 246, 0.55);
    box-shadow: 0 4px 12px rgba(41, 182, 246, 0.15);
}

.pp-btn-primary {
    background: linear-gradient(135deg, #29b6f6, #0288d1);
    color: white;
    box-shadow: 0 4px 15px rgba(41, 182, 246, 0.30);
}

.pp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 182, 246, 0.40);
}

.pp-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Animations
   ============================================ */

@keyframes ppFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes ppFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
}

.pp-show .pp-popup {
    animation: ppFadeIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pp-closing .pp-popup {
    animation: ppFadeOut 0.32s ease-in forwards;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .pp-popup {
        max-width: 95vw;
        max-height: 90vh;
    }

    .pp-header,
    .pp-content,
    .pp-footer {
        padding-left: 28px;
        padding-right: 28px;
    }

    .pp-header {
        padding-top: 28px;
    }

    .pp-title {
        font-size: 1.5rem;
    }

    .pp-blob--1 {
        display: none;
    }

    .pp-blob--4 {
        display: none;
    }
}

@media (max-width: 480px) {
    .pp-overlay {
        padding: 16px;
    }

    .pp-header,
    .pp-content,
    .pp-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pp-header {
        padding-top: 20px;
    }

    .pp-title {
        font-size: 1.3rem;
    }

    .pp-subtitle {
        font-size: 0.75rem;
    }

    .pp-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .pp-footer {
        flex-direction: column;
    }

    .pp-btn {
        width: 100%;
        text-align: center;
    }

    .pp-blob--2 {
        width: 100px;
        height: 100px;
    }

    .pp-blob--3 {
        width: 80px;
        height: 80px;
    }
}
