.dg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483646;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
    box-sizing: border-box;
}

.dg-overlay.dg-visible {
    opacity: 1;
}

.dg-modal {
    position: relative;
    background: linear-gradient(135deg, #1b1b1b 0%, #0d0d0d 100%);
    color: #fff;
    max-width: 520px;
    width: 100%;
    border-radius: 20px;
    padding: 40px 36px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 212, 44, 0.15);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-sizing: border-box;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.dg-overlay.dg-visible .dg-modal {
    transform: translateY(0) scale(1);
}

.dg-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dg-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dg-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dg-image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 6px;
}

.dg-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--dg-accent, #FFD42C);
}

.dg-subtitle {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.dg-body {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.dg-footer {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
}

.dg-cta {
    align-self: flex-start;
    margin-top: 14px;
    background: var(--dg-accent, #FFD42C);
    color: #111;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dg-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 212, 44, 0.25);
}

@media (max-width: 520px) {
    .dg-modal {
        padding: 28px 22px 24px;
        border-radius: 16px;
    }
    .dg-title {
        font-size: 1.2rem;
    }
}
