/* Modal: usr 공통 기능 스타일 */

.delete-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: .25s;
}

.delete-modal.show {
    opacity: 1;
    visibility: visible;
}

.delete-overlay {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(5px);
}

.delete-modal-content {
    position: relative;

    width: 90%;
    max-width: 400px;

    padding: 38px 30px;

    border-radius: 28px;

    background: white;

    text-align: center;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .18);

    transform: translateY(30px) scale(.95);
    transition: .3s cubic-bezier(.2, .8, .2, 1);
}

.delete-modal.show .delete-modal-content {
    transform: translateY(0) scale(1);
}

.delete-close {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: #f1f5f9;
    color: #64748b;

    cursor: pointer;

    transition: .2s;
}

.delete-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.delete-icon {
    width: 84px;
    height: 84px;

    margin: 0 auto 22px;

    border-radius: 24px;

    background: rgba(239, 68, 68, .12);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 40px;
}

.delete-title {
    margin: 0;

    font-size: 27px;
    font-weight: 800;

    color: #0f172a;
}

.delete-desc {
    margin-top: 14px;

    color: #64748b;

    font-size: 15px;
    line-height: 1.7;
}

.delete-actions {
    display: flex;
    gap: 12px;

    margin-top: 32px;
}

.delete-actions button {
    flex: 1;
    height: 52px;

    border: none;
    border-radius: 16px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: .25s;
}

.alert-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .25s;
}

.alert-modal.show {
    opacity: 1;
    visibility: visible;
}

.alert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(5px);
}

.alert-box {
    position: relative;
    width: 90%;
    max-width: 380px;
    padding: 36px 28px 28px;
    border-radius: 26px;
    background: #fff;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
    transform: translateY(25px) scale(.95);
    transition: .3s cubic-bezier(.2, .8, .2, 1);
}

.alert-modal.show .alert-box {
    transform: translateY(0) scale(1);
}

.alert-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
}

.alert-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 900;
}

.alert-title {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    color: #0f172a;
}

.alert-message {
    margin: 13px 0 28px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.alert-confirm {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(99, 102, 241, .28);
}

.alert-confirm:hover {
    transform: translateY(-2px);
}

.policy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    padding: 24px;
}

.policy-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.policy-modal-box {
    width: 100%;
    max-width: 720px;
    max-height: 82vh;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.policy-modal-header {
    height: 64px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.policy-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.policy-modal-header button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f4f4f4;
    font-size: 24px;
    cursor: pointer;
}

.policy-modal-body {
    padding: 22px;
    max-height: calc(82vh - 64px);
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.policy-modal-body p {
    margin: 0 0 8px;
}

@media (max-width: 576px) {
    .policy-modal {
        padding: 14px;
    }

    .policy-modal-box {
        max-height: 86vh;
        border-radius: 18px;
    }

    .policy-modal-body {
        max-height: calc(86vh - 64px);
    }
}

.ingredient-analysis .ingredient-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;
}

.ingredient-analysis .ingredient-modal.show {
    display: flex;
}

.ingredient-analysis .ingredient-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.ingredient-analysis .example-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.ingredient-analysis .example-modal.active {
    display: block;
}

.ingredient-analysis .camera-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ingredient-analysis .camera-modal.active {
    display: flex;
}

.ingredient-analysis .camera-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
}

.ingredient-analysis .camera-box {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.ingredient-analysis .camera-box h3 {
    margin: 0 40px 18px 0;
    font-size: 20px;
    color: #172033;
}

.ingredient-analysis .camera-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #526071;
    font-size: 28px;
    line-height: 1;
}

.ingredient-analysis .camera-preview-wrap {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #111827;
}

.ingredient-analysis .camera-preview-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ingredient-analysis .camera-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

@media (max-width: 640px) {
    .ingredient-analysis .camera-box {
        padding: 18px;
    }
}

.ingredient-analysis .example-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.subscribe-modal {
    display: none;
}

.subscribe-modal.active {
    display: block;
}

.subscribe-modal .subscribe-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 999;
}

.subscribe-modal .subscribe-box {
    position: fixed;
    left: 50%;
    top: 50%;
    width: calc(100% - 36px);
    max-width: 390px;
    transform: translate(-50%, -50%);

    background: #fff;
    border-radius: 26px;
    padding: 30px 20px 24px;
    z-index: 1000;

    text-align: center;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
    animation: modalUp--subscriptionPlanList .25s ease;
}

.subscribe-modal .subscribe-close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: none;
    background: none;
    font-size: 26px;
    color: #94a3b8;
    cursor: pointer;
}

.subscribe-modal .subscribe-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 22px;
    background: #ecfdf5;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;
}

.subscribe-modal .subscribe-box h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

.subscribe-modal .subscribe-box p {
    margin: 0 0 22px;
    font-size: 14px;
    color: #64748b;
}

.subscribe-modal .subscribe-actions {
    display: flex;
    gap: 10px;
}

.deposit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: .25s;
}

.deposit-modal.active {
    opacity: 1;
    visibility: visible;
}

.deposit-modal .deposit-overlay {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(5px);
}

.deposit-modal .deposit-box {
    position: relative;

    width: calc(100% - 36px);
    max-width: 390px;
    padding: 30px 20px 24px;

    border-radius: 26px;
    background: #fff;

    text-align: center;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);

    transform: translateY(30px) scale(.95);
    transition: .3s cubic-bezier(.2, .8, .2, 1);
}

.deposit-modal.active .deposit-box {
    transform: translateY(0) scale(1);
}

.deposit-modal .deposit-close {
    position: absolute;
    top: 16px;
    right: 18px;

    border: none;
    background: none;

    color: #94a3b8;
    font-size: 26px;
    cursor: pointer;
}

.deposit-modal .deposit-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;

    border-radius: 22px;
    background: #ecfdf5;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;
}

.deposit-modal h3 {
    margin: 0 0 8px;

    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.deposit-modal p {
    margin: 0 0 20px;

    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.deposit-modal .deposit-info {
    margin-bottom: 22px;
    padding: 16px;

    border-radius: 18px;
    background: #f8fafc;

    text-align: left;
}

.deposit-modal .deposit-info div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.deposit-modal .deposit-info div + div {
    margin-top: 12px;
    padding-top: 12px;

    border-top: 1px dashed #e2e8f0;
}

.deposit-modal .deposit-info span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.deposit-modal .deposit-info strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    text-align: right;
}

.deposit-modal .deposit-account-copy {
    padding: 0;

    border: none;
    background: none;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    cursor: pointer;
}

.deposit-modal .deposit-account-copy:hover strong {
    color: #16a34a;
}

.deposit-modal .deposit-field {
    margin-bottom: 22px;

    text-align: left;
}

.deposit-modal .deposit-field label {
    display: block;
    margin-bottom: 8px;

    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.deposit-modal .deposit-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;

    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;

    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.deposit-modal .deposit-field input:focus {
    border-color: #22c55e;
    outline: none;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}

.deposit-modal .deposit-actions {
    display: flex;
    gap: 10px;
}

.deposit-modal .deposit-cancel-btn,
.deposit-modal .deposit-confirm-btn {
    flex: 1;
    height: 48px;

    border: none;
    border-radius: 16px;

    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.deposit-modal .deposit-cancel-btn {
    background: #f1f5f9;
    color: #64748b;
}

.deposit-modal .deposit-confirm-btn {
    background: #22c55e;
    color: #fff;
}
