/* ========================================
   메인 페이지 CSS
   index.html
   ======================================== */

/* 헤더 - sticky */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 검색창 */
.search-box {
    display: flex;
    align-items: center;
    background-color: #faf8f5;
    border: 1px solid #d7ccc8;
    border-radius: 24px;
    padding: 8px 16px;
    width: 300px;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: #5d4037;
    background-color: #fff;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: #5d4037;
}

.search-box input::placeholder {
    color: #a1887f;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: #8d6e63;
}

.search-box button:hover {
    color: #5d4037;
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.btn-outline {
    background-color: #fff;
    color: #5d4037;
    border: 1px solid #5d4037;
}

.btn-outline:hover {
    background-color: #faf8f5;
}

.btn-login {
    background-color: #5d4037;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
}

.btn-login:hover {
    background-color: #4e342e;
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 체험하기 버튼 */
.btn-demo {
    padding: 10px 20px;
    background-color: #fff;
    color: #5d4037;
    border: 2px solid #5d4037;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-demo:hover {
    background-color: #5d4037;
    color: #fff;
}

/* 사용자 메뉴 */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.user-menu:hover {
    background-color: #faf8f5;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #5d4037;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-email {
    font-size: 14px;
    color: #5d4037;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: #fff;
    border: 1px solid #5d4037;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}

.user-menu.active .user-dropdown {
    display: block;
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    color: #5d4037;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background-color: #faf8f5;
}

.user-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown button:last-child {
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #efebe9;
    color: #c62828;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.user-menu.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-divider {
    height: 1px;
    background: #efebe9;
    margin: 4px 0;
}

/* 네비게이션 */
.nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav a {
    color: #5d4037;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav a:hover {
    background-color: #faf8f5;
    color: #3e2723;
}

.nav .nav-link-outline {
    border: 1.5px solid #5d4037;
    color: #5d4037;
}

.nav .nav-link-outline:hover {
    background-color: #5d4037;
    color: #fff;
}

.nav .nav-link-primary {
    background-color: #5d4037;
    color: #fff;
    font-weight: 600;
}

.nav .nav-link-primary:hover {
    background-color: #4e342e;
    color: #fff;
}

.nav .nav-notif-btn {
    position: relative;
}

.nav .nav-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #c62828;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-bell.bell-hidden {
    margin: 0;
}

.notification-bell.bell-hidden .bell-btn {
    display: none;
}

/* 메인 섹션 */
.main-section {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e53935;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 필터 탭 */
.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid #d7ccc8;
    background-color: #fff;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: #5d4037;
}

.filter-tab.active {
    background-color: #5d4037;
    color: #fff;
    border-color: #5d4037;
}

/* 라이브 강의 그리드 */
.live-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.live-card {
    border: 2px solid #5d4037;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.live-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.live-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    background-color: #efebe9;
    overflow: hidden;
}

.live-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.live-badge.live {
    background-color: #e53935;
    color: #fff;
}

.live-badge.live::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.live-badge.scheduled {
    background-color: #5d4037;
    color: #fff;
}

.viewer-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-info {
    padding: 16px;
}

.teacher-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.teacher-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #efebe9;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-details {
    flex: 1;
}

.teacher-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.teacher-school {
    font-size: 12px;
    color: #8d6e63;
}

.subscribe-btn {
    padding: 6px 12px;
    border: 1px solid #d7ccc8;
    background-color: #fff;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.subscribe-btn:hover {
    border-color: #e53935;
    color: #e53935;
}

.subscribe-btn.subscribed {
    background-color: #e53935;
    color: #fff;
    border-color: #e53935;
}

.live-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.class-price {
    font-size: 14px;
    font-weight: 700;
    color: #e53935;
    white-space: nowrap;
    margin-left: 8px;
}

.live-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.live-time {
    font-size: 14px;
    color: #8d6e63;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-time.soon {
    color: #e53935;
    font-weight: 600;
}

.live-price {
    font-size: 16px;
    font-weight: 700;
    color: #5d4037;
}

/* 선생님 통계 배지 */
.teacher-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.stat-badge svg {
    flex-shrink: 0;
}

.stat-badge.viewer {
    background-color: #ffebee;
    color: #c62828;
}

.stat-badge.reservation {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.join-btn {
    width: 100%;
    padding: 12px;
    background-color: #5d4037;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.join-btn:hover {
    background-color: #4e342e;
}

.join-btn.live-now {
    background-color: #e53935;
}

.join-btn.live-now:hover {
    background-color: #c62828;
}

/* 사전 예약 버튼 */
.reserve-btn {
    padding: 8px 16px;
    border: 1.5px solid #e65100;
    background: white;
    color: #e65100;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.reserve-btn:hover {
    background: #e65100;
    color: white;
}

.reserve-btn.reserved {
    background: #e65100;
    color: white;
    border-color: #e65100;
}

/* 예약자 수 배지 */
.reservation-count {
    font-size: 12px;
    color: #e65100;
    font-weight: 600;
    margin-top: 4px;
}

/* 찜한 선생님 섹션 */
.subscribed-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #d7ccc8;
}

.subscribed-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.subscribed-card {
    text-align: center;
    padding: 16px;
    border: 1px solid #d7ccc8;
    border-radius: 12px;
    background-color: #fff;
    transition: all 0.2s;
    cursor: pointer;
}

.subscribed-card:hover {
    border-color: #5d4037;
}

.subscribed-card .teacher-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    position: relative;
}

.subscribed-card .teacher-avatar.has-live::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background-color: #e53935;
    border: 2px solid #fff;
    border-radius: 50%;
}

.subscribed-card .teacher-name {
    font-size: 14px;
}

.subscribed-card .next-live {
    font-size: 12px;
    color: #8d6e63;
    margin-top: 4px;
}

.subscribed-card .next-live.live-now {
    color: #e53935;
    font-weight: 600;
}

/* ========================================
   등록된 선생님 섹션
   ======================================== */
.teachers-section {
    margin-bottom: 48px;
}

.teacher-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: linear-gradient(135deg, #5d4037 0%, #8d6e63 100%);
    color: #fff;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.teacher-card {
    background: #fff;
    border: 2px solid #efebe9;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.teacher-card:hover {
    border-color: #5d4037;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(93, 64, 55, 0.15);
}

.teacher-card.has-live {
    border-color: #e53935;
}

.teacher-card.has-live::before {
    content: 'LIVE';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

.teacher-card-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 3px solid #efebe9;
    transition: border-color 0.3s;
}

.teacher-card:hover .teacher-card-photo {
    border-color: #5d4037;
}

.teacher-card.has-live .teacher-card-photo {
    border-color: #e53935;
}

.teacher-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.teacher-card-school {
    font-size: 13px;
    color: #8d6e63;
    margin-bottom: 12px;
}

.teacher-card-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}

.teacher-subject-tag {
    font-size: 11px;
    padding: 4px 10px;
    background: #faf8f5;
    color: #5d4037;
    border-radius: 12px;
    border: 1px solid #efebe9;
}

.teacher-card-intro {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 39px;
}

.teacher-card-action {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #efebe9;
    display: flex;
    gap: 8px;
}

.teacher-card-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.teacher-card-btn.primary {
    background: #5d4037;
    color: #fff;
    border: none;
}

.teacher-card-btn.primary:hover {
    background: #4e342e;
}

.teacher-card-btn.secondary {
    background: #fff;
    color: #5d4037;
    border: 1px solid #5d4037;
}

.teacher-card-btn.secondary:hover {
    background: #faf8f5;
}

.teacher-card-btn.subscribed {
    background: #ffebee;
    color: #e53935;
    border: 1px solid #e53935;
}

/* 선생님 없을 때 */
.teachers-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #8d6e63;
}

.teachers-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.teachers-empty-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.teachers-empty-subtext {
    font-size: 14px;
    color: #a1887f;
}

/* 라이브 섹션 */
.live-section {
    padding-top: 40px;
    border-top: 1px solid #efebe9;
}

/* 반응형 - 태블릿 */
@media (max-width: 1200px) {
    .teachers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .teacher-card {
        padding: 16px 12px;
    }

    .teacher-card-photo {
        width: 64px;
        height: 64px;
        margin-bottom: 12px;
    }

    .teacher-card-name {
        font-size: 14px;
    }

    .teacher-card-school {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .teacher-card-subjects {
        margin-bottom: 8px;
    }

    .teacher-subject-tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .teacher-card-intro {
        font-size: 12px;
        -webkit-line-clamp: 2;
        min-height: 36px;
    }

    .teacher-card-action {
        margin-top: 12px;
        padding-top: 12px;
        flex-direction: column;
    }

    .teacher-card-btn {
        padding: 10px;
        font-size: 12px;
    }
}

/* 반응형 - 작은 모바일 */
@media (max-width: 480px) {
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .teacher-card {
        padding: 14px 10px;
    }

    .teacher-card-photo {
        width: 56px;
        height: 56px;
    }

    .teacher-card.has-live::before {
        top: 8px;
        right: 8px;
        font-size: 9px;
        padding: 3px 6px;
    }

    .teacher-count-badge {
        min-width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* 푸터 */
.footer {
    padding: 40px;
    border-top: 1px solid #5d4037;
    background-color: #fff;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-info p {
    font-size: 13px;
    color: #8d6e63;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-links a {
    font-size: 13px;
    color: #8d6e63;
    text-decoration: none;
}

.footer-links a:hover {
    color: #5d4037;
}

/* 선생님 등록 버튼 - 눈에 띄는 스타일 */
.teacher-register-btn {
    background: linear-gradient(135deg, #5d4037 0%, #8d6e63 100%);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.teacher-register-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 ease;
}

.teacher-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 64, 55, 0.4);
    color: #fff !important;
}

.teacher-register-btn:hover::before {
    left: 100%;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    font-size: 13px;
    color: #8d6e63;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: #5d4037;
}

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid #d7ccc8;
    text-align: center;
    font-size: 12px;
    color: #8d6e63;
}

/* 개발용 페이지 링크 */
.dev-links {
    padding: 40px;
    background-color: #efebe9;
}

.dev-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.dev-links-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dev-links a {
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid #5d4037;
    border-radius: 4px;
    text-decoration: none;
    color: #5d4037;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s;
}

.dev-links a:hover {
    background-color: #5d4037;
    color: #fff;
}

/* ========================================
   반응형 - 태블릿 (1200px 이하)
   ======================================== */
@media (max-width: 1200px) {
    .live-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .subscribed-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   반응형 - 모바일 (768px 이하)
   ======================================== */
@media (max-width: 768px) {
    .live-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .subscribed-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .dev-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav {
        display: none;
    }
    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .main-section {
        padding: 20px 16px;
    }

    /* 필터 탭 개선 - 스크롤 힌트 */
    .filter-tabs {
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 13px;
    }

    /* 찜한 선생님 섹션 */
    .subscribed-section {
        margin-bottom: 24px !important;
    }

    .subscribed-card {
        padding: 12px;
    }

    .subscribed-card .teacher-avatar {
        width: 52px;
        height: 52px;
    }

    .subscribed-card .teacher-name {
        font-size: 13px;
    }

    .subscribed-card .next-live {
        font-size: 11px;
    }

    /* 푸터 모바일 */
    .footer {
        padding: 24px 16px;
        margin-top: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-info p {
        font-size: 12px;
        line-height: 1.6;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* ========================================
   반응형 - 작은 모바일 (480px 이하)
   ======================================== */
@media (max-width: 480px) {
    .live-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .subscribed-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .subscribed-card {
        padding: 10px 6px;
    }

    .subscribed-card .teacher-avatar {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
    }

    .subscribed-card .teacher-name {
        font-size: 12px;
    }
}

/* ========================================
   결제 모달
   ======================================== */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.payment-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.payment-content {
    position: relative;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s;
}

.payment-close:hover {
    background-color: #e0e0e0;
}

.payment-title {
    padding: 20px 24px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
}

.payment-notice {
    margin: 16px;
    padding: 12px 16px;
    background-color: #e3f2fd;
    border-radius: 8px;
    font-size: 13px;
    color: #1565c0;
}

.payment-notice strong {
    display: block;
    margin-bottom: 4px;
}

/* 강의 카드 */
.payment-class-card {
    margin: 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.payment-class-thumb {
    position: relative;
    height: 120px;
    background-color: #f5f5f5;
}

.payment-class-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.payment-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background-color: #e53935;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.payment-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.payment-badge.scheduled {
    background-color: #5d4037;
}

.payment-badge.scheduled::before {
    display: none;
}

.payment-class-info {
    padding: 16px;
}

.payment-teacher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.payment-teacher img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.payment-teacher-name {
    font-size: 14px;
    font-weight: 600;
}

.payment-teacher-school {
    font-size: 12px;
    color: #888;
}

.payment-class-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.payment-class-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.payment-status {
    font-size: 13px;
    color: #e53935;
    font-weight: 600;
}

.payment-price {
    font-size: 20px;
    font-weight: 700;
    color: #5d4037;
}

/* 결제 수단 */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 16px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover {
    border-color: #5d4037;
}

.payment-method.selected {
    border-color: #5d4037;
    background-color: #faf8f5;
}

.payment-method input {
    display: none;
}

.method-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.method-name {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

/* 결제 버튼 영역 */
.payment-footer {
    padding: 16px;
    border-top: 1px solid #eee;
    margin-top: 16px;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.payment-total span:first-child {
    font-size: 14px;
    color: #666;
}

.payment-total-price {
    font-size: 24px;
    font-weight: 700;
    color: #e53935;
}

.payment-agree {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.payment-agree input {
    width: 16px;
    height: 16px;
    accent-color: #5d4037;
}

.payment-btn {
    width: 100%;
    padding: 16px;
    background-color: #e53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.payment-btn:hover:not(:disabled) {
    background-color: #c62828;
}

.payment-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 새로운 결제 수단 스타일 */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover {
    border-color: #5d4037;
    background-color: #faf8f5;
}

.payment-method.selected {
    border-color: #5d4037;
    background-color: #faf8f5;
}

.payment-method input {
    display: none;
}

.method-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.method-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.method-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.method-desc {
    font-size: 12px;
    color: #888;
}

.method-card-info {
    font-size: 12px;
    color: #5d4037;
}

/* PIN 간편결제 (카드 등록됨) */
.payment-method.pin-payment {
    background: linear-gradient(135deg, #5d4037 0%, #8d6e63 100%);
    border-color: #5d4037;
}

.payment-method.pin-payment .method-name {
    color: #fff;
}

.payment-method.pin-payment .method-card-info {
    color: rgba(255, 255, 255, 0.85);
}

.payment-method.pin-payment.selected {
    background: linear-gradient(135deg, #4e342e 0%, #6d4c41 100%);
}

/* 카드 결제 옵션 */
.payment-method.card-payment {
    background-color: #fff;
}

.payment-method.card-payment.selected {
    background-color: #faf8f5;
}

/* 간편결제 등록 옵션 */
.payment-method.register-payment {
    background-color: #fff;
    border-style: dashed;
}

.payment-method.register-payment .method-icon {
    color: #ff9800;
}

.payment-method.register-payment.selected {
    background-color: #fff8e1;
    border-color: #ff9800;
    border-style: solid;
}

/* 추천 배지 */
.method-recommend {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
}

/* PIN 입력 섹션 */
.pin-input-section {
    padding: 20px 16px;
    background-color: #faf8f5;
    border-radius: 12px;
    margin: 16px;
    text-align: center;
}

.pin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: #5d4037;
}

.pin-header a {
    font-size: 12px;
    color: #8d6e63;
    text-decoration: none;
}

.pin-header a:hover {
    text-decoration: underline;
}

/* PIN 점 표시 */
.pin-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #5d4037;
    background-color: transparent;
    transition: all 0.2s;
}

.pin-dot.filled {
    background-color: #5d4037;
}

.pin-dot.error {
    border-color: #e53935;
    background-color: #e53935;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* PIN 키패드 */
.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 240px;
    margin: 0 auto;
}

.pin-keypad button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    font-size: 24px;
    font-weight: 500;
    color: #5d4037;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pin-keypad button:hover {
    background-color: #5d4037;
    color: #fff;
}

.pin-keypad button:active {
    transform: scale(0.95);
}

.pin-keypad button.pin-empty {
    visibility: hidden;
}

.pin-keypad button.pin-delete {
    background-color: #f5f5f5;
    font-size: 20px;
}

.pin-keypad button.pin-delete:hover {
    background-color: #e0e0e0;
    color: #5d4037;
}

/* PIN 에러 메시지 */
.pin-error {
    margin-top: 12px;
    font-size: 13px;
    color: #e53935;
    min-height: 20px;
}

/* PIN 입력 섹션 숨김 (다른 결제수단 선택 시) */
.pin-input-section.hidden {
    display: none;
}

/* 결제 모달 모바일 최적화 */
@media (max-width: 480px) {
    .payment-content {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .payment-title {
        padding: 16px 20px;
        font-size: 18px;
    }

    .payment-notice {
        margin: 12px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .payment-class-card {
        margin: 12px;
    }

    .payment-class-thumb {
        height: 100px;
    }

    .payment-class-info {
        padding: 12px;
    }

    .payment-class-title {
        font-size: 14px;
    }

    .payment-methods {
        padding: 0 12px;
        gap: 6px;
    }

    .payment-method {
        padding: 10px 6px;
    }

    .method-icon {
        font-size: 20px;
    }

    .method-name {
        font-size: 10px;
    }

    .payment-method.pin-payment {
        padding: 12px;
    }

    .payment-method.pin-payment .method-name {
        font-size: 13px;
    }

    /* PIN 키패드 터치 최적화 */
    .pin-input-section {
        margin: 12px;
        padding: 16px 12px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .pin-header {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .pin-dots {
        gap: 10px;
        margin-bottom: 16px;
    }

    .pin-dot {
        width: 14px;
        height: 14px;
    }

    .pin-keypad {
        max-width: 280px;
        gap: 10px;
        flex: 1;
        align-content: center;
    }

    .pin-keypad button {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }

    .pin-keypad button.pin-delete {
        font-size: 22px;
    }

    /* 결제 푸터 */
    .payment-footer {
        padding: 12px;
        margin-top: auto;
    }

    .payment-total {
        margin-bottom: 10px;
    }

    .payment-total-price {
        font-size: 22px;
    }

    .payment-agree {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .payment-btn {
        padding: 14px;
        font-size: 15px;
    }
}

/* ========================================
   카드 버튼 영역
   ======================================== */
.card-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.schedule-btn {
    flex: 1;
    padding: 10px 12px;
    background-color: #fff;
    color: #5d4037;
    border: 2px solid #5d4037;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.schedule-btn:hover {
    background-color: #faf8f5;
}

.card-buttons .join-btn {
    flex: 1;
}

/* ========================================
   수업계획표 모달 (학생용)
   ======================================== */
.schedule-booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.schedule-booking-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.booking-content {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 24px;
    animation: modalSlideUp 0.3s ease;
}

.booking-content.booking-content-wide {
    max-width: 900px;
}

.booking-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s;
}

.booking-close:hover {
    background-color: #e0e0e0;
}

/* 선생님 헤더 */
.booking-teacher-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.booking-teacher-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #5d4037;
}

.booking-teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-teacher-name {
    font-size: 18px;
    font-weight: 700;
    color: #5d4037;
    margin-bottom: 4px;
}

.booking-teacher-school {
    font-size: 13px;
    color: #8d6e63;
}

.booking-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

/* 풀 캘린더 스타일 */
.booking-calendar-full {
    background-color: #fff;
    border: 1px solid #d7ccc8;
    border-radius: 12px;
    overflow: hidden;
}

.booking-calendar-full .booking-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #faf8f5;
    border-bottom: 1px solid #d7ccc8;
}

.booking-calendar-nav {
    display: flex;
    gap: 8px;
}

.booking-nav-btn {
    padding: 8px 16px;
    border: 1px solid #d7ccc8;
    background-color: #fff;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.booking-nav-btn:hover {
    background-color: #5d4037;
    color: #fff;
    border-color: #5d4037;
}

.booking-month {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.booking-today-btn {
    padding: 8px 16px;
    border: 1px solid #5d4037;
    background-color: #fff;
    border-radius: 6px;
    font-size: 13px;
    color: #5d4037;
    cursor: pointer;
    transition: all 0.2s;
}

.booking-today-btn:hover {
    background-color: #5d4037;
    color: #fff;
}

/* 캘린더 그리드 */
.booking-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.booking-day-header {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #5d4037;
    background-color: #faf8f5;
    border-bottom: 1px solid #d7ccc8;
}

.booking-day-header.sunday {
    color: #e53935;
}

.booking-day-header.saturday {
    color: #1976d2;
}

.booking-calendar-day {
    min-height: 90px;
    padding: 8px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.booking-calendar-day:nth-child(7n) {
    border-right: none;
}

.booking-calendar-day:hover {
    background-color: #faf8f5;
}

.booking-calendar-day.today {
    background-color: #fff8e1;
}

.booking-calendar-day.selected {
    background-color: #e3f2fd;
}

.booking-calendar-day.other-month {
    background-color: #f5f5f5;
}

.booking-calendar-day.other-month .booking-day-number {
    color: #bdbdbd;
}

.booking-day-number {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.booking-day-number.sunday {
    color: #e53935;
}

.booking-day-number.saturday {
    color: #1976d2;
}

/* 수업 이벤트 */
.booking-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-day-event {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-day-event.available {
    background-color: #e3f2fd;
    color: #1976d2;
}

.booking-day-event.live {
    background-color: #ffebee;
    color: #e53935;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 날짜 상세 */
.booking-day-detail {
    margin-top: 20px;
    border: 1px solid #d7ccc8;
    border-radius: 12px;
    overflow: hidden;
}

.booking-detail-title {
    padding: 16px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    background-color: #faf8f5;
    border-bottom: 1px solid #d7ccc8;
}

.booking-detail-content {
    padding: 16px;
}

.booking-detail-empty {
    text-align: center;
    padding: 40px 20px;
}

.booking-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.booking-empty-text {
    font-size: 14px;
    color: #8d6e63;
}

/* 수업 상세 카드 */
.booking-detail-card {
    border: 1px solid #d7ccc8;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.booking-detail-card.live {
    border-color: #e53935;
}

.booking-detail-card:last-child {
    margin-bottom: 0;
}

.booking-detail-card-header {
    padding: 12px 16px;
    background-color: #faf8f5;
    border-bottom: 1px solid #d7ccc8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-detail-card.live .booking-detail-card-header {
    background-color: #ffebee;
}

.booking-detail-status {
    font-size: 12px;
    font-weight: 500;
}

.booking-detail-subject {
    font-size: 15px;
    font-weight: 700;
    color: #5d4037;
}

.booking-detail-course {
    font-size: 13px;
    color: #8d6e63;
    margin-top: 2px;
}

.booking-detail-card-body {
    padding: 16px;
}

.booking-detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.booking-detail-row:last-child {
    margin-bottom: 0;
}

.booking-detail-label {
    width: 70px;
    color: #8d6e63;
    flex-shrink: 0;
}

.booking-detail-value {
    color: #333;
    font-weight: 500;
}

.booking-detail-desc {
    margin-top: 12px;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.booking-detail-card-footer {
    padding: 12px 16px;
    background-color: #faf8f5;
    border-top: 1px solid #d7ccc8;
}

.booking-reserve-btn {
    width: 100%;
    padding: 12px;
    background-color: #5d4037;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.booking-reserve-btn:hover:not(.disabled) {
    background-color: #4e342e;
}

.booking-reserve-btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 반응형 */
@media (max-width: 768px) {
    .booking-content.booking-content-wide {
        max-width: 100%;
        margin: 10px;
        padding: 16px;
    }

    .booking-calendar-day {
        min-height: 60px;
        padding: 4px;
    }

    .booking-day-number {
        font-size: 12px;
    }

    .booking-day-event {
        font-size: 10px;
        padding: 2px 4px;
    }

    .booking-nav-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .booking-month {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .booking-content {
        padding: 12px;
    }

    .booking-teacher-header {
        gap: 12px;
    }

    .booking-teacher-photo {
        width: 48px;
        height: 48px;
    }

    .booking-calendar-day {
        min-height: 50px;
    }

    .booking-day-events {
        display: none;
    }

    .booking-calendar-day.has-event::after {
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        background-color: #1976d2;
        border-radius: 50%;
        margin: 2px auto 0;
    }
}

/* ========================================
   모바일 하단 네비게이션
   ======================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #d7ccc8;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-nav {
    display: none;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #8d6e63;
    font-size: 11px;
    padding: 4px 12px;
    transition: color 0.2s;
}

.mobile-nav-item svg {
    transition: stroke 0.2s;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: #5d4037;
}

.mobile-nav-item.active svg,
.mobile-nav-item:hover svg {
    stroke: #5d4037;
}

/* 모바일 검색 오버레이 */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 2000;
}

.mobile-search-overlay.active {
    display: block;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #d7ccc8;
}

.mobile-search-back {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #5d4037;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-input-wrap {
    flex: 1;
}

.mobile-search-input-wrap input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d7ccc8;
    border-radius: 24px;
    font-size: 16px;
    outline: none;
    background-color: #faf8f5;
}

.mobile-search-input-wrap input:focus {
    border-color: #5d4037;
    background-color: #fff;
}

.mobile-search-btn {
    background-color: #5d4037;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.mobile-search-btn:hover {
    background-color: #4e342e;
}

/* ========================================
   모바일 하단 네비게이션 표시 (768px 이하)
   ======================================== */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* 헤더 검색창 숨김 */
    .search-box {
        display: none;
    }

    /* 헤더 아이콘 버튼들 숨김 (모바일 네비에서 처리) */
    .header-icon-btn,
    .notification-bell {
        display: none;
    }

    /* 로그인 버튼은 유지하되 작게 */
    .nav-buttons .btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* 푸터 여백 (하단 네비 높이만큼) */
    .footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    /* 메인 섹션 하단 여백 */
    .main-section {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }

    /* 모바일 검색 오버레이 개선 */
    .mobile-search-header {
        padding: 12px 16px;
        gap: 10px;
        background-color: #fff;
    }

    .mobile-search-input-wrap input {
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 28px;
    }

    .mobile-search-btn {
        padding: 12px 18px;
        font-size: 15px;
        border-radius: 8px;
    }
}

/* ========================================
   작은 모바일 화면 (480px 이하) - 상세 조정
   ======================================== */
@media (max-width: 480px) {
    /* 헤더 */
    .header {
        padding: 10px 12px;
        gap: 8px;
    }

    .logo svg {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 16px;
    }

    .nav-buttons .btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* 모바일 하단 네비 */
    .mobile-nav-item {
        font-size: 10px;
        padding: 4px 8px;
    }

    .mobile-nav-item svg {
        width: 22px;
        height: 22px;
    }

    /* 유저 메뉴 모바일 */
    .user-menu {
        padding: 4px 6px;
        gap: 4px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

    .user-email {
        display: none;
    }

    .dropdown-arrow {
        display: none;
    }

    .user-dropdown {
        right: -4px;
        min-width: 150px;
    }

    .user-dropdown a,
    .user-dropdown button {
        padding: 12px 14px;
        font-size: 14px;
    }

    /* 강의 카드 모바일 최적화 */
    .live-thumbnail {
        height: 180px;
    }

    .live-info {
        padding: 14px;
    }

    .teacher-row {
        gap: 10px;
        margin-bottom: 10px;
    }

    .teacher-avatar {
        width: 36px;
        height: 36px;
    }

    .teacher-name {
        font-size: 14px;
    }

    .teacher-school {
        font-size: 12px;
    }

    .live-title {
        font-size: 15px;
        line-height: 1.4;
    }

    .class-price {
        font-size: 15px;
    }

    .join-btn {
        padding: 12px;
        font-size: 14px;
    }

    /* 카드 버튼 영역 */
    .card-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .card-buttons .schedule-btn,
    .card-buttons .join-btn {
        flex: none;
        width: 100%;
    }

    /* 통계 배지 */
    .teacher-stats {
        gap: 6px;
    }

    .stat-badge {
        padding: 3px 8px;
        font-size: 11px;
    }

    /* 섹션 타이틀 모바일 */
    .section-title {
        font-size: 18px;
        gap: 8px;
    }

    .live-indicator {
        padding: 3px 8px;
        font-size: 11px;
    }

    /* 찜 버튼 */
    .subscribe-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* ========================================
   세로 모드 모바일 최적화
   ======================================== */
@media (max-width: 768px) and (orientation: portrait) {
    .main-section {
        padding: 16px 12px;
    }

    .live-grid {
        gap: 12px;
    }

    .section-header {
        margin-bottom: 16px;
    }

    /* 찜한 선생님 가로 스크롤 */
    .subscribed-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 12px;
        padding-bottom: 8px;
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .subscribed-grid::-webkit-scrollbar {
        display: none;
    }

    .subscribed-card {
        flex: 0 0 auto;
        width: 100px;
    }
}

/* ========================================
   가로 모드 모바일 최적화
   ======================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .live-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .live-thumbnail {
        height: 120px;
    }

    /* 결제 모달 가로 모드 */
    .payment-content {
        max-height: 100vh;
        overflow-y: auto;
    }

    .pin-keypad button {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
}

/* ========================================
   알림 시스템
   ======================================== */

/* 헤더 아이콘 버튼 공통 */
.header-icon-btn {
    display: flex;
    align-items: center;
}

.header-icon-btn .icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #5d4037;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.header-icon-btn .icon-btn:hover {
    background-color: #faf8f5;
}

/* 알림 벨 */
.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
}

.bell-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #5d4037;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.bell-btn:hover {
    background-color: #faf8f5;
}

.bell-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background-color: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* 알림 드롭다운 */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 320px;
    max-height: 400px;
    background-color: #fff;
    border: 1px solid #d7ccc8;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.active {
    display: block;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #5d4037;
}

.notification-dropdown-header a {
    font-size: 13px;
    font-weight: 400;
    color: #8d6e63;
    text-decoration: none;
}

.notification-dropdown-header a:hover {
    color: #5d4037;
    text-decoration: underline;
}

.notification-dropdown-list {
    max-height: 340px;
    overflow-y: auto;
}

/* 알림 아이템 */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #faf8f5;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: #fff8e1;
}

.notification-item.unread:hover {
    background-color: #fff3cd;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #efebe9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-icon.live {
    background-color: #ffebee;
    color: #e53935;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-body {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: #999;
}

/* 알림 빈 상태 */
.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8d6e63;
}

.notification-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    stroke: #d7ccc8;
}

.notification-empty p {
    font-size: 14px;
}

/* 알림 권한 요청 배너 */
.notification-permission-banner {
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-bottom: 1px solid #ffb74d;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-permission-banner button {
    padding: 6px 12px;
    background-color: #ff9800;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.notification-permission-banner button:hover {
    background-color: #f57c00;
}

/* 모바일 알림 */
@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;
        top: 56px;
        right: 8px;
        left: 8px;
        width: auto;
        max-height: calc(100vh - 130px);
    }
}

@media (max-width: 480px) {
    .notification-bell {
        display: none;
    }
}

/* ========================================
   선생님 모집 팝업
   ======================================== */
.recruit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.recruit-popup-overlay.active {
    display: flex;
}

.recruit-popup-content {
    background: white;
    width: 90%;
    max-width: 528px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px -12px rgba(93, 64, 55, 0.3);
    position: relative;
    animation: recruitSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes recruitSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 팝업 헤더 */
.recruit-popup-header {
    background: linear-gradient(135deg, #5d4037 0%, #8d6e63 100%);
    padding: 40px 32px;
    text-align: center;
    color: #fff;
    position: relative;
}

.recruit-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.recruit-popup-close:hover {
    color: #fff;
}

.recruit-popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.recruit-popup-icon svg {
    stroke: #fff;
}

.recruit-popup-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.recruit-popup-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* 팝업 바디 */
.recruit-popup-body {
    padding: 32px;
}

.recruit-popup-message {
    text-align: center;
    color: #5d4037;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

/* 혜택 목록 */
.recruit-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.recruit-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.recruit-feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #efebe9 0%, #d7ccc8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recruit-feature-icon svg {
    stroke: #5d4037;
}

.recruit-feature-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 2px 0;
}

.recruit-feature-desc {
    font-size: 13px;
    color: #8d6e63;
    margin: 0;
}

/* 인용문 */
.recruit-quote {
    background: linear-gradient(135deg, #faf8f5 0%, #efebe9 100%);
    border-left: 3px solid #8d6e63;
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    font-size: 14px;
    color: #5d4037;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* CTA 버튼 */
.recruit-popup-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #5d4037 0%, #6d4c41 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recruit-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.35);
}

.recruit-popup-btn:active {
    transform: translateY(0);
}

/* 팝업 푸터 */
.recruit-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background-color: #faf8f5;
    border-top: 1px solid #efebe9;
}

.recruit-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8d6e63;
    cursor: pointer;
    transition: color 0.2s;
}

.recruit-checkbox-label:hover {
    color: #5d4037;
}

.recruit-checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: #5d4037;
}

.recruit-close-text {
    background: none;
    border: none;
    font-size: 13px;
    color: #8d6e63;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s;
}

.recruit-close-text:hover {
    color: #5d4037;
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .recruit-popup-content {
        width: 95%;
        max-width: none;
        border-radius: 20px;
    }

    .recruit-popup-header {
        padding: 32px 24px;
    }

    .recruit-popup-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .recruit-popup-icon svg {
        width: 36px;
        height: 36px;
    }

    .recruit-popup-title {
        font-size: 20px;
    }

    .recruit-popup-subtitle {
        font-size: 13px;
    }

    .recruit-popup-body {
        padding: 24px;
    }

    .recruit-popup-message {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .recruit-feature-icon {
        width: 40px;
        height: 40px;
    }

    .recruit-feature-title {
        font-size: 14px;
    }

    .recruit-feature-desc {
        font-size: 12px;
    }

    .recruit-quote {
        font-size: 13px;
        padding: 14px 16px;
    }

    .recruit-popup-btn {
        padding: 14px;
        font-size: 15px;
    }

    .recruit-popup-footer {
        padding: 14px 24px;
    }
}

/* ========================================
   결제 후 PIN 등록 유도 모달
   ======================================== */
.pin-register-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
}

.pin-register-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-register-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.pin-register-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background-color: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

.pin-register-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.pin-register-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.pin-register-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.pin-register-input {
    background-color: #faf8f5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.pin-register-input label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #5d4037;
    margin-bottom: 16px;
}

.pin-register-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pin-register-actions {
    display: flex;
    gap: 12px;
}

.pin-register-skip {
    flex: 1;
    padding: 14px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pin-register-skip:hover {
    background-color: #e0e0e0;
}

.pin-register-btn {
    flex: 1;
    padding: 14px;
    background-color: #5d4037;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.pin-register-btn:hover:not(:disabled) {
    background-color: #4e342e;
}

.pin-register-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .pin-register-content {
        width: 95%;
        padding: 24px 20px;
    }

    .pin-register-icon {
        font-size: 48px;
    }

    .pin-register-title {
        font-size: 20px;
    }

    .pin-register-desc {
        font-size: 13px;
    }

    .pin-register-input {
        padding: 16px;
    }

    .pin-register-actions {
        flex-direction: column;
    }

    /* 결제 수단 모바일 */
    .payment-methods {
        padding: 0 12px;
        gap: 10px;
    }

    .payment-method {
        padding: 14px;
        gap: 12px;
    }

    .method-icon {
        font-size: 24px;
    }

    .method-name {
        font-size: 14px;
    }

    .method-desc {
        font-size: 11px;
    }
}

/* ========================================
   결제 확인 모달
   ======================================== */
.payment-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.payment-confirm-modal {
    background-color: #fff;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.payment-confirm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.payment-confirm-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.payment-confirm-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.payment-confirm-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.payment-confirm-content {
    padding: 20px 24px 24px;
}

/* 강의 정보 카드 */
.payment-lecture-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: #faf8f5;
    border-radius: 12px;
    margin-bottom: 20px;
}

.payment-lecture-thumbnail {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.payment-lecture-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.payment-lecture-thumbnail .live-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.payment-lecture-info {
    flex: 1;
    min-width: 0;
}

.payment-lecture-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.payment-lecture-teacher {
    font-size: 14px;
    color: #666;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.teacher-icon {
    font-size: 14px;
}

.school-badge {
    background-color: #e3f2fd;
    color: #1976d2;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.payment-lecture-subject {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* 결제 금액 */
.payment-amount-box {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.payment-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    padding: 8px 0;
}

.payment-amount-row.total {
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
    padding-top: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.payment-total-price {
    color: #5d4037;
    font-size: 20px;
}

/* 등록된 카드 정보 */
.registered-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background-color: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 16px;
}

.card-icon {
    font-size: 24px;
}

.card-details {
    flex: 1;
}

.card-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.card-num {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.change-card-btn {
    background: none;
    border: 1px solid #ccc;
    color: #666;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.change-card-btn:hover {
    border-color: #999;
    color: #333;
}

/* 결제 버튼 */
.payment-confirm-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #5d4037, #4e342e);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.payment-confirm-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(93, 64, 55, 0.3);
}

.payment-confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.payment-notice {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin: 0;
}

.payment-notice a {
    color: #5d4037;
    text-decoration: underline;
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .payment-confirm-modal {
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }

    .payment-confirm-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .payment-lecture-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .payment-lecture-thumbnail {
        width: 100px;
        height: 100px;
    }

    .payment-lecture-teacher {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ========================================
   강의 소개 모달
   ======================================== */
.class-intro-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

.class-intro-modal {
    background-color: #fff;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.class-intro-header {
    position: relative;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.class-intro-badge {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.class-intro-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.class-intro-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.class-intro-body {
    padding: 24px;
}

.class-intro-teacher {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.class-intro-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f5f5f5;
}

.class-intro-teacher-info {
    flex: 1;
}

.class-intro-teacher-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.class-intro-teacher-school {
    font-size: 13px;
    color: #1976d2;
    background-color: #e3f2fd;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.class-intro-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
    line-height: 1.3;
}

.class-intro-price {
    font-size: 24px;
    font-weight: 700;
    color: #5d4037;
    margin-bottom: 20px;
}

.class-intro-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 20px 0;
}

.class-intro-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
}

.class-intro-description {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    white-space: pre-line;
    max-height: 200px;
    overflow-y: auto;
    padding: 16px;
    background-color: #faf8f5;
    border-radius: 12px;
}

.class-intro-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.class-intro-highlights .highlight-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
}

.class-intro-highlights .highlight-icon {
    font-size: 14px;
}

.class-intro-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    background-color: #faf8f5;
}

.class-intro-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.class-intro-btn.secondary {
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.class-intro-btn.secondary:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.class-intro-btn.primary {
    background: linear-gradient(135deg, #5d4037, #4e342e);
    color: #fff;
}

.class-intro-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(93, 64, 55, 0.3);
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .class-intro-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .class-intro-modal {
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
    }

    .class-intro-body {
        padding: 20px;
    }

    .class-intro-title {
        font-size: 18px;
    }

    .class-intro-price {
        font-size: 20px;
    }

    .class-intro-footer {
        flex-direction: column;
        gap: 8px;
    }

    .class-intro-btn {
        width: 100%;
    }
}

/* 1:1 과외 배지 */
.live-badge.onetoone {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
    color: white;
    font-size: 11px;
}
