/* Profile Popup Modern Design */

/* Override jQuery UI Dialog Styles for this specific popup */
.dle-popup-userprofile.ui-dialog {
    padding: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    overflow: visible !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
    background: transparent !important;
}

.dle-popup-userprofile .ui-dialog-titlebar,
.dle-popup-userprofile .ui-dialog-buttonpane {
    display: none !important;
    /* Hide default titlebar and buttons */
}

/* The Popup Container */
#dleprofilepopup {
    padding: 0 !important;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    color: #333;
    font-family: 'Roboto', Arial, sans-serif;
    position: relative;
    box-sizing: border-box;
}

/* Header Section */
.profile-header {
    height: 100px;
    background: linear-gradient(135deg, #FECC00 0%, #ff9a00 100%);
    position: relative;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: repeating-linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000), repeating-linear-gradient(45deg, #000 25%, #fff 25%, #fff 75%, #000 75%, #000);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

/* Close Button */
.profile-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s;
    background: transparent;
    border: none;
    line-height: 1;
}

.profile-close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

/* User Identity Section */
.profile-identity {
    padding: 0 20px;
    position: relative;
    text-align: center;
    margin-top: -50px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background: #fff;
    overflow: hidden;
    margin: 0 auto 10px auto;
    position: relative;
    z-index: 10;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 5px 0;
}

.profile-group {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Stats / Info Grid */
.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 25px 25px 25px;
    margin-top: 10px;
}

.stat-item {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #FECC00;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Actions Footer */
.profile-footer {
    padding: 20px 25px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-profile {
    padding: 10px 24px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.btn-profile:hover {
    background: #FECC00;
    color: #000;
    text-decoration: none;
}

.btn-profile i {
    margin-right: 6px;
}