.profile-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar-container {
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

.profile-avatar-edit:hover {
    background: var(--primary-dark);
}

.profile-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-email {
    opacity: 0.9;
    font-size: 1.1rem;
}

.profile-member-since {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.profile-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.profile-tab {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.profile-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

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

.profile-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.form-group-profile {
    margin-bottom: 0;
}

.form-label-profile {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input-profile {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.form-input-profile:focus {
    outline: none;
    border-color: var(--primary-color);
}

.save-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
}

.save-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.order-status.confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.order-status.shipped {
    background: #e0e7ff;
    color: #4338ca;
}

.order-status.delivered {
    background: #d1fae5;
    color: #065f46;
}

.order-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-details {
    display: grid;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.order-items {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.order-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.order-item-icon {
    font-size: 2rem;
}

.order-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1rem;
}

.tracking-timeline {
    position: relative;
    padding-left: 2rem;
}

.tracking-step {
    position: relative;
    padding-bottom: 2rem;
}

.tracking-step:last-child {
    padding-bottom: 0;
}

.tracking-step::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.tracking-step.completed::before {
    background: var(--primary-color);
}

.tracking-step::after {
    content: '';
    position: absolute;
    left: calc(-2rem - 8px);
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border-color);
}

.tracking-step.completed::after {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.tracking-step.current::after {
    width: 24px;
    height: 24px;
    left: calc(-2rem - 11px);
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.tracking-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

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

.tracking-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-light);
}

.logout-button {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-button:hover {
    background: #dc2626;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .profile-info h1 {
        font-size: 1.5rem;
    }

    .profile-tabs {
        gap: 0.5rem;
    }

    .profile-tab {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .profile-section {
        padding: 1.5rem;
    }

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

    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
}