/* ─── Dashboard Layout ─── */
.dash {
    max-width: 780px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    min-height: 70vh;
}

/* ─── Welcome ─── */
.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.dash-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    letter-spacing: -0.03em;
    margin: 0 0 4px;
}

.dash-greeting {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* Plan badge — glass pill */
.dash-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(28, 28, 30, 0.94);
    backdrop-filter: saturate(160%) blur(24px);
    -webkit-backdrop-filter: saturate(160%) blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.1) inset, 0 8px 24px rgba(0, 0, 0, 0.25);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.dash-plan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.dash-plan-badge--pro {
    background: linear-gradient(135deg, rgba(120, 90, 255, 0.3), rgba(180, 120, 255, 0.22));
    border-color: rgba(160, 120, 255, 0.25);
}

.dash-plan-badge--pro .dash-plan-dot {
    background: #a78bfa;
    box-shadow: 0 0 6px rgba(167, 139, 250, 0.5);
}

/* ─── Sections ─── */
.dash-section {
    margin-bottom: 40px;
}

.dash-section-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

/* ─── Stats Grid — Glass Cards ─── */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.dash-stat-card {
    padding: 22px 24px 18px;
    background: rgba(45, 45, 50, 0.28);
    backdrop-filter: saturate(160%) blur(24px);
    -webkit-backdrop-filter: saturate(160%) blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.06) inset, 0 4px 20px rgba(0, 0, 0, 0.18);
    transition: background 0.2s, border-color 0.2s;
}

.dash-stat-card:hover {
    background: rgba(50, 50, 56, 0.38);
    border-color: rgba(255, 255, 255, 0.14);
}

.dash-stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.dash-stat-icon {
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
}

.dash-stat-icon svg {
    width: 100%;
    height: 100%;
}

.dash-stat-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.dash-stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

/* Progress bar */
.dash-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.dash-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #60a5fa, #818cf8);
    transition: width 0.6s ease;
}

.dash-progress-fill--inspire {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.dash-stat-limit {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    min-width: 52px;
    text-align: right;
}

/* ─── Quick Actions — Glass Cards ─── */
.dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.dash-action-card {
    display: block;
    padding: 24px 22px;
    background: rgba(45, 45, 50, 0.28);
    backdrop-filter: saturate(160%) blur(24px);
    -webkit-backdrop-filter: saturate(160%) blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.06) inset, 0 4px 20px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s, transform 0.18s;
}

.dash-action-card:hover {
    background: rgba(50, 50, 56, 0.42);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.dash-action-icon {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
}

.dash-action-icon svg {
    width: 100%;
    height: 100%;
}

.dash-action-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 6px;
}

.dash-action-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.45;
}

/* ─── Upgrade CTA — Glass Panel ─── */
.dash-upgrade {
    margin-top: 8px;
    padding: 32px 28px;
    background: rgba(45, 45, 50, 0.32);
    backdrop-filter: saturate(160%) blur(24px);
    -webkit-backdrop-filter: saturate(160%) blur(24px);
    border: 1px solid rgba(160, 120, 255, 0.15);
    border-radius: 18px;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.06) inset, 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dash-upgrade-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.97);
    margin: 0 0 8px;
}

.dash-upgrade-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    margin: 0 0 20px;
    line-height: 1.55;
}

/* Glass button for upgrade */
.dash-upgrade-btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 18px;
    background: rgba(28, 28, 30, 0.94);
    backdrop-filter: saturate(160%) blur(24px);
    -webkit-backdrop-filter: saturate(160%) blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.1) inset, 0 8px 24px rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.dash-upgrade-btn:hover {
    background: rgba(38, 38, 42, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-1px);
}

/* ─── Responsive ─── */
@media (max-width: 520px) {
    .dash {
        padding: 72px 16px 48px;
    }

    .dash-title {
        font-size: 1.5rem;
    }

    .dash-stats-grid,
    .dash-actions-grid {
        grid-template-columns: 1fr;
    }

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