:root { --brand-color: #007bff; --sub-color: #fd7e14; }
body, html { margin: 0; padding: 0; width: 100%; min-height: 100vh; font-family: 'Pretendard', sans-serif; background: #fff; color: #333; overflow-x: hidden; }
.landing-wrapper { position: relative; width: 100%; min-height: 100vh; display: flex; flex-direction: column; align-items: center; z-index: 2; transition: 0.3s; color: white; padding-bottom: 10px; box-sizing: border-box; }
.landing-wrapper.clean-white-mode { background-color: #fff !important; color: #333 !important; }
.landing-wrapper.clean-white-mode footer { color: #888; border-top: none; }

#bg-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 1; }
#bg-wrapper::after { display: none; } 

#app-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; z-index: 999999; display: flex; justify-content: center; align-items: center; transition: opacity 0.3s; }
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid var(--brand-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.content-container { position: relative; z-index: 2; width: 100%; max-width: 1400px; padding: 0 20px 0 20px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; text-align: center; }

.logo-container { width: 100%; display: flex; justify-content: center; align-items: center; padding: 15px 0 10px 0; margin-bottom: 15px; }
.top-logo-img { max-width: 240px; max-height: 40px; width: 100%; object-fit: contain; display: none; }

.event-info { 
    width: 100%; display: flex; flex-direction: column; align-items: center; 
    opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
}
.event-info h2 { font-size: 1.1em; font-weight: 400; margin-bottom: 10px; letter-spacing: 2px; color: #ddd; transition: color 0.3s; }
.landing-wrapper.clean-white-mode .event-info h2 { color: #555; }

.btn-group { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; margin-bottom: 50px; width: 100%; align-items: center; }
.main-btn { width: 100%; max-width: 260px; min-width: 240px !important; flex-shrink: 0; padding: 14px 0; border-radius: 8px; border: none; font-size: 1.15em; font-weight: bold; cursor: pointer; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 4px 10px rgba(0,0,0,0.1); box-sizing: border-box !important; }
.btn-reg { background-color: var(--brand-color); color: white; } 
.btn-reg:hover { filter: brightness(1.1); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.btn-watch { background-color: var(--brand-color); color: white; } 
.btn-watch:hover { filter: brightness(1.1); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

#btn-offline-qa { display: none; position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); width: max-content; padding: 16px 45px; border-radius: 40px; background: var(--brand-color); color: white; font-weight: bold; font-size: 1.15em; border: none; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.25); z-index: 9000; transition: transform 0.2s, filter 0.2s; }
#btn-offline-qa:hover { filter: brightness(0.85); transform: translate(-50%, -3px); }

#invitation-container { width: 100%; max-width: 1000px; margin: 0 auto 20px; display: none; text-align: center; }
#invitation-img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); display: block; width: 100%; background-color: #fff; }

.speakers-section { width: 100%; max-width: 1000px; display: flex; flex-direction: column; gap: 20px; align-items: stretch; margin: 0 auto; text-align: left; }
.speaker-card { background: rgba(255, 255, 255, 0.95); border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; display: flex; gap: 20px; align-items: flex-start; box-shadow: 0 4px 15px rgba(0,0,0,0.08); width: 100%; box-sizing: border-box; }
.speaker-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; background: #eee; flex-shrink: 0; border: 2px solid #fff; }
.speaker-info { flex: 1; color: #333; overflow: hidden; word-break: keep-all; }
.speaker-name { font-size: 1.25em; font-weight: 800; margin: 0 0 4px 0; color: #111; display: flex; align-items: center; gap: 8px; }
.speaker-role-badge { font-size: 0.7em; background: var(--brand-color); color: white; padding: 2px 7px; border-radius: 4px; font-weight: bold; }
.chair-badge { background: #495057 !important; }
.speaker-affiliation { font-size: 0.9em; color: #4a5568; margin: 0 0 10px 0; font-weight: 700; }
.speaker-cv { font-size: 0.9em; color: #4a5568; line-height: 1.5; margin: 0; }

footer { width: 100%; text-align: center; color: #aaa; font-size: 0.57em; padding: 20px 0 10px; z-index: 2; line-height: 1.6; border-top: none; margin-top: 15px; }
.footer-address { display: block; font-size: 1.1em; font-weight: normal; margin-bottom: 4px; color: #ccc; }
.landing-wrapper.clean-white-mode .footer-address { color: #666; }
.footer-copyright { display: block; font-size: 0.95em; color: #777; }
.landing-wrapper.clean-white-mode .footer-copyright { color: #aaa; }
#footer-logo-img { max-height: 30px; display: none; margin-bottom: 10px; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 10000; display: none; justify-content: center; align-items: center; padding: 10px; box-sizing: border-box; }
.modal-box { background: white; color: #333; padding: 30px; border-radius: 12px; width: 100%; max-width: 450px; position: relative; text-align: center; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; }
.criteria-toggle-btn:hover { background: #cbd5e1 !important; color: var(--brand-color) !important; }
.criteria-toggle-btn:active { transform: scale(0.98); }
.modal-box h3 { margin-top: 0; font-size: 1.3em; margin-bottom: 5px; color: #111; }
.modal-desc { font-size: 0.85em; color: #666; margin-bottom: 15px; }
.modal-box input[type="text"], .modal-box input[type="tel"], .modal-box input[type="email"], .modal-box select { 
    width: 100%; 
    padding: 13px 16px; 
    margin: 8px 0; 
    border: 1px solid #cbd5e1; 
    border-radius: 8px; 
    box-sizing: border-box; 
    font-size: 0.95em; 
    outline: none; 
    background: #fff; 
    font-family: inherit; 
    transition: all 0.2s ease-in-out;
}
.modal-box select { 
    height: 48px; 
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}
.modal-box input:focus, .modal-box select:focus { 
    border-color: var(--brand-color); 
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); 
}
.modal-box button { width: 100%; padding: 14px; background: var(--brand-color); color: white; border: none; border-radius: 6px; font-size: 1em; font-weight: bold; cursor: pointer; margin-top: 10px; }
.close-modal { position: absolute; right: 15px; top: 15px; cursor: pointer; font-size: 1.2em; color: #888; font-weight: bold; }
.helper-text { 
    font-size: 0.82em; 
    color: #475569; 
    margin-top: 18px; 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    padding: 11px 14px; 
    border-radius: 8px; 
    line-height: 1.45; 
    text-align: center;
    word-break: keep-all;
}

.terms-box { background: #f8f9fa; border: 1px solid #ddd; border-radius: 6px; padding: 15px; font-size: 0.85em; color: #444; text-align: left; height: 120px; overflow-y: auto; margin: 15px 0 10px; line-height: 1.6; white-space: pre-wrap; }
.terms-box h4 { margin: 0 0 8px 0; font-size: 1.1em; color: #333; }
.checkbox-label { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.9em; font-weight: bold; color: #111; margin-bottom: 15px; cursor: pointer; }
.checkbox-label input { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--brand-color); }
.view-terms-link, .view-refund-terms-link { color: var(--brand-color); text-decoration: underline; cursor: pointer; font-size: 0.9em; font-weight: bold; margin-left: 5px; }

.qa-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background: rgba(0,0,0,0.7); z-index: 10000; justify-content: center; align-items: center; }
.qa-overlay.active { display: flex; }
.qa-section { width: 100%; height: 100dvh; background: #ffffff; display: flex; flex-direction: column; position: relative; overscroll-behavior: contain; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }

.qa-header { padding: 15px; background: #f8f9fa; font-weight: bold; border-bottom: 2px solid #eee; text-align: center; color: #333; font-size: 1.1em; position: relative; }
.close-qa-btn { position: absolute; right: 15px; top: 15px; cursor: pointer; color: #888; font-weight: bold; font-size: 1.1em; }
.qa-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background: #ffffff; overscroll-behavior: contain; }
.bubble-container { display: flex; flex-direction: column; align-items: flex-start; }
.bubble-content { background: #f1f3f5; color: #333; padding: 10px 14px; border-radius: 15px; border-top-left-radius: 3px; font-size: 0.95em; max-width: 85%; line-height: 1.4; border: 1px solid #e9ecef; white-space: pre-wrap; }
.bubble-container.my-msg { align-items: flex-end; }
.bubble-container.my-msg .bubble-content { background: var(--brand-color); color: white; border-top-left-radius: 15px; border-top-right-radius: 3px; border: none; }
.bubble-container.admin-msg { align-items: flex-start !important; }
.bubble-container.admin-msg .bubble-content { background: #555; color: white; border-top-left-radius: 3px; border-top-right-radius: 15px; border: none; }
.admin-mark { font-size: 0.75em; color: var(--brand-color); margin-bottom: 5px; font-weight: bold; padding-left: 2px; }
.sent-mark { font-size: 0.75em; color: #aaa; margin-top: 5px; padding-right: 5px; }
.qa-input-area { padding: 15px; background: #f8f9fa; border-top: 1px solid #eee; margin-bottom: env(safe-area-inset-bottom, 0); box-sizing: border-box; width: 100%; display: block; }
.qa-input-box { display: flex; flex-direction: column; background: #ffffff; border: 1px solid #ccc; border-radius: 12px; padding: 8px 10px; transition: 0.2s; width: 100%; position: relative; box-sizing: border-box; }
.qa-input-box:focus-within { border-color: var(--brand-color); box-shadow: 0 0 5px rgba(0,0,0,0.05); }
.qa-input-box textarea { border: none !important; outline: none !important; width: 100%; resize: none; font-family: inherit; height: 74px; line-height: 1.4; background: transparent; color: #333; padding: 4px 65px 28px 4px; margin-bottom: 0; box-sizing: border-box; }
.qa-input-box .btn-send-qa { position: absolute; bottom: 8px; right: 10px; padding: 6px 14px; background: var(--brand-color); color: white; border: none; border-radius: 15px; cursor: pointer; font-weight: bold; font-size: 0.85em; transition: 0.2s; height: auto; display: inline-block; z-index: 5; }
.qa-input-box .btn-send-qa:hover { filter: brightness(0.9); }

@media (min-width: 600px) { .qa-section { max-width: 480px; height: 85dvh; max-height: 850px; border-radius: 20px; overflow: hidden; } }

@media (max-width: 768px) { 
    .btn-group { flex-direction: column; width: 100%; align-items: center; } .main-btn { width: 100%; max-width: 260px; min-width: 240px !important; } 
    .speaker-card { flex-direction: column; text-align: left; padding: 20px; align-items: flex-start; } .speaker-photo { width: 80px; height: 80px; }
    #invitation-container { margin-bottom: 20px; }
    .modal-box { max-height: 88vh; padding: 20px 15px; }
    .logo-container { padding: 15px 0 10px 0; }
    .content-container { padding-top: 0; } 
}
@media (min-width: 769px) { .logo-container { justify-content: center; } }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.logo-container { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
#invitation-container { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards; }
.speakers-section { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s forwards; }

.modal-box .input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-bottom: 14px;
}
.modal-box .input-wrapper label {
    font-size: 0.88em;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    text-align: left;
}
.modal-box .input-wrapper label .req-star {
    color: #ef4444;
    font-weight: bold;
    margin-left: 4px;
}
.modal-box .input-wrapper input[type="text"],
.modal-box .input-wrapper input[type="tel"],
.modal-box .input-wrapper input[type="email"],
.modal-box .input-wrapper select {
    margin: 0;
}

/* 드래그 방지 설정 */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
input, textarea, .allow-select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 세련된 모달 닫기 버튼 스타일 */
.close-modal, .close-survey, .close-qa-btn, #close-mobile-qa {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0 !important; /* 기존의 투박한 'X' 텍스트 제거 */
    z-index: 10;
    border: 1px solid #e2e8f0;
}

.close-modal::before, .close-modal::after,
.close-survey::before, .close-survey::after,
.close-qa-btn::before, .close-qa-btn::after,
#close-mobile-qa::before, #close-mobile-qa::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background-color: #64748b;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.close-modal::before, .close-survey::before, .close-qa-btn::before, #close-mobile-qa::before {
    transform: rotate(45deg);
}
.close-modal::after, .close-survey::after, .close-qa-btn::after, #close-mobile-qa::after {
    transform: rotate(-45deg);
}

.close-modal:hover, .close-survey:hover, .close-qa-btn:hover, #close-mobile-qa:hover {
    background-color: #e2e8f0;
    transform: rotate(90deg);
}

.close-modal:hover::before, .close-modal:hover::after,
.close-survey:hover::before, .close-survey:hover::after,
.close-qa-btn:hover::before, .close-qa-btn:hover::after,
#close-mobile-qa:hover::before, #close-mobile-qa:hover::after {
    background-color: #0f172a;
}

/* Bank Grid Selector styles */
.bank-grid::-webkit-scrollbar {
    width: 6px;
}
.bank-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.bank-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.bank-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.bank-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    outline: none;
}

.bank-item:hover {
    border-color: var(--brand-color) !important;
    background: #f8fafc !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bank-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.bank-logo-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bank-name {
    font-size: 0.74em;
    font-weight: bold;
    color: #475569;
    text-align: center;
    line-height: 1.2;
    word-break: break-all;
}

/* Bank/Securities selector tabs styling */
.bank-tabs-container {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}
.bank-tab-btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    font-size: 0.95em;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    outline: none;
    text-align: center;
    margin-bottom: -2px; /* Align with container bottom border */
    box-sizing: border-box;
}
.bank-tab-btn:hover {
    color: #64748b;
}
.bank-tab-btn.active {
    color: var(--brand-color);
    border-bottom: 2px solid var(--brand-color);
}
.bank-tab-btn.active:hover {
    color: var(--brand-color);
}

/* Modal sizing & padding safety overrides */
.modal-overlay, .modal-overlay * {
    box-sizing: border-box !important;
}