/* ── Premium Profile Card ── */
.profile-card {
    background: linear-gradient(135deg, #0f766e, #0d9488);
    /* Deep Teal Gradient */
    color: white;
    padding: 24px !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Background Pattern (Optional) */
.profile-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.profile-header {
    display: flex;
    gap: 20px;
    /* Increased gap */
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-avatar img,
.avatar-placeholder {
    width: 80px;
    /* Larger Avatar */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 1.5rem;
    /* Larger Name */
    font-weight: 800;
    margin: 4px 0 6px;
    line-height: 1.2;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.p-meta {
    display: flex;
    align-items: center;
    gap: 5px;
}

.p-meta i {
    opacity: 0.8;
}

/* Badge Styling */
.profile-info .badge {
    position: static;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    /* Space between badge and name */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logout Icon Button */
.btn-logout-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-logout-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ── Premium Quick Stats ── */
.quick-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 cols on mobile */
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .quick-stats-row {
        grid-template-columns: repeat(4, 1fr);
        /* 4 cols on desktop */
    }
}

.quick-stat {
    background: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.quick-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-light);
}

.qs-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.qs-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}