/* 기본 색상 변수 설정 */
:root {
    --bg-color: #FFFDF9;       
    --title-color: #5D5D5D;    
    --teacher-btn: #A2D2FF;    
    --student-btn: #FFC8DD;    
    --shadow-color: rgba(0, 0, 0, 0.08); 
    --primary-color: #F8E71C; /* 대시보드 상단 바 색상 */
}

/* 전체 페이지 설정 */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; /* 가로 중앙 정렬 */
    background-color: var(--bg-color);
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--title-color);
}

/* --- 0. 역할 선택 화면 디자인 (원래 코드 복원) --- */
#role-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* 화면 세로 중앙에 오도록 꽉 채움 */
}

.main-title {
    color: var(--title-color);
    font-size: 4rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

.button-container {
    display: flex;
    gap: 3rem; 
}

/* 메인 역할 버튼 */
.btn {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 240px;
    border-radius: 40px; 
    background-color: white;
    border: 6px solid white; 
    box-shadow: 0 15px 25px var(--shadow-color); 
    transition: all 0.3s ease; 
    cursor: pointer;
}
.btn.teacher { background-color: var(--teacher-btn); }
.btn.student { background-color: var(--student-btn); }
.btn .icon { font-size: 5rem; margin-bottom: 15px; }
.btn .text { color: #4A4A4A; font-size: 1.8rem; }
.btn:hover {
    transform: translateY(-15px); 
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.12); 
}

/* --- 1 & 2. 로그인 및 대시보드 화면 디자인 --- */
.top-header {
    width: 100%;
    background-color: var(--primary-color);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
.logout-btn {
    background: white; border: none; padding: 8px 15px;
    border-radius: 5px; cursor: pointer; font-family: 'Jua', sans-serif; font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin-top: 50px;
    text-align: center;
    flex-grow: 1;
}

/* 로그인 화면 (🌟 style.css 간섭 완벽 차단) */
#login-screen {
    display: flex !important; 
    flex-direction: column !important; 
    justify-content: flex-start !important; /* 중앙이 아닌 위쪽 정렬 */
    align-items: center !important;
    height: 100vh !important; 
    width: 100% !important; 
    max-width: none !important;    /* 교사용 400px 제한 박스 해제 */
    margin: 0 !important;          /* 교사용 마진 해제 */
    background-color: #f4f7f6 !important; /* 전체 배경색 통일 */
    padding-top: 15vh !important;  /* 위에서부터 15% 띄움 (원하는 만큼 조절 가능) */
    box-sizing: border-box !important;
    border-radius: 0 !important;   /* 교사용 둥근 테두리 해제 */
    box-shadow: none !important;   /* 교사용 그림자 해제 */
}
.input-group { margin-bottom: 15px; }
.input-group input {
    width: 90%; padding: 15px; font-size: 16px; font-family: 'Jua', sans-serif;
    border: 2px solid #eee; border-radius: 15px; outline: none;
}
.input-group input:focus { border-color: var(--teacher-btn); }

/* 로그인 화면 전용 작은 버튼들 */
.action-btn {
    width: 100%; padding: 15px; font-size: 18px; font-family: 'Jua', sans-serif;
    border: none; border-radius: 15px; cursor: pointer; margin-top: 10px; transition: 0.2s;
}
.btn-login { background-color: var(--teacher-btn); color: white; }
.btn-login:hover { background-color: #8bbce6; }
.btn-signup { background-color: #f0f0f0; color: #555; }
.btn-signup:hover { background-color: #e0e0e0; }

.class-grid {
    display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
    margin-top: 30px;
}
.class-card {
    background: white; border: 3px dashed #ccc; border-radius: 30px;
    width: 200px; height: 200px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; cursor: pointer;
    transition: 0.2s;
}
.class-card:hover { border-color: var(--teacher-btn); background-color: #fafbfc; transform: translateY(-5px); }
.class-card.active { border-style: solid; box-shadow: 0 10px 20px var(--shadow-color); border-color: transparent; }
.class-card .icon { font-size: 50px; margin-bottom: 10px; }
.class-card h3 { margin: 0; color: #555; font-size: 20px;}
.add-icon {
    background: #ccc; color: white; border-radius: 50%;
    width: 50px; height: 50px; display: flex; align-items: center;
    justify-content: center; font-size: 30px; font-weight: bold; margin-bottom: 15px;
}

/* --- 학급 카드 내 3점 메뉴 스타일 --- */
.class-card {
    position: relative; /* 3점 메뉴의 기준점이 되도록 설정 */
}
.menu-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ccc;
    transition: 0.2s;
}
.menu-btn:hover { color: #555; }

.dropdown-menu {
    position: absolute;
    top: 45px;
    right: 10px;
    background: white;
    border: 2px solid #eee;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    display: none; /* 처음엔 숨김 */
    flex-direction: column;
    z-index: 10;
    overflow: hidden;
}
.dropdown-menu button {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Jua', sans-serif;
    font-size: 16px;
    text-align: left;
    color: #555;
}
.dropdown-menu button:hover { background: #f4f7f6; }
.dropdown-menu button.delete { color: #e74c3c; border-top: 1px solid #eee; }

/* --- 학급 수정 팝업창(모달) 스타일 --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center; align-items: center; z-index: 100;
}
.modal-content {
    background: white; padding: 30px; border-radius: 25px; 
    width: 300px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-content input {
    width: 90%; padding: 15px; margin-bottom: 20px; border-radius: 15px;
    border: 2px solid #eee; font-family: 'Jua'; font-size: 16px; outline: none;
}
.modal-content input:focus { border-color: var(--teacher-btn); }
.icon-selector { 
    display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; 
    font-size: 28px; cursor: pointer; 
}
.icon-selector span { 
    padding: 10px; border-radius: 15px; border: 2px solid transparent; transition: 0.2s;
}
.icon-selector span:hover { background: #f4f7f6; }
.icon-selector span.selected { border-color: var(--teacher-btn); background: #f0f8ff; }

/* --- 🌟 학급 설정 화면 전용 스타일 --- */
.tabs { display: flex; border-bottom: 3px solid #eee; margin-top: 20px; }
.tab { 
    padding: 15px 30px; font-size: 20px; cursor: pointer; color: #888; 
    background: #f9f9f9; border-radius: 15px 15px 0 0; margin-right: 5px;
}
.tab.active { background: white; color: #555; border: 3px solid #eee; border-bottom: 3px solid white; margin-bottom: -3px; font-weight: bold; }
.tab-content-area { background: white; border: 3px solid #eee; border-top: none; padding: 30px; border-radius: 0 15px 15px 15px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* 탭2: 학생 정보 좌우 패널 분할 */
.left-panel { width: 250px; background: #f4f7f6; padding: 20px; border-radius: 10px; }
.right-panel { flex-grow: 1; padding: 0 20px; }
#studentNamesInput { 
    width: 100%; height: 200px; padding: 10px; box-sizing: border-box; 
    border: 1px solid #ccc; border-radius: 5px; font-family: sans-serif; margin-bottom: 15px; resize: none;
}

/* 학생 카드 그리드 (이미지 3 참고) */
.student-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.student-item { 
    width: 100px; text-align: center; background: white; border: 1px solid #eee; 
    border-radius: 10px; padding: 10px; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.student-item .del-btn { 
    position: absolute; top: 5px; right: 5px; background: #ff4757; color: white; 
    border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 12px;
}
.student-item .avatar { font-size: 40px; margin-bottom: 5px; }
.student-item .name { font-size: 14px; color: #555; }

/* 탭3: 쑥쑥 카드 서브탭 및 그리드 */
.sub-tabs { display: flex; gap: 10px; border-bottom: 2px solid #ddd; padding-bottom: 10px; }
.sub-tab { padding: 10px 20px; border-radius: 5px; cursor: pointer; background: white; border: 1px solid #ccc; }
.sub-tab.active { background: #3b82f6; color: white; border-color: #3b82f6; }

.card-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.grow-card { 
    width: 140px; background: #3b82f6; color: white; border-radius: 10px; padding: 15px; 
    text-align: center; position: relative; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.grow-card.scold { background: #ef4444; }
.grow-card .icon { background: white; border-radius: 50%; width: 40px; height: 40px; display: inline-flex; justify-content: center; align-items: center; font-size: 20px; margin-bottom: 10px; }
.grow-card .text { font-size: 14px; word-break: keep-all; }
.grow-card .del-btn { position: absolute; top: 5px; right: 5px; background: rgba(255,255,255,0.3); border: none; color: white; border-radius: 50%; cursor: pointer; }

/* --- 🌟 4. 쑥쑥보드 전용 스타일 --- */
.board-grid {
    display: grid; /* flex 대신 grid를 사용하여 정확히 8칸 생성 */
    grid-template-columns: repeat(8, 1fr); /* 🌟 한 줄에 정확히 8명 배치 */
    gap: 15px;
    justify-items: start; /* 🌟 왼쪽 정렬 */
}
.board-student-card {
    background: white; 
    border-radius: 20px; 
    width: 100%;
    max-width: 130px; 
    padding: 12px 10px; /* 🌟 위아래 여백 줄임 (기존 20px -> 12px) */
    text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative; 
    cursor: pointer; 
    transition: 0.3s;
    border: 3px solid transparent;
}
.board-student-card:hover {
    transform: translateY(-8px);
    border-color: #00bcd4;
    box-shadow: 0 10px 20px rgba(0,188,212,0.2);
}
.board-student-card .avatar { font-size: 60px; margin-bottom: 10px; }

/* 레벨과 골드 뱃지 */
.board-student-card .stats { 
    display: flex; 
    justify-content: space-evenly; 
    font-size: 14px; /* 🌟 글자 크기 살짝 줄임 (기존 16px -> 14px) */
    margin-bottom: 6px; /* 🌟 아래 여백 줄임 (기존 15px -> 6px) */
    font-weight: bold; 
}
.board-student-card .exp-badge { color: #3b82f6; } 
.board-student-card .gold-badge { color: #f59e0b; }

/* 이름 칸 여백 축소 */
.board-student-card .name { 
    font-size: 18px; /* 🌟 글자 크기 살짝 줄임 (기존 18px -> 15px) */
    font-weight: bold;
    color: #444; 
    border-top: 2px dashed #eee; 
    padding-top: 10px; /* 🌟 위쪽 선과의 간격 줄임 (기존 15px -> 8px) */
}

/* 설정 탭의 카드 정보 표시 추가용 */
.grow-card .card-stats {
    font-size: 12px; background: rgba(255,255,255,0.2); margin-top: 10px; padding: 5px; border-radius: 5px;
}

/* --- 🌟 학생 선택 효과 및 버튼 스타일 --- */
/* 선택되었을 때 V 마크 */
.board-student-card.selected {
    border-color: #F8E71C;
    background-color: #fffff0;
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(248, 231, 28, 0.3);
}
.board-student-card .check-icon {
    position: absolute; top: -10px; right: -10px;
    background: #F8E71C; color: #555; border-radius: 50%;
    width: 30px; height: 30px; display: flex; justify-content: center; align-items: center;
    font-weight: bold; font-size: 18px; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0; transition: 0.2s; z-index: 5;
}
.board-student-card.selected .check-icon { opacity: 1; }
/* --- 🌟 학생 선택 효과 및 액션 바 버튼 스타일 --- */
.board-action-btn {
    padding: 10px 20px; 
    font-family: 'Jua'; 
    font-size: 18px; 
    border-radius: 25px;
    border: none; 
    cursor: pointer; 
    transition: 0.2s; 
    background: #f0f0f0; 
    color: #555;
    white-space: nowrap; /* 🌟 핵심: 창이 좁아져도 절대 줄바꿈 금지! */
}

/* 전체선택, 선택해제 버튼 전용 스타일 (크기 축소) */
.board-action-btn.small-btn {
    font-size: 15px;
    padding: 10px 15px;
}

.board-action-btn:hover:not(:disabled) { background: #e0e0e0; }
.board-action-btn.praise { background: #3b82f6; color: white; }
.board-action-btn.praise:hover:not(:disabled) { background: #2563eb; }
.board-action-btn.scold { background: #ef4444; color: white; }
.board-action-btn.scold:hover:not(:disabled) { background: #dc2626; }
.board-action-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 설정 탭의 카드 수정(연필) 버튼 */
.grow-card .edit-btn-small {
    position: absolute; top: 5px; right: 30px; background: rgba(255,255,255,0.4); 
    border: none; color: white; border-radius: 50%; cursor: pointer; 
    width: 22px; height: 22px; font-size: 12px;
}

/* --- 🌟 플로팅 알림창 (토스트) 스타일 --- */
.toast {
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    font-family: 'Jua', sans-serif;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-out forwards;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast.success { background-color: #2ecc71; } /* 성공은 초록색 */
.toast.error { background-color: #e74c3c; }   /* 에러는 빨간색 */
.toast.info { background-color: #3498db; }    /* 일반은 파란색 */

/* 내려오고 올라가는 애니메이션 */
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-20px); opacity: 0; }
}

/* --- 🌟 쑥쑥기록 리스트 디자인 --- */
.history-item {
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-left: 6px solid #3b82f6; /* 으쓱(파랑) */
    transition: 0.2s;
}
.history-item:hover { transform: translateX(5px); }
.history-item.scold { border-left-color: #ef4444; } /* 머쓱(빨강) */

.history-info {
    display: flex; align-items: center; gap: 20px; font-size: 16px; width: 100%;
}
.history-time { color: #888; font-size: 14px; width: 130px; }

/* --- 🌟 쑥쑥보드 사이드바 및 메인 레이아웃 --- */
.board-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #2c3e50; /* 다크 네이비 톤 */
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.sidebar-menu-item {
    padding: 15px 30px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
    color: #bdc3c7;
}

.sidebar-menu-item:hover {
    background: #34495e;
    color: white;
}

.sidebar-menu-item.active {
    background: #F8E71C; /* 활성화된 메뉴는 노란색 강조 */
    color: #333;
    font-weight: bold;
}

.board-main {
    flex-grow: 1;
    padding: 30px;
    position: relative;
    overflow-y: auto; /* 내용이 많으면 스크롤 생성 */
}

/* --- 🌟 경험치 게이지바 디자인 --- */
.exp-gauge-bg {
    width: 100%;
    height: 4px; /* 🌟 두께 반으로 줄임 (기존 8px -> 4px) */
    background: #eee;
    border-radius: 4px;
    margin-top: 0px; 
    margin-bottom: 8px; /* 🌟 아바타와의 간격 조절 */
    overflow: hidden;
    position: relative;
}
.exp-gauge-fill {
    height: 100%;
    background: #3b82f6; 
    border-radius: 4px;
    transition: width 0.4s ease-out; 
}

/* --- 🌟 우리 반 랭킹(명예의 전당) 스타일 --- */
.ranking-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid #00bcd4;
}
.ranking-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px dashed #eee;
    font-size: 16px;
    transition: 0.2s;
}
.ranking-item:hover {
    background: #f9fbf9;
    transform: translateX(5px);
}
.ranking-item:last-child {
    border-bottom: none;
}
.ranking-item.rank-1 { font-weight: bold; color: #d97706; background: #fffbeb; border-radius: 8px; border:none; margin-bottom: 5px;}
.ranking-item.rank-2 { font-weight: bold; color: #4b5563; background: #f3f4f6; border-radius: 8px; border:none; margin-bottom: 5px;}

/* 🌟 로그인 하얀색 박스 디자인 (위아래 여백을 대폭 줄임) */
.login-box {
    background: white; 
    padding: 30px 35px; /* 위아래 여백을 30px로 축소 */
    border-radius: 20px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-align: center; 
    width: 90%; 
    max-width: 350px; /* 기존 400px보다 약간 더 슬림하게 */
}

/* 박스 내부 요소 디자인 */
.login-box .icon { font-size: 45px; margin-bottom: 5px; }
.login-box h2 { color: #333; margin-bottom: 15px; font-size: 20px; }

.login-box input {
    width: 100%; 
    padding: 12px; 
    margin-bottom: 12px; 
    border: 2px solid #eee; 
    border-radius: 10px; 
    box-sizing: border-box; 
    font-size: 16px; 
    font-family: 'Jua', sans-serif; 
    text-align: center;
}

.login-box input:focus { border-color: #3b82f6; outline: none; }

.login-box button {
    width: 100%; 
    padding: 12px; 
    background: #3b82f6; 
    color: white; 
    border: none; 
    border-radius: 10px; 
    font-size: 18px; 
    font-family: 'Jua', sans-serif; 
    cursor: pointer; 
    transition: 0.2s;
}

.login-box button:hover { background: #2563eb; }

#teacher-login-screen {
    background: white; 
    padding: 40px; 
    border-radius: 30px;
    box-shadow: 0 10px 20px var(--shadow-color);
    width: 90%;
    max-width: 400px; 
    margin: 50px auto; /* 가운데 정렬 */
    box-sizing: border-box;
}

/* =========================================
   🌟 교사용 쿠폰 관리 전용 스타일 (이미지 기반)
   ========================================= */
.t-coupon-row { display: flex; padding: 20px 10px; border-bottom: 1px solid #f0f0f0; align-items: center; }
.t-student-info { display: flex; align-items: center; gap: 15px; width: 220px; flex-shrink: 0; }
.t-student-avatar { width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; font-size: 30px; background: #e0f2fe; border-radius: 50%; }
.t-student-name { font-size: 18px; font-weight: bold; color: #333; margin-bottom: 3px; }
.t-student-desc { font-size: 12px; color: #888; }

.t-coupon-pills { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.t-coupon-pill { 
    display: flex; 
    border: 2px solid #fde047; 
    border-radius: 12px; 
    overflow: hidden; 
    background: white; 
}
.t-coupon-info { padding: 8px 12px; display: flex; align-items: center; gap: 8px; background: #fffcf0; min-width: 130px; }
.t-coupon-icon { font-size: 20px; }
.t-coupon-text { display: flex; flex-direction: column; text-align: left; }
.t-coupon-name { font-size: 14px; font-weight: bold; color: #333; }
.t-coupon-price { font-size: 11px; color: #f59e0b; font-weight: bold; }
.t-coupon-badge { background: #ffed4a; color: #b45309; font-size: 11px; font-weight: bold; padding: 2px 6px; border-radius: 10px; margin-left: 5px; }

.t-coupon-btn { 
    background: #00d26a; color: white; border: none; padding: 0 20px; 
    font-weight: bold; font-family: 'Jua'; font-size: 16px; cursor: pointer; transition: 0.2s; 
}
.t-coupon-btn:hover { background: #00b35a; }

/* =========================================
   🌟 퀘스트 (미션/펀딩) 전용 스타일
   ========================================= */
.quest-top-btn { padding: 8px 15px; color: white; border: none; border-radius: 8px; cursor: pointer; font-family: sans-serif; font-size: 13px; font-weight: bold; }
.mission-filter-btn { padding: 6px 15px; border: 1px solid #ddd; border-radius: 20px; background: white; color: #555; cursor: pointer; font-size: 13px; }
.mission-filter-btn.active { background: #3b82f6; color: white; border-color: #3b82f6; }

/* 미션 카드 */
.mission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 15px; }
.mission-card { border: 1px solid #eee; border-radius: 15px; padding: 20px; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.m-header { display: flex; gap: 15px; margin-bottom: 15px; }
.m-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 24px; flex-shrink: 0; }
.m-title-area { flex-grow: 1; text-align: left; }
.m-title { font-weight: bold; font-size: 15px; color: #333; margin-bottom: 4px; font-family: sans-serif; }
.m-desc { font-size: 12px; color: #888; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: sans-serif; }
.m-actions { color: #ccc; font-size: 12px; display: flex; gap: 5px; cursor: pointer; }
.m-tags { display: flex; gap: 5px; margin-bottom: 15px; }
.m-tag { padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: bold; }
.m-tag.diff-normal { background: #fff8e1; color: #f59e0b; border: 1px solid #fde68a; }
.m-progress-info { display: flex; justify-content: space-between; font-size: 12px; color: #555; margin-bottom: 5px; font-weight: bold; }
.m-progress-bar { width: 100%; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.m-fill { height: 100%; border-radius: 3px; }

/* 펀딩 카드 */
.funding-card { border: 2px solid #d1d5db; border-radius: 16px; padding: 30px; background: white; box-shadow: 0 4px 15px rgba(0,0,0,0.03); text-align: left; font-family: 'Noto Sans KR', sans-serif; }
.f-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.f-title { font-size: 18px; font-weight: bold; color: #333; display: flex; align-items: center; gap: 10px; }
.f-badge { padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: bold; }
.f-badge.ongoing { background: #e0f2fe; color: #3b82f6; }
.f-badge.allow { background: #e0f2fe; color: #3b82f6; }
.f-actions { color: #ff9800; display: flex; gap: 10px; cursor: pointer; }
.f-progress-text { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; }
.f-progress-bar { width: 100%; height: 10px; background: #f0f0f0; border-radius: 5px; overflow: hidden; margin-bottom: 5px; }
.f-fill { height: 100%; background: #3b82f6; border-radius: 5px; }
.f-contributor { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f9f9f9; font-size: 13px; }
.f-avatar { width: 30px; height: 30px; border-radius: 5px; border: 1px solid #3b82f6; color: #3b82f6; display: flex; justify-content: center; align-items: center; font-size: 10px; font-weight: bold; background: white; }

/* 모달 폼 텍스트 입력 스타일 추가 */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; color: #555; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.radio-btn { padding: 10px 20px; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; font-size: 14px; }
.radio-btn.active { border-color: #3b82f6; background: #e0f2fe; color: #3b82f6; font-weight: bold; }
.radio-btn input { display: none; }

/* =========================================
   🌟 퀘스트 (미션/펀딩) 완벽 구현 스타일
   ========================================= */
/* 상단 버튼류 */
.quest-top-btn { padding: 10px 18px; color: white; border: none; border-radius: 8px; cursor: pointer; font-family: 'Noto Sans KR', sans-serif; font-size: 14px; font-weight: bold; transition: 0.2s; display: flex; align-items: center; gap: 5px; }
.quest-top-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.mission-filter-btn { padding: 8px 18px; border: 1px solid #e0e0e0; border-radius: 20px; background: white; color: #666; cursor: pointer; font-size: 14px; font-weight: bold; transition: 0.2s; }
.mission-filter-btn.active { background: #3b82f6; color: white; border-color: #3b82f6; }

/* 미션 카드 스타일 */
.mission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 15px; }
.mission-card { border: 1px solid #eaedf1; border-radius: 16px; padding: 20px; background: white; box-shadow: 0 4px 10px rgba(0,0,0,0.02); font-family: 'Noto Sans KR', sans-serif; transition: 0.2s; }
.mission-card:hover { border-color: #c7d2fe; box-shadow: 0 8px 20px rgba(0,0,0,0.05); transform: translateY(-3px); }
.m-header { display: flex; gap: 15px; margin-bottom: 15px; align-items: flex-start; }
.m-icon-box { width: 55px; height: 55px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 26px; flex-shrink: 0; }
.m-title-area { flex-grow: 1; text-align: left; }
.m-title { font-weight: bold; font-size: 16px; color: #222; margin-bottom: 5px; line-height: 1.3; }
.m-desc { font-size: 13px; color: #888; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.m-actions { color: #ccc; font-size: 14px; display: flex; gap: 8px; cursor: pointer; background: #f9f9f9; padding: 5px 10px; border-radius: 20px; border: 1px solid #eee; align-self: flex-start;}
.m-actions span:hover { filter: brightness(0.8); }

/* 뱃지 스타일 */
.m-tags { display: flex; gap: 6px; margin-bottom: 15px; flex-wrap: wrap; }
.m-badge { padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: bold; display: flex; align-items: center; gap: 3px; border: 1px solid transparent; }
.m-badge.diff-normal { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.m-badge.diff-easy { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.m-badge.type-self { background: #f0fdfa; color: #059669; border-color: #a7f3d0; }
.m-badge.type-repeat { background: #faf5ff; color: #9333ea; border-color: #e9d5ff; }

/* 프로그래스 바 */
.m-progress-info { display: flex; justify-content: space-between; font-size: 13px; font-weight: bold; margin-bottom: 8px; }
.m-progress-bar { width: 100%; height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.m-fill { height: 100%; border-radius: 3px; }

/* 펀딩 카드 스타일 */
.funding-card { border: 2px solid #d1d5db; border-radius: 16px; padding: 30px; background: white; box-shadow: 0 4px 15px rgba(0,0,0,0.03); text-align: left; font-family: 'Noto Sans KR', sans-serif; }
.f-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.f-title-area { display: flex; align-items: center; gap: 10px; }
.f-title { font-size: 20px; font-weight: bold; color: #222; }
.f-badge { padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: bold; }
.f-badge.ongoing { background: #eff6ff; color: #2563eb; }
.f-badge.allow { background: #e0f2fe; color: #0ea5e9; border: 1px solid #bae6fd; }
.f-actions { color: #ccc; display: flex; gap: 12px; cursor: pointer; font-size: 16px; background: #f9f9f9; padding: 6px 12px; border-radius: 20px; border: 1px solid #eee; }

.f-progress-text { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.f-current { font-size: 24px; font-weight: bold; color: #222; }
.f-target { font-size: 13px; color: #888; }
.f-progress-bar { width: 100%; height: 12px; background: #f1f5f9; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.f-fill { height: 100%; background: #3b82f6; border-radius: 6px; transition: width 0.5s ease-out; }
.f-percent { text-align: right; font-size: 13px; color: #666; font-weight: bold; margin-bottom: 25px; }

.f-contributor-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; margin-bottom: 15px; }
.f-sort { display: flex; gap: 10px; font-size: 12px; color: #888; background: #f8fafc; padding: 4px 10px; border-radius: 15px;}
.f-sort span { cursor: pointer; padding: 2px 5px; }
.f-sort span.active { color: white; background: #3b82f6; border-radius: 10px; font-weight: bold; }

.f-contributor-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.f-c-left { display: flex; align-items: center; gap: 12px; }
.f-c-avatar { width: 35px; height: 35px; border-radius: 8px; border: 1px solid #bfdbfe; color: #3b82f6; display: flex; justify-content: center; align-items: center; font-size: 11px; font-weight: bold; background: #eff6ff; text-align: center; line-height: 1.2; }
.f-c-name { font-size: 15px; font-weight: bold; color: #333; }
.f-c-dia { font-size: 13px; color: #0ea5e9; font-weight: bold; }
.f-c-right { text-align: right; }
.f-c-point { color: #3b82f6; font-weight: bold; font-size: 15px; margin-bottom: 3px; }
.f-c-date { font-size: 11px; color: #aaa; }

/* =========================================
   🌟 모달 폼 전용 스타일
   ========================================= */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; color: #444; margin-bottom: 8px; font-weight: bold; font-family: 'Noto Sans KR', sans-serif;}
.form-group input, .form-group select { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; box-sizing: border-box; outline: none; transition: 0.2s; font-family: 'Noto Sans KR', sans-serif;}
.form-group input:focus, .form-group select:focus, textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

.radio-btn { padding: 12px 0; flex: 1; text-align: center; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; font-size: 15px; background: white; transition: 0.2s; color: #555; }
.radio-btn.active { border-color: #3b82f6; background: #eff6ff; color: #3b82f6; font-weight: bold; }
.radio-btn input { display: none; }

.checkbox-card { display: flex; align-items: flex-start; gap: 15px; padding: 18px; border: 1px solid #ddd; border-radius: 12px; margin-bottom: 15px; cursor: pointer; transition: 0.2s; font-family: 'Noto Sans KR', sans-serif; background: white; }
.checkbox-card:hover { border-color: #3b82f6; background: #f8fafc; }
.checkbox-card input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; cursor: pointer; accent-color: #3b82f6; }

/* 🌟 발표도우미: 학생 카드 등장 애니메이션 */
@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* 🌟 발표도우미: 누구누구 뒤집기 카드 스타일 */
.who-card {
    width: 160px; /* 🌟 140px에서 약 5% 축소 */
    height: 195px;
    perspective: 1000px; /* 3D 효과 거리 */
    cursor: pointer;
    opacity: 0;
}

.who-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* flipped 클래스가 붙으면 180도 회전 */
.who-card.flipped .who-card-inner {
    transform: rotateY(180deg);
}

.who-card-front, .who-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* 뒷면 숨기기 */
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* 뒷면 (물음표 상태) */
.who-card-front {
    background: #4b5563; 
    border: 4px solid #374151;
}

/* 앞면 (학생 정보 상태) */
.who-card-back {
    background: #fff;
    border: 4px solid #3b82f6;
    transform: rotateY(180deg); /* 초기 상태는 뒤집힌 상태 */
}

/* 사이드바 고정 (이전 설정 확인) */
.board-sidebar {
    width: 250px;
    flex-shrink: 0; /* 창이 좁아져도 메뉴 크기 유지 */
    background: #2c3e50;
}


/* =========================================
   🏦 쑥쑥은행 관리 전용 스타일
   ========================================= */

/* 은행 상단 요약 카드 */
.bank-summary-card {
    flex: 1;
    padding: 25px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.bank-summary-card .title { font-size: 16px; font-weight: bold; margin-bottom: 10px; opacity: 0.9; }
.bank-summary-card .value { font-size: 36px; font-weight: bold; font-family: 'Jua'; }

/* 은행 내부 탭 버튼 */
.t-bank-tab { padding: 12px 25px; border: none; border-radius: 10px; font-family: 'Jua'; font-size: 16px; cursor: pointer; background: white; color: #555; border: 1px solid #ddd; transition: 0.2s; }
.t-bank-tab.active { background: #3b82f6; color: white; border-color: #3b82f6; }

/* 토글 스위치 (ETF 켜기/끄기) */
.toggle-switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #ef4444; } /* 이미지에 빨간색으로 되어있음 */
input:checked + .slider:before { transform: translateX(24px); }

/* 은행 테이블 스타일 */
.bank-table-container { overflow-x: auto; border: 1px solid #eee; border-radius: 10px; }
.bank-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
.bank-table th { background: #f8fafc; padding: 15px 10px; font-weight: bold; color: #444; border-bottom: 2px solid #eee; white-space: nowrap; }
.bank-table td { padding: 15px 10px; border-bottom: 1px solid #eee; color: #333; vertical-align: middle; }
.bank-table tbody tr:hover { background: #fcfcfc; }

/* 상태 뱃지 */
.bank-badge { padding: 4px 10px; border-radius: 15px; font-size: 12px; font-weight: bold; }
.bank-badge.saving { background: #dcfce7; color: #10b981; } /* 예치중 */
.bank-badge.buy { background: #eff6ff; color: #3b82f6; } /* 매수 */
.bank-badge.sell { background: #fef2f2; color: #ef4444; } /* 매도 */

/* 미니 아바타 */
.bank-mini-avatar { width: 30px; height: 30px; background: #e0f2fe; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; margin-right: 8px; vertical-align: middle; }

/* =========================================
   📱 쑥쑥클래스 ETF 모바일 앱 스타일 (상태창 완벽 구현)
   ========================================= */

/* 모바일 화면 크기로 제한된 메인 컨테이너 */
.etf-app-container {
    max-width: 420px; /* 스마트폰 폭과 가장 유사한 크기 */
    margin: 0 auto;
    background-color: #f4f6f8; /* 아주 연한 회색 배경 (이미지와 동일) */
    padding: 20px 15px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); /* 앱이 떠 있는 듯한 그림자 */
    font-family: 'Noto Sans KR', sans-serif;
    position: relative;
    overflow: hidden;
}

/* 상단 탭 (종목 검색 / 내 포트폴리오) */
.etf-app-header {
    display: flex; gap: 20px; margin-bottom: 20px; padding: 0 10px;
}
.etf-app-tab {
    font-size: 18px; font-weight: bold; color: #b0b8c1; /* 비활성화된 탭 색상 */
    cursor: pointer; border: none; background: transparent; padding-bottom: 5px;
    transition: 0.2s;
}
.etf-app-tab.active {
    color: #333d4b; /* 진한 글씨 */
    border-bottom: 3px solid #333d4b;
}

/* 돋보기 검색창 */
.etf-search-bar {
    background: white;
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    color: #8b95a1;
    font-size: 15px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* 개별 ETF 카드 (가장 중요) */
.etf-card-app {
    background: white;
    border-radius: 20px; /* 아주 둥근 모서리 */
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04); /* 은은한 그림자 */
}

/* 카드 상단: 아이콘 + 이름 + 가격 */
.etf-card-top {
    display: flex; justify-content: space-between; align-items: flex-start;
}
.etf-icon-wrap {
    display: flex; align-items: center; gap: 12px;
}
.etf-icon-emoji {
    font-size: 32px; background: #f2f4f6; padding: 10px; border-radius: 18px;
}
.etf-title { font-weight: bold; font-size: 17px; color: #333d4b; }
.etf-ticker { font-size: 13px; color: #8b95a1; margin-top: 4px; }

/* 오른쪽 가격 영역 */
.etf-price-wrap { text-align: right; }
.etf-price { font-size: 20px; font-weight: bold; color: #333d4b; letter-spacing: -0.5px; }
.etf-change.up { color: #f04452; font-size: 13px; font-weight: bold; margin-top: 4px; } /* 한국 주식 빨간색 */
.etf-change.down { color: #3182f6; font-size: 13px; font-weight: bold; margin-top: 4px; } /* 한국 주식 파란색 */

/* 설명 펼치기 버튼 */
.etf-toggle-btn {
    width: 100%; text-align: center; background: #f9fafb; border: 1px solid #f2f4f6;
    color: #6b7684; font-size: 13px; font-weight: bold; padding: 10px; border-radius: 10px;
    margin: 16px 0; cursor: pointer; transition: 0.2s;
}
.etf-toggle-btn:hover { background: #f2f4f6; }

/* 확장된 설명 영역 (어떤 ETF인가요?) */
.etf-expanded-box {
    background: #f9fafb; padding: 16px; border-radius: 14px; margin-bottom: 16px;
    font-size: 13px; color: #4e5968; line-height: 1.6;
}
.etf-stock-item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f2f4f6; }
.etf-stock-item:last-child { border-bottom: none; }

/* 파란색 구매하기 버튼 */
.etf-buy-btn {
    width: 100%; background: #3182f6; color: white; border: none; padding: 16px;
    border-radius: 14px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.1s;
}
.etf-buy-btn:hover { background: #1b64da; }

/* 📱 쑥쑥클래스 ETF 투자 시스템 전용 스타일 */
.etf-test-wrapper {
    max-width: 600px; margin: 0 auto; font-family: 'Jua', sans-serif; color: #333d4b;
}

/* 1. ETF 가이드 박스 */
.etf-guide-box {
    background: #eef3ff; padding: 20px; border-radius: 20px; margin-bottom: 20px;
    font-size: 14px; line-height: 1.6; color: #4e5968; border: 1px solid #d1d9e6;
}

/* 2. 3단 상태바 */
.etf-stats-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px;
}
.etf-stat-box {
    background: white; padding: 15px 10px; border-radius: 18px; text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.stat-label { font-size: 12px; color: #8b95a1; margin-bottom: 5px; }
.stat-value { font-size: 16px; font-weight: bold; }

/* 3. 탭 버튼 */
.etf-tab-container {
    display: flex; gap: 10px; margin-bottom: 20px;
}
.etf-tab-btn {
    flex: 1; padding: 12px; border: none; border-radius: 12px; background: #f2f4f6;
    color: #8b95a1; font-size: 16px; cursor: pointer; transition: 0.2s;
}
.etf-tab-btn.active { background: #3182f6; color: white; }

/* 4. 카드 공통 스타일 */
.etf-item-card {
    background: white; border-radius: 20px; padding: 20px; margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.etf-info-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.etf-name-tag { display: flex; align-items: center; gap: 10px; }
.etf-icon-circle { width: 45px; height: 45px; background: #f2f4f6; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; }

/* 📈 쑥쑥클래스 ETF 투자 시스템 디자인 (상태창 스타일) */
.etf-app-frame { max-width: 550px; margin: 0 auto; background: #f0f2f5; padding: 20px; border-radius: 30px; }

/* 최상단 설명 박스 */
.etf-info-box { background: #fff; padding: 20px; border-radius: 20px; border: 1px solid #e1e4e8; margin-bottom: 20px; font-size: 14px; line-height: 1.6; }

/* 3단 상태바 */
.etf-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 25px; }
.etf-stat-card { background: white; padding: 15px 10px; border-radius: 20px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.stat-title { font-size: 11px; color: #8b95a1; margin-bottom: 5px; font-weight: bold; }
.stat-val { font-size: 15px; font-weight: bold; color: #333d4b; }

/* 하단 탭 메뉴 */
.etf-tabs { display: flex; gap: 12px; margin-bottom: 20px; }
.etf-tab { flex: 1; padding: 15px; border: none; border-radius: 15px; background: #e5e8eb; color: #8b95a1; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.etf-tab.active { background: #3182f6; color: white; }

/* 카드 스타일 */
.etf-list-card { background: white; border-radius: 22px; padding: 22px; margin-bottom: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.etf-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.etf-main { display: flex; align-items: center; gap: 12px; }
.etf-icon { width: 48px; height: 48px; background: #f2f4f6; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; }

/* =========================================
   🌟 사이드바 슬라이딩 애니메이션 스타일
   ========================================= */

.board-sidebar {
    position: relative; /* 버튼의 기준점 */
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* 부드러운 슬라이딩 효과 */
    z-index: 100;
}

/* 사이드바가 접혔을 때 (너비인 250px만큼 왼쪽으로 숨김) */
.board-sidebar.collapsed {
    margin-left: -250px; 
}

/* 튀어나온 토글(접기/펴기) 버튼 */
.sidebar-toggle-btn {
    position: absolute;
    top: 30px;
    right: -24px; /* 사이드바 바깥으로 튀어나오게 설정 */
    width: 24px;
    height: 50px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 0 10px 10px 0; /* 오른쪽 모서리만 둥글게 */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 3px 0 5px rgba(0,0,0,0.1);
    font-size: 10px;
    transition: background 0.2s, transform 0.2s;
    z-index: 101;
}

.sidebar-toggle-btn:hover {
    background: #34495e;
}

/* 👔 1인 1역 테이블 스타일 */
.job-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.job-table th, .job-table td { border: 1px solid #f1f5f9; padding: 12px 8px; text-align: center; }
.job-table th { background: #f8fafc; color: #475569; font-size: 13px; }
.job-table td.student-name-col { text-align: left; position: sticky; left: 0; background: white; z-index: 5; border-right: 2px solid #f1f5f9; min-width: 150px; }
.job-check-box { width: 22px; height: 22px; cursor: pointer; accent-color: #6366f1; }
.job-tag { background: #eef2ff; color: #6366f1; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: bold; margin-left: 5px; }

/* 배정 입력 필드 */
.job-input-row { display: flex; align-items: center; gap: 15px; padding: 10px; border-bottom: 1px solid #f1f5f9; }
.job-input-row .name { width: 100px; font-weight: bold; color: #334155; }
.job-input-field { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Jua'; }

/* 🌟 누구누구 카드 선택 시 효과 */
.who-card.selected {
    transform: translateY(-10px);
}
.who-card.selected .who-card-back {
    border-color: #F8E71C; /* 노란색 테두리 */
    box-shadow: 0 10px 20px rgba(248, 231, 28, 0.3);
}
/* 선택된 카드 우측 상단 체크 표시 */
.who-card.selected::after {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #F8E71C;
    color: #555;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 5;
}