        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: Arial, sans-serif;
            background-color: #1a1a1a;
            color: white;
            margin: 0;
            padding: 0;
            min-height: 100vh;
            overflow-y: auto;
            overflow-x: hidden;
        }

        /* 전체 페이지 스크롤바 스타일 */
        /* 통일된 스크롤바 스타일 */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(102, 126, 234, 0.5);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(102, 126, 234, 0.7);
        }

        .header {
            background-color: #1a1a1a;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 10px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 16px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .main-wrapper {
            display: grid;
            grid-template-columns: minmax(0, 320px) 1fr minmax(0, 320px);
            grid-template-rows: auto;
            min-height: 97vh;
            grid-template-areas:
                "sidebar body rightpanel";
            gap: 2px;
            background-color: #1a1a1a;
            position: relative;
            z-index: 1;
        }
        
        .header h1 {
            font-size: 18px;
            margin: 0;
            line-height: 1.2;
        }
        
        .status-container {
            display: flex;
            align-items: center;
            gap: 20px;
            flex: 1;
            justify-content: space-between;
            margin-left: 30px;
        }
        
        .status-info {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .connection-status {
            display: inline-flex;
            align-items: center;
            font-weight: 500;
            color: #4CAF50;
        }

        .connection-status::before {
            content: '';
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-right: 8px;
            background-color: #4CAF50;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
            }
            50% {
                opacity: 0.8;
                transform: scale(1.1);
                box-shadow: 0 0 0 4px rgba(76, 175, 80, 0);
            }
        }

        .price-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .price {
            font-size: 18px;
            font-weight: bold;
        }
        
        .change {
            font-size: 16px;
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: bold;
        }
        
        .change.positive {
            color: #4caf50;
            background-color: rgba(76, 175, 80, 0.1);
        }
        
        .change.negative {
            color: #f44336;
            background-color: rgba(244, 67, 54, 0.1);
        }
        
        .sidebar {
            grid-area: sidebar;
            background-color: #1a1a1a;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            min-width: 0;
            overflow: hidden;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 15px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            min-height: 97vh;
        }
        
        
        .search-container {
            margin-bottom: 15px;
            position: sticky;
            top: 0;
            background-color: #1a1a1a;
            z-index: 100;
            padding-bottom: 10px;
        }
        
        .search-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #444;
            border-radius: 5px;
            background-color: #333;
            color: white;
            font-size: 14px;
        }
        
        .search-input:focus {
            outline: none;
            border-color: #4CAF50;
            box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
        }
        
        .search-input::placeholder {
            color: #888;
        }

        .sort-container {
            margin: 5px 0 8px 0;
            padding: 8px;
            background-color: rgba(255, 255, 255, 0.02);
            border-radius: 5px;
        }

        .sort-select {
            width: 100%;
            padding: 8px 10px;
            background-color: #333;
            color: white;
            border: 1px solid #444;
            border-radius: 5px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .sort-select:hover {
            background-color: #3a3a3a;
            border-color: #555;
        }

        .sort-select:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
        }

        .sort-select option {
            background-color: #2a2a2a;
            color: white;
            padding: 5px;
        }

        .coin-list-container {
            flex: 1;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 2px;
            margin-right: 2px;
            min-height: 0;
        }

        /* 스크롤바 스타일링 */
        .coin-list-container::-webkit-scrollbar {
            width: 8px;
        }

        .coin-list-container::-webkit-scrollbar-track {
            background: #2a2a2a;
            border-radius: 4px;
            margin: 5px 0;
        }

        .coin-list-container::-webkit-scrollbar-thumb {
            background: #444;
            border-radius: 4px;
            border: 1px solid #2a2a2a;
        }

        .coin-list-container::-webkit-scrollbar-thumb:hover {
            background: #555;
        }
        
        .coin-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .coin-item {
            padding: 10px;
            margin-bottom: 5px;
            background-color: #242424;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        .coin-alert-btn {
            position: absolute;
            top: 50%;
            right: 45px;
            transform: translateY(-50%);
            background: rgba(76, 175, 80, 0.2);
            border: 1px solid rgba(76, 175, 80, 0.3);
            border-radius: 5px;
            padding: 3px 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s;
            opacity: 0;
            z-index: 10;
        }

        .coin-item:hover .coin-alert-btn {
            opacity: 1;
        }

        .coin-alert-btn:hover {
            background: rgba(76, 175, 80, 0.4);
            border-color: #4CAF50;
            transform: scale(1.1);
        }

        .coin-alert-btn:active {
            transform: scale(0.95);
        }

        .coin-item.disabled {
            background-color: #2a2a2a;
            opacity: 0.5;
            cursor: not-allowed;
            filter: blur(1px);
            position: relative;
        }

        /* 게스트 사용자에게 모든 코인 오픈 - Premium 잠금 제거 */
        /* .coin-item.disabled::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 1;
        }

        .coin-item.disabled::after {
            content: '🔒 Premium';
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 13px;
            font-weight: bold;
            color: #ffd700;
            background: rgba(0, 0, 0, 0.7);
            padding: 4px 10px;
            border-radius: 12px;
            z-index: 2;
            pointer-events: all;
        }

        .coin-item.disabled .coin-info,
        .coin-item.disabled .indicators {
            filter: blur(2px); */
            user-select: none;
        }
        
        /* 플래시 효과 애니메이션 */
        .coin-item.price-flash-up {
            background-color: rgba(76, 175, 80, 0.4);
            box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
            animation: flashUp 0.6s ease-in-out;
        }
        
        .coin-item.price-flash-down {
            background-color: rgba(244, 67, 54, 0.4);
            box-shadow: 0 0 10px rgba(244, 67, 54, 0.3);
            animation: flashDown 0.6s ease-in-out;
        }
        
        @keyframes flashUp {
            0% { background-color: #333; }
            50% { background-color: rgba(76, 175, 80, 0.4); }
            100% { background-color: #333; }
        }
        
        @keyframes flashDown {
            0% { background-color: #333; }
            50% { background-color: rgba(244, 67, 54, 0.4); }
            100% { background-color: #333; }
        }

        /* 차트 헤더 가격 애니메이션 */
        .chart-price-flash-up {
            animation: chartFlashUp 0.6s ease-in-out;
        }

        .chart-price-flash-down {
            animation: chartFlashDown 0.6s ease-in-out;
        }

        @keyframes chartFlashUp {
            0% { background-color: transparent; color: #fff; }
            50% { background-color: rgba(76, 175, 80, 0.5); color: #fff; border-radius: 4px; padding: 2px 6px; }
            100% { background-color: transparent; color: #fff; }
        }

        @keyframes chartFlashDown {
            0% { background-color: transparent; color: #fff; }
            50% { background-color: rgba(244, 67, 54, 0.5); color: #fff; border-radius: 4px; padding: 2px 6px; }
            100% { background-color: transparent; color: #fff; }
        }

        .coin-item:hover {
            background-color: #2a2a2a;
            border-color: rgba(255, 255, 255, 0.15);
        }

        .coin-item.selected {
            background-color: rgba(76, 175, 80, 0.15);
            border-color: #4caf50;
        }
        
        .coin-info {
            display: flex;
            flex-direction: column;
            flex: 1;
        }
        
        .coin-change {
            font-size: 11px;
            font-weight: bold;
            margin-left: 5px;
        }
        
        .coin-change.positive {
            color: #4CAF50;
        }
        
        .coin-change.negative {
            color: #f44336;
        }
        
        .coin-change.neutral {
            color: #888;
        }
        
        .coin-name {
            font-weight: bold;
            font-size: 14px;
        }
        
        .coin-price {
            font-size: 12px;
            color: #bbb;
        }
        
        .indicators {
            display: flex;
            gap: 3px;
        }
        
        .indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #666;
        }
        
        .indicator.strong-buy {
            background-color: #10b981;
        }
        
        .indicator.buy {
            background-color: #059669;
        }
        
        .indicator.hold {
            background-color: #6b7280;
        }
        
        .indicator.sell {
            background-color: #dc2626;
        }
        
        .indicator.strong-sell {
            background-color: #b91c1c;
        }
        
        .body {
            grid-area: body;
            background-color: #1e1e1e;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 15px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            overflow: visible;
            min-height: 97vh;
            z-index: 3;
        }
        
        .controls {
            display: flex;
            gap: 15px;
            align-items: center;
            padding: 5px 15px;
            background-color: #333;
            border-radius: 5px;
            height: 40px;
            transition: background 0.3s ease;
        }

        /* 플랜별 차트 헤더 배경색 (더 짙은 색상) */
        .controls.plan-guest {
            background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
        }

        .controls.plan-free {
            background: linear-gradient(135deg, #1b5e20 0%, #0d3d10 100%);
        }

        .controls.plan-basic {
            background: linear-gradient(135deg, #0d47a1 0%, #072a5f 100%);
        }

        .controls.plan-premium {
            background: linear-gradient(135deg, #4a148c 0%, #2d0a54 100%);
        }
        
        .controls select, .controls button {
            padding: 5px 10px;
            background-color: #444;
            color: white;
            border: 1px solid #555;
            border-radius: 3px;
            cursor: pointer;
        }
        
        .controls select:hover, .controls button:hover {
            background-color: #555;
        }
        
        .chart-container {
            background-color: #2a2a2a;
            border-radius: 8px;
            padding: 15px;
            height: 540px;
            min-height: 540px;
            width: 100%;
            min-width: 300px;
            position: relative;
            overflow: visible;
            /* v21: container는 일반 터치 허용 (페이지 스크롤 가능) */
            flex-shrink: 0;
        }

        /* v21: 캔버스에만 터치 제한 적용 */
        .chart-container canvas {
            touch-action: none !important;
            -webkit-user-select: none;
            -moz-user-select: none;
            user-select: none;
        }

        #priceChart {
            height: 500px !important;
            min-height: 500px !important;
            max-height: 510px !important;
            width: 100% !important;
            min-width: 280px !important;
            display: block !important;
        }

        /* 차트 캔버스 최소 크기 강제 */
        .chart-container canvas {
            height: 500px !important;
            min-height: 500px !important;
            width: 100% !important;
            min-width: 280px !important;
            display: block !important;
        }
        
        .no-data-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(42, 42, 42, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            border-radius: 8px;
        }
        
        .no-data-message {
            text-align: center;
            color: #cccccc;
        }
        
        .no-data-icon {
            font-size: 48px;
            margin-bottom: 15px;
            opacity: 0.7;
        }
        
        .no-data-text {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #ffffff;
        }
        
        .no-data-subtext {
            font-size: 14px;
            opacity: 0.8;
        }
        
        .data-limit-feedback {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: rgba(0, 0, 0, 0.8);
            color: #ffffff;
            padding: 10px 20px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: bold;
            z-index: 20;
            pointer-events: none;
            animation: fadeInOut 2s ease-in-out;
        }
        
        @keyframes fadeInOut {
            0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
            20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
            80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
            100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
        }
        
        
        .sub-charts {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }
        
        .sub-chart {
            flex: 1;
            background-color: #2a2a2a;
            border-radius: 8px;
            padding: 8px;
            height: 250px;
            max-height: 250px;
            position: relative;
            overflow: hidden;
        }
        
        .sub-chart canvas {
            max-width: 100% !important;
            max-height: 234px !important;
        }
        
        .rightpanel {
            grid-area: rightpanel;
            background-color: #1a1a1a;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 15px;
            overflow: visible;
            min-height: 97vh;
            z-index: 2;
        }
        
        .strategy-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: center;
            color: #ff9800;
        }
        
        .timeframe-tabs {
            display: flex;
            gap: 5px;
            margin-bottom: 15px;
        }
        
        .timeframe-tab {
            flex: 1;
            padding: 5px 8px;
            background-color: #444;
            color: white;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            font-size: 12px;
        }
        
        .timeframe-tab.active {
            background-color: #007bff;
        }
        
        .timeframe-tab:hover:not(.active) {
            background-color: #555;
            transform: scale(1.05);
            transition: all 0.2s ease;
        }
        
        .analysis-item {
            margin-bottom: 10px;
            padding: 8px;
            background-color: #333;
            border-radius: 5px;
            border-left: 4px solid #666;
        }
        
        .analysis-item.strong-buy {
            border-left-color: #10b981;
        }
        
        .analysis-item.buy {
            border-left-color: #059669;
        }
        
        .analysis-item.hold {
            border-left-color: #6b7280;
        }
        
        .analysis-item.sell {
            border-left-color: #dc2626;
        }
        
        .analysis-item.strong-sell {
            border-left-color: #b91c1c;
        }
        
        /* 점수 분포 스타일 */
        .score-breakdown {
            margin: 15px 0;
            padding: 10px;
            background-color: #2a2a2a;
            border-radius: 8px;
        }
        
        .score-header {
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #ff9800;
            text-align: center;
        }
        
        .score-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 5px;
            margin-bottom: 10px;
        }
        
        .score-item {
            text-align: center;
            padding: 5px 2px;
            background-color: #333;
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        
        /* 가이드 기반 5단계 색상 시스템 - 통일된 색상 */
        .score-item.strong-positive {
            background-color: #065f46;
            border: 1px solid #10b981;
            color: #34d399;
        }
        
        .score-item.positive {
            background-color: #064e3b;
            border: 1px solid #059669;
            color: #6ee7b7;
        }
        
        .score-item.neutral {
            background-color: #374151;
            border: 1px solid #6b7280;
            color: #d1d5db;
        }
        
        .score-item.negative {
            background-color: #7f1d1d;
            border: 1px solid #dc2626;
            color: #fca5a5;
        }
        
        .score-item.strong-negative {
            background-color: #450a0a;
            border: 1px solid #b91c1c;
            color: #f87171;
        }
        
        .score-label {
            font-size: 10px;
            color: #bbb;
            margin-bottom: 2px;
        }
        
        .signal-label {
            font-size: 12px;
            font-weight: bold;
            margin-top: 5px;
            padding: 2px 8px;
            border-radius: 4px;
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        .score-value {
            font-size: 10px;
            margin: 1px 0;
            color: white;
        }
        
        .score-indicator {
            font-size: 9px;
            opacity: 0.8;
            margin: 1px 0;
        }
        
        .score-weight {
            font-size: 8px;
            opacity: 0.7;
            margin: 1px 0;
        }
        
        .score-weighted {
            font-size: 11px;
            font-weight: bold;
            margin: 1px 0;
            color: #fbbf24;
        }
        
        .total-score {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px;
            background-color: #1a1a1a;
            border-radius: 4px;
            margin-top: 5px;
        }
        
        .total-score .score-label {
            font-size: 14px;
            color: #ff9800;
            font-weight: bold;
        }
        
        .total-score .score-value {
            font-size: 16px;
            font-weight: bold;
        }
        
        /* 상세 분석 스타일 */
        .detailed-analysis {
            margin-top: 15px;
        }
        
        .detail-header {
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #ff9800;
            text-align: center;
        }
        
        .analysis-detail-item {
            margin-bottom: 8px;
            padding: 6px;
            background-color: #2a2a2a;
            border-radius: 4px;
            border-left: 3px solid #666;
        }
        
        .analysis-detail-item.strong-positive {
            border-left-color: #10b981;
        }
        
        .analysis-detail-item.positive {
            border-left-color: #059669;
        }
        
        .analysis-detail-item.neutral {
            border-left-color: #6b7280;
        }
        
        .analysis-detail-item.negative {
            border-left-color: #dc2626;
        }
        
        .analysis-detail-item.strong-negative {
            border-left-color: #b91c1c;
        }
        
        .detail-title {
            font-size: 11px;
            font-weight: bold;
            margin-bottom: 3px;
            color: #ff9800;
        }
        
        .detail-content {
            font-size: 10px;
        }
        
        .detail-values {
            color: #bbb;
            margin-bottom: 2px;
        }
        
        .detail-scores {
            font-size: 10px;
            color: #fbbf24;
            margin-bottom: 5px;
            font-weight: bold;
        }
        
        .detail-status {
            color: #fff;
            font-weight: bold;
        }
        
        .analysis-label {
            font-size: 12px;
            color: #bbb;
        }
        
        .analysis-value {
            font-size: 14px;
            font-weight: bold;
            margin-top: 2px;
        }
        
        .footer {
            background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
            padding: 20px 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 10px;
            width: 100%;
            color: #777;
            border-top: 1px solid rgba(102, 126, 234, 0.2);
            position: relative;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
        }

        .footer-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            max-width: 1200px;
            width: 100%;
        }

        .footer-main {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
            width: 100%;
        }

        .footer-left {
            display: flex;
            align-items: center;
            gap: 30px;
            flex: 1;
        }

        .footer-logo {
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.95);
            padding: 8px 12px;
            border-radius: 6px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        }

        .footer-logo img {
            height: 36px;
            width: auto;
            display: block;
        }

        .footer-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 3px;
            flex: 1;
            height: 52px;
        }

        .footer-right {
            display: flex;
            align-items: center;
        }

        .footer-info {
            line-height: 1.4;
        }

        .footer-info span {
            display: inline-block;
            margin: 0 3px;
        }

        .footer-divider {
            color: #444;
            margin: 0 2px;
        }

        .footer-company {
            font-weight: 600;
            color: #999;
        }

        .footer-links {
            display: flex;
            gap: 12px;
        }

        .footer-links a {
            color: #667eea;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 3px;
        }

        .footer-links a:hover {
            color: #fff;
            background: rgba(102, 126, 234, 0.2);
        }

        .footer-copyright {
            text-align: center;
            color: #666;
            font-size: 10px;
            width: 100%;
            padding-top: 10px;
            border-top: 1px solid #222;
        }

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

        .footer-exchange-links a {
            color: #667eea;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 20px;
            display: flex;
            align-items: center;
            opacity: 0.8;
        }

        .footer-exchange-links a:hover {
            color: #fff;
            opacity: 1;
            transform: translateY(-2px);
        }

        /* Promotional Section */
        .promo-section {
            background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 1) 20%);
            padding: 60px 30px 40px;
            margin-top: 40px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .promo-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .promo-title {
            font-size: 28px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .promo-subtitle {
            font-size: 14px;
            color: #aaa;
            text-align: center;
            margin-bottom: 40px;
        }

        /* Statistics Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            padding: 20px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
            text-align: center;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            border-color: #667eea;
        }

        .stat-label {
            font-size: 14px;
            color: #aaa;
            margin-bottom: 5px;
        }

        .stat-value {
            font-size: 32px;
            font-weight: bold;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-unit {
            font-size: 16px;
            color: #888;
            margin-left: 5px;
        }

        /* Feature Cards */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            padding: 25px;
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
        }

        .feature-card:hover {
            transform: scale(1.02);
            border-color: #667eea;
        }

        .feature-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            margin-bottom: 15px;
        }

        .feature-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #fff;
        }

        .feature-description {
            font-size: 14px;
            color: #aaa;
            line-height: 1.6;
        }

        /* CTA Buttons */
        .promo-cta {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 30px;
        }

        .action-btn {
            padding: 12px 30px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s;
            cursor: pointer;
            border: none;
        }

        .action-btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .action-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }

        .action-btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .action-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: #667eea;
        }

        /* 모바일 반응형 */
        @media (max-width: 768px) {
            .footer-main {
                flex-direction: column;
                gap: 15px;
            }

            .footer-left {
                flex-direction: column;
                gap: 15px;
                width: 100%;
            }

            .footer-logo {
                padding: 10px 14px;
            }

            .footer-logo img {
                height: 32px;
            }

            .footer-content {
                align-items: center;
                text-align: center;
                height: auto;
            }

            .footer-info {
                text-align: center;
            }

            .footer-right {
                justify-content: center;
            }

            .footer-exchange-links {
                justify-content: center;
            }

            .promo-section {
                padding: 40px 20px 30px;
            }

            .promo-title {
                font-size: 22px;
            }

            .stats-grid, .features-grid {
                grid-template-columns: 1fr;
            }

            .promo-cta {
                flex-direction: column;
            }

            .action-btn {
                width: 100%;
            }
        }

        /* 모바일 전용 요소 기본 스타일 (데스크톱에서 숨김) */
        .mobile-tabs {
            display: none;
        }

        .mobile-floating-tabs {
            display: none;
        }

        .menu-toggle {
            display: none;
        }

        .overlay {
            display: none;
        }

        /* 모바일 반응형 */
        /* 모바일 반응형 (768px 이하) */
        @media (max-width: 768px) {
            body {
                display: flex;
                flex-direction: column;
                height: auto; /* 100vh → auto로 변경 */
                min-height: 100vh;
                overflow-y: auto; /* hidden → auto로 변경 (전체 스크롤 허용) */
                overflow-x: hidden;
                padding: 0;
                margin: 0;
            }

            /* 메인 래퍼 수정 - 수직 스크롤 컨테이너 */
            .main-wrapper {
                display: flex;
                flex-direction: column;
                height: auto;
                min-height: calc(100vh - 44px);
                overflow-y: auto;
                overflow-x: hidden;
                -webkit-overflow-scrolling: touch;
                scroll-behavior: smooth;
                margin-top: 0;
                position: relative;
                grid-template-columns: none;
                grid-template-areas: none;
            }

            /* 헤더 영역 - 고정, 축소 */
            .header {
                flex-shrink: 0;
                padding: 6px 10px;
                flex-direction: row;
                align-items: center;
                gap: 5px;
                font-size: 12px;
                height: auto;
                min-height: 44px;
                background-color: #000;
                border-bottom: 1px solid rgba(255, 255, 255, 0.15);
            }

            /* 모바일용 탭 네비게이션 추가 */
            /* 플로팅 탭 네비게이션 */
            .mobile-floating-tabs {
                display: flex !important;
                position: fixed;
                bottom: 20px;
                left: 50%;
                transform: translateX(-50%);
                background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
                backdrop-filter: blur(15px);
                padding: 10px 14px;
                border-radius: 30px;
                gap: 10px;
                z-index: 1000;
                box-shadow: 0 10px 40px rgba(102, 126, 234, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
                border: 2px solid rgba(255, 255, 255, 0.3);
            }

            .floating-tab {
                padding: 10px 18px;
                border-radius: 20px;
                font-size: 14px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s;
                background: rgba(255, 255, 255, 0.15);
                color: rgba(255, 255, 255, 0.7);
                white-space: nowrap;
                border: 1px solid rgba(255, 255, 255, 0.2);
            }

            .floating-tab.active {
                background: rgba(255, 255, 255, 0.95);
                color: #667eea;
                box-shadow: 0 4px 16px rgba(255, 255, 255, 0.4);
                border: 1px solid rgba(255, 255, 255, 0.8);
            }

            .floating-tab:hover:not(.active) {
                background: rgba(255, 255, 255, 0.25);
                color: #fff;
                transform: translateY(-2px);
            }

            /* 컨텐츠 영역 - 스크롤 가능 */
            .mobile-content {
                flex: 1;
                overflow-y: auto;
                overflow-x: hidden;
                -webkit-overflow-scrolling: touch;
            }

            /* 코인 리스트 - 슬라이드 패널 */
            .sidebar {
                position: fixed;
                left: -100%;
                top: 0;
                width: 85%;
                max-width: 300px;
                height: 100vh;
                background-color: #1a1a1a;  /* 완전 불투명 배경 */
                z-index: 1002;  /* 오버레이(999)보다 훨씬 높게 설정 */
                transition: left 0.3s ease;
                box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
                padding: 50px 10px 10px 10px;
                display: flex;
                flex-direction: column;
                overflow-y: hidden;
            }

            /* 사이드바 내부 요소들 표시 */
            .sidebar h2 {
                display: block !important;
                flex-shrink: 0;
            }

            .sidebar .sort-container {
                display: block !important;
                margin-bottom: 15px;
                flex-shrink: 0;
            }

            .sidebar .coin-list {
                display: block !important;
                flex: 1;
                overflow-y: auto;
                overflow-x: hidden;
                min-height: 0;
            }

            .sidebar.active {
                left: 0;
            }

            /* 모바일 코인 아이템 높이 조정 */
            .sidebar .coin-item {
                padding: 8px 10px;
                min-height: 38px;
                margin-bottom: 3px;
                font-size: 13px;
            }

            /* 사이드바 닫기 버튼 */
            .sidebar-close {
                display: block !important;
                position: absolute;
                top: 10px;
                right: 10px;
                background: transparent;
                border: none;
                color: #fff;
                font-size: 24px;
                cursor: pointer;
                z-index: 1001;
                padding: 5px 10px;
            }

            /* 메뉴 토글 버튼 */
            .menu-toggle {
                display: block;
                padding: 8px;
                font-size: 20px;
                cursor: pointer;
                color: #fff;
            }

            /* 오버레이 - 사이드바가 열릴 때 body 영역만 덮기 */
            .overlay {
                display: none;
                position: fixed;
                top: 60px;  /* 헤더 아래부터 */
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.5);
                z-index: 1000;  /* 사이드바(1002)보다 낮고, body 내용보다 높게 */
                pointer-events: auto;
            }

            .overlay.active {
                display: block;
            }

            /* 메인 콘텐츠 영역 - 수직 배치 */
            .body {
                width: 100%;
                min-height: auto;
                padding: 10px;
                padding-bottom: 20px;
                background-color: #1a1a1a;
                position: relative;
                z-index: auto;
                grid-area: none;
                display: block !important;
                flex-shrink: 0;
            }

            /* 차트 컨테이너 - 모바일 최적화 */
            .chart-container {
                width: 100%;
                min-height: 400px !important;
                height: 400px !important;
                padding: 10px;
                background-color: rgba(42, 42, 42, 0.5);
                border-radius: 8px;
                margin-bottom: 15px;
                position: relative;
                display: block !important;
                visibility: visible !important;
            }

            #priceChart {
                width: 100% !important;
                min-width: 300px !important;
                min-height: 380px !important;
                height: 380px !important;
                max-width: 100%;
                display: block !important;
                visibility: visible !important;
            }

            /* canvas 요소 직접 스타일링 */
            .chart-container canvas {
                min-height: 380px !important;
                height: 380px !important;
                width: 100% !important;
                min-width: 300px !important;
                display: block !important;
            }

            /* 메인 콘텐츠 그리드 제거, 세로 스택 */
            .main-content {
                display: flex;
                flex-direction: column;
                gap: 15px;
                padding: 10px;
            }
            /* 컨트롤 패널 - 모바일 최적화 */
            .controls {
                display: flex;
                flex-direction: column;
                gap: 8px;
                padding: 8px;
                background-color: rgba(42, 42, 42, 0.8);
                border-radius: 6px;
                margin-bottom: 10px;
                height: auto !important;
            }

            /* 모바일: 코인 정보 영역 */
            .controls > div:first-child {
                display: flex;
                flex-wrap: wrap;
                gap: 6px 10px;
                font-size: 11px;
            }

            /* 모바일: 심볼과 이름 */
            .controls #chart-coin-symbol {
                font-size: 15px !important;
            }

            .controls #chart-coin-name {
                font-size: 11px !important;
            }

            /* 모바일: 가격 정보 */
            .controls #chart-coin-price {
                font-size: 13px !important;
            }

            .controls #chart-coin-change {
                font-size: 11px !important;
            }


            /* 모바일: 데이터 정보 영역 */
            .controls > div:last-child {
                display: flex;
                justify-content: space-between;
                flex-wrap: wrap;
                gap: 6px;
            }

            /* 모바일: 버튼 크기 조정 */
            .controls select,
            .controls button,
            .controls span[id$="-btn"] {
                font-size: 11px !important;
                padding: 4px 8px !important;
            }

            /* 서브차트 - 세로 배치 */
            .sub-charts {
                display: flex;
                flex-direction: column;
                gap: 15px;
                padding: 10px 0;
            }

            .sub-chart {
                width: 100%;
                min-height: 200px !important;
                height: 200px !important;
                padding: 10px;
                background-color: rgba(42, 42, 42, 0.5);
                border-radius: 8px;
                display: block !important;
            }

            .sub-chart canvas {
                width: 100% !important;
                min-height: 180px !important;
                height: 180px !important;
                display: block !important;
            }

            /* 투자분석 영역 - 수직 배치 */
            .rightpanel {
                width: 100%;
                min-height: auto;
                padding: 15px;
                padding-bottom: 80px; /* 플로팅 탭 공간 확보 */
                background-color: rgba(42, 42, 42, 0.8);
                position: relative;
                z-index: auto;
                grid-area: none;
                display: block !important;
                flex-shrink: 0;
            }

            /* 투자 분석 카드 레이아웃 */
            .analysis-cards {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                margin-top: 10px;
            }

            .analysis-card {
                background: rgba(255, 255, 255, 0.05);
                padding: 10px;
                border-radius: 8px;
                text-align: center;
            }

            .analysis-card .label {
                font-size: 11px;
                opacity: 0.7;
                margin-bottom: 5px;
            }

            .analysis-card .value {
                font-size: 14px;
                font-weight: bold;
            }
            /* 헤더 콤팩트화 */
            .header {
                padding: 10px 15px;
                flex-wrap: wrap; /* 줄바꿈 허용 */
                gap: 8px;
                overflow-x: hidden; /* 가로 스크롤 방지 */
            }

            .header h1 {
                display: flex !important; /* 모바일에서도 h1 표시 */
                flex-shrink: 0;
                order: 1;
                gap: 8px; /* 모바일에서 간격 축소 */
            }

            .header h1 img {
                width: 28px !important; /* 모바일에서 로고 크기 축소 */
                height: 28px !important;
            }

            .header h1 .subtitle {
                display: none; /* 모바일에서 서브타이틀 숨김 */
            }

            .status-container {
                display: none !important; /* 데스크톱 status 숨김 */
            }

            .last-update {
                display: none !important;
            }

            /* 모바일용 연결 상태 (두 번째 줄) */
            .mobile-connection-status {
                display: inline-flex !important;
                align-items: center;
                font-size: 9px !important;
                order: 10;
                padding: 3px 6px;
                background-color: rgba(255, 255, 255, 0.05);
                border-radius: 4px;
                color: #4CAF50;
                font-weight: 500;
            }

            .mobile-connection-status::before {
                content: '';
                display: inline-block;
                width: 6px;
                height: 6px;
                border-radius: 50%;
                margin-right: 4px;
                background-color: #4CAF50;
            }

            /* 알림 센터 (두 번째 줄) */
            .notification-center {
                order: 11;
                flex-shrink: 0;
            }

            .notification-bell {
                transform: scale(0.8); /* 알림 벨 크기 축소 */
            }

            .bell-icon {
                font-size: 16px !important;
            }

            .notification-badge {
                font-size: 9px !important;
                padding: 1px 4px !important;
            }

            #auth-buttons {
                display: flex;
                gap: 4px; /* gap 대폭 축소 */
                flex-wrap: nowrap;
                margin-left: auto !important; /* 오른쪽으로 */
                order: 12; /* 두 번째 줄, 오른쪽 정렬 */
                flex-shrink: 0;
            }

            #auth-buttons a {
                padding: 5px 8px !important; /* 패딩 대폭 축소 */
                font-size: 11px !important;
                white-space: nowrap;
                flex-shrink: 0;
            }

            .price-info {
                display: flex;
                align-items: center;
                gap: 5px;
            }

            .price {
                font-size: 14px;
                font-weight: bold;
            }

            .change {
                font-size: 11px;
                padding: 2px 5px;
            }

            /* 모바일용 플로팅 버튼 */
            .floating-buttons {
                position: fixed;
                bottom: 20px;
                right: 20px;
                display: flex;
                flex-direction: column;
                gap: 10px;
                z-index: 100;
            }

            .floating-btn {
                width: 50px;
                height: 50px;
                border-radius: 50%;
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                color: white;
                border: none;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 20px;
                cursor: pointer;
            }

            /* 코인 아이템 - 터치 친화적 */
            .coin-item {
                padding: 12px;
                margin-bottom: 8px;
                border-radius: 8px;
                background: rgba(255, 255, 255, 0.03);
                display: flex;
                justify-content: space-between;
                align-items: center;
                min-height: 50px;
            }

            .coin-name {
                font-size: 13px;
                font-weight: 500;
            }

            .coin-price {
                font-size: 12px;
            }

            /* 푸터 간소화 */
            .footer {
                padding: 15px 10px;
                font-size: 10px;
                text-align: center;
                background-color: rgba(26, 26, 26, 0.98);
            }

            /* 탭 전환시 숨김 처리 */
            .tab-content {
                display: none;
            }

            .tab-content.active {
                display: block;
            }

            /* 모바일 전용 요소 표시 */
            @media (max-width: 768px) {
                .mobile-tabs {
                    display: flex !important;
                }

                .menu-toggle {
                    display: block !important;
                }
            }

            /* 반응형 테이블 */
            table {
                width: 100%;
                font-size: 12px;
            }

            th, td {
                padding: 6px 4px;
            }
        }
        
        /* 소형 태블릿과 화면 크기 조정 시 (600px - 768px) */
        @media (min-width: 600px) and (max-width: 768px) {
            .main-wrapper {
                display: flex;
                flex-direction: column;
                gap: 10px;
                overflow-y: auto;
            }

            .sidebar {
                position: fixed;
                left: -100%;
                top: 0;
                width: 85%;
                max-width: 300px;
                height: 100vh;
                background-color: #1a1a1a;  /* 완전 불투명 배경 */
                z-index: 1002;  /* 오버레이(999)보다 훨씬 높게 설정 */
                transition: left 0.3s ease;
                box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
                padding: 50px 10px 10px 10px;
                display: flex;
                flex-direction: column;
                overflow-y: hidden;
            }

            .sidebar.active {
                left: 0;
            }

            /* 사이드바 내부 요소들 표시 */
            .sidebar h2 {
                display: block !important;
                flex-shrink: 0;
            }

            .sidebar .sort-container {
                display: block !important;
                margin-bottom: 15px;
                flex-shrink: 0;
            }

            .sidebar .coin-list {
                display: block !important;
                flex: 1;
                overflow-y: auto;
                overflow-x: hidden;
                min-height: 0;
            }

            /* 닫기 버튼 */
            .sidebar-close {
                display: block !important;
                position: absolute;
                top: 10px;
                right: 10px;
                background: transparent;
                border: none;
                color: #fff;
                font-size: 24px;
                cursor: pointer;
                z-index: 1001;
                padding: 5px 10px;
            }

            .body {
                width: 100%;
                overflow-y: visible;
            }

            .rightpanel {
                width: 100%;
                position: static;
                overflow-y: visible;
                height: auto;
            }

            .chart-container {
                height: 380px !important;
            }
        }

        /* 태블릿 (769px - 1024px) */
        @media (min-width: 769px) and (max-width: 1024px) {
            .main-wrapper {
                display: grid;
                grid-template-columns: 220px 1fr;
                grid-template-rows: auto auto auto;
                grid-template-areas:
                    "sidebar body"
                    "sidebar rightpanel"
                    "footer footer";
                gap: 10px;
                overflow-y: auto;
            }

            .sidebar {
                grid-area: sidebar;
                overflow-y: hidden;
                height: calc(100vh + 500px);
                max-height: none;
                position: sticky;
                top: 0;
                display: flex;
                flex-direction: column;
                padding: 70px 10px 10px 10px;
                background-color: #1a1a1a;
                border-right: 1px solid rgba(255, 255, 255, 0.1);
            }

            /* 정렬 컨테이너 고정 */
            .sort-container {
                flex-shrink: 0;
                margin-bottom: 10px;
            }

            /* 코인 리스트 컨테이너 - 남은 공간 모두 사용 */
            .coin-list-container {
                flex: 1;
                max-height: none;
                overflow-y: auto;
                overflow-x: hidden;
                min-height: 0;
            }

            .body {
                grid-area: body;
                overflow-y: visible;
            }

            .rightpanel {
                grid-area: rightpanel;
                overflow-y: visible;
                max-height: none;
                height: auto;
            }

            .chart-container {
                height: 400px !important;
                min-width: 100%;
            }

            /* 코인 리스트 아이템 높이 조정 - 22개 표시 */
            .coin-item {
                padding: 8px 10px;
                min-height: 35px;
                font-size: 13px;
            }
            
            .sub-chart {
                height: 150px !important;
            }
            
            .sub-chart canvas {
                height: 130px !important;
            }
        }

        /* 알림 센터 스타일 */
        .notification-center {
            position: relative;
            margin-right: 15px;
        }

        .notification-bell {
            position: relative;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
        }

        .notification-bell:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

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

        .notification-badge {
            position: absolute;
            top: 2px;
            right: 2px;
            background: #ff4444;
            color: white;
            border-radius: 10px;
            padding: 2px 6px;
            font-size: 11px;
            font-weight: bold;
            min-width: 18px;
            text-align: center;
        }

        .notification-dropdown {
            position: absolute;
            top: 50px;
            right: 0;
            width: 380px;
            max-height: 500px;
            background: #1e1e2e;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            overflow: hidden;
        }

        .notification-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .notification-header h3 {
            margin: 0;
            font-size: 18px;
            color: white;
        }

        .mark-all-read {
            background: none;
            border: none;
            color: #4CAF50;
            cursor: pointer;
            font-size: 13px;
            padding: 5px 10px;
            border-radius: 5px;
            transition: all 0.3s;
        }

        .mark-all-read:hover {
            background: rgba(76, 175, 80, 0.1);
        }

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

        .notification-item {
            padding: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

        .notification-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .notification-item.unread {
            background: rgba(76, 175, 80, 0.1);
        }

        .notification-item.unread::before {
            content: '';
            position: absolute;
            left: 5px;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            background: #4CAF50;
            border-radius: 50%;
        }

        .notification-title {
            font-weight: bold;
            color: white;
            margin-bottom: 5px;
        }

        .notification-message {
            font-size: 14px;
            color: #ccc;
            margin-bottom: 5px;
        }

        .notification-time {
            font-size: 12px;
            color: #888;
        }

        .notification-empty {
            padding: 40px;
            text-align: center;
            color: #888;
        }

        .notification-actions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        .notification-actions button {
            background: none;
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.3s;
        }

        .notification-actions button:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        @media (max-width: 768px) {
            .notification-dropdown {
                width: calc(100vw - 40px);
                right: -10px;
            }
        }

        /* 가격 알림 모달 스타일 */
        .price-alert-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        .price-alert-modal-overlay.active {
            display: flex;
        }

        .price-alert-modal {
            background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 30px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            position: relative;
            animation: modalSlideIn 0.3s ease-out;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: #888;
            font-size: 24px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .modal-close-btn:hover {
            color: white;
            transform: rotate(90deg);
        }

        .modal-header {
            margin-bottom: 25px;
        }

        .modal-header h2 {
            margin: 0 0 15px 0;
            color: white;
            font-size: 18px;
            font-weight: 500;
        }

        /* 코인 정보 수평 배치 */
        .coin-info-horizontal {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 12px 0;
        }

        .coin-name-badge {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 8px 20px;
            border-radius: 8px;
            font-weight: bold;
            font-size: 20px;
            color: white;
            letter-spacing: 1px;
        }

        .current-price-display {
            color: #4CAF50;
            font-weight: 700;
            font-size: 24px;
            font-family: 'Courier New', Consolas, monospace;
        }

        /* 구버전 호환성 (제거 예정) */
        .modal-header .coin-info {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #888;
            font-size: 14px;
        }

        .modal-header .current-price {
            color: #4CAF50;
            font-weight: bold;
            font-size: 18px;
        }

        .alert-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group label {
            color: #ccc;
            font-size: 14px;
            font-weight: 500;
        }

        .form-group input[type="number"],
        .form-group input[type="text"],
        .form-group select {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 12px;
            color: white;
            font-size: 16px;
            transition: all 0.3s;
        }

        /* 목표 가격 입력 필드 특별 스타일 */
        #target-price {
            font-size: 22px;
            font-weight: 600;
            color: #4CAF50;
            text-align: center;
            letter-spacing: 0.5px;
            background: rgba(76, 175, 80, 0.08);
            border: 2px solid rgba(76, 175, 80, 0.3);
            padding: 16px;
            font-family: 'Courier New', Consolas, monospace;
        }

        #target-price:focus {
            outline: none;
            border-color: #4CAF50;
            background: rgba(76, 175, 80, 0.15);
            box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
        }

        #target-price::placeholder {
            color: rgba(76, 175, 80, 0.5);
            font-size: 18px;
        }

        .form-group input[type="number"]:focus,
        .form-group input[type="text"]:focus,
        .form-group select:focus {
            outline: none;
            border-color: #4CAF50;
            background: rgba(76, 175, 80, 0.1);
        }

        .alert-type-group {
            display: flex;
            gap: 10px;
        }

        .alert-type-option {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

        .alert-type-option input[type="radio"] {
            position: absolute;
            opacity: 0;
        }

        .alert-type-option input[type="radio"]:checked + label {
            color: white;
        }

        .alert-type-option.above {
            border-color: rgba(76, 175, 80, 0.3);
        }

        .alert-type-option.above.selected {
            background: rgba(76, 175, 80, 0.2);
            border-color: #4CAF50;
        }

        .alert-type-option.below {
            border-color: rgba(244, 67, 54, 0.3);
        }

        .alert-type-option.below.selected {
            background: rgba(244, 67, 54, 0.2);
            border-color: #f44336;
        }

        .alert-type-option label {
            cursor: pointer;
            color: #888;
            font-weight: 500;
            transition: all 0.3s;
        }

        /* Notification Method Grid */
        .notification-method-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 10px;
        }

        .notif-card {
            position: relative;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 20px 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }

        .notif-card:hover:not(.disabled) {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(76, 175, 80, 0.5);
            transform: translateY(-2px);
        }

        .notif-card input[type="radio"] {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .notif-card input[type="radio"]:checked + .notif-card-content {
            background: rgba(76, 175, 80, 0.15);
            border-color: #4CAF50;
        }

        .notif-card input[type="radio"]:checked + .notif-card-content .notif-icon {
            transform: scale(1.1);
        }

        .notif-card.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: rgba(255, 255, 255, 0.02);
        }

        .notif-card-content {
            position: relative;
            border-radius: 8px;
            padding: 8px;
            transition: all 0.3s ease;
        }

        .notif-icon {
            font-size: 36px;
            margin-bottom: 8px;
            transition: transform 0.3s ease;
        }

        .notif-title {
            font-size: 15px;
            font-weight: 600;
            color: white;
            margin-bottom: 4px;
        }

        .notif-desc {
            font-size: 12px;
            color: #888;
            margin-bottom: 8px;
        }

        .notif-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 600;
            padding: 3px 10px;
            border-radius: 12px;
            letter-spacing: 0.5px;
        }

        .notif-badge.free {
            background: rgba(76, 175, 80, 0.2);
            color: #4CAF50;
        }

        .notif-badge.premium {
            background: rgba(255, 193, 7, 0.2);
            color: #FFC107;
        }

        /* Alert Options Row */
        .alert-options-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            padding: 12px 0;
        }

        /* Custom Checkbox */
        .checkbox-container {
            display: flex;
            align-items: center;
            cursor: pointer;
            user-select: none;
            position: relative;
            padding-left: 30px;
        }

        .checkbox-container input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
        }

        .checkmark {
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 20px;
            width: 20px;
            background-color: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 4px;
            transition: all 0.3s;
        }

        .checkbox-container:hover input ~ .checkmark {
            background-color: rgba(255, 255, 255, 0.15);
            border-color: rgba(76, 175, 80, 0.5);
        }

        .checkbox-container input:checked ~ .checkmark {
            background-color: #4CAF50;
            border-color: #4CAF50;
        }

        .checkmark:after {
            content: "";
            position: absolute;
            display: none;
            left: 6px;
            top: 2px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        .checkbox-container input:checked ~ .checkmark:after {
            display: block;
        }

        .checkbox-label {
            color: #ccc;
            font-size: 14px;
            font-weight: 500;
        }

        /* Subscription Badge */
        .subscription-badge {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(103, 126, 234, 0.15);
            border: 1px solid rgba(103, 126, 234, 0.3);
            border-radius: 16px;
            font-size: 13px;
            font-weight: 600;
            color: #a5b4fc;
            white-space: nowrap;
        }

        .subscription-badge #used-alerts {
            color: #4CAF50;
        }

        .subscription-badge #max-alerts {
            color: #667eea;
        }

        /* Info Note */
        .info-note {
            margin-top: 8px;
            padding: 10px 12px;
            background: rgba(33, 150, 243, 0.1);
            border-left: 3px solid rgba(33, 150, 243, 0.5);
            border-radius: 4px;
            color: #90caf9;
            font-size: 13px;
            line-height: 1.5;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .notification-method-grid {
                grid-template-columns: 1fr;
            }

            .alert-options-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
        }

        .modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 25px;
        }

        .modal-actions button {
            flex: 1;
            padding: 14px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-cancel {
            background: rgba(255, 255, 255, 0.1);
            color: #ccc;
        }

        .btn-cancel:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .btn-submit {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            color: white;
        }

        .btn-submit:hover {
            background: linear-gradient(135deg, #45a049, #4CAF50);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
        }

        .btn-submit:disabled {
            background: #555;
            cursor: not-allowed;
            transform: none;
        }

        .alert-info-box {
            background: rgba(33, 150, 243, 0.1);
            border: 1px solid rgba(33, 150, 243, 0.3);
            border-radius: 8px;
            padding: 12px;
            color: #64B5F6;
            font-size: 13px;
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .alert-info-box .icon {
            font-size: 18px;
        }

        .subscription-limit-info {
            background: rgba(255, 152, 0, 0.1);
            border: 1px solid rgba(255, 152, 0, 0.3);
            border-radius: 8px;
            padding: 10px;
            color: #FFB74D;
            font-size: 12px;
            margin-top: 15px;
            text-align: center;
        }

        /* 모바일 반응형 */
        @media (max-width: 768px) {
            .price-alert-modal {
                width: 95%;
                padding: 20px;
            }

            .modal-header h2 {
                font-size: 20px;
            }

            .alert-type-group {
                flex-direction: column;
            }
        }

/* ==========================================
   Hero News Banner Carousel Styles
   ========================================== */
.hero-news-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

.hero-news-banner:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.hero-news-content {
    color: white;
    max-width: 100%;
    margin: 0;
    padding: 0 40px;
    overflow: hidden;
    min-width: 0;
}

.hero-news-top {
    display: flex;
    gap: 8px;
    font-size: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 6px;
}

.hero-news-top span {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-weight: 500;
}

.hero-news-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    animation: pulse-badge 2s infinite;
}

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

.hero-news-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 18px;
    max-height: 18px;
}

.hero-impact {
    color: #ffeb3b;
}

.hero-direction {
    text-transform: uppercase;
}

.hero-recommendation {
    font-weight: 700;
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-nav-btn.prev {
    left: 5px;
}

.hero-nav-btn.next {
    right: 5px;
}

.hero-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.hero-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}

.hero-indicator.active {
    background: white;
    width: 18px;
    border-radius: 3px;
}

/* ==========================================
   Side News Card Styles
   ========================================== */
.side-news-card {
    background: linear-gradient(135deg, #7b68a6 0%, #5d4e7a 100%);
    padding: 8px 12px;
    border-radius: 3px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
    overflow: hidden;
}

.side-news-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.side-news-card.right-news {
    background: linear-gradient(135deg, #5a7a9b 0%, #485e7a 100%);
}

.side-news-top {
    display: flex;
    gap: 6px;
    font-size: 9px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 4px;
}

.side-news-top span {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-weight: 500;
    color: white;
}

.side-news-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.side-news-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-height: 36px;
    max-height: 36px;
}

.side-news-time {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-news-banner {
        padding: 6px 15px;
    }

    .hero-news-content {
        padding: 0 40px;
    }

    .hero-news-title {
        font-size: 11px;
        min-height: 15px;
        max-height: 15px;
        line-height: 1.35;
    }

    .hero-news-meta {
        font-size: 9px;
        gap: 6px;
    }

    .hero-nav-btn {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
    
    .side-news-card {
        padding: 6px 10px;
    }

    .side-news-title {
        font-size: 11px;
        min-height: 30px;
        max-height: 30px;
        line-height: 1.35;
    }

    .side-news-badge {
        font-size: 9px;
    }
}

/* BTC Dominance Overlay - Mobile Responsive */
@media (max-width: 768px) {
    /* BTC Dominance - 더 작게 */
    #btc-dominance-overlay {
        width: 140px !important;
        padding: 5px 6px !important;
        top: 5px !important;
        left: 5px !important;
    }

    #btc-dominance-overlay span[style*="font-size: 11px"] {
        font-size: 8px !important;
    }

    #btc-dominance-overlay #btc-dom-value {
        font-size: 12px !important;
    }

    #btc-dominance-overlay #btc-dom-change {
        font-size: 8px !important;
    }

    #btc-dom-sparkline {
        width: 128px !important;
        height: 38px !important;
    }

    #btc-dom-canvas {
        width: 128px !important;
        height: 38px !important;
    }

    /* EMA Settings - 아이콘만 표시 */
    #ema-settings-btn {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        top: 5px !important;
        right: 5px !important;
    }

    #ema-settings-btn span {
        font-size: 18px !important;
    }

    /* EMA Settings 텍스트 숨김 */
    #ema-settings-btn span::after {
        content: '' !important;
    }

    #ema-settings-btn span {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        width: 18px !important;
    }

    /* EMA 설정 패널 위치 조정 */
    #ema-settings-panel {
        right: 5px !important;
        top: 50px !important;
        width: calc(100vw - 20px) !important;
        max-width: 320px !important;
    }
    
    #btc-dom-update {
        font-size: 8px !important;
    }
    
    /* Popup Modal - Mobile */
    #btc-dom-popup {
        align-items: flex-start !important;
        padding: 20px 0 !important;
    }

    #btc-dom-popup > div {
        padding: 16px !important;
        width: 95% !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 20px auto !important;
        max-height: calc(100vh - 40px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #btc-dom-popup h2 {
        font-size: 18px !important;
        flex-wrap: wrap;
        margin-bottom: 16px !important;
    }

    #btc-dom-popup h2 #popup-btc-dom-value {
        font-size: 22px !important;
    }

    #btc-dom-popup h2 #popup-btc-dom-change {
        font-size: 14px !important;
    }

    #btc-dom-popup > div > div:nth-child(3) {
        height: 200px !important;
        margin-bottom: 16px !important;
    }

    #btc-dom-popup button {
        font-size: 20px !important;
        top: 12px !important;
        right: 12px !important;
    }

    /* Statistics Grid - Mobile */
    #btc-dom-popup > div > div:nth-child(4) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    #btc-dom-popup > div > div:nth-child(4) > div {
        padding: 12px !important;
    }

    #btc-dom-popup > div > div:nth-child(4) > div > div:first-child {
        font-size: 10px !important;
    }

    #btc-dom-popup > div > div:nth-child(4) > div > div:last-child {
        font-size: 16px !important;
    }
}

/* Subscription Badge */
.subscription-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
}

.subscription-badge.free {
    background: rgba(158, 158, 158, 0.2);
    color: #aaa;
    border: 1px solid rgba(158, 158, 158, 0.4);
}

.subscription-badge.free:hover {
    background: rgba(158, 158, 158, 0.3);
    border-color: rgba(158, 158, 158, 0.6);
}

.subscription-badge.premium {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: 1px solid #FFD700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.subscription-badge.premium:hover {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
}

.subscription-badge .tier-icon {
    margin-right: 4px;
}

/* Price Alert Modal - Upgrade Prompt */
.upgrade-prompt {
    margin-top: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

.upgrade-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upgrade-icon {
    font-size: 32px;
    line-height: 1;
}

.upgrade-text {
    flex: 1;
}

.upgrade-text strong {
    display: block;
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 4px;
}

.upgrade-text p {
    margin: 0;
    color: #bbb;
    font-size: 12px;
    line-height: 1.4;
}

.btn-upgrade {
    padding: 8px 16px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chart Loading Spinner */
.chart-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.3);  /* 반투명으로 변경 - blank 차트 보임 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);  /* 약한 blur로 변경 */
}

.chart-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(76, 175, 80, 0.2);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.chart-loading-text {
    margin-top: 20px;
    color: #4CAF50;
    font-size: 14px;
    font-weight: 500;
}

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

/* Coin List Loading Spinner */
.coin-list-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.15);  /* More transparent to show 10 placeholder coins */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(1px);  /* Light blur */
}

.coin-list-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(76, 175, 80, 0.2);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.coin-list-loading-text {
    margin-top: 12px;
    color: #4CAF50;
    font-size: 12px;
    font-weight: 500;
}

/* ========================================
   Chart Header Mobile Optimization
   실제 폰에서 헤더 잘림 방지
   ======================================== */

@media (max-width: 768px) {
    /* Chart controls header - 2줄 레이아웃으로 변경 */
    .chart-controls-header {
        height: auto !important;
        min-height: 60px !important;
        padding: 5px 8px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* 좌측 섹션 - 첫 번째 줄 */
    .chart-left-section {
        flex: 1 1 100% !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }

    /* 우측 섹션 - 두 번째 줄 */
    .chart-right-section {
        flex: 1 1 100% !important;
        gap: 6px !important;
        justify-content: flex-end !important;
    }

    /* 코인 정보 - 크기 축소 */
    .chart-coin-info {
        gap: 6px !important;
    }

    .chart-coin-info #chart-coin-symbol {
        font-size: 15px !important;
    }

    .chart-coin-info .chart-coin-fullname {
        font-size: 11px !important;
    }

    /* 가격 정보 - 크기 축소 */
    .chart-price-info {
        gap: 6px !important;
    }

    .chart-price-info #chart-coin-price {
        font-size: 13px !important;
    }

    .chart-price-info #chart-coin-change {
        font-size: 11px !important;
        padding: 1px 6px !important;
    }

    /* 거래소 선택 - 크기 축소 */
    .chart-exchange-selector {
        gap: 4px !important;
    }

    .chart-exchange-label {
        font-size: 10px !important;
    }

    .chart-exchange-selector #exchange-select {
        padding: 3px 6px !important;
        font-size: 10px !important;
    }


    /* 데이터 정보 버튼들 - 크기 축소 */
    .chart-right-section #data-info {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }

    .chart-right-section #style-display-btn {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }

    .chart-right-section #candlestick-toggle-btn {
        font-size: 10px !important;
        padding: 3px 6px !important;
        margin-left: 4px !important;
    }
}

/* 더 작은 화면 (360px 이하) - 추가 최적화 */
@media (max-width: 360px) {
    .chart-controls-header {
        padding: 4px 6px !important;
    }

    .chart-left-section {
        gap: 6px !important;
    }

    .chart-coin-info #chart-coin-symbol {
        font-size: 14px !important;
    }

    .chart-coin-info .chart-coin-fullname {
        display: none !important; /* 매우 작은 화면에서 코인 풀네임 숨김 */
    }

    .chart-price-info #chart-coin-price {
        font-size: 12px !important;
    }

    .chart-price-info #chart-coin-change {
        font-size: 10px !important;
    }

}

/* iOS Safari 주소창 대응 - viewport height 동적 조정 */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .chart-controls-header {
            /* iOS Safari에서 주소창이 사라질 때를 대비 */
            position: relative !important;
        }
    }
}

/* ========================================
   Chart Zoom Controls (+/- Buttons)
   모바일 데이터 개수 조절 버튼
   ======================================== */

.chart-zoom-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 버튼 터치 영역 확대 (모바일 친화적) */
.chart-zoom-controls button {
    min-width: 32px;
    min-height: 32px;
    touch-action: manipulation; /* 터치 지연 제거 */
    -webkit-tap-highlight-color: transparent; /* 터치 시 하이라이트 제거 */
}

/* 버튼 활성화 상태 */
.chart-zoom-controls button:active {
    background: #4a4a4a !important;
    transform: scale(0.95);
}

/* 버튼 비활성화 상태 (최소/최대값 도달 시) */
.chart-zoom-controls button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    /* 모바일에서 버튼 크기 증가 */
    .chart-zoom-controls button {
        min-width: 36px;
        min-height: 36px;
        font-size: 18px !important;
    }

    /* 데이터 정보 폰트 크기 축소 */
    .chart-zoom-controls #data-info {
        font-size: 11px !important;
        padding: 3px 6px !important;
    }
}

@media (max-width: 360px) {
    /* 매우 작은 화면에서 버튼 배치 최적화 */
    .chart-zoom-controls {
        gap: 2px;
    }

    .chart-zoom-controls button {
        min-width: 32px;
        min-height: 32px;
        font-size: 16px !important;
    }
}

/* ================================================
   Smart Header Icon Buttons (스마트 헤더 아이콘)
   ================================================ */
.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.header-icon-btn:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.header-icon-btn.premium-feature-btn {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(238, 90, 111, 0.2) 100%);
    border-color: rgba(255, 107, 107, 0.3);
}

.header-icon-btn.premium-feature-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(238, 90, 111, 0.3) 100%);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Header Tooltip */
.header-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.header-icon-btn:hover .header-tooltip {
    opacity: 1;
}

/* Connection Status Dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 8px #4caf50;
    animation: pulse 2s infinite;
}

.connection-status.disconnected .status-dot {
    background: #f44336;
    box-shadow: 0 0 8px #f44336;
}

.connection-status.connecting .status-dot {
    background: #ff9800;
    box-shadow: 0 0 8px #ff9800;
}

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

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f44336;
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Last Update Display */
#last-update-btn {
    width: auto;
    padding: 0 12px;
    border-radius: 18px;
}

#last-update {
    position: static;
    opacity: 1;
    margin-left: 6px;
    font-size: 0.85em;
    color: #b0b0b0;
}

/* Premium Mini Badge */
.premium-mini-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 0.6em;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 6px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Subscription Mini Badge */
.subscription-mini-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subscription-mini-badge.premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
}

.subscription-mini-badge.pro {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.subscription-mini-badge.free {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
