/* ─── RESET & OVERLAY CONTAINER ─── */
.wdn-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.wdn-overlay.wdn-visible {
    opacity: 1;
    visibility: visible;
}

/* ─── BACKDROP BLUR ─── */
.wdn-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 18, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ─── MODAL CONTAINER ─── */
.wdn-modal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    transform: scale(0.92) translateY(16px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ─── CARD STRUCTURE ─── */
.wdn-card {
    position: relative;
    background: #14161f;
    border-radius: 18px;
    padding: 30px 28px 24px 28px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    box-sizing: border-box;
}

/* ─── CLOSE BUTTON ─── */
.wdn-close-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.wdn-close-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: rotate(90deg);
}

/* ─── HEADER ─── */
.wdn-header {
    text-align: center;
    margin-bottom: 20px;
}

.wdn-icon-badge {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4);
}

.wdn-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* ─── BODY ─── */
.wdn-body {
    margin-bottom: 24px;
}

.wdn-content-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: #cbd5e1;
    text-align: center;
    word-break: break-word;
}

.wdn-badge-tag {
    margin-top: 18px;
    text-align: center;
}
.wdn-badge-tag span {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: #94a3b8;
}

/* ─── FOOTER & ACTION BUTTON ─── */
.wdn-footer {
    display: flex;
    justify-content: center;
}

.wdn-btn-confirm {
    width: 100%;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.35);
}

.wdn-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.45);
}
.wdn-btn-confirm:active {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   THEMES: GOLD, RED ALERT, MODERN BLUE, MINIMAL LIGHT
   ═══════════════════════════════════════════════════════════ */

/* 1. Theme Dark Gold (Mặc định sang trọng) */
.wdn-theme-dark_gold .wdn-card {
    background: linear-gradient(180deg, #181922 0%, #111218 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px -5px rgba(245, 158, 11, 0.15);
}
.wdn-theme-dark_gold .wdn-icon-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}
.wdn-theme-dark_gold .wdn-title {
    color: #fef3c7;
}
.wdn-theme-dark_gold .wdn-btn-confirm {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000000;
    font-weight: 700;
}
.wdn-theme-dark_gold .wdn-btn-confirm:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* 2. Theme Red Alert */
.wdn-theme-red_alert .wdn-card {
    background: linear-gradient(180deg, #1f1416 0%, #140d0f 100%);
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px -5px rgba(239, 68, 68, 0.15);
}
.wdn-theme-red_alert .wdn-icon-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(185, 28, 28, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
}
.wdn-theme-red_alert .wdn-title {
    color: #fee2e2;
}
.wdn-theme-red_alert .wdn-btn-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

/* 3. Theme Modern Blue */
.wdn-theme-modern_blue .wdn-card {
    background: linear-gradient(180deg, #131926 0%, #0d121c 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px -5px rgba(59, 130, 246, 0.15);
}
.wdn-theme-modern_blue .wdn-icon-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(29, 78, 216, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}
.wdn-theme-modern_blue .wdn-title {
    color: #eff6ff;
}
.wdn-theme-modern_blue .wdn-btn-confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

/* 4. Theme Minimal Light */
.wdn-theme-minimal_light .wdn-backdrop {
    background: rgba(15, 23, 42, 0.45);
}
.wdn-theme-minimal_light .wdn-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.wdn-theme-minimal_light .wdn-icon-badge {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #d97706;
}
.wdn-theme-minimal_light .wdn-title {
    color: #0f172a;
}
.wdn-theme-minimal_light .wdn-content-text {
    color: #475569;
}
.wdn-theme-minimal_light .wdn-close-icon {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}
.wdn-theme-minimal_light .wdn-close-icon:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.wdn-theme-minimal_light .wdn-btn-confirm {
    background: #0f172a;
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════
   DISPLAY STYLE: STICKY BOTTOM BANNER
   ═══════════════════════════════════════════════════════════ */
.wdn-style-sticky_bottom {
    align-items: flex-end;
    padding: 0 20px 20px 20px;
    background: transparent;
    pointer-events: none;
}
.wdn-style-sticky_bottom .wdn-backdrop {
    display: none;
}
.wdn-style-sticky_bottom .wdn-modal-container {
    max-width: 820px;
    pointer-events: auto;
    transform: translateY(100%);
}
.wdn-style-sticky_bottom.wdn-visible .wdn-modal-container {
    transform: translateY(0);
}
.wdn-style-sticky_bottom .wdn-card {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.wdn-style-sticky_bottom .wdn-header {
    text-align: left;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}
.wdn-style-sticky_bottom .wdn-icon-badge {
    margin-bottom: 0;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.wdn-style-sticky_bottom .wdn-body {
    margin-bottom: 0;
    flex: 1;
}
.wdn-style-sticky_bottom .wdn-content-text {
    text-align: left;
    font-size: 13.5px;
}
.wdn-style-sticky_bottom .wdn-badge-tag {
    display: none;
}
.wdn-style-sticky_bottom .wdn-footer {
    flex-shrink: 0;
}
.wdn-style-sticky_bottom .wdn-btn-confirm {
    width: auto;
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 14px;
}

/* ─── MOBILE RESPONSIVENESS ─── */
@media (max-width: 640px) {
    .wdn-card {
        padding: 24px 18px 20px 18px;
    }
    .wdn-title {
        font-size: 18px;
    }
    .wdn-content-text {
        font-size: 13.5px;
    }
    .wdn-style-sticky_bottom .wdn-card {
        flex-direction: column;
        text-align: center;
    }
    .wdn-style-sticky_bottom .wdn-header,
    .wdn-style-sticky_bottom .wdn-content-text {
        text-align: center;
        flex-direction: column;
    }
    .wdn-style-sticky_bottom .wdn-btn-confirm {
        width: 100%;
    }
}
