* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f8fafc;
    overflow-x: hidden;
}

/* ========== MOBILE-FIRST PROFESSIONAL HEADER ========== */
.professional-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-professional {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-symbol {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    padding: 6px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3); }
    100% { box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5); }
}

.logo-info {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 1px;
}

.header-status .market-status-widget {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 120px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.status-light {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.market-time {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ========== MAIN DASHBOARD ========== */
.dashboard-main {
    min-height: 100vh;
    background: #f8fafc;
    margin: 0;
}

.dashboard-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 15px;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 4px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #6b7280;
}

.breadcrumb span:last-child {
    color: #3b82f6;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
}

.quick-stats {
    display: flex;
    gap: 20px;
}

.quick-stat {
    text-align: center;
    background: rgba(59, 130, 246, 0.05);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    min-width: 100px;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #1f2937;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========== DASHBOARD GRID ========== */
.dashboard-grid {
    padding: 25px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.widget {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.widget-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

.widget-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.widget-content {
    padding: 25px;
}

/* Stock Recommendations */
.stock-recommendations-pro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stock-card.featured {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #0ea5e9;
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.stock-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.stock-symbol {
    font-size: 1.4rem;
    font-weight: 900;
    color: #1d4ed8;
}

.stock-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

.stock-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
}

.stock-change.positive {
    background: #dcfce7;
    color: #166534;
}

.stock-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.stock-info p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 15px;
}

.stock-metrics {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    flex-direction: column;
    background: rgba(59, 130, 246, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    flex: 1;
    min-width: 100px;
}

.metric-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.metric-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.stock-recommendation {
    display: inline-block;
    padding: 6px 12px;
    background: #dcfce7;
    color: #166534;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.stock-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stock-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.stock-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.item-symbol {
    font-size: 1rem;
    font-weight: 800;
    color: #3b82f6;
    min-width: 50px;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.item-potential {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 600;
}

.item-rating {
    color: #f59e0b;
    font-size: 0.9rem;
}

.widget-action {
    padding: 20px 25px;
    border-top: 1px solid #f3f4f6;
}

.professional-cta-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.professional-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.professional-cta-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Performance Widget */
.performance-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.perf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.perf-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
}

.perf-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

.perf-trend {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
}

.perf-trend.up {
    background: #dcfce7;
    color: #166534;
}

/* Tools Widget */
.widget-toggle {
    display: flex;
    gap: 5px;
}

.toggle-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.toggle-btn.active {
    background: #3b82f6;
    color: white;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.tool-item:hover {
    background: #f1f5f9;
    transform: translateX(3px);
}

.tool-icon {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.tool-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tool-status.active {
    color: #10b981;
}

/* Intelligence Widget */
.intelligence-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.intel-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.intel-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intel-text {
    display: flex;
    flex-direction: column;
}

.intel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.intel-desc {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* Technology Widget */
.tech-stack-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-layer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

.layer-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
}

.layer-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
}

/* Action Widget */
.action-widget {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
}

.action-content {
    text-align: center;
    padding: 30px 20px;
}

.action-content h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.action-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.action-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 300px;
}

.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (min-width: 768px) {
    .dashboard-header {
        flex-wrap: nowrap;
        padding: 25px 30px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .quick-stats {
        gap: 25px;
    }

    .quick-stat {
        min-width: 120px;
        padding: 15px 20px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
        padding: 30px;
    }

    .main-widget {
        grid-column: span 2;
    }

    .action-widget {
        grid-column: span 2;
    }

    .performance-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .stock-header {
        flex-wrap: nowrap;
    }

    .stock-metrics {
        flex-wrap: nowrap;
    }
}

@media (min-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }

    .dashboard-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: auto auto auto;
        max-width: 1400px;
    }

    .main-widget {
        grid-column: 1;
        grid-row: span 2;
    }

    .performance-widget {
        grid-column: 2;
        grid-row: 1;
    }

    .tools-widget {
        grid-column: 3;
        grid-row: 1;
    }

    .intelligence-widget {
        grid-column: 2;
        grid-row: 2;
    }

    .tech-widget {
        grid-column: 3;
        grid-row: 2;
    }

    .action-widget {
        grid-column: span 3;
        grid-row: 3;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .professional-header {
        padding: 12px 15px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .logo-name {
        font-size: 1.1rem;
    }

    .dashboard-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .header-right {
        width: 100%;
    }

    .quick-stats {
        width: 100%;
        justify-content: space-around;
        gap: 15px;
    }

    .quick-stat {
        flex: 1;
        min-width: 80px;
        padding: 10px 12px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .dashboard-grid {
        padding: 15px;
        gap: 15px;
    }

    .widget-header {
        padding: 15px 20px;
    }

    .widget-content {
        padding: 20px;
    }

    .stock-card.featured {
        padding: 20px;
    }

    .stock-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .stock-metrics {
        flex-direction: column;
        gap: 10px;
    }

    .metric {
        min-width: auto;
    }

    .action-content {
        padding: 25px 15px;
    }

    .action-content h4 {
        font-size: 1.2rem;
    }
} 