:root {
    --primary-color: #00d4ff;
    --secondary-color: rgba(255, 255, 255, 0.8);
    --tertiary-color: rgba(255, 255, 255, 0.6);
    --text-color: white;
    --glass-bg: rgba(255, 255, 255, 0.1);
}

/* Danger Zone Styles */
.danger-zone {
    margin-top: 2rem;
}

    .danger-zone h3 {
        color: #dc3545;
    }

.delete-account-info p {
    margin-bottom: 1rem;
    color: #721c24;
}

.delete-warning {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

    .delete-warning h4 {
        color: #dc3545;
        margin: 0 0 1rem 0;
    }

    .delete-warning ul {
        margin: 1rem 0 0 1.5rem;
        color: #721c24;
    }

.delete-input {
    font-family: monospace;
    border-color: #dc3545;
}

.delete-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.auth-btn.danger {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
}

    .auth-btn.danger:hover:not(:disabled) {
        background: #c82333;
        border-color: #c82333;
    }

    .auth-btn.danger:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

@media (max-width: 768px) {
    .delete-actions {
        flex-direction: column;
    }
}

.avatar-credit {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--tertiary-color);
    opacity: 0.8;
    line-height: 1.3;
}

    .avatar-credit a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .avatar-credit a:hover {
            text-decoration: underline;
        }

/* Avatar customization styles */
.avatar-customization {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.avatar-preview {
    flex-shrink: 0;
}

.avatar-preview-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

    .avatar-preview-image:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    }

.avatar-controls {
    flex: 1;
}

.avatar-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.auth-btn.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* Form help text styling */
.form-help {
    display: block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.4;
}

    .form-help code {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.2rem 0.4rem;
        border-radius: 0.25rem;
        font-family: 'Courier New', monospace;
        font-size: 0.8rem;
    }

/* Responsive design for mobile */
@media (max-width: 768px) {
    .avatar-customization {
        flex-direction: column;
        text-align: center;
    }

    .avatar-actions {
        justify-content: center;
    }
}

/* Profile header enhancements */
.auth-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.profile-header-info {
    flex: 1;
}

.profile-name-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.user-display-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Reputation stats section */
.reputation-stats-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

    .stat-card:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-1px);
    }

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 2rem;
    text-align: center;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-sublabel {
    font-size: 0.75rem;
    color: var(--tertiary-color);
    opacity: 0.8;
    line-height: 1;
}

/* Profile info enhancements */
.profile-info .info-item.warning {
    color: #ffc107;
}

    .profile-info .info-item.warning i {
        color: #ffc107;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-name-badge {
        justify-content: center;
    }

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

    .stat-card {
        padding: 0.75rem;
    }

    .stat-icon {
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .profile-name-badge {
        flex-direction: column;
        gap: 0.5rem;
    }

    .reputation-stats-section {
        padding: 1rem;
    }
}

/* Profile-specific styles extending auth.css */
.profile-card {
    max-width: 600px;
}

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

    .profile-avatar i {
        font-size: 4rem;
        color: rgba(255, 255, 255, 0.8);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .profile-avatar .avatar-image {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
        transition: all 0.3s ease;
    }

        .profile-avatar .avatar-image:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
        }

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
}

    .form-section h3 i {
        color: #00d4ff;
        font-size: 1rem;
    }

.profile-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

    .info-item:last-child {
        margin-bottom: 0;
    }

    .info-item i {
        color: #00d4ff;
        width: 16px;
        text-align: center;
    }

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

    .profile-actions .auth-btn {
        flex: 1;
    }

.auth-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

    .auth-btn.secondary:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    }

/* Enhanced form sections */
.form-section {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    margin-top: 2rem;
}

    .form-section:first-child {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }

/* Password strength indicator for new password */
.password-strength {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .password-strength.weak {
        border-color: rgba(220, 53, 69, 0.5);
    }

    .password-strength.medium {
        border-color: rgba(255, 193, 7, 0.5);
    }

    .password-strength.strong {
        border-color: rgba(40, 167, 69, 0.5);
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-card {
        margin: 0 10px;
        padding: 1.5rem;
    }

    .profile-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-section h3 {
        font-size: 1rem;
    }

    .profile-avatar i {
        font-size: 3rem;
    }
}

/* Loading state enhancements */
.profile-actions .auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success state for completed profile */
.profile-complete-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(45deg, #40e070, #28a745);
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* Incomplete profile warning */
.profile-incomplete-warning {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

    .profile-incomplete-warning i {
        font-size: 1rem;
    }

/* Add this section to profile.css */

/* ==============================================
   BUILDS & COMPONENTS SECTION
   ============================================== */

.builds-components-section {
    margin: 2rem 0;
}

.section-header h3 {
    color: var(--text-primary, #ffffff);
    margin-bottom: 0.5rem;
}

.section-header p {
    margin-bottom: 1.5rem;
}

/* Builds Overview Stats */
.builds-overview {
    margin-bottom: 1.5rem;
}

.builds-stats {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
}

    .builds-stats .stat-item {
        text-align: center;
        flex: 1;
        min-width: 80px;
        max-width: 150px;
    }

    .builds-stats .stat-value {
        display: block;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary, #ffffff);
    }

    .builds-stats .stat-label {
        display: block;
        font-size: 0.9rem;
        /*        color: var(--text-muted, #6c757d);*/
        margin-top: 0.25rem;
    }

/* Build Section */
.build-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.build-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.build-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.build-color-indicator {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}

.build-name {
    margin: 0;
    color: var(--text-primary, #ffffff);
    font-size: 1.25rem;
}

.build-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.25rem;
}

    .build-meta span {
        color: var(--secondary-color);
        font-size: 0.9rem;
    }

/* Build Components Grid */
.build-components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.component-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

    .component-card:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--primary-color, #007bff);
    }

.component-type-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
}

.component-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.component-image-container {
    flex-shrink: 0;
}

.component-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.component-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

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

.component-name {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.component-price {
    font-size: 0.85rem;
    color: var(--secondary-color, #6c757d);
}

/* Component Actions */
.component-actions {
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    padding-top: 0.75rem;
    text-align: center;
}

.action-hint {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.verification-prompt,
.verification-pending,
.verification-ready,
.verified-component {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Empty States */
.no-builds-message {
    padding: 3rem 2rem;
    text-align: center;
}

.empty-build-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-muted, #6c757d);
}

.builds-loading {
    padding: 2rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .build-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .build-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .builds-stats {
        gap: 0.5rem;
    }

        .builds-stats .stat-item {
            min-width: 70px;
        }

        .builds-stats .stat-value {
            font-size: 1.4rem;
        }

        .builds-stats .stat-label {
            font-size: 0.8rem;
        }

    .build-components-grid {
        grid-template-columns: 1fr;
    }

    .component-details {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .builds-stats {
        gap: 0.25rem;
    }

        .builds-stats .stat-item {
            min-width: 60px;
        }

        .builds-stats .stat-value {
            font-size: 1.2rem;
        }

        .builds-stats .stat-label {
            font-size: 0.75rem;
        }

    .component-card {
        padding: 0.75rem;
    }
}

.build-selector {
    margin-bottom: 1.5rem;
}

.selector-header h4 {
    margin-left: 0.75rem;
    margin-bottom: 0.75rem;
    color: white;
}

.build-dropdown-container {
    position: relative;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}

.build-selector-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    width: 100%;
}

    .build-selector-dropdown:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(0, 191, 255, 0.5);
        box-shadow: 0 0 0 0.25rem rgba(0, 191, 255, 0.25);
    }

    .build-selector-dropdown option {
        background: #2a2a2a;
        color: white;
    }

.component-manufacturer {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.loading-shimmer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.shimmer-image, .shimmer-text, .shimmer-price {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.shimmer-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.shimmer-text {
    width: 120px;
    height: 16px;
}

.shimmer-price {
    width: 80px;
    height: 14px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.components-loading {
    padding: 2rem 0;
}

.build-total-price {
    color: #00BFFF;
    font-weight: 600;
}

/* Profile Tabs */
.profile-tabs {
    padding: 0;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 8px;
    margin: 4px;
    font-size: 0.95rem;
}

    .tab-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .tab-btn.active {
        background: linear-gradient(135deg, #00BFFF, #1E90FF);
        color: white;
        box-shadow: 0 4px 12px rgba(0, 191, 255, 0.3);
    }

.tab-content {
    min-height: 400px;
}

.profile-details {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

    .profile-details h3 {
        color: white;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

/* Responsive tabs */
@media (max-width: 768px) {
    .tab-nav {
        flex-direction: column;
        gap: 0.25rem;
    }

    .tab-btn {
        margin: 2px;
        text-align: left;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

        .tab-btn i {
            display: none; /* Hide icons on very small screens */
        }
}

/* Enhanced builds stats for single row */
.builds-stats {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
}

    .builds-stats .stat-item {
        text-align: center;
        flex: 1;
        min-width: 80px;
        max-width: 150px;
    }

@media (max-width: 768px) {
    .builds-stats {
        gap: 0.5rem;
    }

        .builds-stats .stat-item {
            min-width: 70px;
        }

        .builds-stats .stat-value {
            font-size: 1.4rem;
        }

        .builds-stats .stat-label {
            font-size: 0.8rem;
        }
}

@media (max-width: 480px) {
    .builds-stats {
        gap: 0.25rem;
    }

        .builds-stats .stat-item {
            min-width: 60px;
        }

        .builds-stats .stat-value {
            font-size: 1.2rem;
        }

        .builds-stats .stat-label {
            font-size: 0.75rem;
        }
}

/* Enhanced Dropdown Styling */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.build-selector-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 0.75rem 2.5rem 0.75rem 1rem; /* Extra padding-right for arrow */
    font-size: 0.95rem;
    width: 100%;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

    .build-selector-dropdown:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(0, 191, 255, 0.5);
        box-shadow: 0 0 0 0.25rem rgba(0, 191, 255, 0.25);
        outline: none;
    }

    .build-selector-dropdown option {
        background: #2a2a2a;
        color: white;
    }

.dropdown-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Allow clicks to pass through to select */
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

/* Simple hover effect - just color change */
.dropdown-wrapper:hover .dropdown-arrow,
.build-selector-dropdown:focus + .dropdown-arrow {
    color: rgba(0, 191, 255, 0.8);
}

/* Ensure arrow stays in place on mobile */
@media (max-width: 768px) {
    .dropdown-arrow {
        right: 0.8rem;
        font-size: 0.75rem;
    }

    .build-selector-dropdown {
        padding: 0.75rem 2.2rem 0.75rem 0.8rem;
    }
}

/* Add to your profile.css or create new styles */
.reviews-section {
    /* Similar styling to builds-components-section */
}

.reviews-overview {
    padding: 1.5rem;
}

.reviews-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-around;
}

.review-card {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

    .review-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 191, 255, 0.15);
    }

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-product-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.review-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.review-rating {
    display: flex;
    align-items: center;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.review-status {
    font-size: 0.85rem;
    font-weight: 500;
}

.review-content {
    margin-bottom: 1rem;
}

.review-title {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.review-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.review-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

    .review-stats .stat-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--text-muted);
    }

.review-actions {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        gap: 1rem;
    }

    .review-actions {
        align-self: flex-start;
    }

    .reviews-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Activity Section Styles - Compact Version */
.activity-section {
    margin: 2rem 0;
}

.activity-loading {
    padding: 2rem;
}

.no-activity-message {
    padding: 3rem 2rem;
    text-align: center;
}

/* Activity Timeline - More compact */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Reduced from 1rem */
}

.activity-card {
    padding: 1rem; /* Reduced from 1.5rem */
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
}

    .activity-card:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 191, 255, 0.15);
    }

    .activity-card.activity-hidden {
        opacity: 0.7;
        background: rgba(255, 193, 7, 0.1);
        border-left: 4px solid #ffc107;
    }

    .activity-card.activity-deleted {
        opacity: 0.6;
        background: rgba(220, 53, 69, 0.1);
        border-left: 4px solid #dc3545;
        position: relative;
    }

/* Compact Activity Header */
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.activity-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.activity-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.activity-type-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 191, 255, 0.1);
    color: #00BFFF;
    padding: 0.2rem 0.5rem; /* More compact */
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.activity-title {
    color: white;
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.activity-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.activity-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Compact Activity Content */
.activity-content {
    margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.activity-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4; /* More compact line height */
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.activity-component {
    margin-top: 0.25rem;
}

    .activity-component small {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        color: var(--tertiary-color);
        font-size: 0.75rem;
    }

/* Engagement Footer - New compact design */
.activity-engagement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.engagement-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

    .engagement-item i {
        font-size: 0.75rem;
    }

.discussion-link {
    color: #00BFFF;
    margin-left: auto; /* Push to right */
}

.restore-link {
    color: #28a745;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .restore-link:hover {
        color: #1e7e34;
    }

    .restore-link i {
        margin-right: 4px;
    }

.edit-link {
    color: #ffc107;
}

    .discussion-link:hover,
    .edit-link:hover {
        color: white;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .activity-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .activity-left {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .activity-right {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .activity-title {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }

    .activity-engagement {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .discussion-link {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .activity-card {
        padding: 0.75rem;
    }

    .activity-engagement {
        gap: 0.5rem;
    }

    .engagement-item span {
        font-size: 0.75rem;
    }
}

/* Public Profile Specific Styles */

/* Public Builds */
.public-builds-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.public-build-card {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

    .public-build-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 191, 255, 0.2);
    }

.components-grid-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.component-summary-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.component-icon {
    color: #00BFFF;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.component-summary-info {
    flex: 1;
    min-width: 0;
}

.component-type {
    font-size: 0.75rem;
    color: #00BFFF;
    text-transform: uppercase;
    font-weight: 600;
}

.component-name-short {
    font-size: 0.85rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.component-price-small {
    font-size: 0.8rem;
    color: whitesmoke;
}

.build-actions-public {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Build Modal */
.build-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.build-modal {
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    width: 800px;
    position: relative;
}

.build-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.btn-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    margin-left: auto;
    cursor: pointer;
    padding: 0.5rem;
}

    .btn-close:hover {
        color: white;
    }

.build-modal-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaa;
    font-size: 0.9rem;
}

.component-detailed-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.component-type-badge-detailed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 191, 255, 0.1);
    color: #00BFFF;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    min-width: 120px;
    justify-content: center;
}

.component-details-detailed {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
}

.component-image-small {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

    .component-image-small img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
    }

/* Public Reviews */
.review-filters {
    display: flex;
    gap: 2rem;
    align-items: end;
    padding: 1rem;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
}

.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    min-width: 150px;
}

.component-type-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #00d4ff;
}

.component-type-name {
    background: rgba(0, 191, 255, 0.1);
    color: #00BFFF;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.review-engagement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
}

.engagement-stats {
    display: flex;
    gap: 1rem;
}

.engagement-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .components-grid-summary {
        grid-template-columns: 1fr 1fr;
    }

    .build-actions-public {
        flex-direction: column;
    }

    .review-filters {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .build-modal {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
}

@media (max-width: 480px) {
    .components-grid-summary {
        grid-template-columns: 1fr;
    }

    .build-modal-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .component-detailed-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================================
   EMAIL CHANGE FORM IMPROVEMENTS
   ============================================================================ */

/* Email change container styling */
.email-change-container {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

/* Stack email input and button vertically */
.email-change-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Full-width email input */
.email-change-input {
    width: 100%;
}

/* Button styling */
.email-change-button {
    align-self: flex-start;
    min-width: 200px;
}

/* Help text styling */
.email-change-help {
    margin-top: 0.5rem;
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .email-change-button {
        align-self: stretch; /* Full width on mobile */
    }
}

.compact-stats {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.stat-group {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: space-around;
}

@media (max-width: 768px) {
    .compact-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-group {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .stat-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}