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

body {
    font-family: 'Courier New', monospace;
    background: #000000;
    color: #b3b9c5;
    line-height: 1.6;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Shooting Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.3), transparent);
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(110, 231, 183, 0.3);
    animation: shooting-star 8s linear infinite;
}

.stars::before {
    top: 10%;
    left: -10%;
    animation-delay: 2s;
}

.stars::after {
    top: 60%;
    left: -10%;
    animation-delay: 5s;
}

@keyframes shooting-star {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(120vw) translateY(60vh);
        opacity: 0;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    border-bottom: 1px solid #1f2937;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.site-title {
    font-size: 1.8rem;
    color: #6ee7b7;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.site-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.admin-btn {
    background: #1a1a1a;
    border: 1px solid #374151;
    color: #9ca3af;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    border-color: #6ee7b7;
    color: #6ee7b7;
    background: rgba(110, 231, 183, 0.05);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.85rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #6ee7b7;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.last-update {
    color: #6b7280;
    margin-left: 10px;
}

/* Breaking News */
.breaking {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-left: 3px solid #fbbf24;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.breaking:hover {
    background: linear-gradient(135deg, #333333 0%, #222222 100%);
}

.breaking-label {
    color: #fbbf24;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.breaking h2 {
    color: #e5e7eb;
    font-size: 1.3rem;
    font-weight: normal;
    margin-bottom: 8px;
}

.breaking-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Market Data Grid */
.market-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.data-section {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 20px;
    border-radius: 4px;
}

.data-section h3 {
    color: #e5e7eb;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
}

/* Ticker Items */
.ticker-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

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

.ticker-symbol {
    color: #9ca3af;
    font-size: 0.9rem;
}

.ticker-price {
    text-align: right;
}

.ticker-value {
    color: #e5e7eb;
    font-size: 1rem;
}

.ticker-change {
    font-size: 0.8rem;
    margin-top: 2px;
}

.ticker-change.positive {
    color: #6ee7b7;
}

.ticker-change.negative {
    color: #f87171;
}

/* Category Tabs with Colors */
.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.tab {
    background: transparent;
    border: 1px solid #374151;
    color: #9ca3af;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border-radius: 3px;
}

.tab:hover {
    border-color: #6ee7b7;
    color: #6ee7b7;
    background: rgba(110, 231, 183, 0.05);
}

.tab.active {
    border-color: #6ee7b7;
    color: #6ee7b7;
    background: rgba(110, 231, 183, 0.1);
}

/* Color-coded tabs */
.tab-markets.active {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.tab-markets:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.tab-technology.active {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.tab-technology:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}

.tab-global.active {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.tab-global:hover {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.tab-economics.active {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.tab-economics:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

/* News Section */
.news-section-full {
    margin-bottom: 40px;
}

.news-section-full h3 {
    color: #e5e7eb;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
}

.news-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 18px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
    cursor: pointer;
}

.news-card:hover {
    border-color: #374151;
    background: #222222;
    transform: translateX(3px);
}

.news-category {
    display: inline-block;
    font-size: 0.7rem;
    color: #6ee7b7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.news-card h4 {
    color: #d1d5db;
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-meta {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    gap: 15px;
}

.news-description {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 8px;
    line-height: 1.4;
}

/* X Feed */
.x-feed-full {
    margin-bottom: 40px;
}

.x-feed-full h3 {
    color: #e5e7eb;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
}

.x-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.x-post {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.x-post:hover {
    border-color: #374151;
    background: #222222;
}

.x-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.x-avatar {
    width: 32px;
    height: 32px;
    background: #374151;
    border-radius: 50%;
}

.x-handle {
    color: #9ca3af;
    font-size: 0.85rem;
}

.x-content {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Search Bar */
.search-container {
    margin: 30px 0;
}

.search-input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #374151;
    color: #d1d5db;
    padding: 12px 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #6ee7b7;
    background: #222222;
}

.search-input::placeholder {
    color: #6b7280;
}

/* Loading State */
.loading {
    color: #6b7280;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #374151;
    width: 90%;
    max-width: 600px;
    border-radius: 4px;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.modal-header h2 {
    color: #e5e7eb;
    font-size: 1.3rem;
    font-weight: normal;
}

.close {
    color: #6b7280;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #6ee7b7;
}

.admin-section {
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.admin-section:last-of-type {
    border-bottom: none;
}

.admin-section h3 {
    color: #e5e7eb;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-help {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.admin-note {
    color: #6ee7b7;
    font-size: 0.85rem;
    margin-top: 15px;
    font-style: italic;
}

.input-group {
    margin-bottom: 20px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.input-group input,
.input-group select {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #374151;
    color: #d1d5db;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #6ee7b7;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.checkbox-group label {
    color: #9ca3af;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.save-btn {
    width: 100%;
    background: #6ee7b7;
    color: #0a0a0a;
    border: none;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 0 4px 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.save-btn:hover {
    background: #4ade80;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .market-data-grid {
        grid-template-columns: 1fr;
    }
    
    .x-feed-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}
