/* ===== COMPREHENSIVE MY-ACCOUNT STYLES ===== */
.post-single header{
    display: none;
}

.woocommerce-myaccount-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Section */
.myaccount-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.myaccount-user-profile {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar {
    position: relative;
}

.profile-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    object-fit: cover;
}

.no-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    font-size: 2.5em;
    font-weight: bold;
    color: white;
}

.profile-info {
    flex: 1;
}

.profile-greeting {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 700;
}

.profile-email {
    margin: 0 0 5px 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.profile-member-since {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95em;
}

.profile-actions .btn {
    background: white;
    color: #667eea;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.profile-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Content Area Layout */
.myaccount-content-area {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Navigation */
.custom-myaccount-navigation {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.custom-myaccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-myaccount-navigation li {
    border-bottom: 1px solid #f0f0f0;
}

.custom-myaccount-navigation li:last-child {
    border-bottom: none;
}

.custom-myaccount-navigation a {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.custom-myaccount-navigation a:hover {
    background: #f8f9fa;
    color: #667eea;
}

.custom-myaccount-navigation li.is-active a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-icon {
    font-size: 1.2em;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.nav-label {
    flex: 1;
    font-weight: 500;
    padding: 0 10px;
}

.nav-badge {
    background: #ff4757;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.8em;
    font-weight: 600;
}

.navigation-footer {
    border-top: 1px solid #f0f0f0;
    padding: 20px 25px;
}

.logout-link {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.logout-link:hover {
    color: #ff4757;
}

/* Main Content */
.myaccount-main-content {
    min-height: 500px;
    background: white;
	padding: 30px;
	border-radius: 15px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.08);
	margin-bottom: 30px;
}

/* Quick Stats Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2em;
}

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
}

.stat-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Recent Activity */
.recent-activity-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.recent-activity-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
}

.activity-tabs {
    display: none;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.activity-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.activity-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.order-item, .download-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child, .download-item:last-child {
    border-bottom: none;
}

.order-info, .download-info {
    flex: 1;
}

.order-info h4, .download-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.order-info p, .download-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed { background: #d4edda; color: #155724; }
.status-processing { background: #cce7ff; color: #004085; }
.status-on-hold { background: #fff3cd; color: #856404; }

.btn-view, .btn-download {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.3s ease;
    display: inline-block;
}

.btn-view:hover, .btn-download:hover {
    background: #5a6fd8;
    color: white;
}

.no-activity {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

/* Quick Actions */
.quick-actions-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.quick-actions-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.quick-action-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: block;
}

.quick-action-card:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
    color: inherit;
    text-decoration: none;
}

.action-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.quick-action-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.quick-action-card p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Avatar Modal Styles */
.avatar-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.avatar-modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    margin: 50px auto;
}

.modal-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: #e9ecef;
    color: #333;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.modal-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.modal-tab.active {
    color: #007cba;
    border-bottom-color: #007cba;
    background: white;
}

.modal-tab:hover {
    color: #005a87;
    background: rgba(0,124,186,0.1);
}

.tab-content {
    display: none;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

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

.upload-section {
    text-align: center;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    margin: 20px 0;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: #007cba;
}

.upload-area.dragover {
    border-color: #007cba;
    background: rgba(0,124,186,0.05);
}

.upload-icon {
    font-size: 48px;
    color: #666;
    margin-bottom: 10px;
}

.upload-text {
    color: #666;
    margin-bottom: 15px;
}

.file-input {
    display: none;
}

.browse-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.browse-btn:hover {
    background: #005a87;
}

.file-info {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.default-avatars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.avatar-option {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.avatar-option:hover {
    border-color: #007cba;
    background: rgba(0,124,186,0.05);
}

.avatar-option.selected {
    border-color: #007cba;
    background: rgba(0,124,186,0.1);
}

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

.avatar-name {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    word-break: break-all;
    display: none;
}

.modal-actions {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cancel-btn:hover {
    background: #545b62;
}

.save-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.save-btn:hover {
    background: #005a87;
}

.save-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.preview-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
}

.preview-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.preview-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #007cba;
    margin: 0 auto;
}

.no-preview {
    color: #666;
    font-style: italic;
}

.no-avatars-message {
    text-align: center;
    color: #666;
    padding: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .myaccount-content-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quick-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .default-avatars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .myaccount-user-profile {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-actions {
        width: 100%;
    }
    
    .profile-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .quick-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .default-avatars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .avatar-modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .default-avatars-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .cancel-btn,
    .save-btn {
        width: 100%;
    }
}


/* Safe styling for WooCommerce default content */
.woocommerce-default-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Ensure WooCommerce elements are visible */
.woocommerce-default-content table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-default-content .woocommerce-Message,
.woocommerce-default-content .woocommerce-Info {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.woocommerce-default-content .woocommerce-Button {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.woocommerce-default-content .woocommerce-Button:hover {
    background: #5a6fd8;
    color: white;
}

.stat-info {
	justify-content: center;
	text-align: center;
}