/* 내 정보 수정 모달 — 회원가입(signup) 다크 톤 */

body.cup-modal-open {
    overflow: hidden;
}

/* ── 오버레이 ── */
.cup-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.cup-modal.is-open {
    opacity: 1;
    visibility: visible;
}

/* ── 다이얼로그 카드 ── */
.cup-dialog {
    width: 720px;
    max-width: 92vw;
    max-height: 90vh;
    background: #1a1f2e;
    border: 1px solid rgba(85, 183, 101, 0.22);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
}

.cup-modal.is-open .cup-dialog {
    transform: translateY(0) scale(1);
}

/* ── 헤더 ── */
.cup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: rgba(15, 20, 25, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.cup-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cup-header-badge {
    font-size: 11px;
    font-weight: 700;
    color: #0f1419;
    background: linear-gradient(135deg, #55B765, #34d399);
    padding: 3px 9px;
    border-radius: 8px;
}

.cup-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.cup-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    color: #ced4da;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cup-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* ── 바디 ── */
.cup-body {
    padding: 20px 22px 8px;
    overflow-y: auto;
    flex: 1 1 auto;
    color: #ffffff;
}

.cup-section {
    padding: 2px 0 14px;
}

.cup-section + .cup-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.cup-field {
    margin-bottom: 15px;
}

.cup-field:last-child {
    margin-bottom: 0;
}

.cup-row {
    display: flex;
    gap: 14px;
}

.cup-row .cup-field {
    flex: 1 1 0;
    min-width: 0;
}

.cup-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cfd6db;
    margin-bottom: 7px;
}

.cup-req {
    color: #ff6b6b;
    font-weight: 700;
}

.cup-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 14px;
    color: #ffffff;
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cup-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.cup-input:focus {
    outline: none;
    border-color: #55B765;
    background: rgba(15, 20, 25, 0.85);
    box-shadow: 0 0 0 3px rgba(85, 183, 101, 0.18);
}

.cup-input:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.cup-input-wrap {
    position: relative;
}

.cup-badge {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 9px;
    border-radius: 10px;
}

/* 비밀번호 섹션 */
.cup-pwd-section {
    background: rgba(15, 20, 25, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px 15px 16px;
    margin-top: 16px;
}

.cup-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.cup-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.cup-optional {
    font-size: 11px;
    font-weight: 600;
    color: #55B765;
    background: rgba(85, 183, 101, 0.15);
    border: 1px solid rgba(85, 183, 101, 0.4);
    padding: 2px 9px;
    border-radius: 10px;
}

.cup-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 12px;
    line-height: 1.5;
}

.cup-pwd-rule {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.4);
    margin: 9px 0 0;
}

/* ── 푸터 ── */
.cup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.cup-btn-cancel {
    min-width: 90px;
    height: 46px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ced4da;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cup-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.cup-btn-save {
    min-width: 120px;
    height: 46px;
    background: rgba(85, 183, 101, 0.7);
    border: 2px solid #55B765;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cup-btn-save:hover {
    background: rgba(85, 183, 101, 0.9);
    border-color: #6ee7b7;
    transform: translateY(-1px);
}

/* ── validation 에러 ── */
.cup-field label.error {
    display: block;
    margin: 7px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: #ff6b6b;
}

.cup-input.error {
    border-color: #ff6b6b;
}

.cup-input.error:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18);
}
