/**
 * H-Book Payment CSS
 * 고급스러운 애니메이션과 등급 이미지를 활용한 결제 페이지 스타일
 */

/* 기본 레이아웃 */
.payment-container {
    max-width: 700px;
    margin: 50px auto;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

.payment-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.payment-container > * {
    position: relative;
    z-index: 2;
}

/* 제목 스타일 - 혁신적인 환영 메시지 */
.payment-container h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #323232 !important;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease-in-out infinite, fadeInDown 1.2s ease-out;
    position: relative;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
    letter-spacing: 1px;
    line-height: 1.4;
}

/* 혁신적인 그라데이션 흐름 애니메이션 */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 제목에 특별한 효과 추가 */
.payment-container h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 300%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0.1;
    animation: gradientFlow 3s ease-in-out infinite;
    filter: blur(20px);
}

.payment-container h2::after {
    content: '✨';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

/* 반짝이는 효과 */
@keyframes sparkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* 결제 정보 섹션 */
.payment-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    position: relative;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.payment-info::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    border-radius: 15px;
    z-index: -1;
    animation: gradientShift 3s ease-in-out infinite;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white !important;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.level-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

.level-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #007bff, #00bfff, #007bff, #0056b3);
    border-radius: 25px;
    z-index: -1;
    animation: glowRotate 3s linear infinite;
}

.level-image {
    width: 50px;
    height: auto;
    display: none;
    object-fit: cover;
}

.level-image:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.payment-info h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.payment-info p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #dee2e5;
    margin-bottom: 10px;
}

.payment-info .amount {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.payment-info .vat-notice {
    color: #bbbbba;
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

.price-breakdown {
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 3px solid #007bff;
}

.price-breakdown p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: #dee2e5;
}

.price-breakdown .original-price {
    color: #ffffff;
    font-weight: 600;
}

.price-breakdown .vat-price {
    color: #ffffff;
    font-weight: 600;
}

.price-breakdown .total-price {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.price-breakdown .final-amount {
    color: #ffffff;
    font-size: 1.2rem;
}

/* 결제 수단 섹션 */
.payment-methods {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.payment-methods h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.payment-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.payment-btn {
    padding: 20px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}

.payment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.payment-btn:hover::before {
    left: 100%;
}

.payment-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,123,255,0.4);
}

.payment-btn:active {
    transform: translateY(-2px);
}

.payment-btn.btn-hover {
    transform: scale(1.05);
}

/* 카드 결제 버튼 */
#cardPayment {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

/* 계좌이체 버튼 */
#bankTransfer {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    box-shadow: 0 8px 20px rgba(40,167,69,0.3);
}

#bankTransfer:hover {
    box-shadow: 0 15px 30px rgba(40,167,69,0.4);
}

/* 가상계좌 버튼 */
#virtualAccount {
    background: linear-gradient(45deg, #6f42c1, #5a2d91);
    box-shadow: 0 8px 20px rgba(111,66,193,0.3);
}

#virtualAccount:hover {
    box-shadow: 0 15px 30px rgba(111,66,193,0.4);
}

/* 취소 버튼 */
#cancelPayment {
    padding: 15px 40px;
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(108,117,125,0.3);
}

#cancelPayment:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108,117,125,0.4);
}

/* 문의하기 버튼 */
#moveQna {
    padding: 15px 40px;
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(108,117,125,0.3);
    margin-left: 10px;
}

#moveQna:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108,117,125,0.4);
}

/* 로딩 상태 */
.payment-container.loading {
    pointer-events: none;
}

.payment-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* 에러 메시지 */
.error-container {
    margin-bottom: 20px;
    display: none;
}

.error-message {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(220,53,69,0.3);
    animation: shake 0.5s ease-in-out;
}

.error-message i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 결제 성공 페이지 */
.payment-success-container {
    max-width: 700px;
    margin: 50px auto;
    padding: 40px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

.payment-success-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.payment-success-container > * {
    position: relative;
    z-index: 2;
}

.success-icon {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 30px;
    animation: bounceIn 1s ease-out;
}

.success-icon.animate-success {
    animation: successPulse 2s ease-in-out infinite;
}

.payment-success-container h2 {
    color: #28a745;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
    animation: fadeInDown 1s ease-out 0.3s both;
}

.payment-details {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 4px solid #28a745;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.payment-details h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.payment-details p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.payment-details .amount {
    color: #e74c3c;
    font-size: 1.8rem;
    font-weight: 700;
}

.success-message {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(212,237,218,0.5);
    animation: fadeInUp 1s ease-out 0.9s both;
}

.success-message p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.action-buttons button {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#goToMembership {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
}

#goToMembership:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,123,255,0.4);
}

#goToMain {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    color: white;
}

#goToMain:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(40,167,69,0.4);
}

/* 애니메이션 키프레임 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes successPulse {
    0% {
        transform: scale(1);
        color: #28a745;
    }
    50% {
        transform: scale(1.1);
        color: #20c997;
    }
    100% {
        transform: scale(1);
        color: #28a745;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes glowRotate {
    0% {
        background: linear-gradient(45deg, #007bff, #00bfff, #007bff, #0056b3);
        transform: rotate(0deg);
    }
    25% {
        background: linear-gradient(45deg, #00bfff, #007bff, #0056b3, #007bff);
    }
    50% {
        background: linear-gradient(45deg, #007bff, #0056b3, #007bff, #00bfff);
        transform: rotate(180deg);
    }
    75% {
        background: linear-gradient(45deg, #0056b3, #007bff, #00bfff, #007bff);
    }
    100% {
        background: linear-gradient(45deg, #007bff, #00bfff, #007bff, #0056b3);
        transform: rotate(360deg);
    }
}

/* 반응형 디자인 */
@media screen and (max-width: 1880px) and (min-width: 1790px) {
    .payment-container h2 {
        font-size: 3rem;
        letter-spacing: 1.2px;
    }
    
    .payment-container h2::after {
        font-size: 1.8rem;
        top: -18px;
        right: -18px;
    }
}

@media screen and (max-width: 1789px) and (min-width: 1371px) {
    .payment-container h2 {
        font-size: 2.8rem;
        letter-spacing: 1px;
    }
    
    .payment-container h2::after {
        font-size: 1.5rem;
        top: -15px;
        right: -15px;
    }
}

@media screen and (max-width: 1370px) and (min-width: 981px) {
    .payment-container h2 {
        font-size: 2.5rem;
        letter-spacing: 0.8px;
    }
    
    .payment-container h2::after {
        font-size: 1.3rem;
        top: -13px;
        right: -13px;
    }
}

@media screen and (max-width: 980px) {
    .payment-container,
    .payment-success-container {
        margin: 20px auto;
        padding: 20px;
        border-radius: 15px;
    }
    
    .payment-container h2,
    .payment-success-container h2 {
        font-size: 2.2rem;
        letter-spacing: 0.5px;
    }
    
    .payment-container h2::after {
        font-size: 1.2rem;
        top: -12px;
        right: -12px;
    }
    
    .payment-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .payment-container,
    .payment-success-container {
        margin: 10px auto;
        padding: 15px;
    }
    
    .payment-container h2,
    .payment-success-container h2 {
        font-size: 1.8rem;
        letter-spacing: 0.3px;
        line-height: 1.3;
    }
    
    .payment-container h2::after {
        font-size: 1rem;
        top: -10px;
        right: -10px;
    }
    
    .payment-info,
    .payment-details {
        padding: 20px;
    }
    
    .payment-btn {
        padding: 15px;
        font-size: 1rem;
    }
}

.payment-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

#cancelPayment i {
    margin-right: 8px;
}

.action-buttons button i {
    margin-right: 8px;
}

.success-icon i {
    font-size: 80px;
}

.success-message i {
    margin-right: 8px;
    color: #28a745;
}

/* 계좌이체 팝업 스타일 */
.bank-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.bank-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.bank-popup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.bank-popup.popup-show {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-header h3 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.popup-header h3 i {
    margin-right: 10px;
    color: #ffd700;
}

.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-content {
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.bank-info {
    margin-bottom: 25px;
}

.bank-details {
    background: rgba(0, 123, 255, 0.1);
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
}

.bank-details p {
    margin: 8px 0;
    font-size: 1rem;
    color: #333;
}

.bank-details strong {
    color: #007bff;
    font-weight: 600;
}

.account-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.1rem;
    background: rgba(231, 76, 60, 0.1);
    padding: 2px 8px;
    border-radius: 5px;
}

.amount-info {
    background: rgba(40, 167, 69, 0.1);
    padding: 10px;
    border-radius: 15px;
    border-left: 4px solid #28a745;
}

.amount-info p {
    margin: 8px 0;
    font-size: 1rem;
    color: #333;
}

.total-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: #28a745;
}

.vat-info {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.notice {
    margin-bottom: 20px;
}

.notice h4 {
    color: #007bff;
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.notice h4 i {
    margin-right: 8px;
    color: #007bff;
}

.notice ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.notice li::before {
    content: '•';
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.popup-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.popup-actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.copy-account-btn {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
}

.copy-account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108,117,125,0.4);
}

.copy-account-btn.copied {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    animation: successPulse 0.5s ease-out;
}

.close-popup-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
}

.close-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,123,255,0.4);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

/* 입금확인 요청 안내 팝업 스타일 */
.deposit-reminder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.deposit-reminder-overlay.show {
    opacity: 1;
    visibility: visible;
}

.deposit-reminder-popup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.deposit-reminder-popup.popup-show {
    transform: scale(1);
}

.deposit-reminder-popup .popup-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.deposit-reminder-popup .popup-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.deposit-reminder-popup .close-reminder-popup {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deposit-reminder-popup .close-reminder-popup:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.deposit-reminder-popup .popup-content {
    padding: 30px;
}

.deposit-reminder-popup .reminder-message {
    text-align: center;
    margin-bottom: 30px;
}

.deposit-reminder-popup .reminder-message p {
    color: #000000;
    margin: 10px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.deposit-reminder-popup .reminder-message i {
    margin-right: 8px;
    color: #ffd700;
}

.deposit-reminder-popup .reminder-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.deposit-reminder-popup .cancel-reminder-btn,
.deposit-reminder-popup .request-deposit-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deposit-reminder-popup .cancel-reminder-btn {
    background: linear-gradient(45deg, #646464, #646464);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.deposit-reminder-popup .cancel-reminder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.6);
}

.deposit-reminder-popup .request-deposit-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.deposit-reminder-popup .request-deposit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* 입금확인 요청 팝업 스타일 */
.deposit-request-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10003;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.deposit-request-overlay.show {
    opacity: 1;
    visibility: visible;
}

.deposit-request-popup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}


.deposit-request-popup.popup-show {
    transform: scale(1);
}

.deposit-request-popup .popup-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.deposit-request-popup .popup-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 2.3em;
    font-weight: 600;
}

.deposit-request-popup .close-deposit-popup {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deposit-request-popup .close-deposit-popup:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.form-section {
    margin-bottom: 25px;
}

.form-section h4 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.datetime-inputs {
    display: flex;
    gap: 10px;
}

.datetime-inputs input {
    flex: 1;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.notice-section {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 15px;
    margin-bottom: 25px;
    margin-top: -10px;
    padding-top: 0px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    border-left: 4px solid #ffc107;
}

.notice-section h4 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    padding-top: 10px;
}

.notice-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-section li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notice-section li::before {
    content: '⚠';
    color: #ffc107;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.deposit-request-popup .popup-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.deposit-request-popup .popup-actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cancel-deposit-btn {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
}

.cancel-deposit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108,117,125,0.4);
}

.submit-deposit-btn {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    color: white;
}

.submit-deposit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40,167,69,0.4);
}

.submit-deposit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media screen and (max-width: 980px) {

    .popup-header h3 {
        color: white;
        margin: 0;
        font-size: 2.0rem;
        font-weight: 600;
    }

    /* 폼 요소들 글자 크기 두 배 */
    label[for="depositorName"],
    label[for="depositorPhone"],
    label[for="depositDate"],
    label[for="depositAmount"],
    label[for="depositMemo"] {
        font-size: 2.0rem !important;
        font-weight: 600;
    }
    
    /* 입력 필드들 글자 크기 두 배 */
    #depositorName,
    #depositorPhone,
    #depositDate,
    #depositTime,
    #depositAmount,
    #depositMemo {
        font-size: 2.0rem !important;
        padding: 15px 20px !important;
    }
    
    /* 폼 도움말 텍스트 크기 두 배 */
    .form-help {
        font-size: 1.8rem !important;
    }
    
    /* 안내사항 제목과 내용 크기 두 배 */
    .notice-section h4 {
        font-size: 2.2rem !important;
    }
    
    .notice-section li {
        font-size: 1.8rem !important;
        padding: 10px 0 !important;
        padding-left: 25px !important;
    }
    
    /* 버튼들 글자 크기 두 배 */
    .cancel-deposit-btn,
    .submit-deposit-btn {
        font-size: 2.0rem !important;
        padding: 15px 30px !important;
    }

    .close-popup {
        background: none;
        border: none;
        color: white;
        font-size: 3.2rem;
        cursor: pointer;
        padding: 5px;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .bank-details p {
        margin: 8px 0;
        font-size: 2.2rem;
        color: #333;
    }

    .amount-info p {
        margin: 8px 0;
        font-size: 2.2rem;
        color: #333;
    }

    .account-number {
        font-family: 'Courier New', monospace;
        font-weight: bold;
        color: #e74c3c;
        font-size: 2.2rem;
        background: rgba(231, 76, 60, 0.1);
        padding: 2px 8px;
        border-radius: 5px;
    }

    .total-amount {
        font-size: 2.2rem;
        font-weight: bold;
        color: #28a745;
    }

    .bank-popup {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        max-width: 730px;
        width: 100%;
        max-height: 130vh;
        overflow-y: auto;
        transform: scale(0.8);
        transition: transform 0.3s ease;
    }

    .popup-actions button {
        padding: 12px 25px;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        font-size: 2.0rem;
        font-weight: 600;
        transition: all 0.3s ease;
        min-width: 140px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }



    .deposit-reminder-popup {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 20px;
        padding: 0;
        max-width: 700px;
        width: 90%;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        transform: scale(0.8);
        transition: all 0.3s ease;
    }

    .deposit-reminder-popup .popup-header h3 {
        color: #ffffff;
        margin: 0;
        font-size: 2.0em;
        font-weight: 600;
    }

    .deposit-reminder-popup .close-reminder-popup {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: #ffffff;
        width: 50px;
        height: 50px;
        font-size: 2.8rem;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .deposit-reminder-popup .reminder-message p {
        color: #000000;
        margin: 10px 0;
        font-size: 1.7em;
        line-height: 1.6;
    }

    .deposit-reminder-popup .cancel-reminder-btn,
    .deposit-reminder-popup .request-deposit-btn {
        padding: 12px 25px;
        border: none;
        border-radius: 25px;
        font-size: 2.2em;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }


    .payment-btn {
        padding: 25px;
        background: linear-gradient(45deg, #007bff, #0056b3);
        color: white;
        border: none;
        border-radius: 15px;
        cursor: pointer;
        font-size: 2.0rem;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0,123,255,0.3);
    }


    .fa-credit-card {
        font-size: 28px !important;  /* 원하는 크기 */
    }
    
    /* 더 구체적인 선택자 추가 */
    i.fa.fa-credit-card {
        font-size: 28px !important;
    }
    
    .payment-method i.fa-credit-card {
        font-size: 28px !important;
    }


    .fa-university {
        font-size: 28px !important;  /* 원하는 크기 */
    }
    
    /* 더 구체적인 선택자 추가 */
    i.fa.fa-university {
        font-size: 28px !important;
    }
    
    .payment-method i.fa-university {
        font-size: 28px !important;
    }
    
    
    .fa-times {
        font-size: 28px !important;  /* 원하는 크기 */
    }
    
    /* 더 구체적인 선택자 추가 */
    i.fa.fa-times {
        font-size: 28px !important;
    }
    
    .payment-method i.fa-times {
        font-size: 28px !important;
    }
    
    
    .fa-question-circle {
        font-size: 28px !important;  /* 원하는 크기 */
    }
    
    /* 더 구체적인 선택자 추가 */
    i.fa.fa-question-circle {
        font-size: 28px !important;
    }
    
    .payment-method i.fa-question-circle {
        font-size: 28px !important;
    }


    /* 취소 버튼 */
    #cancelPayment {
        padding: 15px 40px;
        background: linear-gradient(45deg, #6c757d, #5a6268);
        color: white;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        font-size: 2.0rem;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(108,117,125,0.3);
    }

    /* 문의하기 버튼 */
    #moveQna {
        padding: 15px 40px;
        background: linear-gradient(45deg, #6c757d, #5a6268);
        color: white;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        font-size: 2.0rem;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(108,117,125,0.3);
    }


    .level-image {
        width: 70px;
        height: auto;
        display: none;
        object-fit: cover;
    }

    /* 결제 정보 섹션 */
    .payment-info {
        background: rgba(255, 255, 255, 0.9);
        padding: 40px;
        border-radius: 15px;
        margin-bottom: 40px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-left: 4px solid #007bff;
        position: relative;
        animation: fadeInUp 1s ease-out 0.3s both;
    }

    .payment-info h3 {
        color: #ffffff;
        margin: 25px;
        font-size: 2.5rem;
        font-weight: 600;
    }

    .payment-info p {
        font-size: 2.5rem;
        font-weight: 600;
        color: #dee2e5;
        margin-bottom: 10px;
    }

    .payment-info .amount {
        color: #ffffff;
        font-size: 2.7rem;
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}


/* 준비중 팝업 스타일 */
.preparing-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.preparing-popup {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.preparing-popup .popup-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.preparing-popup .popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.preparing-popup .popup-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.preparing-popup .popup-header h3 i {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.preparing-popup .close-preparing-popup {
    background: none;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.preparing-popup .close-preparing-popup:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.preparing-popup .popup-content {
    flex: 1;
    padding: 40px 30px;
    text-align: center;
}

.preparing-icon {
    margin-bottom: 25px;
}

.preparing-icon i {
    font-size: 4em;
    color: #ff6b6b;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.preparing-message {
    margin-bottom: 30px;
}

.preparing-message h4 {
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.preparing-message p {
    color: #6c757d;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 8px;
}

.preparing-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
}

.preparing-details .detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.preparing-details .detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.preparing-details .detail-item i {
    color: #ff6b6b;
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

.preparing-details .detail-item span {
    color: #495057;
    font-size: 1em;
    font-weight: 500;
}

.preparing-popup .popup-footer {
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
}

.preparing-popup .btn-primary {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    min-width: 150px;
    justify-content: center;
}

.preparing-popup .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

.preparing-popup .btn-primary:active {
    transform: translateY(0);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .preparing-popup {
        margin: 10px;
        max-height: 95vh;
    }
    
    .preparing-popup .popup-header {
        padding: 20px 25px;
    }
    
    .preparing-popup .popup-header h3 {
        font-size: 1.3em;
    }
    
    .preparing-popup .popup-content {
        padding: 30px 25px;
    }
    
    .preparing-icon i {
        font-size: 3em;
    }
    
    .preparing-message h4 {
        font-size: 1.2em;
    }
    
    .preparing-message p {
        font-size: 1em;
    }
    
    .preparing-details {
        padding: 20px;
    }
    
    .preparing-popup .popup-footer {
        padding: 20px 25px;
    }
    
    .preparing-popup .btn-primary {
        padding: 12px 30px;
        font-size: 1em;
    }
}