
/* Backdrop */
.custom-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1040;
}

/* Wrapper */
.custom-modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Dialog */
.custom-modal-dialog {
    max-width: 520px;
    width: 100%;
}

/* Content */
.custom-modal-content {
    border-radius: 16px;
    border: none;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Header */
.custom-modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.25rem 1.5rem;
}

/* Title */
.custom-modal-header .modal-title {
    font-weight: 600;
}

/* Close button */
.custom-modal-header .close {
    font-size: 1.5rem;
    opacity: 0.6;
}

.custom-modal-header .close:hover {
    opacity: 1;
}




/* Custom Confirmation Modal */
.custom-confirm-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
    align-items: center;
    justify-content: center;
}
.custom-confirm-modal.show {
    display: flex !important;  
}
.custom-confirm-content {
    background-color: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s;
    overflow: hidden;
}
.custom-confirm-header {
    padding: 24px 24px 16px 24px;
    text-align: center;
}
.custom-confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    /* background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}
.custom-confirm-icon i {
    font-size: 28px;
    color: #dc2626;
}
.custom-confirm-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.custom-confirm-message {
    font-size: 0.938rem;
    color: #6b7280;
    line-height: 1.5;
}
.custom-confirm-body {
    padding: 0 24px 24px 24px;
}
.custom-confirm-actions {
    display: flex;
    gap: 12px;
}
.custom-confirm-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.938rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}
.custom-confirm-btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
}
.custom-confirm-btn-cancel:hover {
    background: #e5e7eb;
}
.custom-confirm-btn-confirm {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}
.custom-confirm-btn-confirm:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#share-newsletter .modal-dialog { max-width: 480px; }
#share-newsletter .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.18);
    background: #fff;
}

/* ── Header ── */
#share-newsletter .share-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 28px 28px 44px;
    position: relative;
}
#share-newsletter .share-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 24px;
    background: #fff;
    border-radius: 20px 20px 0 0;
}
#share-newsletter .share-header h4 {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
}
#share-newsletter .share-header p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin: 4px 0 0;
}
#share-newsletter .share-close {
    position: absolute;
    top: 18px; right: 18px;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
}
#share-newsletter .share-close:hover { background: rgba(255,255,255,0.25); }

/* ── Body ── */
#share-newsletter .modal-body { padding: 12px 26px 26px; }

/* ── Copy strip ── */
#share-newsletter .copy-strip {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 9px 12px;
    gap: 8px;
    margin-bottom: 22px;
    border: 1.5px solid #e2e8f0;
    transition: border-color 0.2s;
}
#share-newsletter .copy-strip:focus-within { border-color: #3b82f6; }
#share-newsletter .copy-strip .strip-icon { color: #94a3b8; font-size: 13px; flex-shrink: 0; }
#share-newsletter .copy-strip input {
    border: none;
    background: transparent;
    font-size: 0.8rem;
    color: #475569;
    flex: 1;
    outline: none;
    min-width: 0;
}
#share-newsletter .copy-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    display: flex; align-items: center; gap: 5px;
}
#share-newsletter .copy-btn:hover { background: #1e3a5f; }
#share-newsletter .copy-btn:active { transform: scale(0.96); }
#share-newsletter .copy-btn.copied { background: #16a34a; }

/* ── Section label ── */
#share-newsletter .share-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 12px;
}

/* ── Social grid ── */
#share-newsletter .social-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
#share-newsletter .social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 13px 6px 11px;
    border-radius: 13px;
    border: 1.5px solid #e2e8f0;
    text-decoration: none !important;
    background: #fff;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
#share-newsletter .social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.09);
    text-decoration: none;
}
#share-newsletter .social-btn .soc-label {
    font-size: 0.67rem;
    font-weight: 500;
    color: #64748b;
}
#share-newsletter .social-btn.tw:hover { border-color: #1da1f2; }
#share-newsletter .social-btn.fb:hover { border-color: #1877f2; }
#share-newsletter .social-btn.li:hover { border-color: #0077b5; }
#share-newsletter .social-btn.wa:hover { border-color: #25d366; }
#share-newsletter .social-btn.em:hover { border-color: #f59e0b; }

#share-newsletter .icon-wrap {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
}
#share-newsletter .icon-wrap.tw { background: #e8f5fe; color: #1da1f2; }
#share-newsletter .icon-wrap.fb { background: #e7f0fd; color: #1877f2; }
#share-newsletter .icon-wrap.li { background: #e5f2f8; color: #0077b5; }
#share-newsletter .icon-wrap.wa { background: #e9faf0; color: #25d366; }
#share-newsletter .icon-wrap.em { background: #fef9ec; color: #f59e0b; }

/* ── Footer ── */
#share-newsletter .modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 12px 26px;
    justify-content: flex-start;
}
#share-newsletter .modal-footer small { color: #94a3b8; font-size: 0.74rem; }



#share-brief .modal-dialog { max-width: 480px; }
#share-brief .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.18);
    background: #fff;
}

/* ── Header ── */
#share-brief .share-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 28px 28px 44px;
    position: relative;
}
#share-brief .share-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 24px;
    background: #fff;
    border-radius: 20px 20px 0 0;
}
#share-brief .share-header h4 {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
}
#share-brief .share-header p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin: 4px 0 0;
}
#share-brief .share-close {
    position: absolute;
    top: 18px; right: 18px;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
}
#share-brief .share-close:hover { background: rgba(255,255,255,0.25); }

/* ── Body ── */
#share-brief .modal-body { padding: 12px 26px 26px; }

/* ── Copy strip ── */
#share-brief .copy-strip {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 9px 12px;
    gap: 8px;
    margin-bottom: 22px;
    border: 1.5px solid #e2e8f0;
    transition: border-color 0.2s;
}
#share-brief .copy-strip:focus-within { border-color: #3b82f6; }
#share-brief .copy-strip .strip-icon { color: #94a3b8; font-size: 13px; flex-shrink: 0; }
#share-brief .copy-strip input {
    border: none;
    background: transparent;
    font-size: 0.8rem;
    color: #475569;
    flex: 1;
    outline: none;
    min-width: 0;
}
#share-brief .copy-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    display: flex; align-items: center; gap: 5px;
}
#share-brief .copy-btn:hover { background: #1e3a5f; }
#share-brief .copy-btn:active { transform: scale(0.96); }
#share-brief .copy-btn.copied { background: #16a34a; }

/* ── Section label ── */
#share-brief .share-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 12px;
}

/* ── Social grid ── */
#share-brief .social-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
#share-brief .social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 13px 6px 11px;
    border-radius: 13px;
    border: 1.5px solid #e2e8f0;
    text-decoration: none !important;
    background: #fff;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
#share-brief .social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.09);
    text-decoration: none;
}
#share-brief .social-btn .soc-label {
    font-size: 0.67rem;
    font-weight: 500;
    color: #64748b;
}
#share-brief .social-btn.tw:hover { border-color: #1da1f2; }
#share-brief .social-btn.fb:hover { border-color: #1877f2; }
#share-brief .social-btn.li:hover { border-color: #0077b5; }
#share-brief .social-btn.wa:hover { border-color: #25d366; }
#share-brief .social-btn.em:hover { border-color: #f59e0b; }

#share-brief .icon-wrap {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
}
#share-brief .icon-wrap.tw { background: #e8f5fe; color: #1da1f2; }
#share-brief .icon-wrap.fb { background: #e7f0fd; color: #1877f2; }
#share-brief .icon-wrap.li { background: #e5f2f8; color: #0077b5; }
#share-brief .icon-wrap.wa { background: #e9faf0; color: #25d366; }
#share-brief .icon-wrap.em { background: #fef9ec; color: #f59e0b; }

/* ── Footer ── */
#share-brief .modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 12px 26px;
    justify-content: flex-start;
}
#share-brief .modal-footer small { color: #94a3b8; font-size: 0.74rem; }

#share-brief {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1050;
}

#share-brief .modal-dialog {
    max-width: 480px;
    margin: auto !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}







.share-brief .modal-dialog { max-width: 480px; }
.share-brief .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.18);
    background: #fff;
}

/* ── Header ── */
.share-brief .share-header {
    background: linear-gradient(135deg, #0f172a 0%, #0f1a2a 100%);
    padding: 28px 28px 44px;
    position: relative;
}
.share-brief .share-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 24px;
    background: #fff;
    border-radius: 20px 20px 0 0;
}
.share-brief .share-header h4 {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.share-brief .share-header p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin: 4px 0 0;
}
.share-brief .share-close {
    position: absolute;
    top: 18px; right: 18px;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
}
#share-brief .share-close:hover { background: rgba(255,255,255,0.25); }

/* ── Body ── */
.share-brief .modal-body { padding: 12px 26px 26px; }

/* ── Copy strip ── */
.share-brief .copy-strip {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 9px 12px;
    gap: 8px;
    margin-bottom: 22px;
    border: 1.5px solid #e2e8f0;
    transition: border-color 0.2s;
}
.share-brief .copy-strip:focus-within { border-color: #3b82f6; }
.share-brief .copy-strip .strip-icon { color: #94a3b8; font-size: 13px; flex-shrink: 0; }
.share-brief .copy-strip input {
    border: none;
    background: transparent;
    font-size: 0.8rem;
    color: #475569;
    flex: 1;
    outline: none;
    min-width: 0;
}
.share-brief .copy-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    display: flex; align-items: center; gap: 5px;
}
#share-brief .copy-btn:hover { background: #1e3a5f; }
#share-brief .copy-btn:active { transform: scale(0.96); }
#share-brief .copy-btn.copied { background: #16a34a; }

/* ── Section label ── */
.share-brief .share-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 12px;
}

/* ── Social grid ── */
.share-brief .social-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.share-brief .social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 13px 6px 11px;
    border-radius: 13px;
    border: 1.5px solid #e2e8f0;
    text-decoration: none !important;
    background: #fff;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.share-brief .social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.09);
    text-decoration: none;
}
.share-brief .social-btn .soc-label {
    font-size: 0.67rem;
    font-weight: 500;
    color: #64748b;
}
.share-brief .social-btn.tw:hover { border-color: #1da1f2; }
.share-brief .social-btn.fb:hover { border-color: #1877f2; }
.share-brief .social-btn.li:hover { border-color: #0077b5; }
.share-brief .social-btn.wa:hover { border-color: #25d366; }
.share-brief .social-btn.em:hover { border-color: #f59e0b; }

.share-brief .icon-wrap {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
}
.share-brief .icon-wrap.tw { background: #e8f5fe; color: #1da1f2; }
.share-brief .icon-wrap.fb { background: #e7f0fd; color: #1877f2; }
.share-brief .icon-wrap.li { background: #e5f2f8; color: #0077b5; }
.share-brief .icon-wrap.wa { background: #e9faf0; color: #25d366; }
.share-brief .icon-wrap.em { background: #fef9ec; color: #f59e0b; }

/* ── Footer ── */
.share-brief .modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 12px 26px;
    justify-content: flex-start;
}
.share-brief .modal-footer small { color: #94a3b8; font-size: 0.74rem; }

.share-brief {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1050;
}

.share-brief .modal-dialog {
    max-width: 480px;
    margin: auto !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}







