/* Modern User Profiles - Frontend Styles */

:root {
    --mup-primary: #2563eb;
    --mup-primary-hover: #1d4ed8;
    --mup-secondary: #64748b;
    --mup-success: #10b981;
    --mup-error: #ef4444;
    --mup-warning: #f59e0b;
    --mup-bg-primary: #ffffff;
    --mup-bg-secondary: #f8fafc;
    --mup-bg-tertiary: #f1f5f9;
    --mup-border: #e2e8f0;
    --mup-border-focus: #2563eb;
    --mup-text-primary: #1e293b;
    --mup-text-secondary: #64748b;
    --mup-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mup-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mup-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --mup-radius-sm: 0.375rem;
    --mup-radius-md: 0.5rem;
    --mup-radius-lg: 0.75rem;
    --mup-radius-xl: 1rem;
    --mup-transition: all 0.2s ease-in-out;
}

/* Dark mode styles removed for cleaner design */

/* Container Styles */
.mup-profile-container {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--mup-bg-primary);
    border-radius: var(--mup-radius-xl);
    box-shadow: var(--mup-shadow-lg);
    overflow: hidden;
    transition: var(--mup-transition);
}

.mup-profile-container:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Profile Header */
.mup-profile-header {
    background: linear-gradient(135deg, var(--mup-primary) 0%, var(--mup-primary-hover) 100%);
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    justify-content: space-between;
    min-height: 180px;
    transition: all 0.3s ease;
}

.mup-profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Avatar Section */
.mup-avatar-section {
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mup-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    transition: var(--mup-transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mup-avatar-upload {
    position: relative;
    display: inline-block;
}

.mup-avatar-upload:hover .mup-avatar {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.mup-upload-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: var(--mup-transition);
}

.mup-avatar-upload:hover .mup-upload-overlay {
    opacity: 1;
}

#mup-avatar-input {
    display: none;
}

.mup-upload-btn {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--mup-radius-lg);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: var(--mup-transition);
    backdrop-filter: blur(4px);
}

.mup-upload-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
}

/* User Info */
.mup-user-info {
    flex: 1;
    transition: all 0.3s ease;
}

.mup-user-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.875rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    transition: all 0.3s ease;
}

.mup-user-email {
    margin: 0 0 0.25rem 0;
    opacity: 0.9;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mup-user-registered {
    margin: 0;
    opacity: 0.8;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

/* Profile Actions */
.mup-profile-actions {
    margin-left: auto;
}

.mup-btn-logout {
    background: white;
    color: var(--mup-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--mup-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--mup-transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.mup-btn-logout:hover {
    background: #1e40af;
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mup-btn-logout:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.1s ease;
}

.mup-btn-logout .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Tabs Container */
.mup-tabs-container {
    background: var(--mup-bg-primary);
}

/* Tabs Navigation */
.mup-tabs-nav {
    display: flex;
    background: var(--mup-bg-secondary);
    border-bottom: 2px solid var(--mup-border);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mup-tabs-nav::-webkit-scrollbar {
    display: none;
}

.mup-tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--mup-text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--mup-transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mup-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--mup-primary);
    transition: var(--mup-transition);
    transform: translateX(-50%);
}

.mup-tab-btn:hover {
    color: var(--mup-text-primary);
    background: var(--mup-bg-tertiary);
}

.mup-tab-btn.active {
    color: var(--mup-primary);
    background: var(--mup-bg-primary);
}

.mup-tab-btn.active::after {
    width: 100%;
}

.mup-tab-btn .dashicons {
    font-size: 16px;
    line-height: 1;
}

/* Tab Content */
.mup-tabs-content {
    min-height: 400px;
}

.mup-tab-content {
    display: none;
    padding: 2rem;
    animation: fadeInUp 0.3s ease-out;
}

/* Custom styling for embedded page/shortcode/html content */
.mup-tab-content.mup-no-padding {
    padding: 2rem;
    background: #f8f9fa;
}

/* Card styling for custom tab content - only for custom_fields content type */
.mup-tab-content.mup-no-padding.mup-content-custom_fields > * {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 0;
}

/* For shortcode content - minimal interference */
.mup-tab-content.mup-no-padding.mup-content-shortcode {
    padding: 1rem;
    background: transparent;
}

.mup-tab-content.mup-no-padding.mup-content-shortcode > * {
    /* Let shortcode handle its own styling */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Shortcode error styling */
.mup-shortcode-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #991b1b;
}

.mup-shortcode-error p {
    margin: 0.5rem 0;
    color: #991b1b;
}

.mup-shortcode-error code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: #374151;
}

/* For HTML content - minimal interference */
.mup-tab-content.mup-no-padding.mup-content-html {
    padding: 1rem;
    background: transparent;
}

.mup-tab-content.mup-no-padding.mup-content-html > * {
    /* Let HTML handle its own styling */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* For page content - minimal interference */
.mup-tab-content.mup-no-padding.mup-content-page {
    padding: 1rem;
    background: transparent;
}

.mup-tab-content.mup-no-padding.mup-content-page > * {
    /* Let page content handle its own styling */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Styling for content inside custom tabs */
.mup-tab-content.mup-no-padding h1,
.mup-tab-content.mup-no-padding h2,
.mup-tab-content.mup-no-padding h3,
.mup-tab-content.mup-no-padding h4,
.mup-tab-content.mup-no-padding h5,
.mup-tab-content.mup-no-padding h6 {
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.mup-tab-content.mup-no-padding h1 { font-size: 1.875rem; }
.mup-tab-content.mup-no-padding h2 { font-size: 1.5rem; }
.mup-tab-content.mup-no-padding h3 { font-size: 1.25rem; }

.mup-tab-content.mup-no-padding p {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Form styling to match the design */
.mup-tab-content.mup-no-padding label {
    display: block;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.mup-tab-content.mup-no-padding input[type="text"],
.mup-tab-content.mup-no-padding input[type="email"],
.mup-tab-content.mup-no-padding input[type="tel"],
.mup-tab-content.mup-no-padding input[type="number"],
.mup-tab-content.mup-no-padding input[type="password"],
.mup-tab-content.mup-no-padding textarea,
.mup-tab-content.mup-no-padding select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #ffffff;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.mup-tab-content.mup-no-padding input[type="text"]:focus,
.mup-tab-content.mup-no-padding input[type="email"]:focus,
.mup-tab-content.mup-no-padding input[type="tel"]:focus,
.mup-tab-content.mup-no-padding input[type="number"]:focus,
.mup-tab-content.mup-no-padding input[type="password"]:focus,
.mup-tab-content.mup-no-padding textarea:focus,
.mup-tab-content.mup-no-padding select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.mup-tab-content.mup-no-padding textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form row styling for side-by-side fields */
.mup-tab-content.mup-no-padding .form-row,
.mup-tab-content.mup-no-padding .row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mup-tab-content.mup-no-padding .form-row > *,
.mup-tab-content.mup-no-padding .row > * {
    flex: 1;
}

/* Button styling to match the blue design */
.mup-tab-content.mup-no-padding button,
.mup-tab-content.mup-no-padding input[type="submit"],
.mup-tab-content.mup-no-padding input[type="button"],
.mup-tab-content.mup-no-padding .button,
.mup-tab-content.mup-no-padding .btn {
    background: #4299e1;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.mup-tab-content.mup-no-padding button:hover,
.mup-tab-content.mup-no-padding input[type="submit"]:hover,
.mup-tab-content.mup-no-padding input[type="button"]:hover,
.mup-tab-content.mup-no-padding .button:hover,
.mup-tab-content.mup-no-padding .btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

/* File upload styling */
.mup-tab-content.mup-no-padding input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #e2e8f0;
    border-radius: 6px;
    background: #f7fafc;
    width: 100%;
    margin-bottom: 1rem;
}

/* Required field indicator */
.mup-tab-content.mup-no-padding .required,
.mup-tab-content.mup-no-padding label .required {
    color: #e53e3e;
    margin-left: 2px;
}

/* Form sections and groups */
.mup-tab-content.mup-no-padding .form-section,
.mup-tab-content.mup-no-padding .form-group {
    margin-bottom: 1.5rem;
}

/* Help text and descriptions */
.mup-tab-content.mup-no-padding .help-text,
.mup-tab-content.mup-no-padding .description,
.mup-tab-content.mup-no-padding small {
    color: #718096;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.mup-tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Sections */
.mup-form-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--mup-text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mup-border);
}

.mup-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}



/* Form Fields */
.mup-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mup-field-label {
    font-weight: 600;
    color: var(--mup-text-primary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mup-required {
    color: var(--mup-error);
    font-weight: 700;
}

.mup-field-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--mup-border);
    border-radius: var(--mup-radius-md);
    background: var(--mup-bg-primary);
    color: var(--mup-text-primary);
    font-size: 0.875rem;
    transition: var(--mup-transition);
    box-sizing: border-box;
}

.mup-field-input:focus {
    outline: none;
    border-color: var(--mup-border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.mup-textarea {
    min-height: 100px;
    resize: vertical;
}

.mup-field-value {
    padding: 0.75rem 0;
    color: var(--mup-text-primary);
    font-size: 0.875rem;
    line-height: 1.5;
    min-height: 1.25rem;
}

.mup-field-value:empty::before {
    content: '-';
    color: var(--mup-text-secondary);
}

/* Checkbox and Radio Styles */
.mup-checkbox-label,
.mup-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--mup-radius-sm);
    transition: var(--mup-transition);
}

.mup-checkbox-label:hover,
.mup-radio-label:hover {
    background: var(--mup-bg-secondary);
}

.mup-checkbox-label input,
.mup-radio-label input {
    width: auto;
    margin: 0;
}

/* File Input Styles */
.mup-file-input {
    border-style: dashed !important;
    background: var(--mup-bg-secondary);
}

.mup-current-file {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--mup-bg-secondary);
    border-radius: var(--mup-radius-sm);
    font-size: 0.75rem;
}

.mup-current-file a {
    color: var(--mup-primary);
    text-decoration: none;
}

.mup-current-file a:hover {
    text-decoration: underline;
}

/* Buttons */
.mup-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--mup-radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--mup-transition);
    border: 2px solid transparent;
    background: transparent;
    text-align: center;
    justify-content: center;
    min-width: 120px;
}

.mup-btn-primary {
    background: var(--mup-primary);
    color: white;
    border-color: var(--mup-primary);
}

.mup-btn-primary:hover {
    background: var(--mup-primary-hover);
    border-color: var(--mup-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--mup-shadow-lg);
}

.mup-btn-secondary {
    background: var(--mup-bg-secondary);
    color: var(--mup-text-primary);
    border-color: var(--mup-border);
}

.mup-btn-secondary:hover {
    background: var(--mup-bg-tertiary);
    transform: translateY(-1px);
    box-shadow: var(--mup-shadow-md);
}

.mup-btn .dashicons {
    font-size: 16px;
    line-height: 1;
}

/* Form Actions */
.mup-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: var(--mup-bg-secondary);
    border-top: 2px solid var(--mup-border);
    border-radius: 0 0 var(--mup-radius-xl) var(--mup-radius-xl);
    flex-wrap: wrap;
}

/* Edit Profile Page - Fixed Bottom Buttons */
.mup-edit-mode {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mup-edit-mode .mup-tabs-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mup-edit-mode .mup-tabs-content {
    flex: 1;
}

.mup-form-actions .mup-btn {
    margin: 0;
    min-width: 140px;
}

.mup-form-actions .mup-btn:not(:last-child) {
    margin-right: 0;
}

/* Profile Actions */
.mup-profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    flex-wrap: wrap;
}

.mup-profile-actions .mup-btn {
    width: 100%;
    justify-content: center;
    min-width: auto;
    background: #ffffff;
    color: var(--mup-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mup-profile-actions .mup-btn:hover {
    background: #1e40af !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mup-profile-actions .mup-btn:not(:last-child) {
    margin-right: 0;
}

/* Profile Completion & Gamification Section */
.mup-completion-section {
    background: linear-gradient(135deg, var(--mup-primary) 0%, var(--mup-primary-hover) 100%);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.mup-completion-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

/* Enhanced Profile Completion with Gamification */
.mup-profile-completion-enhanced {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--mup-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
}

.mup-progress-section {
    margin-bottom: 1.5rem;
}

.mup-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mup-progress-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: white;
}

.mup-progress-text {
    font-size: 0.875rem;
}

.mup-completion-badge {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--mup-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.mup-progress-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--mup-radius-sm);
}

.mup-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mup-progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mup-progress-high {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.mup-progress-medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.mup-progress-low {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Section Titles */
.mup-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Badges Section */
.mup-badges-section {
    margin-bottom: 1.5rem;
}

.mup-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
}

.mup-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-radius: var(--mup-radius-md);
    text-align: center;
    transition: var(--mup-transition);
    position: relative;
}

.mup-badge.earned {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mup-badge.locked {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

.mup-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mup-badge-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.mup-badge-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.mup-badge-date {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

/* Achievements Section */
.mup-achievements-section {
    margin-bottom: 1.5rem;
}

.mup-achievements-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mup-achievement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--mup-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--mup-transition);
}

.mup-achievement:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.mup-achievement-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mup-achievement-content {
    flex: 1;
}

.mup-achievement-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.mup-achievement-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.mup-achievement-date {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Suggestions Section */
.mup-suggestions-section {
    margin-bottom: 1rem;
}

.mup-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mup-suggestion {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--mup-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--mup-transition);
}

.mup-suggestion:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.mup-suggestion-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.mup-suggestion-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mup-suggestion-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.mup-suggestion-value {
    font-size: 0.625rem;
    color: #10b981;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.2);
    padding: 0.125rem 0.375rem;
    border-radius: var(--mup-radius-sm);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Social Features */
.mup-social-features {
    background: var(--mup-bg-secondary);
    border-radius: var(--mup-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--mup-border);
}

.mup-social-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mup-border);
}

.mup-stat-item {
    text-align: center;
    flex: 1;
}

.mup-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mup-primary);
    line-height: 1;
}

.mup-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--mup-text-secondary);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mup-social-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.mup-btn-social {
    min-width: 120px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--mup-radius-md);
    transition: var(--mup-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.mup-btn-follow {
    background: var(--mup-primary);
    color: white;
    border: 1px solid var(--mup-primary);
}

.mup-btn-follow:hover {
    background: var(--mup-primary-hover);
    transform: translateY(-1px);
}

.mup-btn-following {
    background: var(--mup-success);
    color: white;
    border: 1px solid var(--mup-success);
}

.mup-btn-following:hover {
    background: #059669;
    transform: translateY(-1px);
}

.mup-btn-like {
    background: var(--mup-bg-primary);
    color: var(--mup-text-primary);
    border: 1px solid var(--mup-border);
}

.mup-btn-like:hover {
    background: var(--mup-bg-secondary);
    transform: translateY(-1px);
}

.mup-btn-liked {
    background: #dc2626;
    color: white;
    border: 1px solid #dc2626;
}

.mup-btn-liked:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Clickable Social Stats */
.mup-stat-item.mup-clickable {
    cursor: pointer;
    transition: var(--mup-transition);
    border-radius: var(--mup-radius-md);
    padding: 0.5rem;
}

.mup-stat-item.mup-clickable:hover {
    background: var(--mup-bg-secondary);
    transform: translateY(-1px);
}

/* Social Modal */
.mup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.mup-modal-content {
    background-color: var(--mup-bg-primary);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--mup-radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--mup-shadow-xl);
    animation: mup-modal-slide-in 0.3s ease-out;
}

@keyframes mup-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mup-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--mup-border);
    background: var(--mup-bg-secondary);
}

.mup-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mup-text-primary);
}

.mup-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--mup-text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--mup-radius-sm);
    transition: var(--mup-transition);
}

.mup-modal-close:hover {
    background: var(--mup-bg-primary);
    color: var(--mup-text-primary);
}

.mup-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Social List */
.mup-social-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mup-social-user-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--mup-bg-secondary);
    border-radius: var(--mup-radius-md);
    border: 1px solid var(--mup-border);
    transition: var(--mup-transition);
}

.mup-social-user-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--mup-shadow-md);
}

.mup-social-user-avatar {
    flex-shrink: 0;
}

.mup-social-user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.mup-social-user-info {
    flex: 1;
    min-width: 0;
}

.mup-social-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mup-text-primary);
    margin: 0 0 0.25rem 0;
}

.mup-social-user-name a {
    color: inherit;
    text-decoration: none;
}

.mup-social-user-name a:hover {
    color: var(--mup-primary);
}

.mup-social-user-role {
    font-size: 0.75rem;
    color: var(--mup-text-secondary);
    margin: 0;
}

.mup-social-user-action {
    flex-shrink: 0;
}

/* Empty State */
.mup-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--mup-text-secondary);
}

.mup-empty-state .dashicons {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.mup-empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Loading State */
.mup-loading {
    text-align: center;
    padding: 2rem;
    color: var(--mup-text-secondary);
}

.mup-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--mup-border);
    border-radius: 50%;
    border-top-color: var(--mup-primary);
    animation: mup-spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes mup-spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.mup-error {
    text-align: center;
    padding: 2rem;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--mup-radius-md);
}

/* Suggested Connections */
.mup-suggested-connections {
    background: var(--mup-bg-secondary);
    border-radius: var(--mup-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--mup-border);
}

.mup-connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.mup-connection-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--mup-bg-primary);
    border-radius: var(--mup-radius-md);
    border: 1px solid var(--mup-border);
    transition: var(--mup-transition);
}

.mup-connection-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--mup-shadow-md);
}

.mup-connection-avatar {
    flex-shrink: 0;
}

.mup-connection-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.mup-connection-info {
    flex: 1;
    min-width: 0;
}

.mup-connection-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mup-text-primary);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mup-connection-role {
    font-size: 0.75rem;
    color: var(--mup-text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mup-btn-small {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    min-width: auto;
}

/* Activity Feed */
.mup-activity-feed {
    background: var(--mup-bg-secondary);
    border-radius: var(--mup-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--mup-border);
}

.mup-activities-list {
    margin-top: 1rem;
}

.mup-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--mup-bg-primary);
    border-radius: var(--mup-radius-md);
    margin-bottom: 0.75rem;
    border: 1px solid var(--mup-border);
    transition: var(--mup-transition);
}

.mup-activity-item:hover {
    transform: translateX(4px);
    box-shadow: var(--mup-shadow-sm);
}

.mup-activity-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.mup-activity-content {
    flex: 1;
}

.mup-activity-text {
    font-size: 0.875rem;
    color: var(--mup-text-primary);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.mup-activity-time {
    font-size: 0.75rem;
    color: var(--mup-text-secondary);
}

/* User Directory */
.mup-user-directory {
    max-width: 1280px;
    margin: 0 auto;
}

.mup-directory-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--mup-primary) 0%, var(--mup-primary-hover) 100%);
    border-radius: var(--mup-radius-xl);
    color: white;
}

.mup-directory-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.mup-directory-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0;
}

.mup-directory-filters {
    background: var(--mup-bg-secondary);
    border-radius: var(--mup-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--mup-border);
}

.mup-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mup-search-box {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
}

.mup-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--mup-border);
    border-radius: var(--mup-radius-md);
    font-size: 0.875rem;
    transition: var(--mup-transition);
}

.mup-search-input:focus {
    outline: none;
    border-color: var(--mup-border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mup-search-btn {
    padding: 0.75rem 1rem;
    background: var(--mup-primary);
    color: white;
    border: none;
    border-radius: var(--mup-radius-md);
    cursor: pointer;
    transition: var(--mup-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mup-search-btn:hover {
    background: var(--mup-primary-hover);
    transform: translateY(-1px);
}

.mup-filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.mup-filter-select {
    padding: 0.625rem 1rem;
    border: 2px solid var(--mup-border);
    border-radius: var(--mup-radius-md);
    background: var(--mup-bg-primary);
    font-size: 0.875rem;
    min-width: 150px;
    transition: var(--mup-transition);
}

.mup-filter-select:focus {
    outline: none;
    border-color: var(--mup-border-focus);
}

.mup-filter-btn {
    padding: 0.625rem 1rem;
    background: var(--mup-secondary);
    color: white;
    border: none;
    border-radius: var(--mup-radius-md);
    cursor: pointer;
    transition: var(--mup-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.mup-filter-btn:hover {
    background: #475569;
    transform: translateY(-1px);
}

.mup-user-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mup-user-card {
    background: var(--mup-bg-primary);
    border-radius: var(--mup-radius-lg);
    border: 1px solid var(--mup-border);
    overflow: hidden;
    transition: var(--mup-transition);
    box-shadow: var(--mup-shadow-sm);
}

.mup-user-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mup-shadow-lg);
}

.mup-card-header {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--mup-bg-secondary) 0%, var(--mup-bg-tertiary) 100%);
    border-bottom: 1px solid var(--mup-border);
}

.mup-card-avatar {
    text-align: center;
    margin-bottom: 1rem;
}

.mup-card-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--mup-shadow-md);
}

.mup-card-completion {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.mup-completion-ring {
    position: relative;
    display: inline-block;
}

.mup-completion-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mup-text-primary);
}

.mup-card-content {
    padding: 1.5rem;
}

.mup-card-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.mup-card-name a {
    color: var(--mup-text-primary);
    text-decoration: none;
    transition: var(--mup-transition);
}

.mup-card-name a:hover {
    color: var(--mup-primary);
}

.mup-card-role {
    font-size: 0.875rem;
    color: var(--mup-text-secondary);
    text-align: center;
    margin: 0 0 1rem 0;
    text-transform: capitalize;
}

.mup-card-bio {
    font-size: 0.875rem;
    color: var(--mup-text-primary);
    line-height: 1.5;
    margin: 0 0 1rem 0;
    text-align: center;
}

.mup-card-stats {
    text-align: center;
    margin-bottom: 1rem;
}

.mup-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--mup-text-secondary);
    background: var(--mup-bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--mup-radius-sm);
}

.mup-card-actions {
    padding: 1rem 1.5rem;
    background: var(--mup-bg-secondary);
    border-top: 1px solid var(--mup-border);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.mup-no-results {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--mup-bg-secondary);
    border-radius: var(--mup-radius-lg);
    border: 1px solid var(--mup-border);
}

.mup-no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mup-no-results h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--mup-text-primary);
}

.mup-no-results p {
    color: var(--mup-text-secondary);
    margin: 0 0 1.5rem 0;
}

.mup-directory-pagination {
    text-align: center;
    margin-top: 2rem;
}

.mup-pagination {
    display: inline-flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mup-pagination li {
    margin: 0;
}

.mup-pagination a,
.mup-pagination span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--mup-border);
    border-radius: var(--mup-radius-sm);
    text-decoration: none;
    color: var(--mup-text-primary);
    background: var(--mup-bg-primary);
    transition: var(--mup-transition);
    min-width: 2.5rem;
    text-align: center;
}

.mup-pagination a:hover {
    background: var(--mup-primary);
    color: white;
    border-color: var(--mup-primary);
}

.mup-pagination .current {
    background: var(--mup-primary);
    color: white;
    border-color: var(--mup-primary);
}

/* Loading States */
.mup-loading {
    position: relative;
    pointer-events: none;
}

.mup-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--mup-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.mup-message {
    padding: 1rem 1.5rem;
    border-radius: var(--mup-radius-md);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.mup-message-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--mup-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.mup-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--mup-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Avatar Upload Styles */
.mup-avatar-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mup-avatar-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.mup-avatar-wrapper:hover .mup-upload-overlay {
    opacity: 1;
}

.mup-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mup-upload-overlay:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.85);
}

.mup-upload-content {
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mup-upload-content .dashicons {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
}

.mup-upload-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.mup-avatar-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Avatar Action Buttons */
.mup-avatar-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.mup-upload-button,
.mup-remove-avatar-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--mup-primary, #2563eb);
    border-radius: 0.5rem;
    background: var(--mup-primary, #2563eb);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mup-upload-button:hover {
    background: var(--mup-primary-hover, #1d4ed8);
    border-color: var(--mup-primary-hover, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mup-remove-avatar-button {
    background: var(--mup-error, #ef4444);
    border-color: var(--mup-error, #ef4444);
}

.mup-remove-avatar-button:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.25);
}

.mup-upload-button .dashicons,
.mup-remove-avatar-button .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

/* Upload Info */
.mup-upload-info {
    text-align: center;
    margin-top: 0.5rem;
}

.mup-upload-hint {
    color: white;
    font-size: 0.75rem;
    line-height: 1.4;
}

.mup-avatar.mup-loading {
    opacity: 0.6;
    position: relative;
}

.mup-avatar.mup-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--mup-primary, #2563eb);
    border-radius: 50%;
    animation: mup-spin 1s linear infinite;
}

@keyframes mup-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Avatar remove button */
.mup-avatar-section {
    position: relative;
    display: inline-block;
}

.mup-remove-avatar-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--mup-error, #ef4444);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    font-size: 16px;
    text-decoration: none;
}

.mup-avatar-section:hover .mup-remove-avatar-btn {
    opacity: 1;
}

.mup-remove-avatar-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.mup-remove-avatar-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Mobile App Enhancements */
.mup-mobile-content {
    display: none; /* Hidden by default, shown only on mobile */
}

/* Show mobile content wrapper only on mobile devices */
@media (max-width: 767px) {
    .mup-mobile-content {
        display: flex !important;
    }
    
    /* Hide desktop layout elements on mobile */
    .mup-profile-header > .mup-avatar-section:not(.mup-mobile-content .mup-avatar-section),
    .mup-profile-header > .mup-user-info:not(.mup-mobile-content .mup-user-info),
    .mup-profile-header > .mup-profile-actions:not(.mup-mobile-content .mup-profile-actions) {
        display: none;
    }
}

/* Enhanced Responsive Design */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .mup-profile-container {
        max-width: 1400px;
    }
    
    .mup-form-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* Custom tab content should remain single column for better readability */
    .mup-tab-content.mup-no-padding .mup-form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mup-user-directory .mup-user-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Desktop (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .mup-profile-container {
        max-width: 1200px;
        margin: 1rem auto;
    }
    
    .mup-form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Custom tab content should remain single column for better readability */
    .mup-tab-content.mup-no-padding .mup-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mup-user-directory .mup-user-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .mup-profile-container {
        margin: 1rem;
        border-radius: 16px;
    }
    
    .mup-profile-header {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .mup-avatar {
        width: 100px;
        height: 100px;
    }
    
    .mup-user-info h2 {
        font-size: 1.75rem;
    }
    
    .mup-form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .mup-user-directory .mup-user-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .mup-tabs-nav {
        overflow-x: auto;
        scrollbar-width: thin;
    }
    
    .mup-tab-btn {
        min-width: 120px;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* New Mobile Header - Tablet Portrait (480px - 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .mup-profile-container {
        margin: 0.5rem;
        border-radius: 0;
        box-shadow: none;
        background: #f8fafc;
    }
    
    .mup-profile-header {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        padding: 0;
        min-height: 300px;
        position: relative;
        display: block;
        overflow: hidden;
    }
    
    /* Mobile Header Top Section */
    .mup-profile-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        z-index: 1;
    }
    
    /* Mobile Header Content */
    .mup-profile-header .mup-mobile-content {
        position: relative;
        z-index: 2;
        padding: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    /* Mobile Avatar Section */
    .mup-profile-header .mup-avatar-section {
        order: 1;
        position: relative;
        margin-top: 60px;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }
    
    .mup-avatar {
        width: 110px;
        height: 110px;
        border: 4px solid #ffffff;
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.3),
            0 0 0 6px rgba(255, 255, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 3;
    }
    
    .mup-avatar:hover {
        transform: scale(1.05);
        box-shadow: 
            0 15px 50px rgba(0, 0, 0, 0.4),
            0 0 0 8px rgba(255, 255, 255, 0.2);
    }
    
    /* Mobile User Info */
    .mup-profile-header .mup-user-info {
        order: 2;
        margin-bottom: 24px;
        text-align: center;
        padding: 0 24px;
        position: relative;
        z-index: 2;
    }
    
    .mup-user-info h2 {
        font-size: 1.75rem;
        font-weight: 700;
        margin-bottom: 8px;
        color: #ffffff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        letter-spacing: -0.01em;
    }
    
    .mup-user-info .mup-user-email {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 4px;
        font-weight: 500;
    }
    
    .mup-user-info .mup-user-registered {
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 400;
    }
    
    /* Mobile Action Button */
    .mup-profile-header .mup-profile-actions {
        order: 3;
        margin: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 24px 24px;
        position: relative;
        z-index: 2;
    }
    
    .mup-profile-actions .mup-btn-logout {
        background: #dc2626;
        color: white;
        border: none;
        padding: 14px 32px;
        font-size: 0.875rem;
        font-weight: 600;
        border-radius: 16px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
        min-width: 140px;
        position: relative;
        overflow: hidden;
    }
    
    .mup-profile-actions .mup-btn-logout:hover {
        background: #b91c1c;
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5);
    }
    
    /* Mobile Touch Interactions */
    .mup-profile-actions .mup-btn-logout:active {
        transform: translateY(0) scale(0.98);
        transition: all 0.1s ease;
    }
    
    /* Mobile Ripple Effect */
    .mup-profile-actions .mup-btn-logout::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .mup-profile-actions .mup-btn-logout:active::before {
        width: 300px;
        height: 300px;
    }
    
    .mup-completion-section {
        padding: 1.25rem;
    }
}

/* Tablet Portrait (480px - 767px) - Additional Styles */
@media (max-width: 767px) and (min-width: 480px) {
    .mup-tab-content {
        padding: 1.25rem;
    }
    
    .mup-tab-content.mup-no-padding {
        padding: 1.25rem;
        background: #f8f9fa;
    }
    
    .mup-tab-content.mup-no-padding > * {
        padding: 1.25rem;
    }
    
    .mup-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mup-user-directory .mup-user-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .mup-tabs-nav {
        overflow-x: auto;
        padding: 0 0.5rem;
    }
    
    .mup-tab-btn {
        min-width: 100px;
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
    
    .mup-form-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }
    
    .mup-form-actions .mup-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
    }
    
    .mup-edit-mode {
        min-height: auto;
    }
}
    
    /* Mobile Gamification Styles */
    .mup-profile-completion-enhanced {
        padding: 1rem;
    }
    
    .mup-badges-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.5rem;
    }
    
    .mup-badge {
        padding: 0.5rem 0.25rem;
    }
    
    .mup-badge-icon {
        font-size: 1.25rem;
    }
    
    .mup-badge-name {
        font-size: 0.6875rem;
    }
    
    .mup-achievement {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .mup-achievement-icon {
        font-size: 1rem;
    }
    
    .mup-achievement-title {
        font-size: 0.8125rem;
    }
    
    .mup-achievement-description {
        font-size: 0.6875rem;
    }
    
    .mup-suggestion {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .mup-suggestion-icon {
        font-size: 0.875rem;
    }
    
    .mup-suggestion-text {
        font-size: 0.6875rem;
    }
    
    /* Mobile Social Features */
    .mup-social-features {
        padding: 1rem;
    }
    
    .mup-social-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .mup-social-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mup-btn-social {
        width: 100%;
        justify-content: center;
    }
    
    .mup-connections-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mup-connection-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .mup-connection-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .mup-activity-item {
        padding: 0.625rem;
        gap: 0.5rem;
    }
    
    /* Mobile User Directory */
    .mup-directory-header {
        padding: 1.5rem;
    }
    
    .mup-directory-title {
        font-size: 1.5rem;
    }
    
    .mup-directory-subtitle {
        font-size: 1rem;
    }
    
    .mup-directory-filters {
        padding: 1rem;
    }
    
    .mup-filter-form {
        gap: 0.75rem;
    }
    
    .mup-search-box {
        max-width: none;
    }
    
    .mup-filter-options {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .mup-filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .mup-user-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mup-card-header {
        padding: 1rem;
    }
    
    .mup-card-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .mup-card-content {
        padding: 1rem;
    }
    
    .mup-card-actions {
        padding: 0.75rem 1rem;
        flex-direction: column;
    }
    
    .mup-profile-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
    }
    
    .mup-profile-actions .mup-btn {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
    
    .mup-btn {
        width: 100%;
    }
    
    .mup-avatar-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mup-upload-button,
    .mup-remove-avatar-button {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    .mup-upload-content .dashicons {
        font-size: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .mup-upload-text {
        font-size: 0.75rem;
    }
}

/* New Mobile Header - Mobile (320px - 479px) */
@media (max-width: 479px) {
    .mup-profile-container {
        margin: 0.25rem;
        border-radius: 0;
        box-shadow: none;
        background: #f1f5f9;
    }
    
    .mup-profile-header {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        padding: 0;
        min-height: 260px;
        position: relative;
        display: block;
        overflow: hidden;
    }
    
    /* Mobile Header Top Section */
    .mup-profile-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
        z-index: 1;
    }
    
    /* Mobile Header Content */
    .mup-profile-header .mup-mobile-content {
        position: relative;
        z-index: 2;
        padding: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    /* Mobile Avatar Section */
    .mup-profile-header .mup-avatar-section {
        order: 1;
        position: relative;
        margin-top: 50px;
        margin-bottom: 16px;
        display: flex;
        justify-content: center;
    }
    
    .mup-avatar {
        width: 90px;
        height: 90px;
        border: 3px solid #ffffff;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.25),
            0 0 0 4px rgba(255, 255, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 3;
    }
    
    .mup-avatar:hover {
        transform: scale(1.08);
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.35),
            0 0 0 6px rgba(255, 255, 255, 0.2);
    }
    
    /* Mobile User Info */
    .mup-profile-header .mup-user-info {
        order: 2;
        margin-bottom: 20px;
        text-align: center;
        padding: 0 20px;
        position: relative;
        z-index: 2;
    }
    
    .mup-user-info h2 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 6px;
        color: #ffffff;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        letter-spacing: -0.005em;
    }
    
    .mup-user-info .mup-user-email {
        font-size: 0.9375rem;
        color: rgba(255, 255, 255, 0.95);
        margin-bottom: 3px;
        font-weight: 500;
    }
    
    .mup-user-info .mup-user-registered {
        font-size: 0.8125rem;
        color: rgba(255, 255, 255, 0.85);
        font-weight: 400;
    }
    
    /* Mobile Action Button */
    .mup-profile-header .mup-profile-actions {
        order: 3;
        margin: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 20px 20px;
        position: relative;
        z-index: 2;
    }
    
    .mup-profile-actions .mup-btn-logout {
        background: #f59e0b;
        color: white;
        border: none;
        padding: 12px 28px;
        font-size: 0.8125rem;
        font-weight: 600;
        border-radius: 14px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
        min-width: 120px;
        position: relative;
        overflow: hidden;
    }
    
    .mup-profile-actions .mup-btn-logout:hover {
        background: #d97706;
        transform: translateY(-1px);
        box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
    }
    
    /* Mobile Touch Interactions */
    .mup-profile-actions .mup-btn-logout:active {
        transform: translateY(0) scale(0.98);
        transition: all 0.1s ease;
    }
    
    /* Mobile Ripple Effect */
    .mup-profile-actions .mup-btn-logout::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .mup-profile-actions .mup-btn-logout:active::before {
        width: 300px;
        height: 300px;
    }
    
    .mup-completion-section {
        padding: 1rem;
    }
    
    .mup-tab-content {
        padding: 1rem;
    }
    
    .mup-tab-content.mup-no-padding {
        padding: 1rem;
        background: #f8f9fa;
    }
    
    .mup-tab-content.mup-no-padding > * {
        padding: 1rem;
    }
    
    .mup-form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mup-user-directory .mup-user-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mup-tabs-nav {
        overflow-x: auto;
        padding: 0 0.25rem;
    }
    
    .mup-tab-btn {
        min-width: 80px;
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    
    /* Mobile form adjustments */
    .mup-tab-content.mup-no-padding button,
    .mup-tab-content.mup-no-padding input[type="submit"],
    .mup-tab-content.mup-no-padding .button {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .mup-field-input {
        padding: 0.625rem 0.875rem;
        font-size: 1rem;
    }
    
    .mup-field-label {
        font-size: 0.875rem;
    }
    
    .mup-form-actions {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        flex-direction: column;
    }
    
    .mup-form-actions .mup-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        justify-content: center;
    }
    
    .mup-profile-actions {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        flex-direction: column;
    }
    
    .mup-profile-actions .mup-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        justify-content: center;
    }
    
    .mup-avatar-upload-container {
        gap: 0.5rem;
    }
    
    .mup-upload-content .dashicons {
        font-size: 1rem;
        width: 1rem;
        height: 1rem;
    }
    
    .mup-upload-text {
        font-size: 0.6875rem;
    }
    
    .mup-upload-hint {
        font-size: 0.625rem;
    }
}

/* New Mobile Header - Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
    .mup-profile-container {
        margin: 0.125rem;
        border-radius: 0;
        box-shadow: none;
        background: #f8fafc;
    }
    
    .mup-profile-header {
        background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
        padding: 0;
        min-height: 220px;
        position: relative;
        display: block;
        overflow: hidden;
    }
    
    /* Mobile Header Top Section */
    .mup-profile-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
        z-index: 1;
    }
    
    /* Mobile Header Content */
    .mup-profile-header .mup-mobile-content {
        position: relative;
        z-index: 2;
        padding: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    /* Mobile Avatar Section */
    .mup-profile-header .mup-avatar-section {
        order: 1;
        position: relative;
        margin-top: 40px;
        margin-bottom: 12px;
        display: flex;
        justify-content: center;
    }
    
    .mup-avatar {
        width: 75px;
        height: 75px;
        border: 2px solid #ffffff;
        box-shadow: 
            0 6px 24px rgba(0, 0, 0, 0.2),
            0 0 0 3px rgba(255, 255, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 3;
    }
    
    .mup-avatar:hover {
        transform: scale(1.1);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 0 5px rgba(255, 255, 255, 0.2);
    }
    
    /* Mobile User Info */
    .mup-profile-header .mup-user-info {
        order: 2;
        margin-bottom: 16px;
        text-align: center;
        padding: 0 16px;
        position: relative;
        z-index: 2;
    }
    
    .mup-user-info h2 {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 4px;
        color: #ffffff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
        letter-spacing: -0.002em;
    }
    
    .mup-user-info .mup-user-email {
        font-size: 0.8125rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 2px;
        font-weight: 500;
    }
    
    .mup-user-info .mup-user-registered {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 400;
    }
    
    /* Mobile Action Button */
    .mup-profile-header .mup-profile-actions {
        order: 3;
        margin: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 16px 16px;
        position: relative;
        z-index: 2;
    }
    
    .mup-profile-actions .mup-btn-logout {
        background: #6366f1;
        color: white;
        border: none;
        padding: 10px 20px;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 3px 12px rgba(99, 102, 241, 0.4);
        min-width: 100px;
        position: relative;
        overflow: hidden;
    }
    
    .mup-profile-actions .mup-btn-logout:hover {
        background: #4f46e5;
        transform: translateY(-1px);
        box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
    }
    
    /* Mobile Touch Interactions */
    .mup-profile-actions .mup-btn-logout:active {
        transform: translateY(0) scale(0.98);
        transition: all 0.1s ease;
    }
    
    /* Mobile Ripple Effect */
    .mup-profile-actions .mup-btn-logout::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .mup-profile-actions .mup-btn-logout:active::before {
        width: 300px;
        height: 300px;
    }
    
    .mup-completion-section {
        padding: 0.75rem;
    }
    
    .mup-tab-content {
        padding: 0.75rem;
    }
    
    .mup-tab-content.mup-no-padding {
        padding: 0.75rem;
    }
    
    .mup-tab-content.mup-no-padding > * {
        padding: 0.75rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --mup-border: #000000;
        --mup-border-focus: #0000ff;
        --mup-text-primary: #000000;
        --mup-text-secondary: #666666;
    }
}

/* Print styles */
@media print {
    .mup-profile-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .mup-form-actions,
    .mup-upload-overlay,
    .mup-upload-btn {
        display: none !important;
    }
    
    .mup-tabs-nav {
        display: none;
    }
    
    .mup-tab-content {
        display: block !important;
        page-break-inside: avoid;
    }
}