/* ========================================
   THEME SYSTEM
   ======================================== */

/* Theme: Classic (Yellow accent - current default) */
:root,
[data-theme="classic"] {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-card-hover: #252525;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-primary: #f0b90b;
    --accent-secondary: #8b5cf6;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --border-color: #2a2a2a;
    --border-light: #333333;
    --glow-color: rgba(240, 185, 11, 0.3);
}

/* Theme: Galaxy (Purple - matches landing page) */
[data-theme="galaxy"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f18;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --accent-primary: #8b5cf6;
    --accent-secondary: #a78bfa;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --border-color: #1a1a2e;
    --border-light: #252540;
    --glow-color: rgba(139, 92, 246, 0.3);
}

/* Theme: Light */
[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f3f4;
    --text-primary: #1a1a1a;
    --text-secondary: #5f6368;
    --text-muted: #9aa0a6;
    --accent-primary: #6d28d9;
    --accent-secondary: #8b5cf6;
    --accent-green: #16a34a;
    --accent-red: #dc2626;
    --border-color: #e5e7eb;
    --border-light: #d1d5db;
    --glow-color: rgba(109, 40, 217, 0.15);
}

/* Theme: Neon Matrix (Cyberpunk green/teal) */
[data-theme="neon"] {
    --bg-primary: #0a1419;
    --bg-secondary: #0d1a21;
    --bg-card: #111f28;
    --bg-card-hover: #162a36;
    --text-primary: #e0f7f4;
    --text-secondary: #7fb3a8;
    --text-muted: #4a7a70;
    --accent-primary: #00ff88;
    --accent-secondary: #00d4aa;
    --accent-green: #00ff88;
    --accent-red: #ff4757;
    --border-color: #1a3540;
    --border-light: #254552;
    --glow-color: rgba(0, 255, 136, 0.25);
    --neon-glow: 0 0 10px rgba(0, 255, 136, 0.4), 0 0 20px rgba(0, 255, 136, 0.2);
}

/* Theme: Synthwave (Retro purple/cyan/pink neon) */
[data-theme="synthwave"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252542;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6b6b80;
    --accent-primary: #7C3AED;
    --accent-secondary: #0EA5E9;
    --accent-green: #0EA5E9;
    --accent-red: #DC2626;
    --accent-pink: #EC4899;
    --accent-blue: #0047FF;
    --border-color: #2a2a3e;
    --border-light: #3a3a52;
    --glow-color: rgba(124, 58, 237, 0.3);
    --neon-glow: 0 0 10px rgba(124, 58, 237, 0.5), 0 0 20px rgba(236, 72, 153, 0.3), 0 0 30px rgba(14, 165, 233, 0.2);
    --neon-glow-pink: 0 0 10px rgba(236, 72, 153, 0.5), 0 0 20px rgba(236, 72, 153, 0.3);
    --neon-glow-cyan: 0 0 10px rgba(14, 165, 233, 0.5), 0 0 20px rgba(14, 165, 233, 0.3);
}

/* Theme: Midnight (Icy arctic blue with frost glow) */
[data-theme="midnight"] {
    --bg-primary: #040712;
    --bg-secondary: #0a1020;
    --bg-card: #0f172a;
    --bg-card-hover: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #00d4ff;
    --accent-secondary: #38bdf8;
    --accent-green: #2dd4bf;
    --accent-red: #ff6b6b;
    --border-color: #1e3a5f;
    --border-light: #2d4a6f;
    --glow-color: rgba(0, 212, 255, 0.3);
    --neon-glow: 0 0 10px rgba(0, 212, 255, 0.6), 0 0 25px rgba(0, 212, 255, 0.3), 0 0 40px rgba(56, 189, 248, 0.15);
}

/* Legacy variable mapping for backwards compatibility */
:root {
    --accent-primary: var(--accent-primary);
    --accent-purple: var(--accent-secondary);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-purple);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--text-primary);
}

/* Mobile Search Toggle - hidden on desktop */
.mobile-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-search-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 1rem;
    z-index: 200;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-search-overlay.active {
    display: block;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.mobile-search-input:focus {
    border-color: var(--accent-primary);
}

.mobile-search-input::placeholder {
    color: var(--text-muted);
}

.mobile-search-submit,
.mobile-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-search-submit:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

.mobile-search-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active {
    display: none;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bg-secondary);
    z-index: 1000;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-menu-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.mobile-menu-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.mobile-menu-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.mobile-menu-link.active {
    background: var(--bg-card);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}

.mobile-menu-link svg {
    flex-shrink: 0;
}

.mobile-menu-footer {
    margin-top: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.mobile-menu-user {
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    padding-bottom: 0.5rem;
}

/* Mobile Menu Accordion */
.mobile-menu-accordion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-menu-accordion:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.mobile-menu-accordion-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-accordion .accordion-arrow {
    transition: transform 0.2s;
}

.mobile-menu-accordion.active .accordion-arrow {
    transform: rotate(180deg);
}

.mobile-menu-accordion-content {
    display: none;
    background: var(--bg-primary);
}

.mobile-menu-accordion-content.active {
    display: block;
}

/* Mobile Token List */
.mobile-token-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-token-item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-token-item:last-child {
    border-bottom: none;
}

.mobile-token-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem 0.75rem 2.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-token-link:hover {
    background: var(--bg-card-hover);
}

.mobile-token-rank {
    width: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-yellow);
    text-align: center;
}

.mobile-token-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mobile-token-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mobile-token-symbol {
    font-weight: 600;
    font-size: 0.9rem;
}

.mobile-token-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-token-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.mobile-token-change {
    font-size: 0.85rem;
    font-weight: 500;
}

.mobile-token-change.positive {
    color: var(--accent-green);
}

.mobile-token-change.negative {
    color: var(--accent-red);
}

.mobile-token-price {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mobile-token-empty {
    padding: 1rem 1.25rem 1rem 2.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    color: var(--text-secondary);
}

/* Main Layout */
.main-container {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) minmax(0, 300px);
    min-height: calc(100vh - 70px);
}

.left-sidebar {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 0.5rem;
    padding-left: 10px;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.content-area {
    padding: 2rem;
    min-height: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.right-sidebar {
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    padding: 0.5rem;
    padding-right: 10px;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sidebar-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-card);
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background-color: var(--bg-primary);
}

/* Category List */
.category-list {
    list-style: none;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s;
}

.category-link:hover {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.category-link.active {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Feed Header */
.feed-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.feed-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.feed-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.clear-filter-btn {
    padding: 0.5rem 1rem;
    background-color: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.clear-filter-btn:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Content Feed - Responsive Card Grid */
.content-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-feed.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cards-grid .content-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cards-grid .card-description {
    flex: 1;
}

.cards-grid .card-footer {
    margin-top: auto;
}

.cards-grid .empty-state {
    grid-column: 1 / -1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-card);
    border-radius: 12px;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.auth-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
}

/* About Page */
.about-content {
    max-width: 800px;
}

.about-section {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.about-section h2 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list strong {
    display: block;
    margin-bottom: 0.25rem;
}

.feature-list p {
    margin: 0;
}

/* Rankings Page */
.rankings-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rankings-section h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.rankings-table {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.table-header,
.table-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 100px;
    padding: 1rem 1.5rem;
    align-items: center;
}

.table-header {
    background-color: var(--bg-secondary);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-row {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background-color: var(--bg-card-hover);
}

.col-name strong {
    display: block;
}

.col-name small {
    color: var(--text-secondary);
}

.col-name a {
    color: var(--text-primary);
}

.col-name a:hover {
    color: var(--accent-primary);
}

/* Content Detail */
.content-detail {
    max-width: 800px;
}

.content-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.meta-stats {
    display: flex;
    gap: 1.5rem;
}

.content-body {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}


/* Utilities */
.positive {
    color: var(--accent-green);
}

.negative {
    color: var(--accent-red);
}

.hidden {
    display: none !important;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Thread Modal Specific */
.thread-modal-content {
    max-width: 800px;
}

.thread-modal-author {
    color: var(--accent-purple);
    font-weight: 500;
    margin-right: 1rem;
}

.thread-modal-votes {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    width: fit-content;
}

.thread-modal-votes .vote-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.thread-modal-votes .vote-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.thread-modal-votes .vote-btn.active.upvote {
    color: #22c55e;
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.thread-modal-votes .vote-btn.active.downvote {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.thread-modal-votes .vote-count {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 2rem;
    text-align: center;
}

.thread-modal-replies {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.thread-modal-replies .comments-header {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.thread-modal-replies .replies-list {
    max-height: 400px;
    overflow-y: auto;
}

.thread-modal-replies .reply-wrapper {
    margin-bottom: 0.75rem;
}

.thread-modal-replies .reply-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.thread-modal-replies .reply-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.thread-modal-replies .reply-vote-btn {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.thread-modal-replies .reply-vote-btn:hover {
    color: var(--text-primary);
}

.thread-modal-replies .reply-vote-btn.active.upvote {
    color: #22c55e;
}

.thread-modal-replies .reply-vote-btn.active.downvote {
    color: #ef4444;
}

.thread-modal-replies .reply-vote-count {
    font-size: 0.75rem;
    font-weight: 600;
}

.thread-modal-replies .reply-content {
    flex: 1;
    min-width: 0;
}

.thread-modal-replies .reply-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.thread-modal-replies .reply-author {
    color: var(--accent-purple);
    font-weight: 500;
}

.thread-modal-replies .reply-time {
    color: var(--text-muted);
}

.thread-modal-replies .reply-body {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.thread-modal-replies .reply-to-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
}

.thread-modal-replies .reply-to-btn:hover {
    color: var(--accent-purple);
}

.thread-modal-replies .nested-replies {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--border-color);
}

.thread-modal-replies .empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 1.5rem;
    font-size: 0.875rem;
}

/* ========================================
   THEME SWITCHER
   ======================================== */
.theme-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.theme-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.theme-btn svg {
    width: 18px;
    height: 18px;
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.theme-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
}

.theme-option:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.theme-option.active {
    background: var(--bg-card-hover);
    color: var(--accent-primary);
}

.theme-option-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-option.active .theme-option-icon {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
}

.theme-option.active .theme-option-icon::after {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.theme-color-preview {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.theme-color-preview.classic {
    background: linear-gradient(135deg, #f0b90b 50%, #0d0d0d 50%);
}

.theme-color-preview.galaxy {
    background: linear-gradient(135deg, #8b5cf6 50%, #0a0a0f 50%);
}

.theme-color-preview.light {
    background: linear-gradient(135deg, #6d28d9 50%, #f8f9fa 50%);
}

.theme-color-preview.neon {
    background: linear-gradient(135deg, #00ff88 50%, #0a1419 50%);
}

.theme-color-preview.synthwave {
    background: linear-gradient(135deg, #7C3AED 33%, #EC4899 66%, #0EA5E9 100%);
}

.theme-color-preview.midnight {
    background: linear-gradient(135deg, #00d4ff 50%, #040712 50%);
}

/* Theme Picker Modal (First Visit) */
.theme-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.theme-picker-overlay.active {
    display: flex;
}

.theme-picker-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 700px;
    width: 100%;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-picker-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.theme-picker-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.theme-picker-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.theme-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.theme-picker-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-picker-option:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.theme-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.theme-preview .preview-header {
    height: 20px;
    width: 100%;
}

.theme-preview .preview-card {
    height: 25px;
    width: 90%;
    margin: 5px auto;
    border-radius: 4px;
}

/* Classic preview */
.classic-preview {
    background: #0d0d0d;
}
.classic-preview .preview-header {
    background: #1a1a1a;
    border-bottom: 2px solid #f0b90b;
}
.classic-preview .preview-card {
    background: #1e1e1e;
}

/* Galaxy preview */
.galaxy-preview {
    background: #0a0a0f;
}
.galaxy-preview .preview-header {
    background: #0f0f18;
    border-bottom: 2px solid #8b5cf6;
}
.galaxy-preview .preview-card {
    background: #12121a;
}

/* Neon preview */
.neon-preview {
    background: #0a1419;
}
.neon-preview .preview-header {
    background: #0d1a21;
    border-bottom: 2px solid #00ff88;
}
.neon-preview .preview-card {
    background: #111f28;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.1);
}

/* Light preview */
.light-preview {
    background: #f8f9fa;
}
.light-preview .preview-header {
    background: #ffffff;
    border-bottom: 2px solid #6d28d9;
}
.light-preview .preview-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

/* Synthwave preview */
.synthwave-preview {
    background: #0f0f0f;
}
.synthwave-preview .preview-header {
    background: #1a1a2e;
    border-bottom: 2px solid #7C3AED;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.3);
}
.synthwave-preview .preview-card {
    background: #1a1a2e;
    box-shadow: 0 0 6px rgba(236, 72, 153, 0.15), 0 0 10px rgba(14, 165, 233, 0.1);
}

/* Midnight preview */
.midnight-preview {
    background: #040712;
}
.midnight-preview .preview-header {
    background: #0a1020;
    border-bottom: 2px solid #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.midnight-preview .preview-card {
    background: #0f172a;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}

.theme-picker-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.theme-picker-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.theme-picker-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .theme-picker-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .theme-picker-modal {
        padding: 1.5rem;
    }

    .theme-picker-header h2 {
        font-size: 1.25rem;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 220px minmax(0, 1fr) minmax(0, 280px);
    }

    /* Ensure token prices don't get cut off in narrower sidebar */
    .my-token-item .token-fullname {
        display: none;
    }

    .my-token-item .token-symbol {
        font-size: 1rem;
    }

    .my-token-item .token-stats-col .change {
        font-size: 0.85rem;
    }

    .my-token-item .token-price {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .left-sidebar,
    .right-sidebar {
        display: none;
    }

    .content-area {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .header-left {
        gap: 0.5rem;
    }

    .header-right {
        gap: 0.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Show hamburger menu button */
    .hamburger-btn {
        display: flex;
    }

    /* Enable mobile menu display */
    .mobile-menu {
        display: flex;
    }

    /* Hide desktop search, show mobile toggle */
    .search-form {
        display: none;
    }

    .mobile-search-toggle {
        display: flex;
    }

    /* Smaller logo on mobile */
    .logo-img {
        height: 36px;
    }

    /* Smaller buttons on mobile */
    .header-right .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Hide username on mobile */
    .user-menu .username {
        display: none;
    }

    .content-feed.cards-grid {
        grid-template-columns: 1fr;
    }

    .modal-overlay {
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.375rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0.75rem;
    }

    .logo-img {
        height: 30px;
    }

    .header-right .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .theme-btn {
        padding: 0.35rem;
    }

    .theme-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   RANKINGS PAGE - MOVERS & TIME FILTERS
   ======================================== */

/* Movers Cards (Gainers/Losers) */
.movers-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.movers-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
}

.movers-card h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.movers-card.gainers h3 {
    color: var(--accent-green);
}

.movers-card.losers h3 {
    color: var(--accent-red);
}

.movers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mover-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s;
}

.mover-item:hover {
    background: var(--bg-card-hover);
}

.mover-rank {
    width: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.mover-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.mover-symbol {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
}

.mover-change {
    font-weight: 600;
    font-size: 0.9rem;
}

.movers-empty {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

/* Clickable Token Rows */
.token-row-link {
    display: grid;
    grid-template-columns: 60px 1fr 120px 100px;
    padding: 1rem 1.5rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.token-row-link:last-child {
    border-bottom: none;
}

.token-row-link:hover {
    background: var(--bg-card-hover);
}

.token-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.token-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Articles Header with Time Tabs */
.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.articles-header h2 {
    margin-bottom: 0;
}

/* Time Filter Tabs */
.time-filter-tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-card);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.time-tab {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.time-tab:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.time-tab.active {
    background: var(--accent-primary);
    color: #ffffff;
}

/* Articles Table */
.articles-table .table-header,
.articles-table .table-row {
    grid-template-columns: 60px 1fr 100px;
}

.article-row .col-name small {
    display: block;
    margin-top: 0.25rem;
}

/* Threads Table */
.threads-table .table-header,
.threads-table .table-row {
    grid-template-columns: 60px 1fr 100px;
}

.thread-row .col-name small {
    display: block;
    margin-top: 0.25rem;
}

.thread-category-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.section-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.section-footer .view-all-link {
    color: var(--accent-purple);
    font-size: 0.9rem;
}

.section-footer .view-all-link:hover {
    color: var(--accent-primary);
}

/* Vote Display */
.vote-display {
    display: flex;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.vote-display .upvotes {
    color: var(--accent-green);
}

.vote-display .upvotes::before {
    content: '\2191 ';
}

.vote-display .downvotes {
    color: var(--accent-red);
}

.vote-display .downvotes::before {
    content: '\2193 ';
}

/* Mobile Responsive for Rankings */
@media (max-width: 768px) {
    .movers-row {
        grid-template-columns: 1fr;
    }

    .token-row-link {
        grid-template-columns: 40px 1fr 80px;
    }

    .token-row-link .col-price {
        display: none;
    }

    .articles-table .table-header,
    .articles-table .table-row,
    .threads-table .table-header,
    .threads-table .table-row {
        grid-template-columns: 40px 1fr 80px;
    }

    .articles-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .time-filter-tabs {
        width: 100%;
        justify-content: center;
    }

    .time-tab {
        flex: 1;
        text-align: center;
        padding: 0.5rem 0.5rem;
    }
}
