* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border: #e0e0e0;
    --link: #0066cc;
    --link-visited: #551a8b;
    --accent: #0066cc;
    --shadow: rgba(0, 0, 0, 0.1);
    --archive-bg: #fffbeb;
    --success: #10b981;
    --warning: #f59e0b;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-card: #242424;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --border: #404040;
    --link: #4a9eff;
    --link-visited: #b794f6;
    --accent: #4a9eff;
    --shadow: rgba(0, 0, 0, 0.3);
    --archive-bg: #422006;
    --success: #34d399;
    --warning: #fbbf24;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-wrapper {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    gap: 30px;
    padding: 20px;
}

.container {
    flex: 1;
    min-width: 0;
}

.subscribe-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subscribe-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Newsletter Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-primary);
    font-size: 32px;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--border);
    transform: scale(1.1);
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-content .newsletter-form {
    margin-bottom: 16px;
}

.modal-content .newsletter-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.modal-content .newsletter-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
}

.modal-content .newsletter-submit {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.modal-content .newsletter-submit:hover {
    opacity: 0.9;
}

.modal-content .newsletter-info {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.modal-content .newsletter-info small {
    font-size: 13px;
    color: var(--text-tertiary);
}

.newsletter-section {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 14px;
}

.newsletter-section h3 {
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 8px;
}

.newsletter-section p {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.newsletter-form {
    margin-bottom: 8px;
}

.newsletter-input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.newsletter-input::placeholder {
    color: var(--text-tertiary);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
}

.newsletter-submit {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.newsletter-submit:hover {
    opacity: 0.9;
}

.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-message {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    display: none;
}

.newsletter-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.newsletter-message.show {
    display: block !important;
}

.newsletter-info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.newsletter-info small {
    font-size: 10px;
    color: var(--text-tertiary);
}

.cf-turnstile,
#turnstile-widget,
#mobile-turnstile-widget,
#exit-turnstile-widget {
    margin: 0;
    min-height: 0;
    height: 0;
    overflow: hidden;
}

.cf-turnstile iframe,
#turnstile-widget iframe,
#mobile-turnstile-widget iframe,
#exit-turnstile-widget iframe {
    margin: 10px 0;
}

.mobile-newsletter {
    display: none !important;
}

.mobile-newsletter-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.mobile-newsletter-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left {
    flex: 1;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.tagline {
    font-size: 14px;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-button {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-button:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.social-button svg {
    width: 18px;
    height: 18px;
}

.dark-mode-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dark-mode-toggle:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.controls {
    margin-bottom: 25px;
}

.insights-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px var(--shadow);
}

.insight-section {
    margin-bottom: 25px;
}

.insight-section:last-child {
    margin-bottom: 0;
}

.insight-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-value-small {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-trend {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.stat-trend.trend-up {
    color: var(--success);
}

.stat-trend.trend-down {
    color: #ef4444;
}

.stat-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stat-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.stat-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #667eea);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.stats-timestamp {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.stats-refresh-time {
    font-size: 11px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.heatmap-day {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.heatmap-day:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px var(--shadow);
    border-color: var(--accent);
}

.heatmap-today {
    border-color: var(--accent);
    border-width: 3px;
}

.heatmap-selected {
    border-color: #f59e0b;
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.heatmap-day-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.heatmap-date {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.heatmap-count {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.empty-state-small {
    text-align: center;
    padding: 20px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.filter-notice {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.clear-filter-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.clear-filter-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.view-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.view-btn {
    flex: 1;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.view-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.view-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.view-count {
    opacity: 0.8;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
	font-weight: 600;
}

.filter-section {
    margin-bottom: 15px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.status {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    display: inline-block;
}

.status.loading {
    color: var(--accent);
}

.status.error {
    color: #ff4444;
}

.refresh-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 10px;
    transition: opacity 0.2s ease;
}

.refresh-btn:hover {
    opacity: 0.8;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.count-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.filter-btn.active .count-badge {
    background: rgba(255, 255, 255, 0.3);
}

.category-insight {
    background: linear-gradient(135deg, var(--accent), #667eea);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

[data-theme="dark"] .category-insight {
    background: linear-gradient(135deg, #4c51bf, #553c9a);
}

.category-insight-content {
    flex: 1;
}

.category-insight-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.category-insight-stat {
    opacity: 0.95;
    font-size: 13px;
}

.articles-grid {
    display: grid;
    gap: 16px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px var(--shadow);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 140px;
    overflow: hidden;
}

.article-card:hover {
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateY(-2px);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.article-title {
    flex: 1;
    min-height: 0;
}

.bookmark-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    font-size: 18px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: all 0.2s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.bookmark-btn:hover {
    transform: scale(1.1);
    opacity: 1;
    background: var(--accent);
    border-color: var(--accent);
}

.bookmark-btn.bookmarked {
    opacity: 1;
    background: #fbbf24;
    border-color: #f59e0b;
}

.bookmark-btn.bookmarked:hover {
    background: #f59e0b;
    border-color: #d97706;
}

.article-category {
    flex-shrink: 0;
}

.article-title a {
    color: var(--link);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a:visited {
    color: var(--link-visited);
}

.article-title a:hover {
    text-decoration: underline;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-solar { background: #fef3c7; color: #92400e; }
.category-wind { background: #dbeafe; color: #1e40af; }
.category-nuclear { background: #fce7f3; color: #9f1239; }
.category-ev { background: #d1fae5; color: #065f46; }
.category-oil-gas { background: #fed7aa; color: #9a3412; }
.category-storage { background: #e0e7ff; color: #3730a3; }
.category-grid { background: #f3e8ff; color: #6b21a8; }
.category-policy { background: #fce7f3; color: #831843; }
.category-climate { background: #ccfbf1; color: #134e4a; }
.category-other { background: #f3f4f6; color: #374151; }
.category-hydrogen { background: #dbeafe; color: #075985; }
.category-hydro { background: #bfdbfe; color: #1e3a8a; }
.category-geothermal { background: #fed7aa; color: #c2410c; }
.category-carbon-capture { background: #e0e7ff; color: #4338ca; }

[data-theme="dark"] .category-solar { background: #78350f; color: #fef3c7; }
[data-theme="dark"] .category-wind { background: #1e3a8a; color: #dbeafe; }
[data-theme="dark"] .category-nuclear { background: #831843; color: #fce7f3; }
[data-theme="dark"] .category-ev { background: #064e3b; color: #d1fae5; }
[data-theme="dark"] .category-oil-gas { background: #7c2d12; color: #fed7aa; }
[data-theme="dark"] .category-storage { background: #312e81; color: #e0e7ff; }
[data-theme="dark"] .category-grid { background: #581c87; color: #f3e8ff; }
[data-theme="dark"] .category-policy { background: #701a75; color: #fce7f3; }
[data-theme="dark"] .category-climate { background: #134e4a; color: #ccfbf1; }
[data-theme="dark"] .category-other { background: #374151; color: #f3f4f6; }
[data-theme="dark"] .category-hydrogen { background: #075985; color: #dbeafe; }
[data-theme="dark"] .category-hydro { background: #1e3a8a; color: #bfdbfe; }
[data-theme="dark"] .category-geothermal { background: #c2410c; color: #fed7aa; }
[data-theme="dark"] .category-carbon-capture { background: #4338ca; color: #e0e7ff; }

.article-description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 0 1 auto;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: auto;
    flex-shrink: 0;
}

.article-source {
    font-weight: 500;
    color: var(--text-secondary);
}

.article-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.archive-badge {
    background: #f59e0b;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.load-more {
    text-align: center;
    margin: 30px 0;
}

.load-more button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.load-more button:hover {
    opacity: 0.8;
}

.load-more button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}

.logo-large {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 50%;
}

.logo-small {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 50%;
}

.icon-small {
    width: 18px;
    height: 18px;
}

.hidden {
    display: none !important;
}

.bookmark-hint {
    margin-top: 10px;
    display: block;
    opacity: 0.7;
}

/* ===================================
   IN-APP BROWSER WARNING STYLES
   =================================== */

.in-app-browser .cf-turnstile,
.in-app-browser #turnstile-widget,
.in-app-browser #mobile-turnstile-widget,
.in-app-browser #exit-turnstile-widget {
    display: none !important;
}

.in-app-browser-warning {
    position: sticky;
    top: 0;
    z-index: 1001;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    animation: slideDownBounce 0.5s ease;
}

[data-theme="dark"] .in-app-browser-warning {
    background: linear-gradient(135deg, #d84315, #e65100);
}

@keyframes slideDownBounce {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    60% {
        transform: translateY(10px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
    }
}

.in-app-warning-content {
    position: relative;
    padding: 16px 50px 16px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.in-app-warning-icon {
    font-size: 40px;
    flex-shrink: 0;
    line-height: 1;
}

.in-app-warning-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.in-app-warning-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.in-app-warning-text p {
    margin: 4px 0 8px 0;
    opacity: 0.95;
}

.in-app-instructions {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    backdrop-filter: blur(10px);
}

.in-app-instructions strong {
    display: inline;
    font-size: 13px;
    color: #fff;
}

.in-app-warning-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.in-app-warning-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.in-app-form-notice {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-primary);
}

[data-theme="dark"] .in-app-form-notice {
    background: rgba(216, 67, 21, 0.2);
    border-color: rgba(216, 67, 21, 0.4);
}

.in-app-form-notice strong {
    display: block;
    margin-bottom: 4px;
    color: #d84315;
}

[data-theme="dark"] .in-app-form-notice strong {
    color: #ff8a65;
}

.in-app-form-notice small {
    font-size: 11px;
    opacity: 0.9;
}

.in-app-wechat .in-app-browser-warning {
    background: linear-gradient(135deg, #09b83e, #07c160);
}

.in-app-facebook .in-app-browser-warning {
    background: linear-gradient(135deg, #1877f2, #0c5ec5);
}

.in-app-instagram .in-app-browser-warning {
    background: linear-gradient(135deg, #e1306c, #fd1d1d, #f77737);
}

.in-app-twitter .in-app-browser-warning {
    background: linear-gradient(135deg, #000000, #1d1d1d);
}

.in-app-linkedin .in-app-browser-warning {
    background: linear-gradient(135deg, #0077b5, #005582);
}

.in-app-tiktok .in-app-browser-warning {
    background: linear-gradient(135deg, #000000, #ee1d52, #69c9d0);
}

.compact-stats {
    margin-bottom: 15px;
}

.compact-stats-line {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.compact-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.compact-stat-label {
    color: var(--text-tertiary);
    font-size: 13px;
}

.compact-stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

.compact-stat-trend {
    font-size: 12px;
    font-weight: 600;
}

.compact-stat-trend.trend-up {
    color: var(--success);
}

.compact-stat-trend.trend-down {
    color: #ef4444;
}

/* ===================================
   ABOUT PAGE STYLES
   =================================== */

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    margin-top: 40px;
}

.about-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--accent), #667eea);
    border-radius: 16px;
    color: white;
    margin-bottom: 60px;
}

.about-hero h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.about-hero .lead {
    font-size: 20px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Coverage Grid */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.coverage-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.coverage-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.coverage-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.coverage-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Process Steps */
.process-steps {
    margin-top: 30px;
}

.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    background: var(--accent);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    margin: 0;
}

/* Sources List */
.sources-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.source-category h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.source-category ul {
    list-style: none;
    padding: 0;
}

.source-category li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.source-category li:before {
    content: "→ ";
    color: var(--accent);
    font-weight: 700;
    margin-right: 8px;
}

.sources-note {
    font-style: italic;
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Connect Options */
.connect-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.connect-option {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.connect-option h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.connect-option p {
    font-size: 14px;
    margin-bottom: 16px;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.cta-button:hover {
    opacity: 0.9;
}

.cta-button.secondary {
    background: var(--bg-card);
    color: var(--accent);
    border: 2px solid var(--accent);
}

.cta-button.large {
    font-size: 18px;
    padding: 16px 32px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.social-link:hover {
    opacity: 0.9;
}

.final-cta {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 2px solid var(--border);
}

.final-cta h3 {
    margin-bottom: 24px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s ease;
    font-size: 14px;
}

.nav-link:hover {
    background: var(--bg-secondary);
}

Add to styles.css:
css/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.status {
    display: flex;
    align-items: center;
    gap: 0; /* No gap, we're using bullets for spacing */
    flex-wrap: wrap;
    font-size: 13px;
}

.status strong {
    color: var(--accent);
    font-weight: 700;
    display: inline; /* Not inline-block */
    margin: 0;
    padding: 0;
}

/* ===================================
   RESPONSIVE STYLES (CONSOLIDATED)
   =================================== */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Tablets and below (1199px) */
@media (max-width: 1199px) {
    .mobile-newsletter {
        display: block !important;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 25px;
        box-shadow: 0 2px 8px var(--shadow);
    }
}

/* Small tablets and large phones (768px) */
@media (max-width: 768px) {
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compact-stats-line {
        font-size: 13px;
        gap: 12px;
    }
    
    .status {
        font-size: 12px;
    }
    
    /* Header */
    header {
        gap: 10px;
    }
    
    .header-actions {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .subscribe-btn,
    .social-button,
    .dark-mode-toggle {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* In-app browser warning */
    .in-app-warning-content {
        flex-direction: column;
        text-align: center;
        padding: 16px 45px 16px 16px;
        gap: 12px;
    }
    
    .in-app-warning-icon {
        font-size: 36px;
    }
    
    .in-app-warning-text {
        font-size: 13px;
    }
    
    .in-app-warning-text strong {
        font-size: 15px;
    }
    
    .in-app-instructions {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .in-app-warning-close {
        width: 32px;
        height: 32px;
        font-size: 28px;
        top: 6px;
        right: 6px;
    }
    
    /* Insights panel */
    .insights-panel {
        padding: 16px;
    }
    
    .insight-section {
        margin-bottom: 20px;
    }
    
    .insight-section h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .stat-card {
        padding: 10px 12px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-value-small {
        font-size: 14px;
    }
    
    /* Heatmap */
    .heatmap-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }
    
    .heatmap-day {
        padding: 8px 4px;
        min-height: 70px;
    }
    
    .heatmap-day-name {
        font-size: 10px;
    }
    
    .heatmap-date {
        font-size: 9px;
    }
    
    .heatmap-count {
        font-size: 16px;
    }
    
    /* About page */
    .about-hero {
        padding: 40px 20px;
    }
    
    .about-hero h2 {
        font-size: 32px;
    }
    
    .about-hero .lead {
        font-size: 18px;
    }
    
    .coverage-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .coverage-item {
        padding: 16px 12px;
    }
    
    .coverage-icon {
        font-size: 28px;
    }
    
    .coverage-name {
        font-size: 12px;
    }
    
    .process-step {
        flex-direction: column;
        gap: 12px;
    }
    
    .sources-list {
        grid-template-columns: 1fr;
    }
    
    .connect-options {
        grid-template-columns: 1fr;
    }
}

/* Phones (600px) */
@media (max-width: 600px) {
    .main-wrapper {
        padding: 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .article-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .view-selector {
        flex-direction: column;
    }
    
    .article-card {
        height: auto;
        min-height: 200px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-content h2 {
        font-size: 24px;
    }
    
    .modal-content p {
        font-size: 14px;
    }
}

/* Small phones (480px) */
@media (max-width: 480px) {
    .header-actions {
        gap: 6px;
    }
    
    .subscribe-btn,
    .social-button,
    .dark-mode-toggle {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .tagline {
        font-size: 12px;
    }
    
    .in-app-warning-content {
        padding: 14px 40px 14px 14px;
        gap: 10px;
    }
    
    .in-app-warning-icon {
        font-size: 32px;
    }
    
    .in-app-warning-text {
        font-size: 12px;
    }
    
    .in-app-warning-text strong {
        font-size: 14px;
    }
    
    .in-app-instructions {
        font-size: 11px;
        padding: 8px 10px;
    }
    
    .insights-panel {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .insight-section {
        margin-bottom: 16px;
    }
    
    .insight-section h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .stat-card {
        padding: 10px 14px;
    }
    
    .heatmap-grid {
        gap: 3px;
    }
    
    .heatmap-day {
        padding: 6px 2px;
        min-height: 65px;
        border-radius: 6px;
    }
    
    .heatmap-day-name {
        font-size: 9px;
    }
    
    .heatmap-date {
        font-size: 8px;
    }
    
    .heatmap-count {
        font-size: 14px;
    }
}

/* Small tablets and large phones (768px) */
@media (max-width: 768px) {
    /* ... existing styles ... */
    
    /* Make stats compact and stack on mobile */
    .compact-stats-line {
        font-size: 12px;
        gap: 8px;
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .compact-stat-item {
        width: 100%;
        justify-content: space-between;
    }
    
    .compact-stat-label {
        font-size: 11px;
    }
    
    .compact-stat-value {
        font-size: 12px;
    }
    
    .compact-stat-trend {
        font-size: 11px;
    }
    
    /* Hide the separator pipes on mobile */
    .compact-stats-line > span {
        display: none;
    }
}

/* Small phones (480px) */
@media (max-width: 480px) {
    /* ... existing styles ... */
    
    .compact-stats-line {
        font-size: 11px;
        padding: 8px 10px;
    }
    
    .compact-stat-item {
        gap: 4px;
    }
    
    .compact-stat-label {
        font-size: 10px;
    }
    
    .compact-stat-value {
        font-size: 11px;
    }
}