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

:root {
    --bg-primary: #090909;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #141414;
    --bg-hover: #1e1e1e;
    --bg-active: #252525;
    --border: #1f1f1f;
    --border-bright: #353535;
    --text-primary: #e6e6e6;
    --text-secondary: #999999;
    --text-muted: #666666;
    --text-dim: #444444;
    --accent: #e2a832;
    --accent-dim: #5c4415;
    --green: #00d67e;
    --green-dim: #0a2e1e;
    --red: #ff4757;
    --red-dim: #3a1118;
    --blue: #4d9fff;
    --blue-dim: #162640;
    --cyan: #00d4e6;
    --purple: #a78bfa;
    --orange: #ff8c42;
    --ticker-bg: #060606;
    --gloss: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.15) 100%);
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100dvh;
    height: 100vh;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    height: 100vh;
}

@supports (height: 100dvh) {
    body, #app { height: 100dvh; }
    body:has(.legal-page) #app { min-height: 100dvh; }
}

#top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 52px;
    background: linear-gradient(180deg, #181818 0%, #111111 100%);
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.logo-name {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.logo-name span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    gap: 2px;
}

.nav-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 7px 14px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.15s;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-btn:hover {
    color: var(--text-secondary);
    background: var(--bg-hover);
    border-color: var(--border);
}

.nav-btn.active {
    color: var(--text-primary);
    background: linear-gradient(180deg, #242424 0%, #1a1a1a 100%);
    border-color: #3a3a3a;
    box-shadow: 0 0 6px rgba(226,168,50,0.08);
}

.nav-key {
    display: inline-block;
    background: var(--bg-primary);
    color: var(--text-dim);
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 4px;
    border: 1px solid var(--border);
}

.nav-btn.active .nav-key {
    color: var(--accent);
    border-color: var(--accent-dim);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.clock {
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-text {
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

#ticker-tape {
    height: 32px;
    background: var(--ticker-bg);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

#ticker-tape::before,
#ticker-tape::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

#ticker-tape::before {
    left: 0;
    background: linear-gradient(to right, var(--ticker-bg), transparent);
}

#ticker-tape::after {
    right: 0;
    background: linear-gradient(to left, var(--ticker-bg), transparent);
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 32px;
    white-space: nowrap;
    width: max-content;
}

.ticker-content.running {
    animation: ticker-scroll 60s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.ticker-symbol {
    color: var(--text-primary);
    font-weight: 600;
}

.ticker-price {
    color: var(--text-secondary);
}

.ticker-change {
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 2px;
    font-size: 10px;
}

.ticker-change.up {
    color: var(--green);
    background: var(--green-dim);
}

.ticker-change.down {
    color: var(--red);
    background: var(--red-dim);
}

#main-content {
    flex: 1;
    overflow: hidden;
}

.view {
    display: none;
    height: 100%;
}

.view.active {
    display: flex;
}

.news-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.news-feed-panel {
    width: 50%;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-detail-panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-width: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #222222;
    background: linear-gradient(180deg, #161616 0%, #0f0f0f 100%);
    flex-shrink: 0;
    gap: 12px;
}

.panel-tabs {
    display: flex;
    gap: 2px;
}

.panel-tab {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 3px;
    letter-spacing: 0.5px;
    transition: all 0.15s;
}

.panel-tab:hover { color: var(--text-secondary); }

.panel-tab.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 8px;
    flex: 0 1 240px;
    min-width: 0;
}

.search-icon {
    color: var(--text-dim);
    font-size: 14px;
    margin-right: 6px;
    flex-shrink: 0;
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 6px 0;
    width: 100%;
    outline: none;
    min-width: 0;
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.search-box:focus-within {
    border-color: var(--border-bright);
}

.news-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.news-list::-webkit-scrollbar { width: 4px; }
.news-list::-webkit-scrollbar-track { background: transparent; }
.news-list::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }

a.news-item {
    text-decoration: none;
    color: inherit;
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.1s;
}

.news-item:hover { background: var(--bg-hover); }
.news-item.active { background: linear-gradient(90deg, #1a1710 0%, var(--bg-active) 40%); border-left: 2px solid var(--accent); }
.news-item.imp-high-card { background: rgba(255,71,87,0.04); border-left: 2px solid rgba(255,71,87,0.35); }
.news-item.imp-high-card:hover { background: rgba(255,71,87,0.07); }
.news-item.imp-high-card.active { background: linear-gradient(90deg, rgba(255,71,87,0.08) 0%, var(--bg-active) 40%); border-left: 2px solid var(--red); }

.news-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    min-width: 44px;
    flex-shrink: 0;
    padding-top: 2px;
}

.news-body { flex: 1; min-width: 0; }

.news-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.news-source {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
}

.news-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 2px;
    background: var(--blue-dim);
    color: var(--blue);
    letter-spacing: 0.5px;
}

[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-bright);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 4px;
    width: 280px;
    white-space: pre-line;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
[data-tooltip]::before {
    content: '';
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: var(--border-bright);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 1001;
}
[data-tooltip]:hover::after,
[data-tooltip]:hover::before { opacity: 1; }

.detail-importance[data-tooltip]::after {
    left: 0;
    transform: none;
}
.detail-importance[data-tooltip]::before {
    left: 40px;
    transform: none;
}

.news-importance {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}
.news-importance.imp-high { background: var(--red-dim); color: var(--red); }
.news-importance.imp-mid { background: var(--accent-dim); color: var(--accent); }
.news-importance.imp-low { background: var(--bg-tertiary); color: var(--text-muted); }

.detail-importance {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
}
.detail-importance.imp-high { background: var(--red-dim); border: 1px solid rgba(255,71,87,0.2); }
.detail-importance.imp-mid { background: var(--accent-dim); border: 1px solid rgba(226,168,50,0.2); }
.detail-importance.imp-low { background: var(--bg-tertiary); border: 1px solid var(--border); }
.detail-imp-bar {
    font-size: 14px;
    letter-spacing: -1px;
    line-height: 1;
}
.detail-importance.imp-high .detail-imp-bar { color: var(--red); }
.detail-importance.imp-mid .detail-imp-bar { color: var(--accent); }
.detail-importance.imp-low .detail-imp-bar { color: var(--text-muted); }
.detail-imp-bar-empty { color: var(--text-dim); }
.detail-imp-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}
.detail-importance.imp-high .detail-imp-text { color: var(--red); }
.detail-importance.imp-mid .detail-imp-text { color: var(--accent); }
.detail-importance.imp-low .detail-imp-text { color: var(--text-muted); }

.news-image-thumb {
    width: 80px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}

.detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-dim);
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.2;
}

.detail-placeholder p {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
}

.welcome-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-bright) transparent;
}

.welcome-terminal {
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    background: #0c0c0c;
}

.welcome-terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #1e1e1e 0%, #161616 100%);
    border-bottom: 1px solid #2a2a2a;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333333;
}

.terminal-dot:first-child { background: #ff4757; }
.terminal-dot:nth-child(2) { background: #e2a832; }
.terminal-dot:nth-child(3) { background: #00d67e; }

.terminal-bar-title {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.welcome-terminal-body {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 2;
}

.terminal-line {
    color: var(--text-primary);
}

.terminal-prompt {
    color: var(--accent);
    margin-right: 8px;
    font-weight: 700;
}

.terminal-output {
    color: var(--text-muted);
    padding-left: 20px;
}

.terminal-cursor {
    margin-top: 4px;
}

.cursor-blink {
    color: var(--accent);
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.welcome-market-strip {
    background: linear-gradient(180deg, #151515 0%, #0e0e0e 100%);
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 16px;
}

.welcome-strip-title {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.welcome-coins {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.welcome-coin-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
    border: 1px solid #1f1f1f;
    border-radius: 6px;
    transition: border-color 0.15s;
}

.welcome-coin-card:hover {
    border-color: #333333;
}

.welcome-coin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-coin-symbol {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.welcome-coin-rank {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-dim);
}

.welcome-coin-price {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.welcome-coin-change {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
}

.welcome-shortcuts {
    background: linear-gradient(180deg, #151515 0%, #0e0e0e 100%);
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 16px;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.shortcut-item kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 3px 8px;
    background: linear-gradient(180deg, #222222 0%, #181818 100%);
    border: 1px solid #333333;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 2px 0 #111111;
}

.welcome-apps {
    background: linear-gradient(180deg, #151515 0%, #0e0e0e 100%);
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 16px;
}

.welcome-apps-row {
    display: flex;
    gap: 10px;
}

.app-download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 12px 16px;
    background: linear-gradient(180deg, #1e1e1e 0%, #141414 100%);
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.app-download-btn:hover {
    border-color: var(--accent-dim);
    background: linear-gradient(180deg, #242424 0%, #181818 100%);
}

.app-icon {
    font-size: 22px;
    color: var(--text-primary);
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.app-text {
    display: flex;
    flex-direction: column;
}

.app-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.app-text {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 8px 16px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-secondary);
}

.detail-tb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    height: 30px;
}

.detail-tb-link:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
    background: rgba(226,168,50,0.06);
}

.detail-tb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    text-decoration: none;
}

.detail-tb-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-bright);
    background: var(--bg-hover);
}

.detail-tb-close:hover {
    color: var(--red);
    border-color: rgba(255,71,87,0.3);
    background: var(--red-dim);
}

.news-detail {
    padding: 24px;
}

.detail-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.detail-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.detail-source-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}

.detail-source-link:hover { color: var(--orange); }

.detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 20px;
    background: var(--bg-tertiary);
}

.detail-summary {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.detail-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.detail-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 8px 16px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: all 0.15s;
}

.detail-read-more:hover { background: var(--accent); }

.load-more {
    padding: 12px;
    text-align: center;
    flex-shrink: 0;
    border-top: 1px solid var(--border);
}

.btn-load-more {
    background: linear-gradient(180deg, #222222 0%, #181818 100%);
    border: 1px solid #333333;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 8px 24px;
    cursor: pointer;
    border-radius: 3px;
    letter-spacing: 1px;
    transition: all 0.15s;
}

.btn-load-more:hover {
    border-color: var(--text-dim);
    color: var(--text-primary);
}

.market-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.market-split-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.market-left-panel {
    width: 55%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    min-width: 0;
}

.coin-detail-panel {
    width: 45%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-width: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-bright) transparent;
}

.coin-detail-panel::-webkit-scrollbar { width: 4px; }
.coin-detail-panel::-webkit-scrollbar-track { background: transparent; }
.coin-detail-panel::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }

.coin-detail-content {
    padding: 20px;
}

.market-overview-bar {
    display: flex;
    gap: 1px;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.market-overview-bar::-webkit-scrollbar { display: none; }

.overview-card {
    flex: 1;
    min-width: 130px;
    background: linear-gradient(180deg, #151515 0%, #0e0e0e 100%);
    padding: 10px 14px;
    text-align: center;
}

.overview-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.overview-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.overview-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.market-table-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.market-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(180deg, #151515 0%, #0e0e0e 100%);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    gap: 12px;
}

.market-filters {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 3px;
    letter-spacing: 0.5px;
    transition: all 0.15s;
}

.filter-btn:hover { color: var(--text-secondary); }
.filter-btn.active { color: var(--text-primary); border-color: var(--border-bright); background: var(--bg-tertiary); }

.table-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border-bright) transparent;
}

.table-scroll::-webkit-scrollbar { width: 4px; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }

.market-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: auto;
}

.market-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.market-table th {
    background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    text-align: right;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.market-table th.th-rank { text-align: center; width: 40px; }
.market-table th.th-name { text-align: left; }

.market-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    text-align: right;
    white-space: nowrap;
}

.market-table tbody tr {
    cursor: pointer;
    transition: background 0.1s;
}

.market-table tbody tr:hover { background: var(--bg-hover); }

.td-rank {
    text-align: center;
    color: var(--text-dim);
    font-size: 11px;
}

.market-table td.td-name {
    text-align: left;
    white-space: normal;
}

.coin-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coin-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.coin-name-text {
    display: flex;
    flex-direction: column;
}

.coin-name {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

.coin-symbol {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.td-price {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 12px;
}

.change-up { color: var(--green); }
.change-down { color: var(--red); }

.td-mcap, .td-vol {
    color: var(--text-secondary);
    font-size: 11px;
}

.analytics-split {
    display: flex;
    height: 100%;
    width: 100%;
}

.analytics-list-panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    min-width: 0;
}

.analytics-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.analytics-list::-webkit-scrollbar { width: 4px; }
.analytics-list::-webkit-scrollbar-track { background: transparent; }
.analytics-list::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }

.analytics-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.1s;
}

.analytics-item:hover { background: var(--bg-hover); }
.analytics-item.active { background: linear-gradient(90deg, #1a1710 0%, var(--bg-active) 40%); border-left: 2px solid var(--accent); }

.analytics-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
}

.timer-label {
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.timer-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

.analytics-countdown-big {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    padding: 12px 0 8px;
    letter-spacing: 3px;
}

.analytics-countdown-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    text-align: center;
}

.analytics-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
    background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
    border: 1px solid #222222;
    border-radius: 8px;
    flex-shrink: 0;
}

.analytics-item.active .analytics-item-icon {
    color: var(--accent);
    border-color: var(--accent-dim);
}

.analytics-item-body {
    flex: 1;
    min-width: 0;
}

.analytics-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.analytics-item-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
}

.analytics-item-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.analytics-item-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    min-width: 36px;
    flex-shrink: 0;
    padding-top: 2px;
}

.analytics-item-coins {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.analytics-coin-pill {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
    border: 1px solid #222222;
    padding: 2px 8px;
    border-radius: 4px;
}

.analytics-item-preview {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.4;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.analytics-latest-badge {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    color: var(--green);
    background: var(--green-dim);
    padding: 1px 5px;
    border-radius: 2px;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 4px;
}

.analysis-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.analysis-fg-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.analysis-fg-value {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    flex-shrink: 0;
}

.analysis-fg-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    min-width: 80px;
    flex-shrink: 0;
}

.analytics-detail-panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-width: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-bright) transparent;
}

.analytics-detail-panel::-webkit-scrollbar { width: 4px; }
.analytics-detail-panel::-webkit-scrollbar-track { background: transparent; }
.analytics-detail-panel::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }

.analytics-detail-content {
    padding: 24px;
}

.analytics-detail-content .detail-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.analytics-detail-content .detail-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.analytics-detail-content .detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.analytics-card {
    background: linear-gradient(180deg, #171717 0%, #101010 100%);
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

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

.card-header h3 {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

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

.chart-period {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
}

.chart-period:hover { color: var(--text-secondary); }
.chart-period.active { color: var(--text-primary); border-color: var(--border-bright); background: var(--bg-tertiary); }

.chart-result-btn {
    margin-left: auto;
    background: none;
    border: 1px solid var(--accent-dim);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    padding: 3px 10px;
    cursor: pointer;
    border-radius: 3px;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.chart-result-btn:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.chart-result-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.chart-info-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.chart-price {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.chart-change {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
}

#price-chart,
.analysis-chart,
#coin-chart {
    width: 100%;
    height: 240px;
    border-radius: 6px;
    border: 1px solid #1a1a1a;
}

.ai-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--purple);
    background: rgba(170, 109, 255, 0.08);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid rgba(170, 109, 255, 0.15);
    letter-spacing: 0.5px;
}

.ai-content {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.ai-forecast-card {
    background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
    border: 1px solid #222222;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.ai-forecast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ai-forecast-coin {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.ai-forecast-price {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
}

.ai-forecast-explanation {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.ai-analysis-text {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.gauge-value {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gauge-label {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gauge-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    margin-top: 16px;
    overflow: hidden;
    position: relative;
}

.gauge-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.movers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.movers-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.movers-title.gainers { color: var(--green); }
.movers-title.losers { color: var(--red); }

.mover-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-family: var(--font-mono);
    font-size: 11px;
}

.mover-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mover-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.mover-symbol {
    color: var(--text-primary);
    font-weight: 500;
}

.mover-change {
    font-weight: 600;
}

.coin-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.coin-detail-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.coin-detail-info h2 {
    font-size: 20px;
    font-weight: 700;
}

.coin-single-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.coin-single-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
}

.coin-single-info {
    min-width: 0;
}

.coin-single-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 4px;
}

.coin-single-price {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.coin-detail-symbol {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.coin-detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.coin-detail-price {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
}

.coin-detail-change {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
}

.coin-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.coin-stat {
    background: linear-gradient(180deg, #1c1c1c 0%, #131313 100%);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #242424;
}

.coin-stat-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.coin-stat-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.coin-chart-section {
    margin-bottom: 20px;
}

.coin-chart-controls {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

#coin-chart {
    width: 100%;
    height: 200px;
}

.coin-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.coin-news-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.coin-news-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.coin-news-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

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

.coin-news-item-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    min-width: 44px;
    flex-shrink: 0;
}

.coin-news-item-title {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.coin-news-item-title a {
    color: var(--text-secondary);
    text-decoration: none;
}

.coin-news-item-title a:hover { color: var(--accent); }

.loading-pulse {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    animation: pulse-text 1.5s infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.news-single-layout {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.article-full {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 24px 32px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-bright) transparent;
}

.article-full::-webkit-scrollbar { width: 4px; }
.article-full::-webkit-scrollbar-track { background: transparent; }
.article-full::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }

.article-breadcrumb {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.article-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.article-breadcrumb span { margin: 0 4px; }

.article-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.article-meta-sep { color: var(--text-dim); }

.article-source {
    color: var(--text-secondary);
}

.article-coin-tag {
    color: var(--blue);
    background: var(--blue-dim);
    padding: 1px 6px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.article-hero {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 24px;
    background: var(--bg-tertiary);
}

.article-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.article-body p {
    margin-bottom: 16px;
}

.ai-comment-block {
    border: 1px solid var(--accent-dim);
    border-left: 3px solid var(--accent);
    background: linear-gradient(135deg, rgba(226,168,50,0.04) 0%, rgba(226,168,50,0.01) 100%);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
}

.ai-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ai-comment-icon {
    color: var(--accent);
    font-size: 10px;
}

.ai-comment-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-family: var(--font-mono);
}

.ai-comment-body {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.article-source-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: all 0.15s;
}

.article-source-btn:hover { background: var(--accent); }

.article-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.share-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.share-btn {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.share-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-bright);
}

.article-coin-block {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(180deg, #161616 0%, #0e0e0e 100%);
    border: 1px solid #222222;
    border-radius: 8px;
}

.coin-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.coin-block-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.coin-block-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coin-block-name {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.coin-block-sym {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.coin-block-price {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.coin-block-price span {
    font-size: 12px;
    font-weight: 600;
}

.coin-block-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.coin-block-stat {
    flex: 1;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
    border: 1px solid #1f1f1f;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.coin-block-stat-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.detail-app-promo {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.app-promo-banner {
    display: flex;
    gap: 14px;
    padding: 16px;
    margin: 20px 0;
    border: 1px solid var(--accent-dim);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(226,168,50,0.06) 0%, rgba(226,168,50,0.02) 100%);
}

.app-promo-badge {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #000;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

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

.app-promo-title {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.app-promo-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.app-promo-links {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.app-promo-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.app-promo-links a:hover {
    text-decoration: underline;
}

.app-promo-sep {
    color: var(--text-dim);
}

.article-sidebar {
    width: 340px;
    flex-shrink: 0;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-bright) transparent;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.sidebar-news-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

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

.sidebar-news-item a {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.sidebar-news-item a:hover { color: var(--accent); }

.sidebar-news-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 3px;
}

.sidebar-price-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sidebar-price-change {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .news-layout {
        flex-direction: column;
    }

    .news-feed-panel {
        width: 100%;
        height: 100%;
        border-right: none;
    }

    .news-detail-panel {
        display: none;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        background: var(--bg-primary);
    }

    .news-detail-panel.mobile-visible {
        display: flex;
    }

    .market-split-layout {
        flex-direction: column;
    }

    .market-left-panel {
        width: 100%;
        height: 100%;
        border-right: none;
    }

    .coin-detail-panel {
        display: none;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        background: var(--bg-primary);
    }

    .coin-detail-panel.mobile-visible {
        display: flex;
    }

    .detail-back-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 16px;
        background: var(--bg-secondary);
        border: none;
        border-bottom: 1px solid var(--border);
        color: var(--accent);
        font-family: var(--font-mono);
        font-size: 11px;
        cursor: pointer;
        width: 100%;
        letter-spacing: 0.5px;
    }

    .analytics-list-panel {
        width: 100%;
        height: 100%;
        border-right: none;
    }

    .analytics-detail-panel {
        display: none;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        background: var(--bg-primary);
    }

    .analytics-detail-panel.mobile-visible {
        display: flex;
    }

    .market-table th.th-mcap,
    .market-table th.th-vol,
    .market-table td.td-mcap,
    .market-table td.td-vol {
        display: none;
    }

    .overview-card {
        min-width: 100px;
        padding: 8px 10px;
    }

    .overview-value {
        font-size: 13px;
    }

    .movers-grid {
        grid-template-columns: 1fr;
    }

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

    .news-single-layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .article-full {
        padding: 16px;
        overflow: visible;
    }

    .article-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        overflow: visible;
    }

    body:has(#view-news-single, #view-coin-single, #view-analysis-single) {
        overflow: auto;
        height: auto;
    }

    body:has(#view-news-single, #view-coin-single, #view-analysis-single) #app {
        height: auto;
        min-height: 100dvh;
        min-height: 100vh;
    }

    body:has(#view-news-single, #view-coin-single, #view-analysis-single) #main-content {
        overflow: visible;
    }

    body:has(#view-news-single, #view-coin-single, #view-analysis-single) .view.active {
        height: auto;
    }
}

@media (max-width: 768px) {
    html { font-size: 13px; }

    .welcome-apps-row {
        flex-direction: column;
    }

    .welcome-coins {
        grid-template-columns: repeat(2, 1fr);
    }

    .shortcut-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #top-bar {
        padding: 0 10px;
        height: 44px;
    }

    .logo-img { width: 26px; height: 26px; border-radius: 5px; }
    .logo-name { font-size: 12px; letter-spacing: 1px; }

    .nav-key { display: none; }

    .nav-btn {
        font-size: 10px;
        padding: 5px 8px;
    }

    .clock { display: none; }

    #ticker-tape { height: 28px; }

    .ticker-item { font-size: 10px; }

    .panel-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .search-box {
        flex: 1 1 100%;
        order: 2;
    }

    .market-controls {
        flex-wrap: wrap;
    }

    .market-table th, .market-table td { padding: 8px 6px; font-size: 11px; }
    .coin-name-cell { gap: 6px; }

    .chart-price { font-size: 22px; }

    #price-chart, .analysis-chart, #coin-chart { height: 200px; }

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

    .coin-detail-price { font-size: 24px; }

    .article-title { font-size: 20px; }
    .article-hero { max-height: 300px; border-radius: 6px; margin-bottom: 16px; }
    .article-share-bar { flex-wrap: wrap; }
    .coin-single-price { font-size: 22px; }
    .coin-stats-grid { grid-template-columns: repeat(2, 1fr); }

    .analysis-forecast-card {
        padding: 14px;
    }
    .forecast-card-price { font-size: 22px; }
    .forecast-card-explanation { font-size: 13px; }
}

@media (max-width: 480px) {
    .main-nav { gap: 2px; }

    .nav-btn {
        font-size: 9px;
        padding: 4px 6px;
    }

    .top-bar-left { gap: 12px; }

    .overview-card {
        min-width: 80px;
    }

    .overview-label { font-size: 8px; }
    .overview-value { font-size: 12px; }

    .market-table th, .market-table td { padding: 6px 4px; font-size: 10px; }
    .coin-logo { width: 18px; height: 18px; }
    .coin-name { font-size: 11px; }
    .coin-symbol { font-size: 9px; }

    .article-title { font-size: 18px; }
    .article-full { padding: 12px; }
    .article-sidebar { padding: 12px; }
    .article-body { font-size: 14px; }
    .coin-stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .coin-stat { padding: 10px; }
    .coin-single-price { font-size: 20px; }
    .article-share-bar { gap: 6px; }
    .share-btn { padding: 4px 8px; font-size: 9px; }
}

@media (hover: none) {
    .news-item:hover { background: transparent; }
    .news-item:active { background: var(--bg-hover); }
    .market-table tbody tr:hover { background: transparent; }
    .market-table tbody tr:active { background: var(--bg-hover); }
}

/* ── Footer ── */
#site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-sep { color: var(--text-dim); }

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s;
}

.footer-link:hover { color: var(--accent); }

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-social-link {
    color: var(--text-dim);
    transition: color .15s;
    line-height: 0;
}

.footer-social-link:hover { color: var(--accent); }

/* ── Legal Pages ── */
body:has(.legal-page) {
    overflow: auto;
    height: auto;
}

body:has(.legal-page) #app {
    height: auto;
    min-height: 100vh;
}

body:has(.legal-page) #main-content {
    overflow: visible;
}

.legal-page {
    max-width: 780px;
    margin: 24px auto;
    padding: 0 20px;
}

.legal-terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.legal-terminal .terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.legal-terminal .terminal-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legal-terminal .terminal-bar .dot.red { background: #ff5f57; }
.legal-terminal .terminal-bar .dot.gold { background: var(--accent); }
.legal-terminal .terminal-bar .dot.green { background: #28c840; }

.legal-terminal .terminal-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 8px;
}

.legal-content {
    padding: 32px 36px 40px;
}

.legal-content h1 {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.legal-updated {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    margin: 0 0 28px;
}

.legal-content section {
    margin-bottom: 24px;
}

.legal-content h2 {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-content .section-num {
    color: var(--accent);
    margin-right: 6px;
}

.legal-content p {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 8px;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.legal-content li {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    padding: 2px 0 2px 4px;
}

.legal-content li .accent {
    color: var(--accent);
    margin-right: 6px;
    font-family: var(--font-mono);
}

.legal-content li strong {
    color: var(--text-primary);
    font-weight: 500;
}

.legal-end {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (max-width: 600px) {
    .legal-content {
        padding: 20px 18px 28px;
    }
    .legal-content h1 { font-size: 18px; }
    .legal-page { margin: 12px auto; }
}

/* ── Contact Page ── */
.contact-email-box {
    margin: 16px 0;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-bright);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.contact-email a {
    color: var(--accent);
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ── Apps Page ── */
.apps-page { max-width: 720px; }

.apps-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--accent);
    font-family: var(--font-mono);
    letter-spacing: 2px;
    margin-top: 4px;
}

.apps-tagline {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 28px;
    border-left: 2px solid var(--accent);
    padding-left: 14px;
}

.apps-download-hero {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-bright);
    border-radius: 6px;
}

.apps-download-bottom {
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.apps-download-bottom .app-download-btn {
    flex: 1 1 0;
    min-width: 200px;
}

.apps-cta-text {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 100%;
    margin-bottom: 4px;
}

.apps-content section {
    border-left: 2px solid var(--border-bright);
    padding-left: 16px;
    margin-bottom: 28px;
}

.apps-content section:hover {
    border-left-color: var(--accent);
}

@media (max-width: 600px) {
    .apps-download-hero { padding: 14px; }
    .apps-download-hero .app-download-btn { flex: 1; min-width: 140px; }
}

/* ── SEO Elements ── */
.seo-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.seo-section-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h2.panel-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

h2.sidebar-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin: 0;
}

h3.welcome-strip-title {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin: 0;
}

/* ── Analysis Single Page ── */
.analysis-forecast-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.forecast-card-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.forecast-card-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.forecast-card-price {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.forecast-card-change {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
}

.forecast-card-explanation {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.analysis-body-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.seo-description {
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.6;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}

.seo-description p {
    margin: 0;
}

