/* ============================================================
   Delete account modal — matches login auth-modal language
   ============================================================ */

.ad-modal {
    --ad-ink: #0f172a;
    --ad-muted: #64748b;
    --ad-line: #e2e8f0;
    --ad-soft: #f1f5f9;
    --ad-accent: var(--primary, #e62e04);
    --ad-danger: #b42318;
    --ad-danger-soft: #fef3f2;
    --ad-radius: 18px;
    font-family: 'Hind Siliguri', sans-serif;
}

.ad-modal .modal-dialog,
.ad-modal__dialog {
    max-width: 440px;
    margin: 1.25rem auto;
}

.ad-modal.fade .ad-modal__dialog {
    transform: translateY(18px) scale(0.96);
    opacity: 0;
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease;
}

.ad-modal.show .ad-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ad-modal__content {
    border: 0 !important;
    border-radius: 32px !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    background: #fff;
    color: var(--ad-ink);
}

.ad-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px 0;
}

.ad-modal__head-text {
    min-width: 0;
    flex: 1;
}

.ad-modal__title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ad-ink);
}

.ad-modal__lead {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ad-accent);
    font-weight: 600;
    max-width: 320px;
}

.ad-modal__close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ad-soft);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ad-modal__close:hover {
    background: #e2e8f0;
    color: var(--ad-ink);
    transform: rotate(90deg);
}

.ad-modal__body {
    padding: 18px 24px 24px;
}

.ad-modal.show .ad-modal__user,
.ad-modal.show .ad-modal__note,
.ad-modal.show .ad-modal__means-title,
.ad-modal.show .ad-modal__list,
.ad-modal.show .ad-modal__actions {
    animation: ad-modal-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ad-modal.show .ad-modal__user { animation-delay: 0.04s; }
.ad-modal.show .ad-modal__note { animation-delay: 0.08s; }
.ad-modal.show .ad-modal__means-title { animation-delay: 0.12s; }
.ad-modal.show .ad-modal__list { animation-delay: 0.16s; }
.ad-modal.show .ad-modal__actions { animation-delay: 0.22s; }

@keyframes ad-modal-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ad-modal__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--ad-line);
    border-radius: var(--ad-radius);
    background: #f8fafc;
}

.ad-modal__avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--ad-line);
    background: #fff;
}

.ad-modal__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-modal__user-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ad-modal__user-meta strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--ad-ink);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-modal__user-meta span {
    font-size: 12px;
    font-weight: 500;
    color: var(--ad-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-modal__note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: var(--ad-radius);
    background: rgba(230, 46, 4, 0.06);
    border: 1px solid rgba(230, 46, 4, 0.14);
}

.ad-modal__note i {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 18px;
    color: var(--ad-accent);
}

.ad-modal__note p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ad-ink);
}

.ad-modal__note strong {
    color: var(--ad-accent);
    margin-right: 4px;
}

.ad-modal__means-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ad-muted);
}

.ad-modal__list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ad-modal__list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--ad-line);
    border-radius: var(--ad-radius);
    background: #fff;
}

.ad-modal__list-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: var(--ad-soft);
    color: var(--ad-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ad-modal__list li span:last-child {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--ad-ink);
    padding-top: 2px;
}

.ad-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.ad-btn:hover {
    transform: translateY(-1px);
}

.ad-btn--danger {
    background: var(--ad-accent);
    border-color: var(--ad-accent);
    color: #fff !important;
}

.ad-btn--danger:hover {
    background: var(--hov-primary, #c42703);
    border-color: var(--hov-primary, #c42703);
    color: #fff !important;
}

.ad-btn--ghost {
    background: #fff;
    border-color: var(--ad-line);
    color: var(--ad-ink) !important;
}

.ad-btn--ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--ad-ink) !important;
}

@media (max-width: 575.98px) {
    .ad-modal__head,
    .ad-modal__body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ad-modal__title {
        font-size: 22px;
    }
}
