﻿/* ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??
   Emote Trade ??Global Exchange Modern Dark Theme
   ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??*/

:root {
    /* ?�?� 배경 (???�크 ?�이�?+ ???? ?�?� */
    --bg-body: #161A25;
    --bg-surface: #1E222D;
    --bg-card: #252A36;
    --bg-card-hover: #2C3140;
    --bg-elevated: #333848;

    /* ?�?� ?�센??컬러 (TakeProfit ?��??? ?�?� */
    --accent: #28A96A;
    --accent-glow: rgba(40, 169, 106, 0.15);
    --accent-secondary: #F6A136;
    --accent-green: #28A96A;
    --accent-red: #ff5252;
    --accent-gold: #F6A136;
    --accent-purple: #b388ff;

    /* ?�?� ?�스???�?� */
    --text-1: #ffffff;
    --text-2: #b0bec5;
    --text-3: #607d8b;
    --text-muted: #455a64;

    /* ?�?� 보더 (미세??구분?? ?�?� */
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(40, 169, 106, 0.25);
    --border-glass: rgba(255, 255, 255, 0.08);

    /* ?�?� ?�널 ?��????�?� */
    --glass-bg: #1E222D;
    --glass-blur: blur(0px);
    --glass-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);

    /* ?�?� ?�?�포그래???�?� */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;

    /* ?�?� ?�운???�?� */
    --radius: 8px;
    --radius-sm: 6px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    background: var(--bg-body);
    color: var(--text-2);
    font-family: var(--font-sans);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    padding-top: 35px !important;
    letter-spacing: 0.01em;
    font-size: 14px;
}

/* ?�═?�═?�═?�═?�═??SIDEBAR ?�═?�═?�═?�═?�═??*/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-glass);
    box-shadow: var(--glass-shadow);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.open {
    transform: translateX(0);
}

/* sidebar push removed */

main {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.3px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
}

.sidebar-toggle:hover {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-new-btn {
    margin: 12px 12px 8px;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: #000;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-new-btn:hover {
    background: #32C478;
    transform: translateY(-1px);
}

.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.sidebar-empty {
    text-align: center;
    padding: 40px 16px;
    font-size: 12px;
    color: var(--text-3);
}

.sidebar-item {
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 4px;
}

.sidebar-item:hover {
    background: var(--bg-card-hover);
}

.sidebar-item-symbol {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
}

.sidebar-item-meta {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 3px;
}

/* Sidebar open button (visible when collapsed) */
.sidebar-open-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 999;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-2);
    font-size: 16px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sidebar-open-btn.visible {
    display: flex;
}

.sidebar-open-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-1);
}

/* ?�═?�═?�═?�═?�═??SIDEBAR NAV ?�═?�═?�═?�═?�═??*/
.sidebar-nav {
    position: fixed;
    top: 35px;
    left: 0;
    width: 240px;
    height: calc(100vh - 35px);
    background: #1A1E28;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(40, 169, 106, 0.1);
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    padding: 24px 16px 20px;
    z-index: 999;
    overflow-y: auto;
}

.sidebar-nav .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-logo {
    max-width: 100%;
    height: 38px;
    object-fit: contain;
}

.logo-icon {
    color: var(--accent);
    font-size: 18px;
}

.logo-name {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-1);
}

.logo-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    background: linear-gradient(135deg, #28A96A, #1F8B55);
    color: #000;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.sidebar-nav .nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 24px;
    flex-grow: 1;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    text-align: left;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 13px;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.sidebar-nav .nav-link:hover {
    background: rgba(40, 169, 106, 0.06);
    border-left-color: rgba(40, 169, 106, 0.3);
    color: #e2e8f0;
}

.sidebar-nav .nav-link:hover .nav-icon {
    opacity: 0.9;
}

.sidebar-nav .nav-link.active {
    background: rgba(40, 169, 106, 0.1);
    border-left-color: #28A96A;
    color: #fff;
}

.sidebar-nav .nav-link.active .nav-icon {
    opacity: 1;
    color: #28A96A;
}

.sidebar-nav .header-right {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.api-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-green);
    letter-spacing: 1px;
    background: rgba(34, 197, 94, 0.08);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.api-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

/* ?═?═?═?═?═??MAIN ?═?═?═?═?═??*/
.main {
    margin-left: 240px;
    width: calc(100% - 240px);
    min-height: calc(100vh - 35px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 28px 60px;
}

.spa-view,
#analysis-view {
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

/* ?�로?�·분??결과??중앙, history�?full-width */
#analysis-view>.upload-section,
#analysis-view>.loading-section {
    max-width: 640px;
    width: 100%;
    align-self: center;
}

#analysis-view>.result-section {
    max-width: 1200px;
    width: 100%;
    align-self: center;
}

/* ?�═?�═?�═?�═?�═??UPLOAD SECTION ?�═?�═?�═?�═?�═??*/
.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 640px;
    width: 100%;
    animation: fadeUp 0.6s ease-out;
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-1);
    letter-spacing: -0.5px;
}

.hero-highlight {
    background: linear-gradient(135deg, #28A96A, #1F8B55, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}

.upload-zone {
    width: 100%;
    border: 2px dashed rgba(40, 169, 106, 0.15);
    border-radius: var(--radius);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(16, 22, 34, 0.75);
    box-shadow: 0 0 40px rgba(40, 169, 106, 0.1), inset 0 0 40px rgba(40, 169, 106, 0.03), var(--glass-shadow);
}

.upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 32px;
}

.upload-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 16px;
    color: var(--accent);
}

.upload-icon {
    width: 32px;
    height: 32px;
}

.upload-text {
    font-size: 15px;
    color: var(--text-2);
    text-align: center;
    line-height: 1.5;
}

.upload-text strong {
    color: var(--text-1);
}

.upload-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 180px;
    color: var(--text-3);
    font-size: 11px;
}

.upload-divider::before,
.upload-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--border);
}

.upload-btn {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, #28A96A 0%, #1F8B55 100%);
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(40, 169, 106, 0.4);
}

.upload-btn:hover {
    box-shadow: 0 0 25px rgba(40, 169, 106, 0.8);
    transform: translateY(-2px);
}

.upload-hint {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 0.5px;
}

.supported-formats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-3);
}

/* ?�?� Chart Selectors (Symbol / Timeframe) ?�?� */
/* ?�?� Inline Thumbnail ?�?� */
.inline-thumb {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.inline-thumb-img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
}

.inline-thumb-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.inline-thumb-remove:hover {
    background: rgba(239, 68, 68, 0.7);
    color: #fff;
}

.inline-thumb-info {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-3);
}

/* ?�?� Inline Analyze Button ?�?� */
.inline-analyze-btn {
    width: 100%;
    padding: 14px 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 10px;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
}

.inline-analyze-btn:disabled {
    opacity: 0.5;
}

.inline-analyze-btn.active {
    color: #000;
    background: linear-gradient(135deg, #28A96A 0%, #1F8B55 100%);
    border: none;
    cursor: pointer;
    opacity: 1;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(40, 169, 106, 0.4);
    animation: fadeUp 0.3s ease-out;
}

.inline-analyze-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(40, 169, 106, 0.7);
}

.chart-selectors {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: -4px;
}

.selector-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.selector-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.selector-input {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-1);
    background: rgba(10, 16, 28, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    backdrop-filter: blur(8px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.selector-input:hover {
    border-color: rgba(40, 169, 106, 0.3);
    background: rgba(10, 16, 28, 0.85);
}

.selector-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(40, 169, 106, 0.35);
}

.selector-input option {
    background: var(--bg-card);
    color: var(--text-1);
}

.format-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.06);
    color: var(--text-2);
}

/* ?�?� Pro Guide Panel ?�?� */
.pro-guide {
    width: 100%;
    margin-top: 12px;
    background: rgba(14, 165, 233, 0.03);
    border: 1px solid rgba(14, 165, 233, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
}

.pro-guide-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.pro-guide-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pro-guide-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pro-guide-badge {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.pro-guide-badge.tier1 {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.pro-guide-badge.tier2 {
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent-purple);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.pro-guide-badge.vwap {
    background: rgba(34, 197, 94, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.pro-guide-text {
    flex: 1;
}

.pro-guide-text strong {
    display: block;
    font-size: 12px;
    color: var(--text-1);
    margin-bottom: 2px;
}

.pro-guide-text p {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.5;
    margin: 0;
}

/* ?�═?�═?�═?�═?�═??PREVIEW SECTION ?�═?�═?�═?�═?�═??*/
.preview-section {
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeUp 0.4s ease-out;
}

.preview-left {
    width: 100%;
}

.preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.preview-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0.5px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.preview-img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: #000;
}

.preview-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-3);
}

.analyze-btn {
    width: 100%;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.2);
}

.analyze-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.3);
}

.analyze-btn:active {
    transform: translateY(0);
}

.analyze-btn-icon {
    font-size: 18px;
}

/* ?�═?�═?�═?�═?�═??LOADING SECTION ?�═?�═?�═?�═?�═??*/
.loading-section {
    max-width: 420px;
    width: 100%;
    animation: fadeUp 0.4s ease-out;
}

.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 48px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.spinner-ring {
    width: 56px;
    height: 56px;
    border: 3px solid rgba(14, 165, 233, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-inner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-bottom-color: #6366f1;
    border-radius: 50%;
    animation: spin 1.4s linear infinite reverse;
}

.loading-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.step {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.4s;
}

.step.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.step.done {
    color: var(--accent-green);
}

/* ?�═?�═?�═?�═?�═??RESULT SECTION ?�═?�═?�═?�═?�═??*/
.result-section {
    width: 100%;
    max-width: 1200px;
    animation: fadeUp 0.5s ease-out;
}

.result-layout {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 24px;
    align-items: flex-start;
}

.result-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 24px;
}

.result-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.result-chart-header {
    padding: 10px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
}

.result-chart-img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    background: #000;
}

.new-analysis-btn {
    width: 100%;
    padding: 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.new-analysis-btn:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-glow);
}

.result-right {
    min-width: 0;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.report-title {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: 0.5px;
}

.report-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--accent-glow);
    color: var(--accent);
    letter-spacing: 1px;
}

/* ?�═?�═?�═?�═?�═??REPORT HUD DASHBOARD ?�═?�═?�═?�═?�═??*/
.report-hud {
    display: flex;
    gap: 15px;
    margin: 0 24px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-box {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    padding: 18px;
    border-radius: 10px;
    border: 1px solid rgba(40, 169, 106, 0.12);
    backdrop-filter: blur(6px);
    transition: border-color 0.3s;
}

.hud-box:hover {
    border-color: rgba(40, 169, 106, 0.3);
}

.hud-label {
    font-size: 0.72rem;
    color: #7a8ba0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hud-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.hud-value.bullish {
    color: #00ff88;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}

.hud-value.bearish {
    color: #ff0055;
    text-shadow: 0 0 12px rgba(255, 0, 85, 0.5);
}

.hud-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.hud-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.hud-bar-fill.neon-blue {
    background: linear-gradient(90deg, #28A96A, #28A96A);
    box-shadow: 0 0 10px rgba(40, 169, 106, 0.6);
}

.hud-bar-fill.neon-purple {
    background: linear-gradient(90deg, #7c3aed, #b026ff);
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.6);
}

/* ?�═?�═?�═?�═?�═??REPORT MARKDOWN ?�═?�═?�═?�═?�═??*/
.report-body {
    padding: 24px 32px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-1);
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-all;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.report-body * {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: pre-wrap !important;
    box-sizing: border-box !important;
}

.report-body pre,
.report-body code {
    white-space: pre-wrap !important;
    word-break: break-all !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.report-body h1 {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.report-body h2 {
    font-size: 15px;
    color: var(--accent-gold);
    margin: 20px 0 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.04);
}

.report-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.report-body h3 {
    font-size: 13px;
    color: var(--accent-purple);
    margin: 18px 0 8px;
}

.report-body p {
    margin: 4px 0;
}

.report-body strong {
    color: var(--accent);
}

.report-body ul,
.report-body ol {
    padding-left: 20px;
    margin: 4px 0;
}

.report-body li {
    margin: 3px 0;
    line-height: 1.6;
}

.report-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 12px;
    font-family: var(--font-mono);
}

.report-body th {
    background: var(--bg-surface);
    color: var(--text-2);
    text-align: left;
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3px;
}

.report-body td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    transition: background 0.15s;
}

.report-body tr:hover td {
    background: rgba(14, 165, 233, 0.03);
}

.report-body blockquote {
    border-left: 3px solid var(--accent-gold);
    padding: 12px 16px;
    margin: 12px 0;
    background: rgba(245, 158, 11, 0.04);
    color: var(--accent-gold);
    font-style: italic;
    border-radius: 0 8px 8px 0;
    font-size: 12px;
    line-height: 1.6;
}

.report-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.report-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
    padding: 16px 20px;
    background: rgba(180, 130, 30, 0.1);
    border: 1px solid rgba(180, 130, 30, 0.35);
    border-radius: var(--radius);
}

.disclaimer-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.disclaimer-text {
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.6;
    color: rgba(210, 180, 100, 0.9);
}

.disclaimer-text strong {
    color: rgba(230, 200, 110, 1);
    font-size: 13px;
}

.report-body em {
    color: var(--text-3);
    font-size: 11px;
}

.report-body code {
    font-family: var(--font-mono);
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: var(--accent);
}

.report-body pre {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    color: var(--accent-green);
}

.report-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* ?�═?�═?�═?�═?�═??TRADING JOURNAL TABLE ?�═?�═?�═?�═?�═??*/
.history-section {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    animation: fadeUp 0.5s ease-out;
    padding: 0;
}

/* Journal Filter Bar */
.journal-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 16px 20px;
    background: var(--panel-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.jf-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 120px;
}

.jf-search-group {
    flex: 1;
    min-width: 180px;
}

.jf-label {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 500;
}

.jf-select,
.jf-input {
    padding: 10px 14px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-1);
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.jf-select:focus,
.jf-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.12);
}

.jf-select {
    min-width: 130px;
    cursor: pointer;
}

.jf-input {
    width: 100%;
}

.jf-input::placeholder {
    color: var(--text-3);
    opacity: 0.6;
}

.jf-reset-btn {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-3);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
}

.jf-reset-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(167, 139, 250, 0.06);
}

.journal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.journal-header-left {
    flex: 1;
    min-width: 200px;
}

.journal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.3px;
    white-space: nowrap;
    margin-bottom: 4px;
}

.journal-subtitle {
    font-size: 13px;
    color: var(--text-3);
    margin: 0;
    line-height: 1.4;
}

.journal-stats {
    display: flex;
    gap: 12px;
    flex: 1;
}

.journal-stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(40, 169, 106, 0.08);
    border-radius: 10px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 72px;
    backdrop-filter: blur(6px);
    transition: border-color 0.3s;
}

.journal-stat-box:hover {
    border-color: rgba(40, 169, 106, 0.25);
}

.journal-stat-box.stat-win {
    border-color: rgba(40, 169, 106, 0.2);
    background: rgba(40, 169, 106, 0.04);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-1);
}

.stat-value.stat-green {
    color: #22c55e;
}

.stat-value.stat-red {
    color: #ef4444;
}

.history-clear-btn {
    margin-left: auto;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.history-clear-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--accent-red);
}

.journal-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(40, 169, 106, 0.08);
    background: rgba(22, 26, 37, 0.6);
    backdrop-filter: blur(8px);
}

.journal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.journal-table thead th {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(40, 169, 106, 0.12);
    background: rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.journal-table tbody tr {
    border-bottom: 1px solid rgba(40, 169, 106, 0.05);
    transition: background 0.15s;
}

.journal-table tbody tr:hover {
    background: rgba(40, 169, 106, 0.03);
}

.journal-table tbody td {
    padding: 12px 16px;
    color: var(--text-1);
    font-size: 13px;
    white-space: nowrap;
    vertical-align: middle;
}

.journal-empty {
    text-align: center;
    padding: 48px 16px !important;
    color: var(--text-3) !important;
    font-size: 13px !important;
}

/* Symbol cell */
.journal-symbol {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    color: var(--accent);
}

/* Timeframe cell */
.journal-tf {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Signal cell */
.journal-signal {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
}

.journal-signal.long {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.journal-signal.short {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.journal-signal.neutral {
    color: var(--text-3);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Trend cell */
.journal-trend {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
}

.journal-trend.bullish {
    color: #22c55e;
}

.journal-trend.bearish {
    color: #ef4444;
}

.journal-trend.neutral-trend {
    color: var(--text-3);
}

/* Time cell */
.journal-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
}

/* Result buttons */
.result-btns {
    display: flex;
    gap: 4px;
}

.result-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0.4;
}

.result-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.result-btn.active {
    opacity: 1;
    transform: scale(1.05);
}

.result-btn.win-btn.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.result-btn.loss-btn.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.result-btn.neutral-btn.active {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.4);
}

/* View button */
.journal-view-btn {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(40, 169, 106, 0.06);
    border: 1px solid rgba(40, 169, 106, 0.15);
    border-radius: 6px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.journal-view-btn:hover {
    background: rgba(40, 169, 106, 0.15);
    border-color: rgba(40, 169, 106, 0.4);
    box-shadow: 0 0 8px rgba(40, 169, 106, 0.2);
}

.journal-del-btn {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 5px 10px;
    margin-left: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.journal-del-btn:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ?�═?�═?�═?�═?�═??MACRO CALENDAR ?�═?�═?�═?�═?�═??*/
.macro-section {
    width: 100%;
    max-width: 1100px;
    animation: fadeUp 0.5s ease-out;
}

.macro-header {
    margin-bottom: 24px;
}

.macro-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.macro-desc {
    font-size: 13px;
    color: var(--accent-gold);
    line-height: 1.5;
}

.macro-loading {
    text-align: center;
    padding: 48px;
    color: var(--text-3);
    font-size: 13px;
}

.macro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.macro-card {
    background: rgba(10, 16, 28, 0.7);
    border: 1px solid rgba(40, 169, 106, 0.08);
    border-radius: 14px;
    padding: 20px;
    backdrop-filter: blur(8px);
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.macro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, transparent, rgba(40, 169, 106, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.macro-card:hover {
    border-color: rgba(40, 169, 106, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.macro-card:hover::before {
    opacity: 1;
}

.macro-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.macro-card-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.macro-card-country {
    font-size: 16px;
}

.macro-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-extreme {
    color: #ff3366;
    background: rgba(255, 51, 102, 0.12);
    border: 1px solid rgba(255, 51, 102, 0.3);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.15);
    animation: pulseGlow 2s infinite;
}

.badge-high {
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-medium {
    color: var(--accent);
    background: rgba(40, 169, 106, 0.06);
    border: 1px solid rgba(40, 169, 106, 0.15);
}

.badge-low {
    color: var(--text-3);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 51, 102, 0.15);
    }

    50% {
        box-shadow: 0 0 18px rgba(255, 51, 102, 0.35);
    }
}

.macro-event-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 14px;
    line-height: 1.3;
}

.macro-data-row {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.macro-data-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.macro-data-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.macro-data-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-1);
}

.macro-data-value.forecast {
    color: var(--accent);
}

.macro-data-value.actual {
    color: #22c55e;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.macro-card-done {
    opacity: 0.75;
}

.macro-card-done:hover {
    opacity: 1;
}

/* ══════════ NEWS FEED PANEL ══════════ */
.news-panel {
    margin-top: 28px;
    background: rgba(10, 16, 28, 0.6);
    border: 1px solid rgba(40, 169, 106, 0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    animation: fadeUp 0.5s ease-out 0.2s both;
}

.news-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(40, 169, 106, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.news-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.2px;
}

.news-panel-icon {
    font-size: 18px;
}

.news-refresh-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(40, 169, 106, 0.15);
    background: rgba(40, 169, 106, 0.04);
    color: var(--accent);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.news-refresh-btn:hover {
    background: rgba(40, 169, 106, 0.12);
    border-color: rgba(40, 169, 106, 0.35);
    transform: rotate(180deg);
}

.news-list {
    padding: 6px 0;
    max-height: 480px;
    overflow-y: auto;
}

.news-list::-webkit-scrollbar {
    width: 4px;
}

.news-list::-webkit-scrollbar-thumb {
    background: rgba(40, 169, 106, 0.15);
    border-radius: 4px;
}

.news-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-3);
    font-size: 13px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 22px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
    transition: all 0.2s;
    position: relative;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    border-radius: 0 3px 3px 0;
    transition: opacity 0.2s;
}

.news-item:hover {
    background: rgba(40, 169, 106, 0.04);
}

.news-item:hover::before {
    opacity: 1;
}

.news-item:hover .news-title {
    color: var(--accent);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 8px rgba(40, 169, 106, 0.3);
}

.news-item-dot.coindesk {
    background: #f7931a;
    box-shadow: 0 0 8px rgba(247, 147, 26, 0.3);
}

.news-item-dot.yahoo {
    background: #7b68ee;
    box-shadow: 0 0 8px rgba(123, 104, 238, 0.3);
}

.news-item-dot.investing {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.news-item-body {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
}

.news-source-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.news-source-badge.coindesk {
    color: #f7931a;
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.2);
}

.news-source-badge.yahoo {
    color: #7b68ee;
    background: rgba(123, 104, 238, 0.1);
    border: 1px solid rgba(123, 104, 238, 0.2);
}

.news-source-badge.investing {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.news-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-3);
    font-size: 13px;
}

.news-arrow {
    color: var(--text-3);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 4px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s;
}

.news-item:hover .news-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

/* ?�═?�═?�═?�═?�═??TOAST ?�═?�═?�═?�═?�═??*/
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

.toast {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(16px);
    border: 1px solid;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.4s ease-out;
}

.toast.error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}

.toast.success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--accent-green);
}

/* ?�═?�═?�═?�═?�═??ANIMATIONS ?�═?�═?�═?�═?�═??*/
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ?�═?�═?�═?�═?�═??RESPONSIVE ?�═?�═?�═?�═?�═??*/
@media (max-width: 768px) {
    .result-layout {
        grid-template-columns: 1fr;
    }

    .result-left {
        position: static;
    }

    .hero-title {
        font-size: 24px;
    }
}

/* ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??
   SMT Divergence Panel
   ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??*/
.smt-toggle-btn {
    width: 100%;
    padding: 10px 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(14, 165, 233, 0.08));
    border: 1px dashed var(--accent-purple);
    border-radius: var(--radius-sm);
    color: var(--accent-purple);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.smt-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(14, 165, 233, 0.15));
    border-color: var(--accent);
    color: var(--text-1);
    transform: translateY(-1px);
}

.smt-toggle-icon {
    font-size: 16px;
}

/* ?�?� CVD & Order Flow ?��? ?�?� */
.cvd-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.06), rgba(245, 158, 11, 0.06));
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cvd-toggle-label:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.12));
    border-color: rgba(251, 191, 36, 0.5);
}

.cvd-toggle-label input[type="checkbox"] {
    display: none;
}

.cvd-toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--panel-2);
    border-radius: 10px;
    flex-shrink: 0;
    transition: background 0.3s;
}

.cvd-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--text-3);
    border-radius: 50%;
    transition: all 0.3s;
}

.cvd-toggle-label input:checked+.cvd-toggle-switch {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.cvd-toggle-label input:checked+.cvd-toggle-switch::after {
    left: 18px;
    background: #000;
}

.cvd-toggle-text {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.3s;
}

.cvd-toggle-label:hover .cvd-toggle-text {
    color: var(--text-1);
}

/* ?�?� ICT Kill Zone ?�션 ?�택 ?�?� */
.ict-session-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(99, 102, 241, 0.06));
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-sm);
}

.ict-session-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
}

.ict-session-icon {
    font-size: 15px;
}

.ict-session-select {
    flex: 1;
    padding: 6px 10px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    font-family: var(--font-sans);
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.ict-session-select:hover {
    border-color: var(--accent);
}

.ict-session-select:focus {
    outline: none;
    border-color: var(--accent);
}


/* ?�?� SPA Dashboard: 3-Row Grid Layout ?�?� */
.spa-view {
    animation: spaFadeIn 0.25s ease;
}

@keyframes spaFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dash-grid-layout {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: calc(100vh - 80px);
}

/* Top Row: 4 Stat Cards */
.dash-top-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.dstat-card {
    background: var(--panel-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.dstat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.dstat-card:hover::before {
    opacity: 1;
}

.dstat-card:hover {
    border-color: rgba(167, 139, 250, 0.3);
}

.dstat-icon {
    font-size: 22px;
}

.dstat-body {
    flex: 1;
}

.dstat-label {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.dstat-value {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.2;
}

.dstat-value.credit {
    color: var(--accent);
}

.dstat-value.count {
    color: #22c55e;
}

.dstat-value.top-sym {
    color: #f59e0b;
    font-size: 22px;
}

.dstat-sub {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
}

.dstat-gauge {
    width: 100%;
    height: 5px;
    background: var(--panel-2);
    border-radius: 3px;
    overflow: hidden;
}

.dstat-gauge-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple));
    border-radius: 3px;
    transition: width 0.8s ease;
}

.dstat-trend-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.dstat-trend-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-2);
}

.trend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.trend-dot.bull {
    background: #22c55e;
}

.trend-dot.bear {
    background: #ef4444;
}

.trend-pct {
    margin-left: auto;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-1);
}

.trend-bar-bg {
    width: 100%;
    height: 4px;
    background: var(--panel-2);
    border-radius: 2px;
    overflow: hidden;
}

.trend-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
    width: 0%;
}

.trend-bar-fill.bull-fill {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.trend-bar-fill.bear-fill {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Middle Row: CTA + Widget */
.dash-mid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    min-height: auto;
}

.dash-cta-card {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.dash-cta-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.15);
}

.dash-cta-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.dash-cta-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.dash-cta-icon {
    font-size: 28px;
}

.dash-cta-text {
    flex: 1;
}

.dash-cta-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 4px;
}

.dash-cta-desc {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.4;
}

.dash-cta-arrow {
    font-size: 20px;
    color: var(--accent);
    font-weight: 700;
    transition: transform 0.3s;
}

.dash-cta-card:hover .dash-cta-arrow {
    transform: translateX(4px);
}

.dash-widget-card {
    background: var(--panel-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash-widget-title {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 8px;
    font-weight: 500;
}

/* Bottom Row: Data Table */
.dash-bottom-row {
    background: var(--panel-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.dash-table-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-table-email {
    font-size: 12px;
    color: var(--text-3);
}

.dash-table-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.dash-loading {
    text-align: center;
    padding: 60px;
    color: var(--text-3);
    font-size: 13px;
}

.dash-data-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-data-table thead th {
    padding: 10px 14px;
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    background: var(--panel-2);
    position: sticky;
    top: 0;
    z-index: 1;
}

.dash-data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.dash-data-table tbody tr:hover {
    background: rgba(167, 139, 250, 0.04);
}

.dash-data-table tbody td {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-2);
}

.td-date {
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
}

.td-symbol {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-1);
}

.td-mono {
    font-family: var(--font-mono);
    font-size: 12px;
}

.history-card-trend {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.trend-bullish {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.trend-bearish {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.trend-neutral {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.result-win {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.result-loss {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.result-none {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: var(--panel-2);
    color: var(--text-3);
}

@media (max-width: 900px) {
    .dash-top-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-mid-row {
        grid-template-columns: 1fr;
    }
}

.spa-view {
    animation: spaFadeIn 0.25s ease;
}

@keyframes spaFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dash-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--panel-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.stat-card-label {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-card-value {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1;
}

.stat-card-value.credit {
    color: var(--accent);
}

.stat-card-value.count {
    color: #22c55e;
}

.stat-card-sub {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 6px;
}

.credit-gauge {
    width: 100%;
    height: 6px;
    background: var(--panel-2);
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.credit-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple));
    border-radius: 3px;
    transition: width 0.6s ease;
}

.dash-section-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-section-title span {
    font-size: 18px;
}

.dash-loading {
    text-align: center;
    padding: 60px;
    color: var(--text-3);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.history-card {
    background: var(--panel-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.history-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-card-symbol {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
}

.history-card-tf {
    font-size: 11px;
    color: var(--text-3);
    background: var(--panel-2);
    padding: 2px 8px;
    border-radius: 4px;
}

.history-card-body {
    display: flex;
    gap: 12px;
    align-items: center;
}

.history-card-meta {
    flex: 1;
}

.history-card-trend {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.trend-bullish {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.trend-bearish {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.trend-neutral {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.history-card-entry {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-2);
    margin-top: 6px;
}

.history-card-date {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 4px;
}

.history-card-result {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 6px;
}

.result-win {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.result-loss {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.result-none {
    background: var(--panel-2);
    color: var(--text-3);
}

.smt-panel {
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.04), rgba(14, 165, 233, 0.04));
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: var(--radius);
    padding: 14px;
    animation: smtSlideIn 0.3s ease forwards;
}

@keyframes smtSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 400px;
    }
}

.smt-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-2);
}

.smt-badge {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.smt-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.smt-close:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.smt-dropzone {
    border: 1px dashed rgba(167, 139, 250, 0.3);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smt-dropzone:hover {
    border-color: var(--accent-purple);
    background: rgba(167, 139, 250, 0.06);
}

.smt-dropzone-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-3);
    font-size: 13px;
}

.smt-drop-icon {
    font-size: 20px;
}

.smt-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.smt-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--accent-purple);
}

.smt-thumb-remove {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.smt-thumb-remove:hover {
    background: rgba(239, 68, 68, 0.3);
}

#smt-file-name {
    color: var(--text-2);
    font-size: 12px;
    font-family: var(--font-mono);
}

.smt-symbol-select {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??
   AI Deep Scan Overlay (injected into .preview-card)
   ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??*/
.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 11, 22, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 50;
    backdrop-filter: blur(3px);
    animation: scanFadeIn 0.3s ease;
}

@keyframes scanFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ?�이?� ?�캔 ?�인 */
.scanner-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: #28A96A;
    box-shadow: 0 0 15px #28A96A, 0 0 30px #28A96A, 0 0 50px rgba(40, 169, 106, 0.4);
    z-index: 52;
    animation: scanAnim 2.5s ease-in-out infinite;
}

.scanner-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: -20px;
    width: 100%;
    height: 44px;
    background: linear-gradient(to bottom, transparent, rgba(40, 169, 106, 0.08), rgba(40, 169, 106, 0.15), rgba(40, 169, 106, 0.08), transparent);
    pointer-events: none;
}

@keyframes scanAnim {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: calc(100% - 3px);
        opacity: 0;
    }
}

/* ?�스??박스 */
.scan-text-box {
    text-align: center;
    z-index: 53;
    padding: 0 20px;
}

.scan-hud-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.scan-hud-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28A96A;
    box-shadow: 0 0 8px #28A96A;
    animation: dotPulse 1s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

.neon-title {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #28A96A;
    text-shadow: 0 0 10px rgba(40, 169, 106, 0.7), 0 0 20px rgba(40, 169, 106, 0.4);
}

.scan-dynamic-text {
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    min-height: 20px;
    animation: textFade 0.4s ease;
}

@keyframes textFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ?�로그레??�?*/
.scan-progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
    margin: 0 auto;
    overflow: hidden;
}

.scan-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #28A96A, #a78bfa, #28A96A);
    background-size: 200% 100%;
    border-radius: 1px;
    transition: width 0.6s ease;
    animation: progressGlow 1.5s linear infinite;
}

@keyframes progressGlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* 분석 버튼 ???�캔 �??�태 */
.analyze-btn.scanning {
    opacity: 0.5;
    pointer-events: none;
}

/* ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??
   History Management UI
   ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??*/
.sidebar-actions {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-clear-btn {
    width: 100%;
    padding: 6px 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-sm);
    color: #ef4444;
    font-size: 12px;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-item-content {
    flex: 1;
    min-width: 0;
}

.sidebar-item-delete {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--text-3);
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}

.sidebar-item:hover .sidebar-item-delete {
    opacity: 1;
}

.sidebar-item-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* preview-card needs position: relative for scan overlay */
.preview-card {
    position: relative;
    overflow: hidden;
}

/* upload-zone needs position: relative for scan overlay */
.upload-zone {
    position: relative;
    overflow: hidden;
}

/* ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??
   Dual Live Ticker (Crypto + CME Marquee)
   ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??*/
.global-ticker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    z-index: 9999;
    background: rgba(22, 26, 37, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(40, 169, 106, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 3px 0;
    position: relative;
}

.ticker-track::before,
.ticker-track::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ticker-track::before {
    left: 0;
    background: linear-gradient(to right, rgba(22, 26, 37, 0.95), transparent);
}

.ticker-track::after {
    right: 0;
    background: linear-gradient(to left, rgba(22, 26, 37, 0.95), transparent);
}

.crypto-track {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ticker-content {
    display: flex;
    gap: 0;
    animation: tickerScroll 30s linear infinite;
}

.macro-track .ticker-content {
    animation: tickerScroll 35s linear infinite;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    color: var(--text-2);
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.ticker-symbol {
    font-weight: 700;
    color: var(--text-1);
    font-size: 10px;
}

.ticker-price {
    color: var(--text-1);
    font-weight: 500;
}

.ticker-change {
    font-weight: 600;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
}

.ticker-change.up {
    color: #00ff88;
    text-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.08);
}

.ticker-change.down {
    color: #ff0055;
    text-shadow: 0 0 6px rgba(255, 0, 85, 0.4);
    background: rgba(255, 0, 85, 0.08);
}

.ticker-sep {
    color: rgba(40, 169, 106, 0.15);
    font-size: 8px;
    flex-shrink: 0;
}

/* Adjust header/sidebar for ticker height */
.header {
    top: 35px !important;
}

.main {
    padding-top: 0 !important;
}



/* ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??
   History Section (Independent Tab)
   ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??*/
.history-section {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    animation: fadeUp 0.5s ease-out;
    padding: 0;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.history-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.5px;
}

.history-clear-btn {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-clear-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.history-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 14px;
    color: var(--text-3);
}

.history-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
    position: relative;
}

.history-card:hover {
    border-color: rgba(40, 169, 106, 0.3);
    box-shadow: 0 0 20px rgba(40, 169, 106, 0.1), var(--glass-shadow);
    transform: translateY(-3px);
}

.history-card-symbol {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.history-card-meta {
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 4px;
}

.history-card-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
}

.history-card-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 6px;
    color: var(--text-3);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}

.history-card:hover .history-card-delete {
    opacity: 1;
}

.history-card-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

/* Active nav link style */
.nav-link.active {
    color: var(--accent) !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    box-shadow: 0 0 6px rgba(40, 169, 106, 0.4);
}

/* ?�═?�═?�═?�═?�═??TREND IQ PANEL ?�═?�═?�═?�═?�═??*/
.trend-iq-panel {
    margin-top: 16px;
    border-radius: 14px;
    border: 1px solid rgba(40, 169, 106, 0.08);
    background: rgba(8, 14, 26, 0.7);
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: fadeUp 0.5s ease-out;
}

.tiq-section {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(40, 169, 106, 0.06);
}

.tiq-section:last-child {
    border-bottom: none;
}

.tiq-section-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* Direction badge */
.tiq-direction {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.tiq-direction.long {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.tiq-direction.short {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.tiq-direction.neutral {
    color: var(--text-3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Price boxes */
.tiq-prices {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.tiq-price-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tiq-price-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.tiq-price-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 800;
}

.tiq-entry {
    background: rgba(0, 140, 255, 0.07);
    border-color: rgba(0, 140, 255, 0.15);
}

.tiq-entry .tiq-price-label {
    color: rgba(100, 180, 255, 0.8);
}

.tiq-entry .tiq-price-value {
    color: #64b4ff;
}

.tiq-sl {
    background: rgba(255, 50, 50, 0.08);
    border-color: rgba(255, 50, 50, 0.2);
}

.tiq-sl .tiq-price-label {
    color: rgba(255, 100, 100, 0.8);
}

.tiq-sl .tiq-price-value {
    color: #ff4444;
}

.tiq-tp {
    background: rgba(50, 255, 100, 0.07);
    border-color: rgba(50, 255, 100, 0.18);
}

.tiq-tp .tiq-price-label {
    color: rgba(100, 255, 140, 0.8);
}

.tiq-tp .tiq-price-value {
    color: #22c55e;
}

/* Reasoning list */
.tiq-reasons {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tiq-reasons li {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    padding-left: 24px;
    position: relative;
}

.tiq-reasons li::before {
    content: '??;
 position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
}

/* Market Context grid */
.tiq-context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tiq-ctx-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.tiq-ctx-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.tiq-ctx-value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
}

.tiq-ctx-value.bullish {
    color: #22c55e;
}

.tiq-ctx-value.bearish {
    color: #ef4444;
}

/* ?�═?�═?�═?�═?�═??AUTH LOGIN MODAL ?�═?�═?�═?�═?�═??*/
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(4, 8, 20, 0.92);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease-out;
}

.auth-modal {
    background: rgba(12, 18, 32, 0.85);
    border: 1px solid rgba(40, 169, 106, 0.12);
    border-radius: 20px;
    padding: 48px 44px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(40, 169, 106, 0.06);
    backdrop-filter: blur(24px);
    animation: modalPop 0.5s ease-out;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-logo {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 10px;
    line-height: 1.3;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 28px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-input {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-1);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(40, 169, 106, 0.12);
    border-radius: 10px;
    padding: 14px 18px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
    border-color: rgba(40, 169, 106, 0.4);
    box-shadow: 0 0 12px rgba(40, 169, 106, 0.1);
}

.auth-input::placeholder {
    color: var(--text-3);
}

.auth-btn {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: #111418;
    background: linear-gradient(135deg, var(--accent), #00d4e6);
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(40, 169, 106, 0.3);
}

.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-note {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 20px;
}

.auth-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #32C478;
    text-decoration: underline;
}

/* Auth Tab Navigation */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(40, 169, 106, 0.08);
    overflow: hidden;
}

.auth-tab {
    flex: 1;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-3);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab:hover {
    color: var(--text-2);
    background: rgba(40, 169, 106, 0.04);
}

.auth-tab.active {
    color: var(--accent);
    background: rgba(40, 169, 106, 0.1);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(40, 169, 106, 0.4);
}

/* ?�═?�═?�═?�═?�═??SIDEBAR CREDITS ?�═?�═?�═?�═?�═??*/
.sidebar-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-2);
    padding: 10px 14px;
    background: rgba(40, 169, 106, 0.04);
    border: 1px solid rgba(40, 169, 106, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
}

.sidebar-credits strong {
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
}

.credits-icon {
    font-size: 14px;
}

/* Sidebar Footer / Logout */
.sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
}

.logout-btn {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #a0aec0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 14px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    border-color: rgba(255, 77, 77, 0.2);
}

.logout-icon {
    font-size: 14px;
}

/* ?�═?�═?�═?�═?�═??CREDIT EXHAUSTED MODAL ?�═?�═?�═?�═?�═??*/
.credit-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(4, 8, 20, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.credit-modal {
    background: rgba(12, 18, 32, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.4s ease-out;
}

.credit-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.credit-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 10px;
}

.credit-modal-desc {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 24px;
    line-height: 1.5;
}

.credit-modal-btn {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
    background: rgba(40, 169, 106, 0.1);
    border: 1px solid rgba(40, 169, 106, 0.2);
    border-radius: 10px;
    padding: 12px 32px;
    cursor: pointer;
    transition: all 0.2s;
}

.credit-modal-btn:hover {
    background: rgba(40, 169, 106, 0.2);
    border-color: rgba(40, 169, 106, 0.4);
}

/* ?�� 로그?�웃 버튼 ?�자??*/
.logout-btn {
    width: 100%;
    margin-top: 25px;
    padding: 12px 15px;
    background: transparent;
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: 8px;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.5);
}

/* ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??
   Phase 68 ??Global Exchange Modern Dark Theme Overrides
   ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═??*/

/* ?�?� ?�역 카드/?�널: ?�리???�크 배경 (?�리?�태 ?�거) ?�?� */
.card,
.panel,
.hud-card,
.stat-card,
.ctx-card,
.tiq-entry-card,
.tiq-sl-card,
.tiq-tp-card,
.tiq-grade-card,
.result-card,
.analysis-card,
.dash-stat-card {
    background: var(--bg-card) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    border-radius: var(--radius) !important;
}

/* ?�?� ?�목 ?�스?? ?�백 ?�?� */
h1,
h2,
h3,
h4,
.journal-title,
.sidebar-title,
.upload-hero-title,
.hud-label,
.stat-label,
.dash-stat-label {
    color: var(--text-1) !important;
}

/* ?�?� 본문 ?�스???�?� */
p,
span,
.text-body,
.journal-subtitle {
    color: var(--text-2);
}

/* ?�?� 모든 버튼: ?�랫 ?��????�?� */
button,
.btn,
input[type="submit"] {
    font-family: var(--font-sans);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

/* ?�?� 분석 ?�작 버튼 ?�?� */
.primary-analyze-btn,
.inline-analyze-btn,
#btn-analyze,
#btn-inline-analyze {
    background: var(--accent) !important;
    color: #000 !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 600;
}

.primary-analyze-btn:hover,
.inline-analyze-btn:hover,
#btn-analyze:hover,
#btn-inline-analyze:hover {
    background: #32C478 !important;
    box-shadow: 0 2px 12px rgba(40, 169, 106, 0.3) !important;
    transform: translateY(-1px);
}

/* ?�?� ?�로???�역: 모던 ?�??보더 ?�?� */
.upload-zone,
.upload-drop-zone {
    background: var(--bg-surface) !important;
    border: 2px dashed var(--border-glass) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover,
.upload-drop-zone:hover {
    border-color: var(--accent) !important;
    background: rgba(40, 169, 106, 0.05) !important;
}

/* ?�?� ?�로???�어�??�스???�?� */
.upload-hero-title {
    background: none !important;
    -webkit-text-fill-color: var(--text-1) !important;
    font-weight: 700;
}

.upload-hero-sub {
    color: var(--text-3) !important;
}

/* ?�?� ?�력 ?�드 / ?�?�트 ?�?� */
input,
select,
textarea,
.form-control {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-1) !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(40, 169, 106, 0.15) !important;
}

/* ?�?� 로그??모달 ?�?� */
.login-modal,
.modal-content,
.auth-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: none !important;
    border-radius: 12px !important;
}

.login-modal input,
.auth-card input {
    background: var(--bg-elevated) !important;
}

.login-btn,
.auth-btn {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
    box-shadow: none !important;
}

.login-btn:hover,
.auth-btn:hover {
    background: #32C478 !important;
}

/* ?�?� ?�이�? 보더리스, ??구분?�만 ?�?� */
table,
.journal-table {
    border-collapse: collapse;
}

table th,
.journal-table th {
    background: var(--bg-surface) !important;
    color: var(--text-3) !important;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-glass) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

table td,
.journal-table td {
    border-bottom: 1px solid var(--border) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    color: var(--text-2);
}

table tr:hover td,
.journal-table tr:hover td {
    background: var(--bg-card-hover);
}

/* ?�?� HUD 게이지 카드: ?�랫 모던 ?�?� */
.hud-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
}

.hud-label {
    color: var(--text-3) !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.hud-value {
    color: var(--text-1) !important;
    font-weight: 700;
}

.hud-value.bullish {
    color: var(--accent-green) !important;
}

.hud-value.bearish {
    color: var(--accent-red) !important;
}

/* ?�?� HUD ?�로그레??�??�?� */
.hud-bar-track {
    background: var(--bg-elevated) !important;
    border-radius: 3px;
}

.hud-bar-fill {
    background: var(--accent-green) !important;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(40, 169, 106, 0.3) !important;
}

/* ?�?� ?�승/?�락 ?�상 ?�일 ?�?� */
.bullish,
.long,
.signal.long,
.trend.bullish,
.journal-signal.long {
    color: var(--accent-green) !important;
}

.bearish,
.short,
.signal.short,
.trend.bearish,
.journal-signal.short {
    color: var(--accent-red) !important;
}

/* ?�?� ?�커 �??�?� */
.market-ticker-bar,
.ticker-bar {
    background: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
}

/* ?�?� 분석 결과 ?�역 ?�?� */
.result-content,
.report-body,
.report-container {
    color: var(--text-2);
    line-height: 1.7;
}

.result-content h2,
.report-body h2 {
    color: var(--text-1);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.result-content h3,
.report-body h3 {
    color: var(--text-1);
}

.result-content strong,
.report-body strong {
    color: var(--text-1);
}

.result-content table,
.report-body table {
    border: none !important;
}

.result-content code {
    background: var(--bg-elevated);
    color: var(--accent-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* ?�?� ?�?�보???�탯 카드 ?�?� */
.dash-stat-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
}

.dash-stat-value {
    color: var(--text-1) !important;
    font-weight: 700;
}

.dash-stat-label {
    color: var(--text-3) !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ?�?� ?�크롤바 ?�?� */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ?�?� ?�레???�젯 + API ?�태 ?�?� */
.credits-box,
.api-status-box {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

/* ?�?� ?�이?�바 ?�비게이???�이???�?� */
.nav-item.active,
.sidebar-item.active {
    background: rgba(40, 169, 106, 0.1) !important;
    border-left: 3px solid var(--accent) !important;
}

.nav-item:hover,
.sidebar-item:hover {
    background: var(--bg-card-hover) !important;
}

/* ?�?� TrendIQ ?�널???�?� */
.tiq-ctx-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
}

/* ?�?� 로딩 ?�니메이???�?� */
.deep-scan-overlay {
    background: rgba(10, 14, 23, 0.85) !important;
    backdrop-filter: blur(4px);
}

/* ?�?� 거래 ?�역 ?�터 �??�?� */
.jf-select,
.jf-input {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-2) !important;
}

.jf-select:focus,
.jf-input:focus {
    border-color: var(--accent) !important;
}

.jf-reset-btn {
    background: transparent !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-3) !important;
}

.jf-reset-btn:hover {
    border-color: var(--accent) !important;
    color: var(--text-1) !important;
}

/* ?�?� O/X 결과 버튼 ?�?� */
.result-btn {
    opacity: 0.5;
    transition: opacity 0.15s, transform 0.15s;
}

.result-btn:hover {
    opacity: 0.8;
    transform: scale(1.15);
}

.result-btn.active {
    opacity: 1;
}

/* ?�?� SMT ?�력 ?�역 ?�?� */
.smt-section,
.smt-upload-area {
    background: var(--bg-surface) !important;
    border: 1px dashed var(--border-glass) !important;
    border-radius: var(--radius) !important;
}

/* ?�?� ?�역 box-shadow glow ?�거 ?�?� */
.neon-glow,
[class*="glow"] {
    box-shadow: none !important;
}

/* ── 전역 gradient text 제거 → 솔리드 색상 ── */
.gradient-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--text-1) !important;
}

/* ═══════════════════════════════════════════════════════════
   Phase 69 — Financial Platform Design System
   배경: #1E222D | 프라이머리: #28A96A | 오렌지: #F6A136
   ═══════════════════════════════════════════════════════════ */

/* ── 1. 드롭존: 이너 섀도우 + Surface Card 분리 ── */
.upload-zone,
.upload-drop-zone {
    background: var(--bg-card) !important;
    border: 2px dashed rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: none !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* ── 1a. 드래그 오버 시 그린 글로우 마이크로 인터랙션 ── */
.upload-zone:hover,
.upload-drop-zone:hover,
.upload-zone.dragover,
.upload-drop-zone.dragover {
    border-color: var(--accent-green) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(40, 169, 106, 0.15) !important;
    background: rgba(40, 169, 106, 0.03) !important;
}

/* ── 2. 설정 모듈 그룹화 (업로드 아래 Configuration Panel) ── */
.settings-row,
.compact-settings,
.analysis-settings,
.trade-config-row {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: var(--radius) !important;
    padding: 16px 20px !important;
    margin-top: 12px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ── 3. 숫자 데이터: 모노스페이스 폰트 강제 ── */
.hud-value,
.dash-stat-value,
.ticker-price,
.ticker-change,
.journal-price,
.rr-value,
.winrate-value,
.credits-count,
td[data-type="number"],
td[data-type="price"],
.price-value,
.stat-number,
.tiq-price,
.tiq-ratio {
    font-family: var(--font-mono) !important;
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
}

/* ── 4. 프라이머리 버튼: 에메랄드 그린 ── */
.primary-analyze-btn,
.inline-analyze-btn,
#btn-analyze,
#btn-inline-analyze {
    background: var(--accent-green) !important;
    color: #000 !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.primary-analyze-btn:hover,
.inline-analyze-btn:hover,
#btn-analyze:hover,
#btn-inline-analyze:hover {
    background: #32C478 !important;
    box-shadow: 0 4px 16px rgba(40, 169, 106, 0.25) !important;
    transform: translateY(-1px);
}

/* ── 5. 오렌지 액센트: 프리미엄/리스크 주의 영역 ── */
.orderflow-toggle,
.premium-badge,
.risk-input-label,
.sniper-eye-label {
    color: var(--accent-secondary) !important;
}

.orderflow-section,
.sniper-section {
    border-left: 3px solid var(--accent-secondary) !important;
    padding-left: 12px;
}

/* ── 6. 사이드바: 다크 슬레이트 ── */
.sidebar-nav {
    background: #1A1E28 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
    box-shadow: 1px 0 8px rgba(0, 0, 0, 0.3) !important;
}

/* ── 7. 사이드바 액티브 아이템: 그린 하이라이트 ── */
.nav-link.active {
    background: rgba(40, 169, 106, 0.1) !important;
    border-left: 3px solid var(--accent-green) !important;
}

.sidebar-nav .nav-link.active .nav-icon {
    color: var(--accent);
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 12px 8px;
}

/* ── 8. 로그인 버튼: 그린 ── */
.login-btn,
.auth-btn {
    background: var(--accent-green) !important;
    color: #000 !important;
    border: none !important;
    font-weight: 600;
    box-shadow: none !important;
}

.login-btn:hover,
.auth-btn:hover {
    background: #32C478 !important;
}

/* ── 9. 포커스 링: 그린 ── */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-green) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(40, 169, 106, 0.15) !important;
}

/* ── 10. 순수 블랙(#000) 방지 → 다크 슬레이트 ── */
body {
    background: var(--bg-body) !important;
}

/* ── 11. 티커 바: 다크 슬레이트 톤 ── */
.global-ticker,
.ticker-track {
    background: #161A25 !important;
}

/* ── 12. 업로드 히어로 타이틀: 깨끗한 흰색 ── */
.upload-hero-title {
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ── 13. 업로드 상태 배지 / 파일 선택 버튼 ── */
.file-select-btn,
.upload-btn {
    background: var(--accent-green) !important;
    color: #000 !important;
    font-weight: 600;
    border: none !important;
}

.file-select-btn:hover,
.upload-btn:hover {
    background: #32C478 !important;
}

/* ── 14. 사이드바 새 분석 버튼 ── */
.sidebar-new-btn {
    background: var(--accent-green) !important;
    color: #000 !important;
}

.sidebar-new-btn:hover {
    background: #32C478 !important;
}

/* ═══════════════════════════════════════════════════════════
   Phase 69b — 사이드바 하단 위젯 규격 통일
   ═══════════════════════════════════════════════════════════ */

/* ── 부모 컨테이너: flex-column + 균등 간격 ── */
.sidebar-nav .header-right {
    margin-top: auto !important;
    padding: 16px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
}

/* ── 3개 위젯 공통 규격 강제 ── */
.sidebar-credits,
.api-status,
.logout-btn {
    width: 100% !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-family: var(--font-mono) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

/* ── 크레딧 박스: 그린 틴트 ── */
.sidebar-credits {
    background: rgba(40, 169, 106, 0.06) !important;
    border-color: rgba(40, 169, 106, 0.12) !important;
    color: var(--text-2) !important;
}

.sidebar-credits strong {
    color: var(--accent-green) !important;
    font-weight: 800 !important;
    font-size: 13px !important;
}

/* ── AI 모델 박스: 그린 스테이터스 ── */
.api-status {
    background: rgba(40, 169, 106, 0.06) !important;
    border-color: rgba(40, 169, 106, 0.12) !important;
    color: var(--accent-green) !important;
    letter-spacing: 0.5px !important;
    font-size: 11px !important;
}

/* ── 로그아웃 박스: 뉴트럴 ── */
.logout-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-3) !important;
    cursor: pointer !important;
}

.logout-btn:hover {
    background: rgba(255, 77, 77, 0.08) !important;
    border-color: rgba(255, 77, 77, 0.2) !important;
    color: #ff5252 !important;
}

/* ══════════ AUTH TABS ══════════ */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(40, 169, 106, 0.12);
}

.auth-tab {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-3);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    color: #111418;
    background: var(--accent);
}

.auth-tab:hover:not(.active) {
    color: var(--text-1);
    background: rgba(40, 169, 106, 0.08);
}

/* ══════════ TIER BADGES ══════════ */
.tier-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    text-transform: uppercase;
}

.tier-free {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.tier-pro {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.25);
    text-shadow: 0 0 6px rgba(167, 139, 250, 0.3);
}

.tier-admin {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.3);
}

/* ══════════ ADMIN PANEL ══════════ */
.admin-panel {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeUp 0.5s ease-out;
}

.admin-header {
    margin-bottom: 24px;
}

.admin-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.5px;
}

.admin-subtitle {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 6px;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    background: var(--bg-surface);
    color: var(--text-3);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.admin-table td {
    padding: 12px 16px;
    color: var(--text-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-table tr:hover td {
    background: rgba(40, 169, 106, 0.03);
}

.admin-email {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-1);
}

.admin-status {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

.status-active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.status-suspended {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.admin-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.admin-tier-select {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    padding: 5px 8px !important;
    border-radius: 6px !important;
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-1) !important;
    cursor: pointer;
}

.admin-toggle-btn,
.admin-del-btn {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.admin-toggle-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.admin-del-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.admin-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-3);
    font-size: 14px;
}

/* Admin view flex layout */
#admin-view {
    flex-direction: column;
    padding: 32px 24px;
}

/* ═══ Phase 73: Plan Gauge Bar ═══ */
.sidebar-plan {
    padding: 12px 14px;
    margin: 0 12px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.plan-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-gauge-wrap {
    width: 100%;
    height: 6px;
    background: var(--bg-surface);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.plan-gauge-bar {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.plan-unlimited .plan-gauge-bar {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.plan-usage-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
}

/* ═══ Settings Panel ═══ */
#settings-view {
    flex-direction: column;
    padding: 32px 24px;
}

.settings-panel {
    max-width: 600px;
    width: 100%;
}

.settings-title {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 28px;
}

.settings-section {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.settings-label {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-select {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-1);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.settings-select:focus {
    border-color: var(--accent);
    outline: none;
}

.settings-select option {
    background: var(--bg-card);
    color: var(--text-1);
}

.settings-hint {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--text-3);
    margin-top: 8px;
}

/* Phase 75: Settings 2-Card Layout */
.settings-container {
    max-width: 960px;
    width: 100%;
    padding: 0 16px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.settings-card {
    background: rgba(30, 34, 45, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.settings-card-icon {
    font-size: 22px;
}

.settings-card-header h3 {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
}

.settings-field {
    margin-bottom: 20px;
}

.settings-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-1);
    padding: 10px 14px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.settings-input {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-1);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.settings-input:focus {
    border-color: var(--accent);
    outline: none;
}

.settings-input::placeholder {
    color: var(--text-3);
}

.settings-plan-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-plan-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--accent);
    color: #000;
}

.settings-plan-badge.pro {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}

.settings-plan-badge.admin {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
}

.settings-plan-info {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-2);
}

.settings-usage-bar {
    height: 8px;
    background: var(--bg-surface);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.settings-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #22d3ee);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.settings-usage-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-2);
    margin-top: 6px;
    text-align: right;
}

.settings-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.settings-btn {
    width: 100%;
    padding: 12px 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.settings-btn-primary {
    background: var(--accent);
    color: #000;
}

.settings-btn-primary:hover {
    background: #36d67a;
    transform: translateY(-1px);
}

.settings-btn-secondary {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
}

.settings-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.settings-plan-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.plan-card-label {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
}

.plan-card-detail {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
}

/* ═══ Admin Plan Toggle Button ═══ */
.admin-plan-btn {
    padding: 4px 10px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.2s;
}

.admin-plan-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.admin-tag {
    font-size: 16px;
}

/* ═══ Phase 74: OTP 2-Step Signup ═══ */
.auth-btn-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.auth-btn-secondary:hover {
    background: var(--accent);
    color: #fff;
}

.auth-input-otp {
    text-align: center;
    font-size: 22px;
    letter-spacing: 8px;
    font-family: var(--font-mono);
    font-weight: 700;
    flex: 1;
    min-width: 0;
}

.auth-otp-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.auth-btn-verify {
    padding: 0 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.auth-btn-verify:hover {
    background: #36d67a;
}

.auth-btn-verify:disabled {
    background: #555;
    cursor: not-allowed;
}

.auth-otp-verified {
    font-size: 13px;
    color: #4ade80;
    text-align: center;
    margin-bottom: 8px;
    animation: fadeIn 0.3s ease;
}

.auth-otp-hint {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #4ade80;
    text-align: center;
    margin-top: 8px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#signup-step2 {
    animation: fadeIn 0.3s ease;
}

/* ═══ Feedback View ═══ */
#feedback-view {
    flex-direction: column;
    padding: 32px 24px;
}

.feedback-panel {
    max-width: 600px;
    width: 100%;
}

.feedback-textarea {
    width: 100%;
    padding: 14px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-1);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s;
}

.feedback-textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.feedback-msg-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══ Admin Tabs ═══ */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.admin-tab-btn {
    padding: 8px 18px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-3);
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.admin-tab-btn:hover:not(.active) {
    color: var(--text-1);
    border-color: var(--text-2);
}

.status-unread {
    color: #f59e0b;
    font-weight: 700;
}

.status-read {
    color: var(--text-3);
}

/* Phase: 피드백 행 hover */
.feedback-row:hover td {
    background: rgba(40, 169, 106, 0.06);
}

/* 피드백 상세 모달 */
.feedback-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(4, 8, 20, 0.88);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.feedback-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 32px;
    max-width: 560px;
    width: 90%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.4s ease-out;
}

.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.feedback-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
}

.feedback-modal-id {
    color: var(--accent);
    font-size: 14px;
    margin-left: 6px;
}

.feedback-modal-close {
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.feedback-modal-close:hover {
    color: var(--text-1);
}

.feedback-modal-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.feedback-modal-body {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
    min-height: 60px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.feedback-modal-footer {
    margin-top: 24px;
    text-align: right;
}

.feedback-modal-read-btn {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: #000;
    transition: all 0.2s;
}

.feedback-modal-read-btn:hover {
    background: #32C478;
}

.feedback-modal-read-btn:disabled {
    background: var(--bg-elevated);
    color: var(--text-3);
    cursor: default;
}

/* ═══════════════════════════════════════════════════════════════
   Phase 68 — Responsive Web (Mobile / Tablet)
   ═══════════════════════════════════════════════════════════════ */

/* ── 모바일 헤더 (PC에서 숨김) ── */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #1A1E28;
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1100;
}

.mobile-logo {
    height: 28px;
    object-fit: contain;
}

.hamburger-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    font-size: 22px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hamburger-btn:hover {
    background: var(--bg-card-hover);
}

/* ── 사이드바 오버레이 ── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ── 테이블 가로 스크롤 보호 (전역) ── */
.table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* ═══════════ 태블릿 (max-width: 1024px) ═══════════ */
@media (max-width: 1024px) {
    .dash-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .result-layout {
        grid-template-columns: 1fr;
    }

    .result-left {
        position: static;
    }
}

/* ═══════════ 모바일 (max-width: 768px) ═══════════ */
@media (max-width: 768px) {

    /* ── 모바일 헤더 표시 ── */
    .mobile-header {
        display: flex;
    }

    /* ── 전광판을 모바일 헤더 아래로 ── */
    .global-ticker {
        top: 56px !important;
        z-index: 1050 !important;
    }

    /* ── 상단 바 숨김 (모바일 헤더가 대체) ── */
    .top-bar {
        display: none !important;
    }

    /* ── 전체 가로 오버플로우 방지 ── */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* ── TradingView 티커 바 모바일 ── */
    .tradingview-widget-container {
        overflow-x: auto;
        max-width: 100vw;
    }

    /* ── 차트 셀렉터 입력 필드 2x2 그리드 ── */
    .chart-selectors {
        flex-wrap: wrap;
    }

    .selector-group {
        flex: 1 1 45%;
        min-width: 0;
    }

    /* ── 사이드바 Off-canvas ── */
    .sidebar-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        top: 0 !important;
        height: 100vh !important;
        z-index: 1050 !important;
    }

    .sidebar-nav.open {
        transform: translateX(0);
    }

    /* ── 메인 콘텐츠 풀 너비 ── */
    .main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 116px 12px 80px !important;
        min-height: 100vh;
    }

    /* ── 대시보드 그리드 1열 ── */
    .dash-stats {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* ── 카드, 패널 패딩 축소 ── */
    .stat-card,
    .glass-card,
    .section-card {
        padding: 14px;
    }

    /* ── 분석 리포트 레이아웃 ── */
    .result-section {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .report-body {
        font-size: 14px;
        line-height: 1.7;
    }

    .report-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    /* ── 업로드 영역 ── */
    .upload-zone {
        padding: 30px 16px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-desc {
        font-size: 13px;
    }

    /* ── 터치 친화적 UI ── */
    button,
    .auth-btn,
    .nav-link,
    select,
    .btn-analyze {
        min-height: 44px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        min-height: 44px;
        font-size: 16px;
        /* iOS zoom 방지 */
        padding: 10px 12px;
    }

    .nav-link {
        padding: 12px 16px !important;
        font-size: 14px;
    }

    /* ── 히스토리 테이블 모바일 ── */
    .history-table-wrapper,
    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ── 로그인 모달 모바일 ── */
    .auth-modal {
        width: 95% !important;
        max-width: 400px;
        margin: 20px auto;
        padding: 24px 20px !important;
    }

    .auth-title {
        font-size: 16px;
    }

    /* ── 설정/마이페이지 ── */
    .settings-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── 뉴스 피드 ── */
    .macro-calendar,
    .news-feed {
        padding: 12px;
    }

    /* ── HUD 게이지 패널 ── */
    .hud-gauges {
        flex-direction: column;
        gap: 12px;
    }

    /* ── SMT 패널 ── */
    .smt-panel-content {
        flex-direction: column;
    }
}

/* ═══════════ 매우 작은 화면 (max-width: 480px) ═══════════ */
@media (max-width: 480px) {
    .mobile-header {
        padding: 0 12px;
    }

    .main {
        padding: 108px 8px 70px !important;
    }

    .dash-stats {
        gap: 8px;
    }

    .stat-card-value {
        font-size: 20px;
    }

    .auth-modal {
        width: 98% !important;
        padding: 20px 16px !important;
    }
}

/* ═══════════════════════════════════════════
   Phase 71: 이용 가이드 Notion 스타일
   ═══════════════════════════════════════════ */
#guide-view {
    flex-direction: column;
}

.guide-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

.guide-header {
    margin-bottom: 40px;
    text-align: center;
}

.guide-main-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1.3;
    margin-bottom: 10px;
}

.guide-emoji {
    display: inline-block;
    animation: guideRocket 1.5s ease-in-out infinite alternate;
}

@keyframes guideRocket {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-6px);
    }
}

.guide-subtitle {
    font-size: 14px;
    color: var(--text-3);
    line-height: 1.6;
}

.guide-section {
    position: relative;
    margin-bottom: 32px;
    padding-left: 48px;
}

.guide-section-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.35;
    font-family: var(--font-mono);
    line-height: 1;
}

.guide-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 12px;
    line-height: 1.4;
}

.guide-section-title span {
    font-size: 20px;
}

.guide-card {
    background: var(--panel-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.guide-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    line-height: 1.7;
}

.guide-item:last-child {
    border-bottom: none;
}

.guide-item p {
    color: var(--text-2);
    font-size: 13.5px;
    margin-top: 6px;
    line-height: 1.8;
}

.guide-item strong {
    color: var(--text-1);
}

.guide-highlight {
    color: var(--accent) !important;
    font-size: 14px;
}

.guide-warning {
    color: #F87171 !important;
    font-size: 14px;
}

.guide-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    background: rgba(40, 169, 106, 0.12);
    border: 1px solid rgba(40, 169, 106, 0.25);
    border-radius: 6px;
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
}

.guide-item code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #A78BFA;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-callout {
    background: rgba(40, 169, 106, 0.06);
    border-left: 3px solid var(--accent);
}

.guide-alert-info {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 6px;
    font-size: 12px;
    color: #FBBF24;
    line-height: 1.5;
}

.guide-disclaimer {
    margin-top: 40px;
    padding: 20px 24px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    border-left: 4px solid #EF4444;
}

.guide-disclaimer-title {
    font-size: 15px;
    font-weight: 700;
    color: #F87171;
    margin-bottom: 8px;
}

.guide-disclaimer p {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.8;
}

.guide-disclaimer p strong {
    color: var(--text-2);
}