#samin_amount_label {
    font-weight: 700;
    display: inline-block;
    min-width: 4em;
}

#samin_amount_label.is-updated {
    animation: saminPricePulse 0.45s ease;
}

#samin_validation_message {
    display: block;
    color: #FF0338;
    margin-bottom: 10px;
}

body.samin-modal-open {
    overflow: hidden;
}

.samin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 8, 12, 0.62);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.samin-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.samin-modal {
    position: relative;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(255, 3, 56, 0.22), 0 16px 40px rgba(15, 23, 42, 0.18);
    padding: 32px 24px 22px;
    text-align: center;
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.2s ease;
}

.samin-modal::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF0338 0%, #ff4d6d 55%, #FF0338 100%);
}

.samin-modal-overlay.is-open .samin-modal {
    transform: translateY(0) scale(1);
}

.samin-modal-close,
#samin-modal-close {
    display: none !important;
}

.samin-modal-icon {
    width: 62px;
    height: 62px;
    margin: 4px auto 14px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #FF0338 0%, #c8002c 100%);
    box-shadow: 0 10px 24px rgba(255, 3, 56, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.samin-modal-title {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 20px;
}

.samin-modal-subtitle,
.samin-modal-question {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 13px;
}

.samin-modal-rows {
    background: #fff5f7;
    border: 1px solid rgba(255, 3, 56, 0.12);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    text-align: right;
}

.samin-modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    color: #334155;
    border-bottom: 1px solid rgba(255, 3, 56, 0.08);
}

.samin-modal-row:last-child {
    border-bottom: 0;
}

.samin-modal-row strong {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.samin-modal-row-total {
    background: linear-gradient(90deg, rgba(255, 3, 56, 0.12) 0%, rgba(255, 3, 56, 0.06) 100%);
    color: #FF0338;
}

.samin-modal-row-total strong {
    color: #FF0338;
    font-size: 16px;
}

.samin-modal-actions {
    display: flex;
    gap: 10px;
}

#samin-leasing-modal .samin-btn,
#samin-leasing-modal button.samin-btn {
    flex: 1;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    cursor: pointer;
    text-shadow: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}

#samin-leasing-modal .samin-btn:hover,
#samin-leasing-modal button.samin-btn:hover {
    transform: translateY(-1px);
}

#samin-leasing-modal .samin-btn:disabled,
#samin-leasing-modal button.samin-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

#samin-leasing-modal .samin-btn-ghost,
#samin-leasing-modal button.samin-btn-ghost,
#samin-leasing-modal #samin-modal-cancel {
    background: #F1F5F9 !important;
    background-color: #F1F5F9 !important;
    background-image: none !important;
    color: #334155 !important;
    border: 0 !important;
    box-shadow: none !important;
}

#samin-leasing-modal .samin-btn-ghost:hover,
#samin-leasing-modal button.samin-btn-ghost:hover,
#samin-leasing-modal .samin-btn-ghost:focus,
#samin-leasing-modal button.samin-btn-ghost:focus,
#samin-leasing-modal #samin-modal-cancel:hover,
#samin-leasing-modal #samin-modal-cancel:focus {
    background: #E2E8F0 !important;
    background-color: #E2E8F0 !important;
    background-image: none !important;
    color: #1e293b !important;
    border: 0 !important;
}

#samin-leasing-modal .samin-btn-primary,
#samin-leasing-modal button.samin-btn-primary {
    background: #FF0338 !important;
    background-image: linear-gradient(135deg, #FF0338 0%, #c8002c 100%) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 10px 22px rgba(255, 3, 56, 0.35) !important;
}

#samin-leasing-modal .samin-btn-primary:hover,
#samin-leasing-modal button.samin-btn-primary:hover,
#samin-leasing-modal .samin-btn-primary:focus,
#samin-leasing-modal button.samin-btn-primary:focus {
    background: #e00232 !important;
    background-image: linear-gradient(135deg, #ff2150 0%, #FF0338 100%) !important;
    color: #fff !important;
    filter: none;
}

.samin-modal-error {
    min-height: 1.4em;
    margin: 10px 0 0;
    color: #FF0338;
    font-size: 12px;
}

@keyframes saminPricePulse {
    from {
        color: #FF0338;
        transform: scale(1.06);
    }
    to {
        color: inherit;
        transform: scale(1);
    }
}
