#agency-demo-popup {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(20, 30, 45, 0.95);
    z-index: 2147483647;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

#agency-demo-popup.visible {
    opacity: 1;
}

.agency-popup-card {
    background: #fff;
    width: 90%;
    max-width: 850px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.agency-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: #111827;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    z-index: 2;
}

.agency-popup-close:focus-visible,
.agency-btn:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

.agency-popup-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow-y: auto;
}

.agency-col-pitch {
    padding: 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agency-popup-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.agency-popup-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid #d9e4f3;
}

.agency-popup-brand-text {
    font-size: 11px;
    font-weight: 700;
    color: #365d83;
    letter-spacing: 0.01em;
}

.agency-badge {
    display: inline-block;
    background: #fff4e5;
    color: #b45309;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: fit-content;
    border: 1px solid #fcd34d;
}

.agency-col-pitch h2 {
    margin: 0 0 15px;
    font-size: 28px;
    line-height: 1.2;
    color: #111827;
    font-weight: 800;
}

.agency-col-pitch p {
    margin: 0 0 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    white-space: pre-line;
}

.agency-trust-text {
    font-size: 14px;
    background: #f0f7ff;
    color: #1e3a8a;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
    margin-bottom: 20px;
    white-space: pre-line;
}

.agency-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.agency-stat-item {
    flex: 1;
    background: #f3f4f6;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.agency-stat-val {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #2271b1;
}

.agency-stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
}

.agency-col-features {
    background: #f9fafb;
    padding: 40px;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agency-col-features h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.agency-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agency-check-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
}

.agency-check-list li svg {
    width: 18px;
    height: 18px;
    color: #059669;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.agency-actions {
    padding: 20px 40px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.agency-popup-credit {
    text-align: right;
    padding: 6px 40px 14px;
    font-size: 11px;
    color: #5d7892;
    background: #fff;
}

.agency-price-wrapper {
    display: flex;
    flex-direction: column;
}

.agency-old-price {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.agency-new-price {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.agency-new-price span {
    color: #2271b1;
}

.agency-btn-group {
    display: flex;
    gap: 10px;
}

.agency-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.agency-btn-primary {
    background: #2271b1;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(34, 113, 177, 0.4);
}

.agency-btn-primary:hover {
    background: #135e96;
    transform: translateY(-1px);
}

.agency-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.agency-btn-secondary:hover {
    background: #e5e7eb;
    color: #111827;
}

@media (max-width: 768px) {
    .agency-popup-body {
        grid-template-columns: 1fr;
    }

    .agency-col-features {
        padding: 25px 40px;
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }

    .agency-actions {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }

    .agency-price-wrapper {
        margin-bottom: 15px;
        text-align: center;
    }

    .agency-btn-group {
        width: 100%;
        flex-direction: column;
    }

    .agency-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
