/* Dashboard Styles */

.dashboard-page {
    padding-top: 80px;
}

.dashboard-main {
    min-height: calc(100vh - 200px);
}

/* User Header */
.dashboard-header {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 255, 255, 0.05) 50%, transparent 100%);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.user-avatar {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #0066FF, #00FFFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.2);
    animation: pulse-glow 3s ease-in-out infinite;
    border: 3px solid rgba(0, 255, 255, 0.5);
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 50px rgba(0, 255, 255, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.2);
    }
}

.user-info h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.user-info h1 span {
    color: var(--cyan);
}

.user-email {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.user-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.user-badge.premium {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.3), rgba(0, 255, 255, 0.3));
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Stats Grid */
.dashboard-stats {
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--black-card);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition-medium);
}

.stat-card:hover {
    border-color: var(--cyan);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.stat-card.premium-card {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 0, 0, 0));
    border-color: var(--electric-blue);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--cyan);
}

.stat-card:nth-child(1) .stat-icon {
    color: #fbbf24;
}

/* Credits - gold */
.stat-card:nth-child(2) .stat-icon {
    color: #06b6d4;
}

/* AI - cyan */
.stat-card:nth-child(3) .stat-icon {
    color: #a855f7;
}

/* Premium - purple */
.stat-card:nth-child(4) .stat-icon {
    color: #22c55e;
}

/* Spent - green */

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Section Icons */
.section-title-sm i {
    color: var(--cyan);
}

/* Account Row Icons */
.account-label i {
    margin-right: 10px;
    color: var(--cyan);
    width: 20px;
}

/* Avatar Skull Styling */
.user-avatar i {
    font-size: 2.5rem;
    color: #000;
}

/* Quick Actions */
.dashboard-actions {
    padding: 40px 0;
}

.section-title-sm {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 20px;
    background: var(--black-card);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition-medium);
    text-decoration: none;
}

.action-card:hover {
    border-color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

.action-icon {
    font-size: 1.8rem;
}

.action-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.upgrade-action {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 255, 255, 0.1));
    border-color: var(--electric-blue);
}

.upgrade-action:hover {
    border-color: var(--cyan);
    box-shadow: var(--shadow-glow);
}

/* Account Info */
.dashboard-account {
    padding: 40px 0 60px;
}

.account-card {
    background: var(--black-card);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.account-row {
    display: flex;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-row:last-child {
    border-bottom: none;
}

.account-label {
    color: rgba(255, 255, 255, 0.6);
}

.account-value {
    color: var(--white);
    font-weight: 500;
}

/* Logout Button */
.logout-btn {
    background: none;
    border: 1px solid rgba(255, 95, 86, 0.5);
    color: #ff5f56;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 5px;
    font-family: inherit;
    font-size: inherit;
    transition: var(--transition-fast);
}

.logout-btn:hover {
    background: rgba(255, 95, 86, 0.1);
    border-color: #ff5f56;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .user-welcome {
        flex-direction: column;
        text-align: center;
    }

    .user-info h1 {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === Educational Progress Section === */
.dashboard-education {
    padding: 40px 0;
}

.education-overview {
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

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

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === News Section === */
.dashboard-news {
    padding: 40px 0;
}

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

.news-card {
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.news-category.vulnerabilities {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.news-category.exploits {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.news-category.tools {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: 1px solid #06b6d4;
}

.news-category.breaches {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid #a855f7;
}

.news-category.events {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.4;
}

.news-summary {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.news-source {
    font-weight: 600;
}

.news-date {
    font-style: italic;
}