/* ═══════════════════════════════════════════════════════════
   UNIDET v2 — Popup succès dépôt de créance
   ═══════════════════════════════════════════════════════════ */

#ud-deposit-success {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
#ud-deposit-success.is-open { display: flex; }

#ud-deposit-success .uds-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 23, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    animation: udsFadeIn 0.25s ease;
}
@keyframes udsFadeIn { from { opacity: 0; } to { opacity: 1; } }

#ud-deposit-success .uds-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    animation: udsBoxIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}
@keyframes udsBoxIn {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── Hero gradient ─── */
#ud-deposit-success .uds-hero {
    padding: 32px 28px 24px;
    background: linear-gradient(135deg, #0A0E17 0%, #1A1F2E 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
#ud-deposit-success .uds-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
#ud-deposit-success .uds-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

#ud-deposit-success .uds-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35);
    animation: udsCheckIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}
@keyframes udsCheckIn {
    from { transform: scale(0) rotate(-180deg); }
    to   { transform: scale(1) rotate(0); }
}
#ud-deposit-success .uds-check svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#ud-deposit-success .uds-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.25;
    position: relative;
    z-index: 1;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}
#ud-deposit-success .uds-subtitle {
    margin: 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ─── Référence ─── */
#ud-deposit-success .uds-ref-wrap {
    padding: 22px 28px 8px;
}
#ud-deposit-success .uds-ref-label {
    font-size: 10.5px;
    font-weight: 800;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
#ud-deposit-success .uds-ref {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px dashed #F59E0B;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 17px;
    font-weight: 800;
    color: #78350F;
    letter-spacing: 0.5px;
    word-break: break-all;
    user-select: all;
    cursor: text;
}

/* ─── Info ─── */
#ud-deposit-success .uds-info {
    padding: 16px 28px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}
#ud-deposit-success .uds-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #F8FAFC;
    border-radius: 10px;
    font-size: 12.5px;
    color: #334155;
    font-weight: 600;
    line-height: 1.5;
}
#ud-deposit-success .uds-info-row svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: #C9A227;
    fill: none;
    stroke-width: 2;
}
#ud-deposit-success .uds-info-row strong {
    color: #0A0E17;
    font-weight: 800;
}

/* ─── Actions ─── */
#ud-deposit-success .uds-actions {
    padding: 18px 28px 26px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

#ud-deposit-success .uds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.18s ease;
    text-decoration: none;
    min-height: 46px;
    line-height: 1;
}
#ud-deposit-success .uds-btn-primary {
    background: linear-gradient(135deg, #C9A227 0%, #A0824D 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}
#ud-deposit-success .uds-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201, 162, 39, 0.5);
    color: #fff;
}
#ud-deposit-success .uds-btn-secondary {
    background: #fff;
    border-color: #E5E9F0;
    color: #475569;
}
#ud-deposit-success .uds-btn-secondary:hover {
    background: #0A0E17;
    border-color: #0A0E17;
    color: #C9A227;
}

/* ─── Animation de la carte ─── */
#ud-deposit-success .uds-card {
    opacity: 0;
    transform: translateY(10px);
    animation: udsFadeUp 0.5s ease forwards;
}
#ud-deposit-success .uds-card.delay-1 { animation-delay: 0.15s; }
#ud-deposit-success .uds-card.delay-2 { animation-delay: 0.3s; }
#ud-deposit-success .uds-card.delay-3 { animation-delay: 0.45s; }
@keyframes udsFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    #ud-deposit-success .uds-hero { padding: 26px 22px 20px; }
    #ud-deposit-success .uds-ref-wrap,
    #ud-deposit-success .uds-info,
    #ud-deposit-success .uds-actions { padding-left: 22px; padding-right: 22px; }
    #ud-deposit-success .uds-check { width: 60px; height: 60px; }
    #ud-deposit-success .uds-check svg { width: 30px; height: 30px; }
    #ud-deposit-success .uds-title { font-size: 18px; }
    #ud-deposit-success .uds-ref { font-size: 15px; padding: 10px 16px; }
}