.vasture-dashboard {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.vasture-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 40px;
    opacity: 0.9;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #00ff88;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.vasture-recent-activity {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.vasture-recent-activity h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.activity-type {
    font-size: 20px;
}

.activity-content {
    flex: 1;
}

.activity-content a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.activity-content a:hover {
    color: #00ff88;
}

.activity-meta {
    font-size: 12px;
    color: #8892b0;
}

/* Map View Styles */
.vasture-map-page {
    width: 100%;
}

.vasture-map-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 500px;
    background: #0a0a0f;
}

#vasture-globe,
#vasture-map-2d {
    width: 100%;
    height: 100%;
}

.vasture-floating-controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 90%;
    max-width: 800px;
}

.vasture-map-controls {
    display: flex;
    gap: 10px;
}

.map-mode-btn {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-mode-btn:hover,
.map-mode-btn.active {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.vasture-filters-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(26, 26, 46, 0.95);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    width: 100%;
    justify-content: center;
}

.vasture-filters-bar h4 {
    display: none;
}

.filter-groups-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.vasture-filters-bar h4 {
    display: none !important;
}

.filter-groups-wrapper .filter-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
    flex: 1;
    max-width: 200px;
}

.filter-group label {
    color: #8892b0;
    font-size: 10px;
    text-transform: uppercase;
}

.filter-group select {
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    width: 100%;
}

.filter-groups-wrapper .filter-group select:focus {
    outline: none;
    border-color: #00ff88;
}

.filter-groups-wrapper .filter-group select option {
    background: #1a1a2e;
    color: #fff;
}

/* Stock Charts */
.vasture-stock-chart {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stock-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stock-chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-type-label {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.stock-symbol {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.stock-chart-controls {
    display: flex;
    gap: 5px;
}

.timeframe-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8892b0;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.timeframe-btn:hover,
.timeframe-btn.active {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    color: #00ff88;
}

.stock-chart-container {
    width: 100%;
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
}

.stock-chart-legend {
    display: flex;
    justify-content: space-around;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 10px;
}

.legend-item {
    color: #8892b0;
    font-size: 12px;
}

.legend-item .label {
    font-weight: 600;
}

.legend-item .value {
    color: #fff;
    margin-left: 4px;
}

.vasture-stock-widgets {
    display: grid;
    gap: 20px;
}

.stock-widget-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.stock-widget {
    min-width: 0;
}

@media (max-width: 768px) {
    .stock-widget-row {
        grid-template-columns: 1fr;
    }

    .stock-chart-header {
        flex-direction: column;
        gap: 10px;
    }

    .filter-groups-wrapper {
        flex-direction: column;
    }

    .filter-groups-wrapper .filter-group {
        max-width: none;
    }
}

.vasture-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 24px;
    min-width: 360px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.vasture-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.vasture-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vasture-popup .popup-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
}

.vasture-popup .popup-close {
    background: none;
    border: none;
    color: #8892b0;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.vasture-popup .popup-close:hover {
    color: #fff;
}

.popup-body .news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-body .news-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.popup-body .news-item:hover {
    background: rgba(0, 255, 136, 0.1);
}

.popup-body .news-title {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.popup-body .news-title:hover {
    color: #00ff88;
}

.popup-body .news-domain {
    font-size: 12px;
    color: #8892b0;
}

.popup-image {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.media-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.media-badge.live {
    background: #ff0000;
    color: #fff;
    animation: pulse-live 2s infinite;
}

.media-badge.video {
    background: #ff6b6b;
    color: #fff;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.media-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.media-thumbnail {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
    color: #00ff88;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #00ff88;
    color: #0a0a0f;
}

.btn-live {
    background: #ff0000;
    border-color: #ff0000;
    color: #fff;
    animation: pulse-live 2s infinite;
}

.btn-live:hover {
    background: #ff4444;
    border-color: #ff4444;
    color: #fff;
}

.btn-source {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-source:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.vasture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.vasture-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.vasture-map-container.loading::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff88;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .vasture-stats-grid {
        grid-template-columns: 1fr;
    }

    .vasture-floating-controls {
        width: 95%;
        top: 10px;
    }

    .vasture-filters-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-group {
        min-width: calc(50% - 10px);
    }

    .vasture-popup {
        min-width: auto;
        width: calc(100% - 40px);
        max-width: none;
    }
}