/* =============================================
   BitcoinMinds — Linear/Twitter-inspired design
   ============================================= */

:root {
    --bg-primary: #08090a;
    --bg-elevated: #000000;
    --bg-surface: #080808;
    --bg-hover: #0a0a0a;

    --text-primary: #e7e9ea;
    --text-secondary: #71767b;
    --text-tertiary: #536471;

    --accent: #f7931a;
    --accent-hover: #ffaa40;
    --accent-dim: rgba(247, 147, 26, 0.10);

    --green: #26a69a;
    --green-dim: rgba(0, 186, 124, 0.10);
    --red: #f04060;
    --red-dim: rgba(244, 33, 46, 0.10);
    --blue: #1d9bf0;
    --blue-dim: rgba(29, 155, 240, 0.10);
    --purple: #a78bfa;
    --purple-dim: rgba(167, 139, 250, 0.10);
    --yellow: #fbbf24;
    --yellow-dim: rgba(251, 191, 36, 0.10);

    --border: #1b1c1d;
    --border-subtle: rgb(38, 41, 44);

    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 4px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'Roboto Mono', 'Fira Code', monospace;
    --transition: 150ms ease;

    --sidebar-width: 260px;
    --sidebar-right-width: 300px;
    --feed-max: 800px;
}

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

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =============================================
   3-COLUMN LAYOUT
   ============================================= */

.app-layout {
    display: flex;
    max-width: calc(var(--sidebar-width) + var(--feed-max) + var(--sidebar-right-width));
    margin: 0 auto;
    min-height: 100vh;
}

/* --- Mobile header (hidden on desktop) --- */
.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    height: 53px;
    align-items: center;
    justify-content: space-between;
}
.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}
.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.mobile-menu-btn:hover { background: var(--bg-hover); }


/* --- Left sidebar --- */
.sidebar-left {
    width: var(--sidebar-width);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.75rem;
    flex-shrink: 0;
}

.sidebar-brand { padding: 0.5rem 0.75rem 1.5rem; }
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.logo-icon {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}
.logo-text { color: var(--text-primary); }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.sidebar-link svg { color: var(--text-secondary); flex-shrink: 0; }
.sidebar-link:hover { background: rgba(255,255,255,0.05); }
.sidebar-link.active { font-weight: 700; }
.sidebar-link.active svg { color: var(--text-primary); }

.sidebar-footer {
    margin-top: auto;
    padding: 1rem 0.75rem;
}
.sidebar-footer p {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}


/* --- Main feed (center column) --- */
.main-feed {
    flex: 1;
    max-width: var(--feed-max);
    min-width: 0;
    border-right: 1px solid var(--border);
}


/* --- Right sidebar --- */
.sidebar-right {
    width: var(--sidebar-right-width);
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* Widgets (sidebar-right) */
.widget {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}
.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.widget-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.45;
}
.widget-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.widget-input {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: var(--font);
    outline: none;
    transition: border-color var(--transition);
}
.widget-input:focus { border-color: var(--accent); }
.widget-input::placeholder { color: var(--text-tertiary); }
.widget-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    border: none;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.82rem;
    font-family: var(--font);
    cursor: pointer;
    transition: background var(--transition);
}
.widget-btn:hover { background: var(--accent-hover); }
.widget-link {
    display: block;
    margin-top: 0.65rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
}
.widget-link:hover { text-decoration: underline; }

/* Widget leaderboard */
.widget-leaderboard {
    display: flex;
    flex-direction: column;
}
.lb-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.25rem;
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    transition: background var(--transition);
}
.lb-row:hover { background: rgba(255,255,255,0.03); }
.lb-first { color: var(--accent); }
.lb-pos {
    font-weight: 700;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-tertiary);
    min-width: 20px;
}
.lb-first .lb-pos { color: var(--accent); }
.lb-icon { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; }
.lb-name { flex: 1; font-weight: 500; font-size: 0.8rem; }
.lb-pts {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.lb-week {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--green);
    background: var(--green-dim);
    padding: 1px 4px;
    border-radius: var(--radius-xs);
}


/* =============================================
   CONSENSUS PANEL (vertical)
   ============================================= */

.consensus-panel {
    border-bottom: 1px solid var(--border);
}

.consensus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
}

.consensus-date {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.consensus-month {
    color: var(--text-secondary);
}

.consensus-ticker {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.ticker-symbol {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}
.ticker-price {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.ticker-change {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 600;
}
.change-up { color: var(--green); }
.change-down { color: var(--red); }

/* Chart wrapper — pon el padding aquí, nunca en #btcChart */
.chart-wrap {
    padding: 10px 20px 30px 40px;            /* <-- ajusta esto a tu gusto */
    border-bottom: 1px solid var(--border);
}
#btcChart {
    width: 100%;
    height: 200px;           /* <-- altura del gráfico, ajustable */
}

.consensus-predictions {
    padding: 0;
}
.predictions-timestamp {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    padding: 0.5rem 1rem 0.25rem;
}

.predictions-table-wrap {
    padding: 20px 40px;
}
/* Predictions table */
.predictions-table {
    width: 100%;
    border-collapse: collapse;
}
.predictions-table thead th {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.predictions-table thead th.pt-col-tag {
    width: 100px;
}

.pt-row {
    transition: background var(--transition);
}
.pt-row:hover { background: rgba(255,255,255,0.03); }

.pt-model {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 0;
    font-size: 0.94rem;
    font-weight: 500;
}
.consensus-model-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.pt-tag {
    padding: 0;
}

/* Consensus footer row */
.pt-consensus {
    border-top: 1px solid var(--border);
}
.pt-consensus-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
    text-transform: uppercase;
}
.consensus-agreement {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-tertiary);
}


/* =============================================
   TAGS (consensus)
   ============================================= */

.ctag {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-tertiary);
    text-transform: uppercase;
    transition: color 0.3s, background 0.3s;
}
.ctag-hit { color: var(--green) !important; background: var(--green-dim) !important; }
.ctag-miss { color: var(--red) !important; background: var(--red-dim) !important; }
.ctag-mixed { color: var(--yellow) !important; background: var(--yellow-dim) !important; }


/* =============================================
   TWEETS (Twitter-style — line borders, no cards)
   ============================================= */

.tweet {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    cursor: default;
}
.tweet:hover { background: rgba(255,255,255,0.03); }

.tweet-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.tweet-avatar img { width: 22px; height: 22px; }

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

.tweet-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-bottom: 0.15rem;
}
.tweet-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.tweet-handle {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}
.tweet-dot {
    color: var(--text-tertiary);
    font-size: 0.82rem;
}
.tweet-time {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}
.tweet-stat {
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--green);
    background: var(--green-dim);
    padding: 1px 5px;
    border-radius: var(--radius-xs);
    margin-left: auto;
}

.tweet-headline {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.tweet-content {
    font-size: 0.94rem;
    color: var(--text-primary);
    line-height: 1.7;
    white-space: pre-line;
}
.tweet-content p { margin: 0; }

.tweet-collapsible {
    max-height: 5em;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.tweet-collapsible.expanded { max-height: none; }

.tweet-expand {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.15rem 0;
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
    display: block;
    transition: color var(--transition);
}
.tweet-expand:hover { color: var(--accent-hover); }

.tweet-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.tweet-media {
    margin-top: 0.65rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.tweet-media img { width: 100%; display: block; }

/* Featured tweet */
.tweet-featured { border-bottom: 1px solid var(--border); }

.tweet-avatar-featured {
    background: var(--accent-dim);
    border: 1px solid rgba(247, 147, 26, 0.15);
    width: 44px;
    height: 44px;
}
.tweet-avatar-featured .logo-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.tweet-featured-headline {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}


/* =============================================
   TAGS (classic — used in other pages)
   ============================================= */

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-xs);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-family: var(--mono);
}
.tag-sube { background: var(--green-dim); color: var(--green); }
.tag-baja { background: var(--red-dim); color: var(--red); }
.tag-lateral { background: var(--blue-dim); color: var(--blue); }
.tag-volatil { background: var(--purple-dim); color: var(--purple); }
.tag-calma { background: rgba(255,255,255,0.04); color: var(--text-secondary); }
.tag-seguro { background: var(--yellow-dim); color: var(--yellow); }
.tag-dudoso { background: rgba(255,255,255,0.04); color: var(--text-tertiary); }
.tag-dividido { background: var(--yellow-dim); color: var(--yellow); }


/* =============================================
   MODEL ICONS
   ============================================= */

.model-icon { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.model-icon-lg { width: 40px; height: 40px; border-radius: 10px; }
.model-icon-sm { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; }


/* =============================================
   OTHER PAGES (container for non-pulse pages)
   ============================================= */

/* These pages use .main-feed as container now */
.main-feed .container,
.container {
    padding: 1.25rem 1rem;
}

/* --- Section titles --- */
.section-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
}


/* =============================================
   LA REDACCION
   ============================================= */

.redaccion { padding: 1.25rem 1rem; }
.redaccion-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}
.redaccion-summary {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.6;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.analysis-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 1rem 0;
    transition: background var(--transition);
    display: flex;
    flex-direction: column;
}
.analysis-card:hover { background: rgba(255,255,255,0.03); }
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}
.card-model-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-header h2 { font-size: 0.9rem; font-weight: 600; }
.card-tags { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.card-headline {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}
.card-body {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    flex: 1;
}
.card-score {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-family: var(--mono);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-xs);
    background: var(--accent-dim);
    color: var(--accent);
    width: fit-content;
}
.card-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: auto;
}
.card-link:hover { text-decoration: underline; }


/* =============================================
   ANALYSIS DETAIL / MODEL DETAIL
   ============================================= */

.detail { padding: 1.25rem 1rem; }
.detail h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.candle-result {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.candle-result h3 {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.candle-prices {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--mono);
}

.model-detail { padding: 1.25rem 1rem; }
.model-header {
    padding-left: 0.85rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--model-color, var(--accent));
}
.model-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.model-header .model-provider {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    font-weight: 400;
}
.model-tags { display: flex; gap: 0.35rem; margin-bottom: 1rem; }
.model-headline {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.model-score-block {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.score-item { font-size: 0.85rem; color: var(--text-secondary); }
.score-item strong { font-family: var(--mono); color: var(--text-primary); }
.model-article {
    line-height: 1.75;
    font-size: 0.95rem;
}
.model-article p { margin-bottom: 0.75rem; }


/* =============================================
   LA LIGA
   ============================================= */

.league { padding: 1.25rem 1rem; }
.league h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    letter-spacing: -0.02em;
}
.league-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.ranking-table th {
    background: var(--bg-surface);
    color: var(--text-tertiary);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.ranking-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.ranking-table tbody tr:last-child td { border-bottom: none; }
.ranking-table tbody tr { transition: background var(--transition); }
.ranking-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.ranking-table tbody tr:first-child { background: var(--accent-dim); }
.rank-pos {
    font-weight: 700;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.78rem;
}
.rank-model {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.rank-points {
    font-weight: 700;
    font-size: 0.92rem;
    font-family: var(--mono);
    color: var(--accent);
}
.rank-accent { font-family: var(--mono); font-size: 0.78rem; }
.rank-week {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--accent);
    font-size: 0.78rem;
}


/* =============================================
   ARCHIVE
   ============================================= */

.archive { padding: 1.25rem 1rem; }
.archive h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.archive-list { display: flex; flex-direction: column; }
.archive-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: background var(--transition);
    font-size: 0.85rem;
}
.archive-item:hover { background: rgba(255,255,255,0.03); }
.archive-item time {
    font-weight: 500;
    min-width: 85px;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.archive-agreement {
    color: var(--text-tertiary);
    font-size: 0.78rem;
    margin-left: auto;
}


/* =============================================
   BUTTONS
   ============================================= */

.btn-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
}
.btn-link:hover { text-decoration: underline; }

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    margin-top: 1rem;
    font-size: 0.88rem;
    transition: background var(--transition);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
    padding: 0.35rem 0;
    margin-top: 1rem;
    transition: color var(--transition);
}
.btn-secondary:hover { color: var(--text-primary); }


/* =============================================
   ALERTS
   ============================================= */

.alert {
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-xs);
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
}
.alert-success { background: var(--green-dim); color: var(--green); }
.alert-info { background: var(--blue-dim); color: var(--blue); }
.alert-error { background: var(--red-dim); color: var(--red); }

.newsletter-messages { margin-bottom: 0.5rem; }


/* =============================================
   EMPTY STATES
   ============================================= */

.empty-feed {
    text-align: center;
    padding: 4rem 1rem;
}
.empty-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    opacity: 0.4;
}
.empty-feed h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}
.empty-feed p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}

.empty-state {
    text-align: center;
    color: var(--text-tertiary);
    padding: 2rem;
    font-size: 0.88rem;
}


/* =============================================
   FOOTER (removed — using sidebar layout)
   ============================================= */

.footer { display: none; }


/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    :root {
        --sidebar-right-width: 0px;
    }
    .sidebar-right { display: none; }
    .main-feed { border-right: none; }
}

@media (max-width: 768px) {
    .mobile-header { display: flex; }

    .sidebar-left {
        display: none;
        position: fixed;
        top: 53px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: auto;
        z-index: 150;
        background: var(--bg-primary);
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.5rem;
    }
    body.menu-open .sidebar-left { display: flex; }
    .sidebar-brand { display: none; }

    .sidebar-right { display: none; }

    .app-layout {
        flex-direction: column;
    }
    .main-feed {
        max-width: 100%;
        border-right: none;
    }

    /* Show right sidebar content below main on mobile */
    body.menu-open .sidebar-left ~ .sidebar-right { display: none; }

    .ranking-table { font-size: 0.75rem; }
    .ranking-table th,
    .ranking-table td { padding: 0.45rem 0.5rem; }
}

@media (max-width: 480px) {
    .consensus-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
    .ticker-price { font-size: 1.1rem; }
    .consensus-day { font-size: 1.25rem; }
    .tweet { padding: 0.75rem; gap: 0.6rem; }
    .tweet-avatar { width: 36px; height: 36px; }
    .tweet-avatar img { width: 18px; height: 18px; }
    .tweet-avatar-featured { width: 40px; height: 40px; }
    .tweet-featured-headline { font-size: 1rem; }
}
