/* ============================================
   Teacher Detail Page Styles
   ============================================ */

/* Keep .app width matching other pages */
.app {
    min-height: 100vh;
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 !important;
    padding-bottom: 0 !important;
    background: #F8F8FA !important;
}

@media (min-width: 768px) {
    body {
        background: #FFFFFF;
    }
}

/* Loading State (전환 시 흰색 배경) */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #FFFFFF;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: #374151;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.error-message {
    font-size: 18px;
    font-weight: 600;
    color: #2D1B4E;
    margin-bottom: 8px;
}

.error-link {
    font-size: 14px;
    color: #5B2D8E;
    text-decoration: none;
    font-weight: 500;
}

.error-link:hover {
    text-decoration: underline;
}

/* ============================================
   [1] Hero Section
   ============================================ */
.hero-section {
    position: relative;
    padding-bottom: 20px;
    background: #fff;
    margin-bottom: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hero-cover {
    height: 200px;
    background: linear-gradient(135deg, #7C6DD8 0%, #9B8CE8 50%, #B8ACF6 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.cover-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #fff, rgba(255,255,255,0));
}

.hero-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top, 0px);
    z-index: 10;
    box-sizing: border-box;
    pointer-events: none;
}

.hero-header .back-btn {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    left: 16px;
    pointer-events: auto;
}

.hero-header .share-btn {
    pointer-events: auto;
}

.hero-header .header-btns-right {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: 16px;
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.header-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.header-btn svg {
    width: 20px;
    height: 20px;
    stroke: #2D1B4E;
}

/* Profile Section */
.hero-profile {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 0 20px;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 0 0 4px rgba(255,255,255,0.9), 0 0 20px rgba(255,255,255,0.5);
    overflow: hidden;
    border: 4px solid #fff;
    flex-shrink: 0;
    position: relative;
}

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

.avatar-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, #F3EEFF, #E5D4FF);
}

.profile-avatar img:not([src=""]) + .avatar-placeholder {
    display: none;
}

.profile-info {
    flex: 1;
    padding-bottom: 8px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.profile-name {
    font-size: 24px;
    font-weight:600;
    color: #2D1B4E;
    margin: 0;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #5B2D8E, #7B4DC0);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
}

.verified-badge svg {
    width: 14px;
    height: 14px;
}


/* Major badges in hero */
.profile-major-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.profile-major-badges:empty {
    display: none;
}

.major-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(91, 45, 142, 0.08);
    color: #5B2D8E;
    font-size: 12px;
    font-weight: 600;
    border-radius: 16px;
    border: 1px solid rgba(91, 45, 142, 0.15);
}

.major-badge .badge-icon {
    font-size: 11px;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.rating-stars {
    color: #F59E0B;
    letter-spacing: -2px;
}

.rating-value {
    font-weight: 700;
    color: #2D1B4E;
}

.rating-count {
    color: #999999;
}

/* ============================================
   [2] Lesson Subjects
   ============================================ */
.subjects-section {
    padding: 16px 20px;
}

.subject-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subject-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #F3EEFF;
    color: #5B2D8E;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.subject-chip:hover {
    background: #E5D4FF;
}

.subject-chip .chip-icon {
    font-size: 14px;
}

/* ============================================
   [3] Location & Travel Range
   ============================================ */
.location-section {
    padding: 16px 20px;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.location-icon {
    width: 18px;
    height: 18px;
    stroke: #5B2D8E;
    flex-shrink: 0;
}

.location-text {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

.location-radius {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(91, 45, 142, 0.08);
    color: #5B2D8E;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
}

.travel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #F0F0F2;
    color: #666666;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-left: auto;
}

.travel-badge svg {
    width: 14px;
    height: 14px;
    stroke: #666666;
}

/* Travel Pill (next to address) */
.travel-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(91, 45, 142,0.08), rgba(139,92,246,0.12));
    color: #5B2D8E;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(91, 45, 142,0.15);
    white-space: nowrap;
}

.travel-pill svg {
    stroke: #5B2D8E;
    flex-shrink: 0;
}

/* ============================================
   [4] One-Liner Introduction
   ============================================ */
.intro-section {
    padding: 24px 20px;
    background: linear-gradient(135deg, #FAFAFF, #F3EEFF);
    margin: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.intro-quote {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    text-align: center;
}

.quote-mark {
    font-size: 32px;
    color: #5B2D8E;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.5;
}

.quote-text {
    font-size: 15px;
    font-weight: 500;
    color: #2D3748;
    line-height: 1.6;
    font-style: normal;
    margin: 0;
    padding-top: 8px;
    text-align: center;
}

/* ============================================
   Section Common Styles
   ============================================ */
.section {
    padding: 24px 20px;
    background: #fff;
    margin: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-bottom: none;
}

.section:last-of-type {
    border-bottom: none;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #2D3748;
    margin: 0 0 16px 0;
}

.section-header .section-title {
    margin: 0;
}

.title-icon {
    font-size: 18px;
}

/* ============================================
   [4.5] Teacher Gallery (Photos/Videos)
   ============================================ */
.gallery-section {
    background: #fff;
}

/* Gallery Grid View */
.gallery-grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-grid-item {
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}
.gallery-grid-item:hover { transform: scale(1.03); }

.gallery-grid-item img {
    width: 100%; height: 100%; object-fit: cover;
}

.gallery-grid-item.video-item {
    background: linear-gradient(135deg, #2D1B4E, #2D2D44);
    display: flex; align-items: center; justify-content: center;
}
.gallery-grid-item .video-play-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
}

.gallery-grid-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff; font-size: 11px; padding: 20px 8px 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Legacy scroll support */
.gallery-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-scroll-item {
    flex: 0 0 160px;
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}
.gallery-scroll-item:hover { transform: scale(1.02); }

.gallery-scroll-item img {
    width: 100%; height: 100%; object-fit: cover;
}

.gallery-scroll-item.video-item {
    background: linear-gradient(135deg, #2D1B4E, #2D2D44);
    display: flex; align-items: center; justify-content: center;
}
.gallery-scroll-item .video-play-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
}

.gallery-scroll-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff; font-size: 11px; padding: 20px 8px 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9); z-index: 500;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; padding: 20px; cursor: pointer;
}
.gallery-lightbox img {
    max-width: 100%; max-height: 80vh; border-radius: 8px;
    object-fit: contain;
}
.lightbox-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.2); border: none; color: #fff;
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-caption {
    color: #fff; font-size: 14px; margin-top: 12px; text-align: center;
}

/* ============================================
   [5] Media Portfolio
   ============================================ */
.media-section {
    background: #fff;
}

.media-container {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.media-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.media-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2D1B4E, #2D2D44);
    color: #fff;
    font-size: 48px;
}

/* ============================================
   [6] Lesson Introduction (Free-Text)
   ============================================ */
.lesson-intro-section {
    background: #fff;
    /* inherits card style from .section */
}

.lesson-intro-content {
    background: #F8F8FA;
    border-radius: 14px;
    padding: 20px 18px;
    font-size: 15px;
    line-height: 1.8;
    color: #2D1B4E;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Lesson Method Badges */
.lesson-info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 4px;
}

.lesson-method-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    border: 1.5px solid;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.lesson-method-offline {
    background: #EFF6FF;
    color: #1D4ED8;
    border-color: #BFDBFE;
}

.lesson-method-online {
    background: #F5F3FF;
    color: #5B2D8E;
    border-color: #D8D3C86FE;
}

/* Keep old lesson-details styles for backward compatibility */
.lesson-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.lesson-detail-item {
    background: #F8F8FA;
    border-radius: 12px;
    padding: 16px;
}

.lesson-detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #999999;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #2D1B4E;
    line-height: 1.5;
}

.detail-value.price {
    color: #5B2D8E;
    font-size: 18px;
    font-weight:600;
}

.detail-value.description-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #3A3A4E;
    white-space: pre-line;
}

/* ============================================
   [7] Payment Methods
   ============================================ */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: #F8F8FA;
    border-radius: 12px;
    min-width: 80px;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.payment-method:hover {
    background: #F3EEFF;
}

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

.payment-name {
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    text-align: center;
}

/* ============================================
   [8] Career (Timeline Style)
   ============================================ */
.career-list {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 0;
    position: relative;
}

.career-list::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, #5B2D8E, #E5D4FF);
    border-radius: 1px;
}

.career-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    position: relative;
}

.career-item:last-child {
    padding-bottom: 0;
}

.career-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2.5px solid #5B2D8E;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-left: -20px;
}

.career-item:first-child .career-bullet {
    background: linear-gradient(135deg, #5B2D8E, #7B4DC0);
    border-color: #5B2D8E;
    width: 12px;
    height: 12px;
    margin-top: 3px;
}

.career-content {
    flex: 1;
    background: #F8F8FA;
    border-radius: 10px;
    padding: 12px 14px;
}

.career-year {
    font-size: 12px;
    font-weight: 700;
    color: #5B2D8E;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.career-text {
    font-size: 14px;
    color: #2D1B4E;
    line-height: 1.5;
    font-weight: 500;
}

.career-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin-top: 4px;
}

/* Career Proof Photos Gallery */
.career-proofs {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #EEEAE2;
}

.career-proofs-title {
    font-size: 14px;
    font-weight: 600;
    color: #2D1B4E;
    margin: 0 0 12px 0;
}

.career-proofs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.career-proof-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #EEEAE2;
}

.career-proof-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.career-proof-item:hover img {
    transform: scale(1.05);
}

.career-proof-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 6px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
}

/* Trial Lesson Badge */
.trial-lesson-section {
    padding: 0 20px !important;
}

.trial-lesson-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.trial-lesson-badge.trial-free {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.trial-lesson-badge.trial-paid {
    background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
    color: #9A3412;
    border: 1px solid #FED7AA;
}

.trial-lesson-badge .trial-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.trial-lesson-badge .trial-text {
    flex: 1;
}

.trial-lesson-badge .trial-price {
    font-size: 15px;
    font-weight: 700;
}

/* ============================================
   [9] Reviews
   ============================================ */
.review-count-badge {
    padding: 4px 12px;
    background: #F3EEFF;
    color: #5B2D8E;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
}

.reviews-summary {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: #F8F8FA;
    border-radius: 16px;
    margin-bottom: 20px;
}

.summary-rating {
    text-align: center;
    min-width: 80px;
}

.big-rating {
    font-size: 40px;
    font-weight:600;
    color: #2D1B4E;
    line-height: 1;
}

.rating-stars-large {
    color: #F59E0B;
    font-size: 16px;
    letter-spacing: -1px;
    margin-top: 4px;
}

.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-label {
    font-size: 12px;
    color: #999999;
    width: 20px;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #EDEDF0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bar-count {
    font-size: 11px;
    color: #999999;
    width: 24px;
    text-align: right;
}

/* Review List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    background: #fff;
    border: 1px solid #EDEDF0;
    border-radius: 14px;
    padding: 16px;
}

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

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F3EEFF, #E5D4FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #5B2D8E;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #2D1B4E;
    margin-bottom: 2px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999999;
}

.review-stars {
    color: #F59E0B;
    letter-spacing: -1px;
}

.review-content {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

/* Empty Reviews */
.empty-reviews {
    text-align: center;
    padding: 40px 20px;
}

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

.empty-reviews p {
    font-size: 15px;
    color: #666666;
    margin: 0;
}

.empty-reviews .empty-sub {
    font-size: 13px;
    color: #999999;
    margin-top: 4px;
}

/* ============================================
   Sticky Footer
   ============================================ */
.bottom-spacer {
    height: 170px;
}

.sticky-footer {
    position: fixed;
    bottom: calc(65px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #EDEDF0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    z-index: 200;
    box-sizing: border-box;
}

.footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    font-family: inherit;
}

.footer-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Left button (30%) - Inquiry / Chat */
.inquiry-btn {
    flex: 0 0 30%;
    background: #fff;
    color: #6c5ce7;
    border: 2px solid #6c5ce7;
    font-size: 14px;
}

.inquiry-btn:hover {
    background: #F3EEFF;
}

.inquiry-btn svg {
    stroke: #6c5ce7;
}

/* Right button (70%) - Apply for Lesson */
.apply-btn {
    flex: 0 0 calc(70% - 12px);
    background: #6c5ce7;
    color: #fff;
    border: 2px solid #6c5ce7;
}

.apply-btn:hover {
    background: #4A2474;
    border-color: #4A2474;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.35);
}

/* ============================================
   Toast
   ============================================ */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2D1B4E;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Bridge Modal
   ============================================ */
.bridge-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    z-index: 500;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.bridge-modal {
    background: #fff; border-radius: 20px; width: 100%; max-width: 400px;
    overflow: hidden; animation: bridgeFadeIn 0.25s ease;
}
@keyframes bridgeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.bridge-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid #EDEDF0;
}
.bridge-modal-title { font-size: 18px; font-weight: 700; color: #2D1B4E; }
.bridge-modal-close { background: none; border: none; font-size: 26px; cursor: pointer; color: #999999; line-height: 1; padding: 0; }
.bridge-modal-body { padding: 22px; }
.bridge-modal-desc { font-size: 14px; color: #666666; margin: 0 0 18px 0; line-height: 1.5; }

.bridge-options { display: flex; flex-direction: column; gap: 12px; }

.bridge-option-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 22px 16px; border: 2px solid #EDEDF0; border-radius: 16px;
    background: #fff; cursor: pointer; transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    text-align: center; font-family: inherit;
}
.bridge-option-card:hover { border-color: #7B4DC0; background: #FAFAFF; }
.bridge-option-card.primary { border-color: #5B2D8E; background: linear-gradient(135deg, #FAFAFF, #F3EEFF); }
.bridge-option-card.primary:hover { background: linear-gradient(135deg, #F3EEFF, #E5D4FF); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91, 45, 142,0.15); }

.bridge-option-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: #F3EEFF; display: flex; align-items: center; justify-content: center;
}
.bridge-option-icon svg { width: 22px; height: 22px; stroke: #5B2D8E; }
.bridge-option-card.primary .bridge-option-icon { background: linear-gradient(135deg, #5B2D8E, #7B4DC0); }
.bridge-option-card.primary .bridge-option-icon svg { stroke: #fff; }

.bridge-option-title { font-size: 16px; font-weight: 700; color: #2D1B4E; }
.bridge-option-card.primary .bridge-option-title { color: #5B2D8E; }
.bridge-option-desc { font-size: 13px; color: #999999; line-height: 1.5; }

/* ============================================
   Book Now Modal (Lesson Preference Form)
   ============================================ */
.book-now-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    z-index: 500;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.book-now-modal {
    background: #fff; border-radius: 20px; width: 100%; max-width: 420px;
    overflow: hidden; animation: bridgeFadeIn 0.25s ease;
    max-height: 90vh; display: flex; flex-direction: column;
}
.book-now-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid #EDEDF0;
}
.book-now-back {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: #F8F8FA; display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: background 0.2s;
}
.book-now-back:hover { background: #F3EEFF; }
.book-now-title { flex: 1; font-size: 17px; font-weight: 700; color: #2D1B4E; }
.book-now-close { background: none; border: none; font-size: 26px; cursor: pointer; color: #999999; line-height: 1; padding: 0; }
.book-now-body { padding: 20px; overflow-y: auto; flex: 1; }
.book-now-footer { padding: 16px 20px; border-top: 1px solid #EDEDF0; display: flex; gap: 10px; }

/* Teacher Info in Book Now */
.book-now-teacher-row {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; background: #F8F8FA; border-radius: 14px; margin-bottom: 20px;
}
.book-now-teacher-avatar {
    width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
    background: linear-gradient(135deg, #F3EEFF, #E5D4FF);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.book-now-teacher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.book-now-avatar-placeholder { font-size: 14px; font-weight:600; color: #5B2D8E; }
.book-now-teacher-details { flex: 1; }
.book-now-teacher-name { font-size: 15px; font-weight: 700; color: #2D1B4E; margin-bottom: 2px; }
.book-now-teacher-meta { font-size: 12px; color: #999999; margin-bottom: 4px; }
.book-now-teacher-rate { font-size: 14px; font-weight: 700; color: #5B2D8E; }

/* Form Elements */
.book-now-form-group { margin-bottom: 18px; }
.book-now-label { display: block; font-size: 13px; font-weight: 600; color: #666666; margin-bottom: 8px; }
.book-now-input {
    width: 100%; padding: 12px 14px; border: 1px solid #EDEDF0; border-radius: 10px;
    font-size: 14px; font-family: inherit; background: #F8F8FA; color: #2D1B4E;
    outline: none; box-sizing: border-box; transition: border-color 0.2s;
}
.book-now-input:focus { border-color: #5B2D8E; box-shadow: 0 0 0 3px rgba(91, 45, 142,0.08); }
.book-now-input.book-now-small { width: 70px; text-align: center; padding: 10px 8px; }
.book-now-hint { font-size: 11px; color: #999999; margin-top: 4px; }
.book-now-freq-row { display: flex; align-items: center; gap: 8px; }
.book-now-freq-item { display: flex; align-items: center; gap: 4px; }
.book-now-freq-unit { font-size: 13px; color: #666666; font-weight: 500; }
.book-now-freq-sep { font-size: 16px; color: #999999; font-weight: 700; }
.book-now-price-wrap { position: relative; }
.book-now-price-wrap .book-now-input { padding-right: 40px; }
.book-now-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #999999; font-weight: 500; }
.book-now-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.book-now-mode-card {
    padding: 12px; border: 2px solid #EDEDF0; border-radius: 10px; text-align: center;
    cursor: pointer; transition: opacity 0.2s, transform 0.2s, background-color 0.2s; font-size: 14px; font-weight: 600; color: #666666;
}
.book-now-mode-card:hover { border-color: #7B4DC0; }
.book-now-mode-card.selected { border-color: #5B2D8E; background: rgba(91, 45, 142,0.04); color: #5B2D8E; }

/* 결제 방식 선택 카드 (바로 예약 모달) */
.bn-pay-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.bn-pay-card {
    padding: 10px 6px; border: 2px solid #EDEDF0; border-radius: 10px; text-align: center;
    cursor: pointer; transition: opacity 0.2s, transform 0.2s, background-color 0.2s; display: flex; flex-direction: column; gap: 3px;
}
.bn-pay-card:hover { border-color: #7B4DC0; }
.bn-pay-card.selected { border-color: #5B2D8E; background: rgba(91, 45, 142,0.04); }
.bn-pay-icon { font-size: 20px; }
.bn-pay-name { font-size: 13px; font-weight: 700; color: #2D2D3A; }
.bn-pay-card.selected .bn-pay-name { color: #5B2D8E; }
.bn-pay-desc { font-size: 11px; color: #999999; line-height: 1.4; }
.bn-pay-notice {
    margin-top: 8px; padding: 10px 12px; background: #FFF8E7; border: 1px solid #FBBF24;
    border-radius: 8px; font-size: 12px; color: #92400E; line-height: 1.5;
}

.book-now-btn {
    flex: 1; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: opacity 0.2s, transform 0.2s, background-color 0.2s; border: none;
}
.book-now-btn.primary { background: linear-gradient(135deg, #5B2D8E, #7B4DC0); color: #fff; box-shadow: 0 4px 15px rgba(91, 45, 142,0.3); }
.book-now-btn.secondary { background: #F8F8FA; color: #666666; border: 1px solid #EDEDF0; }
.book-now-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Price Summary */
.book-now-price-summary {
    background: linear-gradient(135deg, #FAFAFF, #F3EEFF);
    border-radius: 14px; padding: 16px; margin-top: 8px; display: none;
}
.price-summary-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 15px; font-weight: 600; color: #2D1B4E;
}
.price-summary-amount { font-size: 18px; font-weight:600; color: #5B2D8E; }

/* Refund Consent in Book Now Modal */
.bn-refund-consent {
    margin-top: 16px;
    border: 1px solid #EDEDF0;
    border-radius: 12px;
    overflow: hidden;
}
.bn-refund-summary {
    padding: 12px 14px;
    background: #FFF8F0;
    font-size: 12px;
    line-height: 1.7;
    color: #78716C;
}
.bn-refund-summary strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2D1B4E;
    margin-bottom: 4px;
}
.bn-refund-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    background: #fff;
}
.bn-refund-check-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #5B2D8E;
    flex-shrink: 0;
    margin-top: 1px;
}
.bn-refund-check-row span {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}
.bn-required-tag {
    color: #DC2626;
    font-weight: 700;
    margin-right: 2px;
}

/* ============================================
   [4] Targeting Section
   ============================================ */
.targeting-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.targeting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #F8F8FA;
    border-radius: 14px;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.targeting-item:hover {
    background: #F3EEFF;
}

.targeting-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight:700;
    color: #5B2D8E;
    flex-shrink: 0;
    line-height: 1;
}

.targeting-text {
    font-size: 14px;
    font-weight: 600;
    color: #2D1B4E;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
}

.targeting-text .targeting-main {
    font-size: 14px;
    font-weight: 700;
    color: #2D1B4E;
    line-height: 1.4;
}

.targeting-text .targeting-sub {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #999999;
    margin-top: 3px;
    line-height: 1.5;
}

/* ============================================
   [6] Pricing Card
   ============================================ */
.lesson-intro-fee {
    margin-top: 16px;
}

.pricing-card {
    background: #fff;
    border-radius: 18px;
    border: 1.5px solid #EAE1F5;
    box-shadow: 0 4px 16px rgba(91, 45, 142, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.pricing-row-main {
    background: linear-gradient(135deg, #FAFAFF, #F5F3FF);
}

.pricing-divider {
    height: 1px;
    background: #EAE1F5;
    margin: 0 16px;
}

.pricing-label {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
}

.pricing-label em {
    font-style: normal;
    font-size: 12px;
    color: #999999;
    margin-left: 4px;
}

.pricing-value {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.pricing-amount {
    font-size: 20px;
    font-weight:600;
    color: #5B2D8E;
    letter-spacing: -0.5px;
    line-height: 1;
}

.pricing-amount-main {
    font-size: 26px;
    color: #5B2D8E;
}

.pricing-unit {
    font-size: 13px;
    font-weight: 600;
    color: #999999;
}

.pricing-trial-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.pricing-trial-free {
    background: #ECFDF5;
    color: #065F46;
}

.pricing-trial-paid {
    background: #F5F3FF;
    color: #4A2474;
}

/* ============================================
   [7] Curriculum Section (Optional)
   ============================================ */
.curriculum-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 20px;
}

.curriculum-steps::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(to bottom, #5B2D8E, #E5D4FF);
    border-radius: 1px;
}

.curriculum-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    position: relative;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B2D8E, #7B4DC0);
    color: #fff;
    font-size: 13px;
    font-weight:600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-left: -25px;
}

.step-content {
    flex: 1;
    background: #F8F8FA;
    border-radius: 12px;
    padding: 14px 16px;
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: #2D1B4E;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

/* ============================================
   [9] FAQ Section (Optional)
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid #EDEDF0;
    border-radius: 14px;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #2D1B4E;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #FAFAFF;
}

.faq-question .faq-q-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F3EEFF, #E5D4FF);
    color: #5B2D8E;
    font-size: 13px;
    font-weight:600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-question .faq-arrow {
    margin-left: auto;
    font-size: 12px;
    color: #999999;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 18px 16px 54px;
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 380px) {
    .hero-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -50px;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
    }

    .profile-name-row {
        justify-content: center;
    }

    .profile-rating {
        justify-content: center;
    }

    .gallery-grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .lesson-details-grid {
        grid-template-columns: 1fr;
    }

    .pricing-amount-main {
        font-size: 22px;
    }

    .lesson-method-tag {
        font-size: 13px;
        padding: 8px 14px;
    }

    .sticky-footer {
        gap: 8px;
        padding: 12px 14px;
    }

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

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