        /* shadcn/ui 디자인 시스템 커스텀 속성 */
        :root {
            --background: 0 0% 0%;
            --foreground: 0 0% 98%;
            --card: 0 0% 3.9%;
            --card-foreground: 0 0% 98%;
            --popover: 0 0% 3.9%;
            --popover-foreground: 0 0% 98%;
            --primary: 346 100% 60%;
            --primary-foreground: 0 0% 98%;
            --secondary: 0 0% 14.9%;
            --secondary-foreground: 0 0% 98%;
            --muted: 0 0% 14.9%;
            --muted-foreground: 0 0% 63.9%;
            --accent: 0 0% 14.9%;
            --accent-foreground: 0 0% 98%;
            --destructive: 0 84.2% 60.2%;
            --destructive-foreground: 0 0% 98%;
            --border: 0 0% 14.9%;
            --input: 0 0% 14.9%;
            --ring: 346 100% 60%;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #FFFFFF;
            min-height: 100vh;
            color: #000000;
            overflow-x: hidden;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        /* Dark theme styles - Modern Gray */
        /* CSS Variables for consistent theming */
        :root {
            --bg-primary-light: #FFFFFF;
            --bg-secondary-light: #F8F8F8;
            --bg-tertiary-light: #FFFFFF;
            --text-primary-light: #000000;
            --text-secondary-light: #666666;
            --border-light: #E0E0E0;

            --bg-primary-dark: #0f0f23;
            --bg-secondary-dark: #1a1a2e;
            --bg-tertiary-dark: rgba(255, 255, 255, 0.05);
            --text-primary-dark: #ffffff;
            --text-secondary-dark: #aaaaaa;
            --border-dark: rgba(255, 255, 255, 0.1);
            --accent-pink: #667eea;
            --accent-purple: #764ba2;
        }

        body[data-theme="dark"] {
            background: var(--bg-primary-dark) !important;
            color: var(--text-primary-dark) !important;
        }

        /* Light theme styles */
        body[data-theme="light"] {
            background: #FFFFFF !important;
            color: #000000 !important;
        }

        /* Blue theme styles */
        body[data-theme="blue"] {
            background: #001122;
            color: #FFFFFF;
        }

        /* Pink theme styles */
        body[data-theme="pink"] {
            background: #220011;
            color: #FFFFFF;
        }

        /* Theme-aware utility classes */
        .theme-bg-primary {
            background: #1A1A1A;
            transition: background-color 0.3s ease;
        }

        .theme-bg-secondary {
            background: #333333;
            transition: background-color 0.3s ease;
        }

        .theme-border {
            border: 1px solid #333333;
            transition: border-color 0.3s ease;
        }

        /* Light theme overrides */
        body[data-theme="light"] .theme-bg-primary {
            background: #F8F8F8 !important;
            border: 1px solid #E0E0E0;
        }

        body[data-theme="light"] .theme-bg-secondary {
            background: #E8E8E8 !important;
            color: #333333 !important;
        }

        body[data-theme="light"] .theme-border {
            border-color: #C0C0C0 !important;
        }

        body[data-theme="light"] .theme-text-primary {
            color: #000000 !important;
        }

        /* 문장 네비게이션 박스 - 라이트 테마 */
        body[data-theme="light"] .sentence-nav-box {
            background: #FFFFFF !important;
            border: 2px solid #E0E0E0 !important;
        }

        body[data-theme="light"] .sentence-nav-box button {
            background: #F0F0F0 !important;
            color: #333333 !important;
            border: 1px solid #D0D0D0 !important;
        }

        body[data-theme="light"] .sentence-nav-box button:hover {
            background: #E0E0E0 !important;
        }

        body[data-theme="light"] #sentenceCounter {
            color: #6B6B6D !important;
        }

        body[data-theme="dark"] #sentenceCounter {
            color: #9B9B9E !important;
        }

        body[data-theme="blue"] #sentenceCounter {
            color: #94B5D8 !important;
        }

        body[data-theme="pink"] #sentenceCounter {
            color: #D094B5 !important;
        }

        body[data-theme="light"] .theme-text-secondary {
            color: #333333 !important;
        }

        /* Dark theme overrides - Modern K-Beauty Style */
        body[data-theme="dark"] .theme-bg-primary {
            background: var(--bg-tertiary-dark) !important;
            border: 1px solid var(--border-dark);
        }

        body[data-theme="dark"] .theme-bg-secondary {
            background: var(--bg-tertiary-dark) !important;
            color: var(--text-primary-dark) !important;
        }

        body[data-theme="dark"] .theme-border {
            border-color: var(--border-dark) !important;
        }

        body[data-theme="dark"] .theme-text-primary {
            color: var(--text-primary-dark) !important;
        }

        body[data-theme="dark"] .theme-text-secondary {
            color: var(--text-secondary-dark) !important;
        }

        /* Theme Toggle Button Styles */
        .theme-toggle {
            position: relative;
        }

        .theme-toggle:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
        }

        body[data-theme="dark"] .theme-toggle {
            background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple)) !important;
            box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
        }

        body[data-theme="dark"] .theme-toggle:hover {
            box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
        }

        /* Blue theme overrides */
        body[data-theme="blue"] .theme-bg-primary {
            background: #132337 !important;
            border: 1px solid #1E3A5F;
        }

        body[data-theme="blue"] .theme-bg-secondary {
            background: #1A2F4A !important;
            color: #E8F1FF !important;
        }

        body[data-theme="blue"] .theme-border {
            border-color: #1E3A5F !important;
        }

        body[data-theme="blue"] .theme-text-primary {
            color: #E8F1FF !important;
        }

        body[data-theme="blue"] .theme-text-secondary {
            color: #94B5D8 !important;
        }

        /* Pink theme overrides */
        body[data-theme="pink"] .theme-bg-primary {
            background: #2A1A2E !important;
            border: 1px solid #3D2944;
        }

        body[data-theme="pink"] .theme-bg-secondary {
            background: #352038 !important;
            color: #FFE8F5 !important;
        }

        body[data-theme="pink"] .theme-border {
            border-color: #3D2944 !important;
        }

        body[data-theme="pink"] .theme-text-primary {
            color: #FFE8F5 !important;
        }

        body[data-theme="pink"] .theme-text-secondary {
            color: #D094B5 !important;
        }

        /* 모드 버튼 기본 스타일 */
        .mode-btn {
            background: #333;
            color: white;
        }

        .mode-btn.active {
            background: #FF1B6B !important;
            color: white !important;
        }

        /* 모드 버튼 - 라이트 테마 */
        body[data-theme="light"] .mode-btn {
            background: #F0F0F0 !important;
            color: #333333 !important;
            border: 1px solid #D0D0D0 !important;
        }

        body[data-theme="light"] .mode-btn:hover {
            background: #E0E0E0 !important;
        }

        body[data-theme="light"] .mode-btn.active {
            background: #FF1B6B !important;
            color: white !important;
            border: none !important;
        }

        /* 스피드 슬라이더 기본 스타일 */
        .speed-slider {
            background: #333;
        }

        /* 스피드 슬라이더 - 라이트 테마 */
        body[data-theme="light"] .speed-slider {
            background: #E0E0E0 !important;
        }

        body[data-theme="light"] .speed-slider::-webkit-slider-thumb {
            background: #FF1B6B !important;
            border-radius: 50%;
            width: 15px;
            height: 15px;
            -webkit-appearance: none;
        }

        body[data-theme="light"] .speed-slider::-moz-range-thumb {
            background: #FF1B6B !important;
            border-radius: 50%;
            width: 15px;
            height: 15px;
            border: none;
        }

        .app-container {
            max-width: 600px;
            margin: 0 auto;
            min-height: 100vh;
            position: relative;
            padding-bottom: 80px;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        /* Light theme backgrounds */
        body[data-theme="light"] .app-container,
        body[data-theme="light"] .screen-container,
        body[data-theme="light"] div[id$="Screen"] {
            background: #FFFFFF !important;
            background-color: #FFFFFF !important;
            color: #000000 !important;
        }

        /* Dark theme backgrounds */
        body[data-theme="dark"] .app-container,
        body[data-theme="dark"] .screen-container,
        body[data-theme="dark"] div[id$="Screen"] {
            background: var(--bg-secondary-dark) !important;
            background-color: var(--bg-secondary-dark) !important;
            color: var(--text-primary-dark) !important;
        }

        /* 상단 헤더 */
        .header {
            padding: 60px 20px 30px;
            position: relative;
        }

        .theme-toggle {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(128, 128, 128, 0.3);
            border: 1px solid rgba(128, 128, 128, 0.3);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            color: white;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

        body[data-theme="light"] .theme-toggle {
            background: rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.2);
            color: #333;
        }

        /* Light theme specific adjustments for UI elements */
        body[data-theme="light"] .header {
            color: #000000;
        }

        body[data-theme="light"] .app-title {
            color: #FF1B6B;
            /* Keep the brand color */
        }

        body[data-theme="dark"] .app-title {
            color: #FF4081;
            /* Brighter pink for dark theme */
        }

        body[data-theme="blue"] .app-title {
            color: #FF6B9D;
            /* Softer pink for blue theme */
        }

        body[data-theme="pink"] .app-title {
            color: #FFB6C1;
            /* Light pink for pink theme */
        }

        body[data-theme="light"] .app-subtitle {
            color: #666666;
        }

        body[data-theme="light"] .stat-value {
            color: #000000;
        }

        body[data-theme="light"] .stat-label {
            color: #666666;
        }

        body[data-theme="light"] .bottom-nav {
            background: #FFFFFF;
            border-top: 1px solid #E0E0E0;
        }

        /* Dark theme bottom navigation */
        body[data-theme="dark"] .bottom-nav {
            background: #2C2C2E !important;
            border-top: 1px solid #38383A !important;
        }

        /* Blue theme bottom navigation */
        body[data-theme="blue"] .bottom-nav {
            background: #132337 !important;
            border-top: 1px solid #1E3A5F !important;
        }

        /* Pink theme bottom navigation */
        body[data-theme="pink"] .bottom-nav {
            background: #2A1A2E !important;
            border-top: 1px solid #3D2944 !important;
        }

        body[data-theme="light"] .nav-item {
            color: #666666;
        }

        body[data-theme="light"] .nav-item.active {
            color: #FF1B6B;
        }

        /* Additional light theme styles for all UI components */
        body[data-theme="light"] .promo-banner {
            background: linear-gradient(135deg, #00C9A7, #00B894);
            color: white;
        }

        body[data-theme="light"] .stats-card {
            background: #FFFFFF;
            border: 1px solid #E0E0E0;
            color: #000000;
        }

        body[data-theme="light"] .chapter-section {
            background: #FAFAFA;
            border: 1px solid #E5E5E5;
        }

        body[data-theme="light"] .chapter-title {
            color: #333333;
        }

        body[data-theme="light"] .chapter-subtitle {
            color: #666666;
        }

        body[data-theme="light"] .dialog-container {
            background: #FFFFFF;
            border: 1px solid #E0E0E0;
        }

        body[data-theme="light"] .message-bubble {
            background: #F0F0F0;
            color: #000000;
        }

        body[data-theme="light"] .message-bubble.user {
            background: #FF1B6B;
            color: white;
        }

        body[data-theme="light"] .control-button {
            background: #FFFFFF;
            border: 1px solid #D0D0D0;
            color: #333333;
        }

        body[data-theme="light"] .control-button:hover {
            background: #F5F5F5;
        }

        body[data-theme="light"] .progress-bar {
            background: #E0E0E0;
        }

        body[data-theme="light"] .progress-bar-fill {
            background: #FF1B6B;
        }

        body[data-theme="light"] select,
        body[data-theme="light"] input,
        body[data-theme="light"] textarea {
            background: #FFFFFF;
            color: #000000;
            border: 1px solid #D0D0D0;
        }

        body[data-theme="light"] button:not(.theme-toggle) {
            color: #333333;
        }

        /* Dark theme form elements */
        body[data-theme="dark"] select,
        body[data-theme="dark"] input,
        body[data-theme="dark"] textarea {
            background: #2C2C2E !important;
            color: #F2F2F7 !important;
            border: 1px solid #48484A !important;
        }

        body[data-theme="dark"] select option {
            background: #2C2C2E;
            color: #F2F2F7;
        }

        /* Blue theme form elements */
        body[data-theme="blue"] select,
        body[data-theme="blue"] input,
        body[data-theme="blue"] textarea {
            background: #1A2F4A !important;
            color: #E8F1FF !important;
            border: 1px solid #2A4A70 !important;
        }

        body[data-theme="blue"] select option {
            background: #132337;
            color: #E8F1FF;
        }

        /* Pink theme form elements */
        body[data-theme="pink"] select,
        body[data-theme="pink"] input,
        body[data-theme="pink"] textarea {
            background: #352038 !important;
            color: #FFE8F5 !important;
            border: 1px solid #4A3550 !important;
        }

        body[data-theme="pink"] select option {
            background: #2A1A2E;
            color: #FFE8F5;
        }

        .app-title {
            font-size: 32px;
            font-weight: 800;
            color: #FF1B6B;
            margin-bottom: 8px;
        }

        .app-subtitle {
            font-size: 16px;
            color: #CCCCCC;
            font-weight: 400;
        }

        /* 스크린 컨테이너 - 테마별 배경색 적용 */
        .screen-container {
            background: transparent;
            /* Will inherit from parent or be set by JavaScript */
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        /* 문장 카드 - 다크 테마 (기본) */
        .sentence-card {
            background: var(--bg-tertiary-dark);
            border: 1px solid var(--border-dark);
            backdrop-filter: blur(10px);
            box-shadow:
                0 10px 40px rgba(102, 126, 234, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            color: white;
            position: relative;
            overflow: hidden;
        }

        /* 문장 카드 상단 조명 효과 - 스캔 애니메이션 (초록색) */
        .sentence-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, #4CAF50, #2E7D32, transparent);
            animation: scan 3s linear infinite;
            opacity: 0.9;
        }

        @keyframes scan {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        /* 문장 카드 호버 효과 */
        .sentence-card:hover {
            transform: translateY(-2px);
            box-shadow:
                0 15px 50px rgba(102, 126, 234, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
            border-color: rgba(102, 126, 234, 0.3);
        }

        /* 문장 카드 - 라이트 테마 */
        body[data-theme="light"] .sentence-card {
            background: linear-gradient(135deg, #FFFFFF, #F8F8F8) !important;
            color: #333333 !important;
            border: 2px solid #E0E0E0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        /* 라이트 테마에서도 초록색 스캔 애니메이션 적용 */
        body[data-theme="light"] .sentence-card::before {
            background: linear-gradient(90deg, transparent, #4CAF50, #2E7D32, transparent) !important;
        }

        /* 블루 테마에서도 초록색 스캔 애니메이션 적용 */
        body[data-theme="blue"] .sentence-card::before {
            background: linear-gradient(90deg, transparent, #4CAF50, #2E7D32, transparent) !important;
        }

        /* 핑크 테마에서도 초록색 스캔 애니메이션 적용 */
        body[data-theme="pink"] .sentence-card::before {
            background: linear-gradient(90deg, transparent, #4CAF50, #2E7D32, transparent) !important;
        }

        /* 문장 카드 내부 텍스트 기본 색상 (다크 모드) */
        .sentence-card #sentenceDisplay,
        .sentence-card #englishDisplay {
            color: white;
        }

        .sentence-card #sentenceNumber {
            color: #FF1B6B;
        }

        .sentence-card #bookmarkBtn {
            color: white;
            min-width: 26px;
            height: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 문장 카드 내부 텍스트 - 라이트 테마 */
        body[data-theme="light"] .sentence-card #sentenceDisplay,
        body[data-theme="light"] .sentence-card #englishDisplay {
            color: #333333 !important;
        }

        body[data-theme="light"] .sentence-card #sentenceNumber {
            color: #FF1B6B !important;
        }

        body[data-theme="light"] .sentence-card #bookmarkBtn {
            color: #666666 !important;
        }

        /* 문장 카운터 텍스트 색상 */
        #sentenceCounter {
            color: #CCCCCC;
        }

        body[data-theme="light"] #sentenceCounter {
            color: #6B6B6D !important;
        }

        body[data-theme="dark"] #sentenceCounter {
            color: #9B9B9E !important;
        }

        body[data-theme="blue"] #sentenceCounter {
            color: #94B5D8 !important;
        }

        body[data-theme="pink"] #sentenceCounter {
            color: #D094B5 !important;
        }

        /* 텍스트 가시성 클래스 */
        .text-secondary {
            color: #CCCCCC;
        }

        body[data-theme="light"] .text-secondary {
            color: #666666 !important;
        }

        .text-muted {
            color: #999999;
        }

        body[data-theme="light"] .text-muted {
            color: #888888 !important;
        }

        /* 배속 버튼 스타일 */
        .speed-btn {
            background: #333 !important;
            color: white !important;
            border: none !important;
            border-radius: 18px !important;
            padding: 8px 4px !important;
            font-size: 12px !important;
            font-weight: bold !important;
            cursor: pointer !important;
            transition: all 0.3s ease !important;
            width: 48px !important;
            max-width: 48px !important;
            min-width: 48px !important;
            height: 37px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            box-sizing: border-box !important;
            flex-shrink: 0 !important;
            flex-grow: 0 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
        }

        .speed-btn.active {
            background: #FF1B6B !important;
            color: white !important;
            box-shadow: 0 0 0 2px rgba(255, 27, 107, 0.3) !important;
        }

        .speed-btn:not(.active) {
            background: #333 !important;
            color: white !important;
        }

        /* 배속 버튼 - 라이트 테마 */
        body[data-theme="light"] .speed-btn {
            background: #F0F0F0 !important;
            color: #333333 !important;
            border: 1px solid #D0D0D0 !important;
        }

        body[data-theme="light"] .speed-btn:hover:not(.active) {
            background: #E0E0E0 !important;
        }

        body[data-theme="light"] .speed-btn.active {
            background: #FF1B6B !important;
            color: white !important;
            border: none !important;
        }

        /* 북마크 빠른 접근 바 스타일 */
        .bookmark-quick-access {
            transition: all 0.3s ease;
        }

        .bookmark-chip {
            background: rgba(255, 27, 107, 0.15);
            border: 1px solid rgba(255, 27, 107, 0.3);
            border-radius: 8px;
            padding: 3px 6px;
            /* 패딩 최적화 */
            min-width: 28px;
            /* 최소 너비 축소 */
            min-height: 24px;
            /* 높이 축소 */
            font-size: 12px;
            /* 폰트 크기 최적화 */
            font-weight: bold;
            color: #FF1B6B;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            flex-shrink: 0;
            /* 크기 고정 */
            white-space: nowrap;
            text-align: center;
        }

        .bookmark-chip:hover {
            background: rgba(255, 27, 107, 0.25);
            border-color: rgba(255, 27, 107, 0.5);
            transform: scale(1.05);
        }

        .bookmark-chip.current {
            background: #FF1B6B;
            color: white;
            border-color: #FF1B6B;
        }

        /* 라이트 테마 북마크 칩 */
        body[data-theme="light"] .bookmark-chip {
            background: rgba(255, 27, 107, 0.1);
            border: 1px solid rgba(255, 27, 107, 0.2);
            color: #FF1B6B;
        }

        body[data-theme="light"] .bookmark-chip:hover {
            background: rgba(255, 27, 107, 0.2);
            border-color: rgba(255, 27, 107, 0.4);
        }

        body[data-theme="light"] .bookmark-chip.current {
            background: #FF1B6B;
            color: white;
            border-color: #FF1B6B;
        }

        /* 다크 테마 북마크 칩 */
        body[data-theme="dark"] .bookmark-chip {
            background: var(--bg-tertiary-dark);
            border: 1px solid var(--border-dark);
            color: var(--accent-pink);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
            transition: all 0.3s ease;
        }

        body[data-theme="dark"] .bookmark-chip:hover {
            background: rgba(102, 126, 234, 0.15);
            border-color: var(--accent-pink);
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
        }

        body[data-theme="dark"] .bookmark-chip.current {
            background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
            color: white;
            border-color: var(--accent-pink);
            box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
        }

        body[data-theme="light"] .sentence-card button {
            background-color: #F5F5F5 !important;
            color: #333333 !important;
            border: 1px solid #D0D0D0 !important;
        }

        body[data-theme="light"] .sentence-card button#bothModeBtn[style*="FF1B6B"],
        body[data-theme="light"] .sentence-card button#koreanModeBtn[style*="FF1B6B"],
        body[data-theme="light"] .sentence-card button#englishModeBtn[style*="FF1B6B"] {
            background: #FF1B6B !important;
            color: white !important;
            border: none !important;
        }

        body[data-theme="light"] .sentence-card button#playBtn {
            background: #8B5CF6 !important;
            color: white !important;
            border: none !important;
        }

        body[data-theme="light"] .sentence-card button#shadowingBtnCard {
            background: linear-gradient(45deg, #10B981, #059669) !important;
            color: white !important;
            border: none !important;
        }

        body[data-theme="light"] .sentence-card button#timerBtnCard {
            background: linear-gradient(45deg, #8B5CF6, #A855F7) !important;
            color: white !important;
            border: none !important;
        }

        body[data-theme="light"] .sentence-card button#bookmarkBtn {
            background: transparent !important;
            color: #FFA500 !important;
            border: none !important;
        }

        /* 다크 테마 문장 카드 */
        body[data-theme="dark"] .sentence-card {
            background: linear-gradient(135deg, #1A1A1F, #2A2A32);
            color: #E4E4E7;
            border: 1px solid #2E2E36;
        }

        /* 블루 테마 문장 카드 */
        body[data-theme="blue"] .sentence-card {
            background: linear-gradient(135deg, #132337, #1E3A5F);
            color: #E8F1FF;
            border: 1px solid #2A4A70;
        }

        /* 핑크 테마 문장 카드 */
        body[data-theme="pink"] .sentence-card {
            background: linear-gradient(135deg, #2A1A2E, #3D2944);
            color: #FFE8F5;
            border: 1px solid #4A3550;
        }

        /* 프로모션 배너 - 테마별로 조화로운 색상 */
        .promo-banner {
            background: linear-gradient(135deg, #00C9A7, #00B894);
            border-radius: 20px;
            padding: 20px;
            margin: 20px;
            text-align: center;
            color: white;
            font-weight: bold;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        body[data-theme="light"] .promo-banner {
            background: linear-gradient(135deg, #10B981, #059669);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
        }

        body[data-theme="dark"] .promo-banner {
            background: linear-gradient(135deg, #065F46, #047857);
            border: 1px solid #10B981;
        }

        body[data-theme="blue"] .promo-banner {
            background: linear-gradient(135deg, #0EA5E9, #0284C7);
            border: 1px solid #38BDF8;
        }

        body[data-theme="pink"] .promo-banner {
            background: linear-gradient(135deg, #EC4899, #DB2777);
            border: 1px solid #F9A8D4;
        }

        /* shadcn/ui 스타일 통계 카드 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin: 16px 24px;
        }

        .stat-card {
            background: #1A1A1F;
            border: 1px solid #2E2E36;
            border-radius: 12px;
            padding: 12px;
            text-align: center;
            transition: all 0.2s ease-in-out;
            box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        }

        .stat-number {
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .stat-number.pink {
            color: #FF1B6B;
        }

        .stat-number.purple {
            color: #8B5CF6;
        }

        .stat-number.green {
            color: #00C9A7;
        }

        .stat-label {
            font-size: 14px;
            color: #CCCCCC;
        }

        .stat-sublabel {
            font-size: 12px;
            color: #888;
            margin-top: 4px;
        }

        /* 라이트 테마용 통계 카드 */
        body[data-theme="light"] .stat-card {
            background: #FFFFFF !important;
            border: 1px solid #E5E5E7 !important;
            color: #1A1A1C !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        body[data-theme="light"] .stat-card:hover {
            border-color: #D1D1D4 !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transform: translateY(-2px);
        }

        /* Dark theme stat cards - Live Dashboard Style */
        body[data-theme="dark"] .stat-card {
            background: var(--bg-tertiary-dark) !important;
            border: 1px solid var(--border-dark) !important;
            color: var(--text-primary-dark) !important;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
            transition: all 0.3s ease;
        }

        body[data-theme="dark"] .stat-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.08) !important;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
            border-color: rgba(102, 126, 234, 0.3) !important;
        }

        /* Blue theme stat cards */
        body[data-theme="blue"] .stat-card {
            background: #132337 !important;
            border: 1px solid #1E3A5F !important;
            color: #E8F1FF !important;
        }

        body[data-theme="blue"] .stat-card:hover {
            border-color: #2A4A70 !important;
            background: #1A2F4A !important;
        }

        /* Pink theme stat cards */
        body[data-theme="pink"] .stat-card {
            background: #2A1A2E !important;
            border: 1px solid #3D2944 !important;
            color: #FFE8F5 !important;
        }

        body[data-theme="pink"] .stat-card:hover {
            border-color: #4A3550 !important;
            background: #352038 !important;
        }

        body[data-theme="light"] .stat-label {
            color: #666666 !important;
        }

        body[data-theme="light"] .stat-sublabel {
            color: #888888 !important;
        }

        /* 라이트 테마용 인라인 텍스트 색상 수정 */
        body[data-theme="light"] div[style*="color: #CCCCCC"] {
            color: #666666 !important;
        }

        body[data-theme="light"] div[style*="color: #888"] {
            color: #888888 !important;
        }

        /* 라이트 테마용 카드 버튼 */
        body[data-theme="light"] .card-btn {
            background: #F5F5F5 !important;
            border: 1px solid #D0D0D0 !important;
            color: #333333 !important;
        }

        body[data-theme="light"] .card-btn:hover {
            background: #E8E8E8 !important;
            border-color: #B0B0B0 !important;
        }

        /* 라이트 테마용 인라인 배경색 수정 */
        body[data-theme="light"] div[style*="background: #1A1A1A"] {
            background: #FFFFFF !important;
            border: 1px solid #E0E0E0 !important;
        }

        body[data-theme="light"] .voice-card {
            background: #FFFFFF !important;
            border: 1px solid #E0E0E0 !important;
            color: #333333 !important;
        }

        /* 라이트 테마용 네비게이션 바 */
        body[data-theme="light"] div[style*="background: #1A1A1A"][style*="position: fixed"][style*="bottom: 0"] {
            background: #FFFFFF !important;
            border-top: 1px solid #E0E0E0 !important;
        }

        /* 최근 학습 섹션 */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 30px 20px 15px;
        }

        .section-title {
            font-size: 20px;
            font-weight: bold;
        }

        .section-more {
            color: #FF1B6B;
            font-size: 14px;
            cursor: pointer;
        }

        /* shadcn/ui 스타일 학습 카드 */
        .learning-card {
            background: linear-gradient(135deg, #FF1B6B, #FF6B9D);
            border-radius: 12px;
            padding: 24px;
            margin: 0 24px 24px;
            color: white;
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            transition: all 0.2s ease-in-out;
        }

        .learning-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
        }

        /* 라이트 테마용 학습 카드 */
        body[data-theme="light"] .learning-card {
            background: linear-gradient(135deg, #FF1B6B, #FF6B9D) !important;
            color: white !important;
        }

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

        .card-title {
            font-size: 18px;
            font-weight: bold;
        }

        .card-progress {
            font-size: 14px;
            opacity: 0.9;
        }

        .card-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        /* shadcn/ui 스타일 버튼 */
        .card-btn {
            background: hsl(0 0% 9%);
            border: 1px solid hsl(0 0% 14.9%);
            border-radius: 8px;
            padding: 12px 16px;
            color: hsl(0 0% 98%);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease-in-out;
        }

        .card-btn:hover {
            background: hsl(0 0% 14.9%);
            border-color: hsl(0 0% 20%);
        }

        .card-btn:active {
            transform: scale(0.98);
        }

        /* shadcn/ui 스타일 추천 카드 */
        .recommendation-card {
            background: hsl(0 0% 3.9%);
            border: 1px solid hsl(0 0% 14.9%);
            border-radius: 12px;
            padding: 20px;
            margin: 0 24px 24px;
            display: flex;
            align-items: center;
            gap: 16px;
            transition: all 0.2s ease-in-out;
            cursor: pointer;
        }

        .recommendation-card:hover {
            border-color: hsl(0 0% 20%);
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        }

        .rec-icon {
            width: 50px;
            height: 50px;
            border-radius: 25px;
            background: linear-gradient(135deg, #FF1B6B, #FF6B9D);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .rec-content {
            flex: 1;
        }

        .rec-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 4px;
        }

        .rec-desc {
            font-size: 12px;
            color: #CCCCCC;
        }

        .rec-arrow {
            font-size: 20px;
            color: #666;
        }

        /* 음성 평가 카드 */
        .voice-card {
            background: #1A1A1A;
            border-radius: 20px;
            padding: 20px;
            margin: 0 20px 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            border: 1px solid #333;
        }

        .voice-icon {
            width: 50px;
            height: 50px;
            border-radius: 25px;
            background: linear-gradient(135deg, #FF6B35, #F7931E);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        /* shadcn/ui 스타일 네비게이션 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 600px;
            background: hsl(0 0% 3.9%);
            padding: 16px 0;
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 4px;
            z-index: 1000;
            border-top: 1px solid hsl(0 0% 14.9%);
            backdrop-filter: blur(8px);
        }

        /* shadcn/ui 스타일 네비 아이템 */
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px 8px;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.2s ease-in-out;
            text-decoration: none;
            color: hsl(0 0% 45%);
        }

        .nav-item:hover {
            color: hsl(0 0% 80%);
            background: hsl(0 0% 14.9%);
        }

        .nav-item.active {
            color: #FF1B6B;
            background: hsl(0 0% 9%);
        }

        .nav-icon {
            font-size: 26px;
            margin-bottom: 4px;
        }

        .nav-label {
            font-size: 10px;
            font-weight: 600;
            white-space: nowrap;
        }

        @media (max-width: 480px) {
            .nav-icon {
                font-size: 24px;
            }

            .nav-label {
                font-size: 9px;
            }
        }

        /* 속도 슬라이더 스타일링 */
        #speedSlider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #FF1B6B;
            cursor: pointer;
            border: 2px solid white;
        }

        #speedSlider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #FF1B6B;
            cursor: pointer;
            border: 2px solid white;
        }
        /* ===== 독해 단어 하이라이트 ===== */
        /* Reading sentence highlighting */
        .rd-sentence {
            display: block;
            padding: 8px 0 8px 12px;
            margin: 6px 0;
            border-left: 3px solid transparent;
            border-radius: 4px;
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

        .rd-sentence.active {
            background-color: rgba(74, 144, 226, 0.12);
            border-left-color: #4A90E2;
            border-radius: 4px;
        }

        [data-theme="dark"] .rd-sentence.active {
            background-color: rgba(74, 144, 226, 0.18);
            border-left-color: #6BA4E7;
        }

        /* Reading speed control sticky */
        #readingSpeedControl {
            position: sticky;
            top: 0;
            z-index: 100;
        }

        [data-theme="dark"] #readingSpeedControl {
            background: rgba(30, 41, 59, 0.95) !important;
            border-color: rgba(74, 144, 226, 0.3) !important;
        }

        /* Reading speed slider */
        #readingSpeedSlider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #4A90E2;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(74, 144, 226, 0.4);
            transition: all 0.2s ease;
        }

        #readingSpeedSlider::-webkit-slider-thumb:hover {
            background: #3A80D2;
            transform: scale(1.1);
            box-shadow: 0 3px 8px rgba(74, 144, 226, 0.6);
        }

        #readingSpeedSlider::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border: none;
            border-radius: 50%;
            background: #4A90E2;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(74, 144, 226, 0.4);
            transition: all 0.2s ease;
        }

        #readingSpeedSlider::-moz-range-thumb:hover {
            background: #3A80D2;
            transform: scale(1.1);
            box-shadow: 0 3px 8px rgba(74, 144, 226, 0.6);
        }

        [data-theme="dark"] #readingSpeedSlider::-webkit-slider-thumb {
            background: #6BA4E7;
        }

        [data-theme="dark"] #readingSpeedSlider::-moz-range-thumb {
            background: #6BA4E7;
        }

        [data-theme="dark"] #readingSpeedValue {
            color: #6BA4E7 !important;
        }

        /* 독해 시작 버튼 반응형 */
        #readingStartBtn {
            transition: all 0.2s ease;
        }

        #readingStartBtn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.6);
        }

        #readingStartBtn:active {
            transform: translateY(0);
        }

        /* 모바일 반응형 (600px 이하) */
        @media (max-width: 600px) {
            #readingSpeedControl {
                padding: 12px !important;
            }

            #readingStartBtn {
                padding: 10px 20px !important;
                font-size: 15px !important;
                width: 100%;
                margin-top: 8px;
            }

            .reading-speed-btn {
                padding: 8px 14px !important;
                font-size: 13px !important;
            }

            #readingSpeedSlider {
                min-width: 120px !important;
            }
        }

        /* 태블릿 반응형 (601px - 900px) */
        @media (min-width: 601px) and (max-width: 900px) {
            #readingStartBtn {
                padding: 9px 20px !important;
            }
        }

        /* 재생 컨트롤 버튼 컨테이너 */
        #readingControlButtons {
            display: flex;
            gap: 8px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 8px;
        }

        #readingControlButtons button {
            flex: 1;
            min-width: 100px;
            max-width: 140px;
            transition: all 0.2s ease;
        }

        #readingControlButtons button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        #readingControlButtons button:active {
            transform: translateY(0);
        }

        /* 재생 컨트롤 모바일 반응형 (≤600px) */
        @media (max-width: 600px) {
            #readingControlButtons {
                gap: 6px;
            }

            #readingControlButtons button {
                flex: 1;
                min-width: 90px;
                padding: 10px 14px !important;
                font-size: 13px !important;
            }

            /* readingStartBtn width 100% 오버라이드 제거 */
            #readingStartBtn {
                width: auto !important;
            }
        }

        /* 재생 컨트롤 작은 모바일 (≤400px) */
        @media (max-width: 400px) {
            #readingControlButtons {
                flex-direction: column;
                gap: 8px;
            }

            #readingControlButtons button {
                width: 100%;
                max-width: 100%;
                min-width: unset;
            }
        }

        /* 독해 음성 설정 모달 Light 테마 */
        body[data-theme="light"] #readingVoiceModalContent {
            background: rgba(255, 255, 255, 0.98) !important;
            border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        }

        body[data-theme="blue"] #readingVoiceModalContent {
            background: rgba(240, 248, 255, 0.98) !important;
            border-top: 1px solid rgba(74, 144, 226, 0.2) !important;
        }

        body[data-theme="pink"] #readingVoiceModalContent {
            background: rgba(255, 245, 250, 0.98) !important;
            border-top: 1px solid rgba(255, 27, 107, 0.2) !important;
        }

        /* 챕터 선택 모달 테마 지원 */
        body[data-theme="light"] #chapterSelectModalContent {
            background: rgba(255, 255, 255, 0.98) !important;
            border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        }

        body[data-theme="blue"] #chapterSelectModalContent {
            background: rgba(240, 248, 255, 0.98) !important;
            border-top: 1px solid rgba(74, 144, 226, 0.2) !important;
        }

        body[data-theme="pink"] #chapterSelectModalContent {
            background: rgba(255, 245, 250, 0.98) !important;
            border-top: 1px solid rgba(255, 27, 107, 0.2) !important;
        }

        /* 챕터 선택 버튼 호버 효과 */
        #chapterSelectModalContent button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            opacity: 0.9;
        }

        #chapterSelectModalContent button:active {
            transform: translateY(0);
        }

        /* 챕터 선택 모달 모바일 반응형 (≤600px) */
        @media (max-width: 600px) {
            #chapterSelectModalContent {
                max-height: 85vh !important;
                padding: 15px !important;
            }

            #chapterSelectModalContent > div:first-child {
                margin-bottom: 12px !important;
            }

            #chapterSelectModalContent > div:first-child > div:first-child {
                font-size: 16px !important;
            }

            #chapterSelectModalContent button {
                padding: 10px !important;
            }

            #chapterSelectModalContent button > div:first-child {
                font-size: 13px !important;
            }

            #chapterSelectModalContent button > div:last-child {
                font-size: 10px !important;
            }
        }

        /* 챕터 선택 모달 작은 모바일 (≤400px) */
        @media (max-width: 400px) {
            #chapterSelectModalContent {
                max-height: 90vh !important;
                padding: 12px !important;
            }

            #chapterSelectModalContent > div > div[style*="grid-template-columns"] {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
                gap: 6px !important;
            }

            #chapterSelectModalContent button {
                padding: 8px !important;
            }

            #chapterSelectModalContent button > div:first-child {
                font-size: 12px !important;
                margin-bottom: 2px !important;
            }

            #chapterSelectModalContent button > div:last-child {
                font-size: 9px !important;
            }
        }
