.dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== Dashboard Hero ========== */
.dashboard-hero {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dashboard-hero.guest {
    text-align: center;
    padding: 60px 40px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.welcome-message h1 {
    font-size: 32px;
    color: #333;
    margin: 0 0 12px 0;
}

.username-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.membership-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card.membership-card .stat-label,
.stat-card.membership-card .stat-meta {
    color: rgba(255, 255, 255, 0.9);
}

.stat-card.quota-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-card.quota-card .stat-label,
.stat-card.quota-card .stat-meta {
    color: rgba(255, 255, 255, 0.9);
}

.stat-card.free-card {
    background: #e9ecef;
    border: 2px dashed #ced4da;
}

.stat-icon {
    font-size: 36px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-card.membership-card .stat-icon,
.stat-card.quota-card .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon.premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.stat-icon.normal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.stat-card.membership-card .stat-value,
.stat-card.quota-card .stat-value {
    color: white;
}

.stat-meta {
    font-size: 13px;
    color: #666;
}

/* ========== Section Container ========== */
.section-container {
    margin-bottom: 32px;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 8px 0;
}

.section-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.section-footer {
    text-align: center;
    margin-top: 24px;
}

/* ========== Feature Cards ========== */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 18px;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.card-badge {
    display: inline-block;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.card-badge.success {
    background: #d4edda;
    color: #155724;
}

.card-action {
    font-size: 14px;
    color: #007bff;
    font-weight: 500;
}

/* ========== Activity List ========== */
.activity-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: #f8f9fa;
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.activity-meta {
    font-size: 13px;
    color: #999;
}

.activity-action {
    flex-shrink: 0;
}

.btn-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ========== Buttons ========== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.link-primary {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.link-primary:hover {
    text-decoration: underline;
}

/* ========== Guest View ========== */
.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .dashboard-hero {
        padding: 24px;
    }

    .welcome-message h1 {
        font-size: 24px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .activity-item {
        padding: 16px 20px;
    }

    .hero-cta {
        flex-direction: column;
    }
}
